fluxy-bot 0.1.13 → 0.1.14
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/client/src/components/Onboard/OnboardWizard.tsx +130 -61
- package/dist/assets/{index-CQ58CZb9.css → index-CqHWWApk.css} +1 -1
- package/dist/assets/index-twWUCFQs.js +64 -0
- package/dist/index.html +2 -2
- package/dist/sw.js +1 -1
- package/package.json +1 -1
- package/worker/index.ts +27 -0
- package/dist/assets/index-SHHf1KTu.js +0 -64
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
function o2(n,i){for(var l=0;l<i.length;l++){const r=i[l];if(typeof r!="string"&&!Array.isArray(r)){for(const c in r)if(c!=="default"&&!(c in n)){const f=Object.getOwnPropertyDescriptor(r,c);f&&Object.defineProperty(n,c,f.get?f:{enumerable:!0,get:()=>r[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function l(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(c){if(c.ep)return;c.ep=!0;const f=l(c);fetch(c.href,f)}})();function rd(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Wc={exports:{}},il={};var Ug;function u2(){if(Ug)return il;Ug=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(r,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var h in c)h!=="key"&&(f[h]=c[h])}else f=c;return c=f.ref,{$$typeof:n,type:r,key:d,ref:c!==void 0?c:null,props:f}}return il.Fragment=i,il.jsx=l,il.jsxs=l,il}var Bg;function c2(){return Bg||(Bg=1,Wc.exports=u2()),Wc.exports}var g=c2(),Ic={exports:{}},pt={};var Hg;function f2(){if(Hg)return pt;Hg=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),T=Symbol.iterator;function E(A){return A===null||typeof A!="object"?null:(A=T&&A[T]||A["@@iterator"],typeof A=="function"?A:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,M={};function R(A,q,J){this.props=A,this.context=q,this.refs=M,this.updater=J||j}R.prototype.isReactComponent={},R.prototype.setState=function(A,q){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,q,"setState")},R.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function G(){}G.prototype=R.prototype;function k(A,q,J){this.props=A,this.context=q,this.refs=M,this.updater=J||j}var B=k.prototype=new G;B.constructor=k,C(B,R.prototype),B.isPureReactComponent=!0;var K=Array.isArray;function W(){}var P={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function tt(A,q,J){var et=J.ref;return{$$typeof:n,type:A,key:q,ref:et!==void 0?et:null,props:J}}function dt(A,q){return tt(A.type,q,A.props)}function ut(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function At(A){var q={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(J){return q[J]})}var Tt=/\/+/g;function Gt(A,q){return typeof A=="object"&&A!==null&&A.key!=null?At(""+A.key):q.toString(36)}function Nt(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(W,W):(A.status="pending",A.then(function(q){A.status==="pending"&&(A.status="fulfilled",A.value=q)},function(q){A.status==="pending"&&(A.status="rejected",A.reason=q)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function _(A,q,J,et,I){var rt=typeof A;(rt==="undefined"||rt==="boolean")&&(A=null);var yt=!1;if(A===null)yt=!0;else switch(rt){case"bigint":case"string":case"number":yt=!0;break;case"object":switch(A.$$typeof){case n:case i:yt=!0;break;case v:return yt=A._init,_(yt(A._payload),q,J,et,I)}}if(yt)return I=I(A),yt=et===""?"."+Gt(A,0):et,K(I)?(J="",yt!=null&&(J=yt.replace(Tt,"$&/")+"/"),_(I,q,J,"",function(ie){return ie})):I!=null&&(ut(I)&&(I=dt(I,J+(I.key==null||A&&A.key===I.key?"":(""+I.key).replace(Tt,"$&/")+"/")+yt)),q.push(I)),1;yt=0;var qt=et===""?".":et+":";if(K(A))for(var mt=0;mt<A.length;mt++)et=A[mt],rt=qt+Gt(et,mt),yt+=_(et,q,J,rt,I);else if(mt=E(A),typeof mt=="function")for(A=mt.call(A),mt=0;!(et=A.next()).done;)et=et.value,rt=qt+Gt(et,mt++),yt+=_(et,q,J,rt,I);else if(rt==="object"){if(typeof A.then=="function")return _(Nt(A),q,J,et,I);throw q=String(A),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return yt}function Z(A,q,J){if(A==null)return A;var et=[],I=0;return _(A,et,"","",function(rt){return q.call(J,rt,I++)}),et}function $(A){if(A._status===-1){var q=A._result;q=q(),q.then(function(J){(A._status===0||A._status===-1)&&(A._status=1,A._result=J)},function(J){(A._status===0||A._status===-1)&&(A._status=2,A._result=J)}),A._status===-1&&(A._status=0,A._result=q)}if(A._status===1)return A._result.default;throw A._result}var ht=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},F={map:Z,forEach:function(A,q,J){Z(A,function(){q.apply(this,arguments)},J)},count:function(A){var q=0;return Z(A,function(){q++}),q},toArray:function(A){return Z(A,function(q){return q})||[]},only:function(A){if(!ut(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return pt.Activity=b,pt.Children=F,pt.Component=R,pt.Fragment=l,pt.Profiler=c,pt.PureComponent=k,pt.StrictMode=r,pt.Suspense=y,pt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,pt.__COMPILER_RUNTIME={__proto__:null,c:function(A){return P.H.useMemoCache(A)}},pt.cache=function(A){return function(){return A.apply(null,arguments)}},pt.cacheSignal=function(){return null},pt.cloneElement=function(A,q,J){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var et=C({},A.props),I=A.key;if(q!=null)for(rt in q.key!==void 0&&(I=""+q.key),q)!L.call(q,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&q.ref===void 0||(et[rt]=q[rt]);var rt=arguments.length-2;if(rt===1)et.children=J;else if(1<rt){for(var yt=Array(rt),qt=0;qt<rt;qt++)yt[qt]=arguments[qt+2];et.children=yt}return tt(A.type,I,et)},pt.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},pt.createElement=function(A,q,J){var et,I={},rt=null;if(q!=null)for(et in q.key!==void 0&&(rt=""+q.key),q)L.call(q,et)&&et!=="key"&&et!=="__self"&&et!=="__source"&&(I[et]=q[et]);var yt=arguments.length-2;if(yt===1)I.children=J;else if(1<yt){for(var qt=Array(yt),mt=0;mt<yt;mt++)qt[mt]=arguments[mt+2];I.children=qt}if(A&&A.defaultProps)for(et in yt=A.defaultProps,yt)I[et]===void 0&&(I[et]=yt[et]);return tt(A,rt,I)},pt.createRef=function(){return{current:null}},pt.forwardRef=function(A){return{$$typeof:h,render:A}},pt.isValidElement=ut,pt.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:$}},pt.memo=function(A,q){return{$$typeof:p,type:A,compare:q===void 0?null:q}},pt.startTransition=function(A){var q=P.T,J={};P.T=J;try{var et=A(),I=P.S;I!==null&&I(J,et),typeof et=="object"&&et!==null&&typeof et.then=="function"&&et.then(W,ht)}catch(rt){ht(rt)}finally{q!==null&&J.types!==null&&(q.types=J.types),P.T=q}},pt.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},pt.use=function(A){return P.H.use(A)},pt.useActionState=function(A,q,J){return P.H.useActionState(A,q,J)},pt.useCallback=function(A,q){return P.H.useCallback(A,q)},pt.useContext=function(A){return P.H.useContext(A)},pt.useDebugValue=function(){},pt.useDeferredValue=function(A,q){return P.H.useDeferredValue(A,q)},pt.useEffect=function(A,q){return P.H.useEffect(A,q)},pt.useEffectEvent=function(A){return P.H.useEffectEvent(A)},pt.useId=function(){return P.H.useId()},pt.useImperativeHandle=function(A,q,J){return P.H.useImperativeHandle(A,q,J)},pt.useInsertionEffect=function(A,q){return P.H.useInsertionEffect(A,q)},pt.useLayoutEffect=function(A,q){return P.H.useLayoutEffect(A,q)},pt.useMemo=function(A,q){return P.H.useMemo(A,q)},pt.useOptimistic=function(A,q){return P.H.useOptimistic(A,q)},pt.useReducer=function(A,q,J){return P.H.useReducer(A,q,J)},pt.useRef=function(A){return P.H.useRef(A)},pt.useState=function(A){return P.H.useState(A)},pt.useSyncExternalStore=function(A,q,J){return P.H.useSyncExternalStore(A,q,J)},pt.useTransition=function(){return P.H.useTransition()},pt.version="19.2.4",pt}var Gg;function Eo(){return Gg||(Gg=1,Ic.exports=f2()),Ic.exports}var S=Eo();const Jn=rd(S),Uv=o2({__proto__:null,default:Jn},[S]);var $c={exports:{}},sl={},tf={exports:{}},ef={};var qg;function d2(){return qg||(qg=1,(function(n){function i(_,Z){var $=_.length;_.push(Z);t:for(;0<$;){var ht=$-1>>>1,F=_[ht];if(0<c(F,Z))_[ht]=Z,_[$]=F,$=ht;else break t}}function l(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var Z=_[0],$=_.pop();if($!==Z){_[0]=$;t:for(var ht=0,F=_.length,A=F>>>1;ht<A;){var q=2*(ht+1)-1,J=_[q],et=q+1,I=_[et];if(0>c(J,$))et<F&&0>c(I,J)?(_[ht]=I,_[et]=$,ht=et):(_[ht]=J,_[q]=$,ht=q);else if(et<F&&0>c(I,$))_[ht]=I,_[et]=$,ht=et;else break t}}return Z}function c(_,Z){var $=_.sortIndex-Z.sortIndex;return $!==0?$:_.id-Z.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var y=[],p=[],v=1,b=null,T=3,E=!1,j=!1,C=!1,M=!1,R=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function B(_){for(var Z=l(p);Z!==null;){if(Z.callback===null)r(p);else if(Z.startTime<=_)r(p),Z.sortIndex=Z.expirationTime,i(y,Z);else break;Z=l(p)}}function K(_){if(C=!1,B(_),!j)if(l(y)!==null)j=!0,W||(W=!0,At());else{var Z=l(p);Z!==null&&Nt(K,Z.startTime-_)}}var W=!1,P=-1,L=5,tt=-1;function dt(){return M?!0:!(n.unstable_now()-tt<L)}function ut(){if(M=!1,W){var _=n.unstable_now();tt=_;var Z=!0;try{t:{j=!1,C&&(C=!1,G(P),P=-1),E=!0;var $=T;try{e:{for(B(_),b=l(y);b!==null&&!(b.expirationTime>_&&dt());){var ht=b.callback;if(typeof ht=="function"){b.callback=null,T=b.priorityLevel;var F=ht(b.expirationTime<=_);if(_=n.unstable_now(),typeof F=="function"){b.callback=F,B(_),Z=!0;break e}b===l(y)&&r(y),B(_)}else r(y);b=l(y)}if(b!==null)Z=!0;else{var A=l(p);A!==null&&Nt(K,A.startTime-_),Z=!1}}break t}finally{b=null,T=$,E=!1}Z=void 0}}finally{Z?At():W=!1}}}var At;if(typeof k=="function")At=function(){k(ut)};else if(typeof MessageChannel<"u"){var Tt=new MessageChannel,Gt=Tt.port2;Tt.port1.onmessage=ut,At=function(){Gt.postMessage(null)}}else At=function(){R(ut,0)};function Nt(_,Z){P=R(function(){_(n.unstable_now())},Z)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(_){_.callback=null},n.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<_?Math.floor(1e3/_):5},n.unstable_getCurrentPriorityLevel=function(){return T},n.unstable_next=function(_){switch(T){case 1:case 2:case 3:var Z=3;break;default:Z=T}var $=T;T=Z;try{return _()}finally{T=$}},n.unstable_requestPaint=function(){M=!0},n.unstable_runWithPriority=function(_,Z){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var $=T;T=_;try{return Z()}finally{T=$}},n.unstable_scheduleCallback=function(_,Z,$){var ht=n.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?ht+$:ht):$=ht,_){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=$+F,_={id:v++,callback:Z,priorityLevel:_,startTime:$,expirationTime:F,sortIndex:-1},$>ht?(_.sortIndex=$,i(p,_),l(y)===null&&_===l(p)&&(C?(G(P),P=-1):C=!0,Nt(K,$-ht))):(_.sortIndex=F,i(y,_),j||E||(j=!0,W||(W=!0,At()))),_},n.unstable_shouldYield=dt,n.unstable_wrapCallback=function(_){var Z=T;return function(){var $=T;T=Z;try{return _.apply(this,arguments)}finally{T=$}}}})(ef)),ef}var Yg;function h2(){return Yg||(Yg=1,tf.exports=d2()),tf.exports}var nf={exports:{}},be={};var Xg;function m2(){if(Xg)return be;Xg=1;var n=Eo();function i(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var r={d:{f:l,r:function(){throw Error(i(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(y,p,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:y,containerInfo:p,implementation:v}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return be.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,be.createPortal=function(y,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(y,p,null,v)},be.flushSync=function(y){var p=d.T,v=r.p;try{if(d.T=null,r.p=2,y)return y()}finally{d.T=p,r.p=v,r.d.f()}},be.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(y,p))},be.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},be.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var v=p.as,b=h(v,p.crossOrigin),T=typeof p.integrity=="string"?p.integrity:void 0,E=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?r.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:T,fetchPriority:E}):v==="script"&&r.d.X(y,{crossOrigin:b,integrity:T,fetchPriority:E,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},be.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=h(p.as,p.crossOrigin);r.d.M(y,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(y)},be.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,b=h(v,p.crossOrigin);r.d.L(y,v,{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})}},be.preloadModule=function(y,p){if(typeof y=="string")if(p){var v=h(p.as,p.crossOrigin);r.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(y)},be.requestFormReset=function(y){r.d.r(y)},be.unstable_batchedUpdates=function(y,p){return y(p)},be.useFormState=function(y,p,v){return d.H.useFormState(y,p,v)},be.useFormStatus=function(){return d.H.useHostTransitionStatus()},be.version="19.2.4",be}var Kg;function Bv(){if(Kg)return nf.exports;Kg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),nf.exports=m2(),nf.exports}var Pg;function p2(){if(Pg)return sl;Pg=1;var n=h2(),i=Eo(),l=Bv();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}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 f(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a: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 h(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 y(t){if(f(t)!==t)throw Error(r(188))}function p(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(r(188));return e!==t?null:t}for(var a=t,s=e;;){var o=a.return;if(o===null)break;var u=o.alternate;if(u===null){if(s=o.return,s!==null){a=s;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===a)return y(o),t;if(u===s)return y(o),e;u=u.sibling}throw Error(r(188))}if(a.return!==s.return)a=o,s=u;else{for(var m=!1,x=o.child;x;){if(x===a){m=!0,a=o,s=u;break}if(x===s){m=!0,s=o,a=u;break}x=x.sibling}if(!m){for(x=u.child;x;){if(x===a){m=!0,a=u,s=o;break}if(x===s){m=!0,s=u,a=o;break}x=x.sibling}if(!m)throw Error(r(189))}}if(a.alternate!==s)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var b=Object.assign,T=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),k=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),tt=Symbol.for("react.activity"),dt=Symbol.for("react.memo_cache_sentinel"),ut=Symbol.iterator;function At(t){return t===null||typeof t!="object"?null:(t=ut&&t[ut]||t["@@iterator"],typeof t=="function"?t:null)}var Tt=Symbol.for("react.client.reference");function Gt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Tt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case R:return"Profiler";case M:return"StrictMode";case K:return"Suspense";case W:return"SuspenseList";case tt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case j:return"Portal";case k:return t.displayName||"Context";case G:return(t._context.displayName||"Context")+".Consumer";case B:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case P:return e=t.displayName||null,e!==null?e:Gt(t.type)||"Memo";case L:e=t._payload,t=t._init;try{return Gt(t(e))}catch{}}return null}var Nt=Array.isArray,_=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},ht=[],F=-1;function A(t){return{current:t}}function q(t){0>F||(t.current=ht[F],ht[F]=null,F--)}function J(t,e){F++,ht[F]=t.current,t.current=e}var et=A(null),I=A(null),rt=A(null),yt=A(null);function qt(t,e){switch(J(rt,e),J(I,t),J(et,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?rg(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=rg(e),t=og(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q(et),J(et,t)}function mt(){q(et),q(I),q(rt)}function ie(t){t.memoizedState!==null&&J(yt,t);var e=et.current,a=og(e,t.type);e!==a&&(J(I,t),J(et,a))}function qe(t){I.current===t&&(q(et),q(I)),yt.current===t&&(q(yt),tl._currentValue=$)}var oe,mn;function Se(t){if(oe===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);oe=e&&e[1]||"",mn=-1<a.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+oe+t+mn}var ri=!1;function jn(t,e){if(!t||ri)return"";ri=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(e){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(U){var V=U}Reflect.construct(t,[],X)}else{try{X.call()}catch(U){V=U}t.call(X.prototype)}}else{try{throw Error()}catch(U){V=U}(X=t())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(U){if(U&&V&&typeof U.stack=="string")return[U.stack,V.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=s.DetermineComponentFrameRoot(),m=u[0],x=u[1];if(m&&x){var w=m.split(`
|
|
4
|
-
`),z=x.split(`
|
|
5
|
-
`);for(o=s=0;s<w.length&&!w[s].includes("DetermineComponentFrameRoot");)s++;for(;o<z.length&&!z[o].includes("DetermineComponentFrameRoot");)o++;if(s===w.length||o===z.length)for(s=w.length-1,o=z.length-1;1<=s&&0<=o&&w[s]!==z[o];)o--;for(;1<=s&&0<=o;s--,o--)if(w[s]!==z[o]){if(s!==1||o!==1)do if(s--,o--,0>o||w[s]!==z[o]){var H=`
|
|
6
|
-
`+w[s].replace(" at new "," at ");return t.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",t.displayName)),H}while(1<=s&&0<=o);break}}}finally{ri=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?Se(a):""}function jl(t,e){switch(t.tag){case 26:case 27:case 5:return Se(t.type);case 16:return Se("Lazy");case 13:return t.child!==e&&e!==null?Se("Suspense Fallback"):Se("Suspense");case 19:return Se("SuspenseList");case 0:case 15:return jn(t.type,!1);case 11:return jn(t.type.render,!1);case 1:return jn(t.type,!0);case 31:return Se("Activity");default:return""}}function pn(t){try{var e="",a=null;do e+=jl(t,a),a=t,t=t.return;while(t);return e}catch(s){return`
|
|
7
|
-
Error generating stack: `+s.message+`
|
|
8
|
-
`+s.stack}}var cs=Object.prototype.hasOwnProperty,Ra=n.unstable_scheduleCallback,fs=n.unstable_cancelCallback,_o=n.unstable_shouldYield,Dl=n.unstable_requestPaint,ge=n.unstable_now,Vo=n.unstable_getCurrentPriorityLevel,an=n.unstable_ImmediatePriority,ds=n.unstable_UserBlockingPriority,Ce=n.unstable_NormalPriority,Rl=n.unstable_LowPriority,gn=n.unstable_IdlePriority,ko=n.log,Lo=n.unstable_setDisableYieldValue,Oa=null,Te=null;function yn(t){if(typeof ko=="function"&&Lo(t),Te&&typeof Te.setStrictMode=="function")try{Te.setStrictMode(Oa,t)}catch{}}var ye=Math.clz32?Math.clz32:Ho,Uo=Math.log,Bo=Math.LN2;function Ho(t){return t>>>=0,t===0?32:31-(Uo(t)/Bo|0)|0}var oi=256,za=262144,hs=4194304;function Dn(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 vn(t,e,a){var s=t.pendingLanes;if(s===0)return 0;var o=0,u=t.suspendedLanes,m=t.pingedLanes;t=t.warmLanes;var x=s&134217727;return x!==0?(s=x&~u,s!==0?o=Dn(s):(m&=x,m!==0?o=Dn(m):a||(a=x&~t,a!==0&&(o=Dn(a))))):(x=s&~u,x!==0?o=Dn(x):m!==0?o=Dn(m):a||(a=s&~t,a!==0&&(o=Dn(a)))),o===0?0:e!==0&&e!==o&&(e&u)===0&&(u=o&-o,a=e&-e,u>=a||u===32&&(a&4194048)!==0)?e:o}function Ne(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Go(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 ui(){var t=hs;return hs<<=1,(hs&62914560)===0&&(hs=4194304),t}function ms(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function Ye(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ol(t,e,a,s,o,u){var m=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var x=t.entanglements,w=t.expirationTimes,z=t.hiddenUpdates;for(a=m&~a;0<a;){var H=31-ye(a),X=1<<H;x[H]=0,w[H]=-1;var V=z[H];if(V!==null)for(z[H]=null,H=0;H<V.length;H++){var U=V[H];U!==null&&(U.lane&=-536870913)}a&=~X}s!==0&&Q(t,s,0),u!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=u&~(m&~e))}function Q(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var s=31-ye(e);t.entangledLanes|=e,t.entanglements[s]=t.entanglements[s]|1073741824|a&261930}function ct(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var s=31-ye(a),o=1<<s;o&e|t[s]&e&&(t[s]|=e),a&=~o}}function ve(t,e){var a=e&-e;return a=(a&42)!==0?1:bn(a),(a&(t.suspendedLanes|e))!==0?0:a}function bn(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 ci(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function _a(){var t=Z.p;return t!==0?t:(t=window.event,t===void 0?32:Rg(t.type))}function Zd(t,e){var a=Z.p;try{return Z.p=t,e()}finally{Z.p=a}}var In=Math.random().toString(36).slice(2),ue="__reactFiber$"+In,Me="__reactProps$"+In,fi="__reactContainer$"+In,qo="__reactEvents$"+In,Wx="__reactListeners$"+In,Ix="__reactHandles$"+In,Qd="__reactResources$"+In,ps="__reactMarker$"+In;function Yo(t){delete t[ue],delete t[Me],delete t[qo],delete t[Wx],delete t[Ix]}function di(t){var e=t[ue];if(e)return e;for(var a=t.parentNode;a;){if(e=a[fi]||a[ue]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=pg(t);t!==null;){if(a=t[ue])return a;t=pg(t)}return e}t=a,a=t.parentNode}return null}function hi(t){if(t=t[ue]||t[fi]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function gs(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function mi(t){var e=t[Qd];return e||(e=t[Qd]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function se(t){t[ps]=!0}var Fd=new Set,Jd={};function Va(t,e){pi(t,e),pi(t+"Capture",e)}function pi(t,e){for(Jd[t]=e,t=0;t<e.length;t++)Fd.add(e[t])}var $x=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]*$"),Wd={},Id={};function t1(t){return cs.call(Id,t)?!0:cs.call(Wd,t)?!1:$x.test(t)?Id[t]=!0:(Wd[t]=!0,!1)}function zl(t,e,a){if(t1(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var s=e.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function _l(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function Rn(t,e,a,s){if(s===null)t.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+s)}}function Xe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function $d(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function e1(t,e,a){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var o=s.get,u=s.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(m){a=""+m,u.call(this,m)}}),Object.defineProperty(t,e,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Xo(t){if(!t._valueTracker){var e=$d(t)?"checked":"value";t._valueTracker=e1(t,e,""+t[e])}}function th(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),s="";return t&&(s=$d(t)?t.checked?"true":"false":t.value),t=s,t!==a?(e.setValue(t),!0):!1}function Vl(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 n1=/[\n"\\]/g;function Ke(t){return t.replace(n1,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ko(t,e,a,s,o,u,m,x){t.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.type=m:t.removeAttribute("type"),e!=null?m==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Xe(e)):t.value!==""+Xe(e)&&(t.value=""+Xe(e)):m!=="submit"&&m!=="reset"||t.removeAttribute("value"),e!=null?Po(t,m,Xe(e)):a!=null?Po(t,m,Xe(a)):s!=null&&t.removeAttribute("value"),o==null&&u!=null&&(t.defaultChecked=!!u),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+Xe(x):t.removeAttribute("name")}function eh(t,e,a,s,o,u,m,x){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Xo(t);return}a=a!=null?""+Xe(a):"",e=e!=null?""+Xe(e):a,x||e===t.value||(t.value=e),t.defaultValue=e}s=s??o,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=x?t.checked:!!s,t.defaultChecked=!!s,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.name=m),Xo(t)}function Po(t,e,a){e==="number"&&Vl(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function gi(t,e,a,s){if(t=t.options,e){e={};for(var o=0;o<a.length;o++)e["$"+a[o]]=!0;for(a=0;a<t.length;a++)o=e.hasOwnProperty("$"+t[a].value),t[a].selected!==o&&(t[a].selected=o),o&&s&&(t[a].defaultSelected=!0)}else{for(a=""+Xe(a),e=null,o=0;o<t.length;o++){if(t[o].value===a){t[o].selected=!0,s&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function nh(t,e,a){if(e!=null&&(e=""+Xe(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+Xe(a):""}function ah(t,e,a,s){if(e==null){if(s!=null){if(a!=null)throw Error(r(92));if(Nt(s)){if(1<s.length)throw Error(r(93));s=s[0]}a=s}a==null&&(a=""),e=a}a=Xe(e),t.defaultValue=a,s=t.textContent,s===a&&s!==""&&s!==null&&(t.value=s),Xo(t)}function yi(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var a1=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 ih(t,e,a){var s=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":s?t.setProperty(e,a):typeof a!="number"||a===0||a1.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function sh(t,e,a){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||e!=null&&e.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var o in e)s=e[o],e.hasOwnProperty(o)&&a[o]!==s&&ih(t,o,s)}else for(var u in e)e.hasOwnProperty(u)&&ih(t,u,e[u])}function Zo(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 i1=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"]]),s1=/^[\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 kl(t){return s1.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function On(){}var Qo=null;function Fo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var vi=null,bi=null;function lh(t){var e=hi(t);if(e&&(t=e.stateNode)){var a=t[Me]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ko(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ke(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var s=a[e];if(s!==t&&s.form===t.form){var o=s[Me]||null;if(!o)throw Error(r(90));Ko(s,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<a.length;e++)s=a[e],s.form===t.form&&th(s)}break t;case"textarea":nh(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&gi(t,!!a.multiple,e,!1)}}}var Jo=!1;function rh(t,e,a){if(Jo)return t(e,a);Jo=!0;try{var s=t(e);return s}finally{if(Jo=!1,(vi!==null||bi!==null)&&(wr(),vi&&(e=vi,t=bi,bi=vi=null,lh(e),t)))for(e=0;e<t.length;e++)lh(t[e])}}function ys(t,e){var a=t.stateNode;if(a===null)return null;var s=a[Me]||null;if(s===null)return null;a=s[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":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,e,typeof a));return a}var zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wo=!1;if(zn)try{var vs={};Object.defineProperty(vs,"passive",{get:function(){Wo=!0}}),window.addEventListener("test",vs,vs),window.removeEventListener("test",vs,vs)}catch{Wo=!1}var $n=null,Io=null,Ll=null;function oh(){if(Ll)return Ll;var t,e=Io,a=e.length,s,o="value"in $n?$n.value:$n.textContent,u=o.length;for(t=0;t<a&&e[t]===o[t];t++);var m=a-t;for(s=1;s<=m&&e[a-s]===o[u-s];s++);return Ll=o.slice(t,1<s?1-s:void 0)}function Ul(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 Bl(){return!0}function uh(){return!1}function je(t){function e(a,s,o,u,m){this._reactName=a,this._targetInst=o,this.type=s,this.nativeEvent=u,this.target=m,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(a=t[x],this[x]=a?a(u):u[x]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Bl:uh,this.isPropagationStopped=uh,this}return b(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Bl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Bl)},persist:function(){},isPersistent:Bl}),e}var ka={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hl=je(ka),bs=b({},ka,{view:0,detail:0}),l1=je(bs),$o,tu,xs,Gl=b({},bs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==xs&&(xs&&t.type==="mousemove"?($o=t.screenX-xs.screenX,tu=t.screenY-xs.screenY):tu=$o=0,xs=t),$o)},movementY:function(t){return"movementY"in t?t.movementY:tu}}),ch=je(Gl),r1=b({},Gl,{dataTransfer:0}),o1=je(r1),u1=b({},bs,{relatedTarget:0}),eu=je(u1),c1=b({},ka,{animationName:0,elapsedTime:0,pseudoElement:0}),f1=je(c1),d1=b({},ka,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),h1=je(d1),m1=b({},ka,{data:0}),fh=je(m1),p1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},g1={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"},y1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function v1(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=y1[t])?!!e[t]:!1}function nu(){return v1}var b1=b({},bs,{key:function(t){if(t.key){var e=p1[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ul(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?g1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nu,charCode:function(t){return t.type==="keypress"?Ul(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ul(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),x1=je(b1),S1=b({},Gl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dh=je(S1),T1=b({},bs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nu}),w1=je(T1),E1=b({},ka,{propertyName:0,elapsedTime:0,pseudoElement:0}),A1=je(E1),C1=b({},Gl,{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}),N1=je(C1),M1=b({},ka,{newState:0,oldState:0}),j1=je(M1),D1=[9,13,27,32],au=zn&&"CompositionEvent"in window,Ss=null;zn&&"documentMode"in document&&(Ss=document.documentMode);var R1=zn&&"TextEvent"in window&&!Ss,hh=zn&&(!au||Ss&&8<Ss&&11>=Ss),mh=" ",ph=!1;function gh(t,e){switch(t){case"keyup":return D1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var xi=!1;function O1(t,e){switch(t){case"compositionend":return yh(e);case"keypress":return e.which!==32?null:(ph=!0,mh);case"textInput":return t=e.data,t===mh&&ph?null:t;default:return null}}function z1(t,e){if(xi)return t==="compositionend"||!au&&gh(t,e)?(t=oh(),Ll=Io=$n=null,xi=!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 hh&&e.locale!=="ko"?null:e.data;default:return null}}var _1={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 vh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!_1[t.type]:e==="textarea"}function bh(t,e,a,s){vi?bi?bi.push(s):bi=[s]:vi=s,e=Dr(e,"onChange"),0<e.length&&(a=new Hl("onChange","change",null,a,s),t.push({event:a,listeners:e}))}var Ts=null,ws=null;function V1(t){eg(t,0)}function ql(t){var e=gs(t);if(th(e))return t}function xh(t,e){if(t==="change")return e}var Sh=!1;if(zn){var iu;if(zn){var su="oninput"in document;if(!su){var Th=document.createElement("div");Th.setAttribute("oninput","return;"),su=typeof Th.oninput=="function"}iu=su}else iu=!1;Sh=iu&&(!document.documentMode||9<document.documentMode)}function wh(){Ts&&(Ts.detachEvent("onpropertychange",Eh),ws=Ts=null)}function Eh(t){if(t.propertyName==="value"&&ql(ws)){var e=[];bh(e,ws,t,Fo(t)),rh(V1,e)}}function k1(t,e,a){t==="focusin"?(wh(),Ts=e,ws=a,Ts.attachEvent("onpropertychange",Eh)):t==="focusout"&&wh()}function L1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ql(ws)}function U1(t,e){if(t==="click")return ql(e)}function B1(t,e){if(t==="input"||t==="change")return ql(e)}function H1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ve=typeof Object.is=="function"?Object.is:H1;function Es(t,e){if(Ve(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),s=Object.keys(e);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var o=a[s];if(!cs.call(e,o)||!Ve(t[o],e[o]))return!1}return!0}function Ah(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ch(t,e){var a=Ah(t);t=0;for(var s;a;){if(a.nodeType===3){if(s=t+a.textContent.length,t<=e&&s>=e)return{node:a,offset:e-t};t=s}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=Ah(a)}}function Nh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Nh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Mh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Vl(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=Vl(t.document)}return e}function lu(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 G1=zn&&"documentMode"in document&&11>=document.documentMode,Si=null,ru=null,As=null,ou=!1;function jh(t,e,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ou||Si==null||Si!==Vl(s)||(s=Si,"selectionStart"in s&&lu(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),As&&Es(As,s)||(As=s,s=Dr(ru,"onSelect"),0<s.length&&(e=new Hl("onSelect","select",null,e,a),t.push({event:e,listeners:s}),e.target=Si)))}function La(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var Ti={animationend:La("Animation","AnimationEnd"),animationiteration:La("Animation","AnimationIteration"),animationstart:La("Animation","AnimationStart"),transitionrun:La("Transition","TransitionRun"),transitionstart:La("Transition","TransitionStart"),transitioncancel:La("Transition","TransitionCancel"),transitionend:La("Transition","TransitionEnd")},uu={},Dh={};zn&&(Dh=document.createElement("div").style,"AnimationEvent"in window||(delete Ti.animationend.animation,delete Ti.animationiteration.animation,delete Ti.animationstart.animation),"TransitionEvent"in window||delete Ti.transitionend.transition);function Ua(t){if(uu[t])return uu[t];if(!Ti[t])return t;var e=Ti[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in Dh)return uu[t]=e[a];return t}var Rh=Ua("animationend"),Oh=Ua("animationiteration"),zh=Ua("animationstart"),q1=Ua("transitionrun"),Y1=Ua("transitionstart"),X1=Ua("transitioncancel"),_h=Ua("transitionend"),Vh=new Map,cu="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(" ");cu.push("scrollEnd");function sn(t,e){Vh.set(t,e),Va(e,[t])}var Yl=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)},Pe=[],wi=0,fu=0;function Xl(){for(var t=wi,e=fu=wi=0;e<t;){var a=Pe[e];Pe[e++]=null;var s=Pe[e];Pe[e++]=null;var o=Pe[e];Pe[e++]=null;var u=Pe[e];if(Pe[e++]=null,s!==null&&o!==null){var m=s.pending;m===null?o.next=o:(o.next=m.next,m.next=o),s.pending=o}u!==0&&kh(a,o,u)}}function Kl(t,e,a,s){Pe[wi++]=t,Pe[wi++]=e,Pe[wi++]=a,Pe[wi++]=s,fu|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function du(t,e,a,s){return Kl(t,e,a,s),Pl(t)}function Ba(t,e){return Kl(t,null,null,e),Pl(t)}function kh(t,e,a){t.lanes|=a;var s=t.alternate;s!==null&&(s.lanes|=a);for(var o=!1,u=t.return;u!==null;)u.childLanes|=a,s=u.alternate,s!==null&&(s.childLanes|=a),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(o=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,o&&e!==null&&(o=31-ye(a),t=u.hiddenUpdates,s=t[o],s===null?t[o]=[e]:s.push(e),e.lane=a|536870912),u):null}function Pl(t){if(50<Zs)throw Zs=0,Sc=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ei={};function K1(t,e,a,s){this.tag=t,this.key=a,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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ke(t,e,a,s){return new K1(t,e,a,s)}function hu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function _n(t,e){var a=t.alternate;return a===null?(a=ke(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function Lh(t,e){t.flags&=65011714;var a=t.alternate;return a===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=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Zl(t,e,a,s,o,u){var m=0;if(s=t,typeof t=="function")hu(t)&&(m=1);else if(typeof t=="string")m=JS(t,a,et.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case tt:return t=ke(31,a,e,o),t.elementType=tt,t.lanes=u,t;case C:return Ha(a.children,o,u,e);case M:m=8,o|=24;break;case R:return t=ke(12,a,e,o|2),t.elementType=R,t.lanes=u,t;case K:return t=ke(13,a,e,o),t.elementType=K,t.lanes=u,t;case W:return t=ke(19,a,e,o),t.elementType=W,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case k:m=10;break t;case G:m=9;break t;case B:m=11;break t;case P:m=14;break t;case L:m=16,s=null;break t}m=29,a=Error(r(130,t===null?"null":typeof t,"")),s=null}return e=ke(m,a,e,o),e.elementType=t,e.type=s,e.lanes=u,e}function Ha(t,e,a,s){return t=ke(7,t,s,e),t.lanes=a,t}function mu(t,e,a){return t=ke(6,t,null,e),t.lanes=a,t}function Uh(t){var e=ke(18,null,null,0);return e.stateNode=t,e}function pu(t,e,a){return e=ke(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Bh=new WeakMap;function Ze(t,e){if(typeof t=="object"&&t!==null){var a=Bh.get(t);return a!==void 0?a:(e={value:t,source:e,stack:pn(e)},Bh.set(t,e),e)}return{value:t,source:e,stack:pn(e)}}var Ai=[],Ci=0,Ql=null,Cs=0,Qe=[],Fe=0,ta=null,xn=1,Sn="";function Vn(t,e){Ai[Ci++]=Cs,Ai[Ci++]=Ql,Ql=t,Cs=e}function Hh(t,e,a){Qe[Fe++]=xn,Qe[Fe++]=Sn,Qe[Fe++]=ta,ta=t;var s=xn;t=Sn;var o=32-ye(s)-1;s&=~(1<<o),a+=1;var u=32-ye(e)+o;if(30<u){var m=o-o%5;u=(s&(1<<m)-1).toString(32),s>>=m,o-=m,xn=1<<32-ye(e)+o|a<<o|s,Sn=u+t}else xn=1<<u|a<<o|s,Sn=t}function gu(t){t.return!==null&&(Vn(t,1),Hh(t,1,0))}function yu(t){for(;t===Ql;)Ql=Ai[--Ci],Ai[Ci]=null,Cs=Ai[--Ci],Ai[Ci]=null;for(;t===ta;)ta=Qe[--Fe],Qe[Fe]=null,Sn=Qe[--Fe],Qe[Fe]=null,xn=Qe[--Fe],Qe[Fe]=null}function Gh(t,e){Qe[Fe++]=xn,Qe[Fe++]=Sn,Qe[Fe++]=ta,xn=e.id,Sn=e.overflow,ta=t}var ce=null,Bt=null,Ct=!1,ea=null,Je=!1,vu=Error(r(519));function na(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ns(Ze(e,t)),vu}function qh(t){var e=t.stateNode,a=t.type,s=t.memoizedProps;switch(e[ue]=t,e[Me]=s,a){case"dialog":St("cancel",e),St("close",e);break;case"iframe":case"object":case"embed":St("load",e);break;case"video":case"audio":for(a=0;a<Fs.length;a++)St(Fs[a],e);break;case"source":St("error",e);break;case"img":case"image":case"link":St("error",e),St("load",e);break;case"details":St("toggle",e);break;case"input":St("invalid",e),eh(e,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":St("invalid",e);break;case"textarea":St("invalid",e),ah(e,s.value,s.defaultValue,s.children)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||s.suppressHydrationWarning===!0||sg(e.textContent,a)?(s.popover!=null&&(St("beforetoggle",e),St("toggle",e)),s.onScroll!=null&&St("scroll",e),s.onScrollEnd!=null&&St("scrollend",e),s.onClick!=null&&(e.onclick=On),e=!0):e=!1,e||na(t,!0)}function Yh(t){for(ce=t.return;ce;)switch(ce.tag){case 5:case 31:case 13:Je=!1;return;case 27:case 3:Je=!0;return;default:ce=ce.return}}function Ni(t){if(t!==ce)return!1;if(!Ct)return Yh(t),Ct=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||kc(t.type,t.memoizedProps)),a=!a),a&&Bt&&na(t),Yh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Bt=mg(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Bt=mg(t)}else e===27?(e=Bt,ga(t.type)?(t=Gc,Gc=null,Bt=t):Bt=e):Bt=ce?Ie(t.stateNode.nextSibling):null;return!0}function Ga(){Bt=ce=null,Ct=!1}function bu(){var t=ea;return t!==null&&(ze===null?ze=t:ze.push.apply(ze,t),ea=null),t}function Ns(t){ea===null?ea=[t]:ea.push(t)}var xu=A(null),qa=null,kn=null;function aa(t,e,a){J(xu,e._currentValue),e._currentValue=a}function Ln(t){t._currentValue=xu.current,q(xu)}function Su(t,e,a){for(;t!==null;){var s=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,s!==null&&(s.childLanes|=e)):s!==null&&(s.childLanes&e)!==e&&(s.childLanes|=e),t===a)break;t=t.return}}function Tu(t,e,a,s){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){var m=o.child;u=u.firstContext;t:for(;u!==null;){var x=u;u=o;for(var w=0;w<e.length;w++)if(x.context===e[w]){u.lanes|=a,x=u.alternate,x!==null&&(x.lanes|=a),Su(u.return,a,t),s||(m=null);break t}u=x.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(r(341));m.lanes|=a,u=m.alternate,u!==null&&(u.lanes|=a),Su(m,a,t),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===t){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function Mi(t,e,a,s){t=null;for(var o=e,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var x=o.type;Ve(o.pendingProps.value,m.value)||(t!==null?t.push(x):t=[x])}}else if(o===yt.current){if(m=o.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(tl):t=[tl])}o=o.return}t!==null&&Tu(e,t,a,s),e.flags|=262144}function Fl(t){for(t=t.firstContext;t!==null;){if(!Ve(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ya(t){qa=t,kn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function fe(t){return Xh(qa,t)}function Jl(t,e){return qa===null&&Ya(t),Xh(t,e)}function Xh(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},kn===null){if(t===null)throw Error(r(308));kn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else kn=kn.next=e;return a}var P1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,s){t.push(s)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},Z1=n.unstable_scheduleCallback,Q1=n.unstable_NormalPriority,Jt={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wu(){return{controller:new P1,data:new Map,refCount:0}}function Ms(t){t.refCount--,t.refCount===0&&Z1(Q1,function(){t.controller.abort()})}var js=null,Eu=0,ji=0,Di=null;function F1(t,e){if(js===null){var a=js=[];Eu=0,ji=Nc(),Di={status:"pending",value:void 0,then:function(s){a.push(s)}}}return Eu++,e.then(Kh,Kh),e}function Kh(){if(--Eu===0&&js!==null){Di!==null&&(Di.status="fulfilled");var t=js;js=null,ji=0,Di=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function J1(t,e){var a=[],s={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return t.then(function(){s.status="fulfilled",s.value=e;for(var o=0;o<a.length;o++)(0,a[o])(e)},function(o){for(s.status="rejected",s.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),s}var Ph=_.S;_.S=function(t,e){jp=ge(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&F1(t,e),Ph!==null&&Ph(t,e)};var Xa=A(null);function Au(){var t=Xa.current;return t!==null?t:kt.pooledCache}function Wl(t,e){e===null?J(Xa,Xa.current):J(Xa,e.pool)}function Zh(){var t=Au();return t===null?null:{parent:Jt._currentValue,pool:t}}var Ri=Error(r(460)),Cu=Error(r(474)),Il=Error(r(542)),$l={then:function(){}};function Qh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Fh(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(On,On),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Wh(t),t;default:if(typeof e.status=="string")e.then(On,On);else{if(t=kt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(s){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=s}},function(s){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=s}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Wh(t),t}throw Pa=e,Ri}}function Ka(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Pa=a,Ri):a}}var Pa=null;function Jh(){if(Pa===null)throw Error(r(459));var t=Pa;return Pa=null,t}function Wh(t){if(t===Ri||t===Il)throw Error(r(483))}var Oi=null,Ds=0;function tr(t){var e=Ds;return Ds+=1,Oi===null&&(Oi=[]),Fh(Oi,t,e)}function Rs(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function er(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 Ih(t){function e(D,N){if(t){var O=D.deletions;O===null?(D.deletions=[N],D.flags|=16):O.push(N)}}function a(D,N){if(!t)return null;for(;N!==null;)e(D,N),N=N.sibling;return null}function s(D){for(var N=new Map;D!==null;)D.key!==null?N.set(D.key,D):N.set(D.index,D),D=D.sibling;return N}function o(D,N){return D=_n(D,N),D.index=0,D.sibling=null,D}function u(D,N,O){return D.index=O,t?(O=D.alternate,O!==null?(O=O.index,O<N?(D.flags|=67108866,N):O):(D.flags|=67108866,N)):(D.flags|=1048576,N)}function m(D){return t&&D.alternate===null&&(D.flags|=67108866),D}function x(D,N,O,Y){return N===null||N.tag!==6?(N=mu(O,D.mode,Y),N.return=D,N):(N=o(N,O),N.return=D,N)}function w(D,N,O,Y){var ot=O.type;return ot===C?H(D,N,O.props.children,Y,O.key):N!==null&&(N.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===L&&Ka(ot)===N.type)?(N=o(N,O.props),Rs(N,O),N.return=D,N):(N=Zl(O.type,O.key,O.props,null,D.mode,Y),Rs(N,O),N.return=D,N)}function z(D,N,O,Y){return N===null||N.tag!==4||N.stateNode.containerInfo!==O.containerInfo||N.stateNode.implementation!==O.implementation?(N=pu(O,D.mode,Y),N.return=D,N):(N=o(N,O.children||[]),N.return=D,N)}function H(D,N,O,Y,ot){return N===null||N.tag!==7?(N=Ha(O,D.mode,Y,ot),N.return=D,N):(N=o(N,O),N.return=D,N)}function X(D,N,O){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=mu(""+N,D.mode,O),N.return=D,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case E:return O=Zl(N.type,N.key,N.props,null,D.mode,O),Rs(O,N),O.return=D,O;case j:return N=pu(N,D.mode,O),N.return=D,N;case L:return N=Ka(N),X(D,N,O)}if(Nt(N)||At(N))return N=Ha(N,D.mode,O,null),N.return=D,N;if(typeof N.then=="function")return X(D,tr(N),O);if(N.$$typeof===k)return X(D,Jl(D,N),O);er(D,N)}return null}function V(D,N,O,Y){var ot=N!==null?N.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return ot!==null?null:x(D,N,""+O,Y);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case E:return O.key===ot?w(D,N,O,Y):null;case j:return O.key===ot?z(D,N,O,Y):null;case L:return O=Ka(O),V(D,N,O,Y)}if(Nt(O)||At(O))return ot!==null?null:H(D,N,O,Y,null);if(typeof O.then=="function")return V(D,N,tr(O),Y);if(O.$$typeof===k)return V(D,N,Jl(D,O),Y);er(D,O)}return null}function U(D,N,O,Y,ot){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return D=D.get(O)||null,x(N,D,""+Y,ot);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case E:return D=D.get(Y.key===null?O:Y.key)||null,w(N,D,Y,ot);case j:return D=D.get(Y.key===null?O:Y.key)||null,z(N,D,Y,ot);case L:return Y=Ka(Y),U(D,N,O,Y,ot)}if(Nt(Y)||At(Y))return D=D.get(O)||null,H(N,D,Y,ot,null);if(typeof Y.then=="function")return U(D,N,O,tr(Y),ot);if(Y.$$typeof===k)return U(D,N,O,Jl(N,Y),ot);er(N,Y)}return null}function nt(D,N,O,Y){for(var ot=null,Mt=null,lt=N,vt=N=0,Et=null;lt!==null&&vt<O.length;vt++){lt.index>vt?(Et=lt,lt=null):Et=lt.sibling;var jt=V(D,lt,O[vt],Y);if(jt===null){lt===null&&(lt=Et);break}t&<&&jt.alternate===null&&e(D,lt),N=u(jt,N,vt),Mt===null?ot=jt:Mt.sibling=jt,Mt=jt,lt=Et}if(vt===O.length)return a(D,lt),Ct&&Vn(D,vt),ot;if(lt===null){for(;vt<O.length;vt++)lt=X(D,O[vt],Y),lt!==null&&(N=u(lt,N,vt),Mt===null?ot=lt:Mt.sibling=lt,Mt=lt);return Ct&&Vn(D,vt),ot}for(lt=s(lt);vt<O.length;vt++)Et=U(lt,D,vt,O[vt],Y),Et!==null&&(t&&Et.alternate!==null&<.delete(Et.key===null?vt:Et.key),N=u(Et,N,vt),Mt===null?ot=Et:Mt.sibling=Et,Mt=Et);return t&<.forEach(function(Sa){return e(D,Sa)}),Ct&&Vn(D,vt),ot}function ft(D,N,O,Y){if(O==null)throw Error(r(151));for(var ot=null,Mt=null,lt=N,vt=N=0,Et=null,jt=O.next();lt!==null&&!jt.done;vt++,jt=O.next()){lt.index>vt?(Et=lt,lt=null):Et=lt.sibling;var Sa=V(D,lt,jt.value,Y);if(Sa===null){lt===null&&(lt=Et);break}t&<&&Sa.alternate===null&&e(D,lt),N=u(Sa,N,vt),Mt===null?ot=Sa:Mt.sibling=Sa,Mt=Sa,lt=Et}if(jt.done)return a(D,lt),Ct&&Vn(D,vt),ot;if(lt===null){for(;!jt.done;vt++,jt=O.next())jt=X(D,jt.value,Y),jt!==null&&(N=u(jt,N,vt),Mt===null?ot=jt:Mt.sibling=jt,Mt=jt);return Ct&&Vn(D,vt),ot}for(lt=s(lt);!jt.done;vt++,jt=O.next())jt=U(lt,D,vt,jt.value,Y),jt!==null&&(t&&jt.alternate!==null&<.delete(jt.key===null?vt:jt.key),N=u(jt,N,vt),Mt===null?ot=jt:Mt.sibling=jt,Mt=jt);return t&<.forEach(function(r2){return e(D,r2)}),Ct&&Vn(D,vt),ot}function Vt(D,N,O,Y){if(typeof O=="object"&&O!==null&&O.type===C&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case E:t:{for(var ot=O.key;N!==null;){if(N.key===ot){if(ot=O.type,ot===C){if(N.tag===7){a(D,N.sibling),Y=o(N,O.props.children),Y.return=D,D=Y;break t}}else if(N.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===L&&Ka(ot)===N.type){a(D,N.sibling),Y=o(N,O.props),Rs(Y,O),Y.return=D,D=Y;break t}a(D,N);break}else e(D,N);N=N.sibling}O.type===C?(Y=Ha(O.props.children,D.mode,Y,O.key),Y.return=D,D=Y):(Y=Zl(O.type,O.key,O.props,null,D.mode,Y),Rs(Y,O),Y.return=D,D=Y)}return m(D);case j:t:{for(ot=O.key;N!==null;){if(N.key===ot)if(N.tag===4&&N.stateNode.containerInfo===O.containerInfo&&N.stateNode.implementation===O.implementation){a(D,N.sibling),Y=o(N,O.children||[]),Y.return=D,D=Y;break t}else{a(D,N);break}else e(D,N);N=N.sibling}Y=pu(O,D.mode,Y),Y.return=D,D=Y}return m(D);case L:return O=Ka(O),Vt(D,N,O,Y)}if(Nt(O))return nt(D,N,O,Y);if(At(O)){if(ot=At(O),typeof ot!="function")throw Error(r(150));return O=ot.call(O),ft(D,N,O,Y)}if(typeof O.then=="function")return Vt(D,N,tr(O),Y);if(O.$$typeof===k)return Vt(D,N,Jl(D,O),Y);er(D,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,N!==null&&N.tag===6?(a(D,N.sibling),Y=o(N,O),Y.return=D,D=Y):(a(D,N),Y=mu(O,D.mode,Y),Y.return=D,D=Y),m(D)):a(D,N)}return function(D,N,O,Y){try{Ds=0;var ot=Vt(D,N,O,Y);return Oi=null,ot}catch(lt){if(lt===Ri||lt===Il)throw lt;var Mt=ke(29,lt,null,D.mode);return Mt.lanes=Y,Mt.return=D,Mt}}}var Za=Ih(!0),$h=Ih(!1),ia=!1;function Nu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Mu(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 la(t,e,a){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Dt&2)!==0){var o=s.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),s.pending=e,e=Pl(t),kh(t,null,a),e}return Kl(t,s,e,a),Pl(t)}function Os(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var s=e.lanes;s&=t.pendingLanes,a|=s,e.lanes=a,ct(t,a)}}function ju(t,e){var a=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var o=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?o=u=m:u=u.next=m,a=a.next}while(a!==null);u===null?o=u=e:u=u.next=e}else o=u=e;a={baseState:s.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:s.shared,callbacks:s.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var Du=!1;function zs(){if(Du){var t=Di;if(t!==null)throw t}}function _s(t,e,a,s){Du=!1;var o=t.updateQueue;ia=!1;var u=o.firstBaseUpdate,m=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var w=x,z=w.next;w.next=null,m===null?u=z:m.next=z,m=w;var H=t.alternate;H!==null&&(H=H.updateQueue,x=H.lastBaseUpdate,x!==m&&(x===null?H.firstBaseUpdate=z:x.next=z,H.lastBaseUpdate=w))}if(u!==null){var X=o.baseState;m=0,H=z=w=null,x=u;do{var V=x.lane&-536870913,U=V!==x.lane;if(U?(wt&V)===V:(s&V)===V){V!==0&&V===ji&&(Du=!0),H!==null&&(H=H.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var nt=t,ft=x;V=e;var Vt=a;switch(ft.tag){case 1:if(nt=ft.payload,typeof nt=="function"){X=nt.call(Vt,X,V);break t}X=nt;break t;case 3:nt.flags=nt.flags&-65537|128;case 0:if(nt=ft.payload,V=typeof nt=="function"?nt.call(Vt,X,V):nt,V==null)break t;X=b({},X,V);break t;case 2:ia=!0}}V=x.callback,V!==null&&(t.flags|=64,U&&(t.flags|=8192),U=o.callbacks,U===null?o.callbacks=[V]:U.push(V))}else U={lane:V,tag:x.tag,payload:x.payload,callback:x.callback,next:null},H===null?(z=H=U,w=X):H=H.next=U,m|=V;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;U=x,x=U.next,U.next=null,o.lastBaseUpdate=U,o.shared.pending=null}}while(!0);H===null&&(w=X),o.baseState=w,o.firstBaseUpdate=z,o.lastBaseUpdate=H,u===null&&(o.shared.lanes=0),fa|=m,t.lanes=m,t.memoizedState=X}}function tm(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function em(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)tm(a[t],e)}var zi=A(null),nr=A(0);function nm(t,e){t=Pn,J(nr,t),J(zi,e),Pn=t|e.baseLanes}function Ru(){J(nr,Pn),J(zi,zi.current)}function Ou(){Pn=nr.current,q(zi),q(nr)}var Le=A(null),We=null;function ra(t){var e=t.alternate;J(Qt,Qt.current&1),J(Le,t),We===null&&(e===null||zi.current!==null||e.memoizedState!==null)&&(We=t)}function zu(t){J(Qt,Qt.current),J(Le,t),We===null&&(We=t)}function am(t){t.tag===22?(J(Qt,Qt.current),J(Le,t),We===null&&(We=t)):oa()}function oa(){J(Qt,Qt.current),J(Le,Le.current)}function Ue(t){q(Le),We===t&&(We=null),q(Qt)}var Qt=A(0);function ar(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Bc(a)||Hc(a)))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 Un=0,gt=null,zt=null,Wt=null,ir=!1,_i=!1,Qa=!1,sr=0,Vs=0,Vi=null,W1=0;function Kt(){throw Error(r(321))}function _u(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!Ve(t[a],e[a]))return!1;return!0}function Vu(t,e,a,s,o,u){return Un=u,gt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,_.H=t===null||t.memoizedState===null?Hm:Ju,Qa=!1,u=a(s,o),Qa=!1,_i&&(u=sm(e,a,s,o)),im(t),u}function im(t){_.H=Us;var e=zt!==null&&zt.next!==null;if(Un=0,Wt=zt=gt=null,ir=!1,Vs=0,Vi=null,e)throw Error(r(300));t===null||It||(t=t.dependencies,t!==null&&Fl(t)&&(It=!0))}function sm(t,e,a,s){gt=t;var o=0;do{if(_i&&(Vi=null),Vs=0,_i=!1,25<=o)throw Error(r(301));if(o+=1,Wt=zt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}_.H=Gm,u=e(a,s)}while(_i);return u}function I1(){var t=_.H,e=t.useState()[0];return e=typeof e.then=="function"?ks(e):e,t=t.useState()[0],(zt!==null?zt.memoizedState:null)!==t&&(gt.flags|=1024),e}function ku(){var t=sr!==0;return sr=0,t}function Lu(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function Uu(t){if(ir){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ir=!1}Un=0,Wt=zt=gt=null,_i=!1,Vs=sr=0,Vi=null}function we(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wt===null?gt.memoizedState=Wt=t:Wt=Wt.next=t,Wt}function Ft(){if(zt===null){var t=gt.alternate;t=t!==null?t.memoizedState:null}else t=zt.next;var e=Wt===null?gt.memoizedState:Wt.next;if(e!==null)Wt=e,zt=t;else{if(t===null)throw gt.alternate===null?Error(r(467)):Error(r(310));zt=t,t={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},Wt===null?gt.memoizedState=Wt=t:Wt=Wt.next=t}return Wt}function lr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ks(t){var e=Vs;return Vs+=1,Vi===null&&(Vi=[]),t=Fh(Vi,t,e),e=gt,(Wt===null?e.memoizedState:Wt.next)===null&&(e=e.alternate,_.H=e===null||e.memoizedState===null?Hm:Ju),t}function rr(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ks(t);if(t.$$typeof===k)return fe(t)}throw Error(r(438,String(t)))}function Bu(t){var e=null,a=gt.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var s=gt.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(e={data:s.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=lr(),gt.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),s=0;s<t;s++)a[s]=dt;return e.index++,a}function Bn(t,e){return typeof e=="function"?e(t):e}function or(t){var e=Ft();return Hu(e,zt,t)}function Hu(t,e,a){var s=t.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=a;var o=t.baseQueue,u=s.pending;if(u!==null){if(o!==null){var m=o.next;o.next=u.next,u.next=m}e.baseQueue=o=u,s.pending=null}if(u=t.baseState,o===null)t.memoizedState=u;else{e=o.next;var x=m=null,w=null,z=e,H=!1;do{var X=z.lane&-536870913;if(X!==z.lane?(wt&X)===X:(Un&X)===X){var V=z.revertLane;if(V===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),X===ji&&(H=!0);else if((Un&V)===V){z=z.next,V===ji&&(H=!0);continue}else X={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},w===null?(x=w=X,m=u):w=w.next=X,gt.lanes|=V,fa|=V;X=z.action,Qa&&a(u,X),u=z.hasEagerState?z.eagerState:a(u,X)}else V={lane:X,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},w===null?(x=w=V,m=u):w=w.next=V,gt.lanes|=X,fa|=X;z=z.next}while(z!==null&&z!==e);if(w===null?m=u:w.next=x,!Ve(u,t.memoizedState)&&(It=!0,H&&(a=Di,a!==null)))throw a;t.memoizedState=u,t.baseState=m,t.baseQueue=w,s.lastRenderedState=u}return o===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function Gu(t){var e=Ft(),a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var s=a.dispatch,o=a.pending,u=e.memoizedState;if(o!==null){a.pending=null;var m=o=o.next;do u=t(u,m.action),m=m.next;while(m!==o);Ve(u,e.memoizedState)||(It=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),a.lastRenderedState=u}return[u,s]}function lm(t,e,a){var s=gt,o=Ft(),u=Ct;if(u){if(a===void 0)throw Error(r(407));a=a()}else a=e();var m=!Ve((zt||o).memoizedState,a);if(m&&(o.memoizedState=a,It=!0),o=o.queue,Xu(um.bind(null,s,o,t),[t]),o.getSnapshot!==e||m||Wt!==null&&Wt.memoizedState.tag&1){if(s.flags|=2048,ki(9,{destroy:void 0},om.bind(null,s,o,a,e),null),kt===null)throw Error(r(349));u||(Un&127)!==0||rm(s,e,a)}return a}function rm(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=gt.updateQueue,e===null?(e=lr(),gt.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function om(t,e,a,s){e.value=a,e.getSnapshot=s,cm(e)&&fm(t)}function um(t,e,a){return a(function(){cm(e)&&fm(t)})}function cm(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!Ve(t,a)}catch{return!0}}function fm(t){var e=Ba(t,2);e!==null&&_e(e,t,2)}function qu(t){var e=we();if(typeof t=="function"){var a=t;if(t=a(),Qa){yn(!0);try{a()}finally{yn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:t},e}function dm(t,e,a,s){return t.baseState=a,Hu(t,zt,typeof s=="function"?s:Bn)}function $1(t,e,a,s,o){if(fr(t))throw Error(r(485));if(t=e.action,t!==null){var u={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){u.listeners.push(m)}};_.T!==null?a(!0):u.isTransition=!1,s(u),a=e.pending,a===null?(u.next=e.pending=u,hm(e,u)):(u.next=a.next,e.pending=a.next=u)}}function hm(t,e){var a=e.action,s=e.payload,o=t.state;if(e.isTransition){var u=_.T,m={};_.T=m;try{var x=a(o,s),w=_.S;w!==null&&w(m,x),mm(t,e,x)}catch(z){Yu(t,e,z)}finally{u!==null&&m.types!==null&&(u.types=m.types),_.T=u}}else try{u=a(o,s),mm(t,e,u)}catch(z){Yu(t,e,z)}}function mm(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){pm(t,e,s)},function(s){return Yu(t,e,s)}):pm(t,e,a)}function pm(t,e,a){e.status="fulfilled",e.value=a,gm(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,hm(t,a)))}function Yu(t,e,a){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do e.status="rejected",e.reason=a,gm(e),e=e.next;while(e!==s)}t.action=null}function gm(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function ym(t,e){return e}function vm(t,e){if(Ct){var a=kt.formState;if(a!==null){t:{var s=gt;if(Ct){if(Bt){e:{for(var o=Bt,u=Je;o.nodeType!==8;){if(!u){o=null;break e}if(o=Ie(o.nextSibling),o===null){o=null;break e}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){Bt=Ie(o.nextSibling),s=o.data==="F!";break t}}na(s)}s=!1}s&&(e=a[0])}}return a=we(),a.memoizedState=a.baseState=e,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ym,lastRenderedState:e},a.queue=s,a=Lm.bind(null,gt,s),s.dispatch=a,s=qu(!1),u=Fu.bind(null,gt,!1,s.queue),s=we(),o={state:e,dispatch:null,action:t,pending:null},s.queue=o,a=$1.bind(null,gt,o,u,a),o.dispatch=a,s.memoizedState=t,[e,a,!1]}function bm(t){var e=Ft();return xm(e,zt,t)}function xm(t,e,a){if(e=Hu(t,e,ym)[0],t=or(Bn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var s=ks(e)}catch(m){throw m===Ri?Il:m}else s=e;e=Ft();var o=e.queue,u=o.dispatch;return a!==e.memoizedState&&(gt.flags|=2048,ki(9,{destroy:void 0},tS.bind(null,o,a),null)),[s,u,t]}function tS(t,e){t.action=e}function Sm(t){var e=Ft(),a=zt;if(a!==null)return xm(e,a,t);Ft(),e=e.memoizedState,a=Ft();var s=a.queue.dispatch;return a.memoizedState=t,[e,s,!1]}function ki(t,e,a,s){return t={tag:t,create:a,deps:s,inst:e,next:null},e=gt.updateQueue,e===null&&(e=lr(),gt.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(s=a.next,a.next=t,t.next=s,e.lastEffect=t),t}function Tm(){return Ft().memoizedState}function ur(t,e,a,s){var o=we();gt.flags|=t,o.memoizedState=ki(1|e,{destroy:void 0},a,s===void 0?null:s)}function cr(t,e,a,s){var o=Ft();s=s===void 0?null:s;var u=o.memoizedState.inst;zt!==null&&s!==null&&_u(s,zt.memoizedState.deps)?o.memoizedState=ki(e,u,a,s):(gt.flags|=t,o.memoizedState=ki(1|e,u,a,s))}function wm(t,e){ur(8390656,8,t,e)}function Xu(t,e){cr(2048,8,t,e)}function eS(t){gt.flags|=4;var e=gt.updateQueue;if(e===null)e=lr(),gt.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function Em(t){var e=Ft().memoizedState;return eS({ref:e,nextImpl:t}),function(){if((Dt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Am(t,e){return cr(4,2,t,e)}function Cm(t,e){return cr(4,4,t,e)}function Nm(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Mm(t,e,a){a=a!=null?a.concat([t]):null,cr(4,4,Nm.bind(null,e,t),a)}function Ku(){}function jm(t,e){var a=Ft();e=e===void 0?null:e;var s=a.memoizedState;return e!==null&&_u(e,s[1])?s[0]:(a.memoizedState=[t,e],t)}function Dm(t,e){var a=Ft();e=e===void 0?null:e;var s=a.memoizedState;if(e!==null&&_u(e,s[1]))return s[0];if(s=t(),Qa){yn(!0);try{t()}finally{yn(!1)}}return a.memoizedState=[s,e],s}function Pu(t,e,a){return a===void 0||(Un&1073741824)!==0&&(wt&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=Rp(),gt.lanes|=t,fa|=t,a)}function Rm(t,e,a,s){return Ve(a,e)?a:zi.current!==null?(t=Pu(t,a,s),Ve(t,e)||(It=!0),t):(Un&42)===0||(Un&1073741824)!==0&&(wt&261930)===0?(It=!0,t.memoizedState=a):(t=Rp(),gt.lanes|=t,fa|=t,e)}function Om(t,e,a,s,o){var u=Z.p;Z.p=u!==0&&8>u?u:8;var m=_.T,x={};_.T=x,Fu(t,!1,e,a);try{var w=o(),z=_.S;if(z!==null&&z(x,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var H=J1(w,s);Ls(t,e,H,Ge(t))}else Ls(t,e,s,Ge(t))}catch(X){Ls(t,e,{then:function(){},status:"rejected",reason:X},Ge())}finally{Z.p=u,m!==null&&x.types!==null&&(m.types=x.types),_.T=m}}function nS(){}function Zu(t,e,a,s){if(t.tag!==5)throw Error(r(476));var o=zm(t).queue;Om(t,o,e,$,a===null?nS:function(){return _m(t),a(s)})}function zm(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:$},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function _m(t){var e=zm(t);e.next===null&&(e=t.alternate.memoizedState),Ls(t,e.next.queue,{},Ge())}function Qu(){return fe(tl)}function Vm(){return Ft().memoizedState}function km(){return Ft().memoizedState}function aS(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=Ge();t=sa(a);var s=la(e,t,a);s!==null&&(_e(s,e,a),Os(s,e,a)),e={cache:wu()},t.payload=e;return}e=e.return}}function iS(t,e,a){var s=Ge();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},fr(t)?Um(e,a):(a=du(t,e,a,s),a!==null&&(_e(a,t,s),Bm(a,e,s)))}function Lm(t,e,a){var s=Ge();Ls(t,e,a,s)}function Ls(t,e,a,s){var o={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(fr(t))Um(e,o);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var m=e.lastRenderedState,x=u(m,a);if(o.hasEagerState=!0,o.eagerState=x,Ve(x,m))return Kl(t,e,o,0),kt===null&&Xl(),!1}catch{}if(a=du(t,e,o,s),a!==null)return _e(a,t,s),Bm(a,e,s),!0}return!1}function Fu(t,e,a,s){if(s={lane:2,revertLane:Nc(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},fr(t)){if(e)throw Error(r(479))}else e=du(t,a,s,2),e!==null&&_e(e,t,2)}function fr(t){var e=t.alternate;return t===gt||e!==null&&e===gt}function Um(t,e){_i=ir=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function Bm(t,e,a){if((a&4194048)!==0){var s=e.lanes;s&=t.pendingLanes,a|=s,e.lanes=a,ct(t,a)}}var Us={readContext:fe,use:rr,useCallback:Kt,useContext:Kt,useEffect:Kt,useImperativeHandle:Kt,useLayoutEffect:Kt,useInsertionEffect:Kt,useMemo:Kt,useReducer:Kt,useRef:Kt,useState:Kt,useDebugValue:Kt,useDeferredValue:Kt,useTransition:Kt,useSyncExternalStore:Kt,useId:Kt,useHostTransitionStatus:Kt,useFormState:Kt,useActionState:Kt,useOptimistic:Kt,useMemoCache:Kt,useCacheRefresh:Kt};Us.useEffectEvent=Kt;var Hm={readContext:fe,use:rr,useCallback:function(t,e){return we().memoizedState=[t,e===void 0?null:e],t},useContext:fe,useEffect:wm,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,ur(4194308,4,Nm.bind(null,e,t),a)},useLayoutEffect:function(t,e){return ur(4194308,4,t,e)},useInsertionEffect:function(t,e){ur(4,2,t,e)},useMemo:function(t,e){var a=we();e=e===void 0?null:e;var s=t();if(Qa){yn(!0);try{t()}finally{yn(!1)}}return a.memoizedState=[s,e],s},useReducer:function(t,e,a){var s=we();if(a!==void 0){var o=a(e);if(Qa){yn(!0);try{a(e)}finally{yn(!1)}}}else o=e;return s.memoizedState=s.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},s.queue=t,t=t.dispatch=iS.bind(null,gt,t),[s.memoizedState,t]},useRef:function(t){var e=we();return t={current:t},e.memoizedState=t},useState:function(t){t=qu(t);var e=t.queue,a=Lm.bind(null,gt,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:Ku,useDeferredValue:function(t,e){var a=we();return Pu(a,t,e)},useTransition:function(){var t=qu(!1);return t=Om.bind(null,gt,t.queue,!0,!1),we().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var s=gt,o=we();if(Ct){if(a===void 0)throw Error(r(407));a=a()}else{if(a=e(),kt===null)throw Error(r(349));(wt&127)!==0||rm(s,e,a)}o.memoizedState=a;var u={value:a,getSnapshot:e};return o.queue=u,wm(um.bind(null,s,u,t),[t]),s.flags|=2048,ki(9,{destroy:void 0},om.bind(null,s,u,a,e),null),a},useId:function(){var t=we(),e=kt.identifierPrefix;if(Ct){var a=Sn,s=xn;a=(s&~(1<<32-ye(s)-1)).toString(32)+a,e="_"+e+"R_"+a,a=sr++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=W1++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Qu,useFormState:vm,useActionState:vm,useOptimistic:function(t){var e=we();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=Fu.bind(null,gt,!0,a),a.dispatch=e,[t,e]},useMemoCache:Bu,useCacheRefresh:function(){return we().memoizedState=aS.bind(null,gt)},useEffectEvent:function(t){var e=we(),a={impl:t};return e.memoizedState=a,function(){if((Dt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Ju={readContext:fe,use:rr,useCallback:jm,useContext:fe,useEffect:Xu,useImperativeHandle:Mm,useInsertionEffect:Am,useLayoutEffect:Cm,useMemo:Dm,useReducer:or,useRef:Tm,useState:function(){return or(Bn)},useDebugValue:Ku,useDeferredValue:function(t,e){var a=Ft();return Rm(a,zt.memoizedState,t,e)},useTransition:function(){var t=or(Bn)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:ks(t),e]},useSyncExternalStore:lm,useId:Vm,useHostTransitionStatus:Qu,useFormState:bm,useActionState:bm,useOptimistic:function(t,e){var a=Ft();return dm(a,zt,t,e)},useMemoCache:Bu,useCacheRefresh:km};Ju.useEffectEvent=Em;var Gm={readContext:fe,use:rr,useCallback:jm,useContext:fe,useEffect:Xu,useImperativeHandle:Mm,useInsertionEffect:Am,useLayoutEffect:Cm,useMemo:Dm,useReducer:Gu,useRef:Tm,useState:function(){return Gu(Bn)},useDebugValue:Ku,useDeferredValue:function(t,e){var a=Ft();return zt===null?Pu(a,t,e):Rm(a,zt.memoizedState,t,e)},useTransition:function(){var t=Gu(Bn)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:ks(t),e]},useSyncExternalStore:lm,useId:Vm,useHostTransitionStatus:Qu,useFormState:Sm,useActionState:Sm,useOptimistic:function(t,e){var a=Ft();return zt!==null?dm(a,zt,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Bu,useCacheRefresh:km};Gm.useEffectEvent=Em;function Wu(t,e,a,s){e=t.memoizedState,a=a(s,e),a=a==null?e:b({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var Iu={enqueueSetState:function(t,e,a){t=t._reactInternals;var s=Ge(),o=sa(s);o.payload=e,a!=null&&(o.callback=a),e=la(t,o,s),e!==null&&(_e(e,t,s),Os(e,t,s))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var s=Ge(),o=sa(s);o.tag=1,o.payload=e,a!=null&&(o.callback=a),e=la(t,o,s),e!==null&&(_e(e,t,s),Os(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=Ge(),s=sa(a);s.tag=2,e!=null&&(s.callback=e),e=la(t,s,a),e!==null&&(_e(e,t,a),Os(e,t,a))}};function qm(t,e,a,s,o,u,m){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,u,m):e.prototype&&e.prototype.isPureReactComponent?!Es(a,s)||!Es(o,u):!0}function Ym(t,e,a,s){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,s),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,s),e.state!==t&&Iu.enqueueReplaceState(e,e.state,null)}function Fa(t,e){var a=e;if("ref"in e){a={};for(var s in e)s!=="ref"&&(a[s]=e[s])}if(t=t.defaultProps){a===e&&(a=b({},a));for(var o in t)a[o]===void 0&&(a[o]=t[o])}return a}function Xm(t){Yl(t)}function Km(t){console.error(t)}function Pm(t){Yl(t)}function dr(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(s){setTimeout(function(){throw s})}}function Zm(t,e,a){try{var s=t.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function $u(t,e,a){return a=sa(a),a.tag=3,a.payload={element:null},a.callback=function(){dr(t,e)},a}function Qm(t){return t=sa(t),t.tag=3,t}function Fm(t,e,a,s){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var u=s.value;t.payload=function(){return o(u)},t.callback=function(){Zm(e,a,s)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(t.callback=function(){Zm(e,a,s),typeof o!="function"&&(da===null?da=new Set([this]):da.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function sS(t,e,a,s,o){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(e=a.alternate,e!==null&&Mi(e,a,o,!0),a=Le.current,a!==null){switch(a.tag){case 31:case 13:return We===null?Er():a.alternate===null&&Pt===0&&(Pt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,s===$l?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([s]):e.add(s),Ec(t,s,o)),!1;case 22:return a.flags|=65536,s===$l?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([s]):a.add(s)),Ec(t,s,o)),!1}throw Error(r(435,a.tag))}return Ec(t,s,o),Er(),!1}if(Ct)return e=Le.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,s!==vu&&(t=Error(r(422),{cause:s}),Ns(Ze(t,a)))):(s!==vu&&(e=Error(r(423),{cause:s}),Ns(Ze(e,a))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,s=Ze(s,a),o=$u(t.stateNode,s,o),ju(t,o),Pt!==4&&(Pt=2)),!1;var u=Error(r(520),{cause:s});if(u=Ze(u,a),Ps===null?Ps=[u]:Ps.push(u),Pt!==4&&(Pt=2),e===null)return!0;s=Ze(s,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=o&-o,a.lanes|=t,t=$u(a.stateNode,s,t),ju(a,t),!1;case 1:if(e=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(da===null||!da.has(u))))return a.flags|=65536,o&=-o,a.lanes|=o,o=Qm(o),Fm(o,t,a,s),ju(a,o),!1}a=a.return}while(a!==null);return!1}var tc=Error(r(461)),It=!1;function de(t,e,a,s){e.child=t===null?$h(e,null,a,s):Za(e,t.child,a,s)}function Jm(t,e,a,s,o){a=a.render;var u=e.ref;if("ref"in s){var m={};for(var x in s)x!=="ref"&&(m[x]=s[x])}else m=s;return Ya(e),s=Vu(t,e,a,m,u,o),x=ku(),t!==null&&!It?(Lu(t,e,o),Hn(t,e,o)):(Ct&&x&&gu(e),e.flags|=1,de(t,e,s,o),e.child)}function Wm(t,e,a,s,o){if(t===null){var u=a.type;return typeof u=="function"&&!hu(u)&&u.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=u,Im(t,e,u,s,o)):(t=Zl(a.type,null,s,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!oc(t,o)){var m=u.memoizedProps;if(a=a.compare,a=a!==null?a:Es,a(m,s)&&t.ref===e.ref)return Hn(t,e,o)}return e.flags|=1,t=_n(u,s),t.ref=e.ref,t.return=e,e.child=t}function Im(t,e,a,s,o){if(t!==null){var u=t.memoizedProps;if(Es(u,s)&&t.ref===e.ref)if(It=!1,e.pendingProps=s=u,oc(t,o))(t.flags&131072)!==0&&(It=!0);else return e.lanes=t.lanes,Hn(t,e,o)}return ec(t,e,a,s,o)}function $m(t,e,a,s){var o=s.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,t!==null){for(s=e.child=t.child,o=0;s!==null;)o=o|s.lanes|s.childLanes,s=s.sibling;s=o&~u}else s=0,e.child=null;return tp(t,e,u,a,s)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Wl(e,u!==null?u.cachePool:null),u!==null?nm(e,u):Ru(),am(e);else return s=e.lanes=536870912,tp(t,e,u!==null?u.baseLanes|a:a,a,s)}else u!==null?(Wl(e,u.cachePool),nm(e,u),oa(),e.memoizedState=null):(t!==null&&Wl(e,null),Ru(),oa());return de(t,e,o,a),e.child}function Bs(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function tp(t,e,a,s,o){var u=Au();return u=u===null?null:{parent:Jt._currentValue,pool:u},e.memoizedState={baseLanes:a,cachePool:u},t!==null&&Wl(e,null),Ru(),am(e),t!==null&&Mi(t,e,s,!0),e.childLanes=o,null}function hr(t,e){return e=pr({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function ep(t,e,a){return Za(e,t.child,null,a),t=hr(e,e.pendingProps),t.flags|=2,Ue(e),e.memoizedState=null,t}function lS(t,e,a){var s=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Ct){if(s.mode==="hidden")return t=hr(e,s),e.lanes=536870912,Bs(null,t);if(zu(e),(t=Bt)?(t=hg(t,Je),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ta!==null?{id:xn,overflow:Sn}:null,retryLane:536870912,hydrationErrors:null},a=Uh(t),a.return=e,e.child=a,ce=e,Bt=null)):t=null,t===null)throw na(e);return e.lanes=536870912,null}return hr(e,s)}var u=t.memoizedState;if(u!==null){var m=u.dehydrated;if(zu(e),o)if(e.flags&256)e.flags&=-257,e=ep(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(It||Mi(t,e,a,!1),o=(a&t.childLanes)!==0,It||o){if(s=kt,s!==null&&(m=ve(s,a),m!==0&&m!==u.retryLane))throw u.retryLane=m,Ba(t,m),_e(s,t,m),tc;Er(),e=ep(t,e,a)}else t=u.treeContext,Bt=Ie(m.nextSibling),ce=e,Ct=!0,ea=null,Je=!1,t!==null&&Gh(e,t),e=hr(e,s),e.flags|=4096;return e}return t=_n(t.child,{mode:s.mode,children:s.children}),t.ref=e.ref,e.child=t,t.return=e,t}function mr(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function ec(t,e,a,s,o){return Ya(e),a=Vu(t,e,a,s,void 0,o),s=ku(),t!==null&&!It?(Lu(t,e,o),Hn(t,e,o)):(Ct&&s&&gu(e),e.flags|=1,de(t,e,a,o),e.child)}function np(t,e,a,s,o,u){return Ya(e),e.updateQueue=null,a=sm(e,s,a,o),im(t),s=ku(),t!==null&&!It?(Lu(t,e,u),Hn(t,e,u)):(Ct&&s&&gu(e),e.flags|=1,de(t,e,a,u),e.child)}function ap(t,e,a,s,o){if(Ya(e),e.stateNode===null){var u=Ei,m=a.contextType;typeof m=="object"&&m!==null&&(u=fe(m)),u=new a(s,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Iu,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=s,u.state=e.memoizedState,u.refs={},Nu(e),m=a.contextType,u.context=typeof m=="object"&&m!==null?fe(m):Ei,u.state=e.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(Wu(e,a,m,s),u.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(m=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),m!==u.state&&Iu.enqueueReplaceState(u,u.state,null),_s(e,s,u,o),zs(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),s=!0}else if(t===null){u=e.stateNode;var x=e.memoizedProps,w=Fa(a,x);u.props=w;var z=u.context,H=a.contextType;m=Ei,typeof H=="object"&&H!==null&&(m=fe(H));var X=a.getDerivedStateFromProps;H=typeof X=="function"||typeof u.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,H||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(x||z!==m)&&Ym(e,u,s,m),ia=!1;var V=e.memoizedState;u.state=V,_s(e,s,u,o),zs(),z=e.memoizedState,x||V!==z||ia?(typeof X=="function"&&(Wu(e,a,X,s),z=e.memoizedState),(w=ia||qm(e,a,w,s,V,z,m))?(H||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=s,e.memoizedState=z),u.props=s,u.state=z,u.context=m,s=w):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),s=!1)}else{u=e.stateNode,Mu(t,e),m=e.memoizedProps,H=Fa(a,m),u.props=H,X=e.pendingProps,V=u.context,z=a.contextType,w=Ei,typeof z=="object"&&z!==null&&(w=fe(z)),x=a.getDerivedStateFromProps,(z=typeof x=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(m!==X||V!==w)&&Ym(e,u,s,w),ia=!1,V=e.memoizedState,u.state=V,_s(e,s,u,o),zs();var U=e.memoizedState;m!==X||V!==U||ia||t!==null&&t.dependencies!==null&&Fl(t.dependencies)?(typeof x=="function"&&(Wu(e,a,x,s),U=e.memoizedState),(H=ia||qm(e,a,H,s,V,U,w)||t!==null&&t.dependencies!==null&&Fl(t.dependencies))?(z||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(s,U,w),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(s,U,w)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||m===t.memoizedProps&&V===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&V===t.memoizedState||(e.flags|=1024),e.memoizedProps=s,e.memoizedState=U),u.props=s,u.state=U,u.context=w,s=H):(typeof u.componentDidUpdate!="function"||m===t.memoizedProps&&V===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&V===t.memoizedState||(e.flags|=1024),s=!1)}return u=s,mr(t,e),s=(e.flags&128)!==0,u||s?(u=e.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&s?(e.child=Za(e,t.child,null,o),e.child=Za(e,null,a,o)):de(t,e,a,o),e.memoizedState=u.state,t=e.child):t=Hn(t,e,o),t}function ip(t,e,a,s){return Ga(),e.flags|=256,de(t,e,a,s),e.child}var nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ac(t){return{baseLanes:t,cachePool:Zh()}}function ic(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=He),t}function sp(t,e,a){var s=e.pendingProps,o=!1,u=(e.flags&128)!==0,m;if((m=u)||(m=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),m&&(o=!0,e.flags&=-129),m=(e.flags&32)!==0,e.flags&=-33,t===null){if(Ct){if(o?ra(e):oa(),(t=Bt)?(t=hg(t,Je),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ta!==null?{id:xn,overflow:Sn}:null,retryLane:536870912,hydrationErrors:null},a=Uh(t),a.return=e,e.child=a,ce=e,Bt=null)):t=null,t===null)throw na(e);return Hc(t)?e.lanes=32:e.lanes=536870912,null}var x=s.children;return s=s.fallback,o?(oa(),o=e.mode,x=pr({mode:"hidden",children:x},o),s=Ha(s,o,a,null),x.return=e,s.return=e,x.sibling=s,e.child=x,s=e.child,s.memoizedState=ac(a),s.childLanes=ic(t,m,a),e.memoizedState=nc,Bs(null,s)):(ra(e),sc(e,x))}var w=t.memoizedState;if(w!==null&&(x=w.dehydrated,x!==null)){if(u)e.flags&256?(ra(e),e.flags&=-257,e=lc(t,e,a)):e.memoizedState!==null?(oa(),e.child=t.child,e.flags|=128,e=null):(oa(),x=s.fallback,o=e.mode,s=pr({mode:"visible",children:s.children},o),x=Ha(x,o,a,null),x.flags|=2,s.return=e,x.return=e,s.sibling=x,e.child=s,Za(e,t.child,null,a),s=e.child,s.memoizedState=ac(a),s.childLanes=ic(t,m,a),e.memoizedState=nc,e=Bs(null,s));else if(ra(e),Hc(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var z=m.dgst;m=z,s=Error(r(419)),s.stack="",s.digest=m,Ns({value:s,source:null,stack:null}),e=lc(t,e,a)}else if(It||Mi(t,e,a,!1),m=(a&t.childLanes)!==0,It||m){if(m=kt,m!==null&&(s=ve(m,a),s!==0&&s!==w.retryLane))throw w.retryLane=s,Ba(t,s),_e(m,t,s),tc;Bc(x)||Er(),e=lc(t,e,a)}else Bc(x)?(e.flags|=192,e.child=t.child,e=null):(t=w.treeContext,Bt=Ie(x.nextSibling),ce=e,Ct=!0,ea=null,Je=!1,t!==null&&Gh(e,t),e=sc(e,s.children),e.flags|=4096);return e}return o?(oa(),x=s.fallback,o=e.mode,w=t.child,z=w.sibling,s=_n(w,{mode:"hidden",children:s.children}),s.subtreeFlags=w.subtreeFlags&65011712,z!==null?x=_n(z,x):(x=Ha(x,o,a,null),x.flags|=2),x.return=e,s.return=e,s.sibling=x,e.child=s,Bs(null,s),s=e.child,x=t.child.memoizedState,x===null?x=ac(a):(o=x.cachePool,o!==null?(w=Jt._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=Zh(),x={baseLanes:x.baseLanes|a,cachePool:o}),s.memoizedState=x,s.childLanes=ic(t,m,a),e.memoizedState=nc,Bs(t.child,s)):(ra(e),a=t.child,t=a.sibling,a=_n(a,{mode:"visible",children:s.children}),a.return=e,a.sibling=null,t!==null&&(m=e.deletions,m===null?(e.deletions=[t],e.flags|=16):m.push(t)),e.child=a,e.memoizedState=null,a)}function sc(t,e){return e=pr({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function pr(t,e){return t=ke(22,t,null,e),t.lanes=0,t}function lc(t,e,a){return Za(e,t.child,null,a),t=sc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function lp(t,e,a){t.lanes|=e;var s=t.alternate;s!==null&&(s.lanes|=e),Su(t.return,e,a)}function rc(t,e,a,s,o,u){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:o,treeForkCount:u}:(m.isBackwards=e,m.rendering=null,m.renderingStartTime=0,m.last=s,m.tail=a,m.tailMode=o,m.treeForkCount=u)}function rp(t,e,a){var s=e.pendingProps,o=s.revealOrder,u=s.tail;s=s.children;var m=Qt.current,x=(m&2)!==0;if(x?(m=m&1|2,e.flags|=128):m&=1,J(Qt,m),de(t,e,s,a),s=Ct?Cs:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&lp(t,a,e);else if(t.tag===19)lp(t,a,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(o){case"forwards":for(a=e.child,o=null;a!==null;)t=a.alternate,t!==null&&ar(t)===null&&(o=a),a=a.sibling;a=o,a===null?(o=e.child,e.child=null):(o=a.sibling,a.sibling=null),rc(e,!1,o,a,u,s);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&ar(t)===null){e.child=o;break}t=o.sibling,o.sibling=a,a=o,o=t}rc(e,!0,a,null,u,s);break;case"together":rc(e,!1,null,null,void 0,s);break;default:e.memoizedState=null}return e.child}function Hn(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),fa|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Mi(t,e,a,!1),(a&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,a=_n(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=_n(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function oc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Fl(t)))}function rS(t,e,a){switch(e.tag){case 3:qt(e,e.stateNode.containerInfo),aa(e,Jt,t.memoizedState.cache),Ga();break;case 27:case 5:ie(e);break;case 4:qt(e,e.stateNode.containerInfo);break;case 10:aa(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,zu(e),null;break;case 13:var s=e.memoizedState;if(s!==null)return s.dehydrated!==null?(ra(e),e.flags|=128,null):(a&e.child.childLanes)!==0?sp(t,e,a):(ra(e),t=Hn(t,e,a),t!==null?t.sibling:null);ra(e);break;case 19:var o=(t.flags&128)!==0;if(s=(a&e.childLanes)!==0,s||(Mi(t,e,a,!1),s=(a&e.childLanes)!==0),o){if(s)return rp(t,e,a);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),J(Qt,Qt.current),s)break;return null;case 22:return e.lanes=0,$m(t,e,a,e.pendingProps);case 24:aa(e,Jt,t.memoizedState.cache)}return Hn(t,e,a)}function op(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)It=!0;else{if(!oc(t,a)&&(e.flags&128)===0)return It=!1,rS(t,e,a);It=(t.flags&131072)!==0}else It=!1,Ct&&(e.flags&1048576)!==0&&Hh(e,Cs,e.index);switch(e.lanes=0,e.tag){case 16:t:{var s=e.pendingProps;if(t=Ka(e.elementType),e.type=t,typeof t=="function")hu(t)?(s=Fa(t,s),e.tag=1,e=ap(null,e,t,s,a)):(e.tag=0,e=ec(null,e,t,s,a));else{if(t!=null){var o=t.$$typeof;if(o===B){e.tag=11,e=Jm(null,e,t,s,a);break t}else if(o===P){e.tag=14,e=Wm(null,e,t,s,a);break t}}throw e=Gt(t)||t,Error(r(306,e,""))}}return e;case 0:return ec(t,e,e.type,e.pendingProps,a);case 1:return s=e.type,o=Fa(s,e.pendingProps),ap(t,e,s,o,a);case 3:t:{if(qt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));s=e.pendingProps;var u=e.memoizedState;o=u.element,Mu(t,e),_s(e,s,null,a);var m=e.memoizedState;if(s=m.cache,aa(e,Jt,s),s!==u.cache&&Tu(e,[Jt],a,!0),zs(),s=m.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:m.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=ip(t,e,s,a);break t}else if(s!==o){o=Ze(Error(r(424)),e),Ns(o),e=ip(t,e,s,a);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Bt=Ie(t.firstChild),ce=e,Ct=!0,ea=null,Je=!0,a=$h(e,null,s,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ga(),s===o){e=Hn(t,e,a);break t}de(t,e,s,a)}e=e.child}return e;case 26:return mr(t,e),t===null?(a=bg(e.type,null,e.pendingProps,null))?e.memoizedState=a:Ct||(a=e.type,t=e.pendingProps,s=Rr(rt.current).createElement(a),s[ue]=e,s[Me]=t,he(s,a,t),se(s),e.stateNode=s):e.memoizedState=bg(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ie(e),t===null&&Ct&&(s=e.stateNode=gg(e.type,e.pendingProps,rt.current),ce=e,Je=!0,o=Bt,ga(e.type)?(Gc=o,Bt=Ie(s.firstChild)):Bt=o),de(t,e,e.pendingProps.children,a),mr(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Ct&&((o=s=Bt)&&(s=LS(s,e.type,e.pendingProps,Je),s!==null?(e.stateNode=s,ce=e,Bt=Ie(s.firstChild),Je=!1,o=!0):o=!1),o||na(e)),ie(e),o=e.type,u=e.pendingProps,m=t!==null?t.memoizedProps:null,s=u.children,kc(o,u)?s=null:m!==null&&kc(o,m)&&(e.flags|=32),e.memoizedState!==null&&(o=Vu(t,e,I1,null,null,a),tl._currentValue=o),mr(t,e),de(t,e,s,a),e.child;case 6:return t===null&&Ct&&((t=a=Bt)&&(a=US(a,e.pendingProps,Je),a!==null?(e.stateNode=a,ce=e,Bt=null,t=!0):t=!1),t||na(e)),null;case 13:return sp(t,e,a);case 4:return qt(e,e.stateNode.containerInfo),s=e.pendingProps,t===null?e.child=Za(e,null,s,a):de(t,e,s,a),e.child;case 11:return Jm(t,e,e.type,e.pendingProps,a);case 7:return de(t,e,e.pendingProps,a),e.child;case 8:return de(t,e,e.pendingProps.children,a),e.child;case 12:return de(t,e,e.pendingProps.children,a),e.child;case 10:return s=e.pendingProps,aa(e,e.type,s.value),de(t,e,s.children,a),e.child;case 9:return o=e.type._context,s=e.pendingProps.children,Ya(e),o=fe(o),s=s(o),e.flags|=1,de(t,e,s,a),e.child;case 14:return Wm(t,e,e.type,e.pendingProps,a);case 15:return Im(t,e,e.type,e.pendingProps,a);case 19:return rp(t,e,a);case 31:return lS(t,e,a);case 22:return $m(t,e,a,e.pendingProps);case 24:return Ya(e),s=fe(Jt),t===null?(o=Au(),o===null&&(o=kt,u=wu(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=a),o=u),e.memoizedState={parent:s,cache:o},Nu(e),aa(e,Jt,o)):((t.lanes&a)!==0&&(Mu(t,e),_s(e,null,null,a),zs()),o=t.memoizedState,u=e.memoizedState,o.parent!==s?(o={parent:s,cache:s},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),aa(e,Jt,s)):(s=u.cache,aa(e,Jt,s),s!==o.cache&&Tu(e,[Jt],a,!0))),de(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function Gn(t){t.flags|=4}function uc(t,e,a,s,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(Vp())t.flags|=8192;else throw Pa=$l,Cu}else t.flags&=-16777217}function up(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Eg(e))if(Vp())t.flags|=8192;else throw Pa=$l,Cu}function gr(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?ui():536870912,t.lanes|=e,Hi|=e)}function Hs(t,e){if(!Ct)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function Ht(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,s=0;if(e)for(var o=t.child;o!==null;)a|=o.lanes|o.childLanes,s|=o.subtreeFlags&65011712,s|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)a|=o.lanes|o.childLanes,s|=o.subtreeFlags,s|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=s,t.childLanes=a,e}function oS(t,e,a){var s=e.pendingProps;switch(yu(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ht(e),null;case 1:return Ht(e),null;case 3:return a=e.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),e.memoizedState.cache!==s&&(e.flags|=2048),Ln(Jt),mt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Ni(e)?Gn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,bu())),Ht(e),null;case 26:var o=e.type,u=e.memoizedState;return t===null?(Gn(e),u!==null?(Ht(e),up(e,u)):(Ht(e),uc(e,o,null,s,a))):u?u!==t.memoizedState?(Gn(e),Ht(e),up(e,u)):(Ht(e),e.flags&=-16777217):(t=t.memoizedProps,t!==s&&Gn(e),Ht(e),uc(e,o,t,s,a)),null;case 27:if(qe(e),a=rt.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&Gn(e);else{if(!s){if(e.stateNode===null)throw Error(r(166));return Ht(e),null}t=et.current,Ni(e)?qh(e):(t=gg(o,s,a),e.stateNode=t,Gn(e))}return Ht(e),null;case 5:if(qe(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&Gn(e);else{if(!s){if(e.stateNode===null)throw Error(r(166));return Ht(e),null}if(u=et.current,Ni(e))qh(e);else{var m=Rr(rt.current);switch(u){case 1:u=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=m.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof s.is=="string"?m.createElement("select",{is:s.is}):m.createElement("select"),s.multiple?u.multiple=!0:s.size&&(u.size=s.size);break;default:u=typeof s.is=="string"?m.createElement(o,{is:s.is}):m.createElement(o)}}u[ue]=e,u[Me]=s;t:for(m=e.child;m!==null;){if(m.tag===5||m.tag===6)u.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break t;for(;m.sibling===null;){if(m.return===null||m.return===e)break t;m=m.return}m.sibling.return=m.return,m=m.sibling}e.stateNode=u;t:switch(he(u,o,s),o){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break t;case"img":s=!0;break t;default:s=!1}s&&Gn(e)}}return Ht(e),uc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==s&&Gn(e);else{if(typeof s!="string"&&e.stateNode===null)throw Error(r(166));if(t=rt.current,Ni(e)){if(t=e.stateNode,a=e.memoizedProps,s=null,o=ce,o!==null)switch(o.tag){case 27:case 5:s=o.memoizedProps}t[ue]=e,t=!!(t.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||sg(t.nodeValue,a)),t||na(e,!0)}else t=Rr(t).createTextNode(s),t[ue]=e,e.stateNode=t}return Ht(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(s=Ni(e),a!==null){if(t===null){if(!s)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[ue]=e}else Ga(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ht(e),t=!1}else a=bu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(Ue(e),e):(Ue(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Ht(e),null;case 13:if(s=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=Ni(e),s!==null&&s.dehydrated!==null){if(t===null){if(!o)throw Error(r(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[ue]=e}else Ga(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ht(e),o=!1}else o=bu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(Ue(e),e):(Ue(e),null)}return Ue(e),(e.flags&128)!==0?(e.lanes=a,e):(a=s!==null,t=t!==null&&t.memoizedState!==null,a&&(s=e.child,o=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(o=s.alternate.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==o&&(s.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),gr(e,e.updateQueue),Ht(e),null);case 4:return mt(),t===null&&Rc(e.stateNode.containerInfo),Ht(e),null;case 10:return Ln(e.type),Ht(e),null;case 19:if(q(Qt),s=e.memoizedState,s===null)return Ht(e),null;if(o=(e.flags&128)!==0,u=s.rendering,u===null)if(o)Hs(s,!1);else{if(Pt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=ar(t),u!==null){for(e.flags|=128,Hs(s,!1),t=u.updateQueue,e.updateQueue=t,gr(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)Lh(a,t),a=a.sibling;return J(Qt,Qt.current&1|2),Ct&&Vn(e,s.treeForkCount),e.child}t=t.sibling}s.tail!==null&&ge()>Sr&&(e.flags|=128,o=!0,Hs(s,!1),e.lanes=4194304)}else{if(!o)if(t=ar(u),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,gr(e,t),Hs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!Ct)return Ht(e),null}else 2*ge()-s.renderingStartTime>Sr&&a!==536870912&&(e.flags|=128,o=!0,Hs(s,!1),e.lanes=4194304);s.isBackwards?(u.sibling=e.child,e.child=u):(t=s.last,t!==null?t.sibling=u:e.child=u,s.last=u)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ge(),t.sibling=null,a=Qt.current,J(Qt,o?a&1|2:a&1),Ct&&Vn(e,s.treeForkCount),t):(Ht(e),null);case 22:case 23:return Ue(e),Ou(),s=e.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(e.flags|=8192):s&&(e.flags|=8192),s?(a&536870912)!==0&&(e.flags&128)===0&&(Ht(e),e.subtreeFlags&6&&(e.flags|=8192)):Ht(e),a=e.updateQueue,a!==null&&gr(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),s=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),s!==a&&(e.flags|=2048),t!==null&&q(Xa),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Ln(Jt),Ht(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function uS(t,e){switch(yu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ln(Jt),mt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return qe(e),null;case 31:if(e.memoizedState!==null){if(Ue(e),e.alternate===null)throw Error(r(340));Ga()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ue(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Ga()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return q(Qt),null;case 4:return mt(),null;case 10:return Ln(e.type),null;case 22:case 23:return Ue(e),Ou(),t!==null&&q(Xa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Ln(Jt),null;case 25:return null;default:return null}}function cp(t,e){switch(yu(e),e.tag){case 3:Ln(Jt),mt();break;case 26:case 27:case 5:qe(e);break;case 4:mt();break;case 31:e.memoizedState!==null&&Ue(e);break;case 13:Ue(e);break;case 19:q(Qt);break;case 10:Ln(e.type);break;case 22:case 23:Ue(e),Ou(),t!==null&&q(Xa);break;case 24:Ln(Jt)}}function Gs(t,e){try{var a=e.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var o=s.next;a=o;do{if((a.tag&t)===t){s=void 0;var u=a.create,m=a.inst;s=u(),m.destroy=s}a=a.next}while(a!==o)}}catch(x){Ot(e,e.return,x)}}function ua(t,e,a){try{var s=e.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var u=o.next;s=u;do{if((s.tag&t)===t){var m=s.inst,x=m.destroy;if(x!==void 0){m.destroy=void 0,o=e;var w=a,z=x;try{z()}catch(H){Ot(o,w,H)}}}s=s.next}while(s!==u)}}catch(H){Ot(e,e.return,H)}}function fp(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{em(e,a)}catch(s){Ot(t,t.return,s)}}}function dp(t,e,a){a.props=Fa(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(s){Ot(t,e,s)}}function qs(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof a=="function"?t.refCleanup=a(s):a.current=s}}catch(o){Ot(t,e,o)}}function Tn(t,e){var a=t.ref,s=t.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(o){Ot(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Ot(t,e,o)}else a.current=null}function hp(t){var e=t.type,a=t.memoizedProps,s=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break t;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(o){Ot(t,t.return,o)}}function cc(t,e,a){try{var s=t.stateNode;RS(s,t.type,a,e),s[Me]=e}catch(o){Ot(t,t.return,o)}}function mp(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ga(t.type)||t.tag===4}function fc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||mp(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&&ga(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 dc(t,e,a){var s=t.tag;if(s===5||s===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=On));else if(s!==4&&(s===27&&ga(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(dc(t,e,a),t=t.sibling;t!==null;)dc(t,e,a),t=t.sibling}function yr(t,e,a){var s=t.tag;if(s===5||s===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(s!==4&&(s===27&&ga(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(yr(t,e,a),t=t.sibling;t!==null;)yr(t,e,a),t=t.sibling}function pp(t){var e=t.stateNode,a=t.memoizedProps;try{for(var s=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);he(e,s,a),e[ue]=t,e[Me]=a}catch(u){Ot(t,t.return,u)}}var qn=!1,$t=!1,hc=!1,gp=typeof WeakSet=="function"?WeakSet:Set,le=null;function cS(t,e){if(t=t.containerInfo,_c=Ur,t=Mh(t),lu(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var o=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break t}var m=0,x=-1,w=-1,z=0,H=0,X=t,V=null;e:for(;;){for(var U;X!==a||o!==0&&X.nodeType!==3||(x=m+o),X!==u||s!==0&&X.nodeType!==3||(w=m+s),X.nodeType===3&&(m+=X.nodeValue.length),(U=X.firstChild)!==null;)V=X,X=U;for(;;){if(X===t)break e;if(V===a&&++z===o&&(x=m),V===u&&++H===s&&(w=m),(U=X.nextSibling)!==null)break;X=V,V=X.parentNode}X=U}a=x===-1||w===-1?null:{start:x,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(Vc={focusedElem:t,selectionRange:a},Ur=!1,le=e;le!==null;)if(e=le,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,le=t;else for(;le!==null;){switch(e=le,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)o=t[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,a=e,o=u.memoizedProps,u=u.memoizedState,s=a.stateNode;try{var nt=Fa(a.type,o);t=s.getSnapshotBeforeUpdate(nt,u),s.__reactInternalSnapshotBeforeUpdate=t}catch(ft){Ot(a,a.return,ft)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)Uc(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Uc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,le=t;break}le=e.return}}function yp(t,e,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:Xn(t,a),s&4&&Gs(5,a);break;case 1:if(Xn(t,a),s&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(m){Ot(a,a.return,m)}else{var o=Fa(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(m){Ot(a,a.return,m)}}s&64&&fp(a),s&512&&qs(a,a.return);break;case 3:if(Xn(t,a),s&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{em(t,e)}catch(m){Ot(a,a.return,m)}}break;case 27:e===null&&s&4&&pp(a);case 26:case 5:Xn(t,a),e===null&&s&4&&hp(a),s&512&&qs(a,a.return);break;case 12:Xn(t,a);break;case 31:Xn(t,a),s&4&&xp(t,a);break;case 13:Xn(t,a),s&4&&Sp(t,a),s&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=bS.bind(null,a),BS(t,a))));break;case 22:if(s=a.memoizedState!==null||qn,!s){e=e!==null&&e.memoizedState!==null||$t,o=qn;var u=$t;qn=s,($t=e)&&!u?Kn(t,a,(a.subtreeFlags&8772)!==0):Xn(t,a),qn=o,$t=u}break;case 30:break;default:Xn(t,a)}}function vp(t){var e=t.alternate;e!==null&&(t.alternate=null,vp(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Yo(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Yt=null,De=!1;function Yn(t,e,a){for(a=a.child;a!==null;)bp(t,e,a),a=a.sibling}function bp(t,e,a){if(Te&&typeof Te.onCommitFiberUnmount=="function")try{Te.onCommitFiberUnmount(Oa,a)}catch{}switch(a.tag){case 26:$t||Tn(a,e),Yn(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$t||Tn(a,e);var s=Yt,o=De;ga(a.type)&&(Yt=a.stateNode,De=!1),Yn(t,e,a),Ws(a.stateNode),Yt=s,De=o;break;case 5:$t||Tn(a,e);case 6:if(s=Yt,o=De,Yt=null,Yn(t,e,a),Yt=s,De=o,Yt!==null)if(De)try{(Yt.nodeType===9?Yt.body:Yt.nodeName==="HTML"?Yt.ownerDocument.body:Yt).removeChild(a.stateNode)}catch(u){Ot(a,e,u)}else try{Yt.removeChild(a.stateNode)}catch(u){Ot(a,e,u)}break;case 18:Yt!==null&&(De?(t=Yt,fg(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),Qi(t)):fg(Yt,a.stateNode));break;case 4:s=Yt,o=De,Yt=a.stateNode.containerInfo,De=!0,Yn(t,e,a),Yt=s,De=o;break;case 0:case 11:case 14:case 15:ua(2,a,e),$t||ua(4,a,e),Yn(t,e,a);break;case 1:$t||(Tn(a,e),s=a.stateNode,typeof s.componentWillUnmount=="function"&&dp(a,e,s)),Yn(t,e,a);break;case 21:Yn(t,e,a);break;case 22:$t=(s=$t)||a.memoizedState!==null,Yn(t,e,a),$t=s;break;default:Yn(t,e,a)}}function xp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Qi(t)}catch(a){Ot(e,e.return,a)}}}function Sp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Qi(t)}catch(a){Ot(e,e.return,a)}}function fS(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new gp),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new gp),e;default:throw Error(r(435,t.tag))}}function vr(t,e){var a=fS(t);e.forEach(function(s){if(!a.has(s)){a.add(s);var o=xS.bind(null,t,s);s.then(o,o)}})}function Re(t,e){var a=e.deletions;if(a!==null)for(var s=0;s<a.length;s++){var o=a[s],u=t,m=e,x=m;t:for(;x!==null;){switch(x.tag){case 27:if(ga(x.type)){Yt=x.stateNode,De=!1;break t}break;case 5:Yt=x.stateNode,De=!1;break t;case 3:case 4:Yt=x.stateNode.containerInfo,De=!0;break t}x=x.return}if(Yt===null)throw Error(r(160));bp(u,m,o),Yt=null,De=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Tp(e,t),e=e.sibling}var ln=null;function Tp(t,e){var a=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Re(e,t),Oe(t),s&4&&(ua(3,t,t.return),Gs(3,t),ua(5,t,t.return));break;case 1:Re(e,t),Oe(t),s&512&&($t||a===null||Tn(a,a.return)),s&64&&qn&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var o=ln;if(Re(e,t),Oe(t),s&512&&($t||a===null||Tn(a,a.return)),s&4){var u=a!==null?a.memoizedState:null;if(s=t.memoizedState,a===null)if(s===null)if(t.stateNode===null){t:{s=t.type,a=t.memoizedProps,o=o.ownerDocument||o;e:switch(s){case"title":u=o.getElementsByTagName("title")[0],(!u||u[ps]||u[ue]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(s),o.head.insertBefore(u,o.querySelector("head > title"))),he(u,s,a),u[ue]=t,se(u),s=u;break t;case"link":var m=Tg("link","href",o).get(s+(a.href||""));if(m){for(var x=0;x<m.length;x++)if(u=m[x],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(x,1);break e}}u=o.createElement(s),he(u,s,a),o.head.appendChild(u);break;case"meta":if(m=Tg("meta","content",o).get(s+(a.content||""))){for(x=0;x<m.length;x++)if(u=m[x],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(x,1);break e}}u=o.createElement(s),he(u,s,a),o.head.appendChild(u);break;default:throw Error(r(468,s))}u[ue]=t,se(u),s=u}t.stateNode=s}else wg(o,t.type,t.stateNode);else t.stateNode=Sg(o,s,t.memoizedProps);else u!==s?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,s===null?wg(o,t.type,t.stateNode):Sg(o,s,t.memoizedProps)):s===null&&t.stateNode!==null&&cc(t,t.memoizedProps,a.memoizedProps)}break;case 27:Re(e,t),Oe(t),s&512&&($t||a===null||Tn(a,a.return)),a!==null&&s&4&&cc(t,t.memoizedProps,a.memoizedProps);break;case 5:if(Re(e,t),Oe(t),s&512&&($t||a===null||Tn(a,a.return)),t.flags&32){o=t.stateNode;try{yi(o,"")}catch(nt){Ot(t,t.return,nt)}}s&4&&t.stateNode!=null&&(o=t.memoizedProps,cc(t,o,a!==null?a.memoizedProps:o)),s&1024&&(hc=!0);break;case 6:if(Re(e,t),Oe(t),s&4){if(t.stateNode===null)throw Error(r(162));s=t.memoizedProps,a=t.stateNode;try{a.nodeValue=s}catch(nt){Ot(t,t.return,nt)}}break;case 3:if(_r=null,o=ln,ln=Or(e.containerInfo),Re(e,t),ln=o,Oe(t),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Qi(e.containerInfo)}catch(nt){Ot(t,t.return,nt)}hc&&(hc=!1,wp(t));break;case 4:s=ln,ln=Or(t.stateNode.containerInfo),Re(e,t),Oe(t),ln=s;break;case 12:Re(e,t),Oe(t);break;case 31:Re(e,t),Oe(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,vr(t,s)));break;case 13:Re(e,t),Oe(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(xr=ge()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,vr(t,s)));break;case 22:o=t.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,z=qn,H=$t;if(qn=z||o,$t=H||w,Re(e,t),$t=H,qn=z,Oe(t),s&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(a===null||w||qn||$t||Ja(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){w=a=e;try{if(u=w.stateNode,o)m=u.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{x=w.stateNode;var X=w.memoizedProps.style,V=X!=null&&X.hasOwnProperty("display")?X.display:null;x.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(nt){Ot(w,w.return,nt)}}}else if(e.tag===6){if(a===null){w=e;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(nt){Ot(w,w.return,nt)}}}else if(e.tag===18){if(a===null){w=e;try{var U=w.stateNode;o?dg(U,!0):dg(w.stateNode,!1)}catch(nt){Ot(w,w.return,nt)}}}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;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}s&4&&(s=t.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,vr(t,a))));break;case 19:Re(e,t),Oe(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,vr(t,s)));break;case 30:break;case 21:break;default:Re(e,t),Oe(t)}}function Oe(t){var e=t.flags;if(e&2){try{for(var a,s=t.return;s!==null;){if(mp(s)){a=s;break}s=s.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var o=a.stateNode,u=fc(t);yr(t,u,o);break;case 5:var m=a.stateNode;a.flags&32&&(yi(m,""),a.flags&=-33);var x=fc(t);yr(t,x,m);break;case 3:case 4:var w=a.stateNode.containerInfo,z=fc(t);dc(t,z,w);break;default:throw Error(r(161))}}catch(H){Ot(t,t.return,H)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function wp(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;wp(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Xn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)yp(t,e.alternate,e),e=e.sibling}function Ja(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:ua(4,e,e.return),Ja(e);break;case 1:Tn(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&dp(e,e.return,a),Ja(e);break;case 27:Ws(e.stateNode);case 26:case 5:Tn(e,e.return),Ja(e);break;case 22:e.memoizedState===null&&Ja(e);break;case 30:Ja(e);break;default:Ja(e)}t=t.sibling}}function Kn(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var s=e.alternate,o=t,u=e,m=u.flags;switch(u.tag){case 0:case 11:case 15:Kn(o,u,a),Gs(4,u);break;case 1:if(Kn(o,u,a),s=u,o=s.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(z){Ot(s,s.return,z)}if(s=u,o=s.updateQueue,o!==null){var x=s.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)tm(w[o],x)}catch(z){Ot(s,s.return,z)}}a&&m&64&&fp(u),qs(u,u.return);break;case 27:pp(u);case 26:case 5:Kn(o,u,a),a&&s===null&&m&4&&hp(u),qs(u,u.return);break;case 12:Kn(o,u,a);break;case 31:Kn(o,u,a),a&&m&4&&xp(o,u);break;case 13:Kn(o,u,a),a&&m&4&&Sp(o,u);break;case 22:u.memoizedState===null&&Kn(o,u,a),qs(u,u.return);break;case 30:break;default:Kn(o,u,a)}e=e.sibling}}function mc(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Ms(a))}function pc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ms(t))}function rn(t,e,a,s){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ep(t,e,a,s),e=e.sibling}function Ep(t,e,a,s){var o=e.flags;switch(e.tag){case 0:case 11:case 15:rn(t,e,a,s),o&2048&&Gs(9,e);break;case 1:rn(t,e,a,s);break;case 3:rn(t,e,a,s),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ms(t)));break;case 12:if(o&2048){rn(t,e,a,s),t=e.stateNode;try{var u=e.memoizedProps,m=u.id,x=u.onPostCommit;typeof x=="function"&&x(m,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(w){Ot(e,e.return,w)}}else rn(t,e,a,s);break;case 31:rn(t,e,a,s);break;case 13:rn(t,e,a,s);break;case 23:break;case 22:u=e.stateNode,m=e.alternate,e.memoizedState!==null?u._visibility&2?rn(t,e,a,s):Ys(t,e):u._visibility&2?rn(t,e,a,s):(u._visibility|=2,Li(t,e,a,s,(e.subtreeFlags&10256)!==0||!1)),o&2048&&mc(m,e);break;case 24:rn(t,e,a,s),o&2048&&pc(e.alternate,e);break;default:rn(t,e,a,s)}}function Li(t,e,a,s,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,m=e,x=a,w=s,z=m.flags;switch(m.tag){case 0:case 11:case 15:Li(u,m,x,w,o),Gs(8,m);break;case 23:break;case 22:var H=m.stateNode;m.memoizedState!==null?H._visibility&2?Li(u,m,x,w,o):Ys(u,m):(H._visibility|=2,Li(u,m,x,w,o)),o&&z&2048&&mc(m.alternate,m);break;case 24:Li(u,m,x,w,o),o&&z&2048&&pc(m.alternate,m);break;default:Li(u,m,x,w,o)}e=e.sibling}}function Ys(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,s=e,o=s.flags;switch(s.tag){case 22:Ys(a,s),o&2048&&mc(s.alternate,s);break;case 24:Ys(a,s),o&2048&&pc(s.alternate,s);break;default:Ys(a,s)}e=e.sibling}}var Xs=8192;function Ui(t,e,a){if(t.subtreeFlags&Xs)for(t=t.child;t!==null;)Ap(t,e,a),t=t.sibling}function Ap(t,e,a){switch(t.tag){case 26:Ui(t,e,a),t.flags&Xs&&t.memoizedState!==null&&WS(a,ln,t.memoizedState,t.memoizedProps);break;case 5:Ui(t,e,a);break;case 3:case 4:var s=ln;ln=Or(t.stateNode.containerInfo),Ui(t,e,a),ln=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=Xs,Xs=16777216,Ui(t,e,a),Xs=s):Ui(t,e,a));break;default:Ui(t,e,a)}}function Cp(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 Ks(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var s=e[a];le=s,Mp(s,t)}Cp(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Np(t),t=t.sibling}function Np(t){switch(t.tag){case 0:case 11:case 15:Ks(t),t.flags&2048&&ua(9,t,t.return);break;case 3:Ks(t);break;case 12:Ks(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,br(t)):Ks(t);break;default:Ks(t)}}function br(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var s=e[a];le=s,Mp(s,t)}Cp(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ua(8,e,e.return),br(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,br(e));break;default:br(e)}t=t.sibling}}function Mp(t,e){for(;le!==null;){var a=le;switch(a.tag){case 0:case 11:case 15:ua(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Ms(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,le=s;else t:for(a=t;le!==null;){s=le;var o=s.sibling,u=s.return;if(vp(s),s===a){le=null;break t}if(o!==null){o.return=u,le=o;break t}le=u}}}var dS={getCacheForType:function(t){var e=fe(Jt),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return fe(Jt).controller.signal}},hS=typeof WeakMap=="function"?WeakMap:Map,Dt=0,kt=null,xt=null,wt=0,Rt=0,Be=null,ca=!1,Bi=!1,gc=!1,Pn=0,Pt=0,fa=0,Wa=0,yc=0,He=0,Hi=0,Ps=null,ze=null,vc=!1,xr=0,jp=0,Sr=1/0,Tr=null,da=null,ee=0,ha=null,Gi=null,Zn=0,bc=0,xc=null,Dp=null,Zs=0,Sc=null;function Ge(){return(Dt&2)!==0&&wt!==0?wt&-wt:_.T!==null?Nc():_a()}function Rp(){if(He===0)if((wt&536870912)===0||Ct){var t=za;za<<=1,(za&3932160)===0&&(za=262144),He=t}else He=536870912;return t=Le.current,t!==null&&(t.flags|=32),He}function _e(t,e,a){(t===kt&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)&&(qi(t,0),ma(t,wt,He,!1)),Ye(t,a),((Dt&2)===0||t!==kt)&&(t===kt&&((Dt&2)===0&&(Wa|=a),Pt===4&&ma(t,wt,He,!1)),wn(t))}function Op(t,e,a){if((Dt&6)!==0)throw Error(r(327));var s=!a&&(e&127)===0&&(e&t.expiredLanes)===0||Ne(t,e),o=s?gS(t,e):wc(t,e,!0),u=s;do{if(o===0){Bi&&!s&&ma(t,e,0,!1);break}else{if(a=t.current.alternate,u&&!mS(a)){o=wc(t,e,!1),u=!1;continue}if(o===2){if(u=e,t.errorRecoveryDisabledLanes&u)var m=0;else m=t.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){e=m;t:{var x=t;o=Ps;var w=x.current.memoizedState.isDehydrated;if(w&&(qi(x,m).flags|=256),m=wc(x,m,!1),m!==2){if(gc&&!w){x.errorRecoveryDisabledLanes|=u,Wa|=u,o=4;break t}u=ze,ze=o,u!==null&&(ze===null?ze=u:ze.push.apply(ze,u))}o=m}if(u=!1,o!==2)continue}}if(o===1){qi(t,0),ma(t,e,0,!0);break}t:{switch(s=t,u=o,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:ma(s,e,He,!ca);break t;case 2:ze=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(o=xr+300-ge(),10<o)){if(ma(s,e,He,!ca),vn(s,0,!0)!==0)break t;Zn=e,s.timeoutHandle=ug(zp.bind(null,s,a,ze,Tr,vc,e,He,Wa,Hi,ca,u,"Throttled",-0,0),o);break t}zp(s,a,ze,Tr,vc,e,He,Wa,Hi,ca,u,null,-0,0)}}break}while(!0);wn(t)}function zp(t,e,a,s,o,u,m,x,w,z,H,X,V,U){if(t.timeoutHandle=-1,X=e.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:On},Ap(e,u,X);var nt=(u&62914560)===u?xr-ge():(u&4194048)===u?jp-ge():0;if(nt=IS(X,nt),nt!==null){Zn=u,t.cancelPendingCommit=nt(Gp.bind(null,t,e,u,a,s,o,m,x,w,H,X,null,V,U)),ma(t,u,m,!z);return}}Gp(t,e,u,a,s,o,m,x,w)}function mS(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var o=a[s],u=o.getSnapshot;o=o.value;try{if(!Ve(u(),o))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;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 ma(t,e,a,s){e&=~yc,e&=~Wa,t.suspendedLanes|=e,t.pingedLanes&=~e,s&&(t.warmLanes|=e),s=t.expirationTimes;for(var o=e;0<o;){var u=31-ye(o),m=1<<u;s[u]=-1,o&=~m}a!==0&&Q(t,a,e)}function wr(){return(Dt&6)===0?(Qs(0),!1):!0}function Tc(){if(xt!==null){if(Rt===0)var t=xt.return;else t=xt,kn=qa=null,Uu(t),Oi=null,Ds=0,t=xt;for(;t!==null;)cp(t.alternate,t),t=t.return;xt=null}}function qi(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,_S(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Zn=0,Tc(),kt=t,xt=a=_n(t.current,null),wt=e,Rt=0,Be=null,ca=!1,Bi=Ne(t,e),gc=!1,Hi=He=yc=Wa=fa=Pt=0,ze=Ps=null,vc=!1,(e&8)!==0&&(e|=e&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=e;0<s;){var o=31-ye(s),u=1<<o;e|=t[o],s&=~u}return Pn=e,Xl(),a}function _p(t,e){gt=null,_.H=Us,e===Ri||e===Il?(e=Jh(),Rt=3):e===Cu?(e=Jh(),Rt=4):Rt=e===tc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Be=e,xt===null&&(Pt=1,dr(t,Ze(e,t.current)))}function Vp(){var t=Le.current;return t===null?!0:(wt&4194048)===wt?We===null:(wt&62914560)===wt||(wt&536870912)!==0?t===We:!1}function kp(){var t=_.H;return _.H=Us,t===null?Us:t}function Lp(){var t=_.A;return _.A=dS,t}function Er(){Pt=4,ca||(wt&4194048)!==wt&&Le.current!==null||(Bi=!0),(fa&134217727)===0&&(Wa&134217727)===0||kt===null||ma(kt,wt,He,!1)}function wc(t,e,a){var s=Dt;Dt|=2;var o=kp(),u=Lp();(kt!==t||wt!==e)&&(Tr=null,qi(t,e)),e=!1;var m=Pt;t:do try{if(Rt!==0&&xt!==null){var x=xt,w=Be;switch(Rt){case 8:Tc(),m=6;break t;case 3:case 2:case 9:case 6:Le.current===null&&(e=!0);var z=Rt;if(Rt=0,Be=null,Yi(t,x,w,z),a&&Bi){m=0;break t}break;default:z=Rt,Rt=0,Be=null,Yi(t,x,w,z)}}pS(),m=Pt;break}catch(H){_p(t,H)}while(!0);return e&&t.shellSuspendCounter++,kn=qa=null,Dt=s,_.H=o,_.A=u,xt===null&&(kt=null,wt=0,Xl()),m}function pS(){for(;xt!==null;)Up(xt)}function gS(t,e){var a=Dt;Dt|=2;var s=kp(),o=Lp();kt!==t||wt!==e?(Tr=null,Sr=ge()+500,qi(t,e)):Bi=Ne(t,e);t:do try{if(Rt!==0&&xt!==null){e=xt;var u=Be;e:switch(Rt){case 1:Rt=0,Be=null,Yi(t,e,u,1);break;case 2:case 9:if(Qh(u)){Rt=0,Be=null,Bp(e);break}e=function(){Rt!==2&&Rt!==9||kt!==t||(Rt=7),wn(t)},u.then(e,e);break t;case 3:Rt=7;break t;case 4:Rt=5;break t;case 7:Qh(u)?(Rt=0,Be=null,Bp(e)):(Rt=0,Be=null,Yi(t,e,u,7));break;case 5:var m=null;switch(xt.tag){case 26:m=xt.memoizedState;case 5:case 27:var x=xt;if(m?Eg(m):x.stateNode.complete){Rt=0,Be=null;var w=x.sibling;if(w!==null)xt=w;else{var z=x.return;z!==null?(xt=z,Ar(z)):xt=null}break e}}Rt=0,Be=null,Yi(t,e,u,5);break;case 6:Rt=0,Be=null,Yi(t,e,u,6);break;case 8:Tc(),Pt=6;break t;default:throw Error(r(462))}}yS();break}catch(H){_p(t,H)}while(!0);return kn=qa=null,_.H=s,_.A=o,Dt=a,xt!==null?0:(kt=null,wt=0,Xl(),Pt)}function yS(){for(;xt!==null&&!_o();)Up(xt)}function Up(t){var e=op(t.alternate,t,Pn);t.memoizedProps=t.pendingProps,e===null?Ar(t):xt=e}function Bp(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=np(a,e,e.pendingProps,e.type,void 0,wt);break;case 11:e=np(a,e,e.pendingProps,e.type.render,e.ref,wt);break;case 5:Uu(e);default:cp(a,e),e=xt=Lh(e,Pn),e=op(a,e,Pn)}t.memoizedProps=t.pendingProps,e===null?Ar(t):xt=e}function Yi(t,e,a,s){kn=qa=null,Uu(e),Oi=null,Ds=0;var o=e.return;try{if(sS(t,o,e,a,wt)){Pt=1,dr(t,Ze(a,t.current)),xt=null;return}}catch(u){if(o!==null)throw xt=o,u;Pt=1,dr(t,Ze(a,t.current)),xt=null;return}e.flags&32768?(Ct||s===1?t=!0:Bi||(wt&536870912)!==0?t=!1:(ca=t=!0,(s===2||s===9||s===3||s===6)&&(s=Le.current,s!==null&&s.tag===13&&(s.flags|=16384))),Hp(e,t)):Ar(e)}function Ar(t){var e=t;do{if((e.flags&32768)!==0){Hp(e,ca);return}t=e.return;var a=oS(e.alternate,e,Pn);if(a!==null){xt=a;return}if(e=e.sibling,e!==null){xt=e;return}xt=e=t}while(e!==null);Pt===0&&(Pt=5)}function Hp(t,e){do{var a=uS(t.alternate,t);if(a!==null){a.flags&=32767,xt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){xt=t;return}xt=t=a}while(t!==null);Pt=6,xt=null}function Gp(t,e,a,s,o,u,m,x,w){t.cancelPendingCommit=null;do Cr();while(ee!==0);if((Dt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=fu,Ol(t,a,u,m,x,w),t===kt&&(xt=kt=null,wt=0),Gi=e,ha=t,Zn=a,bc=u,xc=o,Dp=s,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,SS(Ce,function(){return Pp(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||s){s=_.T,_.T=null,o=Z.p,Z.p=2,m=Dt,Dt|=4;try{cS(t,e,a)}finally{Dt=m,Z.p=o,_.T=s}}ee=1,qp(),Yp(),Xp()}}function qp(){if(ee===1){ee=0;var t=ha,e=Gi,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=_.T,_.T=null;var s=Z.p;Z.p=2;var o=Dt;Dt|=4;try{Tp(e,t);var u=Vc,m=Mh(t.containerInfo),x=u.focusedElem,w=u.selectionRange;if(m!==x&&x&&x.ownerDocument&&Nh(x.ownerDocument.documentElement,x)){if(w!==null&&lu(x)){var z=w.start,H=w.end;if(H===void 0&&(H=z),"selectionStart"in x)x.selectionStart=z,x.selectionEnd=Math.min(H,x.value.length);else{var X=x.ownerDocument||document,V=X&&X.defaultView||window;if(V.getSelection){var U=V.getSelection(),nt=x.textContent.length,ft=Math.min(w.start,nt),Vt=w.end===void 0?ft:Math.min(w.end,nt);!U.extend&&ft>Vt&&(m=Vt,Vt=ft,ft=m);var D=Ch(x,ft),N=Ch(x,Vt);if(D&&N&&(U.rangeCount!==1||U.anchorNode!==D.node||U.anchorOffset!==D.offset||U.focusNode!==N.node||U.focusOffset!==N.offset)){var O=X.createRange();O.setStart(D.node,D.offset),U.removeAllRanges(),ft>Vt?(U.addRange(O),U.extend(N.node,N.offset)):(O.setEnd(N.node,N.offset),U.addRange(O))}}}}for(X=[],U=x;U=U.parentNode;)U.nodeType===1&&X.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<X.length;x++){var Y=X[x];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}Ur=!!_c,Vc=_c=null}finally{Dt=o,Z.p=s,_.T=a}}t.current=e,ee=2}}function Yp(){if(ee===2){ee=0;var t=ha,e=Gi,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=_.T,_.T=null;var s=Z.p;Z.p=2;var o=Dt;Dt|=4;try{yp(t,e.alternate,e)}finally{Dt=o,Z.p=s,_.T=a}}ee=3}}function Xp(){if(ee===4||ee===3){ee=0,Dl();var t=ha,e=Gi,a=Zn,s=Dp;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ee=5:(ee=0,Gi=ha=null,Kp(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(da=null),ci(a),e=e.stateNode,Te&&typeof Te.onCommitFiberRoot=="function")try{Te.onCommitFiberRoot(Oa,e,void 0,(e.current.flags&128)===128)}catch{}if(s!==null){e=_.T,o=Z.p,Z.p=2,_.T=null;try{for(var u=t.onRecoverableError,m=0;m<s.length;m++){var x=s[m];u(x.value,{componentStack:x.stack})}}finally{_.T=e,Z.p=o}}(Zn&3)!==0&&Cr(),wn(t),o=t.pendingLanes,(a&261930)!==0&&(o&42)!==0?t===Sc?Zs++:(Zs=0,Sc=t):Zs=0,Qs(0)}}function Kp(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ms(e)))}function Cr(){return qp(),Yp(),Xp(),Pp()}function Pp(){if(ee!==5)return!1;var t=ha,e=bc;bc=0;var a=ci(Zn),s=_.T,o=Z.p;try{Z.p=32>a?32:a,_.T=null,a=xc,xc=null;var u=ha,m=Zn;if(ee=0,Gi=ha=null,Zn=0,(Dt&6)!==0)throw Error(r(331));var x=Dt;if(Dt|=4,Np(u.current),Ep(u,u.current,m,a),Dt=x,Qs(0,!1),Te&&typeof Te.onPostCommitFiberRoot=="function")try{Te.onPostCommitFiberRoot(Oa,u)}catch{}return!0}finally{Z.p=o,_.T=s,Kp(t,e)}}function Zp(t,e,a){e=Ze(a,e),e=$u(t.stateNode,e,2),t=la(t,e,2),t!==null&&(Ye(t,2),wn(t))}function Ot(t,e,a){if(t.tag===3)Zp(t,t,a);else for(;e!==null;){if(e.tag===3){Zp(e,t,a);break}else if(e.tag===1){var s=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(da===null||!da.has(s))){t=Ze(a,t),a=Qm(2),s=la(e,a,2),s!==null&&(Fm(a,s,e,t),Ye(s,2),wn(s));break}}e=e.return}}function Ec(t,e,a){var s=t.pingCache;if(s===null){s=t.pingCache=new hS;var o=new Set;s.set(e,o)}else o=s.get(e),o===void 0&&(o=new Set,s.set(e,o));o.has(a)||(gc=!0,o.add(a),t=vS.bind(null,t,e,a),e.then(t,t))}function vS(t,e,a){var s=t.pingCache;s!==null&&s.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,kt===t&&(wt&a)===a&&(Pt===4||Pt===3&&(wt&62914560)===wt&&300>ge()-xr?(Dt&2)===0&&qi(t,0):yc|=a,Hi===wt&&(Hi=0)),wn(t)}function Qp(t,e){e===0&&(e=ui()),t=Ba(t,e),t!==null&&(Ye(t,e),wn(t))}function bS(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),Qp(t,a)}function xS(t,e){var a=0;switch(t.tag){case 31:case 13:var s=t.stateNode,o=t.memoizedState;o!==null&&(a=o.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(e),Qp(t,a)}function SS(t,e){return Ra(t,e)}var Nr=null,Xi=null,Ac=!1,Mr=!1,Cc=!1,pa=0;function wn(t){t!==Xi&&t.next===null&&(Xi===null?Nr=Xi=t:Xi=Xi.next=t),Mr=!0,Ac||(Ac=!0,wS())}function Qs(t,e){if(!Cc&&Mr){Cc=!0;do for(var a=!1,s=Nr;s!==null;){if(t!==0){var o=s.pendingLanes;if(o===0)var u=0;else{var m=s.suspendedLanes,x=s.pingedLanes;u=(1<<31-ye(42|t)+1)-1,u&=o&~(m&~x),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,Ip(s,u))}else u=wt,u=vn(s,s===kt?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||Ne(s,u)||(a=!0,Ip(s,u));s=s.next}while(a);Cc=!1}}function TS(){Fp()}function Fp(){Mr=Ac=!1;var t=0;pa!==0&&zS()&&(t=pa);for(var e=ge(),a=null,s=Nr;s!==null;){var o=s.next,u=Jp(s,e);u===0?(s.next=null,a===null?Nr=o:a.next=o,o===null&&(Xi=a)):(a=s,(t!==0||(u&3)!==0)&&(Mr=!0)),s=o}ee!==0&&ee!==5||Qs(t),pa!==0&&(pa=0)}function Jp(t,e){for(var a=t.suspendedLanes,s=t.pingedLanes,o=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var m=31-ye(u),x=1<<m,w=o[m];w===-1?((x&a)===0||(x&s)!==0)&&(o[m]=Go(x,e)):w<=e&&(t.expiredLanes|=x),u&=~x}if(e=kt,a=wt,a=vn(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,a===0||t===e&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&fs(s),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Ne(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(s!==null&&fs(s),ci(a)){case 2:case 8:a=ds;break;case 32:a=Ce;break;case 268435456:a=gn;break;default:a=Ce}return s=Wp.bind(null,t),a=Ra(a,s),t.callbackPriority=e,t.callbackNode=a,e}return s!==null&&s!==null&&fs(s),t.callbackPriority=2,t.callbackNode=null,2}function Wp(t,e){if(ee!==0&&ee!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Cr()&&t.callbackNode!==a)return null;var s=wt;return s=vn(t,t===kt?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(Op(t,s,e),Jp(t,ge()),t.callbackNode!=null&&t.callbackNode===a?Wp.bind(null,t):null)}function Ip(t,e){if(Cr())return null;Op(t,e,!0)}function wS(){VS(function(){(Dt&6)!==0?Ra(an,TS):Fp()})}function Nc(){if(pa===0){var t=ji;t===0&&(t=oi,oi<<=1,(oi&261888)===0&&(oi=256)),pa=t}return pa}function $p(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:kl(""+t)}function tg(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function ES(t,e,a,s,o){if(e==="submit"&&a&&a.stateNode===o){var u=$p((o[Me]||null).action),m=s.submitter;m&&(e=(e=m[Me]||null)?$p(e.formAction):m.getAttribute("formAction"),e!==null&&(u=e,m=null));var x=new Hl("action","action",null,s,o);t.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(pa!==0){var w=m?tg(o,m):new FormData(o);Zu(a,{pending:!0,data:w,method:o.method,action:u},null,w)}}else typeof u=="function"&&(x.preventDefault(),w=m?tg(o,m):new FormData(o),Zu(a,{pending:!0,data:w,method:o.method,action:u},u,w))},currentTarget:o}]})}}for(var Mc=0;Mc<cu.length;Mc++){var jc=cu[Mc],AS=jc.toLowerCase(),CS=jc[0].toUpperCase()+jc.slice(1);sn(AS,"on"+CS)}sn(Rh,"onAnimationEnd"),sn(Oh,"onAnimationIteration"),sn(zh,"onAnimationStart"),sn("dblclick","onDoubleClick"),sn("focusin","onFocus"),sn("focusout","onBlur"),sn(q1,"onTransitionRun"),sn(Y1,"onTransitionStart"),sn(X1,"onTransitionCancel"),sn(_h,"onTransitionEnd"),pi("onMouseEnter",["mouseout","mouseover"]),pi("onMouseLeave",["mouseout","mouseover"]),pi("onPointerEnter",["pointerout","pointerover"]),pi("onPointerLeave",["pointerout","pointerover"]),Va("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Va("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Va("onBeforeInput",["compositionend","keypress","textInput","paste"]),Va("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Va("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Va("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fs="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(" "),NS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fs));function eg(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var s=t[a],o=s.event;s=s.listeners;t:{var u=void 0;if(e)for(var m=s.length-1;0<=m;m--){var x=s[m],w=x.instance,z=x.currentTarget;if(x=x.listener,w!==u&&o.isPropagationStopped())break t;u=x,o.currentTarget=z;try{u(o)}catch(H){Yl(H)}o.currentTarget=null,u=w}else for(m=0;m<s.length;m++){if(x=s[m],w=x.instance,z=x.currentTarget,x=x.listener,w!==u&&o.isPropagationStopped())break t;u=x,o.currentTarget=z;try{u(o)}catch(H){Yl(H)}o.currentTarget=null,u=w}}}}function St(t,e){var a=e[qo];a===void 0&&(a=e[qo]=new Set);var s=t+"__bubble";a.has(s)||(ng(e,t,2,!1),a.add(s))}function Dc(t,e,a){var s=0;e&&(s|=4),ng(a,t,s,e)}var jr="_reactListening"+Math.random().toString(36).slice(2);function Rc(t){if(!t[jr]){t[jr]=!0,Fd.forEach(function(a){a!=="selectionchange"&&(NS.has(a)||Dc(a,!1,t),Dc(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[jr]||(e[jr]=!0,Dc("selectionchange",!1,e))}}function ng(t,e,a,s){switch(Rg(e)){case 2:var o=e2;break;case 8:o=n2;break;default:o=Pc}a=o.bind(null,e,a,t),o=void 0,!Wo||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),s?o!==void 0?t.addEventListener(e,a,{capture:!0,passive:o}):t.addEventListener(e,a,!0):o!==void 0?t.addEventListener(e,a,{passive:o}):t.addEventListener(e,a,!1)}function Oc(t,e,a,s,o){var u=s;if((e&1)===0&&(e&2)===0&&s!==null)t:for(;;){if(s===null)return;var m=s.tag;if(m===3||m===4){var x=s.stateNode.containerInfo;if(x===o)break;if(m===4)for(m=s.return;m!==null;){var w=m.tag;if((w===3||w===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;x!==null;){if(m=di(x),m===null)return;if(w=m.tag,w===5||w===6||w===26||w===27){s=u=m;continue t}x=x.parentNode}}s=s.return}rh(function(){var z=u,H=Fo(a),X=[];t:{var V=Vh.get(t);if(V!==void 0){var U=Hl,nt=t;switch(t){case"keypress":if(Ul(a)===0)break t;case"keydown":case"keyup":U=x1;break;case"focusin":nt="focus",U=eu;break;case"focusout":nt="blur",U=eu;break;case"beforeblur":case"afterblur":U=eu;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=ch;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=o1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=w1;break;case Rh:case Oh:case zh:U=f1;break;case _h:U=A1;break;case"scroll":case"scrollend":U=l1;break;case"wheel":U=N1;break;case"copy":case"cut":case"paste":U=h1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=dh;break;case"toggle":case"beforetoggle":U=j1}var ft=(e&4)!==0,Vt=!ft&&(t==="scroll"||t==="scrollend"),D=ft?V!==null?V+"Capture":null:V;ft=[];for(var N=z,O;N!==null;){var Y=N;if(O=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||O===null||D===null||(Y=ys(N,D),Y!=null&&ft.push(Js(N,Y,O))),Vt)break;N=N.return}0<ft.length&&(V=new U(V,nt,null,a,H),X.push({event:V,listeners:ft}))}}if((e&7)===0){t:{if(V=t==="mouseover"||t==="pointerover",U=t==="mouseout"||t==="pointerout",V&&a!==Qo&&(nt=a.relatedTarget||a.fromElement)&&(di(nt)||nt[fi]))break t;if((U||V)&&(V=H.window===H?H:(V=H.ownerDocument)?V.defaultView||V.parentWindow:window,U?(nt=a.relatedTarget||a.toElement,U=z,nt=nt?di(nt):null,nt!==null&&(Vt=f(nt),ft=nt.tag,nt!==Vt||ft!==5&&ft!==27&&ft!==6)&&(nt=null)):(U=null,nt=z),U!==nt)){if(ft=ch,Y="onMouseLeave",D="onMouseEnter",N="mouse",(t==="pointerout"||t==="pointerover")&&(ft=dh,Y="onPointerLeave",D="onPointerEnter",N="pointer"),Vt=U==null?V:gs(U),O=nt==null?V:gs(nt),V=new ft(Y,N+"leave",U,a,H),V.target=Vt,V.relatedTarget=O,Y=null,di(H)===z&&(ft=new ft(D,N+"enter",nt,a,H),ft.target=O,ft.relatedTarget=Vt,Y=ft),Vt=Y,U&&nt)e:{for(ft=MS,D=U,N=nt,O=0,Y=D;Y;Y=ft(Y))O++;Y=0;for(var ot=N;ot;ot=ft(ot))Y++;for(;0<O-Y;)D=ft(D),O--;for(;0<Y-O;)N=ft(N),Y--;for(;O--;){if(D===N||N!==null&&D===N.alternate){ft=D;break e}D=ft(D),N=ft(N)}ft=null}else ft=null;U!==null&&ag(X,V,U,ft,!1),nt!==null&&Vt!==null&&ag(X,Vt,nt,ft,!0)}}t:{if(V=z?gs(z):window,U=V.nodeName&&V.nodeName.toLowerCase(),U==="select"||U==="input"&&V.type==="file")var Mt=xh;else if(vh(V))if(Sh)Mt=B1;else{Mt=L1;var lt=k1}else U=V.nodeName,!U||U.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?z&&Zo(z.elementType)&&(Mt=xh):Mt=U1;if(Mt&&(Mt=Mt(t,z))){bh(X,Mt,a,H);break t}lt&<(t,V,z),t==="focusout"&&z&&V.type==="number"&&z.memoizedProps.value!=null&&Po(V,"number",V.value)}switch(lt=z?gs(z):window,t){case"focusin":(vh(lt)||lt.contentEditable==="true")&&(Si=lt,ru=z,As=null);break;case"focusout":As=ru=Si=null;break;case"mousedown":ou=!0;break;case"contextmenu":case"mouseup":case"dragend":ou=!1,jh(X,a,H);break;case"selectionchange":if(G1)break;case"keydown":case"keyup":jh(X,a,H)}var vt;if(au)t:{switch(t){case"compositionstart":var Et="onCompositionStart";break t;case"compositionend":Et="onCompositionEnd";break t;case"compositionupdate":Et="onCompositionUpdate";break t}Et=void 0}else xi?gh(t,a)&&(Et="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Et="onCompositionStart");Et&&(hh&&a.locale!=="ko"&&(xi||Et!=="onCompositionStart"?Et==="onCompositionEnd"&&xi&&(vt=oh()):($n=H,Io="value"in $n?$n.value:$n.textContent,xi=!0)),lt=Dr(z,Et),0<lt.length&&(Et=new fh(Et,t,null,a,H),X.push({event:Et,listeners:lt}),vt?Et.data=vt:(vt=yh(a),vt!==null&&(Et.data=vt)))),(vt=R1?O1(t,a):z1(t,a))&&(Et=Dr(z,"onBeforeInput"),0<Et.length&&(lt=new fh("onBeforeInput","beforeinput",null,a,H),X.push({event:lt,listeners:Et}),lt.data=vt)),ES(X,t,z,a,H)}eg(X,e)})}function Js(t,e,a){return{instance:t,listener:e,currentTarget:a}}function Dr(t,e){for(var a=e+"Capture",s=[];t!==null;){var o=t,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=ys(t,a),o!=null&&s.unshift(Js(t,o,u)),o=ys(t,e),o!=null&&s.push(Js(t,o,u))),t.tag===3)return s;t=t.return}return[]}function MS(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ag(t,e,a,s,o){for(var u=e._reactName,m=[];a!==null&&a!==s;){var x=a,w=x.alternate,z=x.stateNode;if(x=x.tag,w!==null&&w===s)break;x!==5&&x!==26&&x!==27||z===null||(w=z,o?(z=ys(a,u),z!=null&&m.unshift(Js(a,z,w))):o||(z=ys(a,u),z!=null&&m.push(Js(a,z,w)))),a=a.return}m.length!==0&&t.push({event:e,listeners:m})}var jS=/\r\n?/g,DS=/\u0000|\uFFFD/g;function ig(t){return(typeof t=="string"?t:""+t).replace(jS,`
|
|
9
|
-
`).replace(DS,"")}function sg(t,e){return e=ig(e),ig(t)===e}function _t(t,e,a,s,o,u){switch(a){case"children":typeof s=="string"?e==="body"||e==="textarea"&&s===""||yi(t,s):(typeof s=="number"||typeof s=="bigint")&&e!=="body"&&yi(t,""+s);break;case"className":_l(t,"class",s);break;case"tabIndex":_l(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":_l(t,a,s);break;case"style":sh(t,s,u);break;case"data":if(e!=="object"){_l(t,"data",s);break}case"src":case"href":if(s===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=kl(""+s),t.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(a,"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"&&(a==="formAction"?(e!=="input"&&_t(t,e,"name",o.name,o,null),_t(t,e,"formEncType",o.formEncType,o,null),_t(t,e,"formMethod",o.formMethod,o,null),_t(t,e,"formTarget",o.formTarget,o,null)):(_t(t,e,"encType",o.encType,o,null),_t(t,e,"method",o.method,o,null),_t(t,e,"target",o.target,o,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=kl(""+s),t.setAttribute(a,s);break;case"onClick":s!=null&&(t.onclick=On);break;case"onScroll":s!=null&&St("scroll",t);break;case"onScrollEnd":s!=null&&St("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}a=kl(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,""+s):t.removeAttribute(a);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":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":s===!0?t.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,s):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(a,s):t.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(a):t.setAttribute(a,s);break;case"popover":St("beforetoggle",t),St("toggle",t),zl(t,"popover",s);break;case"xlinkActuate":Rn(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Rn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Rn(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Rn(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Rn(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Rn(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Rn(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Rn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Rn(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":zl(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=i1.get(a)||a,zl(t,a,s))}}function zc(t,e,a,s,o,u){switch(a){case"style":sh(t,s,u);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof s=="string"?yi(t,s):(typeof s=="number"||typeof s=="bigint")&&yi(t,""+s);break;case"onScroll":s!=null&&St("scroll",t);break;case"onScrollEnd":s!=null&&St("scrollend",t);break;case"onClick":s!=null&&(t.onclick=On);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Jd.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),e=a.slice(2,o?a.length-7:void 0),u=t[Me]||null,u=u!=null?u[a]:null,typeof u=="function"&&t.removeEventListener(e,u,o),typeof s=="function")){typeof u!="function"&&u!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,s,o);break t}a in t?t[a]=s:s===!0?t.setAttribute(a,""):zl(t,a,s)}}}function he(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":St("error",t),St("load",t);var s=!1,o=!1,u;for(u in a)if(a.hasOwnProperty(u)){var m=a[u];if(m!=null)switch(u){case"src":s=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:_t(t,e,u,m,a,null)}}o&&_t(t,e,"srcSet",a.srcSet,a,null),s&&_t(t,e,"src",a.src,a,null);return;case"input":St("invalid",t);var x=u=m=o=null,w=null,z=null;for(s in a)if(a.hasOwnProperty(s)){var H=a[s];if(H!=null)switch(s){case"name":o=H;break;case"type":m=H;break;case"checked":w=H;break;case"defaultChecked":z=H;break;case"value":u=H;break;case"defaultValue":x=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,e));break;default:_t(t,e,s,H,a,null)}}eh(t,u,x,w,z,m,o,!1);return;case"select":St("invalid",t),s=m=u=null;for(o in a)if(a.hasOwnProperty(o)&&(x=a[o],x!=null))switch(o){case"value":u=x;break;case"defaultValue":m=x;break;case"multiple":s=x;default:_t(t,e,o,x,a,null)}e=u,a=m,t.multiple=!!s,e!=null?gi(t,!!s,e,!1):a!=null&&gi(t,!!s,a,!0);return;case"textarea":St("invalid",t),u=o=s=null;for(m in a)if(a.hasOwnProperty(m)&&(x=a[m],x!=null))switch(m){case"value":s=x;break;case"defaultValue":o=x;break;case"children":u=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:_t(t,e,m,x,a,null)}ah(t,s,o,u);return;case"option":for(w in a)a.hasOwnProperty(w)&&(s=a[w],s!=null)&&(w==="selected"?t.selected=s&&typeof s!="function"&&typeof s!="symbol":_t(t,e,w,s,a,null));return;case"dialog":St("beforetoggle",t),St("toggle",t),St("cancel",t),St("close",t);break;case"iframe":case"object":St("load",t);break;case"video":case"audio":for(s=0;s<Fs.length;s++)St(Fs[s],t);break;case"image":St("error",t),St("load",t);break;case"details":St("toggle",t);break;case"embed":case"source":case"link":St("error",t),St("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(z in a)if(a.hasOwnProperty(z)&&(s=a[z],s!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:_t(t,e,z,s,a,null)}return;default:if(Zo(e)){for(H in a)a.hasOwnProperty(H)&&(s=a[H],s!==void 0&&zc(t,e,H,s,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(s=a[x],s!=null&&_t(t,e,x,s,a,null))}function RS(t,e,a,s){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,m=null,x=null,w=null,z=null,H=null;for(U in a){var X=a[U];if(a.hasOwnProperty(U)&&X!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":w=X;default:s.hasOwnProperty(U)||_t(t,e,U,null,s,X)}}for(var V in s){var U=s[V];if(X=a[V],s.hasOwnProperty(V)&&(U!=null||X!=null))switch(V){case"type":u=U;break;case"name":o=U;break;case"checked":z=U;break;case"defaultChecked":H=U;break;case"value":m=U;break;case"defaultValue":x=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,e));break;default:U!==X&&_t(t,e,V,U,s,X)}}Ko(t,m,x,w,z,H,u,o);return;case"select":U=m=x=V=null;for(u in a)if(w=a[u],a.hasOwnProperty(u)&&w!=null)switch(u){case"value":break;case"multiple":U=w;default:s.hasOwnProperty(u)||_t(t,e,u,null,s,w)}for(o in s)if(u=s[o],w=a[o],s.hasOwnProperty(o)&&(u!=null||w!=null))switch(o){case"value":V=u;break;case"defaultValue":x=u;break;case"multiple":m=u;default:u!==w&&_t(t,e,o,u,s,w)}e=x,a=m,s=U,V!=null?gi(t,!!a,V,!1):!!s!=!!a&&(e!=null?gi(t,!!a,e,!0):gi(t,!!a,a?[]:"",!1));return;case"textarea":U=V=null;for(x in a)if(o=a[x],a.hasOwnProperty(x)&&o!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:_t(t,e,x,null,s,o)}for(m in s)if(o=s[m],u=a[m],s.hasOwnProperty(m)&&(o!=null||u!=null))switch(m){case"value":V=o;break;case"defaultValue":U=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==u&&_t(t,e,m,o,s,u)}nh(t,V,U);return;case"option":for(var nt in a)V=a[nt],a.hasOwnProperty(nt)&&V!=null&&!s.hasOwnProperty(nt)&&(nt==="selected"?t.selected=!1:_t(t,e,nt,null,s,V));for(w in s)V=s[w],U=a[w],s.hasOwnProperty(w)&&V!==U&&(V!=null||U!=null)&&(w==="selected"?t.selected=V&&typeof V!="function"&&typeof V!="symbol":_t(t,e,w,V,s,U));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 ft in a)V=a[ft],a.hasOwnProperty(ft)&&V!=null&&!s.hasOwnProperty(ft)&&_t(t,e,ft,null,s,V);for(z in s)if(V=s[z],U=a[z],s.hasOwnProperty(z)&&V!==U&&(V!=null||U!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,e));break;default:_t(t,e,z,V,s,U)}return;default:if(Zo(e)){for(var Vt in a)V=a[Vt],a.hasOwnProperty(Vt)&&V!==void 0&&!s.hasOwnProperty(Vt)&&zc(t,e,Vt,void 0,s,V);for(H in s)V=s[H],U=a[H],!s.hasOwnProperty(H)||V===U||V===void 0&&U===void 0||zc(t,e,H,V,s,U);return}}for(var D in a)V=a[D],a.hasOwnProperty(D)&&V!=null&&!s.hasOwnProperty(D)&&_t(t,e,D,null,s,V);for(X in s)V=s[X],U=a[X],!s.hasOwnProperty(X)||V===U||V==null&&U==null||_t(t,e,X,V,s,U)}function lg(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function OS(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),s=0;s<a.length;s++){var o=a[s],u=o.transferSize,m=o.initiatorType,x=o.duration;if(u&&x&&lg(m)){for(m=0,x=o.responseEnd,s+=1;s<a.length;s++){var w=a[s],z=w.startTime;if(z>x)break;var H=w.transferSize,X=w.initiatorType;H&&lg(X)&&(w=w.responseEnd,m+=H*(w<x?1:(x-z)/(w-z)))}if(--s,e+=8*(u+m)/(o.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 _c=null,Vc=null;function Rr(t){return t.nodeType===9?t:t.ownerDocument}function rg(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 og(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 kc(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 Lc=null;function zS(){var t=window.event;return t&&t.type==="popstate"?t===Lc?!1:(Lc=t,!0):(Lc=null,!1)}var ug=typeof setTimeout=="function"?setTimeout:void 0,_S=typeof clearTimeout=="function"?clearTimeout:void 0,cg=typeof Promise=="function"?Promise:void 0,VS=typeof queueMicrotask=="function"?queueMicrotask:typeof cg<"u"?function(t){return cg.resolve(null).then(t).catch(kS)}:ug;function kS(t){setTimeout(function(){throw t})}function ga(t){return t==="head"}function fg(t,e){var a=e,s=0;do{var o=a.nextSibling;if(t.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(s===0){t.removeChild(o),Qi(e);return}s--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")s++;else if(a==="html")Ws(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,Ws(a);for(var u=a.firstChild;u;){var m=u.nextSibling,x=u.nodeName;u[ps]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=m}}else a==="body"&&Ws(t.ownerDocument.body);a=o}while(a);Qi(e)}function dg(t,e){var a=t;t=0;do{var s=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=s}while(a)}function Uc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Uc(a),Yo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function LS(t,e,a,s){for(;t.nodeType===1;){var o=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[ps])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!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Ie(t.nextSibling),t===null)break}return null}function US(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Ie(t.nextSibling),t===null))return null;return t}function hg(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ie(t.nextSibling),t===null))return null;return t}function Bc(t){return t.data==="$?"||t.data==="$~"}function Hc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function BS(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var s=function(){e(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function Ie(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 Gc=null;function mg(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return Ie(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function pg(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function gg(t,e,a){switch(e=Rr(a),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 Ws(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Yo(t)}var $e=new Map,yg=new Set;function Or(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Qn=Z.d;Z.d={f:HS,r:GS,D:qS,C:YS,L:XS,m:KS,X:ZS,S:PS,M:QS};function HS(){var t=Qn.f(),e=wr();return t||e}function GS(t){var e=hi(t);e!==null&&e.tag===5&&e.type==="form"?_m(e):Qn.r(t)}var Ki=typeof document>"u"?null:document;function vg(t,e,a){var s=Ki;if(s&&typeof e=="string"&&e){var o=Ke(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),yg.has(o)||(yg.add(o),t={rel:t,crossOrigin:a,href:e},s.querySelector(o)===null&&(e=s.createElement("link"),he(e,"link",t),se(e),s.head.appendChild(e)))}}function qS(t){Qn.D(t),vg("dns-prefetch",t,null)}function YS(t,e){Qn.C(t,e),vg("preconnect",t,e)}function XS(t,e,a){Qn.L(t,e,a);var s=Ki;if(s&&t&&e){var o='link[rel="preload"][as="'+Ke(e)+'"]';e==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Ke(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Ke(a.imageSizes)+'"]')):o+='[href="'+Ke(t)+'"]';var u=o;switch(e){case"style":u=Pi(t);break;case"script":u=Zi(t)}$e.has(u)||(t=b({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),$e.set(u,t),s.querySelector(o)!==null||e==="style"&&s.querySelector(Is(u))||e==="script"&&s.querySelector($s(u))||(e=s.createElement("link"),he(e,"link",t),se(e),s.head.appendChild(e)))}}function KS(t,e){Qn.m(t,e);var a=Ki;if(a&&t){var s=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+Ke(s)+'"][href="'+Ke(t)+'"]',u=o;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Zi(t)}if(!$e.has(u)&&(t=b({rel:"modulepreload",href:t},e),$e.set(u,t),a.querySelector(o)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector($s(u)))return}s=a.createElement("link"),he(s,"link",t),se(s),a.head.appendChild(s)}}}function PS(t,e,a){Qn.S(t,e,a);var s=Ki;if(s&&t){var o=mi(s).hoistableStyles,u=Pi(t);e=e||"default";var m=o.get(u);if(!m){var x={loading:0,preload:null};if(m=s.querySelector(Is(u)))x.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},a),(a=$e.get(u))&&qc(t,a);var w=m=s.createElement("link");se(w),he(w,"link",t),w._p=new Promise(function(z,H){w.onload=z,w.onerror=H}),w.addEventListener("load",function(){x.loading|=1}),w.addEventListener("error",function(){x.loading|=2}),x.loading|=4,zr(m,e,s)}m={type:"stylesheet",instance:m,count:1,state:x},o.set(u,m)}}}function ZS(t,e){Qn.X(t,e);var a=Ki;if(a&&t){var s=mi(a).hoistableScripts,o=Zi(t),u=s.get(o);u||(u=a.querySelector($s(o)),u||(t=b({src:t,async:!0},e),(e=$e.get(o))&&Yc(t,e),u=a.createElement("script"),se(u),he(u,"link",t),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(o,u))}}function QS(t,e){Qn.M(t,e);var a=Ki;if(a&&t){var s=mi(a).hoistableScripts,o=Zi(t),u=s.get(o);u||(u=a.querySelector($s(o)),u||(t=b({src:t,async:!0,type:"module"},e),(e=$e.get(o))&&Yc(t,e),u=a.createElement("script"),se(u),he(u,"link",t),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(o,u))}}function bg(t,e,a,s){var o=(o=rt.current)?Or(o):null;if(!o)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=Pi(a.href),a=mi(o).hoistableStyles,s=a.get(e),s||(s={type:"style",instance:null,count:0,state:null},a.set(e,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=Pi(a.href);var u=mi(o).hoistableStyles,m=u.get(t);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,m),(u=o.querySelector(Is(t)))&&!u._p&&(m.instance=u,m.state.loading=5),$e.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},$e.set(t,a),u||FS(o,t,a,m.state))),e&&s===null)throw Error(r(528,""));return m}if(e&&s!==null)throw Error(r(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Zi(a),a=mi(o).hoistableScripts,s=a.get(e),s||(s={type:"script",instance:null,count:0,state:null},a.set(e,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Pi(t){return'href="'+Ke(t)+'"'}function Is(t){return'link[rel="stylesheet"]['+t+"]"}function xg(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function FS(t,e,a,s){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?s.loading=1:(e=t.createElement("link"),s.preload=e,e.addEventListener("load",function(){return s.loading|=1}),e.addEventListener("error",function(){return s.loading|=2}),he(e,"link",a),se(e),t.head.appendChild(e))}function Zi(t){return'[src="'+Ke(t)+'"]'}function $s(t){return"script[async]"+t}function Sg(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var s=t.querySelector('style[data-href~="'+Ke(a.href)+'"]');if(s)return e.instance=s,se(s),s;var o=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),se(s),he(s,"style",o),zr(s,a.precedence,t),e.instance=s;case"stylesheet":o=Pi(a.href);var u=t.querySelector(Is(o));if(u)return e.state.loading|=4,e.instance=u,se(u),u;s=xg(a),(o=$e.get(o))&&qc(s,o),u=(t.ownerDocument||t).createElement("link"),se(u);var m=u;return m._p=new Promise(function(x,w){m.onload=x,m.onerror=w}),he(u,"link",s),e.state.loading|=4,zr(u,a.precedence,t),e.instance=u;case"script":return u=Zi(a.src),(o=t.querySelector($s(u)))?(e.instance=o,se(o),o):(s=a,(o=$e.get(u))&&(s=b({},a),Yc(s,o)),t=t.ownerDocument||t,o=t.createElement("script"),se(o),he(o,"link",s),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(s=e.instance,e.state.loading|=4,zr(s,a.precedence,t));return e.instance}function zr(t,e,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=s.length?s[s.length-1]:null,u=o,m=0;m<s.length;m++){var x=s[m];if(x.dataset.precedence===e)u=x;else if(u!==o)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function qc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Yc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var _r=null;function Tg(t,e,a){if(_r===null){var s=new Map,o=_r=new Map;o.set(a,s)}else o=_r,s=o.get(a),s||(s=new Map,o.set(a,s));if(s.has(t))return s;for(s.set(t,null),a=a.getElementsByTagName(t),o=0;o<a.length;o++){var u=a[o];if(!(u[ps]||u[ue]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var m=u.getAttribute(e)||"";m=t+m;var x=s.get(m);x?x.push(u):s.set(m,[u])}}return s}function wg(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function JS(t,e,a){if(a===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 Eg(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function WS(t,e,a,s){if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=Pi(s.href),u=e.querySelector(Is(o));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Vr.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=u,se(u);return}u=e.ownerDocument||e,s=xg(s),(o=$e.get(o))&&qc(s,o),u=u.createElement("link"),se(u);var m=u;m._p=new Promise(function(x,w){m.onload=x,m.onerror=w}),he(u,"link",s),a.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=Vr.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var Xc=0;function IS(t,e){return t.stylesheets&&t.count===0&&Lr(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var s=setTimeout(function(){if(t.stylesheets&&Lr(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Xc===0&&(Xc=62500*OS());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Lr(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Xc?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(o)}}:null}function Vr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Lr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var kr=null;function Lr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,kr=new Map,e.forEach($S,t),kr=null,Vr.call(t))}function $S(t,e){if(!(e.state.loading&4)){var a=kr.get(t);if(a)var s=a.get(null);else{a=new Map,kr.set(t,a);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var m=o[u];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),s=m)}s&&a.set(null,s)}o=e.instance,m=o.getAttribute("data-precedence"),u=a.get(m)||s,u===s&&a.set(null,o),a.set(m,o),this.count++,s=Vr.bind(this),o.addEventListener("load",s),o.addEventListener("error",s),u?u.parentNode.insertBefore(o,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var tl={$$typeof:k,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function t2(t,e,a,s,o,u,m,x,w){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=ms(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ms(0),this.hiddenUpdates=ms(null),this.identifierPrefix=s,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function Ag(t,e,a,s,o,u,m,x,w,z,H,X){return t=new t2(t,e,a,m,w,z,H,X,x),e=1,u===!0&&(e|=24),u=ke(3,null,null,e),t.current=u,u.stateNode=t,e=wu(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:s,isDehydrated:a,cache:e},Nu(u),t}function Cg(t){return t?(t=Ei,t):Ei}function Ng(t,e,a,s,o,u){o=Cg(o),s.context===null?s.context=o:s.pendingContext=o,s=sa(e),s.payload={element:a},u=u===void 0?null:u,u!==null&&(s.callback=u),a=la(t,s,e),a!==null&&(_e(a,t,e),Os(a,t,e))}function Mg(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function Kc(t,e){Mg(t,e),(t=t.alternate)&&Mg(t,e)}function jg(t){if(t.tag===13||t.tag===31){var e=Ba(t,67108864);e!==null&&_e(e,t,67108864),Kc(t,67108864)}}function Dg(t){if(t.tag===13||t.tag===31){var e=Ge();e=bn(e);var a=Ba(t,e);a!==null&&_e(a,t,e),Kc(t,e)}}var Ur=!0;function e2(t,e,a,s){var o=_.T;_.T=null;var u=Z.p;try{Z.p=2,Pc(t,e,a,s)}finally{Z.p=u,_.T=o}}function n2(t,e,a,s){var o=_.T;_.T=null;var u=Z.p;try{Z.p=8,Pc(t,e,a,s)}finally{Z.p=u,_.T=o}}function Pc(t,e,a,s){if(Ur){var o=Zc(s);if(o===null)Oc(t,e,s,Br,a),Og(t,s);else if(i2(o,t,e,a,s))s.stopPropagation();else if(Og(t,s),e&4&&-1<a2.indexOf(t)){for(;o!==null;){var u=hi(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var m=Dn(u.pendingLanes);if(m!==0){var x=u;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var w=1<<31-ye(m);x.entanglements[1]|=w,m&=~w}wn(u),(Dt&6)===0&&(Sr=ge()+500,Qs(0))}}break;case 31:case 13:x=Ba(u,2),x!==null&&_e(x,u,2),wr(),Kc(u,2)}if(u=Zc(s),u===null&&Oc(t,e,s,Br,a),u===o)break;o=u}o!==null&&s.stopPropagation()}else Oc(t,e,s,null,a)}}function Zc(t){return t=Fo(t),Qc(t)}var Br=null;function Qc(t){if(Br=null,t=di(t),t!==null){var e=f(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=d(e),t!==null)return t;t=null}else if(a===31){if(t=h(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Br=t,null}function Rg(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(Vo()){case an:return 2;case ds:return 8;case Ce:case Rl:return 32;case gn:return 268435456;default:return 32}default:return 32}}var Fc=!1,ya=null,va=null,ba=null,el=new Map,nl=new Map,xa=[],a2="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 Og(t,e){switch(t){case"focusin":case"focusout":ya=null;break;case"dragenter":case"dragleave":va=null;break;case"mouseover":case"mouseout":ba=null;break;case"pointerover":case"pointerout":el.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":nl.delete(e.pointerId)}}function al(t,e,a,s,o,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:a,eventSystemFlags:s,nativeEvent:u,targetContainers:[o]},e!==null&&(e=hi(e),e!==null&&jg(e)),t):(t.eventSystemFlags|=s,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function i2(t,e,a,s,o){switch(e){case"focusin":return ya=al(ya,t,e,a,s,o),!0;case"dragenter":return va=al(va,t,e,a,s,o),!0;case"mouseover":return ba=al(ba,t,e,a,s,o),!0;case"pointerover":var u=o.pointerId;return el.set(u,al(el.get(u)||null,t,e,a,s,o)),!0;case"gotpointercapture":return u=o.pointerId,nl.set(u,al(nl.get(u)||null,t,e,a,s,o)),!0}return!1}function zg(t){var e=di(t.target);if(e!==null){var a=f(e);if(a!==null){if(e=a.tag,e===13){if(e=d(a),e!==null){t.blockedOn=e,Zd(t.priority,function(){Dg(a)});return}}else if(e===31){if(e=h(a),e!==null){t.blockedOn=e,Zd(t.priority,function(){Dg(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Hr(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=Zc(t.nativeEvent);if(a===null){a=t.nativeEvent;var s=new a.constructor(a.type,a);Qo=s,a.target.dispatchEvent(s),Qo=null}else return e=hi(a),e!==null&&jg(e),t.blockedOn=a,!1;e.shift()}return!0}function _g(t,e,a){Hr(t)&&a.delete(e)}function s2(){Fc=!1,ya!==null&&Hr(ya)&&(ya=null),va!==null&&Hr(va)&&(va=null),ba!==null&&Hr(ba)&&(ba=null),el.forEach(_g),nl.forEach(_g)}function Gr(t,e){t.blockedOn===e&&(t.blockedOn=null,Fc||(Fc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,s2)))}var qr=null;function Vg(t){qr!==t&&(qr=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){qr===t&&(qr=null);for(var e=0;e<t.length;e+=3){var a=t[e],s=t[e+1],o=t[e+2];if(typeof s!="function"){if(Qc(s||a)===null)continue;break}var u=hi(a);u!==null&&(t.splice(e,3),e-=3,Zu(u,{pending:!0,data:o,method:a.method,action:s},s,o))}}))}function Qi(t){function e(w){return Gr(w,t)}ya!==null&&Gr(ya,t),va!==null&&Gr(va,t),ba!==null&&Gr(ba,t),el.forEach(e),nl.forEach(e);for(var a=0;a<xa.length;a++){var s=xa[a];s.blockedOn===t&&(s.blockedOn=null)}for(;0<xa.length&&(a=xa[0],a.blockedOn===null);)zg(a),a.blockedOn===null&&xa.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var o=a[s],u=a[s+1],m=o[Me]||null;if(typeof u=="function")m||Vg(a);else if(m){var x=null;if(u&&u.hasAttribute("formAction")){if(o=u,m=u[Me]||null)x=m.formAction;else if(Qc(o)!==null)continue}else x=m.action;typeof x=="function"?a[s+1]=x:(a.splice(s,3),s-=3),Vg(a)}}}function kg(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),s||setTimeout(a,20)}function a(){if(!s&&!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 s=!1,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function Jc(t){this._internalRoot=t}Yr.prototype.render=Jc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,s=Ge();Ng(a,s,t,e,null,null)},Yr.prototype.unmount=Jc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ng(t.current,2,null,t,null,null),wr(),e[fi]=null}};function Yr(t){this._internalRoot=t}Yr.prototype.unstable_scheduleHydration=function(t){if(t){var e=_a();t={blockedOn:null,target:t,priority:e};for(var a=0;a<xa.length&&e!==0&&e<xa[a].priority;a++);xa.splice(a,0,t),a===0&&zg(t)}};var Lg=i.version;if(Lg!=="19.2.4")throw Error(r(527,Lg,"19.2.4"));Z.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?v(t):null,t=t===null?null:t.stateNode,t};var l2={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xr.isDisabled&&Xr.supportsFiber)try{Oa=Xr.inject(l2),Te=Xr}catch{}}return sl.createRoot=function(t,e){if(!c(t))throw Error(r(299));var a=!1,s="",o=Xm,u=Km,m=Pm;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(s=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(m=e.onRecoverableError)),e=Ag(t,1,!1,null,null,a,s,null,o,u,m,kg),t[fi]=e.current,Rc(t),new Jc(e)},sl.hydrateRoot=function(t,e,a){if(!c(t))throw Error(r(299));var s=!1,o="",u=Xm,m=Km,x=Pm,w=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.formState!==void 0&&(w=a.formState)),e=Ag(t,1,!0,e,a??null,s,o,w,u,m,x,kg),e.context=Cg(null),a=e.current,s=Ge(),s=bn(s),o=sa(s),o.callback=null,la(a,o,s),a=s,e.current.lanes=a,Ye(e,a),wn(e),t[fi]=e.current,Rc(t),new Yr(e)},sl.version="19.2.4",sl}var Zg;function g2(){if(Zg)return $c.exports;Zg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),$c.exports=p2(),$c.exports}var y2=g2();const v2=rd(y2);class b2{ws=null;handlers=new Map;reconnectTimer=null;url;constructor(i){const l=location.protocol==="https:"?"wss:":"ws:",r=location.host;this.url=i??`${l}//${r}/ws`}connect(){this.ws=new WebSocket(this.url),this.ws.onmessage=i=>{const l=JSON.parse(i.data);this.handlers.get(l.type)?.forEach(c=>c(l.data))},this.ws.onclose=()=>{this.reconnectTimer=setTimeout(()=>this.connect(),2e3)},this.ws.onerror=()=>this.ws?.close()}disconnect(){this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.ws?.close(),this.ws=null}on(i,l){return this.handlers.has(i)||this.handlers.set(i,new Set),this.handlers.get(i).add(l),()=>this.handlers.get(i)?.delete(l)}send(i,l){this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:i,data:l}))}get connected(){return this.ws?.readyState===WebSocket.OPEN}}function x2(){const n=S.useRef(null),[i,l]=S.useState(!1);return S.useEffect(()=>{const r=new b2;n.current=r,r.connect();const c=setInterval(()=>{l(r.connected)},1e3);return()=>{clearInterval(c),r.disconnect()}},[]),{ws:n.current,connected:i}}class S2 extends S.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.fallback:this.props.children}}const Hv=(...n)=>n.filter((i,l,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===l).join(" ").trim();const T2=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const w2=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,l,r)=>r?r.toUpperCase():l.toLowerCase());const Qg=n=>{const i=w2(n);return i.charAt(0).toUpperCase()+i.slice(1)};var E2={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 A2=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const C2=S.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:r,className:c="",children:f,iconNode:d,...h},y)=>S.createElement("svg",{ref:y,...E2,width:i,height:i,stroke:n,strokeWidth:r?Number(l)*24/Number(i):l,className:Hv("lucide",c),...!f&&!A2(h)&&{"aria-hidden":"true"},...h},[...d.map(([p,v])=>S.createElement(p,v)),...Array.isArray(f)?f:[f]]));const Lt=(n,i)=>{const l=S.forwardRef(({className:r,...c},f)=>S.createElement(C2,{ref:f,iconNode:i,className:Hv(`lucide-${T2(Qg(n))}`,`lucide-${n}`,r),...c}));return l.displayName=Qg(n),l};const N2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],on=Lt("arrow-right",N2);const M2=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Gv=Lt("arrow-up-right",M2);const j2=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],D2=Lt("bell",j2);const R2=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],O2=Lt("book-open",R2);const z2=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],_2=Lt("brain",z2);const V2=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],k2=Lt("camera",V2);const L2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Kr=Lt("check",L2);const U2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Sl=Lt("chevron-down",U2);const B2=[["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"}]],H2=Lt("clipboard-paste",B2);const G2=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],q2=Lt("ellipsis",G2);const Y2=[["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"}]],X2=Lt("external-link",Y2);const K2=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],qv=Lt("file-text",K2);const P2=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Z2=Lt("layout-dashboard",P2);const Q2=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ll=Lt("loader-circle",Q2);const F2=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],J2=Lt("menu",F2);const W2=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],I2=Lt("message-square",W2);const $2=[["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"}]],Of=Lt("mic",$2);const tT=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],eT=Lt("paperclip",tT);const nT=[["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"}]],aT=Lt("refresh-cw",nT);const iT=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],sT=Lt("scroll-text",iT);const lT=[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]],rT=Lt("send-horizontal",lT);const oT=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Yv=Lt("settings",oT);const uT=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],cT=Lt("sliders-horizontal",uT);const fT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],dT=Lt("square",fT);const hT=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],mT=Lt("trash-2",hT);const pT=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],gT=Lt("wand-sparkles",pT);const yT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Xv=Lt("x",yT),vT=[{label:"HOME",items:[{label:"Overview",icon:Z2,href:"#",active:!0},{label:"Conversations",icon:I2,href:"#"},{label:"Models",icon:_2,href:"#"},{label:"Knowledge",icon:O2,href:"#"}]},{label:"SYSTEM",items:[{label:"Logs",icon:sT,href:"#"},{label:"Settings",icon:Yv,href:"#"}]}],bT=[{model:"GPT-4o",days:[3,2,4,3,1,2,0]},{model:"Claude",days:[2,4,3,4,2,1,1]},{model:"Local",days:[1,1,2,1,3,4,2]}],xT=["M","T","W","T","F","S","S"],Fg=["#2a2a2a","#1e3a5f","#2c5a8f","#3578bf","#3C8FFF"],ST=[{label:"< 10",level:1},{label:"10–50",level:2},{label:"> 50",level:3},{label:"100+",level:4},{label:"None",level:0}];function Kv(n){var i,l,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(i=0;i<c;i++)n[i]&&(l=Kv(n[i]))&&(r&&(r+=" "),r+=l)}else for(l in n)n[l]&&(r&&(r+=" "),r+=l);return r}function Pv(){for(var n,i,l=0,r="",c=arguments.length;l<c;l++)(n=arguments[l])&&(i=Kv(n))&&(r&&(r+=" "),r+=i);return r}const TT=(n,i)=>{const l=new Array(n.length+i.length);for(let r=0;r<n.length;r++)l[r]=n[r];for(let r=0;r<i.length;r++)l[n.length+r]=i[r];return l},wT=(n,i)=>({classGroupId:n,validator:i}),Zv=(n=new Map,i=null,l)=>({nextPart:n,validators:i,classGroupId:l}),ho="-",Jg=[],ET="arbitrary..",AT=n=>{const i=NT(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:r}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return CT(d);const h=d.split(ho),y=h[0]===""&&h.length>1?1:0;return Qv(h,y,i)},getConflictingClassGroupIds:(d,h)=>{if(h){const y=r[d],p=l[d];return y?p?TT(p,y):y:p||Jg}return l[d]||Jg}}},Qv=(n,i,l)=>{if(n.length-i===0)return l.classGroupId;const c=n[i],f=l.nextPart.get(c);if(f){const p=Qv(n,i+1,f);if(p)return p}const d=l.validators;if(d===null)return;const h=i===0?n.join(ho):n.slice(i).join(ho),y=d.length;for(let p=0;p<y;p++){const v=d[p];if(v.validator(h))return v.classGroupId}},CT=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=n.slice(1,-1),l=i.indexOf(":"),r=i.slice(0,l);return r?ET+r:void 0})(),NT=n=>{const{theme:i,classGroups:l}=n;return MT(l,i)},MT=(n,i)=>{const l=Zv();for(const r in n){const c=n[r];od(c,l,r,i)}return l},od=(n,i,l,r)=>{const c=n.length;for(let f=0;f<c;f++){const d=n[f];jT(d,i,l,r)}},jT=(n,i,l,r)=>{if(typeof n=="string"){DT(n,i,l);return}if(typeof n=="function"){RT(n,i,l,r);return}OT(n,i,l,r)},DT=(n,i,l)=>{const r=n===""?i:Fv(i,n);r.classGroupId=l},RT=(n,i,l,r)=>{if(zT(n)){od(n(r),i,l,r);return}i.validators===null&&(i.validators=[]),i.validators.push(wT(l,n))},OT=(n,i,l,r)=>{const c=Object.entries(n),f=c.length;for(let d=0;d<f;d++){const[h,y]=c[d];od(y,Fv(i,h),l,r)}},Fv=(n,i)=>{let l=n;const r=i.split(ho),c=r.length;for(let f=0;f<c;f++){const d=r[f];let h=l.nextPart.get(d);h||(h=Zv(),l.nextPart.set(d,h)),l=h}return l},zT=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,_T=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,l=Object.create(null),r=Object.create(null);const c=(f,d)=>{l[f]=d,i++,i>n&&(i=0,r=l,l=Object.create(null))};return{get(f){let d=l[f];if(d!==void 0)return d;if((d=r[f])!==void 0)return c(f,d),d},set(f,d){f in l?l[f]=d:c(f,d)}}},zf="!",Wg=":",VT=[],Ig=(n,i,l,r,c)=>({modifiers:n,hasImportantModifier:i,baseClassName:l,maybePostfixModifierPosition:r,isExternal:c}),kT=n=>{const{prefix:i,experimentalParseClassName:l}=n;let r=c=>{const f=[];let d=0,h=0,y=0,p;const v=c.length;for(let C=0;C<v;C++){const M=c[C];if(d===0&&h===0){if(M===Wg){f.push(c.slice(y,C)),y=C+1;continue}if(M==="/"){p=C;continue}}M==="["?d++:M==="]"?d--:M==="("?h++:M===")"&&h--}const b=f.length===0?c:c.slice(y);let T=b,E=!1;b.endsWith(zf)?(T=b.slice(0,-1),E=!0):b.startsWith(zf)&&(T=b.slice(1),E=!0);const j=p&&p>y?p-y:void 0;return Ig(f,E,T,j)};if(i){const c=i+Wg,f=r;r=d=>d.startsWith(c)?f(d.slice(c.length)):Ig(VT,!1,d,void 0,!0)}if(l){const c=r;r=f=>l({className:f,parseClassName:c})}return r},LT=n=>{const i=new Map;return n.orderSensitiveModifiers.forEach((l,r)=>{i.set(l,1e6+r)}),l=>{const r=[];let c=[];for(let f=0;f<l.length;f++){const d=l[f],h=d[0]==="[",y=i.has(d);h||y?(c.length>0&&(c.sort(),r.push(...c),c=[]),r.push(d)):c.push(d)}return c.length>0&&(c.sort(),r.push(...c)),r}},UT=n=>({cache:_T(n.cacheSize),parseClassName:kT(n),sortModifiers:LT(n),...AT(n)}),BT=/\s+/,HT=(n,i)=>{const{parseClassName:l,getClassGroupId:r,getConflictingClassGroupIds:c,sortModifiers:f}=i,d=[],h=n.trim().split(BT);let y="";for(let p=h.length-1;p>=0;p-=1){const v=h[p],{isExternal:b,modifiers:T,hasImportantModifier:E,baseClassName:j,maybePostfixModifierPosition:C}=l(v);if(b){y=v+(y.length>0?" "+y:y);continue}let M=!!C,R=r(M?j.substring(0,C):j);if(!R){if(!M){y=v+(y.length>0?" "+y:y);continue}if(R=r(j),!R){y=v+(y.length>0?" "+y:y);continue}M=!1}const G=T.length===0?"":T.length===1?T[0]:f(T).join(":"),k=E?G+zf:G,B=k+R;if(d.indexOf(B)>-1)continue;d.push(B);const K=c(R,M);for(let W=0;W<K.length;++W){const P=K[W];d.push(k+P)}y=v+(y.length>0?" "+y:y)}return y},GT=(...n)=>{let i=0,l,r,c="";for(;i<n.length;)(l=n[i++])&&(r=Jv(l))&&(c&&(c+=" "),c+=r);return c},Jv=n=>{if(typeof n=="string")return n;let i,l="";for(let r=0;r<n.length;r++)n[r]&&(i=Jv(n[r]))&&(l&&(l+=" "),l+=i);return l},qT=(n,...i)=>{let l,r,c,f;const d=y=>{const p=i.reduce((v,b)=>b(v),n());return l=UT(p),r=l.cache.get,c=l.cache.set,f=h,h(y)},h=y=>{const p=r(y);if(p)return p;const v=HT(y,l);return c(y,v),v};return f=d,(...y)=>f(GT(...y))},YT=[],ne=n=>{const i=l=>l[n]||YT;return i.isThemeGetter=!0,i},Wv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Iv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,XT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,KT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,PT=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ZT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,QT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,FT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ta=n=>XT.test(n),bt=n=>!!n&&!Number.isNaN(Number(n)),wa=n=>!!n&&Number.isInteger(Number(n)),af=n=>n.endsWith("%")&&bt(n.slice(0,-1)),Fn=n=>KT.test(n),$v=()=>!0,JT=n=>PT.test(n)&&!ZT.test(n),ud=()=>!1,WT=n=>QT.test(n),IT=n=>FT.test(n),$T=n=>!at(n)&&!st(n),tw=n=>ja(n,n0,ud),at=n=>Wv.test(n),Ia=n=>ja(n,a0,JT),$g=n=>ja(n,ow,bt),ew=n=>ja(n,s0,$v),nw=n=>ja(n,i0,ud),ty=n=>ja(n,t0,ud),aw=n=>ja(n,e0,IT),Pr=n=>ja(n,l0,WT),st=n=>Iv.test(n),rl=n=>li(n,a0),iw=n=>li(n,i0),ey=n=>li(n,t0),sw=n=>li(n,n0),lw=n=>li(n,e0),Zr=n=>li(n,l0,!0),rw=n=>li(n,s0,!0),ja=(n,i,l)=>{const r=Wv.exec(n);return r?r[1]?i(r[1]):l(r[2]):!1},li=(n,i,l=!1)=>{const r=Iv.exec(n);return r?r[1]?i(r[1]):l:!1},t0=n=>n==="position"||n==="percentage",e0=n=>n==="image"||n==="url",n0=n=>n==="length"||n==="size"||n==="bg-size",a0=n=>n==="length",ow=n=>n==="number",i0=n=>n==="family-name",s0=n=>n==="number"||n==="weight",l0=n=>n==="shadow",uw=()=>{const n=ne("color"),i=ne("font"),l=ne("text"),r=ne("font-weight"),c=ne("tracking"),f=ne("leading"),d=ne("breakpoint"),h=ne("container"),y=ne("spacing"),p=ne("radius"),v=ne("shadow"),b=ne("inset-shadow"),T=ne("text-shadow"),E=ne("drop-shadow"),j=ne("blur"),C=ne("perspective"),M=ne("aspect"),R=ne("ease"),G=ne("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],K=()=>[...B(),st,at],W=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],L=()=>[st,at,y],tt=()=>[Ta,"full","auto",...L()],dt=()=>[wa,"none","subgrid",st,at],ut=()=>["auto",{span:["full",wa,st,at]},wa,st,at],At=()=>[wa,"auto",st,at],Tt=()=>["auto","min","max","fr",st,at],Gt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Nt=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...L()],Z=()=>[Ta,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],$=()=>[Ta,"screen","full","dvw","lvw","svw","min","max","fit",...L()],ht=()=>[Ta,"screen","full","lh","dvh","lvh","svh","min","max","fit",...L()],F=()=>[n,st,at],A=()=>[...B(),ey,ty,{position:[st,at]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",sw,tw,{size:[st,at]}],et=()=>[af,rl,Ia],I=()=>["","none","full",p,st,at],rt=()=>["",bt,rl,Ia],yt=()=>["solid","dashed","dotted","double"],qt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],mt=()=>[bt,af,ey,ty],ie=()=>["","none",j,st,at],qe=()=>["none",bt,st,at],oe=()=>["none",bt,st,at],mn=()=>[bt,st,at],Se=()=>[Ta,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Fn],breakpoint:[Fn],color:[$v],container:[Fn],"drop-shadow":[Fn],ease:["in","out","in-out"],font:[$T],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Fn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Fn],shadow:[Fn],spacing:["px",bt],text:[Fn],"text-shadow":[Fn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ta,at,st,M]}],container:["container"],columns:[{columns:[bt,at,st,h]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:K()}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:tt()}],"inset-x":[{"inset-x":tt()}],"inset-y":[{"inset-y":tt()}],start:[{"inset-s":tt(),start:tt()}],end:[{"inset-e":tt(),end:tt()}],"inset-bs":[{"inset-bs":tt()}],"inset-be":[{"inset-be":tt()}],top:[{top:tt()}],right:[{right:tt()}],bottom:[{bottom:tt()}],left:[{left:tt()}],visibility:["visible","invisible","collapse"],z:[{z:[wa,"auto",st,at]}],basis:[{basis:[Ta,"full","auto",h,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[bt,Ta,"auto","initial","none",at]}],grow:[{grow:["",bt,st,at]}],shrink:[{shrink:["",bt,st,at]}],order:[{order:[wa,"first","last","none",st,at]}],"grid-cols":[{"grid-cols":dt()}],"col-start-end":[{col:ut()}],"col-start":[{"col-start":At()}],"col-end":[{"col-end":At()}],"grid-rows":[{"grid-rows":dt()}],"row-start-end":[{row:ut()}],"row-start":[{"row-start":At()}],"row-end":[{"row-end":At()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Tt()}],"auto-rows":[{"auto-rows":Tt()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...Gt(),"normal"]}],"justify-items":[{"justify-items":[...Nt(),"normal"]}],"justify-self":[{"justify-self":["auto",...Nt()]}],"align-content":[{content:["normal",...Gt()]}],"align-items":[{items:[...Nt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Nt(),{baseline:["","last"]}]}],"place-content":[{"place-content":Gt()}],"place-items":[{"place-items":[...Nt(),"baseline"]}],"place-self":[{"place-self":["auto",...Nt()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pbs:[{pbs:L()}],pbe:[{pbe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mbs:[{mbs:_()}],mbe:[{mbe:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],"inline-size":[{inline:["auto",...$()]}],"min-inline-size":[{"min-inline":["auto",...$()]}],"max-inline-size":[{"max-inline":["none",...$()]}],"block-size":[{block:["auto",...ht()]}],"min-block-size":[{"min-block":["auto",...ht()]}],"max-block-size":[{"max-block":["none",...ht()]}],w:[{w:[h,"screen",...Z()]}],"min-w":[{"min-w":[h,"screen","none",...Z()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[d]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",l,rl,Ia]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,rw,ew]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",af,at]}],"font-family":[{font:[iw,nw,i]}],"font-features":[{"font-features":[at]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,st,at]}],"line-clamp":[{"line-clamp":[bt,"none",st,$g]}],leading:[{leading:[f,...L()]}],"list-image":[{"list-image":["none",st,at]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",st,at]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...yt(),"wavy"]}],"text-decoration-thickness":[{decoration:[bt,"from-font","auto",st,Ia]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[bt,"auto",st,at]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",st,at]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",st,at]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},wa,st,at],radial:["",st,at],conic:[wa,st,at]},lw,aw]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:et()}],"gradient-via-pos":[{via:et()}],"gradient-to-pos":[{to:et()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:rt()}],"border-w-x":[{"border-x":rt()}],"border-w-y":[{"border-y":rt()}],"border-w-s":[{"border-s":rt()}],"border-w-e":[{"border-e":rt()}],"border-w-bs":[{"border-bs":rt()}],"border-w-be":[{"border-be":rt()}],"border-w-t":[{"border-t":rt()}],"border-w-r":[{"border-r":rt()}],"border-w-b":[{"border-b":rt()}],"border-w-l":[{"border-l":rt()}],"divide-x":[{"divide-x":rt()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":rt()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...yt(),"hidden","none"]}],"divide-style":[{divide:[...yt(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...yt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[bt,st,at]}],"outline-w":[{outline:["",bt,rl,Ia]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",v,Zr,Pr]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",b,Zr,Pr]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:rt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[bt,Ia]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":rt()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",T,Zr,Pr]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[bt,st,at]}],"mix-blend":[{"mix-blend":[...qt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":qt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[bt]}],"mask-image-linear-from-pos":[{"mask-linear-from":mt()}],"mask-image-linear-to-pos":[{"mask-linear-to":mt()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":mt()}],"mask-image-t-to-pos":[{"mask-t-to":mt()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":mt()}],"mask-image-r-to-pos":[{"mask-r-to":mt()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":mt()}],"mask-image-b-to-pos":[{"mask-b-to":mt()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":mt()}],"mask-image-l-to-pos":[{"mask-l-to":mt()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":mt()}],"mask-image-x-to-pos":[{"mask-x-to":mt()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":mt()}],"mask-image-y-to-pos":[{"mask-y-to":mt()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[st,at]}],"mask-image-radial-from-pos":[{"mask-radial-from":mt()}],"mask-image-radial-to-pos":[{"mask-radial-to":mt()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":B()}],"mask-image-conic-pos":[{"mask-conic":[bt]}],"mask-image-conic-from-pos":[{"mask-conic-from":mt()}],"mask-image-conic-to-pos":[{"mask-conic-to":mt()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",st,at]}],filter:[{filter:["","none",st,at]}],blur:[{blur:ie()}],brightness:[{brightness:[bt,st,at]}],contrast:[{contrast:[bt,st,at]}],"drop-shadow":[{"drop-shadow":["","none",E,Zr,Pr]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",bt,st,at]}],"hue-rotate":[{"hue-rotate":[bt,st,at]}],invert:[{invert:["",bt,st,at]}],saturate:[{saturate:[bt,st,at]}],sepia:[{sepia:["",bt,st,at]}],"backdrop-filter":[{"backdrop-filter":["","none",st,at]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[bt,st,at]}],"backdrop-contrast":[{"backdrop-contrast":[bt,st,at]}],"backdrop-grayscale":[{"backdrop-grayscale":["",bt,st,at]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[bt,st,at]}],"backdrop-invert":[{"backdrop-invert":["",bt,st,at]}],"backdrop-opacity":[{"backdrop-opacity":[bt,st,at]}],"backdrop-saturate":[{"backdrop-saturate":[bt,st,at]}],"backdrop-sepia":[{"backdrop-sepia":["",bt,st,at]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",st,at]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[bt,"initial",st,at]}],ease:[{ease:["linear","initial",R,st,at]}],delay:[{delay:[bt,st,at]}],animate:[{animate:["none",G,st,at]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,st,at]}],"perspective-origin":[{"perspective-origin":K()}],rotate:[{rotate:qe()}],"rotate-x":[{"rotate-x":qe()}],"rotate-y":[{"rotate-y":qe()}],"rotate-z":[{"rotate-z":qe()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:mn()}],"skew-x":[{"skew-x":mn()}],"skew-y":[{"skew-y":mn()}],transform:[{transform:[st,at,"","none","gpu","cpu"]}],"transform-origin":[{origin:K()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Se()}],"translate-x":[{"translate-x":Se()}],"translate-y":[{"translate-y":Se()}],"translate-z":[{"translate-z":Se()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",st,at]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mbs":[{"scroll-mbs":L()}],"scroll-mbe":[{"scroll-mbe":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pbs":[{"scroll-pbs":L()}],"scroll-pbe":[{"scroll-pbe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",st,at]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[bt,rl,Ia,$g]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},cw=qT(uw);function nn(...n){return cw(Pv(n))}function fw(){const n=new Date().getHours();return n<12?`Good
|
|
10
|
-
Morning!`:n<18?`Good
|
|
11
|
-
Afternoon!`:`Good
|
|
12
|
-
Evening!`}function r0(){return g.jsxs("aside",{className:"flex flex-col h-full w-72 p-6 pt-8",children:[g.jsxs("div",{className:"mb-10",children:[g.jsx("h1",{className:"text-5xl font-bold leading-[1.1] whitespace-pre-line",children:fw()}),g.jsx("p",{className:"text-sm text-muted-foreground mt-3",children:"Your AI assistant dashboard"})]}),g.jsx("nav",{className:"flex-1 space-y-8",children:vT.map(n=>g.jsxs("div",{children:[g.jsx("span",{className:"text-[11px] font-medium uppercase tracking-widest text-muted-foreground mb-3 block",children:n.label}),g.jsx("div",{className:"space-y-1",children:n.items.map(i=>g.jsxs("a",{href:i.href,className:nn("flex items-center gap-3 px-4 py-2.5 rounded-full text-sm transition-colors",i.active?"bg-foreground text-background font-medium":"text-muted-foreground hover:text-foreground"),children:[g.jsx(i.icon,{className:"h-4 w-4"}),i.label,i.active&&g.jsx(Sl,{className:"h-4 w-4 ml-auto"})]},i.label))})]},n.label))})]})}const ny=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,ay=Pv,dw=(n,i)=>l=>{var r;if(i?.variants==null)return ay(n,l?.class,l?.className);const{variants:c,defaultVariants:f}=i,d=Object.keys(c).map(p=>{const v=l?.[p],b=f?.[p];if(v===null)return null;const T=ny(v)||ny(b);return c[p][T]}),h=l&&Object.entries(l).reduce((p,v)=>{let[b,T]=v;return T===void 0||(p[b]=T),p},{}),y=i==null||(r=i.compoundVariants)===null||r===void 0?void 0:r.reduce((p,v)=>{let{class:b,className:T,...E}=v;return Object.entries(E).every(j=>{let[C,M]=j;return Array.isArray(M)?M.includes({...f,...h}[C]):{...f,...h}[C]===M})?[...p,b,T]:p},[]);return ay(n,d,y,l?.class,l?.className)};var o0=Bv();const hw=rd(o0);function iy(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function u0(...n){return i=>{let l=!1;const r=n.map(c=>{const f=iy(c,i);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let c=0;c<r.length;c++){const f=r[c];typeof f=="function"?f():iy(n[c],null)}}}}function Nn(...n){return S.useCallback(u0(...n),n)}function mo(n){const i=mw(n),l=S.forwardRef((r,c)=>{const{children:f,...d}=r,h=S.Children.toArray(f),y=h.find(gw);if(y){const p=y.props.children,v=h.map(b=>b===y?S.Children.count(p)>1?S.Children.only(null):S.isValidElement(p)?p.props.children:null:b);return g.jsx(i,{...d,ref:c,children:S.isValidElement(p)?S.cloneElement(p,void 0,v):null})}return g.jsx(i,{...d,ref:c,children:f})});return l.displayName=`${n}.Slot`,l}function mw(n){const i=S.forwardRef((l,r)=>{const{children:c,...f}=l;if(S.isValidElement(c)){const d=vw(c),h=yw(f,c.props);return c.type!==S.Fragment&&(h.ref=r?u0(r,d):d),S.cloneElement(c,h)}return S.Children.count(c)>1?S.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var pw=Symbol("radix.slottable");function gw(n){return S.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===pw}function yw(n,i){const l={...i};for(const r in i){const c=n[r],f=i[r];/^on[A-Z]/.test(r)?c&&f?l[r]=(...h)=>{const y=f(...h);return c(...h),y}:c&&(l[r]=c):r==="style"?l[r]={...c,...f}:r==="className"&&(l[r]=[c,f].filter(Boolean).join(" "))}return{...n,...l}}function vw(n){let i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,l=i&&"isReactWarning"in i&&i.isReactWarning;return l?n.ref:(i=Object.getOwnPropertyDescriptor(n,"ref")?.get,l=i&&"isReactWarning"in i&&i.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var bw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],re=bw.reduce((n,i)=>{const l=mo(`Primitive.${i}`),r=S.forwardRef((c,f)=>{const{asChild:d,...h}=c,y=d?l:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(y,{...h,ref:f})});return r.displayName=`Primitive.${i}`,{...n,[i]:r}},{});function xw(n,i){n&&o0.flushSync(()=>n.dispatchEvent(i))}function Sw(n,i){const l=S.createContext(i),r=f=>{const{children:d,...h}=f,y=S.useMemo(()=>h,Object.values(h));return g.jsx(l.Provider,{value:y,children:d})};r.displayName=n+"Provider";function c(f){const d=S.useContext(l);if(d)return d;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[r,c]}function Tl(n,i=[]){let l=[];function r(f,d){const h=S.createContext(d),y=l.length;l=[...l,d];const p=b=>{const{scope:T,children:E,...j}=b,C=T?.[n]?.[y]||h,M=S.useMemo(()=>j,Object.values(j));return g.jsx(C.Provider,{value:M,children:E})};p.displayName=f+"Provider";function v(b,T){const E=T?.[n]?.[y]||h,j=S.useContext(E);if(j)return j;if(d!==void 0)return d;throw new Error(`\`${b}\` must be used within \`${f}\``)}return[p,v]}const c=()=>{const f=l.map(d=>S.createContext(d));return function(h){const y=h?.[n]||f;return S.useMemo(()=>({[`__scope${n}`]:{...h,[n]:y}}),[h,y])}};return c.scopeName=n,[r,Tw(c,...i)]}function Tw(...n){const i=n[0];if(n.length===1)return i;const l=()=>{const r=n.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(f){const d=r.reduce((h,{useScope:y,scopeName:p})=>{const b=y(f)[`__scope${p}`];return{...h,...b}},{});return S.useMemo(()=>({[`__scope${i.scopeName}`]:d}),[d])}};return l.scopeName=i.scopeName,l}function ww(n){const i=n+"CollectionProvider",[l,r]=Tl(i),[c,f]=l(i,{collectionRef:{current:null},itemMap:new Map}),d=C=>{const{scope:M,children:R}=C,G=Jn.useRef(null),k=Jn.useRef(new Map).current;return g.jsx(c,{scope:M,itemMap:k,collectionRef:G,children:R})};d.displayName=i;const h=n+"CollectionSlot",y=mo(h),p=Jn.forwardRef((C,M)=>{const{scope:R,children:G}=C,k=f(h,R),B=Nn(M,k.collectionRef);return g.jsx(y,{ref:B,children:G})});p.displayName=h;const v=n+"CollectionItemSlot",b="data-radix-collection-item",T=mo(v),E=Jn.forwardRef((C,M)=>{const{scope:R,children:G,...k}=C,B=Jn.useRef(null),K=Nn(M,B),W=f(v,R);return Jn.useEffect(()=>(W.itemMap.set(B,{ref:B,...k}),()=>{W.itemMap.delete(B)})),g.jsx(T,{[b]:"",ref:K,children:G})});E.displayName=v;function j(C){const M=f(n+"CollectionConsumer",C);return Jn.useCallback(()=>{const G=M.collectionRef.current;if(!G)return[];const k=Array.from(G.querySelectorAll(`[${b}]`));return Array.from(M.itemMap.values()).sort((W,P)=>k.indexOf(W.ref.current)-k.indexOf(P.ref.current))},[M.collectionRef,M.itemMap])}return[{Provider:d,Slot:p,ItemSlot:E},j,r]}function pe(n,i,{checkForDefaultPrevented:l=!0}={}){return function(c){if(n?.(c),l===!1||!c.defaultPrevented)return i?.(c)}}var Na=globalThis?.document?S.useLayoutEffect:()=>{},Ew=Uv[" useInsertionEffect ".trim().toString()]||Na;function cd({prop:n,defaultProp:i,onChange:l=()=>{},caller:r}){const[c,f,d]=Aw({defaultProp:i,onChange:l}),h=n!==void 0,y=h?n:c;{const v=S.useRef(n!==void 0);S.useEffect(()=>{const b=v.current;b!==h&&console.warn(`${r} is changing from ${b?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=h},[h,r])}const p=S.useCallback(v=>{if(h){const b=Cw(v)?v(n):v;b!==n&&d.current?.(b)}else f(v)},[h,n,f,d]);return[y,p]}function Aw({defaultProp:n,onChange:i}){const[l,r]=S.useState(n),c=S.useRef(l),f=S.useRef(i);return Ew(()=>{f.current=i},[i]),S.useEffect(()=>{c.current!==l&&(f.current?.(l),c.current=l)},[l,c]),[l,r,f]}function Cw(n){return typeof n=="function"}function Nw(n,i){return S.useReducer((l,r)=>i[l][r]??l,n)}var wl=n=>{const{present:i,children:l}=n,r=Mw(i),c=typeof l=="function"?l({present:r.isPresent}):S.Children.only(l),f=Nn(r.ref,jw(c));return typeof l=="function"||r.isPresent?S.cloneElement(c,{ref:f}):null};wl.displayName="Presence";function Mw(n){const[i,l]=S.useState(),r=S.useRef(null),c=S.useRef(n),f=S.useRef("none"),d=n?"mounted":"unmounted",[h,y]=Nw(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const p=Qr(r.current);f.current=h==="mounted"?p:"none"},[h]),Na(()=>{const p=r.current,v=c.current;if(v!==n){const T=f.current,E=Qr(p);n?y("MOUNT"):E==="none"||p?.display==="none"?y("UNMOUNT"):y(v&&T!==E?"ANIMATION_OUT":"UNMOUNT"),c.current=n}},[n,y]),Na(()=>{if(i){let p;const v=i.ownerDocument.defaultView??window,b=E=>{const C=Qr(r.current).includes(CSS.escape(E.animationName));if(E.target===i&&C&&(y("ANIMATION_END"),!c.current)){const M=i.style.animationFillMode;i.style.animationFillMode="forwards",p=v.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=M)})}},T=E=>{E.target===i&&(f.current=Qr(r.current))};return i.addEventListener("animationstart",T),i.addEventListener("animationcancel",b),i.addEventListener("animationend",b),()=>{v.clearTimeout(p),i.removeEventListener("animationstart",T),i.removeEventListener("animationcancel",b),i.removeEventListener("animationend",b)}}else y("ANIMATION_END")},[i,y]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:S.useCallback(p=>{r.current=p?getComputedStyle(p):null,l(p)},[])}}function Qr(n){return n?.animationName||"none"}function jw(n){let i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,l=i&&"isReactWarning"in i&&i.isReactWarning;return l?n.ref:(i=Object.getOwnPropertyDescriptor(n,"ref")?.get,l=i&&"isReactWarning"in i&&i.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var Dw=Uv[" useId ".trim().toString()]||(()=>{}),Rw=0;function cl(n){const[i,l]=S.useState(Dw());return Na(()=>{l(r=>r??String(Rw++))},[n]),n||(i?`radix-${i}`:"")}var Ow=S.createContext(void 0);function c0(n){const i=S.useContext(Ow);return n||i||"ltr"}function ii(n){const i=S.useRef(n);return S.useEffect(()=>{i.current=n}),S.useMemo(()=>(...l)=>i.current?.(...l),[])}function zw(n,i=globalThis?.document){const l=ii(n);S.useEffect(()=>{const r=c=>{c.key==="Escape"&&l(c)};return i.addEventListener("keydown",r,{capture:!0}),()=>i.removeEventListener("keydown",r,{capture:!0})},[l,i])}var _w="DismissableLayer",_f="dismissableLayer.update",Vw="dismissableLayer.pointerDownOutside",kw="dismissableLayer.focusOutside",sy,f0=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),d0=S.forwardRef((n,i)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:r,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:h,...y}=n,p=S.useContext(f0),[v,b]=S.useState(null),T=v?.ownerDocument??globalThis?.document,[,E]=S.useState({}),j=Nn(i,P=>b(P)),C=Array.from(p.layers),[M]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),R=C.indexOf(M),G=v?C.indexOf(v):-1,k=p.layersWithOutsidePointerEventsDisabled.size>0,B=G>=R,K=Bw(P=>{const L=P.target,tt=[...p.branches].some(dt=>dt.contains(L));!B||tt||(c?.(P),d?.(P),P.defaultPrevented||h?.())},T),W=Hw(P=>{const L=P.target;[...p.branches].some(dt=>dt.contains(L))||(f?.(P),d?.(P),P.defaultPrevented||h?.())},T);return zw(P=>{G===p.layers.size-1&&(r?.(P),!P.defaultPrevented&&h&&(P.preventDefault(),h()))},T),S.useEffect(()=>{if(v)return l&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(sy=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(v)),p.layers.add(v),ly(),()=>{l&&p.layersWithOutsidePointerEventsDisabled.size===1&&(T.body.style.pointerEvents=sy)}},[v,T,l,p]),S.useEffect(()=>()=>{v&&(p.layers.delete(v),p.layersWithOutsidePointerEventsDisabled.delete(v),ly())},[v,p]),S.useEffect(()=>{const P=()=>E({});return document.addEventListener(_f,P),()=>document.removeEventListener(_f,P)},[]),g.jsx(re.div,{...y,ref:j,style:{pointerEvents:k?B?"auto":"none":void 0,...n.style},onFocusCapture:pe(n.onFocusCapture,W.onFocusCapture),onBlurCapture:pe(n.onBlurCapture,W.onBlurCapture),onPointerDownCapture:pe(n.onPointerDownCapture,K.onPointerDownCapture)})});d0.displayName=_w;var Lw="DismissableLayerBranch",Uw=S.forwardRef((n,i)=>{const l=S.useContext(f0),r=S.useRef(null),c=Nn(i,r);return S.useEffect(()=>{const f=r.current;if(f)return l.branches.add(f),()=>{l.branches.delete(f)}},[l.branches]),g.jsx(re.div,{...n,ref:c})});Uw.displayName=Lw;function Bw(n,i=globalThis?.document){const l=ii(n),r=S.useRef(!1),c=S.useRef(()=>{});return S.useEffect(()=>{const f=h=>{if(h.target&&!r.current){let y=function(){h0(Vw,l,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(i.removeEventListener("click",c.current),c.current=y,i.addEventListener("click",c.current,{once:!0})):y()}else i.removeEventListener("click",c.current);r.current=!1},d=window.setTimeout(()=>{i.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(d),i.removeEventListener("pointerdown",f),i.removeEventListener("click",c.current)}},[i,l]),{onPointerDownCapture:()=>r.current=!0}}function Hw(n,i=globalThis?.document){const l=ii(n),r=S.useRef(!1);return S.useEffect(()=>{const c=f=>{f.target&&!r.current&&h0(kw,l,{originalEvent:f},{discrete:!1})};return i.addEventListener("focusin",c),()=>i.removeEventListener("focusin",c)},[i,l]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ly(){const n=new CustomEvent(_f);document.dispatchEvent(n)}function h0(n,i,l,{discrete:r}){const c=l.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:l});i&&c.addEventListener(n,i,{once:!0}),r?xw(c,f):c.dispatchEvent(f)}var sf="focusScope.autoFocusOnMount",lf="focusScope.autoFocusOnUnmount",ry={bubbles:!1,cancelable:!0},Gw="FocusScope",m0=S.forwardRef((n,i)=>{const{loop:l=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:f,...d}=n,[h,y]=S.useState(null),p=ii(c),v=ii(f),b=S.useRef(null),T=Nn(i,C=>y(C)),E=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let C=function(k){if(E.paused||!h)return;const B=k.target;h.contains(B)?b.current=B:Ea(b.current,{select:!0})},M=function(k){if(E.paused||!h)return;const B=k.relatedTarget;B!==null&&(h.contains(B)||Ea(b.current,{select:!0}))},R=function(k){if(document.activeElement===document.body)for(const K of k)K.removedNodes.length>0&&Ea(h)};document.addEventListener("focusin",C),document.addEventListener("focusout",M);const G=new MutationObserver(R);return h&&G.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",M),G.disconnect()}}},[r,h,E.paused]),S.useEffect(()=>{if(h){uy.add(E);const C=document.activeElement;if(!h.contains(C)){const R=new CustomEvent(sf,ry);h.addEventListener(sf,p),h.dispatchEvent(R),R.defaultPrevented||(qw(Zw(p0(h)),{select:!0}),document.activeElement===C&&Ea(h))}return()=>{h.removeEventListener(sf,p),setTimeout(()=>{const R=new CustomEvent(lf,ry);h.addEventListener(lf,v),h.dispatchEvent(R),R.defaultPrevented||Ea(C??document.body,{select:!0}),h.removeEventListener(lf,v),uy.remove(E)},0)}}},[h,p,v,E]);const j=S.useCallback(C=>{if(!l&&!r||E.paused)return;const M=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,R=document.activeElement;if(M&&R){const G=C.currentTarget,[k,B]=Yw(G);k&&B?!C.shiftKey&&R===B?(C.preventDefault(),l&&Ea(k,{select:!0})):C.shiftKey&&R===k&&(C.preventDefault(),l&&Ea(B,{select:!0})):R===G&&C.preventDefault()}},[l,r,E.paused]);return g.jsx(re.div,{tabIndex:-1,...d,ref:T,onKeyDown:j})});m0.displayName=Gw;function qw(n,{select:i=!1}={}){const l=document.activeElement;for(const r of n)if(Ea(r,{select:i}),document.activeElement!==l)return}function Yw(n){const i=p0(n),l=oy(i,n),r=oy(i.reverse(),n);return[l,r]}function p0(n){const i=[],l=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)i.push(l.currentNode);return i}function oy(n,i){for(const l of n)if(!Xw(l,{upTo:i}))return l}function Xw(n,{upTo:i}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(i!==void 0&&n===i)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Kw(n){return n instanceof HTMLInputElement&&"select"in n}function Ea(n,{select:i=!1}={}){if(n&&n.focus){const l=document.activeElement;n.focus({preventScroll:!0}),n!==l&&Kw(n)&&i&&n.select()}}var uy=Pw();function Pw(){let n=[];return{add(i){const l=n[0];i!==l&&l?.pause(),n=cy(n,i),n.unshift(i)},remove(i){n=cy(n,i),n[0]?.resume()}}}function cy(n,i){const l=[...n],r=l.indexOf(i);return r!==-1&&l.splice(r,1),l}function Zw(n){return n.filter(i=>i.tagName!=="A")}var Qw="Portal",g0=S.forwardRef((n,i)=>{const{container:l,...r}=n,[c,f]=S.useState(!1);Na(()=>f(!0),[]);const d=l||c&&globalThis?.document?.body;return d?hw.createPortal(g.jsx(re.div,{...r,ref:i}),d):null});g0.displayName=Qw;var rf=0;function Fw(){S.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??fy()),document.body.insertAdjacentElement("beforeend",n[1]??fy()),rf++,()=>{rf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),rf--}},[])}function fy(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var An=function(){return An=Object.assign||function(i){for(var l,r=1,c=arguments.length;r<c;r++){l=arguments[r];for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(i[f]=l[f])}return i},An.apply(this,arguments)};function y0(n,i){var l={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&i.indexOf(r)<0&&(l[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(n);c<r.length;c++)i.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(n,r[c])&&(l[r[c]]=n[r[c]]);return l}function Jw(n,i,l){if(l||arguments.length===2)for(var r=0,c=i.length,f;r<c;r++)(f||!(r in i))&&(f||(f=Array.prototype.slice.call(i,0,r)),f[r]=i[r]);return n.concat(f||Array.prototype.slice.call(i))}var ao="right-scroll-bar-position",io="width-before-scroll-bar",Ww="with-scroll-bars-hidden",Iw="--removed-body-scroll-bar-size";function of(n,i){return typeof n=="function"?n(i):n&&(n.current=i),n}function $w(n,i){var l=S.useState(function(){return{value:n,callback:i,facade:{get current(){return l.value},set current(r){var c=l.value;c!==r&&(l.value=r,l.callback(r,c))}}}})[0];return l.callback=i,l.facade}var tE=typeof window<"u"?S.useLayoutEffect:S.useEffect,dy=new WeakMap;function eE(n,i){var l=$w(null,function(r){return n.forEach(function(c){return of(c,r)})});return tE(function(){var r=dy.get(l);if(r){var c=new Set(r),f=new Set(n),d=l.current;c.forEach(function(h){f.has(h)||of(h,null)}),f.forEach(function(h){c.has(h)||of(h,d)})}dy.set(l,n)},[n]),l}function nE(n){return n}function aE(n,i){i===void 0&&(i=nE);var l=[],r=!1,c={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:n},useMedium:function(f){var d=i(f,r);return l.push(d),function(){l=l.filter(function(h){return h!==d})}},assignSyncMedium:function(f){for(r=!0;l.length;){var d=l;l=[],d.forEach(f)}l={push:function(h){return f(h)},filter:function(){return l}}},assignMedium:function(f){r=!0;var d=[];if(l.length){var h=l;l=[],h.forEach(f),d=l}var y=function(){var v=d;d=[],v.forEach(f)},p=function(){return Promise.resolve().then(y)};p(),l={push:function(v){d.push(v),p()},filter:function(v){return d=d.filter(v),l}}}};return c}function iE(n){n===void 0&&(n={});var i=aE(null);return i.options=An({async:!0,ssr:!1},n),i}var v0=function(n){var i=n.sideCar,l=y0(n,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=i.read();if(!r)throw new Error("Sidecar medium not found");return S.createElement(r,An({},l))};v0.isSideCarExport=!0;function sE(n,i){return n.useMedium(i),v0}var b0=iE(),uf=function(){},Ao=S.forwardRef(function(n,i){var l=S.useRef(null),r=S.useState({onScrollCapture:uf,onWheelCapture:uf,onTouchMoveCapture:uf}),c=r[0],f=r[1],d=n.forwardProps,h=n.children,y=n.className,p=n.removeScrollBar,v=n.enabled,b=n.shards,T=n.sideCar,E=n.noRelative,j=n.noIsolation,C=n.inert,M=n.allowPinchZoom,R=n.as,G=R===void 0?"div":R,k=n.gapMode,B=y0(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),K=T,W=eE([l,i]),P=An(An({},B),c);return S.createElement(S.Fragment,null,v&&S.createElement(K,{sideCar:b0,removeScrollBar:p,shards:b,noRelative:E,noIsolation:j,inert:C,setCallbacks:f,allowPinchZoom:!!M,lockRef:l,gapMode:k}),d?S.cloneElement(S.Children.only(h),An(An({},P),{ref:W})):S.createElement(G,An({},P,{className:y,ref:W}),h))});Ao.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ao.classNames={fullWidth:io,zeroRight:ao};var lE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function rE(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var i=lE();return i&&n.setAttribute("nonce",i),n}function oE(n,i){n.styleSheet?n.styleSheet.cssText=i:n.appendChild(document.createTextNode(i))}function uE(n){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(n)}var cE=function(){var n=0,i=null;return{add:function(l){n==0&&(i=rE())&&(oE(i,l),uE(i)),n++},remove:function(){n--,!n&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},fE=function(){var n=cE();return function(i,l){S.useEffect(function(){return n.add(i),function(){n.remove()}},[i&&l])}},x0=function(){var n=fE(),i=function(l){var r=l.styles,c=l.dynamic;return n(r,c),null};return i},dE={left:0,top:0,right:0,gap:0},cf=function(n){return parseInt(n||"",10)||0},hE=function(n){var i=window.getComputedStyle(document.body),l=i[n==="padding"?"paddingLeft":"marginLeft"],r=i[n==="padding"?"paddingTop":"marginTop"],c=i[n==="padding"?"paddingRight":"marginRight"];return[cf(l),cf(r),cf(c)]},mE=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return dE;var i=hE(n),l=document.documentElement.clientWidth,r=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,r-l+i[2]-i[0])}},pE=x0(),is="data-scroll-locked",gE=function(n,i,l,r){var c=n.left,f=n.top,d=n.right,h=n.gap;return l===void 0&&(l="margin"),`
|
|
13
|
-
.`.concat(Ww,` {
|
|
14
|
-
overflow: hidden `).concat(r,`;
|
|
15
|
-
padding-right: `).concat(h,"px ").concat(r,`;
|
|
16
|
-
}
|
|
17
|
-
body[`).concat(is,`] {
|
|
18
|
-
overflow: hidden `).concat(r,`;
|
|
19
|
-
overscroll-behavior: contain;
|
|
20
|
-
`).concat([i&&"position: relative ".concat(r,";"),l==="margin"&&`
|
|
21
|
-
padding-left: `.concat(c,`px;
|
|
22
|
-
padding-top: `).concat(f,`px;
|
|
23
|
-
padding-right: `).concat(d,`px;
|
|
24
|
-
margin-left:0;
|
|
25
|
-
margin-top:0;
|
|
26
|
-
margin-right: `).concat(h,"px ").concat(r,`;
|
|
27
|
-
`),l==="padding"&&"padding-right: ".concat(h,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.`).concat(ao,` {
|
|
31
|
-
right: `).concat(h,"px ").concat(r,`;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.`).concat(io,` {
|
|
35
|
-
margin-right: `).concat(h,"px ").concat(r,`;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.`).concat(ao," .").concat(ao,` {
|
|
39
|
-
right: 0 `).concat(r,`;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.`).concat(io," .").concat(io,` {
|
|
43
|
-
margin-right: 0 `).concat(r,`;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
body[`).concat(is,`] {
|
|
47
|
-
`).concat(Iw,": ").concat(h,`px;
|
|
48
|
-
}
|
|
49
|
-
`)},hy=function(){var n=parseInt(document.body.getAttribute(is)||"0",10);return isFinite(n)?n:0},yE=function(){S.useEffect(function(){return document.body.setAttribute(is,(hy()+1).toString()),function(){var n=hy()-1;n<=0?document.body.removeAttribute(is):document.body.setAttribute(is,n.toString())}},[])},vE=function(n){var i=n.noRelative,l=n.noImportant,r=n.gapMode,c=r===void 0?"margin":r;yE();var f=S.useMemo(function(){return mE(c)},[c]);return S.createElement(pE,{styles:gE(f,!i,c,l?"":"!important")})},Vf=!1;if(typeof window<"u")try{var Fr=Object.defineProperty({},"passive",{get:function(){return Vf=!0,!0}});window.addEventListener("test",Fr,Fr),window.removeEventListener("test",Fr,Fr)}catch{Vf=!1}var Fi=Vf?{passive:!1}:!1,bE=function(n){return n.tagName==="TEXTAREA"},S0=function(n,i){if(!(n instanceof Element))return!1;var l=window.getComputedStyle(n);return l[i]!=="hidden"&&!(l.overflowY===l.overflowX&&!bE(n)&&l[i]==="visible")},xE=function(n){return S0(n,"overflowY")},SE=function(n){return S0(n,"overflowX")},my=function(n,i){var l=i.ownerDocument,r=i;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var c=T0(n,r);if(c){var f=w0(n,r),d=f[1],h=f[2];if(d>h)return!0}r=r.parentNode}while(r&&r!==l.body);return!1},TE=function(n){var i=n.scrollTop,l=n.scrollHeight,r=n.clientHeight;return[i,l,r]},wE=function(n){var i=n.scrollLeft,l=n.scrollWidth,r=n.clientWidth;return[i,l,r]},T0=function(n,i){return n==="v"?xE(i):SE(i)},w0=function(n,i){return n==="v"?TE(i):wE(i)},EE=function(n,i){return n==="h"&&i==="rtl"?-1:1},AE=function(n,i,l,r,c){var f=EE(n,window.getComputedStyle(i).direction),d=f*r,h=l.target,y=i.contains(h),p=!1,v=d>0,b=0,T=0;do{if(!h)break;var E=w0(n,h),j=E[0],C=E[1],M=E[2],R=C-M-f*j;(j||R)&&T0(n,h)&&(b+=R,T+=j);var G=h.parentNode;h=G&&G.nodeType===Node.DOCUMENT_FRAGMENT_NODE?G.host:G}while(!y&&h!==document.body||y&&(i.contains(h)||i===h));return(v&&Math.abs(b)<1||!v&&Math.abs(T)<1)&&(p=!0),p},Jr=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},py=function(n){return[n.deltaX,n.deltaY]},gy=function(n){return n&&"current"in n?n.current:n},CE=function(n,i){return n[0]===i[0]&&n[1]===i[1]},NE=function(n){return`
|
|
50
|
-
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
51
|
-
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
52
|
-
`)},ME=0,Ji=[];function jE(n){var i=S.useRef([]),l=S.useRef([0,0]),r=S.useRef(),c=S.useState(ME++)[0],f=S.useState(x0)[0],d=S.useRef(n);S.useEffect(function(){d.current=n},[n]),S.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(c));var C=Jw([n.lockRef.current],(n.shards||[]).map(gy),!0).filter(Boolean);return C.forEach(function(M){return M.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),C.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(c))})}}},[n.inert,n.lockRef.current,n.shards]);var h=S.useCallback(function(C,M){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!d.current.allowPinchZoom;var R=Jr(C),G=l.current,k="deltaX"in C?C.deltaX:G[0]-R[0],B="deltaY"in C?C.deltaY:G[1]-R[1],K,W=C.target,P=Math.abs(k)>Math.abs(B)?"h":"v";if("touches"in C&&P==="h"&&W.type==="range")return!1;var L=window.getSelection(),tt=L&&L.anchorNode,dt=tt?tt===W||tt.contains(W):!1;if(dt)return!1;var ut=my(P,W);if(!ut)return!0;if(ut?K=P:(K=P==="v"?"h":"v",ut=my(P,W)),!ut)return!1;if(!r.current&&"changedTouches"in C&&(k||B)&&(r.current=K),!K)return!0;var At=r.current||K;return AE(At,M,C,At==="h"?k:B)},[]),y=S.useCallback(function(C){var M=C;if(!(!Ji.length||Ji[Ji.length-1]!==f)){var R="deltaY"in M?py(M):Jr(M),G=i.current.filter(function(K){return K.name===M.type&&(K.target===M.target||M.target===K.shadowParent)&&CE(K.delta,R)})[0];if(G&&G.should){M.cancelable&&M.preventDefault();return}if(!G){var k=(d.current.shards||[]).map(gy).filter(Boolean).filter(function(K){return K.contains(M.target)}),B=k.length>0?h(M,k[0]):!d.current.noIsolation;B&&M.cancelable&&M.preventDefault()}}},[]),p=S.useCallback(function(C,M,R,G){var k={name:C,delta:M,target:R,should:G,shadowParent:DE(R)};i.current.push(k),setTimeout(function(){i.current=i.current.filter(function(B){return B!==k})},1)},[]),v=S.useCallback(function(C){l.current=Jr(C),r.current=void 0},[]),b=S.useCallback(function(C){p(C.type,py(C),C.target,h(C,n.lockRef.current))},[]),T=S.useCallback(function(C){p(C.type,Jr(C),C.target,h(C,n.lockRef.current))},[]);S.useEffect(function(){return Ji.push(f),n.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:T}),document.addEventListener("wheel",y,Fi),document.addEventListener("touchmove",y,Fi),document.addEventListener("touchstart",v,Fi),function(){Ji=Ji.filter(function(C){return C!==f}),document.removeEventListener("wheel",y,Fi),document.removeEventListener("touchmove",y,Fi),document.removeEventListener("touchstart",v,Fi)}},[]);var E=n.removeScrollBar,j=n.inert;return S.createElement(S.Fragment,null,j?S.createElement(f,{styles:NE(c)}):null,E?S.createElement(vE,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function DE(n){for(var i=null;n!==null;)n instanceof ShadowRoot&&(i=n.host,n=n.host),n=n.parentNode;return i}const RE=sE(b0,jE);var E0=S.forwardRef(function(n,i){return S.createElement(Ao,An({},n,{ref:i,sideCar:RE}))});E0.classNames=Ao.classNames;var OE=function(n){if(typeof document>"u")return null;var i=Array.isArray(n)?n[0]:n;return i.ownerDocument.body},Wi=new WeakMap,Wr=new WeakMap,Ir={},ff=0,A0=function(n){return n&&(n.host||A0(n.parentNode))},zE=function(n,i){return i.map(function(l){if(n.contains(l))return l;var r=A0(l);return r&&n.contains(r)?r:(console.error("aria-hidden",l,"in not contained inside",n,". Doing nothing"),null)}).filter(function(l){return!!l})},_E=function(n,i,l,r){var c=zE(i,Array.isArray(n)?n:[n]);Ir[l]||(Ir[l]=new WeakMap);var f=Ir[l],d=[],h=new Set,y=new Set(c),p=function(b){!b||h.has(b)||(h.add(b),p(b.parentNode))};c.forEach(p);var v=function(b){!b||y.has(b)||Array.prototype.forEach.call(b.children,function(T){if(h.has(T))v(T);else try{var E=T.getAttribute(r),j=E!==null&&E!=="false",C=(Wi.get(T)||0)+1,M=(f.get(T)||0)+1;Wi.set(T,C),f.set(T,M),d.push(T),C===1&&j&&Wr.set(T,!0),M===1&&T.setAttribute(l,"true"),j||T.setAttribute(r,"true")}catch(R){console.error("aria-hidden: cannot operate on ",T,R)}})};return v(i),h.clear(),ff++,function(){d.forEach(function(b){var T=Wi.get(b)-1,E=f.get(b)-1;Wi.set(b,T),f.set(b,E),T||(Wr.has(b)||b.removeAttribute(r),Wr.delete(b)),E||b.removeAttribute(l)}),ff--,ff||(Wi=new WeakMap,Wi=new WeakMap,Wr=new WeakMap,Ir={})}},VE=function(n,i,l){l===void 0&&(l="data-aria-hidden");var r=Array.from(Array.isArray(n)?n:[n]),c=OE(n);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live], script"))),_E(r,c,l,"aria-hidden")):function(){return null}},Co="Dialog",[C0]=Tl(Co),[kE,hn]=C0(Co),N0=n=>{const{__scopeDialog:i,children:l,open:r,defaultOpen:c,onOpenChange:f,modal:d=!0}=n,h=S.useRef(null),y=S.useRef(null),[p,v]=cd({prop:r,defaultProp:c??!1,onChange:f,caller:Co});return g.jsx(kE,{scope:i,triggerRef:h,contentRef:y,contentId:cl(),titleId:cl(),descriptionId:cl(),open:p,onOpenChange:v,onOpenToggle:S.useCallback(()=>v(b=>!b),[v]),modal:d,children:l})};N0.displayName=Co;var M0="DialogTrigger",LE=S.forwardRef((n,i)=>{const{__scopeDialog:l,...r}=n,c=hn(M0,l),f=Nn(i,c.triggerRef);return g.jsx(re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":hd(c.open),...r,ref:f,onClick:pe(n.onClick,c.onOpenToggle)})});LE.displayName=M0;var fd="DialogPortal",[UE,j0]=C0(fd,{forceMount:void 0}),D0=n=>{const{__scopeDialog:i,forceMount:l,children:r,container:c}=n,f=hn(fd,i);return g.jsx(UE,{scope:i,forceMount:l,children:S.Children.map(r,d=>g.jsx(wl,{present:l||f.open,children:g.jsx(g0,{asChild:!0,container:c,children:d})}))})};D0.displayName=fd;var po="DialogOverlay",R0=S.forwardRef((n,i)=>{const l=j0(po,n.__scopeDialog),{forceMount:r=l.forceMount,...c}=n,f=hn(po,n.__scopeDialog);return f.modal?g.jsx(wl,{present:r||f.open,children:g.jsx(HE,{...c,ref:i})}):null});R0.displayName=po;var BE=mo("DialogOverlay.RemoveScroll"),HE=S.forwardRef((n,i)=>{const{__scopeDialog:l,...r}=n,c=hn(po,l);return g.jsx(E0,{as:BE,allowPinchZoom:!0,shards:[c.contentRef],children:g.jsx(re.div,{"data-state":hd(c.open),...r,ref:i,style:{pointerEvents:"auto",...r.style}})})}),si="DialogContent",O0=S.forwardRef((n,i)=>{const l=j0(si,n.__scopeDialog),{forceMount:r=l.forceMount,...c}=n,f=hn(si,n.__scopeDialog);return g.jsx(wl,{present:r||f.open,children:f.modal?g.jsx(GE,{...c,ref:i}):g.jsx(qE,{...c,ref:i})})});O0.displayName=si;var GE=S.forwardRef((n,i)=>{const l=hn(si,n.__scopeDialog),r=S.useRef(null),c=Nn(i,l.contentRef,r);return S.useEffect(()=>{const f=r.current;if(f)return VE(f)},[]),g.jsx(z0,{...n,ref:c,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(n.onCloseAutoFocus,f=>{f.preventDefault(),l.triggerRef.current?.focus()}),onPointerDownOutside:pe(n.onPointerDownOutside,f=>{const d=f.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0;(d.button===2||h)&&f.preventDefault()}),onFocusOutside:pe(n.onFocusOutside,f=>f.preventDefault())})}),qE=S.forwardRef((n,i)=>{const l=hn(si,n.__scopeDialog),r=S.useRef(!1),c=S.useRef(!1);return g.jsx(z0,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{n.onCloseAutoFocus?.(f),f.defaultPrevented||(r.current||l.triggerRef.current?.focus(),f.preventDefault()),r.current=!1,c.current=!1},onInteractOutside:f=>{n.onInteractOutside?.(f),f.defaultPrevented||(r.current=!0,f.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const d=f.target;l.triggerRef.current?.contains(d)&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&c.current&&f.preventDefault()}})}),z0=S.forwardRef((n,i)=>{const{__scopeDialog:l,trapFocus:r,onOpenAutoFocus:c,onCloseAutoFocus:f,...d}=n,h=hn(si,l),y=S.useRef(null),p=Nn(i,y);return Fw(),g.jsxs(g.Fragment,{children:[g.jsx(m0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:c,onUnmountAutoFocus:f,children:g.jsx(d0,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":hd(h.open),...d,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(YE,{titleId:h.titleId}),g.jsx(KE,{contentRef:y,descriptionId:h.descriptionId})]})]})}),dd="DialogTitle",_0=S.forwardRef((n,i)=>{const{__scopeDialog:l,...r}=n,c=hn(dd,l);return g.jsx(re.h2,{id:c.titleId,...r,ref:i})});_0.displayName=dd;var V0="DialogDescription",k0=S.forwardRef((n,i)=>{const{__scopeDialog:l,...r}=n,c=hn(V0,l);return g.jsx(re.p,{id:c.descriptionId,...r,ref:i})});k0.displayName=V0;var L0="DialogClose",U0=S.forwardRef((n,i)=>{const{__scopeDialog:l,...r}=n,c=hn(L0,l);return g.jsx(re.button,{type:"button",...r,ref:i,onClick:pe(n.onClick,()=>c.onOpenChange(!1))})});U0.displayName=L0;function hd(n){return n?"open":"closed"}var B0="DialogTitleWarning",[I4,H0]=Sw(B0,{contentName:si,titleName:dd,docsSlug:"dialog"}),YE=({titleId:n})=>{const i=H0(B0),l=`\`${i.contentName}\` requires a \`${i.titleName}\` for the component to be accessible for screen reader users.
|
|
53
|
-
|
|
54
|
-
If you want to hide the \`${i.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
55
|
-
|
|
56
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${i.docsSlug}`;return S.useEffect(()=>{n&&(document.getElementById(n)||console.error(l))},[l,n]),null},XE="DialogDescriptionWarning",KE=({contentRef:n,descriptionId:i})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${H0(XE).contentName}}.`;return S.useEffect(()=>{const c=n.current?.getAttribute("aria-describedby");i&&c&&(document.getElementById(i)||console.warn(r))},[r,n,i]),null},PE=N0,ZE=D0,QE=R0,FE=O0,JE=_0,WE=k0,IE=U0,df={exports:{}},hf={};var yy;function $E(){if(yy)return hf;yy=1;var n=Eo();function i(b,T){return b===T&&(b!==0||1/b===1/T)||b!==b&&T!==T}var l=typeof Object.is=="function"?Object.is:i,r=n.useState,c=n.useEffect,f=n.useLayoutEffect,d=n.useDebugValue;function h(b,T){var E=T(),j=r({inst:{value:E,getSnapshot:T}}),C=j[0].inst,M=j[1];return f(function(){C.value=E,C.getSnapshot=T,y(C)&&M({inst:C})},[b,E,T]),c(function(){return y(C)&&M({inst:C}),b(function(){y(C)&&M({inst:C})})},[b]),d(E),E}function y(b){var T=b.getSnapshot;b=b.value;try{var E=T();return!l(b,E)}catch{return!0}}function p(b,T){return T()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:h;return hf.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:v,hf}var vy;function tA(){return vy||(vy=1,df.exports=$E()),df.exports}var eA=tA();function nA(){return eA.useSyncExternalStore(aA,()=>!0,()=>!1)}function aA(){return()=>{}}var md="Avatar",[iA]=Tl(md),[sA,G0]=iA(md),q0=S.forwardRef((n,i)=>{const{__scopeAvatar:l,...r}=n,[c,f]=S.useState("idle");return g.jsx(sA,{scope:l,imageLoadingStatus:c,onImageLoadingStatusChange:f,children:g.jsx(re.span,{...r,ref:i})})});q0.displayName=md;var Y0="AvatarImage",lA=S.forwardRef((n,i)=>{const{__scopeAvatar:l,src:r,onLoadingStatusChange:c=()=>{},...f}=n,d=G0(Y0,l),h=rA(r,f),y=ii(p=>{c(p),d.onImageLoadingStatusChange(p)});return Na(()=>{h!=="idle"&&y(h)},[h,y]),h==="loaded"?g.jsx(re.img,{...f,ref:i,src:r}):null});lA.displayName=Y0;var X0="AvatarFallback",K0=S.forwardRef((n,i)=>{const{__scopeAvatar:l,delayMs:r,...c}=n,f=G0(X0,l),[d,h]=S.useState(r===void 0);return S.useEffect(()=>{if(r!==void 0){const y=window.setTimeout(()=>h(!0),r);return()=>window.clearTimeout(y)}},[r]),d&&f.imageLoadingStatus!=="loaded"?g.jsx(re.span,{...c,ref:i}):null});K0.displayName=X0;function by(n,i){return n?i?(n.src!==i&&(n.src=i),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function rA(n,{referrerPolicy:i,crossOrigin:l}){const r=nA(),c=S.useRef(null),f=r?(c.current||(c.current=new window.Image),c.current):null,[d,h]=S.useState(()=>by(f,n));return Na(()=>{h(by(f,n))},[f,n]),Na(()=>{const y=b=>()=>{h(b)};if(!f)return;const p=y("loaded"),v=y("error");return f.addEventListener("load",p),f.addEventListener("error",v),i&&(f.referrerPolicy=i),typeof l=="string"&&(f.crossOrigin=l),()=>{f.removeEventListener("load",p),f.removeEventListener("error",v)}},[f,l,i]),d}var oA=q0,uA=K0,mf="rovingFocusGroup.onEntryFocus",cA={bubbles:!1,cancelable:!0},El="RovingFocusGroup",[kf,P0,fA]=ww(El),[dA,Z0]=Tl(El,[fA]),[hA,mA]=dA(El),Q0=S.forwardRef((n,i)=>g.jsx(kf.Provider,{scope:n.__scopeRovingFocusGroup,children:g.jsx(kf.Slot,{scope:n.__scopeRovingFocusGroup,children:g.jsx(pA,{...n,ref:i})})}));Q0.displayName=El;var pA=S.forwardRef((n,i)=>{const{__scopeRovingFocusGroup:l,orientation:r,loop:c=!1,dir:f,currentTabStopId:d,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:y,onEntryFocus:p,preventScrollOnEntryFocus:v=!1,...b}=n,T=S.useRef(null),E=Nn(i,T),j=c0(f),[C,M]=cd({prop:d,defaultProp:h??null,onChange:y,caller:El}),[R,G]=S.useState(!1),k=ii(p),B=P0(l),K=S.useRef(!1),[W,P]=S.useState(0);return S.useEffect(()=>{const L=T.current;if(L)return L.addEventListener(mf,k),()=>L.removeEventListener(mf,k)},[k]),g.jsx(hA,{scope:l,orientation:r,dir:j,loop:c,currentTabStopId:C,onItemFocus:S.useCallback(L=>M(L),[M]),onItemShiftTab:S.useCallback(()=>G(!0),[]),onFocusableItemAdd:S.useCallback(()=>P(L=>L+1),[]),onFocusableItemRemove:S.useCallback(()=>P(L=>L-1),[]),children:g.jsx(re.div,{tabIndex:R||W===0?-1:0,"data-orientation":r,...b,ref:E,style:{outline:"none",...n.style},onMouseDown:pe(n.onMouseDown,()=>{K.current=!0}),onFocus:pe(n.onFocus,L=>{const tt=!K.current;if(L.target===L.currentTarget&&tt&&!R){const dt=new CustomEvent(mf,cA);if(L.currentTarget.dispatchEvent(dt),!dt.defaultPrevented){const ut=B().filter(_=>_.focusable),At=ut.find(_=>_.active),Tt=ut.find(_=>_.id===C),Nt=[At,Tt,...ut].filter(Boolean).map(_=>_.ref.current);W0(Nt,v)}}K.current=!1}),onBlur:pe(n.onBlur,()=>G(!1))})})}),F0="RovingFocusGroupItem",J0=S.forwardRef((n,i)=>{const{__scopeRovingFocusGroup:l,focusable:r=!0,active:c=!1,tabStopId:f,children:d,...h}=n,y=cl(),p=f||y,v=mA(F0,l),b=v.currentTabStopId===p,T=P0(l),{onFocusableItemAdd:E,onFocusableItemRemove:j,currentTabStopId:C}=v;return S.useEffect(()=>{if(r)return E(),()=>j()},[r,E,j]),g.jsx(kf.ItemSlot,{scope:l,id:p,focusable:r,active:c,children:g.jsx(re.span,{tabIndex:b?0:-1,"data-orientation":v.orientation,...h,ref:i,onMouseDown:pe(n.onMouseDown,M=>{r?v.onItemFocus(p):M.preventDefault()}),onFocus:pe(n.onFocus,()=>v.onItemFocus(p)),onKeyDown:pe(n.onKeyDown,M=>{if(M.key==="Tab"&&M.shiftKey){v.onItemShiftTab();return}if(M.target!==M.currentTarget)return;const R=vA(M,v.orientation,v.dir);if(R!==void 0){if(M.metaKey||M.ctrlKey||M.altKey||M.shiftKey)return;M.preventDefault();let k=T().filter(B=>B.focusable).map(B=>B.ref.current);if(R==="last")k.reverse();else if(R==="prev"||R==="next"){R==="prev"&&k.reverse();const B=k.indexOf(M.currentTarget);k=v.loop?bA(k,B+1):k.slice(B+1)}setTimeout(()=>W0(k))}}),children:typeof d=="function"?d({isCurrentTabStop:b,hasTabStop:C!=null}):d})})});J0.displayName=F0;var gA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function yA(n,i){return i!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function vA(n,i,l){const r=yA(n.key,l);if(!(i==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(i==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return gA[r]}function W0(n,i=!1){const l=document.activeElement;for(const r of n)if(r===l||(r.focus({preventScroll:i}),document.activeElement!==l))return}function bA(n,i){return n.map((l,r)=>n[(i+r)%n.length])}var xA=Q0,SA=J0,No="Tabs",[TA]=Tl(No,[Z0]),I0=Z0(),[wA,pd]=TA(No),$0=S.forwardRef((n,i)=>{const{__scopeTabs:l,value:r,onValueChange:c,defaultValue:f,orientation:d="horizontal",dir:h,activationMode:y="automatic",...p}=n,v=c0(h),[b,T]=cd({prop:r,onChange:c,defaultProp:f??"",caller:No});return g.jsx(wA,{scope:l,baseId:cl(),value:b,onValueChange:T,orientation:d,dir:v,activationMode:y,children:g.jsx(re.div,{dir:v,"data-orientation":d,...p,ref:i})})});$0.displayName=No;var tb="TabsList",eb=S.forwardRef((n,i)=>{const{__scopeTabs:l,loop:r=!0,...c}=n,f=pd(tb,l),d=I0(l);return g.jsx(xA,{asChild:!0,...d,orientation:f.orientation,dir:f.dir,loop:r,children:g.jsx(re.div,{role:"tablist","aria-orientation":f.orientation,...c,ref:i})})});eb.displayName=tb;var nb="TabsTrigger",ab=S.forwardRef((n,i)=>{const{__scopeTabs:l,value:r,disabled:c=!1,...f}=n,d=pd(nb,l),h=I0(l),y=sb(d.baseId,r),p=lb(d.baseId,r),v=r===d.value;return g.jsx(SA,{asChild:!0,...h,focusable:!c,active:v,children:g.jsx(re.button,{type:"button",role:"tab","aria-selected":v,"aria-controls":p,"data-state":v?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:y,...f,ref:i,onMouseDown:pe(n.onMouseDown,b=>{!c&&b.button===0&&b.ctrlKey===!1?d.onValueChange(r):b.preventDefault()}),onKeyDown:pe(n.onKeyDown,b=>{[" ","Enter"].includes(b.key)&&d.onValueChange(r)}),onFocus:pe(n.onFocus,()=>{const b=d.activationMode!=="manual";!v&&!c&&b&&d.onValueChange(r)})})})});ab.displayName=nb;var ib="TabsContent",EA=S.forwardRef((n,i)=>{const{__scopeTabs:l,value:r,forceMount:c,children:f,...d}=n,h=pd(ib,l),y=sb(h.baseId,r),p=lb(h.baseId,r),v=r===h.value,b=S.useRef(v);return S.useEffect(()=>{const T=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(T)},[]),g.jsx(wl,{present:c||v,children:({present:T})=>g.jsx(re.div,{"data-state":v?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":y,hidden:!T,id:p,tabIndex:0,...d,ref:i,style:{...n.style,animationDuration:b.current?"0s":void 0},children:T&&f})})});EA.displayName=ib;function sb(n,i){return`${n}-trigger-${i}`}function lb(n,i){return`${n}-content-${i}`}var AA=$0,CA=eb,NA=ab;function MA({className:n,orientation:i="horizontal",...l}){return g.jsx(AA,{"data-slot":"tabs","data-orientation":i,orientation:i,className:nn("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",n),...l})}const jA=dw("rounded-lg p-[3px] group-data-[orientation=horizontal]/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function DA({className:n,variant:i="default",...l}){return g.jsx(CA,{"data-slot":"tabs-list","data-variant":i,className:nn(jA({variant:i}),n),...l})}function RA({className:n,...i}){return g.jsx(NA,{"data-slot":"tabs-trigger",className:nn("focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:text-foreground","after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",n),...i})}function OA({className:n,size:i="default",...l}){return g.jsx(oA,{"data-slot":"avatar","data-size":i,className:nn("group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",n),...l})}function zA({className:n,...i}){return g.jsx(uA,{"data-slot":"avatar-fallback",className:nn("bg-muted text-muted-foreground flex size-full items-center justify-center rounded-full text-sm group-data-[size=sm]/avatar:text-xs",n),...i})}function rb({...n}){return g.jsx(PE,{"data-slot":"sheet",...n})}function _A({...n}){return g.jsx(ZE,{"data-slot":"sheet-portal",...n})}function VA({className:n,...i}){return g.jsx(QE,{"data-slot":"sheet-overlay",className:nn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",n),...i})}function ob({className:n,children:i,side:l="right",showCloseButton:r=!0,...c}){return g.jsxs(_A,{children:[g.jsx(VA,{}),g.jsxs(FE,{"data-slot":"sheet-content",className:nn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",l==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",l==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",l==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",l==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",n),...c,children:[i,r&&g.jsxs(IE,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[g.jsx(Xv,{className:"size-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function ub({className:n,...i}){return g.jsx(JE,{"data-slot":"sheet-title",className:nn("text-foreground font-semibold",n),...i})}function kA({className:n,...i}){return g.jsx(WE,{"data-slot":"sheet-description",className:nn("text-muted-foreground text-sm",n),...i})}function LA(){const[n,i]=S.useState(!1);return g.jsxs("div",{className:"md:hidden",children:[g.jsxs("button",{onClick:()=>i(!0),className:"flex items-center justify-center h-10 w-10 rounded-full bg-card border border-border text-muted-foreground hover:text-foreground transition-colors",children:[g.jsx(J2,{className:"h-5 w-5"}),g.jsx("span",{className:"sr-only",children:"Open navigation"})]}),g.jsx(rb,{open:n,onOpenChange:i,children:g.jsxs(ob,{side:"left",className:"p-0 w-72",showCloseButton:!1,children:[g.jsx(ub,{className:"sr-only",children:"Navigation"}),g.jsx(r0,{})]})})]})}function UA({onOpenOnboard:n}){const[i,l]=S.useState(!1),r=S.useRef(null);return S.useEffect(()=>{if(!i)return;const c=f=>{r.current&&!r.current.contains(f.target)&&l(!1)};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[i]),g.jsxs("header",{className:"flex items-center justify-between px-4 md:px-6 py-3 md:py-4",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(LA,{}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("img",{src:"/fluxy.png",alt:"Fluxy",className:"h-6 w-auto"}),g.jsx("span",{className:"font-semibold text-lg hidden sm:block",children:"Fluxy"})]})]}),g.jsx("div",{className:"hidden md:block",children:g.jsx(MA,{defaultValue:"overview",children:g.jsx(DA,{className:"bg-card rounded-full p-1 h-auto border border-border",children:["Overview","Conversations","Models","Knowledge","Activity"].map(c=>g.jsx(RA,{value:c.toLowerCase(),className:"rounded-full px-5 py-2 text-sm data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-none",children:c},c))})})}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("div",{className:"relative",ref:r,children:[g.jsx("button",{onClick:()=>l(c=>!c),className:"flex items-center justify-center h-10 w-10 rounded-full bg-card border border-border text-muted-foreground hover:text-foreground transition-colors",children:g.jsx(Yv,{className:"h-4 w-4"})}),i&&g.jsx("div",{className:"absolute right-0 top-full mt-2 w-52 bg-card border border-border rounded-xl shadow-xl py-1.5 z-50",children:g.jsxs("button",{onClick:()=>{n?.(),l(!1)},className:"w-full flex items-center gap-3 px-4 py-2.5 text-[13px] text-foreground hover:bg-white/[0.04] transition-colors text-left",children:[g.jsx(gT,{className:"h-4 w-4 text-muted-foreground"}),"Setup Wizard"]})})]}),g.jsxs("button",{className:"relative flex items-center justify-center h-10 w-10 rounded-full bg-card border border-border text-muted-foreground hover:text-foreground transition-colors",children:[g.jsx(D2,{className:"h-4 w-4"}),g.jsx("span",{className:"absolute -top-0.5 -right-0.5 flex items-center justify-center h-4 w-4 rounded-full bg-destructive text-[10px] font-medium text-white",children:"2"})]}),g.jsx(OA,{className:"h-10 w-10 border border-border",children:g.jsx(zA,{className:"bg-primary text-primary-foreground text-sm font-medium",children:"F"})})]})]})}function BA({children:n,onOpenOnboard:i}){return g.jsxs("div",{className:"flex h-dvh flex-col overflow-x-hidden",children:[g.jsx(UA,{onOpenOnboard:i}),g.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[g.jsx("div",{className:"hidden md:flex shrink-0",children:g.jsx(r0,{})}),g.jsx("main",{className:"flex-1 overflow-y-auto p-4 md:p-6",children:n})]})]})}function Mo({className:n,...i}){return g.jsx("div",{"data-slot":"card",className:nn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",n),...i})}function jo({className:n,...i}){return g.jsx("div",{"data-slot":"card-content",className:nn("px-6",n),...i})}function HA(){return g.jsx(Mo,{className:"bg-card border-border h-full",children:g.jsxs(jo,{className:"p-4 sm:p-6",children:[g.jsxs("div",{className:"flex items-center justify-between mb-4 sm:mb-6",children:[g.jsx("h3",{className:"text-base sm:text-lg font-semibold",children:"Conversation Activity"}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("button",{className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full border border-border text-xs sm:text-sm",children:["Weekly",g.jsx(Sl,{className:"h-3.5 w-3.5"})]}),g.jsx("button",{className:"flex items-center justify-center h-8 w-8 rounded-full border border-border text-muted-foreground",children:g.jsx(q2,{className:"h-4 w-4"})})]})]}),g.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-end sm:justify-between gap-3 mb-4 sm:mb-6",children:[g.jsxs("div",{children:[g.jsx("span",{className:"text-3xl sm:text-4xl font-bold",children:"2.4K"}),g.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Total Messages"})]}),g.jsx("div",{className:"flex items-center gap-2 sm:gap-3 flex-wrap",children:ST.map(n=>g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx("div",{className:"h-2 w-2 sm:h-2.5 sm:w-2.5 rounded-full",style:{backgroundColor:Fg[n.level]}}),g.jsx("span",{className:"text-[10px] sm:text-xs text-muted-foreground",children:n.label})]},n.label))})]}),g.jsx("div",{className:"space-y-2 sm:space-y-3",children:bT.map(n=>g.jsxs("div",{className:"flex items-center gap-2 sm:gap-4",children:[g.jsx("span",{className:"text-xs sm:text-sm text-muted-foreground w-12 sm:w-16 shrink-0",children:n.model}),g.jsx("div",{className:"grid grid-cols-7 gap-1.5 sm:gap-2 flex-1",children:n.days.map((i,l)=>g.jsx("div",{className:"aspect-square rounded-full max-w-10",style:{backgroundColor:Fg[i]}},l))})]},n.model))}),g.jsxs("div",{className:"flex items-center gap-2 sm:gap-4 mt-2 sm:mt-4",children:[g.jsx("div",{className:"w-12 sm:w-16 shrink-0"}),g.jsx("div",{className:"grid grid-cols-7 gap-1.5 sm:gap-2 flex-1",children:xT.map((n,i)=>g.jsx("span",{className:"flex items-center justify-center text-[10px] sm:text-xs text-muted-foreground max-w-10 aspect-square",children:n},i))})]})]})})}function GA(){return g.jsxs(Mo,{className:"border-border overflow-hidden relative",style:{background:"radial-gradient(ellipse at 80% 20%, rgba(60,143,255,0.07) 0%, transparent 50%), radial-gradient(ellipse at 20% 80%, rgba(60,143,255,0.04) 0%, transparent 50%), linear-gradient(135deg, #282828 0%, #1c2a3a 100%)"},children:[g.jsx("div",{className:"absolute inset-0 opacity-[0.06]",style:{backgroundImage:"radial-gradient(circle at 70% 40%, transparent 20%, rgba(60,143,255,0.4) 20.5%, transparent 21%), radial-gradient(circle at 70% 40%, transparent 35%, rgba(60,143,255,0.3) 35.5%, transparent 36%), radial-gradient(circle at 70% 40%, transparent 50%, rgba(60,143,255,0.2) 50.5%, transparent 51%)"}}),g.jsxs(jo,{className:"relative p-6 flex flex-col justify-between min-h-[200px]",children:[g.jsxs("div",{children:[g.jsxs("h3",{className:"text-2xl font-bold leading-tight mb-3",children:["Connect New",g.jsx("br",{}),"AI Models"]}),g.jsx("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full bg-destructive/15 text-destructive text-xs font-medium",children:"+15% faster"}),g.jsx("span",{className:"text-xs text-muted-foreground ml-2",children:"with parallel routing"})]}),g.jsx("div",{className:"flex justify-end mt-4",children:g.jsxs("button",{className:"flex items-center gap-2 px-5 py-2.5 rounded-full bg-primary text-primary-foreground text-sm font-medium hover:brightness-110 transition",children:["Explore",g.jsx(Gv,{className:"h-4 w-4"})]})})]})]})}function qA(){return g.jsx(Mo,{className:"bg-card border-border",children:g.jsxs(jo,{className:"p-6 flex flex-col justify-between h-full",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[g.jsx("div",{className:"flex items-center justify-center h-8 w-8 rounded-full border border-border",children:g.jsx(Sl,{className:"h-4 w-4 text-muted-foreground"})}),g.jsxs("span",{className:"text-sm font-medium",children:["Today's",g.jsx("br",{}),"Messages"]})]}),g.jsxs("div",{children:[g.jsx("span",{className:"text-4xl font-bold text-primary",children:"342"}),g.jsxs("div",{className:"flex items-center gap-1 mt-1",children:[g.jsx("span",{className:"text-sm text-primary font-medium",children:"+8%"}),g.jsx("span",{className:"text-xs text-muted-foreground",children:"vs yesterday"})]})]})]})})}function YA(){return g.jsx(Mo,{className:"border-border overflow-hidden relative",style:{background:"radial-gradient(circle at 30% 50%, rgba(253,72,107,0.2) 0%, transparent 45%), radial-gradient(circle at 80% 60%, rgba(253,72,107,0.12) 0%, transparent 40%), linear-gradient(135deg, #2a1a20 0%, #211518 100%)"},children:g.jsxs(jo,{className:"relative p-6 flex flex-col justify-between h-full",children:[g.jsxs("div",{className:"flex items-center gap-1.5 mb-4",children:[g.jsx("button",{className:"flex items-center justify-center h-8 w-8 rounded-full bg-black/40 text-foreground/80 hover:text-foreground transition-colors",children:g.jsx(qv,{className:"h-3.5 w-3.5"})}),g.jsx("button",{className:"flex items-center justify-center h-8 w-8 rounded-full bg-black/40 text-foreground/80 hover:text-foreground transition-colors",children:g.jsx(Gv,{className:"h-3.5 w-3.5"})}),g.jsx("button",{className:"flex items-center justify-center h-8 w-8 rounded-full bg-black/40 text-foreground/80 hover:text-foreground transition-colors ml-auto",children:g.jsx(Xv,{className:"h-3.5 w-3.5"})})]}),g.jsxs("div",{children:[g.jsx("h3",{className:"text-lg font-bold mb-1",children:"System Report"}),g.jsx("p",{className:"text-xs text-foreground/60 leading-relaxed",children:"Generate and download a detailed report of your system"})]})]})})}function XA(){return g.jsxs("div",{className:"max-w-6xl mx-auto space-y-4 sm:space-y-6",children:[g.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",children:[g.jsxs("div",{children:[g.jsx("h2",{className:"text-2xl sm:text-3xl font-semibold",children:"Dashboard Overview"}),g.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:["Overview"," ",g.jsx("span",{className:"mx-1.5 text-muted-foreground/50",children:">"}),"All Systems"]})]}),g.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto",children:[g.jsxs("button",{className:"flex items-center gap-1.5 px-3 sm:px-4 py-1.5 sm:py-2 rounded-full bg-card border border-border text-xs sm:text-sm shrink-0 hover:text-foreground transition-colors",children:["Activity",g.jsx(Sl,{className:"h-3.5 w-3.5"})]}),g.jsxs("button",{className:"flex items-center gap-1.5 px-3 sm:px-4 py-1.5 sm:py-2 rounded-full bg-card border border-border text-xs sm:text-sm shrink-0 hover:text-foreground transition-colors",children:["Export",g.jsx(qv,{className:"h-3.5 w-3.5"})]}),g.jsxs("button",{className:"flex items-center gap-1.5 px-3 sm:px-4 py-1.5 sm:py-2 rounded-full bg-card border border-border text-xs sm:text-sm shrink-0 hover:text-foreground transition-colors",children:["Filter",g.jsx(cT,{className:"h-3.5 w-3.5"})]})]})]}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[g.jsx(HA,{}),g.jsxs("div",{className:"space-y-4",children:[g.jsx(GA,{}),g.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[g.jsx(qA,{}),g.jsx(YA,{})]})]})]})]})}function KA(n){const[i,l]=S.useState([]),[r,c]=S.useState(null),[f,d]=S.useState(!1),[h,y]=S.useState("");S.useEffect(()=>{if(!n)return;const T=[n.on("bot:typing",()=>d(!0)),n.on("bot:token",E=>{y(j=>j+E.token)}),n.on("bot:response",E=>{c(E.conversationId),l(j=>[...j,{id:E.messageId,role:"assistant",content:E.content}]),y(""),d(!1)}),n.on("bot:error",E=>{y(""),d(!1),l(j=>[...j,{id:Date.now().toString(),role:"assistant",content:`Error: ${E.error}`}])})];return()=>T.forEach(E=>E())},[n]);const p=S.useCallback(T=>{if(!n||!T.trim())return;const E={id:Date.now().toString(),role:"user",content:T};l(j=>[...j,E]),n.send("user:message",{conversationId:r,content:T})},[n,r]),v=S.useCallback(()=>{!n||!r||(n.send("user:stop",{conversationId:r}),d(!1),y(""))},[n,r]),b=S.useCallback(()=>{l([]),c(null),y(""),d(!1)},[]);return{messages:i,streaming:f,streamBuffer:h,conversationId:r,sendMessage:p,stopStreaming:v,newChat:b}}function PA({role:n,content:i}){const l=n==="user";return g.jsx("div",{className:`flex ${l?"justify-end":"justify-start"}`,children:g.jsx("div",{className:`max-w-[75%] rounded-2xl px-4 py-2.5 text-sm leading-relaxed whitespace-pre-wrap ${l?"bg-primary text-primary-foreground":"bg-muted text-foreground"}`,children:i})})}function ZA({text:n}){return g.jsx("div",{className:"flex justify-start",children:g.jsxs("div",{className:"max-w-[75%] rounded-2xl px-4 py-2.5 text-sm leading-relaxed bg-muted text-foreground whitespace-pre-wrap",children:[n,g.jsx("span",{className:"inline-block w-2 h-4 ml-0.5 bg-muted-foreground animate-pulse"})]})})}function QA({messages:n,streaming:i,streamBuffer:l}){const r=S.useRef(null);return S.useEffect(()=>{r.current?.scrollIntoView({behavior:"smooth"})},[n,l]),g.jsxs("div",{className:"flex-1 overflow-y-auto p-4 flex flex-col",children:[g.jsx("div",{className:"flex-1"}),n.length===0&&g.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground text-sm",children:"Start a conversation"}),g.jsxs("div",{className:"space-y-3",children:[n.map(c=>g.jsx(PA,{role:c.role,content:c.content},c.id)),i&&l&&g.jsx(ZA,{text:l})]}),g.jsx("div",{ref:r})]})}const gd=S.createContext({});function yd(n){const i=S.useRef(null);return i.current===null&&(i.current=n()),i.current}const cb=typeof window<"u",fb=cb?S.useLayoutEffect:S.useEffect,Do=S.createContext(null);function vd(n,i){n.indexOf(i)===-1&&n.push(i)}function go(n,i){const l=n.indexOf(i);l>-1&&n.splice(l,1)}const Mn=(n,i,l)=>l>i?i:l<n?n:l;let bd=()=>{};const Wn={},db=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function hb(n){return typeof n=="object"&&n!==null}const mb=n=>/^0[^.\s]+$/u.test(n);function pb(n){let i;return()=>(i===void 0&&(i=n()),i)}const en=n=>n,FA=(n,i)=>l=>i(n(l)),Al=(...n)=>n.reduce(FA),pl=(n,i,l)=>{const r=i-n;return r===0?1:(l-n)/r};class xd{constructor(){this.subscriptions=[]}add(i){return vd(this.subscriptions,i),()=>go(this.subscriptions,i)}notify(i,l,r){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,l,r);else for(let f=0;f<c;f++){const d=this.subscriptions[f];d&&d(i,l,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const fn=n=>n*1e3,tn=n=>n/1e3;function gb(n,i){return i?n*(1e3/i):0}const yb=(n,i,l)=>(((1-3*l+3*i)*n+(3*l-6*i))*n+3*i)*n,JA=1e-7,WA=12;function IA(n,i,l,r,c){let f,d,h=0;do d=i+(l-i)/2,f=yb(d,r,c)-n,f>0?l=d:i=d;while(Math.abs(f)>JA&&++h<WA);return d}function Cl(n,i,l,r){if(n===i&&l===r)return en;const c=f=>IA(f,0,1,n,l);return f=>f===0||f===1?f:yb(c(f),i,r)}const vb=n=>i=>i<=.5?n(2*i)/2:(2-n(2*(1-i)))/2,bb=n=>i=>1-n(1-i),xb=Cl(.33,1.53,.69,.99),Sd=bb(xb),Sb=vb(Sd),Tb=n=>(n*=2)<1?.5*Sd(n):.5*(2-Math.pow(2,-10*(n-1))),Td=n=>1-Math.sin(Math.acos(n)),wb=bb(Td),Eb=vb(Td),$A=Cl(.42,0,1,1),tC=Cl(0,0,.58,1),Ab=Cl(.42,0,.58,1),eC=n=>Array.isArray(n)&&typeof n[0]!="number",Cb=n=>Array.isArray(n)&&typeof n[0]=="number",nC={linear:en,easeIn:$A,easeInOut:Ab,easeOut:tC,circIn:Td,circInOut:Eb,circOut:wb,backIn:Sd,backInOut:Sb,backOut:xb,anticipate:Tb},aC=n=>typeof n=="string",xy=n=>{if(Cb(n)){bd(n.length===4);const[i,l,r,c]=n;return Cl(i,l,r,c)}else if(aC(n))return nC[n];return n},$r=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function iC(n,i){let l=new Set,r=new Set,c=!1,f=!1;const d=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function y(v){d.has(v)&&(p.schedule(v),n()),v(h)}const p={schedule:(v,b=!1,T=!1)=>{const j=T&&c?l:r;return b&&d.add(v),j.has(v)||j.add(v),v},cancel:v=>{r.delete(v),d.delete(v)},process:v=>{if(h=v,c){f=!0;return}c=!0,[l,r]=[r,l],l.forEach(y),l.clear(),c=!1,f&&(f=!1,p.process(v))}};return p}const sC=40;function Nb(n,i){let l=!1,r=!0;const c={delta:0,timestamp:0,isProcessing:!1},f=()=>l=!0,d=$r.reduce((k,B)=>(k[B]=iC(f),k),{}),{setup:h,read:y,resolveKeyframes:p,preUpdate:v,update:b,preRender:T,render:E,postRender:j}=d,C=()=>{const k=Wn.useManualTiming?c.timestamp:performance.now();l=!1,Wn.useManualTiming||(c.delta=r?1e3/60:Math.max(Math.min(k-c.timestamp,sC),1)),c.timestamp=k,c.isProcessing=!0,h.process(c),y.process(c),p.process(c),v.process(c),b.process(c),T.process(c),E.process(c),j.process(c),c.isProcessing=!1,l&&i&&(r=!1,n(C))},M=()=>{l=!0,r=!0,c.isProcessing||n(C)};return{schedule:$r.reduce((k,B)=>{const K=d[B];return k[B]=(W,P=!1,L=!1)=>(l||M(),K.schedule(W,P,L)),k},{}),cancel:k=>{for(let B=0;B<$r.length;B++)d[$r[B]].cancel(k)},state:c,steps:d}}const{schedule:Ut,cancel:Ma,state:me,steps:pf}=Nb(typeof requestAnimationFrame<"u"?requestAnimationFrame:en,!0);let so;function lC(){so=void 0}const Ee={now:()=>(so===void 0&&Ee.set(me.isProcessing||Wn.useManualTiming?me.timestamp:performance.now()),so),set:n=>{so=n,queueMicrotask(lC)}},Mb=n=>i=>typeof i=="string"&&i.startsWith(n),jb=Mb("--"),rC=Mb("var(--"),wd=n=>rC(n)?oC.test(n.split("/*")[0].trim()):!1,oC=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Sy(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const rs={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},gl={...rs,transform:n=>Mn(0,1,n)},to={...rs,default:1},fl=n=>Math.round(n*1e5)/1e5,Ed=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function uC(n){return n==null}const cC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ad=(n,i)=>l=>!!(typeof l=="string"&&cC.test(l)&&l.startsWith(n)||i&&!uC(l)&&Object.prototype.hasOwnProperty.call(l,i)),Db=(n,i,l)=>r=>{if(typeof r!="string")return r;const[c,f,d,h]=r.match(Ed);return{[n]:parseFloat(c),[i]:parseFloat(f),[l]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},fC=n=>Mn(0,255,n),gf={...rs,transform:n=>Math.round(fC(n))},ei={test:Ad("rgb","red"),parse:Db("red","green","blue"),transform:({red:n,green:i,blue:l,alpha:r=1})=>"rgba("+gf.transform(n)+", "+gf.transform(i)+", "+gf.transform(l)+", "+fl(gl.transform(r))+")"};function dC(n){let i="",l="",r="",c="";return n.length>5?(i=n.substring(1,3),l=n.substring(3,5),r=n.substring(5,7),c=n.substring(7,9)):(i=n.substring(1,2),l=n.substring(2,3),r=n.substring(3,4),c=n.substring(4,5),i+=i,l+=l,r+=r,c+=c),{red:parseInt(i,16),green:parseInt(l,16),blue:parseInt(r,16),alpha:c?parseInt(c,16)/255:1}}const Lf={test:Ad("#"),parse:dC,transform:ei.transform},Nl=n=>({test:i=>typeof i=="string"&&i.endsWith(n)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${n}`}),Aa=Nl("deg"),Cn=Nl("%"),it=Nl("px"),hC=Nl("vh"),mC=Nl("vw"),Ty={...Cn,parse:n=>Cn.parse(n)/100,transform:n=>Cn.transform(n*100)},$i={test:Ad("hsl","hue"),parse:Db("hue","saturation","lightness"),transform:({hue:n,saturation:i,lightness:l,alpha:r=1})=>"hsla("+Math.round(n)+", "+Cn.transform(fl(i))+", "+Cn.transform(fl(l))+", "+fl(gl.transform(r))+")"},te={test:n=>ei.test(n)||Lf.test(n)||$i.test(n),parse:n=>ei.test(n)?ei.parse(n):$i.test(n)?$i.parse(n):Lf.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?ei.transform(n):$i.transform(n),getAnimatableNone:n=>{const i=te.parse(n);return i.alpha=0,te.transform(i)}},pC=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function gC(n){return isNaN(n)&&typeof n=="string"&&(n.match(Ed)?.length||0)+(n.match(pC)?.length||0)>0}const Rb="number",Ob="color",yC="var",vC="var(",wy="${}",bC=/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 yl(n){const i=n.toString(),l=[],r={color:[],number:[],var:[]},c=[];let f=0;const h=i.replace(bC,y=>(te.test(y)?(r.color.push(f),c.push(Ob),l.push(te.parse(y))):y.startsWith(vC)?(r.var.push(f),c.push(yC),l.push(y)):(r.number.push(f),c.push(Rb),l.push(parseFloat(y))),++f,wy)).split(wy);return{values:l,split:h,indexes:r,types:c}}function zb(n){return yl(n).values}function _b(n){const{split:i,types:l}=yl(n),r=i.length;return c=>{let f="";for(let d=0;d<r;d++)if(f+=i[d],c[d]!==void 0){const h=l[d];h===Rb?f+=fl(c[d]):h===Ob?f+=te.transform(c[d]):f+=c[d]}return f}}const xC=n=>typeof n=="number"?0:te.test(n)?te.getAnimatableNone(n):n;function SC(n){const i=zb(n);return _b(n)(i.map(xC))}const dn={test:gC,parse:zb,createTransformer:_b,getAnimatableNone:SC};function yf(n,i,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?n+(i-n)*6*l:l<1/2?i:l<2/3?n+(i-n)*(2/3-l)*6:n}function TC({hue:n,saturation:i,lightness:l,alpha:r}){n/=360,i/=100,l/=100;let c=0,f=0,d=0;if(!i)c=f=d=l;else{const h=l<.5?l*(1+i):l+i-l*i,y=2*l-h;c=yf(y,h,n+1/3),f=yf(y,h,n),d=yf(y,h,n-1/3)}return{red:Math.round(c*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:r}}function yo(n,i){return l=>l>0?i:n}const Xt=(n,i,l)=>n+(i-n)*l,vf=(n,i,l)=>{const r=n*n,c=l*(i*i-r)+r;return c<0?0:Math.sqrt(c)},wC=[Lf,ei,$i],EC=n=>wC.find(i=>i.test(n));function Ey(n){const i=EC(n);if(!i)return!1;let l=i.parse(n);return i===$i&&(l=TC(l)),l}const Ay=(n,i)=>{const l=Ey(n),r=Ey(i);if(!l||!r)return yo(n,i);const c={...l};return f=>(c.red=vf(l.red,r.red,f),c.green=vf(l.green,r.green,f),c.blue=vf(l.blue,r.blue,f),c.alpha=Xt(l.alpha,r.alpha,f),ei.transform(c))},Uf=new Set(["none","hidden"]);function AC(n,i){return Uf.has(n)?l=>l<=0?n:i:l=>l>=1?i:n}function CC(n,i){return l=>Xt(n,i,l)}function Cd(n){return typeof n=="number"?CC:typeof n=="string"?wd(n)?yo:te.test(n)?Ay:jC:Array.isArray(n)?Vb:typeof n=="object"?te.test(n)?Ay:NC:yo}function Vb(n,i){const l=[...n],r=l.length,c=n.map((f,d)=>Cd(f)(f,i[d]));return f=>{for(let d=0;d<r;d++)l[d]=c[d](f);return l}}function NC(n,i){const l={...n,...i},r={};for(const c in l)n[c]!==void 0&&i[c]!==void 0&&(r[c]=Cd(n[c])(n[c],i[c]));return c=>{for(const f in r)l[f]=r[f](c);return l}}function MC(n,i){const l=[],r={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const f=i.types[c],d=n.indexes[f][r[f]],h=n.values[d]??0;l[c]=h,r[f]++}return l}const jC=(n,i)=>{const l=dn.createTransformer(i),r=yl(n),c=yl(i);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?Uf.has(n)&&!c.values.length||Uf.has(i)&&!r.values.length?AC(n,i):Al(Vb(MC(r,c),c.values),l):yo(n,i)};function kb(n,i,l){return typeof n=="number"&&typeof i=="number"&&typeof l=="number"?Xt(n,i,l):Cd(n)(n,i)}const DC=n=>{const i=({timestamp:l})=>n(l);return{start:(l=!0)=>Ut.update(i,l),stop:()=>Ma(i),now:()=>me.isProcessing?me.timestamp:Ee.now()}},Lb=(n,i,l=10)=>{let r="";const c=Math.max(Math.round(i/l),2);for(let f=0;f<c;f++)r+=Math.round(n(f/(c-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},vo=2e4;function Nd(n){let i=0;const l=50;let r=n.next(i);for(;!r.done&&i<vo;)i+=l,r=n.next(i);return i>=vo?1/0:i}function RC(n,i=100,l){const r=l({...n,keyframes:[0,i]}),c=Math.min(Nd(r),vo);return{type:"keyframes",ease:f=>r.next(c*f).value/i,duration:tn(c)}}const OC=5;function Ub(n,i,l){const r=Math.max(i-OC,0);return gb(l-n(r),i-r)}const Zt={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},bf=.001;function zC({duration:n=Zt.duration,bounce:i=Zt.bounce,velocity:l=Zt.velocity,mass:r=Zt.mass}){let c,f,d=1-i;d=Mn(Zt.minDamping,Zt.maxDamping,d),n=Mn(Zt.minDuration,Zt.maxDuration,tn(n)),d<1?(c=p=>{const v=p*d,b=v*n,T=v-l,E=Bf(p,d),j=Math.exp(-b);return bf-T/E*j},f=p=>{const b=p*d*n,T=b*l+l,E=Math.pow(d,2)*Math.pow(p,2)*n,j=Math.exp(-b),C=Bf(Math.pow(p,2),d);return(-c(p)+bf>0?-1:1)*((T-E)*j)/C}):(c=p=>{const v=Math.exp(-p*n),b=(p-l)*n+1;return-bf+v*b},f=p=>{const v=Math.exp(-p*n),b=(l-p)*(n*n);return v*b});const h=5/n,y=VC(c,f,h);if(n=fn(n),isNaN(y))return{stiffness:Zt.stiffness,damping:Zt.damping,duration:n};{const p=Math.pow(y,2)*r;return{stiffness:p,damping:d*2*Math.sqrt(r*p),duration:n}}}const _C=12;function VC(n,i,l){let r=l;for(let c=1;c<_C;c++)r=r-n(r)/i(r);return r}function Bf(n,i){return n*Math.sqrt(1-i*i)}const kC=["duration","bounce"],LC=["stiffness","damping","mass"];function Cy(n,i){return i.some(l=>n[l]!==void 0)}function UC(n){let i={velocity:Zt.velocity,stiffness:Zt.stiffness,damping:Zt.damping,mass:Zt.mass,isResolvedFromDuration:!1,...n};if(!Cy(n,LC)&&Cy(n,kC))if(i.velocity=0,n.visualDuration){const l=n.visualDuration,r=2*Math.PI/(l*1.2),c=r*r,f=2*Mn(.05,1,1-(n.bounce||0))*Math.sqrt(c);i={...i,mass:Zt.mass,stiffness:c,damping:f}}else{const l=zC({...n,velocity:0});i={...i,...l,mass:Zt.mass},i.isResolvedFromDuration=!0}return i}function bo(n=Zt.visualDuration,i=Zt.bounce){const l=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:i}:n;let{restSpeed:r,restDelta:c}=l;const f=l.keyframes[0],d=l.keyframes[l.keyframes.length-1],h={done:!1,value:f},{stiffness:y,damping:p,mass:v,duration:b,velocity:T,isResolvedFromDuration:E}=UC({...l,velocity:-tn(l.velocity||0)}),j=T||0,C=p/(2*Math.sqrt(y*v)),M=d-f,R=tn(Math.sqrt(y/v)),G=Math.abs(M)<5;r||(r=G?Zt.restSpeed.granular:Zt.restSpeed.default),c||(c=G?Zt.restDelta.granular:Zt.restDelta.default);let k;if(C<1){const K=Bf(R,C);k=W=>{const P=Math.exp(-C*R*W);return d-P*((j+C*R*M)/K*Math.sin(K*W)+M*Math.cos(K*W))}}else if(C===1)k=K=>d-Math.exp(-R*K)*(M+(j+R*M)*K);else{const K=R*Math.sqrt(C*C-1);k=W=>{const P=Math.exp(-C*R*W),L=Math.min(K*W,300);return d-P*((j+C*R*M)*Math.sinh(L)+K*M*Math.cosh(L))/K}}const B={calculatedDuration:E&&b||null,next:K=>{const W=k(K);if(E)h.done=K>=b;else{let P=K===0?j:0;C<1&&(P=K===0?fn(j):Ub(k,K,W));const L=Math.abs(P)<=r,tt=Math.abs(d-W)<=c;h.done=L&&tt}return h.value=h.done?d:W,h},toString:()=>{const K=Math.min(Nd(B),vo),W=Lb(P=>B.next(K*P).value,K,30);return K+"ms "+W},toTransition:()=>{}};return B}bo.applyToOptions=n=>{const i=RC(n,100,bo);return n.ease=i.ease,n.duration=fn(i.duration),n.type="keyframes",n};function Hf({keyframes:n,velocity:i=0,power:l=.8,timeConstant:r=325,bounceDamping:c=10,bounceStiffness:f=500,modifyTarget:d,min:h,max:y,restDelta:p=.5,restSpeed:v}){const b=n[0],T={done:!1,value:b},E=L=>h!==void 0&&L<h||y!==void 0&&L>y,j=L=>h===void 0?y:y===void 0||Math.abs(h-L)<Math.abs(y-L)?h:y;let C=l*i;const M=b+C,R=d===void 0?M:d(M);R!==M&&(C=R-b);const G=L=>-C*Math.exp(-L/r),k=L=>R+G(L),B=L=>{const tt=G(L),dt=k(L);T.done=Math.abs(tt)<=p,T.value=T.done?R:dt};let K,W;const P=L=>{E(T.value)&&(K=L,W=bo({keyframes:[T.value,j(T.value)],velocity:Ub(k,L,T.value),damping:c,stiffness:f,restDelta:p,restSpeed:v}))};return P(0),{calculatedDuration:null,next:L=>{let tt=!1;return!W&&K===void 0&&(tt=!0,B(L),P(L)),K!==void 0&&L>=K?W.next(L-K):(!tt&&B(L),T)}}}function BC(n,i,l){const r=[],c=l||Wn.mix||kb,f=n.length-1;for(let d=0;d<f;d++){let h=c(n[d],n[d+1]);if(i){const y=Array.isArray(i)?i[d]||en:i;h=Al(y,h)}r.push(h)}return r}function HC(n,i,{clamp:l=!0,ease:r,mixer:c}={}){const f=n.length;if(bd(f===i.length),f===1)return()=>i[0];if(f===2&&i[0]===i[1])return()=>i[1];const d=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),i=[...i].reverse());const h=BC(i,r,c),y=h.length,p=v=>{if(d&&v<n[0])return i[0];let b=0;if(y>1)for(;b<n.length-2&&!(v<n[b+1]);b++);const T=pl(n[b],n[b+1],v);return h[b](T)};return l?v=>p(Mn(n[0],n[f-1],v)):p}function GC(n,i){const l=n[n.length-1];for(let r=1;r<=i;r++){const c=pl(0,i,r);n.push(Xt(l,1,c))}}function qC(n){const i=[0];return GC(i,n.length-1),i}function YC(n,i){return n.map(l=>l*i)}function XC(n,i){return n.map(()=>i||Ab).splice(0,n.length-1)}function dl({duration:n=300,keyframes:i,times:l,ease:r="easeInOut"}){const c=eC(r)?r.map(xy):xy(r),f={done:!1,value:i[0]},d=YC(l&&l.length===i.length?l:qC(i),n),h=HC(d,i,{ease:Array.isArray(c)?c:XC(i,c)});return{calculatedDuration:n,next:y=>(f.value=h(y),f.done=y>=n,f)}}const KC=n=>n!==null;function Md(n,{repeat:i,repeatType:l="loop"},r,c=1){const f=n.filter(KC),h=c<0||i&&l!=="loop"&&i%2===1?0:f.length-1;return!h||r===void 0?f[h]:r}const PC={decay:Hf,inertia:Hf,tween:dl,keyframes:dl,spring:bo};function Bb(n){typeof n.type=="string"&&(n.type=PC[n.type])}class jd{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,l){return this.finished.then(i,l)}}const ZC=n=>n/100;class Dd extends jd{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:l}=this.options;l&&l.updatedAt!==Ee.now()&&this.tick(Ee.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;Bb(i);const{type:l=dl,repeat:r=0,repeatDelay:c=0,repeatType:f,velocity:d=0}=i;let{keyframes:h}=i;const y=l||dl;y!==dl&&typeof h[0]!="number"&&(this.mixKeyframes=Al(ZC,kb(h[0],h[1])),h=[0,100]);const p=y({...i,keyframes:h});f==="mirror"&&(this.mirroredGenerator=y({...i,keyframes:[...h].reverse(),velocity:-d})),p.calculatedDuration===null&&(p.calculatedDuration=Nd(p));const{calculatedDuration:v}=p;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(r+1)-c,this.generator=p}updateTime(i){const l=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(i,l=!1){const{generator:r,totalDuration:c,mixKeyframes:f,mirroredGenerator:d,resolvedDuration:h,calculatedDuration:y}=this;if(this.startTime===null)return r.next(0);const{delay:p=0,keyframes:v,repeat:b,repeatType:T,repeatDelay:E,type:j,onUpdate:C,finalKeyframe:M}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-c/this.speed,this.startTime)),l?this.currentTime=i:this.updateTime(i);const R=this.currentTime-p*(this.playbackSpeed>=0?1:-1),G=this.playbackSpeed>=0?R<0:R>c;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let k=this.currentTime,B=r;if(b){const L=Math.min(this.currentTime,c)/h;let tt=Math.floor(L),dt=L%1;!dt&&L>=1&&(dt=1),dt===1&&tt--,tt=Math.min(tt,b+1),tt%2&&(T==="reverse"?(dt=1-dt,E&&(dt-=E/h)):T==="mirror"&&(B=d)),k=Mn(0,1,dt)*h}const K=G?{done:!1,value:v[0]}:B.next(k);f&&(K.value=f(K.value));let{done:W}=K;!G&&y!==null&&(W=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&W);return P&&j!==Hf&&(K.value=Md(v,this.options,M,this.speed)),C&&C(K.value),P&&this.finish(),K}then(i,l){return this.finished.then(i,l)}get duration(){return tn(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+tn(i)}get time(){return tn(this.currentTime)}set time(i){i=fn(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(Ee.now());const l=this.playbackSpeed!==i;this.playbackSpeed=i,l&&(this.time=tn(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=DC,startTime:l}=this.options;this.driver||(this.driver=i(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=l??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(Ee.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(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),i.observe(this)}}function QC(n){for(let i=1;i<n.length;i++)n[i]??(n[i]=n[i-1])}const ni=n=>n*180/Math.PI,Gf=n=>{const i=ni(Math.atan2(n[1],n[0]));return qf(i)},FC={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Gf,rotateZ:Gf,skewX:n=>ni(Math.atan(n[1])),skewY:n=>ni(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},qf=n=>(n=n%360,n<0&&(n+=360),n),Ny=Gf,My=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),jy=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),JC={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:My,scaleY:jy,scale:n=>(My(n)+jy(n))/2,rotateX:n=>qf(ni(Math.atan2(n[6],n[5]))),rotateY:n=>qf(ni(Math.atan2(-n[2],n[0]))),rotateZ:Ny,rotate:Ny,skewX:n=>ni(Math.atan(n[4])),skewY:n=>ni(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function Yf(n){return n.includes("scale")?1:0}function Xf(n,i){if(!n||n==="none")return Yf(i);const l=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,c;if(l)r=JC,c=l;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=FC,c=h}if(!c)return Yf(i);const f=r[i],d=c[1].split(",").map(IC);return typeof f=="function"?f(d):d[f]}const WC=(n,i)=>{const{transform:l="none"}=getComputedStyle(n);return Xf(l,i)};function IC(n){return parseFloat(n.trim())}const os=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],us=new Set(os),Dy=n=>n===rs||n===it,$C=new Set(["x","y","z"]),tN=os.filter(n=>!$C.has(n));function eN(n){const i=[];return tN.forEach(l=>{const r=n.getValue(l);r!==void 0&&(i.push([l,r.get()]),r.set(l.startsWith("scale")?1:0))}),i}const Ca={width:({x:n},{paddingLeft:i="0",paddingRight:l="0"})=>n.max-n.min-parseFloat(i)-parseFloat(l),height:({y:n},{paddingTop:i="0",paddingBottom:l="0"})=>n.max-n.min-parseFloat(i)-parseFloat(l),top:(n,{top:i})=>parseFloat(i),left:(n,{left:i})=>parseFloat(i),bottom:({y:n},{top:i})=>parseFloat(i)+(n.max-n.min),right:({x:n},{left:i})=>parseFloat(i)+(n.max-n.min),x:(n,{transform:i})=>Xf(i,"x"),y:(n,{transform:i})=>Xf(i,"y")};Ca.translateX=Ca.x;Ca.translateY=Ca.y;const ai=new Set;let Kf=!1,Pf=!1,Zf=!1;function Hb(){if(Pf){const n=Array.from(ai).filter(r=>r.needsMeasurement),i=new Set(n.map(r=>r.element)),l=new Map;i.forEach(r=>{const c=eN(r);c.length&&(l.set(r,c),r.render())}),n.forEach(r=>r.measureInitialState()),i.forEach(r=>{r.render();const c=l.get(r);c&&c.forEach(([f,d])=>{r.getValue(f)?.set(d)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Pf=!1,Kf=!1,ai.forEach(n=>n.complete(Zf)),ai.clear()}function Gb(){ai.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Pf=!0)})}function nN(){Zf=!0,Gb(),Hb(),Zf=!1}class Rd{constructor(i,l,r,c,f,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=l,this.name=r,this.motionValue=c,this.element=f,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(ai.add(this),Kf||(Kf=!0,Ut.read(Gb),Ut.resolveKeyframes(Hb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:l,element:r,motionValue:c}=this;if(i[0]===null){const f=c?.get(),d=i[i.length-1];if(f!==void 0)i[0]=f;else if(r&&l){const h=r.readValue(l,d);h!=null&&(i[0]=h)}i[0]===void 0&&(i[0]=d),c&&f===void 0&&c.set(i[0])}QC(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),ai.delete(this)}cancel(){this.state==="scheduled"&&(ai.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const aN=n=>n.startsWith("--");function iN(n,i,l){aN(i)?n.style.setProperty(i,l):n.style[i]=l}const sN={};function qb(n,i){const l=pb(n);return()=>sN[i]??l()}const lN=qb(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Yb=qb(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ul=([n,i,l,r])=>`cubic-bezier(${n}, ${i}, ${l}, ${r})`,Ry={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ul([0,.65,.55,1]),circOut:ul([.55,0,1,.45]),backIn:ul([.31,.01,.66,-.59]),backOut:ul([.33,1.53,.69,.99])};function Xb(n,i){if(n)return typeof n=="function"?Yb()?Lb(n,i):"ease-out":Cb(n)?ul(n):Array.isArray(n)?n.map(l=>Xb(l,i)||Ry.easeOut):Ry[n]}function rN(n,i,l,{delay:r=0,duration:c=300,repeat:f=0,repeatType:d="loop",ease:h="easeOut",times:y}={},p=void 0){const v={[i]:l};y&&(v.offset=y);const b=Xb(h,c);Array.isArray(b)&&(v.easing=b);const T={delay:r,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return p&&(T.pseudoElement=p),n.animate(v,T)}function Kb(n){return typeof n=="function"&&"applyToOptions"in n}function oN({type:n,...i}){return Kb(n)&&Yb()?n.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class Pb extends jd{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:l,name:r,keyframes:c,pseudoElement:f,allowFlatten:d=!1,finalKeyframe:h,onComplete:y}=i;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=i,bd(typeof i.type!="string");const p=oN(i);this.animation=rN(l,r,c,p,f),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const v=Md(c,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(v):iN(l,r,v),this.animation.cancel()}y?.(),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:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const i=this.options?.element;!this.isPseudoElement&&i?.isConnected&&this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return tn(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+tn(i)}get time(){return tn(Number(this.animation.currentTime)||0)}set time(i){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=fn(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(i){this.manualStartTime=this.animation.startTime=i}attachTimeline({timeline:i,observe:l}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&lN()?(this.animation.timeline=i,en):l(this)}}const Zb={anticipate:Tb,backInOut:Sb,circInOut:Eb};function uN(n){return n in Zb}function cN(n){typeof n.ease=="string"&&uN(n.ease)&&(n.ease=Zb[n.ease])}const xf=10;class fN extends Pb{constructor(i){cN(i),Bb(i),super(i),i.startTime!==void 0&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:l,onUpdate:r,onComplete:c,element:f,...d}=this.options;if(!l)return;if(i!==void 0){l.set(i);return}const h=new Dd({...d,autoplay:!1}),y=Math.max(xf,Ee.now()-this.startTime),p=Mn(0,xf,y-xf);l.setWithVelocity(h.sample(Math.max(0,y-p)).value,h.sample(y).value,p),h.stop()}}const Oy=(n,i)=>i==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(dn.test(n)||n==="0")&&!n.startsWith("url("));function dN(n){const i=n[0];if(n.length===1)return!0;for(let l=0;l<n.length;l++)if(n[l]!==i)return!0}function hN(n,i,l,r){const c=n[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const f=n[n.length-1],d=Oy(c,i),h=Oy(f,i);return!d||!h?!1:dN(n)||(l==="spring"||Kb(l))&&r}function Qf(n){n.duration=0,n.type="keyframes"}const mN=new Set(["opacity","clipPath","filter","transform"]),pN=pb(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function gN(n){const{motionValue:i,name:l,repeatDelay:r,repeatType:c,damping:f,type:d}=n;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:y,transformTemplate:p}=i.owner.getProps();return pN()&&l&&mN.has(l)&&(l!=="transform"||!p)&&!y&&!r&&c!=="mirror"&&f!==0&&d!=="inertia"}const yN=40;class vN extends jd{constructor({autoplay:i=!0,delay:l=0,type:r="keyframes",repeat:c=0,repeatDelay:f=0,repeatType:d="loop",keyframes:h,name:y,motionValue:p,element:v,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ee.now();const T={autoplay:i,delay:l,type:r,repeat:c,repeatDelay:f,repeatType:d,name:y,motionValue:p,element:v,...b},E=v?.KeyframeResolver||Rd;this.keyframeResolver=new E(h,(j,C,M)=>this.onKeyframesResolved(j,C,T,!M),y,p,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,l,r,c){this.keyframeResolver=void 0;const{name:f,type:d,velocity:h,delay:y,isHandoff:p,onUpdate:v}=r;this.resolvedAt=Ee.now(),hN(i,f,d,h)||((Wn.instantAnimations||!y)&&v?.(Md(i,r,l)),i[0]=i[i.length-1],Qf(r),r.repeat=0);const T={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>yN?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...r,keyframes:i},E=!p&&gN(T),j=T.motionValue?.owner?.current,C=E?new fN({...T,element:j}):new Dd(T);C.finished.then(()=>{this.notifyFinished()}).catch(en),this.pendingTimeline&&(this.stopTimeline=C.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=C}get finished(){return this._animation?this.animation.finished:this._finished}then(i,l){return this.finished.finally(i).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),nN()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Qb(n,i,l,r=0,c=1){const f=Array.from(n).sort((p,v)=>p.sortNodePosition(v)).indexOf(i),d=n.size,h=(d-1)*r;return typeof l=="function"?l(f,d):c===1?f*r:h-f*r}const bN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xN(n){const i=bN.exec(n);if(!i)return[,];const[,l,r,c]=i;return[`--${l??r}`,c]}function Fb(n,i,l=1){const[r,c]=xN(n);if(!r)return;const f=window.getComputedStyle(i).getPropertyValue(r);if(f){const d=f.trim();return db(d)?parseFloat(d):d}return wd(c)?Fb(c,i,l+1):c}const SN={type:"spring",stiffness:500,damping:25,restSpeed:10},TN=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),wN={type:"keyframes",duration:.8},EN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},AN=(n,{keyframes:i})=>i.length>2?wN:us.has(n)?n.startsWith("scale")?TN(i[1]):SN:EN,CN=n=>n!==null;function NN(n,{repeat:i,repeatType:l="loop"},r){const c=n.filter(CN),f=i&&l!=="loop"&&i%2===1?0:c.length-1;return c[f]}function Jb(n,i){if(n?.inherit&&i){const{inherit:l,...r}=n;return{...i,...r}}return n}function Od(n,i){const l=n?.[i]??n?.default??n;return l!==n?Jb(l,n):l}function MN({when:n,delay:i,delayChildren:l,staggerChildren:r,staggerDirection:c,repeat:f,repeatType:d,repeatDelay:h,from:y,elapsed:p,...v}){return!!Object.keys(v).length}const zd=(n,i,l,r={},c,f)=>d=>{const h=Od(r,n)||{},y=h.delay||r.delay||0;let{elapsed:p=0}=r;p=p-fn(y);const v={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:i.getVelocity(),...h,delay:-p,onUpdate:T=>{i.set(T),h.onUpdate&&h.onUpdate(T)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:n,motionValue:i,element:f?void 0:c};MN(h)||Object.assign(v,AN(n,v)),v.duration&&(v.duration=fn(v.duration)),v.repeatDelay&&(v.repeatDelay=fn(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let b=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(Qf(v),v.delay===0&&(b=!0)),(Wn.instantAnimations||Wn.skipAnimations||c?.shouldSkipAnimations)&&(b=!0,Qf(v),v.delay=0),v.allowFlatten=!h.type&&!h.ease,b&&!f&&i.get()!==void 0){const T=NN(v.keyframes,h);if(T!==void 0){Ut.update(()=>{v.onUpdate(T),v.onComplete()});return}}return h.isSync?new Dd(v):new vN(v)};function zy(n){const i=[{},{}];return n?.values.forEach((l,r)=>{i[0][r]=l.get(),i[1][r]=l.getVelocity()}),i}function _d(n,i,l,r){if(typeof i=="function"){const[c,f]=zy(r);i=i(l!==void 0?l:n.custom,c,f)}if(typeof i=="string"&&(i=n.variants&&n.variants[i]),typeof i=="function"){const[c,f]=zy(r);i=i(l!==void 0?l:n.custom,c,f)}return i}function ss(n,i,l){const r=n.getProps();return _d(r,i,l!==void 0?l:r.custom,n)}const Wb=new Set(["width","height","top","left","right","bottom",...os]),_y=30,jN=n=>!isNaN(parseFloat(n));class DN{constructor(i,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const c=Ee.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 f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=l.owner}setCurrent(i){this.current=i,this.updatedAt=Ee.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=jN(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,l){this.events[i]||(this.events[i]=new xd);const r=this.events[i].add(l);return i==="change"?()=>{r(),Ut.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,l){this.passiveEffect=i,this.stopPassiveEffect=l}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,l,r){this.set(l),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-r}jump(i,l=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=Ee.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>_y)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,_y);return gb(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(i){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=i(l),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 ls(n,i){return new DN(n,i)}const Ff=n=>Array.isArray(n);function RN(n,i,l){n.hasValue(i)?n.getValue(i).set(l):n.addValue(i,ls(l))}function ON(n){return Ff(n)?n[n.length-1]||0:n}function zN(n,i){const l=ss(n,i);let{transitionEnd:r={},transition:c={},...f}=l||{};f={...f,...r};for(const d in f){const h=ON(f[d]);RN(n,d,h)}}const xe=n=>!!(n&&n.getVelocity);function _N(n){return!!(xe(n)&&n.add)}function Jf(n,i){const l=n.getValue("willChange");if(_N(l))return l.add(i);if(!l&&Wn.WillChange){const r=new Wn.WillChange("auto");n.addValue("willChange",r),r.add(i)}}function Vd(n){return n.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const VN="framerAppearId",Ib="data-"+Vd(VN);function $b(n){return n.props[Ib]}function kN({protectedKeys:n,needsAnimating:i},l){const r=n.hasOwnProperty(l)&&i[l]!==!0;return i[l]=!1,r}function tx(n,i,{delay:l=0,transitionOverride:r,type:c}={}){let{transition:f,transitionEnd:d,...h}=i;const y=n.getDefaultTransition();f=f?Jb(f,y):y;const p=f?.reduceMotion;r&&(f=r);const v=[],b=c&&n.animationState&&n.animationState.getState()[c];for(const T in h){const E=n.getValue(T,n.latestValues[T]??null),j=h[T];if(j===void 0||b&&kN(b,T))continue;const C={delay:l,...Od(f||{},T)},M=E.get();if(M!==void 0&&!E.isAnimating&&!Array.isArray(j)&&j===M&&!C.velocity)continue;let R=!1;if(window.MotionHandoffAnimation){const B=$b(n);if(B){const K=window.MotionHandoffAnimation(B,T,Ut);K!==null&&(C.startTime=K,R=!0)}}Jf(n,T);const G=p??n.shouldReduceMotion;E.start(zd(T,E,j,G&&Wb.has(T)?{type:!1}:C,n,R));const k=E.animation;k&&v.push(k)}if(d){const T=()=>Ut.update(()=>{d&&zN(n,d)});v.length?Promise.all(v).then(T):T()}return v}function Wf(n,i,l={}){const r=ss(n,i,l.type==="exit"?n.presenceContext?.custom:void 0);let{transition:c=n.getDefaultTransition()||{}}=r||{};l.transitionOverride&&(c=l.transitionOverride);const f=r?()=>Promise.all(tx(n,r,l)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(y=0)=>{const{delayChildren:p=0,staggerChildren:v,staggerDirection:b}=c;return LN(n,i,y,p,v,b,l)}:()=>Promise.resolve(),{when:h}=c;if(h){const[y,p]=h==="beforeChildren"?[f,d]:[d,f];return y().then(()=>p())}else return Promise.all([f(),d(l.delay)])}function LN(n,i,l=0,r=0,c=0,f=1,d){const h=[];for(const y of n.variantChildren)y.notify("AnimationStart",i),h.push(Wf(y,i,{...d,delay:l+(typeof r=="function"?0:r)+Qb(n.variantChildren,y,r,c,f)}).then(()=>y.notify("AnimationComplete",i)));return Promise.all(h)}function UN(n,i,l={}){n.notify("AnimationStart",i);let r;if(Array.isArray(i)){const c=i.map(f=>Wf(n,f,l));r=Promise.all(c)}else if(typeof i=="string")r=Wf(n,i,l);else{const c=typeof i=="function"?ss(n,i,l.custom):i;r=Promise.all(tx(n,c,l))}return r.then(()=>{n.notify("AnimationComplete",i)})}const BN={test:n=>n==="auto",parse:n=>n},ex=n=>i=>i.test(n),nx=[rs,it,Cn,Aa,mC,hC,BN],Vy=n=>nx.find(ex(n));function HN(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||mb(n):!0}const GN=new Set(["brightness","contrast","saturate","opacity"]);function qN(n){const[i,l]=n.slice(0,-1).split("(");if(i==="drop-shadow")return n;const[r]=l.match(Ed)||[];if(!r)return n;const c=l.replace(r,"");let f=GN.has(i)?1:0;return r!==l&&(f*=100),i+"("+f+c+")"}const YN=/\b([a-z-]*)\(.*?\)/gu,If={...dn,getAnimatableNone:n=>{const i=n.match(YN);return i?i.map(qN).join(" "):n}},$f={...dn,getAnimatableNone:n=>{const i=dn.parse(n);return dn.createTransformer(n)(i.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},ky={...rs,transform:Math.round},XN={rotate:Aa,rotateX:Aa,rotateY:Aa,rotateZ:Aa,scale:to,scaleX:to,scaleY:to,scaleZ:to,skew:Aa,skewX:Aa,skewY:Aa,distance:it,translateX:it,translateY:it,translateZ:it,x:it,y:it,z:it,perspective:it,transformPerspective:it,opacity:gl,originX:Ty,originY:Ty,originZ:it},kd={borderWidth:it,borderTopWidth:it,borderRightWidth:it,borderBottomWidth:it,borderLeftWidth:it,borderRadius:it,borderTopLeftRadius:it,borderTopRightRadius:it,borderBottomRightRadius:it,borderBottomLeftRadius:it,width:it,maxWidth:it,height:it,maxHeight:it,top:it,right:it,bottom:it,left:it,inset:it,insetBlock:it,insetBlockStart:it,insetBlockEnd:it,insetInline:it,insetInlineStart:it,insetInlineEnd:it,padding:it,paddingTop:it,paddingRight:it,paddingBottom:it,paddingLeft:it,paddingBlock:it,paddingBlockStart:it,paddingBlockEnd:it,paddingInline:it,paddingInlineStart:it,paddingInlineEnd:it,margin:it,marginTop:it,marginRight:it,marginBottom:it,marginLeft:it,marginBlock:it,marginBlockStart:it,marginBlockEnd:it,marginInline:it,marginInlineStart:it,marginInlineEnd:it,fontSize:it,backgroundPositionX:it,backgroundPositionY:it,...XN,zIndex:ky,fillOpacity:gl,strokeOpacity:gl,numOctaves:ky},KN={...kd,color:te,backgroundColor:te,outlineColor:te,fill:te,stroke:te,borderColor:te,borderTopColor:te,borderRightColor:te,borderBottomColor:te,borderLeftColor:te,filter:If,WebkitFilter:If,mask:$f,WebkitMask:$f},ax=n=>KN[n],PN=new Set([If,$f]);function ix(n,i){let l=ax(n);return PN.has(l)||(l=dn),l.getAnimatableNone?l.getAnimatableNone(i):void 0}const ZN=new Set(["auto","none","0"]);function QN(n,i,l){let r=0,c;for(;r<n.length&&!c;){const f=n[r];typeof f=="string"&&!ZN.has(f)&&yl(f).values.length&&(c=n[r]),r++}if(c&&l)for(const f of i)n[f]=ix(l,c)}class FN extends Rd{constructor(i,l,r,c,f){super(i,l,r,c,f,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:l,name:r}=this;if(!l||!l.current)return;super.readKeyframes();for(let v=0;v<i.length;v++){let b=i[v];if(typeof b=="string"&&(b=b.trim(),wd(b))){const T=Fb(b,l.current);T!==void 0&&(i[v]=T),v===i.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!Wb.has(r)||i.length!==2)return;const[c,f]=i,d=Vy(c),h=Vy(f),y=Sy(c),p=Sy(f);if(y!==p&&Ca[r]){this.needsMeasurement=!0;return}if(d!==h)if(Dy(d)&&Dy(h))for(let v=0;v<i.length;v++){const b=i[v];typeof b=="string"&&(i[v]=parseFloat(b))}else Ca[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:l}=this,r=[];for(let c=0;c<i.length;c++)(i[c]===null||HN(i[c]))&&r.push(c);r.length&&QN(i,r,l)}measureInitialState(){const{element:i,unresolvedKeyframes:l,name:r}=this;if(!i||!i.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ca[r](i.measureViewportBox(),window.getComputedStyle(i.current)),l[0]=this.measuredOrigin;const c=l[l.length-1];c!==void 0&&i.getValue(r,c).jump(c,!1)}measureEndState(){const{element:i,name:l,unresolvedKeyframes:r}=this;if(!i||!i.current)return;const c=i.getValue(l);c&&c.jump(this.measuredOrigin,!1);const f=r.length-1,d=r[f];r[f]=Ca[l](i.measureViewportBox(),window.getComputedStyle(i.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([h,y])=>{i.getValue(h).set(y)}),this.resolveNoneKeyframes()}}const JN=new Set(["opacity","clipPath","filter","transform"]);function sx(n,i,l){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let r=document;const c=l?.[n]??r.querySelectorAll(n);return c?Array.from(c):[]}return Array.from(n).filter(r=>r!=null)}const lx=(n,i)=>i&&typeof n=="number"?i.transform(n):n;function td(n){return hb(n)&&"offsetHeight"in n}const{schedule:Ld}=Nb(queueMicrotask,!1),cn={x:!1,y:!1};function rx(){return cn.x||cn.y}function WN(n){return n==="x"||n==="y"?cn[n]?null:(cn[n]=!0,()=>{cn[n]=!1}):cn.x||cn.y?null:(cn.x=cn.y=!0,()=>{cn.x=cn.y=!1})}function ox(n,i){const l=sx(n),r=new AbortController,c={passive:!0,...i,signal:r.signal};return[l,c,()=>r.abort()]}function IN(n){return!(n.pointerType==="touch"||rx())}function $N(n,i,l={}){const[r,c,f]=ox(n,l);return r.forEach(d=>{let h=!1,y=!1,p;const v=()=>{d.removeEventListener("pointerleave",j)},b=M=>{p&&(p(M),p=void 0),v()},T=M=>{h=!1,window.removeEventListener("pointerup",T),window.removeEventListener("pointercancel",T),y&&(y=!1,b(M))},E=()=>{h=!0,window.addEventListener("pointerup",T,c),window.addEventListener("pointercancel",T,c)},j=M=>{if(M.pointerType!=="touch"){if(h){y=!0;return}b(M)}},C=M=>{if(!IN(M))return;y=!1;const R=i(d,M);typeof R=="function"&&(p=R,d.addEventListener("pointerleave",j,c))};d.addEventListener("pointerenter",C,c),d.addEventListener("pointerdown",E,c)}),f}const ux=(n,i)=>i?n===i?!0:ux(n,i.parentElement):!1,Ud=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,tM=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function eM(n){return tM.has(n.tagName)||n.isContentEditable===!0}const nM=new Set(["INPUT","SELECT","TEXTAREA"]);function aM(n){return nM.has(n.tagName)||n.isContentEditable===!0}const lo=new WeakSet;function Ly(n){return i=>{i.key==="Enter"&&n(i)}}function Sf(n,i){n.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const iM=(n,i)=>{const l=n.currentTarget;if(!l)return;const r=Ly(()=>{if(lo.has(l))return;Sf(l,"down");const c=Ly(()=>{Sf(l,"up")}),f=()=>Sf(l,"cancel");l.addEventListener("keyup",c,i),l.addEventListener("blur",f,i)});l.addEventListener("keydown",r,i),l.addEventListener("blur",()=>l.removeEventListener("keydown",r),i)};function Uy(n){return Ud(n)&&!rx()}const By=new WeakSet;function sM(n,i,l={}){const[r,c,f]=ox(n,l),d=h=>{const y=h.currentTarget;if(!Uy(h)||By.has(h))return;lo.add(y),l.stopPropagation&&By.add(h);const p=i(y,h),v=(E,j)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",T),lo.has(y)&&lo.delete(y),Uy(E)&&typeof p=="function"&&p(E,{success:j})},b=E=>{v(E,y===window||y===document||l.useGlobalTarget||ux(y,E.target))},T=E=>{v(E,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",T,c)};return r.forEach(h=>{(l.useGlobalTarget?window:h).addEventListener("pointerdown",d,c),td(h)&&(h.addEventListener("focus",p=>iM(p,c)),!eM(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),f}function Bd(n){return hb(n)&&"ownerSVGElement"in n}const ro=new WeakMap;let oo;const cx=(n,i,l)=>(r,c)=>c&&c[0]?c[0][n+"Size"]:Bd(r)&&"getBBox"in r?r.getBBox()[i]:r[l],lM=cx("inline","width","offsetWidth"),rM=cx("block","height","offsetHeight");function oM({target:n,borderBoxSize:i}){ro.get(n)?.forEach(l=>{l(n,{get width(){return lM(n,i)},get height(){return rM(n,i)}})})}function uM(n){n.forEach(oM)}function cM(){typeof ResizeObserver>"u"||(oo=new ResizeObserver(uM))}function fM(n,i){oo||cM();const l=sx(n);return l.forEach(r=>{let c=ro.get(r);c||(c=new Set,ro.set(r,c)),c.add(i),oo?.observe(r)}),()=>{l.forEach(r=>{const c=ro.get(r);c?.delete(i),c?.size||oo?.unobserve(r)})}}const uo=new Set;let ts;function dM(){ts=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};uo.forEach(i=>i(n))},window.addEventListener("resize",ts)}function hM(n){return uo.add(n),ts||dM(),()=>{uo.delete(n),!uo.size&&typeof ts=="function"&&(window.removeEventListener("resize",ts),ts=void 0)}}function Hy(n,i){return typeof n=="function"?hM(n):fM(n,i)}function mM(n){return Bd(n)&&n.tagName==="svg"}const pM=[...nx,te,dn],gM=n=>pM.find(ex(n)),Gy=()=>({translate:0,scale:1,origin:0,originPoint:0}),es=()=>({x:Gy(),y:Gy()}),qy=()=>({min:0,max:0}),ae=()=>({x:qy(),y:qy()}),yM=new WeakMap;function Ro(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function vl(n){return typeof n=="string"||Array.isArray(n)}const Hd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Gd=["initial",...Hd];function Oo(n){return Ro(n.animate)||Gd.some(i=>vl(n[i]))}function fx(n){return!!(Oo(n)||n.variants)}function vM(n,i,l){for(const r in i){const c=i[r],f=l[r];if(xe(c))n.addValue(r,c);else if(xe(f))n.addValue(r,ls(c,{owner:n}));else if(f!==c)if(n.hasValue(r)){const d=n.getValue(r);d.liveStyle===!0?d.jump(c):d.hasAnimated||d.set(c)}else{const d=n.getStaticValue(r);n.addValue(r,ls(d!==void 0?d:c,{owner:n}))}}for(const r in l)i[r]===void 0&&n.removeValue(r);return i}const ed={current:null},dx={current:!1},bM=typeof window<"u";function xM(){if(dx.current=!0,!!bM)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),i=()=>ed.current=n.matches;n.addEventListener("change",i),i()}else ed.current=!1}const Yy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let xo={};function hx(n){xo=n}function SM(){return xo}class TM{scrapeMotionValuesFromProps(i,l,r){return{}}constructor({parent:i,props:l,presenceContext:r,reducedMotionConfig:c,skipAnimations:f,blockInitialAnimation:d,visualState:h},y={}){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=Rd,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 E=Ee.now();this.renderScheduledAt<E&&(this.renderScheduledAt=E,Ut.render(this.render,!1,!0))};const{latestValues:p,renderState:v}=h;this.latestValues=p,this.baseTarget={...p},this.initialValues=l.initial?{...p}:{},this.renderState=v,this.parent=i,this.props=l,this.presenceContext=r,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=f,this.options=y,this.blockInitialAnimation=!!d,this.isControllingVariants=Oo(l),this.isVariantNode=fx(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:b,...T}=this.scrapeMotionValuesFromProps(l,{},this);for(const E in T){const j=T[E];p[E]!==void 0&&xe(j)&&j.set(p[E])}}mount(i){if(this.hasBeenMounted)for(const l in this.initialValues)this.values.get(l)?.jump(this.initialValues[l]),this.latestValues[l]=this.initialValues[l];this.current=i,yM.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((l,r)=>this.bindToMotionValue(r,l)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(dx.current||xM(),this.shouldReduceMotion=ed.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(),Ma(this.notifyUpdate),Ma(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const l=this.features[i];l&&(l.unmount(),l.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,l){if(this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)(),l.accelerate&&JN.has(i)&&this.current instanceof HTMLElement){const{factory:d,keyframes:h,times:y,ease:p,duration:v}=l.accelerate,b=new Pb({element:this.current,name:i,keyframes:h,times:y,ease:p,duration:fn(v)}),T=d(b);this.valueSubscriptions.set(i,()=>{T(),b.cancel()});return}const r=us.has(i);r&&this.onBindTransform&&this.onBindTransform();const c=l.on("change",d=>{this.latestValues[i]=d,this.props.onUpdate&&Ut.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,l)),this.valueSubscriptions.set(i,()=>{c(),f&&f(),l.owner&&l.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in xo){const l=xo[i];if(!l)continue;const{isEnabled:r,Feature:c}=l;if(!this.features[i]&&c&&r(this.props)&&(this.features[i]=new c(this)),this.features[i]){const f=this.features[i];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ae()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,l){this.latestValues[i]=l}update(i,l){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let r=0;r<Yy.length;r++){const c=Yy[r];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const f="on"+c,d=i[f];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=vM(this,this.scrapeMotionValuesFromProps(i,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]: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(i){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(i),()=>l.variantChildren.delete(i)}addValue(i,l){const r=this.values.get(i);l!==r&&(r&&this.removeValue(i),this.bindToMotionValue(i,l),this.values.set(i,l),this.latestValues[i]=l.get())}removeValue(i){this.values.delete(i);const l=this.valueSubscriptions.get(i);l&&(l(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,l){if(this.props.values&&this.props.values[i])return this.props.values[i];let r=this.values.get(i);return r===void 0&&l!==void 0&&(r=ls(l===null?void 0:l,{owner:this}),this.addValue(i,r)),r}readValue(i,l){let r=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return r!=null&&(typeof r=="string"&&(db(r)||mb(r))?r=parseFloat(r):!gM(r)&&dn.test(l)&&(r=ix(i,l)),this.setBaseTarget(i,xe(r)?r.get():r)),xe(r)?r.get():r}setBaseTarget(i,l){this.baseTarget[i]=l}getBaseTarget(i){const{initial:l}=this.props;let r;if(typeof l=="string"||typeof l=="object"){const f=_d(this.props,l,this.presenceContext?.custom);f&&(r=f[i])}if(l&&r!==void 0)return r;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!xe(c)?c:this.initialValues[i]!==void 0&&r===void 0?void 0:this.baseTarget[i]}on(i,l){return this.events[i]||(this.events[i]=new xd),this.events[i].add(l)}notify(i,...l){this.events[i]&&this.events[i].notify(...l)}scheduleRenderMicrotask(){Ld.render(this.render)}}class mx extends TM{constructor(){super(...arguments),this.KeyframeResolver=FN}sortInstanceNodePosition(i,l){return i.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(i,l){const r=i.style;return r?r[l]:void 0}removeValueFromRenderState(i,{vars:l,style:r}){delete l[i],delete r[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;xe(i)&&(this.childSubscription=i.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}class Da{constructor(i){this.isMounted=!1,this.node=i}update(){}}function px({top:n,left:i,right:l,bottom:r}){return{x:{min:i,max:l},y:{min:n,max:r}}}function wM({x:n,y:i}){return{top:i.min,right:n.max,bottom:i.max,left:n.min}}function EM(n,i){if(!i)return n;const l=i({x:n.left,y:n.top}),r=i({x:n.right,y:n.bottom});return{top:l.y,left:l.x,bottom:r.y,right:r.x}}function Tf(n){return n===void 0||n===1}function nd({scale:n,scaleX:i,scaleY:l}){return!Tf(n)||!Tf(i)||!Tf(l)}function ti(n){return nd(n)||gx(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function gx(n){return Xy(n.x)||Xy(n.y)}function Xy(n){return n&&n!=="0%"}function So(n,i,l){const r=n-l,c=i*r;return l+c}function Ky(n,i,l,r,c){return c!==void 0&&(n=So(n,c,r)),So(n,l,r)+i}function ad(n,i=0,l=1,r,c){n.min=Ky(n.min,i,l,r,c),n.max=Ky(n.max,i,l,r,c)}function yx(n,{x:i,y:l}){ad(n.x,i.translate,i.scale,i.originPoint),ad(n.y,l.translate,l.scale,l.originPoint)}const Py=.999999999999,Zy=1.0000000000001;function AM(n,i,l,r=!1){const c=l.length;if(!c)return;i.x=i.y=1;let f,d;for(let h=0;h<c;h++){f=l[h],d=f.projectionDelta;const{visualElement:y}=f.options;y&&y.props.style&&y.props.style.display==="contents"||(r&&f.options.layoutScroll&&f.scroll&&f!==f.root&&as(n,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(i.x*=d.x.scale,i.y*=d.y.scale,yx(n,d)),r&&ti(f.latestValues)&&as(n,f.latestValues))}i.x<Zy&&i.x>Py&&(i.x=1),i.y<Zy&&i.y>Py&&(i.y=1)}function ns(n,i){n.min=n.min+i,n.max=n.max+i}function Qy(n,i,l,r,c=.5){const f=Xt(n.min,n.max,c);ad(n,i,l,f,r)}function as(n,i){Qy(n.x,i.x,i.scaleX,i.scale,i.originX),Qy(n.y,i.y,i.scaleY,i.scale,i.originY)}function vx(n,i){return px(EM(n.getBoundingClientRect(),i))}function CM(n,i,l){const r=vx(n,l),{scroll:c}=i;return c&&(ns(r.x,c.offset.x),ns(r.y,c.offset.y)),r}const NM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},MM=os.length;function jM(n,i,l){let r="",c=!0;for(let f=0;f<MM;f++){const d=os[f],h=n[d];if(h===void 0)continue;let y=!0;if(typeof h=="number")y=h===(d.startsWith("scale")?1:0);else{const p=parseFloat(h);y=d.startsWith("scale")?p===1:p===0}if(!y||l){const p=lx(h,kd[d]);if(!y){c=!1;const v=NM[d]||d;r+=`${v}(${p}) `}l&&(i[d]=p)}}return r=r.trim(),l?r=l(i,c?"":r):c&&(r="none"),r}function qd(n,i,l){const{style:r,vars:c,transformOrigin:f}=n;let d=!1,h=!1;for(const y in i){const p=i[y];if(us.has(y)){d=!0;continue}else if(jb(y)){c[y]=p;continue}else{const v=lx(p,kd[y]);y.startsWith("origin")?(h=!0,f[y]=v):r[y]=v}}if(i.transform||(d||l?r.transform=jM(i,n.transform,l):r.transform&&(r.transform="none")),h){const{originX:y="50%",originY:p="50%",originZ:v=0}=f;r.transformOrigin=`${y} ${p} ${v}`}}function bx(n,{style:i,vars:l},r,c){const f=n.style;let d;for(d in i)f[d]=i[d];c?.applyProjectionStyles(f,r);for(d in l)f.setProperty(d,l[d])}function Fy(n,i){return i.max===i.min?0:n/(i.max-i.min)*100}const ol={correct:(n,i)=>{if(!i.target)return n;if(typeof n=="string")if(it.test(n))n=parseFloat(n);else return n;const l=Fy(n,i.target.x),r=Fy(n,i.target.y);return`${l}% ${r}%`}},DM={correct:(n,{treeScale:i,projectionDelta:l})=>{const r=n,c=dn.parse(n);if(c.length>5)return r;const f=dn.createTransformer(n),d=typeof c[0]!="number"?1:0,h=l.x.scale*i.x,y=l.y.scale*i.y;c[0+d]/=h,c[1+d]/=y;const p=Xt(h,y,.5);return typeof c[2+d]=="number"&&(c[2+d]/=p),typeof c[3+d]=="number"&&(c[3+d]/=p),f(c)}},id={borderRadius:{...ol,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ol,borderTopRightRadius:ol,borderBottomLeftRadius:ol,borderBottomRightRadius:ol,boxShadow:DM};function xx(n,{layout:i,layoutId:l}){return us.has(n)||n.startsWith("origin")||(i||l!==void 0)&&(!!id[n]||n==="opacity")}function Yd(n,i,l){const r=n.style,c=i?.style,f={};if(!r)return f;for(const d in r)(xe(r[d])||c&&xe(c[d])||xx(d,n)||l?.getValue(d)?.liveStyle!==void 0)&&(f[d]=r[d]);return f}function RM(n){return window.getComputedStyle(n)}class OM extends mx{constructor(){super(...arguments),this.type="html",this.renderInstance=bx}readValueFromInstance(i,l){if(us.has(l))return this.projection?.isProjecting?Yf(l):WC(i,l);{const r=RM(i),c=(jb(l)?r.getPropertyValue(l):r[l])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:l}){return vx(i,l)}build(i,l,r){qd(i,l,r.transformTemplate)}scrapeMotionValuesFromProps(i,l,r){return Yd(i,l,r)}}const zM={offset:"stroke-dashoffset",array:"stroke-dasharray"},_M={offset:"strokeDashoffset",array:"strokeDasharray"};function VM(n,i,l=1,r=0,c=!0){n.pathLength=1;const f=c?zM:_M;n[f.offset]=`${-r}`,n[f.array]=`${i} ${l}`}const kM=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Sx(n,{attrX:i,attrY:l,attrScale:r,pathLength:c,pathSpacing:f=1,pathOffset:d=0,...h},y,p,v){if(qd(n,h,p),y){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:b,style:T}=n;b.transform&&(T.transform=b.transform,delete b.transform),(T.transform||b.transformOrigin)&&(T.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),T.transform&&(T.transformBox=v?.transformBox??"fill-box",delete b.transformBox);for(const E of kM)b[E]!==void 0&&(T[E]=b[E],delete b[E]);i!==void 0&&(b.x=i),l!==void 0&&(b.y=l),r!==void 0&&(b.scale=r),c!==void 0&&VM(b,c,f,d,!1)}const Tx=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"]),wx=n=>typeof n=="string"&&n.toLowerCase()==="svg";function LM(n,i,l,r){bx(n,i,void 0,r);for(const c in i.attrs)n.setAttribute(Tx.has(c)?c:Vd(c),i.attrs[c])}function Ex(n,i,l){const r=Yd(n,i,l);for(const c in n)if(xe(n[c])||xe(i[c])){const f=os.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;r[f]=n[c]}return r}class UM extends mx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ae}getBaseTargetFromProps(i,l){return i[l]}readValueFromInstance(i,l){if(us.has(l)){const r=ax(l);return r&&r.default||0}return l=Tx.has(l)?l:Vd(l),i.getAttribute(l)}scrapeMotionValuesFromProps(i,l,r){return Ex(i,l,r)}build(i,l,r){Sx(i,l,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(i,l,r,c){LM(i,l,r,c)}mount(i){this.isSVGTag=wx(i.tagName),super.mount(i)}}const BM=Gd.length;function Ax(n){if(!n)return;if(!n.isControllingVariants){const l=n.parent?Ax(n.parent)||{}:{};return n.props.initial!==void 0&&(l.initial=n.props.initial),l}const i={};for(let l=0;l<BM;l++){const r=Gd[l],c=n.props[r];(vl(c)||c===!1)&&(i[r]=c)}return i}function Cx(n,i){if(!Array.isArray(i))return!1;const l=i.length;if(l!==n.length)return!1;for(let r=0;r<l;r++)if(i[r]!==n[r])return!1;return!0}const HM=[...Hd].reverse(),GM=Hd.length;function qM(n){return i=>Promise.all(i.map(({animation:l,options:r})=>UN(n,l,r)))}function YM(n){let i=qM(n),l=Jy(),r=!0;const c=y=>(p,v)=>{const b=ss(n,v,y==="exit"?n.presenceContext?.custom:void 0);if(b){const{transition:T,transitionEnd:E,...j}=b;p={...p,...j,...E}}return p};function f(y){i=y(n)}function d(y){const{props:p}=n,v=Ax(n.parent)||{},b=[],T=new Set;let E={},j=1/0;for(let M=0;M<GM;M++){const R=HM[M],G=l[R],k=p[R]!==void 0?p[R]:v[R],B=vl(k),K=R===y?G.isActive:null;K===!1&&(j=M);let W=k===v[R]&&k!==p[R]&&B;if(W&&r&&n.manuallyAnimateOnMount&&(W=!1),G.protectedKeys={...E},!G.isActive&&K===null||!k&&!G.prevProp||Ro(k)||typeof k=="boolean")continue;if(R==="exit"&&G.isActive&&K!==!0){G.prevResolvedValues&&(E={...E,...G.prevResolvedValues});continue}const P=XM(G.prevProp,k);let L=P||R===y&&G.isActive&&!W&&B||M>j&&B,tt=!1;const dt=Array.isArray(k)?k:[k];let ut=dt.reduce(c(R),{});K===!1&&(ut={});const{prevResolvedValues:At={}}=G,Tt={...At,...ut},Gt=Z=>{L=!0,T.has(Z)&&(tt=!0,T.delete(Z)),G.needsAnimating[Z]=!0;const $=n.getValue(Z);$&&($.liveStyle=!1)};for(const Z in Tt){const $=ut[Z],ht=At[Z];if(E.hasOwnProperty(Z))continue;let F=!1;Ff($)&&Ff(ht)?F=!Cx($,ht):F=$!==ht,F?$!=null?Gt(Z):T.add(Z):$!==void 0&&T.has(Z)?Gt(Z):G.protectedKeys[Z]=!0}G.prevProp=k,G.prevResolvedValues=ut,G.isActive&&(E={...E,...ut}),r&&n.blockInitialAnimation&&(L=!1);const Nt=W&&P;L&&(!Nt||tt)&&b.push(...dt.map(Z=>{const $={type:R};if(typeof Z=="string"&&r&&!Nt&&n.manuallyAnimateOnMount&&n.parent){const{parent:ht}=n,F=ss(ht,Z);if(ht.enteringChildren&&F){const{delayChildren:A}=F.transition||{};$.delay=Qb(ht.enteringChildren,n,A)}}return{animation:Z,options:$}}))}if(T.size){const M={};if(typeof p.initial!="boolean"){const R=ss(n,Array.isArray(p.initial)?p.initial[0]:p.initial);R&&R.transition&&(M.transition=R.transition)}T.forEach(R=>{const G=n.getBaseTarget(R),k=n.getValue(R);k&&(k.liveStyle=!0),M[R]=G??null}),b.push({animation:M})}let C=!!b.length;return r&&(p.initial===!1||p.initial===p.animate)&&!n.manuallyAnimateOnMount&&(C=!1),r=!1,C?i(b):Promise.resolve()}function h(y,p){if(l[y].isActive===p)return Promise.resolve();n.variantChildren?.forEach(b=>b.animationState?.setActive(y,p)),l[y].isActive=p;const v=d(y);for(const b in l)l[b].protectedKeys={};return v}return{animateChanges:d,setActive:h,setAnimateFunction:f,getState:()=>l,reset:()=>{l=Jy()}}}function XM(n,i){return typeof i=="string"?i!==n:Array.isArray(i)?!Cx(i,n):!1}function $a(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Jy(){return{animate:$a(!0),whileInView:$a(),whileHover:$a(),whileTap:$a(),whileDrag:$a(),whileFocus:$a(),exit:$a()}}function Wy(n,i){n.min=i.min,n.max=i.max}function un(n,i){Wy(n.x,i.x),Wy(n.y,i.y)}function Iy(n,i){n.translate=i.translate,n.scale=i.scale,n.originPoint=i.originPoint,n.origin=i.origin}const Nx=1e-4,KM=1-Nx,PM=1+Nx,Mx=.01,ZM=0-Mx,QM=0+Mx;function Ae(n){return n.max-n.min}function FM(n,i,l){return Math.abs(n-i)<=l}function $y(n,i,l,r=.5){n.origin=r,n.originPoint=Xt(i.min,i.max,n.origin),n.scale=Ae(l)/Ae(i),n.translate=Xt(l.min,l.max,n.origin)-n.originPoint,(n.scale>=KM&&n.scale<=PM||isNaN(n.scale))&&(n.scale=1),(n.translate>=ZM&&n.translate<=QM||isNaN(n.translate))&&(n.translate=0)}function hl(n,i,l,r){$y(n.x,i.x,l.x,r?r.originX:void 0),$y(n.y,i.y,l.y,r?r.originY:void 0)}function tv(n,i,l){n.min=l.min+i.min,n.max=n.min+Ae(i)}function JM(n,i,l){tv(n.x,i.x,l.x),tv(n.y,i.y,l.y)}function ev(n,i,l){n.min=i.min-l.min,n.max=n.min+Ae(i)}function To(n,i,l){ev(n.x,i.x,l.x),ev(n.y,i.y,l.y)}function nv(n,i,l,r,c){return n-=i,n=So(n,1/l,r),c!==void 0&&(n=So(n,1/c,r)),n}function WM(n,i=0,l=1,r=.5,c,f=n,d=n){if(Cn.test(i)&&(i=parseFloat(i),i=Xt(d.min,d.max,i/100)-d.min),typeof i!="number")return;let h=Xt(f.min,f.max,r);n===f&&(h-=i),n.min=nv(n.min,i,l,h,c),n.max=nv(n.max,i,l,h,c)}function av(n,i,[l,r,c],f,d){WM(n,i[l],i[r],i[c],i.scale,f,d)}const IM=["x","scaleX","originX"],$M=["y","scaleY","originY"];function iv(n,i,l,r){av(n.x,i,IM,l?l.x:void 0,r?r.x:void 0),av(n.y,i,$M,l?l.y:void 0,r?r.y:void 0)}function sv(n){return n.translate===0&&n.scale===1}function jx(n){return sv(n.x)&&sv(n.y)}function lv(n,i){return n.min===i.min&&n.max===i.max}function t3(n,i){return lv(n.x,i.x)&&lv(n.y,i.y)}function rv(n,i){return Math.round(n.min)===Math.round(i.min)&&Math.round(n.max)===Math.round(i.max)}function Dx(n,i){return rv(n.x,i.x)&&rv(n.y,i.y)}function ov(n){return Ae(n.x)/Ae(n.y)}function uv(n,i){return n.translate===i.translate&&n.scale===i.scale&&n.originPoint===i.originPoint}function En(n){return[n("x"),n("y")]}function e3(n,i,l){let r="";const c=n.x.translate/i.x,f=n.y.translate/i.y,d=l?.z||0;if((c||f||d)&&(r=`translate3d(${c}px, ${f}px, ${d}px) `),(i.x!==1||i.y!==1)&&(r+=`scale(${1/i.x}, ${1/i.y}) `),l){const{transformPerspective:p,rotate:v,rotateX:b,rotateY:T,skewX:E,skewY:j}=l;p&&(r=`perspective(${p}px) ${r}`),v&&(r+=`rotate(${v}deg) `),b&&(r+=`rotateX(${b}deg) `),T&&(r+=`rotateY(${T}deg) `),E&&(r+=`skewX(${E}deg) `),j&&(r+=`skewY(${j}deg) `)}const h=n.x.scale*i.x,y=n.y.scale*i.y;return(h!==1||y!==1)&&(r+=`scale(${h}, ${y})`),r||"none"}const Rx=["TopLeft","TopRight","BottomLeft","BottomRight"],n3=Rx.length,cv=n=>typeof n=="string"?parseFloat(n):n,fv=n=>typeof n=="number"||it.test(n);function a3(n,i,l,r,c,f){c?(n.opacity=Xt(0,l.opacity??1,i3(r)),n.opacityExit=Xt(i.opacity??1,0,s3(r))):f&&(n.opacity=Xt(i.opacity??1,l.opacity??1,r));for(let d=0;d<n3;d++){const h=`border${Rx[d]}Radius`;let y=dv(i,h),p=dv(l,h);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||fv(y)===fv(p)?(n[h]=Math.max(Xt(cv(y),cv(p),r),0),(Cn.test(p)||Cn.test(y))&&(n[h]+="%")):n[h]=p}(i.rotate||l.rotate)&&(n.rotate=Xt(i.rotate||0,l.rotate||0,r))}function dv(n,i){return n[i]!==void 0?n[i]:n.borderRadius}const i3=Ox(0,.5,wb),s3=Ox(.5,.95,en);function Ox(n,i,l){return r=>r<n?0:r>i?1:l(pl(n,i,r))}function l3(n,i,l){const r=xe(n)?n:ls(n);return r.start(zd("",r,i,l)),r.animation}function bl(n,i,l,r={passive:!0}){return n.addEventListener(i,l,r),()=>n.removeEventListener(i,l)}const r3=(n,i)=>n.depth-i.depth;class o3{constructor(){this.children=[],this.isDirty=!1}add(i){vd(this.children,i),this.isDirty=!0}remove(i){go(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(r3),this.isDirty=!1,this.children.forEach(i)}}function u3(n,i){const l=Ee.now(),r=({timestamp:c})=>{const f=c-l;f>=i&&(Ma(r),n(f-i))};return Ut.setup(r,!0),()=>Ma(r)}function co(n){return xe(n)?n.get():n}class c3{constructor(){this.members=[]}add(i){vd(this.members,i);for(let l=this.members.length-1;l>=0;l--){const r=this.members[l];if(r===i||r===this.lead||r===this.prevLead)continue;const c=r.instance;c&&c.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&go(this.members,r)}i.scheduleRender()}remove(i){if(go(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(i){const l=this.members.findIndex(c=>i===c);if(l===0)return!1;let r;for(let c=l;c>=0;c--){const f=this.members[c],d=f.instance;if(f.isPresent!==!1&&(!d||d.isConnected!==!1)){r=f;break}}return r?(this.promote(r),!0):!1}promote(i,l){const r=this.lead;if(i!==r&&(this.prevLead=r,this.lead=i,i.show(),r)){r.instance&&r.scheduleRender(),i.scheduleRender();const c=r.options.layoutDependency,f=i.options.layoutDependency;if(!(c!==void 0&&f!==void 0&&c===f)){const y=r.instance;y&&y.isConnected===!1&&!r.snapshot||(i.resumeFrom=r,l&&(i.resumeFrom.preserveOpacity=!0),r.snapshot&&(i.snapshot=r.snapshot,i.snapshot.latestValues=r.animationValues||r.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0))}const{crossfade:h}=i.options;h===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:l,resumingFrom:r}=i;l.onExitComplete&&l.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const fo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},wf=["","X","Y","Z"],f3=1e3;let d3=0;function Ef(n,i,l,r){const{latestValues:c}=i;c[n]&&(l[n]=c[n],i.setStaticValue(n,0),r&&(r[n]=0))}function zx(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:i}=n.options;if(!i)return;const l=$b(i);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:c,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(l,"transform",Ut,!(c||f))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&zx(r)}function _x({attachResizeListener:n,defaultParent:i,measureScroll:l,checkIsScrollRoot:r,resetTransform:c}){return class{constructor(d={},h=i?.()){this.id=d3++,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(p3),this.nodes.forEach(b3),this.nodes.forEach(x3),this.nodes.forEach(g3)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new o3)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new xd),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const y=this.eventHandlers.get(d);y&&y.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Bd(d)&&!mM(d),this.instance=d;const{layoutId:h,layout:y,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&&(y||h)&&(this.isLayoutDirty=!0),n){let v,b=0;const T=()=>this.root.updateBlockedByResize=!1;Ut.read(()=>{b=window.innerWidth}),n(d,()=>{const E=window.innerWidth;E!==b&&(b=E,this.root.updateBlockedByResize=!0,v&&v(),v=u3(T,250),fo.hasAnimatedSinceResize&&(fo.hasAnimatedSinceResize=!1,this.nodes.forEach(pv)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||y)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:b,hasRelativeLayoutChanged:T,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||p.getDefaultTransition()||A3,{onLayoutAnimationStart:C,onLayoutAnimationComplete:M}=p.getProps(),R=!this.targetLayout||!Dx(this.targetLayout,E),G=!b&&T;if(this.options.layoutRoot||this.resumeFrom||G||b&&(R||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const k={...Od(j,"layout"),onPlay:C,onComplete:M};(p.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k),this.setAnimationOrigin(v,G)}else b||pv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}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(),Ma(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(S3),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&&zx(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const b=this.path[v];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:h,layout:y}=this.options;if(h===void 0&&!y)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(hv);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(mv);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(v3),this.nodes.forEach(h3),this.nodes.forEach(m3)):this.nodes.forEach(mv),this.clearAllSnapshots();const h=Ee.now();me.delta=Mn(0,1e3/60,h-me.timestamp),me.timestamp=h,me.isProcessing=!0,pf.update.process(me),pf.preRender.process(me),pf.render.process(me),me.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ld.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(y3),this.sharedNodes.forEach(T3)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ut.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ut.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ae(this.snapshot.measuredBox.x)&&!Ae(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 y=0;y<this.path.length;y++)this.path[y].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ae(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(h=!1),h&&this.instance){const y=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:y,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!c)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!jx(this.projectionDelta),y=this.getTransformTemplate(),p=y?y(this.latestValues,""):void 0,v=p!==this.prevTransformTemplateValue;d&&this.instance&&(h||ti(this.latestValues)||v)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let y=this.removeElementScroll(h);return d&&(y=this.removeTransform(y)),C3(y),{animationId:this.root.animationId,measuredBox:h,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return ae();const h=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(N3))){const{scroll:p}=this.root;p&&(ns(h.x,p.offset.x),ns(h.y,p.offset.y))}return h}removeElementScroll(d){const h=ae();if(un(h,d),this.scroll?.wasRoot)return h;for(let y=0;y<this.path.length;y++){const p=this.path[y],{scroll:v,options:b}=p;p!==this.root&&v&&b.layoutScroll&&(v.wasRoot&&un(h,d),ns(h.x,v.offset.x),ns(h.y,v.offset.y))}return h}applyTransform(d,h=!1){const y=ae();un(y,d);for(let p=0;p<this.path.length;p++){const v=this.path[p];!h&&v.options.layoutScroll&&v.scroll&&v!==v.root&&as(y,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),ti(v.latestValues)&&as(y,v.latestValues)}return ti(this.latestValues)&&as(y,this.latestValues),y}removeTransform(d){const h=ae();un(h,d);for(let y=0;y<this.path.length;y++){const p=this.path[y];if(!p.instance||!ti(p.latestValues))continue;nd(p.latestValues)&&p.updateSnapshot();const v=ae(),b=p.measurePageBox();un(v,b),iv(h,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,v)}return ti(this.latestValues)&&iv(h,this.latestValues),h}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!==me.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==h;if(!(d||y&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:b}=this.options;if(!this.layout||!(v||b))return;this.resolvedRelativeTargetAt=me.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=ae(),this.targetWithTransforms=ae()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),JM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):un(this.target,this.layout.layoutBox),yx(this.target,this.targetDelta)):un(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||nd(this.parent.latestValues)||gx(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,h,y){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ae(),this.relativeTargetOrigin=ae(),To(this.relativeTargetOrigin,h,y),un(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),h=!!this.resumingFrom||this!==d;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===me.timestamp&&(y=!1),y)return;const{layout:p,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||v))return;un(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,T=this.treeScale.y;AM(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=ae());const{target:E}=d;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Iy(this.prevProjectionDelta.x,this.projectionDelta.x),Iy(this.prevProjectionDelta.y,this.projectionDelta.y)),hl(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==T||!uv(this.projectionDelta.x,this.prevProjectionDelta.x)||!uv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=es(),this.projectionDelta=es(),this.projectionDeltaWithTransform=es()}setAnimationOrigin(d,h=!1){const y=this.snapshot,p=y?y.latestValues:{},v={...this.latestValues},b=es();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const T=ae(),E=y?y.source:void 0,j=this.layout?this.layout.source:void 0,C=E!==j,M=this.getStack(),R=!M||M.members.length<=1,G=!!(C&&!R&&this.options.crossfade===!0&&!this.path.some(E3));this.animationProgress=0;let k;this.mixTargetDelta=B=>{const K=B/1e3;gv(b.x,d.x,K),gv(b.y,d.y,K),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(To(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),w3(this.relativeTarget,this.relativeTargetOrigin,T,K),k&&t3(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=ae()),un(k,this.relativeTarget)),C&&(this.animationValues=v,a3(v,p,this.latestValues,K,G,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=K},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ma(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ut.update(()=>{fo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ls(0)),this.motionValue.jump(0,!1),this.currentAnimation=l3(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),d.onUpdate&&d.onUpdate(h)},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(f3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:y,layout:p,latestValues:v}=d;if(!(!h||!y||!p)){if(this!==d&&this.layout&&p&&Vx(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||ae();const b=Ae(this.layout.layoutBox.x);y.x.min=d.target.x.min,y.x.max=y.x.min+b;const T=Ae(this.layout.layoutBox.y);y.y.min=d.target.y.min,y.y.max=y.y.min+T}un(h,y),as(h,v),hl(this.projectionDeltaWithTransform,this.layoutCorrected,h,v)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new c3),this.sharedNodes.get(d).add(h);const p=h.options.initialPromotionConfig;h.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(h):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:h,preserveFollowOpacity:y}={}){const p=this.getStack();p&&p.promote(this,y),d&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let h=!1;const{latestValues:y}=d;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(h=!0),!h)return;const p={};y.z&&Ef("z",d,p,this.animationValues);for(let v=0;v<wf.length;v++)Ef(`rotate${wf[v]}`,d,p,this.animationValues),Ef(`skew${wf[v]}`,d,p,this.animationValues);d.render();for(const v in p)d.setStaticValue(v,p[v]),this.animationValues&&(this.animationValues[v]=p[v]);d.scheduleRender()}applyProjectionStyles(d,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=co(h?.pointerEvents)||"",d.transform=y?y(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=co(h?.pointerEvents)||""),this.hasProjected&&!ti(this.latestValues)&&(d.transform=y?y({},""):"none",this.hasProjected=!1);return}d.visibility="";const v=p.animationValues||p.latestValues;this.applyTransformsToTarget();let b=e3(this.projectionDeltaWithTransform,this.treeScale,v);y&&(b=y(v,b)),d.transform=b;const{x:T,y:E}=this.projectionDelta;d.transformOrigin=`${T.origin*100}% ${E.origin*100}% 0`,p.animationValues?d.opacity=p===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:d.opacity=p===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const j in id){if(v[j]===void 0)continue;const{correct:C,applyTo:M,isCSSVariable:R}=id[j],G=b==="none"?v[j]:C(v[j],p);if(M){const k=M.length;for(let B=0;B<k;B++)d[M[B]]=G}else R?this.options.visualElement.renderState.vars[j]=G:d[j]=G}this.options.layoutId&&(d.pointerEvents=p===this?co(h?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(hv),this.root.sharedNodes.clear()}}}function h3(n){n.updateLayout()}function m3(n){const i=n.resumeFrom?.snapshot||n.snapshot;if(n.isLead()&&n.layout&&i&&n.hasListeners("didUpdate")){const{layoutBox:l,measuredBox:r}=n.layout,{animationType:c}=n.options,f=i.source!==n.layout.source;c==="size"?En(v=>{const b=f?i.measuredBox[v]:i.layoutBox[v],T=Ae(b);b.min=l[v].min,b.max=b.min+T}):Vx(c,i.layoutBox,l)&&En(v=>{const b=f?i.measuredBox[v]:i.layoutBox[v],T=Ae(l[v]);b.max=b.min+T,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[v].max=n.relativeTarget[v].min+T)});const d=es();hl(d,l,i.layoutBox);const h=es();f?hl(h,n.applyTransform(r,!0),i.measuredBox):hl(h,l,i.layoutBox);const y=!jx(d);let p=!1;if(!n.resumeFrom){const v=n.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:T}=v;if(b&&T){const E=ae();To(E,i.layoutBox,b.layoutBox);const j=ae();To(j,l,T.layoutBox),Dx(E,j)||(p=!0),v.options.layoutRoot&&(n.relativeTarget=j,n.relativeTargetOrigin=E,n.relativeParent=v)}}}n.notifyListeners("didUpdate",{layout:l,snapshot:i,delta:h,layoutDelta:d,hasLayoutChanged:y,hasRelativeLayoutChanged:p})}else if(n.isLead()){const{onExitComplete:l}=n.options;l&&l()}n.options.transition=void 0}function p3(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function g3(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function y3(n){n.clearSnapshot()}function hv(n){n.clearMeasurements()}function mv(n){n.isLayoutDirty=!1}function v3(n){const{visualElement:i}=n.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),n.resetTransform()}function pv(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function b3(n){n.resolveTargetDelta()}function x3(n){n.calcProjection()}function S3(n){n.resetSkewAndRotation()}function T3(n){n.removeLeadSnapshot()}function gv(n,i,l){n.translate=Xt(i.translate,0,l),n.scale=Xt(i.scale,1,l),n.origin=i.origin,n.originPoint=i.originPoint}function yv(n,i,l,r){n.min=Xt(i.min,l.min,r),n.max=Xt(i.max,l.max,r)}function w3(n,i,l,r){yv(n.x,i.x,l.x,r),yv(n.y,i.y,l.y,r)}function E3(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const A3={duration:.45,ease:[.4,0,.1,1]},vv=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),bv=vv("applewebkit/")&&!vv("chrome/")?Math.round:en;function xv(n){n.min=bv(n.min),n.max=bv(n.max)}function C3(n){xv(n.x),xv(n.y)}function Vx(n,i,l){return n==="position"||n==="preserve-aspect"&&!FM(ov(i),ov(l),.2)}function N3(n){return n!==n.root&&n.scroll?.wasRoot}const M3=_x({attachResizeListener:(n,i)=>bl(n,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Af={current:void 0},kx=_x({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!Af.current){const n=new M3({});n.mount(window),n.setOptions({layoutScroll:!0}),Af.current=n}return Af.current},resetTransform:(n,i)=>{n.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),Xd=S.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function Sv(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function j3(...n){return i=>{let l=!1;const r=n.map(c=>{const f=Sv(c,i);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let c=0;c<r.length;c++){const f=r[c];typeof f=="function"?f():Sv(n[c],null)}}}}function D3(...n){return S.useCallback(j3(...n),n)}class R3 extends S.Component{getSnapshotBeforeUpdate(i){const l=this.props.childRef.current;if(l&&i.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=l.offsetParent,c=td(r)&&r.offsetWidth||0,f=td(r)&&r.offsetHeight||0,d=this.props.sizeRef.current;d.height=l.offsetHeight||0,d.width=l.offsetWidth||0,d.top=l.offsetTop,d.left=l.offsetLeft,d.right=c-d.width-d.left,d.bottom=f-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function O3({children:n,isPresent:i,anchorX:l,anchorY:r,root:c,pop:f}){const d=S.useId(),h=S.useRef(null),y=S.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=S.useContext(Xd),v=n.props?.ref??n?.ref,b=D3(h,v);return S.useInsertionEffect(()=>{const{width:T,height:E,top:j,left:C,right:M,bottom:R}=y.current;if(i||f===!1||!h.current||!T||!E)return;const G=l==="left"?`left: ${C}`:`right: ${M}`,k=r==="bottom"?`bottom: ${R}`:`top: ${j}`;h.current.dataset.motionPopId=d;const B=document.createElement("style");p&&(B.nonce=p);const K=c??document.head;return K.appendChild(B),B.sheet&&B.sheet.insertRule(`
|
|
57
|
-
[data-motion-pop-id="${d}"] {
|
|
58
|
-
position: absolute !important;
|
|
59
|
-
width: ${T}px !important;
|
|
60
|
-
height: ${E}px !important;
|
|
61
|
-
${G}px !important;
|
|
62
|
-
${k}px !important;
|
|
63
|
-
}
|
|
64
|
-
`),()=>{K.contains(B)&&K.removeChild(B)}},[i]),g.jsx(R3,{isPresent:i,childRef:h,sizeRef:y,pop:f,children:f===!1?n:S.cloneElement(n,{ref:b})})}const z3=({children:n,initial:i,isPresent:l,onExitComplete:r,custom:c,presenceAffectsLayout:f,mode:d,anchorX:h,anchorY:y,root:p})=>{const v=yd(_3),b=S.useId();let T=!0,E=S.useMemo(()=>(T=!1,{id:b,initial:i,isPresent:l,custom:c,onExitComplete:j=>{v.set(j,!0);for(const C of v.values())if(!C)return;r&&r()},register:j=>(v.set(j,!1),()=>v.delete(j))}),[l,v,r]);return f&&T&&(E={...E}),S.useMemo(()=>{v.forEach((j,C)=>v.set(C,!1))},[l]),S.useEffect(()=>{!l&&!v.size&&r&&r()},[l]),n=g.jsx(O3,{pop:d==="popLayout",isPresent:l,anchorX:h,anchorY:y,root:p,children:n}),g.jsx(Do.Provider,{value:E,children:n})};function _3(){return new Map}function Lx(n=!0){const i=S.useContext(Do);if(i===null)return[!0,null];const{isPresent:l,onExitComplete:r,register:c}=i,f=S.useId();S.useEffect(()=>{if(n)return c(f)},[n]);const d=S.useCallback(()=>n&&r&&r(f),[f,r,n]);return!l&&r?[!1,d]:[!0]}const eo=n=>n.key||"";function Tv(n){const i=[];return S.Children.forEach(n,l=>{S.isValidElement(l)&&i.push(l)}),i}const Ux=({children:n,custom:i,initial:l=!0,onExitComplete:r,presenceAffectsLayout:c=!0,mode:f="sync",propagate:d=!1,anchorX:h="left",anchorY:y="top",root:p})=>{const[v,b]=Lx(d),T=S.useMemo(()=>Tv(n),[n]),E=d&&!v?[]:T.map(eo),j=S.useRef(!0),C=S.useRef(T),M=yd(()=>new Map),R=S.useRef(new Set),[G,k]=S.useState(T),[B,K]=S.useState(T);fb(()=>{j.current=!1,C.current=T;for(let L=0;L<B.length;L++){const tt=eo(B[L]);E.includes(tt)?(M.delete(tt),R.current.delete(tt)):M.get(tt)!==!0&&M.set(tt,!1)}},[B,E.length,E.join("-")]);const W=[];if(T!==G){let L=[...T];for(let tt=0;tt<B.length;tt++){const dt=B[tt],ut=eo(dt);E.includes(ut)||(L.splice(tt,0,dt),W.push(dt))}return f==="wait"&&W.length&&(L=W),K(Tv(L)),k(T),null}const{forceRender:P}=S.useContext(gd);return g.jsx(g.Fragment,{children:B.map(L=>{const tt=eo(L),dt=d&&!v?!1:T===B||E.includes(tt),ut=()=>{if(R.current.has(tt))return;if(R.current.add(tt),M.has(tt))M.set(tt,!0);else return;let At=!0;M.forEach(Tt=>{Tt||(At=!1)}),At&&(P?.(),K(C.current),d&&b?.(),r&&r())};return g.jsx(z3,{isPresent:dt,initial:!j.current||l?void 0:!1,custom:i,presenceAffectsLayout:c,mode:f,root:p,onExitComplete:dt?void 0:ut,anchorX:h,anchorY:y,children:L},tt)})})},Bx=S.createContext({strict:!1}),wv={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 Ev=!1;function V3(){if(Ev)return;const n={};for(const i in wv)n[i]={isEnabled:l=>wv[i].some(r=>!!l[r])};hx(n),Ev=!0}function Hx(){return V3(),SM()}function k3(n){const i=Hx();for(const l in n)i[l]={...i[l],...n[l]};hx(i)}const L3=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 wo(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||L3.has(n)}let Gx=n=>!wo(n);function U3(n){typeof n=="function"&&(Gx=i=>i.startsWith("on")?!wo(i):n(i))}try{U3(require("@emotion/is-prop-valid").default)}catch{}function B3(n,i,l){const r={};for(const c in n)c==="values"&&typeof n.values=="object"||(Gx(c)||l===!0&&wo(c)||!i&&!wo(c)||n.draggable&&c.startsWith("onDrag"))&&(r[c]=n[c]);return r}const zo=S.createContext({});function H3(n,i){if(Oo(n)){const{initial:l,animate:r}=n;return{initial:l===!1||vl(l)?l:void 0,animate:vl(r)?r:void 0}}return n.inherit!==!1?i:{}}function G3(n){const{initial:i,animate:l}=H3(n,S.useContext(zo));return S.useMemo(()=>({initial:i,animate:l}),[Av(i),Av(l)])}function Av(n){return Array.isArray(n)?n.join(" "):n}const Kd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function qx(n,i,l){for(const r in i)!xe(i[r])&&!xx(r,l)&&(n[r]=i[r])}function q3({transformTemplate:n},i){return S.useMemo(()=>{const l=Kd();return qd(l,i,n),Object.assign({},l.vars,l.style)},[i])}function Y3(n,i){const l=n.style||{},r={};return qx(r,l,n),Object.assign(r,q3(n,i)),r}function X3(n,i){const l={},r=Y3(n,i);return n.drag&&n.dragListener!==!1&&(l.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(l.tabIndex=0),l.style=r,l}const Yx=()=>({...Kd(),attrs:{}});function K3(n,i,l,r){const c=S.useMemo(()=>{const f=Yx();return Sx(f,i,wx(r),n.transformTemplate,n.style),{...f.attrs,style:{...f.style}}},[i]);if(n.style){const f={};qx(f,n.style,n),c.style={...f,...c.style}}return c}const P3=["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 Pd(n){return typeof n!="string"||n.includes("-")?!1:!!(P3.indexOf(n)>-1||/[A-Z]/u.test(n))}function Z3(n,i,l,{latestValues:r},c,f=!1,d){const y=(d??Pd(n)?K3:X3)(i,r,c,n),p=B3(i,typeof n=="string",f),v=n!==S.Fragment?{...p,...y,ref:l}:{},{children:b}=i,T=S.useMemo(()=>xe(b)?b.get():b,[b]);return S.createElement(n,{...v,children:T})}function Q3({scrapeMotionValuesFromProps:n,createRenderState:i},l,r,c){return{latestValues:F3(l,r,c,n),renderState:i()}}function F3(n,i,l,r){const c={},f=r(n,{});for(const T in f)c[T]=co(f[T]);let{initial:d,animate:h}=n;const y=Oo(n),p=fx(n);i&&p&&!y&&n.inherit!==!1&&(d===void 0&&(d=i.initial),h===void 0&&(h=i.animate));let v=l?l.initial===!1:!1;v=v||d===!1;const b=v?h:d;if(b&&typeof b!="boolean"&&!Ro(b)){const T=Array.isArray(b)?b:[b];for(let E=0;E<T.length;E++){const j=_d(n,T[E]);if(j){const{transitionEnd:C,transition:M,...R}=j;for(const G in R){let k=R[G];if(Array.isArray(k)){const B=v?k.length-1:0;k=k[B]}k!==null&&(c[G]=k)}for(const G in C)c[G]=C[G]}}}return c}const Xx=n=>(i,l)=>{const r=S.useContext(zo),c=S.useContext(Do),f=()=>Q3(n,i,r,c);return l?f():yd(f)},J3=Xx({scrapeMotionValuesFromProps:Yd,createRenderState:Kd}),W3=Xx({scrapeMotionValuesFromProps:Ex,createRenderState:Yx}),I3=Symbol.for("motionComponentSymbol");function $3(n,i,l){const r=S.useRef(l);S.useInsertionEffect(()=>{r.current=l});const c=S.useRef(null);return S.useCallback(f=>{f&&n.onMount?.(f),i&&(f?i.mount(f):i.unmount());const d=r.current;if(typeof d=="function")if(f){const h=d(f);typeof h=="function"&&(c.current=h)}else c.current?(c.current(),c.current=null):d(f);else d&&(d.current=f)},[i])}const Kx=S.createContext({});function Ii(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function t4(n,i,l,r,c,f){const{visualElement:d}=S.useContext(zo),h=S.useContext(Bx),y=S.useContext(Do),p=S.useContext(Xd),v=p.reducedMotion,b=p.skipAnimations,T=S.useRef(null),E=S.useRef(!1);r=r||h.renderer,!T.current&&r&&(T.current=r(n,{visualState:i,parent:d,props:l,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:v,skipAnimations:b,isSVG:f}),E.current&&T.current&&(T.current.manuallyAnimateOnMount=!0));const j=T.current,C=S.useContext(Kx);j&&!j.projection&&c&&(j.type==="html"||j.type==="svg")&&e4(T.current,l,c,C);const M=S.useRef(!1);S.useInsertionEffect(()=>{j&&M.current&&j.update(l,y)});const R=l[Ib],G=S.useRef(!!R&&!window.MotionHandoffIsComplete?.(R)&&window.MotionHasOptimisedAnimation?.(R));return fb(()=>{E.current=!0,j&&(M.current=!0,window.MotionIsMounted=!0,j.updateFeatures(),j.scheduleRenderMicrotask(),G.current&&j.animationState&&j.animationState.animateChanges())}),S.useEffect(()=>{j&&(!G.current&&j.animationState&&j.animationState.animateChanges(),G.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(R)}),G.current=!1),j.enteringChildren=void 0)}),j}function e4(n,i,l,r){const{layoutId:c,layout:f,drag:d,dragConstraints:h,layoutScroll:y,layoutRoot:p,layoutCrossfade:v}=i;n.projection=new l(n.latestValues,i["data-framer-portal-id"]?void 0:Px(n.parent)),n.projection.setOptions({layoutId:c,layout:f,alwaysMeasureLayout:!!d||h&&Ii(h),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:r,crossfade:v,layoutScroll:y,layoutRoot:p})}function Px(n){if(n)return n.options.allowProjection!==!1?n.projection:Px(n.parent)}function Cf(n,{forwardMotionProps:i=!1,type:l}={},r,c){r&&k3(r);const f=l?l==="svg":Pd(n),d=f?W3:J3;function h(p,v){let b;const T={...S.useContext(Xd),...p,layoutId:n4(p)},{isStatic:E}=T,j=G3(p),C=d(p,E);if(!E&&cb){a4();const M=i4(T);b=M.MeasureLayout,j.visualElement=t4(n,C,T,c,M.ProjectionNode,f)}return g.jsxs(zo.Provider,{value:j,children:[b&&j.visualElement?g.jsx(b,{visualElement:j.visualElement,...T}):null,Z3(n,p,$3(C,j.visualElement,v),C,E,i,f)]})}h.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const y=S.forwardRef(h);return y[I3]=n,y}function n4({layoutId:n}){const i=S.useContext(gd).id;return i&&n!==void 0?i+"-"+n:n}function a4(n,i){S.useContext(Bx).strict}function i4(n){const i=Hx(),{drag:l,layout:r}=i;if(!l&&!r)return{};const c={...l,...r};return{MeasureLayout:l?.isEnabled(n)||r?.isEnabled(n)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function s4(n,i){if(typeof Proxy>"u")return Cf;const l=new Map,r=(f,d)=>Cf(f,d,n,i),c=(f,d)=>r(f,d);return new Proxy(c,{get:(f,d)=>d==="create"?r:(l.has(d)||l.set(d,Cf(d,void 0,n,i)),l.get(d))})}const l4=(n,i)=>i.isSVG??Pd(n)?new UM(i):new OM(i,{allowProjection:n!==S.Fragment});class r4 extends Da{constructor(i){super(i),i.animationState||(i.animationState=YM(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Ro(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:l}=this.node.prevProps||{};i!==l&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let o4=0;class u4 extends Da{constructor(){super(...arguments),this.id=o4++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:l}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===r)return;const c=this.node.animationState.setActive("exit",!i);l&&!i&&c.then(()=>{l(this.id)})}mount(){const{register:i,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const c4={animation:{Feature:r4},exit:{Feature:u4}};function Ml(n){return{point:{x:n.pageX,y:n.pageY}}}const f4=n=>i=>Ud(i)&&n(i,Ml(i));function ml(n,i,l,r){return bl(n,i,f4(l),r)}const Zx=({current:n})=>n?n.ownerDocument.defaultView:null,Cv=(n,i)=>Math.abs(n-i);function d4(n,i){const l=Cv(n.x,i.x),r=Cv(n.y,i.y);return Math.sqrt(l**2+r**2)}const Nv=new Set(["auto","scroll"]);class Qx{constructor(i,l,{transformPagePoint:r,contextWindow:c=window,dragSnapToOrigin:f=!1,distanceThreshold:d=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=E=>{this.handleScroll(E.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=Mf(this.lastMoveEventInfo,this.history),j=this.startEvent!==null,C=d4(E.offset,{x:0,y:0})>=this.distanceThreshold;if(!j&&!C)return;const{point:M}=E,{timestamp:R}=me;this.history.push({...M,timestamp:R});const{onStart:G,onMove:k}=this.handlers;j||(G&&G(this.lastMoveEvent,E),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,E)},this.handlePointerMove=(E,j)=>{this.lastMoveEvent=E,this.lastMoveEventInfo=Nf(j,this.transformPagePoint),Ut.update(this.updatePoint,!0)},this.handlePointerUp=(E,j)=>{this.end();const{onEnd:C,onSessionEnd:M,resumeAnimation:R}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&R&&R(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const G=Mf(E.type==="pointercancel"?this.lastMoveEventInfo:Nf(j,this.transformPagePoint),this.history);this.startEvent&&C&&C(E,G),M&&M(E,G)},!Ud(i))return;this.dragSnapToOrigin=f,this.handlers=l,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=c||window;const y=Ml(i),p=Nf(y,this.transformPagePoint),{point:v}=p,{timestamp:b}=me;this.history=[{...v,timestamp:b}];const{onSessionStart:T}=l;T&&T(i,Mf(p,this.history)),this.removeListeners=Al(ml(this.contextWindow,"pointermove",this.handlePointerMove),ml(this.contextWindow,"pointerup",this.handlePointerUp),ml(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(i){let l=i.parentElement;for(;l;){const r=getComputedStyle(l);(Nv.has(r.overflowX)||Nv.has(r.overflowY))&&this.scrollPositions.set(l,{x:l.scrollLeft,y:l.scrollTop}),l=l.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(i){const l=this.scrollPositions.get(i);if(!l)return;const r=i===window,c=r?{x:window.scrollX,y:window.scrollY}:{x:i.scrollLeft,y:i.scrollTop},f={x:c.x-l.x,y:c.y-l.y};f.x===0&&f.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=f.x,this.lastMoveEventInfo.point.y+=f.y):this.history.length>0&&(this.history[0].x-=f.x,this.history[0].y-=f.y),this.scrollPositions.set(i,c),Ut.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ma(this.updatePoint)}}function Nf(n,i){return i?{point:i(n.point)}:n}function Mv(n,i){return{x:n.x-i.x,y:n.y-i.y}}function Mf({point:n},i){return{point:n,delta:Mv(n,Fx(i)),offset:Mv(n,h4(i)),velocity:m4(i,.1)}}function h4(n){return n[0]}function Fx(n){return n[n.length-1]}function m4(n,i){if(n.length<2)return{x:0,y:0};let l=n.length-1,r=null;const c=Fx(n);for(;l>=0&&(r=n[l],!(c.timestamp-r.timestamp>fn(i)));)l--;if(!r)return{x:0,y:0};r===n[0]&&n.length>2&&c.timestamp-r.timestamp>fn(i)*2&&(r=n[1]);const f=tn(c.timestamp-r.timestamp);if(f===0)return{x:0,y:0};const d={x:(c.x-r.x)/f,y:(c.y-r.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function p4(n,{min:i,max:l},r){return i!==void 0&&n<i?n=r?Xt(i,n,r.min):Math.max(n,i):l!==void 0&&n>l&&(n=r?Xt(l,n,r.max):Math.min(n,l)),n}function jv(n,i,l){return{min:i!==void 0?n.min+i:void 0,max:l!==void 0?n.max+l-(n.max-n.min):void 0}}function g4(n,{top:i,left:l,bottom:r,right:c}){return{x:jv(n.x,l,c),y:jv(n.y,i,r)}}function Dv(n,i){let l=i.min-n.min,r=i.max-n.max;return i.max-i.min<n.max-n.min&&([l,r]=[r,l]),{min:l,max:r}}function y4(n,i){return{x:Dv(n.x,i.x),y:Dv(n.y,i.y)}}function v4(n,i){let l=.5;const r=Ae(n),c=Ae(i);return c>r?l=pl(i.min,i.max-r,n.min):r>c&&(l=pl(n.min,n.max-c,i.min)),Mn(0,1,l)}function b4(n,i){const l={};return i.min!==void 0&&(l.min=i.min-n.min),i.max!==void 0&&(l.max=i.max-n.min),l}const sd=.35;function x4(n=sd){return n===!1?n=0:n===!0&&(n=sd),{x:Rv(n,"left","right"),y:Rv(n,"top","bottom")}}function Rv(n,i,l){return{min:Ov(n,i),max:Ov(n,l)}}function Ov(n,i){return typeof n=="number"?n:n[i]||0}const S4=new WeakMap;class T4{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ae(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:l=!1,distanceThreshold:r}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const f=b=>{l&&this.snapToCursor(Ml(b).point),this.stopAnimation()},d=(b,T)=>{const{drag:E,dragPropagation:j,onDragStart:C}=this.getProps();if(E&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=WN(E),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=T,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),En(R=>{let G=this.getAxisMotionValue(R).get()||0;if(Cn.test(G)){const{projection:k}=this.visualElement;if(k&&k.layout){const B=k.layout.layoutBox[R];B&&(G=Ae(B)*(parseFloat(G)/100))}}this.originPoint[R]=G}),C&&Ut.update(()=>C(b,T),!1,!0),Jf(this.visualElement,"transform");const{animationState:M}=this.visualElement;M&&M.setActive("whileDrag",!0)},h=(b,T)=>{this.latestPointerEvent=b,this.latestPanInfo=T;const{dragPropagation:E,dragDirectionLock:j,onDirectionLock:C,onDrag:M}=this.getProps();if(!E&&!this.openDragLock)return;const{offset:R}=T;if(j&&this.currentDirection===null){this.currentDirection=E4(R),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",T.point,R),this.updateAxis("y",T.point,R),this.visualElement.render(),M&&Ut.update(()=>M(b,T),!1,!0)},y=(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:v}=this.getProps();this.panSession=new Qx(i,{onSessionStart:f,onStart:d,onMove:h,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:r,contextWindow:Zx(this.visualElement),element:this.visualElement.current})}stop(i,l){const r=i||this.latestPointerEvent,c=l||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!c||!r)return;const{velocity:d}=c;this.startAnimation(d);const{onDragEnd:h}=this.getProps();h&&Ut.postRender(()=>h(r,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:l}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(i,l,r){const{drag:c}=this.getProps();if(!r||!no(i,c,this.currentDirection))return;const f=this.getAxisMotionValue(i);let d=this.originPoint[i]+r[i];this.constraints&&this.constraints[i]&&(d=p4(d,this.constraints[i],this.elastic[i])),f.set(d)}resolveConstraints(){const{dragConstraints:i,dragElastic:l}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;i&&Ii(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&r?this.constraints=g4(r.layoutBox,i):this.constraints=!1,this.elastic=x4(l),c!==this.constraints&&!Ii(i)&&r&&this.constraints&&!this.hasMutatedConstraints&&En(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=b4(r.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:l}=this.getProps();if(!i||!Ii(i))return!1;const r=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const f=CM(r,c.root,this.visualElement.getTransformPagePoint());let d=y4(c.layout.layoutBox,f);if(l){const h=l(wM(d));this.hasMutatedConstraints=!!h,h&&(d=px(h))}return d}startAnimation(i){const{drag:l,dragMomentum:r,dragElastic:c,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),y=this.constraints||{},p=En(v=>{if(!no(v,l,this.currentDirection))return;let b=y&&y[v]||{};d&&(b={min:0,max:0});const T=c?200:1e6,E=c?40:1e7,j={type:"inertia",velocity:r?i[v]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...f,...b};return this.startAxisValueAnimation(v,j)});return Promise.all(p).then(h)}startAxisValueAnimation(i,l){const r=this.getAxisMotionValue(i);return Jf(this.visualElement,i),r.start(zd(i,r,0,l,this.visualElement,!1))}stopAnimation(){En(i=>this.getAxisMotionValue(i).stop())}getAxisMotionValue(i){const l=`_drag${i.toUpperCase()}`,r=this.visualElement.getProps(),c=r[l];return c||this.visualElement.getValue(i,(r.initial?r.initial[i]:void 0)||0)}snapToCursor(i){En(l=>{const{drag:r}=this.getProps();if(!no(l,r,this.currentDirection))return;const{projection:c}=this.visualElement,f=this.getAxisMotionValue(l);if(c&&c.layout){const{min:d,max:h}=c.layout.layoutBox[l],y=f.get()||0;f.set(i[l]-Xt(d,h,.5)+y)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:l}=this.getProps(),{projection:r}=this.visualElement;if(!Ii(l)||!r||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};En(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const y=h.get();c[d]=v4({min:y,max:y},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),En(d=>{if(!no(d,i,null))return;const h=this.getAxisMotionValue(d),{min:y,max:p}=this.constraints[d];h.set(Xt(y,p,c[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;S4.set(this.visualElement,this);const i=this.visualElement.current,l=ml(i,"pointerdown",p=>{const{drag:v,dragListener:b=!0}=this.getProps(),T=p.target,E=T!==i&&aM(T);v&&b&&!E&&this.start(p)});let r;const c=()=>{const{dragConstraints:p}=this.getProps();Ii(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),r||(r=w4(i,p.current,()=>this.scalePositionWithinConstraints())))},{projection:f}=this.visualElement,d=f.addEventListener("measure",c);f&&!f.layout&&(f.root&&f.root.updateScroll(),f.updateLayout()),Ut.read(c);const h=bl(window,"resize",()=>this.scalePositionWithinConstraints()),y=f.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:v})=>{this.isDragging&&v&&(En(b=>{const T=this.getAxisMotionValue(b);T&&(this.originPoint[b]+=p[b].translate,T.set(T.get()+p[b].translate))}),this.visualElement.render())}));return()=>{h(),l(),d(),y&&y(),r&&r()}}getProps(){const i=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:r=!1,dragPropagation:c=!1,dragConstraints:f=!1,dragElastic:d=sd,dragMomentum:h=!0}=i;return{...i,drag:l,dragDirectionLock:r,dragPropagation:c,dragConstraints:f,dragElastic:d,dragMomentum:h}}}function zv(n){let i=!0;return()=>{if(i){i=!1;return}n()}}function w4(n,i,l){const r=Hy(n,zv(l)),c=Hy(i,zv(l));return()=>{r(),c()}}function no(n,i,l){return(i===!0||i===n)&&(l===null||l===n)}function E4(n,i=10){let l=null;return Math.abs(n.y)>i?l="y":Math.abs(n.x)>i&&(l="x"),l}class A4 extends Da{constructor(i){super(i),this.removeGroupControls=en,this.removeListeners=en,this.controls=new T4(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||en}update(){const{dragControls:i}=this.node.getProps(),{dragControls:l}=this.node.prevProps||{};i!==l&&(this.removeGroupControls(),i&&(this.removeGroupControls=i.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const jf=n=>(i,l)=>{n&&Ut.update(()=>n(i,l),!1,!0)};class C4 extends Da{constructor(){super(...arguments),this.removePointerDownListener=en}onPointerDown(i){this.session=new Qx(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Zx(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:l,onPan:r,onPanEnd:c}=this.node.getProps();return{onSessionStart:jf(i),onStart:jf(l),onMove:jf(r),onEnd:(f,d)=>{delete this.session,c&&Ut.postRender(()=>c(f,d))}}}mount(){this.removePointerDownListener=ml(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Df=!1;class N4 extends S.Component{componentDidMount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:r,layoutId:c}=this.props,{projection:f}=i;f&&(l.group&&l.group.add(f),r&&r.register&&c&&r.register(f),Df&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),fo.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:l,visualElement:r,drag:c,isPresent:f}=this.props,{projection:d}=r;return d&&(d.isPresent=f,i.layoutDependency!==l&&d.setOptions({...d.options,layoutDependency:l}),Df=!0,c||i.layoutDependency!==l||l===void 0||i.isPresent!==f?d.willUpdate():this.safeToRemove(),i.isPresent!==f&&(f?d.promote():d.relegate()||Ut.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),Ld.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:r}=this.props,{projection:c}=i;Df=!0,c&&(c.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(c),r&&r.deregister&&r.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function Jx(n){const[i,l]=Lx(),r=S.useContext(gd);return g.jsx(N4,{...n,layoutGroup:r,switchLayoutGroup:S.useContext(Kx),isPresent:i,safeToRemove:l})}const M4={pan:{Feature:C4},drag:{Feature:A4,ProjectionNode:kx,MeasureLayout:Jx}};function _v(n,i,l){const{props:r}=n;n.animationState&&r.whileHover&&n.animationState.setActive("whileHover",l==="Start");const c="onHover"+l,f=r[c];f&&Ut.postRender(()=>f(i,Ml(i)))}class j4 extends Da{mount(){const{current:i}=this.node;i&&(this.unmount=$N(i,(l,r)=>(_v(this.node,r,"Start"),c=>_v(this.node,c,"End"))))}unmount(){}}class D4 extends Da{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=Al(bl(this.node.current,"focus",()=>this.onFocus()),bl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Vv(n,i,l){const{props:r}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&r.whileTap&&n.animationState.setActive("whileTap",l==="Start");const c="onTap"+(l==="End"?"":l),f=r[c];f&&Ut.postRender(()=>f(i,Ml(i)))}class R4 extends Da{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:l,propagate:r}=this.node.props;this.unmount=sM(i,(c,f)=>(Vv(this.node,f,"Start"),(d,{success:h})=>Vv(this.node,d,h?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:r?.tap===!1})}unmount(){}}const ld=new WeakMap,Rf=new WeakMap,O4=n=>{const i=ld.get(n.target);i&&i(n)},z4=n=>{n.forEach(O4)};function _4({root:n,...i}){const l=n||document;Rf.has(l)||Rf.set(l,{});const r=Rf.get(l),c=JSON.stringify(i);return r[c]||(r[c]=new IntersectionObserver(z4,{root:n,...i})),r[c]}function V4(n,i,l){const r=_4(i);return ld.set(n,l),r.observe(n),()=>{ld.delete(n),r.unobserve(n)}}const k4={some:0,all:1};class L4 extends Da{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:l,margin:r,amount:c="some",once:f}=i,d={root:l?l.current:void 0,rootMargin:r,threshold:typeof c=="number"?c:k4[c]},h=y=>{const{isIntersecting:p}=y;if(this.isInView===p||(this.isInView=p,f&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:v,onViewportLeave:b}=this.node.getProps(),T=p?v:b;T&&T(y)};return V4(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:l}=this.node;["amount","margin","root"].some(U4(i,l))&&this.startObserver()}unmount(){}}function U4({viewport:n={}},{viewport:i={}}={}){return l=>n[l]!==i[l]}const B4={inView:{Feature:L4},tap:{Feature:R4},focus:{Feature:D4},hover:{Feature:j4}},H4={layout:{ProjectionNode:kx,MeasureLayout:Jx}},G4={...c4,...B4,...M4,...H4},xl=s4(G4,l4);function q4(n){const i=Math.floor(n/60),l=n%60;return`${i}:${l.toString().padStart(2,"0")}`}function Y4({onSend:n,onStop:i,streaming:l}){const[r,c]=S.useState(""),[f,d]=S.useState(!1),[h,y]=S.useState(0),p=r.trim().length>0,v=S.useRef(null),b=S.useRef(null),T=S.useRef(null),E=S.useRef(null),j=S.useRef(null),C=S.useRef(0),M=S.useRef(0),R=S.useRef(null),G=S.useRef(!1),k=S.useRef(null);S.useEffect(()=>{if(f)return k.current=setInterval(()=>y(ut=>ut+1),1e3),()=>{k.current&&clearInterval(k.current)}},[f]);const B=S.useCallback(ut=>{k.current&&clearInterval(k.current),R.current&&(clearTimeout(R.current),R.current=null),G.current=!1,j.current&&(j.current.style.transform=""),d(!1),y(0),M.current=0},[]),K=()=>{p&&(n(r),c(""),requestAnimationFrame(()=>v.current?.focus()))},W=ut=>{ut.key==="Enter"&&!ut.shiftKey&&(ut.preventDefault(),K())},P=S.useCallback(ut=>{ut.preventDefault(),C.current=ut.clientX,M.current=0,ut.currentTarget.setPointerCapture(ut.pointerId),R.current=setTimeout(()=>{G.current=!0,d(!0),y(0)},200)},[]),L=S.useCallback(ut=>{if(!G.current)return;const At=Math.min(0,ut.clientX-C.current);if(M.current=At,j.current&&(j.current.style.transform=`translateX(${At}px)`),E.current){const Tt=E.current.getBoundingClientRect(),Gt=Tt.left+Tt.width/2;Math.abs(ut.clientX-Gt)<36&&B(!0)}},[B]),tt=S.useCallback(()=>{R.current&&(clearTimeout(R.current),R.current=null),G.current&&B(!1)},[B]),dt=S.useCallback(()=>{R.current&&(clearTimeout(R.current),R.current=null),G.current&&B(!0)},[B]);return g.jsxs("div",{className:"shrink-0 p-3 relative",children:[g.jsxs("div",{className:`flex items-center gap-2 transition-opacity duration-100 ${f?"opacity-0 pointer-events-none":"opacity-100"}`,children:[g.jsxs("div",{className:"flex-1 flex items-center bg-white rounded-full px-4",children:[g.jsx("textarea",{ref:v,value:r,onChange:ut=>c(ut.target.value),onKeyDown:W,placeholder:"Type a message...",rows:1,className:"flex-1 resize-none bg-transparent text-gray-900 py-3 text-sm outline-none placeholder:text-gray-400"}),g.jsx("input",{ref:b,type:"file",className:"hidden",accept:"*/*"}),g.jsx("input",{ref:T,type:"file",className:"hidden",accept:"image/*",capture:"environment"}),g.jsx("button",{type:"button",onClick:()=>b.current?.click(),className:"shrink-0 p-1.5 text-gray-400 hover:text-gray-600 transition-colors",children:g.jsx(eT,{className:"h-4 w-4"})}),g.jsx("button",{type:"button",onClick:()=>T.current?.click(),className:"shrink-0 p-1.5 text-gray-400 hover:text-gray-600 transition-colors",children:g.jsx(k2,{className:"h-4 w-4"})})]}),l?g.jsx("button",{onClick:i,className:"flex items-center justify-center h-12 w-12 shrink-0 rounded-full bg-destructive text-destructive-foreground transition-colors",children:g.jsx(dT,{className:"h-4 w-4"})}):p?g.jsx("button",{onClick:K,className:"flex items-center justify-center h-12 w-12 shrink-0 rounded-full bg-white text-gray-900 transition-colors hover:bg-gray-100",children:g.jsx(rT,{className:"h-4 w-4"})}):g.jsx("div",{className:"flex items-center justify-center h-12 w-12 shrink-0 rounded-full bg-white text-gray-900 transition-colors hover:bg-gray-100 cursor-pointer touch-none select-none",onPointerDown:P,onPointerMove:L,onPointerUp:tt,onPointerCancel:dt,children:g.jsx(Of,{className:"h-4 w-4"})})]}),g.jsx(Ux,{children:f&&g.jsx(xl.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.1},className:"absolute inset-0 p-3 flex items-center touch-none",children:g.jsxs("div",{className:"flex items-center w-full gap-2",children:[g.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[g.jsxs("span",{className:"relative flex h-2 w-2 shrink-0",children:[g.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-destructive opacity-75"}),g.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-destructive"})]}),g.jsx("span",{className:"text-sm font-medium tabular-nums",children:q4(h)})]}),g.jsxs("div",{className:"flex-1 flex items-center bg-muted rounded-full h-12 pl-1 pr-0.5",children:[g.jsx("div",{ref:E,className:"flex items-center justify-center h-9 w-9 shrink-0 rounded-full bg-destructive/10 text-destructive",children:g.jsx(mT,{className:"h-4 w-4"})}),g.jsx("div",{className:"flex-1 flex justify-center min-w-0",children:g.jsx(xl.span,{className:"text-[13px] whitespace-nowrap select-none font-medium",style:{backgroundImage:"linear-gradient(90deg, #999 0%, #999 35%, #fff 50%, #999 65%, #999 100%)",backgroundSize:"200% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},animate:{backgroundPosition:["200% center","-200% center"]},transition:{duration:2.5,repeat:1/0,ease:"linear"},children:"◄◄ slide to cancel"})}),g.jsx("div",{ref:j,className:"shrink-0 touch-none select-none will-change-transform",style:{transition:"none"},onPointerDown:P,onPointerMove:L,onPointerUp:tt,onPointerCancel:dt,children:g.jsx("div",{className:"flex items-center justify-center h-11 w-11 rounded-full bg-destructive text-destructive-foreground",children:g.jsx(Of,{className:"h-5 w-5"})})})]})]})})})]})}function X4({ws:n}){const{messages:i,streaming:l,streamBuffer:r,sendMessage:c,stopStreaming:f}=KA(n);return g.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[g.jsx(QA,{messages:i,streaming:l,streamBuffer:r}),g.jsx(Y4,{onSend:c,onStop:f,streaming:l})]})}function K4({onClick:n}){return g.jsx(xl.div,{className:"fixed bottom-6 right-6 z-50 cursor-pointer",whileHover:{scale:1.1},whileTap:{scale:.95},onClick:n,role:"button","aria-label":"Open Fluxy chat",children:g.jsx("img",{src:"/fluxy.png",alt:"Fluxy",className:"h-11 w-auto drop-shadow-lg",draggable:!1})})}const P4=[{id:"anthropic",name:"Claude",subtitle:"by Anthropic",icon:"/icons/claude.png"},{id:"openai",name:"OpenAI Codex",subtitle:"ChatGPT Plus / Pro",icon:"/icons/codex.png"},{id:"ollama",name:"Ollama",subtitle:"Run locally",icon:null}],Z4={anthropic:[{id:"claude-sonnet-4-20250514",label:"Claude Sonnet 4"},{id:"claude-opus-4-20250514",label:"Claude Opus 4"},{id:"claude-haiku-4-5-20251001",label:"Claude 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)"}],ollama:[{id:"llama3.2",label:"Llama 3.2"},{id:"mistral",label:"Mistral"},{id:"codellama",label:"Code Llama"},{id:"phi3",label:"Phi-3"}]},kv=6,Lv=[{tier:"premium",label:n=>`${n}.fluxy.bot`,badge:"$5",badgeCls:"bg-primary/15 text-primary border-primary/20",highlight:!0},{tier:"at",label:n=>`${n}.at.fluxy.bot`,badge:"Free",badgeCls:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",highlight:!1}];function Q4({models:n,value:i,onChange:l}){const[r,c]=S.useState(!1),f=S.useRef(null);S.useEffect(()=>{if(!r)return;const h=y=>{f.current&&!f.current.contains(y.target)&&c(!1)};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[r]);const d=n.find(h=>h.id===i);return g.jsxs("div",{className:"relative",ref:f,children:[g.jsxs("button",{type:"button",onClick:()=>c(h=>!h),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-primary/30 transition-colors",children:[g.jsx("span",{className:d?"text-white":"text-white/20",children:d?d.label:"Choose a model..."}),g.jsx(Sl,{className:`h-4 w-4 text-white/30 transition-transform ${r?"rotate-180":""}`})]}),r&&g.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:n.map(h=>g.jsx("button",{onClick:()=>{l(h.id),c(!1)},className:`w-full text-left px-4 py-2 text-[13px] transition-colors ${i===h.id?"text-primary bg-primary/10":"text-white/70 hover:bg-white/[0.04] hover:text-white"}`,children:h.label},h.id))})]})}function F4({onComplete:n}){const[i,l]=S.useState(0),[r,c]=S.useState(""),[f,d]=S.useState("anthropic"),[h,y]=S.useState(""),[p,v]=S.useState(!1),[b,T]=S.useState({anthropic:"idle",openai:"idle",ollama:"connected"}),[E,j]=S.useState(!1),[C,M]=S.useState(""),[R,G]=S.useState(!1),[k,B]=S.useState(),[K,W]=S.useState(!1),[P,L]=S.useState(!1),[tt,dt]=S.useState(),[ut,At]=S.useState(""),[Tt,Gt]=S.useState(""),[Nt,_]=S.useState(null),[Z,$]=S.useState(""),[ht,F]=S.useState({}),[A,q]=S.useState("at"),[J,et]=S.useState(!1),[I,rt]=S.useState(!1),[yt,qt]=S.useState(""),mt=S.useRef(null),[ie,qe]=S.useState(null),[oe,mn]=S.useState(!1),[Se,ri]=S.useState(!1),[jn,jl]=S.useState(""),[pn,cs]=S.useState(""),[Ra,fs]=S.useState(""),[_o,Dl]=S.useState(!1),[ge,Vo]=S.useState(!1),[an,ds]=S.useState(!1),[Ce,Rl]=S.useState(""),gn=b[f]==="connected";S.useEffect(()=>{Promise.all([fetch("/api/settings").then(Q=>Q.json()),fetch("/api/handle/status").then(Q=>Q.json())]).then(([Q,ct])=>{Q.user_name&&c(Q.user_name),Q.portal_user&&(jl(Q.portal_user),Vo(!0)),Q.whisper_key&&(ds(!0),Rl(Q.whisper_key)),ct.registered&&ct.username&&(Gt(ct.username),q(ct.tier||"at"),qe({username:ct.username,tier:ct.tier,url:ct.url}),rt(!0),qt(ct.url))}).catch(()=>{})},[]),S.useEffect(()=>{f!=="anthropic"||b.anthropic==="connected"||fetch("/api/auth/claude/status").then(Q=>Q.json()).then(Q=>{Q.authenticated&&T(ct=>({...ct,anthropic:"connected"}))}).catch(()=>{})},[f]),S.useEffect(()=>{f!=="openai"||b.openai==="connected"||fetch("/api/auth/codex/status").then(Q=>Q.json()).then(Q=>{Q.authenticated&&T(ct=>({...ct,openai:"connected"}))}).catch(()=>{})},[f]),S.useEffect(()=>{if(!P)return;const Q=setInterval(async()=>{try{(await(await fetch("/api/auth/codex/status")).json()).authenticated&&(L(!1),T(bn=>({...bn,openai:"connected"})))}catch{}},2e3);return()=>clearInterval(Q)},[P]),S.useEffect(()=>{if(mt.current&&clearTimeout(mt.current),ie&&I&&Tt===ie.username)return;_(null),$(""),F({}),rt(!1),qt("");const Q=Tt.trim();if(Q){if(Q.length<3){_("invalid"),$("At least 3 characters");return}return _("checking"),mt.current=setTimeout(async()=>{try{const ve=await(await fetch(`/api/handle/check/${encodeURIComponent(Q)}`)).json();if(!ve.valid)_("invalid"),$(ve.error);else{const bn={};for(const _a of ve.handles)bn[_a.tier]=_a.available;F(bn),_("ready");const ci=Lv.find(_a=>bn[_a.tier]);ci&&!bn[A]&&q(ci.tier)}}catch{_(null)}},400),()=>{mt.current&&clearTimeout(mt.current)}}},[Tt]);const ko=Q=>{Gt(Q.toLowerCase().replace(/[^a-z0-9-]/g,""))},Lo=async()=>{if(!(!Tt||Nt!=="ready"||!ht[A])){et(!0);try{const ct=await(await fetch("/api/handle/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:Tt,tier:A})})).json();ct.ok?(rt(!0),qt(ct.url)):($(ct.error||"Registration failed"),_("invalid"))}catch{$("Could not reach server"),_("invalid")}finally{et(!1)}}},Oa=async()=>{if(!(!Tt||Nt!=="ready"||!ht[A])){ri(!0);try{const ct=await(await fetch("/api/handle/change",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:Tt,tier:A})})).json();ct.ok?(rt(!0),qt(ct.url),qe({username:Tt,tier:A,url:ct.url}),mn(!1)):($(ct.error||"Handle change failed"),_("invalid"))}catch{$("Could not reach server"),_("invalid")}finally{ri(!1)}}},Te=Q=>{f==="openai"&&Q!=="openai"&&P&&(fetch("/api/auth/codex/cancel",{method:"POST"}),L(!1)),d(Q),y(""),j(!1),M(""),B(void 0),L(!1),dt(void 0)},yn=async()=>{B(void 0);try{const ct=await(await fetch("/api/auth/claude/start",{method:"POST"})).json();ct.success&&ct.authUrl?(window.open(ct.authUrl,"_blank"),j(!0)):B(ct.error||"Failed to start authentication")}catch(Q){B(Q.message)}},ye=async()=>{if(C.trim()){G(!0),B(void 0);try{const ct=await(await fetch("/api/auth/claude/exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:C.trim()})})).json();ct.success?T(ve=>({...ve,anthropic:"connected"})):B(ct.error||"Code exchange failed")}catch(Q){B(Q.message)}finally{G(!1)}}},Uo=async()=>{try{const Q=await navigator.clipboard.readText();Q&&M(Q.trim())}catch{}},Bo=async()=>{W(!0),B(void 0);try{(await(await fetch("/api/auth/claude/status")).json()).authenticated?T(ve=>({...ve,anthropic:"connected"})):B("No active session found. Please authenticate first.")}catch{}finally{W(!1)}},Ho=async()=>{L(!0),dt(void 0);try{const ct=await(await fetch("/api/auth/codex/start",{method:"POST"})).json();ct.success&&ct.authUrl?window.open(ct.authUrl,"_blank"):(L(!1),dt(ct.error||"Failed to start authentication"))}catch(Q){L(!1),dt(Q.message)}},oi=()=>{L(!1),fetch("/api/auth/codex/cancel",{method:"POST"})},za=pn===Ra,Dn=jn.trim().length>=3&&pn.length>=6&&za||ge&&pn.length===0,vn=(()=>{switch(i){case 0:return!0;case 1:return r.trim().length>0;case 2:return Tt.trim().length>=3;case 3:return Dn;case 4:return!!(f&&h&&gn);case 5:return!0;default:return!1}})(),Ne=()=>{vn&&i<kv-1&&l(Q=>Q+1)},Go=()=>{i>0&&l(Q=>Q-1)},ui=Q=>{Q.key==="Enter"&&vn&&Ne()},ms=async()=>{v(!0);try{await fetch("/api/onboard",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userName:r.trim(),agentName:Tt.trim()||"Fluxy",provider:f,model:h,apiKey:"",baseUrl:f==="ollama"&&ut||void 0,whisperEnabled:an,whisperKey:an?Ce:"",portalUser:jn.trim(),portalPass:pn})}),n()}catch(Q){console.error("Onboard failed:",Q),v(!1)}},Ye="w-full bg-white/[0.05] border border-white/[0.08] text-white rounded-xl px-4 py-3 text-base outline-none focus:border-primary/40 placeholder:text-white/20 transition-colors",Ol="w-full bg-white/[0.03] border border-white/[0.08] text-white rounded-xl px-4 py-2.5 text-[13px] outline-none focus:border-primary/30 placeholder:text-white/20 transition-colors";return g.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center p-4",children:[g.jsx("div",{className:"absolute inset-0 bg-black/85 backdrop-blur-md"}),g.jsxs(xl.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:[g.jsx("div",{className:"flex justify-center gap-2 pt-6",children:Array.from({length:kv},(Q,ct)=>g.jsx("div",{className:`h-1.5 rounded-full transition-all duration-300 ${ct===i?"w-7 bg-primary":ct<i?"w-1.5 bg-primary/60":"w-1.5 bg-white/10"}`},ct))}),g.jsx(Ux,{mode:"wait",children:g.jsxs(xl.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:[i===0&&g.jsxs("div",{className:"flex flex-col items-center text-center",children:[g.jsx("img",{src:"/fluxy.png",alt:"Fluxy",className:"h-16 w-auto mb-4"}),g.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"Welcome to Fluxy"}),g.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."}),g.jsxs("button",{onClick:Ne,className:"mt-6 px-7 py-3 bg-primary hover:bg-primary/90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center gap-2",children:["Get Started",g.jsx(on,{className:"h-4 w-4"})]})]}),i===1&&g.jsxs("div",{children:[g.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"What's your name?"}),g.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is how your agent will address you."}),g.jsxs("div",{className:"mt-5 flex items-center gap-3",children:[g.jsx("input",{type:"text",value:r,onChange:Q=>c(Q.target.value),onKeyDown:ui,placeholder:"Enter your name",autoFocus:!0,className:Ye+" flex-1"}),g.jsx("button",{onClick:Ne,disabled:!vn,className:"shrink-0 h-12 w-12 flex items-center justify-center rounded-full bg-primary hover:bg-primary/90 text-white transition-colors disabled:opacity-30",children:g.jsx(on,{className:"h-5 w-5"})})]})]}),i===2&&g.jsxs("div",{children:[g.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),g.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."}),ie&&I&&!oe&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Kr,{className:"h-4 w-4 text-emerald-400"}),g.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Current handle"})]}),g.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:yt})]}),g.jsxs("div",{className:"flex gap-2 mt-4",children:[g.jsxs("button",{onClick:Ne,className:"flex-1 py-3 bg-primary hover:bg-primary/90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",g.jsx(on,{className:"h-4 w-4"})]}),g.jsx("button",{onClick:()=>{mn(!0),rt(!1),Gt(""),_(null),F({})},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"})]})]}),oe&&!I&&g.jsxs("div",{className:"mt-4 bg-amber-500/8 border border-amber-500/20 rounded-xl px-4 py-3",children:[g.jsx("p",{className:"text-amber-400/90 text-[13px] font-medium",children:"Changing your handle"}),g.jsxs("p",{className:"text-amber-400/60 text-[12px] mt-1",children:["Your current handle ",g.jsx("span",{className:"font-mono",children:ie?.url})," will be released and become available for others."]})]}),(!ie||oe||!I)&&!(ie&&I&&!oe)&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"relative mt-5",children:[g.jsx("input",{type:"text",value:Tt,onChange:Q=>ko(Q.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,disabled:I,className:Ye+" pr-10 font-mono"+(I?" opacity-50":"")}),Nt&&Tt.length>0&&!I&&g.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2",children:[Nt==="checking"&&g.jsx("div",{className:"w-5 h-5 border-2 border-white/10 border-t-primary rounded-full animate-spin"}),Nt==="invalid"&&g.jsx("div",{className:"w-6 h-6 rounded-full bg-amber-500/15 flex items-center justify-center",children:g.jsx("svg",{className:"w-3.5 h-3.5 text-amber-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3m0 4h.01"})})})]})]}),Nt==="invalid"&&Z&&g.jsx("p",{className:"text-amber-400 text-[12px] mt-2",children:Z}),Nt==="ready"&&Tt.length>0&&!I&&g.jsx("div",{className:"space-y-2 mt-4",children:Lv.map(Q=>{const ve=ht[Q.tier]===!1;return g.jsxs("button",{onClick:()=>!ve&&q(Q.tier),disabled:ve,className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${ve?"border-white/[0.04] bg-transparent opacity-50 cursor-not-allowed":A===Q.tier?Q.highlight?"border-primary/40 bg-primary/[0.06]":"border-primary/30 bg-white/[0.04]":"border-white/[0.06] bg-transparent hover:border-white/10 hover:bg-white/[0.02]"}`,children:[g.jsx("span",{className:"font-mono text-[13px] text-white/70",children:Q.label(Tt)}),ve?g.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"}):g.jsx("span",{className:`text-[11px] font-medium px-2.5 py-0.5 rounded-full border ${Q.badgeCls}`,children:Q.badge})]},Q.tier)})}),I&&g.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Kr,{className:"h-4 w-4 text-emerald-400"}),g.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Handle claimed!"})]}),g.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:yt})]}),Nt==="ready"&&ht[A]&&Tt.length>0&&!I&&g.jsx("button",{onClick:oe?Oa:Lo,disabled:J||Se,className:"w-full mt-4 py-3 bg-primary hover:bg-primary/90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:J||Se?g.jsxs(g.Fragment,{children:[g.jsx(ll,{className:"h-4 w-4 animate-spin"}),oe?"Changing...":"Claiming..."]}):g.jsxs(g.Fragment,{children:[oe?"Change Handle":"Claim & Continue",g.jsx(on,{className:"h-4 w-4"})]})}),I&&g.jsxs("button",{onClick:Ne,className:"w-full mt-4 py-3 bg-primary hover:bg-primary/90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",g.jsx(on,{className:"h-4 w-4"})]}),!I&&(!ht[A]||Nt!=="ready")&&Tt.length>=3&&g.jsxs("button",{onClick:Ne,className:"w-full mt-4 py-2.5 text-white/30 hover:text-white/50 text-[13px] transition-colors flex items-center justify-center gap-2",children:["Skip handle for now",g.jsx(on,{className:"h-3.5 w-3.5"})]}),oe&&!I&&g.jsx("button",{onClick:()=>{mn(!1),Gt(ie.username),rt(!0),qt(ie.url),q(ie.tier),_(null)},className:"w-full mt-2 py-2 text-white/25 hover:text-white/40 text-[12px] transition-colors",children:"Cancel — keep current handle"})]})]}),i===3&&g.jsxs("div",{children:[g.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Secure your portal"}),g.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"Create credentials to protect your dashboard. Anyone with your URL will need these to log in."}),I&&yt&&g.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:[g.jsx("span",{className:"font-mono text-[13px] text-white/60 truncate flex-1",children:yt}),g.jsx("button",{onClick:()=>{navigator.clipboard.writeText(yt),Dl(!0),setTimeout(()=>Dl(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:_o?g.jsx(Kr,{className:"h-4 w-4 text-emerald-400"}):g.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[g.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),g.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})})]}),ge&&g.jsx("div",{className:"mt-4 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-2.5",children:g.jsx("p",{className:"text-white/40 text-[12px]",children:"Credentials already set. Leave password fields empty to keep your current password."})}),g.jsxs("div",{className:"mt-5",children:[g.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Username"}),g.jsx("input",{type:"text",value:jn,onChange:Q=>jl(Q.target.value.replace(/\s/g,"").toLowerCase()),placeholder:"admin",autoFocus:!0,autoComplete:"username",className:Ye+" font-mono"}),jn.length>0&&jn.trim().length<3&&g.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"At least 3 characters"})]}),g.jsxs("div",{className:"mt-3",children:[g.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Password"}),g.jsx("input",{type:"password",value:pn,onChange:Q=>cs(Q.target.value),placeholder:"••••••••",autoComplete:"new-password",onKeyDown:ui,className:Ye}),pn.length>0&&pn.length<6&&g.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"At least 6 characters"})]}),g.jsxs("div",{className:"mt-3",children:[g.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Confirm password"}),g.jsx("input",{type:"password",value:Ra,onChange:Q=>fs(Q.target.value),placeholder:"••••••••",autoComplete:"new-password",onKeyDown:ui,className:Ye}),Ra.length>0&&!za&&g.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:"Passwords don't match"})]}),g.jsxs("button",{onClick:Ne,disabled:!vn,className:"w-full mt-5 py-3 bg-primary hover:bg-primary/90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",g.jsx(on,{className:"h-4 w-4"})]})]}),i===4&&g.jsxs("div",{children:[g.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Choose your AI provider"}),g.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."}),g.jsx("div",{className:"flex gap-2.5 mt-4",children:P4.map(Q=>g.jsxs("button",{onClick:()=>Te(Q.id),className:`flex-1 relative rounded-xl border transition-all duration-200 p-3 text-left ${f===Q.id?"bg-white/[0.04] border-primary/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:[g.jsxs("div",{className:"flex flex-col items-center gap-1.5 py-0.5",children:[Q.icon?g.jsx("img",{src:Q.icon,alt:Q.name,className:"w-8 h-8 rounded-lg"}):g.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"}),g.jsxs("div",{className:"text-center",children:[g.jsx("div",{className:"text-[13px] font-medium text-white",children:Q.name}),g.jsx("div",{className:"text-[10px] text-white/30",children:Q.subtitle})]})]}),b[Q.id]==="connected"?g.jsx("div",{className:"absolute top-2 right-2 w-4 h-4 rounded-full bg-emerald-500/15 flex items-center justify-center",children:g.jsx(Kr,{className:"h-2.5 w-2.5 text-emerald-400"})}):f===Q.id?g.jsx("div",{className:"absolute top-2 right-2 w-2 h-2 rounded-full bg-primary"}):null]},Q.id))}),g.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),f==="anthropic"&&g.jsxs("div",{className:"space-y-2.5",children:[gn&&g.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:g.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — Anthropic subscription is active."})}),!gn&&g.jsxs(g.Fragment,{children:[k&&g.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:g.jsx("p",{className:"text-red-400/90 text-[12px]",children:k})}),g.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((Q,ct)=>g.jsxs("div",{className:"flex items-start gap-2",children:[g.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:ct+1}),g.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:Q})]},ct))}),g.jsx("button",{onClick:yn,className:"w-full py-2.5 px-4 bg-primary hover:bg-primary/90 text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2",children:E?g.jsxs(g.Fragment,{children:[g.jsx(X2,{className:"h-3.5 w-3.5 opacity-60"}),"Open authentication page again"]}):g.jsxs(g.Fragment,{children:["Authenticate with Anthropic",g.jsx(on,{className:"h-3.5 w-3.5 opacity-60"})]})}),g.jsxs("div",{className:"relative",children:[g.jsx("input",{type:"text",value:C,onChange:Q=>M(Q.target.value),onKeyDown:Q=>Q.key==="Enter"&&ye(),placeholder:"Paste your code here...",className:Ol+" pr-10 font-mono"}),g.jsx("button",{onClick:Uo,className:"absolute right-3 top-1/2 -translate-y-1/2 text-white/20 hover:text-white/50 transition-colors",children:g.jsx(H2,{className:"h-3.5 w-3.5"})})]}),g.jsx("button",{onClick:ye,disabled:!C.trim()||R,className:"w-full py-2.5 px-4 bg-primary hover:bg-primary/90 text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:R?g.jsxs(g.Fragment,{children:[g.jsx(ll,{className:"h-3.5 w-3.5 animate-spin"}),"Verifying..."]}):"Connect"}),g.jsxs("button",{onClick:Bo,disabled:K,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors flex items-center justify-center gap-1.5 disabled:opacity-50",children:[K?g.jsx(ll,{className:"h-3 w-3 animate-spin"}):g.jsx(aT,{className:"h-3 w-3"}),K?"Checking...":"I'm already authenticated"]})]})]}),f==="openai"&&g.jsxs("div",{className:"space-y-2.5",children:[gn&&g.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:g.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — ChatGPT subscription is active."})}),!gn&&g.jsxs(g.Fragment,{children:[tt&&g.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:g.jsx("p",{className:"text-red-400/90 text-[12px]",children:tt})}),g.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((Q,ct)=>g.jsxs("div",{className:"flex items-start gap-2",children:[g.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:ct+1}),g.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:Q})]},ct))}),g.jsx("button",{onClick:Ho,disabled:P,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:P?g.jsxs(g.Fragment,{children:[g.jsx(ll,{className:"h-3.5 w-3.5 animate-spin opacity-60"}),"Waiting for sign-in..."]}):g.jsxs(g.Fragment,{children:["Authenticate with ChatGPT",g.jsx(on,{className:"h-3.5 w-3.5 opacity-60"})]})}),P&&g.jsx("button",{onClick:oi,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors",children:"Cancel"})]})]}),f==="ollama"&&g.jsxs("div",{className:"space-y-2.5",children:[g.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:g.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"No authentication needed — Ollama runs locally."})}),g.jsxs("div",{children:[g.jsxs("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:["Base URL ",g.jsx("span",{className:"text-white/20",children:"(optional)"})]}),g.jsx("input",{type:"text",value:ut,onChange:Q=>At(Q.target.value),placeholder:"http://localhost:11434",className:Ol})]})]}),gn&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),g.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Select a model"}),g.jsx(Q4,{models:Z4[f]||[],value:h,onChange:y})]}),gn&&g.jsxs("button",{onClick:Ne,disabled:!vn,className:"w-full mt-4 py-3 bg-primary hover:bg-primary/90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",g.jsx(on,{className:"h-4 w-4"})]})]}),i===5&&g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[g.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Voice Messages"}),g.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"})]}),g.jsx("p",{className:"text-white/40 text-[13px] mt-1 leading-relaxed",children:"Allow users to send audio messages that are automatically transcribed."}),g.jsx("button",{onClick:()=>ds(Q=>!Q),className:`w-full mt-5 rounded-xl border transition-all duration-200 p-4 text-left ${an?"bg-white/[0.04] border-primary/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:g.jsxs("div",{className:"flex items-center gap-3.5",children:[g.jsx("img",{src:"/icons/openai.svg",alt:"OpenAI",className:"w-10 h-10 rounded-xl bg-white/[0.04] p-1.5"}),g.jsxs("div",{className:"flex-1",children:[g.jsx("div",{className:"text-[14px] font-medium text-white",children:"OpenAI Whisper"}),g.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."})]}),g.jsx("div",{className:`w-10 h-[22px] rounded-full transition-colors duration-200 flex items-center px-0.5 shrink-0 ${an?"bg-primary":"bg-white/[0.08]"}`,children:g.jsx("div",{className:`w-[18px] h-[18px] rounded-full bg-white shadow-sm transition-transform duration-200 ${an?"translate-x-[18px]":"translate-x-0"}`})})]})}),an&&g.jsxs("div",{className:"mt-3",children:[g.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"OpenAI API Key"}),g.jsx("input",{type:"password",value:Ce,onChange:Q=>Rl(Q.target.value.trim()),placeholder:"sk-...",autoComplete:"off",className:Ye+" font-mono text-[13px]"}),Ce.length>0&&!Ce.startsWith("sk-")&&g.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key should start with sk-"}),Ce.length>0&&Ce.startsWith("sk-")&&Ce.length<20&&g.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key looks too short"}),g.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:[g.jsx(Of,{className:"h-4 w-4 text-primary/60 mt-0.5 shrink-0"}),g.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."})]})]}),g.jsx("button",{onClick:ms,disabled:p||an&&(!Ce.startsWith("sk-")||Ce.length<20),className:"w-full mt-5 py-3 bg-primary hover:bg-primary/90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:p?g.jsxs(g.Fragment,{children:[g.jsx(ll,{className:"h-4 w-4 animate-spin"}),"Setting up..."]}):g.jsxs(g.Fragment,{children:["Complete Setup",g.jsx(on,{className:"h-4 w-4"})]})}),!an&&g.jsx("p",{className:"text-center text-white/20 text-[11px] mt-2.5",children:"You can enable this later in Settings."})]})]},i)}),i>0&&g.jsx("div",{className:"px-8 pb-5 -mt-3",children:g.jsx("button",{onClick:Go,className:"text-white/25 hover:text-white/50 text-[12px] transition-colors",children:"← Back"})})]})]})}function J4(){return g.jsx("div",{className:"flex items-center justify-center h-dvh p-6 text-center",children:g.jsxs("div",{children:[g.jsx("h1",{className:"text-xl font-semibold mb-2",children:"Something went wrong"}),g.jsx("p",{className:"text-sm text-muted-foreground",children:"The dashboard encountered an error. Use the Fluxy button to continue chatting."})]})})}function W4(){const[n,i]=S.useState(!1),[l,r]=S.useState(!1),{ws:c,connected:f}=x2();return S.useEffect(()=>{fetch("/api/settings").then(d=>d.json()).then(d=>{d.onboard_complete!=="true"&&r(!0)}).catch(()=>r(!0))},[]),g.jsxs(g.Fragment,{children:[g.jsx(S2,{fallback:g.jsx(J4,{}),children:g.jsx(BA,{onOpenOnboard:()=>r(!0),children:g.jsx(XA,{})})}),g.jsx(rb,{open:n,onOpenChange:i,children:g.jsxs(ob,{side:"right",className:"w-full sm:max-w-md !gap-0 !p-0 !border-l-0",onOpenAutoFocus:d=>d.preventDefault(),children:[g.jsxs("div",{className:"flex items-center gap-3 px-4 pr-12 py-3 border-b border-border shrink-0",children:[g.jsx("img",{src:"/fluxy.png",alt:"Fluxy",className:"h-5 w-auto"}),g.jsx(ub,{className:"text-sm font-semibold",children:"Fluxy"}),g.jsx("div",{className:`h-2 w-2 rounded-full ${f?"bg-green-500":"bg-red-500"}`}),g.jsx(kA,{className:"sr-only",children:"Chat with your Fluxy AI assistant"})]}),g.jsx("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:g.jsx(X4,{ws:c})})]})}),g.jsx(K4,{onClick:()=>i(d=>!d)}),l&&g.jsx(F4,{onComplete:()=>r(!1)})]})}v2.createRoot(document.getElementById("root")).render(g.jsx(Jn.StrictMode,{children:g.jsx(W4,{})}));
|