Files
Project_Astral/.agent assets/Kimi 2.5/codex version on kimi version/app/dist/assets/index-S-KXaamc.js
2026-02-25 00:50:23 +05:30

142 lines
424 KiB
JavaScript
Raw Blame History

function d1(s,o){for(var r=0;r<o.length;r++){const i=o[r];if(typeof i!="string"&&!Array.isArray(i)){for(const d in i)if(d!=="default"&&!(d in s)){const m=Object.getOwnPropertyDescriptor(i,d);m&&Object.defineProperty(s,d,m.get?m:{enumerable:!0,get:()=>i[d]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))i(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const h of m.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&i(h)}).observe(document,{childList:!0,subtree:!0});function r(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function i(d){if(d.ep)return;d.ep=!0;const m=r(d);fetch(d.href,m)}})();function Au(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Yr={exports:{}},Cl={};var Gp;function f1(){if(Gp)return Cl;Gp=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function r(i,d,m){var h=null;if(m!==void 0&&(h=""+m),d.key!==void 0&&(h=""+d.key),"key"in d){m={};for(var p in d)p!=="key"&&(m[p]=d[p])}else m=d;return d=m.ref,{$$typeof:s,type:i,key:h,ref:d!==void 0?d:null,props:m}}return Cl.Fragment=o,Cl.jsx=r,Cl.jsxs=r,Cl}var Xp;function m1(){return Xp||(Xp=1,Yr.exports=f1()),Yr.exports}var u=m1(),Wr={exports:{}},be={};var Zp;function p1(){if(Zp)return be;Zp=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),E=Symbol.iterator;function A(N){return N===null||typeof N!="object"?null:(N=E&&N[E]||N["@@iterator"],typeof N=="function"?N:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function k(N,q,F){this.props=N,this.context=q,this.refs=C,this.updater=F||R}k.prototype.isReactComponent={},k.prototype.setState=function(N,q){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,q,"setState")},k.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function z(){}z.prototype=k.prototype;function L(N,q,F){this.props=N,this.context=q,this.refs=C,this.updater=F||R}var V=L.prototype=new z;V.constructor=L,S(V,k.prototype),V.isPureReactComponent=!0;var Q=Array.isArray;function I(){}var W={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function ae(N,q,F){var ee=F.ref;return{$$typeof:s,type:N,key:q,ref:ee!==void 0?ee:null,props:F}}function ue(N,q){return ae(N.type,q,N.props)}function fe(N){return typeof N=="object"&&N!==null&&N.$$typeof===s}function te(N){var q={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(F){return q[F]})}var ge=/\/+/g;function re(N,q){return typeof N=="object"&&N!==null&&N.key!=null?te(""+N.key):q.toString(36)}function me(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(I,I):(N.status="pending",N.then(function(q){N.status==="pending"&&(N.status="fulfilled",N.value=q)},function(q){N.status==="pending"&&(N.status="rejected",N.reason=q)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function D(N,q,F,ee,le){var K=typeof N;(K==="undefined"||K==="boolean")&&(N=null);var M=!1;if(N===null)M=!0;else switch(K){case"bigint":case"string":case"number":M=!0;break;case"object":switch(N.$$typeof){case s:case o:M=!0;break;case b:return M=N._init,D(M(N._payload),q,F,ee,le)}}if(M)return le=le(N),M=ee===""?"."+re(N,0):ee,Q(le)?(F="",M!=null&&(F=M.replace(ge,"$&/")+"/"),D(le,q,F,"",function(he){return he})):le!=null&&(fe(le)&&(le=ue(le,F+(le.key==null||N&&N.key===le.key?"":(""+le.key).replace(ge,"$&/")+"/")+M)),q.push(le)),1;M=0;var _=ee===""?".":ee+":";if(Q(N))for(var ne=0;ne<N.length;ne++)ee=N[ne],K=_+re(ee,ne),M+=D(ee,q,F,K,le);else if(ne=A(N),typeof ne=="function")for(N=ne.call(N),ne=0;!(ee=N.next()).done;)ee=ee.value,K=_+re(ee,ne++),M+=D(ee,q,F,K,le);else if(K==="object"){if(typeof N.then=="function")return D(me(N),q,F,ee,le);throw q=String(N),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return M}function X(N,q,F){if(N==null)return N;var ee=[],le=0;return D(N,ee,"","",function(K){return q.call(F,K,le++)}),ee}function P(N){if(N._status===-1){var q=N._result;q=q(),q.then(function(F){(N._status===0||N._status===-1)&&(N._status=1,N._result=F)},function(F){(N._status===0||N._status===-1)&&(N._status=2,N._result=F)}),N._status===-1&&(N._status=0,N._result=q)}if(N._status===1)return N._result.default;throw N._result}var se=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},pe={map:X,forEach:function(N,q,F){X(N,function(){q.apply(this,arguments)},F)},count:function(N){var q=0;return X(N,function(){q++}),q},toArray:function(N){return X(N,function(q){return q})||[]},only:function(N){if(!fe(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return be.Activity=w,be.Children=pe,be.Component=k,be.Fragment=r,be.Profiler=d,be.PureComponent=L,be.StrictMode=i,be.Suspense=g,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,be.__COMPILER_RUNTIME={__proto__:null,c:function(N){return W.H.useMemoCache(N)}},be.cache=function(N){return function(){return N.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(N,q,F){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var ee=S({},N.props),le=N.key;if(q!=null)for(K in q.key!==void 0&&(le=""+q.key),q)!J.call(q,K)||K==="key"||K==="__self"||K==="__source"||K==="ref"&&q.ref===void 0||(ee[K]=q[K]);var K=arguments.length-2;if(K===1)ee.children=F;else if(1<K){for(var M=Array(K),_=0;_<K;_++)M[_]=arguments[_+2];ee.children=M}return ae(N.type,le,ee)},be.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:m,_context:N},N},be.createElement=function(N,q,F){var ee,le={},K=null;if(q!=null)for(ee in q.key!==void 0&&(K=""+q.key),q)J.call(q,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(le[ee]=q[ee]);var M=arguments.length-2;if(M===1)le.children=F;else if(1<M){for(var _=Array(M),ne=0;ne<M;ne++)_[ne]=arguments[ne+2];le.children=_}if(N&&N.defaultProps)for(ee in M=N.defaultProps,M)le[ee]===void 0&&(le[ee]=M[ee]);return ae(N,K,le)},be.createRef=function(){return{current:null}},be.forwardRef=function(N){return{$$typeof:p,render:N}},be.isValidElement=fe,be.lazy=function(N){return{$$typeof:b,_payload:{_status:-1,_result:N},_init:P}},be.memo=function(N,q){return{$$typeof:x,type:N,compare:q===void 0?null:q}},be.startTransition=function(N){var q=W.T,F={};W.T=F;try{var ee=N(),le=W.S;le!==null&&le(F,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(I,se)}catch(K){se(K)}finally{q!==null&&F.types!==null&&(q.types=F.types),W.T=q}},be.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},be.use=function(N){return W.H.use(N)},be.useActionState=function(N,q,F){return W.H.useActionState(N,q,F)},be.useCallback=function(N,q){return W.H.useCallback(N,q)},be.useContext=function(N){return W.H.useContext(N)},be.useDebugValue=function(){},be.useDeferredValue=function(N,q){return W.H.useDeferredValue(N,q)},be.useEffect=function(N,q){return W.H.useEffect(N,q)},be.useEffectEvent=function(N){return W.H.useEffectEvent(N)},be.useId=function(){return W.H.useId()},be.useImperativeHandle=function(N,q,F){return W.H.useImperativeHandle(N,q,F)},be.useInsertionEffect=function(N,q){return W.H.useInsertionEffect(N,q)},be.useLayoutEffect=function(N,q){return W.H.useLayoutEffect(N,q)},be.useMemo=function(N,q){return W.H.useMemo(N,q)},be.useOptimistic=function(N,q){return W.H.useOptimistic(N,q)},be.useReducer=function(N,q,F){return W.H.useReducer(N,q,F)},be.useRef=function(N){return W.H.useRef(N)},be.useState=function(N){return W.H.useState(N)},be.useSyncExternalStore=function(N,q,F){return W.H.useSyncExternalStore(N,q,F)},be.useTransition=function(){return W.H.useTransition()},be.version="19.2.3",be}var Qp;function Ol(){return Qp||(Qp=1,Wr.exports=p1()),Wr.exports}var y=Ol();const Zt=Au(y),Gh=d1({__proto__:null,default:Zt},[y]);var Gr={exports:{}},Al={},Xr={exports:{}},Zr={};var Kp;function h1(){return Kp||(Kp=1,(function(s){function o(D,X){var P=D.length;D.push(X);e:for(;0<P;){var se=P-1>>>1,pe=D[se];if(0<d(pe,X))D[se]=X,D[P]=pe,P=se;else break e}}function r(D){return D.length===0?null:D[0]}function i(D){if(D.length===0)return null;var X=D[0],P=D.pop();if(P!==X){D[0]=P;e:for(var se=0,pe=D.length,N=pe>>>1;se<N;){var q=2*(se+1)-1,F=D[q],ee=q+1,le=D[ee];if(0>d(F,P))ee<pe&&0>d(le,F)?(D[se]=le,D[ee]=P,se=ee):(D[se]=F,D[q]=P,se=q);else if(ee<pe&&0>d(le,P))D[se]=le,D[ee]=P,se=ee;else break e}}return X}function d(D,X){var P=D.sortIndex-X.sortIndex;return P!==0?P:D.id-X.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;s.unstable_now=function(){return m.now()}}else{var h=Date,p=h.now();s.unstable_now=function(){return h.now()-p}}var g=[],x=[],b=1,w=null,E=3,A=!1,R=!1,S=!1,C=!1,k=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function V(D){for(var X=r(x);X!==null;){if(X.callback===null)i(x);else if(X.startTime<=D)i(x),X.sortIndex=X.expirationTime,o(g,X);else break;X=r(x)}}function Q(D){if(S=!1,V(D),!R)if(r(g)!==null)R=!0,I||(I=!0,te());else{var X=r(x);X!==null&&me(Q,X.startTime-D)}}var I=!1,W=-1,J=5,ae=-1;function ue(){return C?!0:!(s.unstable_now()-ae<J)}function fe(){if(C=!1,I){var D=s.unstable_now();ae=D;var X=!0;try{e:{R=!1,S&&(S=!1,z(W),W=-1),A=!0;var P=E;try{t:{for(V(D),w=r(g);w!==null&&!(w.expirationTime>D&&ue());){var se=w.callback;if(typeof se=="function"){w.callback=null,E=w.priorityLevel;var pe=se(w.expirationTime<=D);if(D=s.unstable_now(),typeof pe=="function"){w.callback=pe,V(D),X=!0;break t}w===r(g)&&i(g),V(D)}else i(g);w=r(g)}if(w!==null)X=!0;else{var N=r(x);N!==null&&me(Q,N.startTime-D),X=!1}}break e}finally{w=null,E=P,A=!1}X=void 0}}finally{X?te():I=!1}}}var te;if(typeof L=="function")te=function(){L(fe)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,re=ge.port2;ge.port1.onmessage=fe,te=function(){re.postMessage(null)}}else te=function(){k(fe,0)};function me(D,X){W=k(function(){D(s.unstable_now())},X)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(D){D.callback=null},s.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<D?Math.floor(1e3/D):5},s.unstable_getCurrentPriorityLevel=function(){return E},s.unstable_next=function(D){switch(E){case 1:case 2:case 3:var X=3;break;default:X=E}var P=E;E=X;try{return D()}finally{E=P}},s.unstable_requestPaint=function(){C=!0},s.unstable_runWithPriority=function(D,X){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var P=E;E=D;try{return X()}finally{E=P}},s.unstable_scheduleCallback=function(D,X,P){var se=s.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?se+P:se):P=se,D){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=P+pe,D={id:b++,callback:X,priorityLevel:D,startTime:P,expirationTime:pe,sortIndex:-1},P>se?(D.sortIndex=P,o(x,D),r(g)===null&&D===r(x)&&(S?(z(W),W=-1):S=!0,me(Q,P-se))):(D.sortIndex=pe,o(g,D),R||A||(R=!0,I||(I=!0,te()))),D},s.unstable_shouldYield=ue,s.unstable_wrapCallback=function(D){var X=E;return function(){var P=E;E=X;try{return D.apply(this,arguments)}finally{E=P}}}})(Zr)),Zr}var Jp;function x1(){return Jp||(Jp=1,Xr.exports=h1()),Xr.exports}var Qr={exports:{}},rt={};var $p;function g1(){if($p)return rt;$p=1;var s=Ol();function o(g){var x="https://react.dev/errors/"+g;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)x+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(o(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(g,x,b){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:w==null?null:""+w,children:g,containerInfo:x,implementation:b}}var h=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,x){if(g==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,rt.createPortal=function(g,x){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(o(299));return m(g,x,null,b)},rt.flushSync=function(g){var x=h.T,b=i.p;try{if(h.T=null,i.p=2,g)return g()}finally{h.T=x,i.p=b,i.d.f()}},rt.preconnect=function(g,x){typeof g=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,i.d.C(g,x))},rt.prefetchDNS=function(g){typeof g=="string"&&i.d.D(g)},rt.preinit=function(g,x){if(typeof g=="string"&&x&&typeof x.as=="string"){var b=x.as,w=p(b,x.crossOrigin),E=typeof x.integrity=="string"?x.integrity:void 0,A=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;b==="style"?i.d.S(g,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:w,integrity:E,fetchPriority:A}):b==="script"&&i.d.X(g,{crossOrigin:w,integrity:E,fetchPriority:A,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},rt.preinitModule=function(g,x){if(typeof g=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var b=p(x.as,x.crossOrigin);i.d.M(g,{crossOrigin:b,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&i.d.M(g)},rt.preload=function(g,x){if(typeof g=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var b=x.as,w=p(b,x.crossOrigin);i.d.L(g,b,{crossOrigin:w,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},rt.preloadModule=function(g,x){if(typeof g=="string")if(x){var b=p(x.as,x.crossOrigin);i.d.m(g,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:b,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else i.d.m(g)},rt.requestFormReset=function(g){i.d.r(g)},rt.unstable_batchedUpdates=function(g,x){return g(x)},rt.useFormState=function(g,x,b){return h.H.useFormState(g,x,b)},rt.useFormStatus=function(){return h.H.useHostTransitionStatus()},rt.version="19.2.3",rt}var Fp;function Xh(){if(Fp)return Qr.exports;Fp=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),Qr.exports=g1(),Qr.exports}var Ip;function v1(){if(Ip)return Al;Ip=1;var s=x1(),o=Ol(),r=Xh();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(m(e)!==e)throw Error(i(188))}function x(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(i(188));return t!==e?null:e}for(var n=e,a=t;;){var l=n.return;if(l===null)break;var c=l.alternate;if(c===null){if(a=l.return,a!==null){n=a;continue}break}if(l.child===c.child){for(c=l.child;c;){if(c===n)return g(l),e;if(c===a)return g(l),t;c=c.sibling}throw Error(i(188))}if(n.return!==a.return)n=l,a=c;else{for(var f=!1,v=l.child;v;){if(v===n){f=!0,n=l,a=c;break}if(v===a){f=!0,a=l,n=c;break}v=v.sibling}if(!f){for(v=c.child;v;){if(v===n){f=!0,n=c,a=l;break}if(v===a){f=!0,a=c,n=l;break}v=v.sibling}if(!f)throw Error(i(189))}}if(n.alternate!==a)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var w=Object.assign,E=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),L=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),ue=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function te(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Symbol.for("react.client.reference");function re(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ge?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case k:return"Profiler";case C:return"StrictMode";case Q:return"Suspense";case I:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case R:return"Portal";case L:return e.displayName||"Context";case z:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return t=e.displayName||null,t!==null?t:re(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var me=Array.isArray,D=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},se=[],pe=-1;function N(e){return{current:e}}function q(e){0>pe||(e.current=se[pe],se[pe]=null,pe--)}function F(e,t){pe++,se[pe]=e.current,e.current=t}var ee=N(null),le=N(null),K=N(null),M=N(null);function _(e,t){switch(F(K,t),F(le,e),F(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pp(t),e=hp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(ee),F(ee,e)}function ne(){q(ee),q(le),q(K)}function he(e){e.memoizedState!==null&&F(M,e);var t=ee.current,n=hp(t,e.type);t!==n&&(F(le,e),F(ee,n))}function ye(e){le.current===e&&(q(ee),q(le)),M.current===e&&(q(M),Sl._currentValue=P)}var ze,ut;function dt(e){if(ze===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ze=t&&t[1]||"",ut=-1<n.stack.indexOf(`
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ze+e+ut}var ca=!1;function ia(e,t){if(!e||ca)return"";ca=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(Y){var B=Y}Reflect.construct(e,[],$)}else{try{$.call()}catch(Y){B=Y}e.call($.prototype)}}else{try{throw Error()}catch(Y){B=Y}($=e())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(Y){if(Y&&B&&typeof Y.stack=="string")return[Y.stack,B.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),f=c[0],v=c[1];if(f&&v){var j=f.split(`
`),U=v.split(`
`);for(l=a=0;a<j.length&&!j[a].includes("DetermineComponentFrameRoot");)a++;for(;l<U.length&&!U[l].includes("DetermineComponentFrameRoot");)l++;if(a===j.length||l===U.length)for(a=j.length-1,l=U.length-1;1<=a&&0<=l&&j[a]!==U[l];)l--;for(;1<=a&&0<=l;a--,l--)if(j[a]!==U[l]){if(a!==1||l!==1)do if(a--,l--,0>l||j[a]!==U[l]){var G=`
`+j[a].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=a&&0<=l);break}}}finally{ca=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?dt(n):""}function Ds(e,t){switch(e.tag){case 26:case 27:case 5:return dt(e.type);case 16:return dt("Lazy");case 13:return e.child!==t&&t!==null?dt("Suspense Fallback"):dt("Suspense");case 19:return dt("SuspenseList");case 0:case 15:return ia(e.type,!1);case 11:return ia(e.type.render,!1);case 1:return ia(e.type,!0);case 31:return dt("Activity");default:return""}}function Wu(e){try{var t="",n=null;do t+=Ds(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Mc=Object.prototype.hasOwnProperty,Tc=s.unstable_scheduleCallback,zc=s.unstable_cancelCallback,Yg=s.unstable_shouldYield,Wg=s.unstable_requestPaint,wt=s.unstable_now,Gg=s.unstable_getCurrentPriorityLevel,Gu=s.unstable_ImmediatePriority,Xu=s.unstable_UserBlockingPriority,Ul=s.unstable_NormalPriority,Xg=s.unstable_LowPriority,Zu=s.unstable_IdlePriority,Zg=s.log,Qg=s.unstable_setDisableYieldValue,Os=null,St=null;function An(e){if(typeof Zg=="function"&&Qg(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(Os,e)}catch{}}var jt=Math.clz32?Math.clz32:$g,Kg=Math.log,Jg=Math.LN2;function $g(e){return e>>>=0,e===0?32:31-(Kg(e)/Jg|0)|0}var Ll=256,Bl=262144,Pl=4194304;function ra(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Vl(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var l=0,c=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~c,a!==0?l=ra(a):(f&=v,f!==0?l=ra(f):n||(n=v&~e,n!==0&&(l=ra(n))))):(v=a&~c,v!==0?l=ra(v):f!==0?l=ra(f):n||(n=a&~e,n!==0&&(l=ra(n)))),l===0?0:t!==0&&t!==l&&(t&c)===0&&(c=l&-l,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:l}function ks(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Fg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Qu(){var e=Pl;return Pl<<=1,(Pl&62914560)===0&&(Pl=4194304),e}function _c(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Hs(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ig(e,t,n,a,l,c){var f=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,j=e.expirationTimes,U=e.hiddenUpdates;for(n=f&~n;0<n;){var G=31-jt(n),$=1<<G;v[G]=0,j[G]=-1;var B=U[G];if(B!==null)for(U[G]=null,G=0;G<B.length;G++){var Y=B[G];Y!==null&&(Y.lane&=-536870913)}n&=~$}a!==0&&Ku(e,a,0),c!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=c&~(f&~t))}function Ku(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-jt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Ju(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-jt(n),l=1<<a;l&t|e[a]&t&&(e[a]|=t),n&=~l}}function $u(e,t){var n=t&-t;return n=(n&42)!==0?1:Rc(n),(n&(e.suspendedLanes|t))!==0?0:n}function Rc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Dc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Fu(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Lp(e.type))}function Iu(e,t){var n=X.p;try{return X.p=e,t()}finally{X.p=n}}var Mn=Math.random().toString(36).slice(2),at="__reactFiber$"+Mn,mt="__reactProps$"+Mn,ka="__reactContainer$"+Mn,Oc="__reactEvents$"+Mn,e0="__reactListeners$"+Mn,t0="__reactHandles$"+Mn,ed="__reactResources$"+Mn,Us="__reactMarker$"+Mn;function kc(e){delete e[at],delete e[mt],delete e[Oc],delete e[e0],delete e[t0]}function Ha(e){var t=e[at];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ka]||n[at]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sp(e);e!==null;){if(n=e[at])return n;e=Sp(e)}return t}e=n,n=e.parentNode}return null}function Ua(e){if(e=e[at]||e[ka]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ls(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function La(e){var t=e[ed];return t||(t=e[ed]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function tt(e){e[Us]=!0}var td=new Set,nd={};function ua(e,t){Ba(e,t),Ba(e+"Capture",t)}function Ba(e,t){for(nd[e]=t,e=0;e<t.length;e++)td.add(t[e])}var n0=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]*$"),ad={},sd={};function a0(e){return Mc.call(sd,e)?!0:Mc.call(ad,e)?!1:n0.test(e)?sd[e]=!0:(ad[e]=!0,!1)}function ql(e,t,n){if(a0(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Yl(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function ln(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ld(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function s0(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var l=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(f){n=""+f,c.call(this,f)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hc(e){if(!e._valueTracker){var t=ld(e)?"checked":"value";e._valueTracker=s0(e,t,""+e[t])}}function od(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=ld(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Wl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var l0=/[\n"\\]/g;function Ot(e){return e.replace(l0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Uc(e,t,n,a,l,c,f,v){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Dt(t)):e.value!==""+Dt(t)&&(e.value=""+Dt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Lc(e,f,Dt(t)):n!=null?Lc(e,f,Dt(n)):a!=null&&e.removeAttribute("value"),l==null&&c!=null&&(e.defaultChecked=!!c),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Dt(v):e.removeAttribute("name")}function cd(e,t,n,a,l,c,f,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Hc(e);return}n=n!=null?""+Dt(n):"",t=t!=null?""+Dt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}a=a??l,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=v?e.checked:!!a,e.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Hc(e)}function Lc(e,t,n){t==="number"&&Wl(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Pa(e,t,n,a){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Dt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,a&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function id(e,t,n){if(t!=null&&(t=""+Dt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Dt(n):""}function rd(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(i(92));if(me(a)){if(1<a.length)throw Error(i(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Dt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Hc(e)}function Va(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var o0=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 ud(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||o0.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function dd(e,t,n){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var l in t)a=t[l],t.hasOwnProperty(l)&&n[l]!==a&&ud(e,l,a)}else for(var c in t)t.hasOwnProperty(c)&&ud(e,c,t[c])}function Bc(e){if(e.indexOf("-")===-1)return!1;switch(e){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 c0=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"]]),i0=/^[\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 Gl(e){return i0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function on(){}var Pc=null;function Vc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qa=null,Ya=null;function fd(e){var t=Ua(e);if(t&&(e=t.stateNode)){var n=e[mt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Uc(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ot(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var l=a[mt]||null;if(!l)throw Error(i(90));Uc(a,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&od(a)}break e;case"textarea":id(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Pa(e,!!n.multiple,t,!1)}}}var qc=!1;function md(e,t,n){if(qc)return e(t,n);qc=!0;try{var a=e(t);return a}finally{if(qc=!1,(qa!==null||Ya!==null)&&(Do(),qa&&(t=qa,e=Ya,Ya=qa=null,fd(t),e)))for(t=0;t<e.length;t++)fd(e[t])}}function Bs(e,t){var n=e.stateNode;if(n===null)return null;var a=n[mt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(i(231,t,typeof n));return n}var cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yc=!1;if(cn)try{var Ps={};Object.defineProperty(Ps,"passive",{get:function(){Yc=!0}}),window.addEventListener("test",Ps,Ps),window.removeEventListener("test",Ps,Ps)}catch{Yc=!1}var Tn=null,Wc=null,Xl=null;function pd(){if(Xl)return Xl;var e,t=Wc,n=t.length,a,l="value"in Tn?Tn.value:Tn.textContent,c=l.length;for(e=0;e<n&&t[e]===l[e];e++);var f=n-e;for(a=1;a<=f&&t[n-a]===l[c-a];a++);return Xl=l.slice(e,1<a?1-a:void 0)}function Zl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ql(){return!0}function hd(){return!1}function pt(e){function t(n,a,l,c,f){this._reactName=n,this._targetInst=l,this.type=a,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ql:hd,this.isPropagationStopped=hd,this}return w(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ql)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ql)},persist:function(){},isPersistent:Ql}),t}var da={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kl=pt(da),Vs=w({},da,{view:0,detail:0}),r0=pt(Vs),Gc,Xc,qs,Jl=w({},Vs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==qs&&(qs&&e.type==="mousemove"?(Gc=e.screenX-qs.screenX,Xc=e.screenY-qs.screenY):Xc=Gc=0,qs=e),Gc)},movementY:function(e){return"movementY"in e?e.movementY:Xc}}),xd=pt(Jl),u0=w({},Jl,{dataTransfer:0}),d0=pt(u0),f0=w({},Vs,{relatedTarget:0}),Zc=pt(f0),m0=w({},da,{animationName:0,elapsedTime:0,pseudoElement:0}),p0=pt(m0),h0=w({},da,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),x0=pt(h0),g0=w({},da,{data:0}),gd=pt(g0),v0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},y0={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"},b0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function w0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=b0[e])?!!t[e]:!1}function Qc(){return w0}var S0=w({},Vs,{key:function(e){if(e.key){var t=v0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?y0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qc,charCode:function(e){return e.type==="keypress"?Zl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),j0=pt(S0),N0=w({},Jl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vd=pt(N0),E0=w({},Vs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qc}),C0=pt(E0),A0=w({},da,{propertyName:0,elapsedTime:0,pseudoElement:0}),M0=pt(A0),T0=w({},Jl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),z0=pt(T0),_0=w({},da,{newState:0,oldState:0}),R0=pt(_0),D0=[9,13,27,32],Kc=cn&&"CompositionEvent"in window,Ys=null;cn&&"documentMode"in document&&(Ys=document.documentMode);var O0=cn&&"TextEvent"in window&&!Ys,yd=cn&&(!Kc||Ys&&8<Ys&&11>=Ys),bd=" ",wd=!1;function Sd(e,t){switch(e){case"keyup":return D0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function k0(e,t){switch(e){case"compositionend":return jd(t);case"keypress":return t.which!==32?null:(wd=!0,bd);case"textInput":return e=t.data,e===bd&&wd?null:e;default:return null}}function H0(e,t){if(Wa)return e==="compositionend"||!Kc&&Sd(e,t)?(e=pd(),Xl=Wc=Tn=null,Wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return yd&&t.locale!=="ko"?null:t.data;default:return null}}var U0={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 Nd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!U0[e.type]:t==="textarea"}function Ed(e,t,n,a){qa?Ya?Ya.push(a):Ya=[a]:qa=a,t=Po(t,"onChange"),0<t.length&&(n=new Kl("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Ws=null,Gs=null;function L0(e){ip(e,0)}function $l(e){var t=Ls(e);if(od(t))return e}function Cd(e,t){if(e==="change")return t}var Ad=!1;if(cn){var Jc;if(cn){var $c="oninput"in document;if(!$c){var Md=document.createElement("div");Md.setAttribute("oninput","return;"),$c=typeof Md.oninput=="function"}Jc=$c}else Jc=!1;Ad=Jc&&(!document.documentMode||9<document.documentMode)}function Td(){Ws&&(Ws.detachEvent("onpropertychange",zd),Gs=Ws=null)}function zd(e){if(e.propertyName==="value"&&$l(Gs)){var t=[];Ed(t,Gs,e,Vc(e)),md(L0,t)}}function B0(e,t,n){e==="focusin"?(Td(),Ws=t,Gs=n,Ws.attachEvent("onpropertychange",zd)):e==="focusout"&&Td()}function P0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $l(Gs)}function V0(e,t){if(e==="click")return $l(t)}function q0(e,t){if(e==="input"||e==="change")return $l(t)}function Y0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nt=typeof Object.is=="function"?Object.is:Y0;function Xs(e,t){if(Nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var l=n[a];if(!Mc.call(t,l)||!Nt(e[l],t[l]))return!1}return!0}function _d(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rd(e,t){var n=_d(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_d(n)}}function Dd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Od(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wl(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wl(e.document)}return t}function Fc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var W0=cn&&"documentMode"in document&&11>=document.documentMode,Ga=null,Ic=null,Zs=null,ei=!1;function kd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ei||Ga==null||Ga!==Wl(a)||(a=Ga,"selectionStart"in a&&Fc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Zs&&Xs(Zs,a)||(Zs=a,a=Po(Ic,"onSelect"),0<a.length&&(t=new Kl("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Ga)))}function fa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Xa={animationend:fa("Animation","AnimationEnd"),animationiteration:fa("Animation","AnimationIteration"),animationstart:fa("Animation","AnimationStart"),transitionrun:fa("Transition","TransitionRun"),transitionstart:fa("Transition","TransitionStart"),transitioncancel:fa("Transition","TransitionCancel"),transitionend:fa("Transition","TransitionEnd")},ti={},Hd={};cn&&(Hd=document.createElement("div").style,"AnimationEvent"in window||(delete Xa.animationend.animation,delete Xa.animationiteration.animation,delete Xa.animationstart.animation),"TransitionEvent"in window||delete Xa.transitionend.transition);function ma(e){if(ti[e])return ti[e];if(!Xa[e])return e;var t=Xa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Hd)return ti[e]=t[n];return e}var Ud=ma("animationend"),Ld=ma("animationiteration"),Bd=ma("animationstart"),G0=ma("transitionrun"),X0=ma("transitionstart"),Z0=ma("transitioncancel"),Pd=ma("transitionend"),Vd=new Map,ni="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(" ");ni.push("scrollEnd");function Yt(e,t){Vd.set(e,t),ua(t,[e])}var Fl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},kt=[],Za=0,ai=0;function Il(){for(var e=Za,t=ai=Za=0;t<e;){var n=kt[t];kt[t++]=null;var a=kt[t];kt[t++]=null;var l=kt[t];kt[t++]=null;var c=kt[t];if(kt[t++]=null,a!==null&&l!==null){var f=a.pending;f===null?l.next=l:(l.next=f.next,f.next=l),a.pending=l}c!==0&&qd(n,l,c)}}function eo(e,t,n,a){kt[Za++]=e,kt[Za++]=t,kt[Za++]=n,kt[Za++]=a,ai|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function si(e,t,n,a){return eo(e,t,n,a),to(e)}function pa(e,t){return eo(e,null,null,t),to(e)}function qd(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var l=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(l=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,l&&t!==null&&(l=31-jt(n),e=c.hiddenUpdates,a=e[l],a===null?e[l]=[t]:a.push(t),t.lane=n|536870912),c):null}function to(e){if(50<hl)throw hl=0,mr=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Qa={};function Q0(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,t,n,a){return new Q0(e,t,n,a)}function li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rn(e,t){var n=e.alternate;return n===null?(n=Et(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Yd(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function no(e,t,n,a,l,c){var f=0;if(a=e,typeof e=="function")li(e)&&(f=1);else if(typeof e=="string")f=Iv(e,n,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Et(31,n,t,l),e.elementType=ae,e.lanes=c,e;case S:return ha(n.children,l,c,t);case C:f=8,l|=24;break;case k:return e=Et(12,n,t,l|2),e.elementType=k,e.lanes=c,e;case Q:return e=Et(13,n,t,l),e.elementType=Q,e.lanes=c,e;case I:return e=Et(19,n,t,l),e.elementType=I,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:f=10;break e;case z:f=9;break e;case V:f=11;break e;case W:f=14;break e;case J:f=16,a=null;break e}f=29,n=Error(i(130,e===null?"null":typeof e,"")),a=null}return t=Et(f,n,t,l),t.elementType=e,t.type=a,t.lanes=c,t}function ha(e,t,n,a){return e=Et(7,e,a,t),e.lanes=n,e}function oi(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function Wd(e){var t=Et(18,null,null,0);return t.stateNode=e,t}function ci(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Gd=new WeakMap;function Ht(e,t){if(typeof e=="object"&&e!==null){var n=Gd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Wu(t)},Gd.set(e,t),t)}return{value:e,source:t,stack:Wu(t)}}var Ka=[],Ja=0,ao=null,Qs=0,Ut=[],Lt=0,zn=null,Jt=1,$t="";function un(e,t){Ka[Ja++]=Qs,Ka[Ja++]=ao,ao=e,Qs=t}function Xd(e,t,n){Ut[Lt++]=Jt,Ut[Lt++]=$t,Ut[Lt++]=zn,zn=e;var a=Jt;e=$t;var l=32-jt(a)-1;a&=~(1<<l),n+=1;var c=32-jt(t)+l;if(30<c){var f=l-l%5;c=(a&(1<<f)-1).toString(32),a>>=f,l-=f,Jt=1<<32-jt(t)+l|n<<l|a,$t=c+e}else Jt=1<<c|n<<l|a,$t=e}function ii(e){e.return!==null&&(un(e,1),Xd(e,1,0))}function ri(e){for(;e===ao;)ao=Ka[--Ja],Ka[Ja]=null,Qs=Ka[--Ja],Ka[Ja]=null;for(;e===zn;)zn=Ut[--Lt],Ut[Lt]=null,$t=Ut[--Lt],Ut[Lt]=null,Jt=Ut[--Lt],Ut[Lt]=null}function Zd(e,t){Ut[Lt++]=Jt,Ut[Lt++]=$t,Ut[Lt++]=zn,Jt=t.id,$t=t.overflow,zn=e}var st=null,Pe=null,Me=!1,_n=null,Bt=!1,ui=Error(i(519));function Rn(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ks(Ht(t,e)),ui}function Qd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[at]=e,t[mt]=a,n){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(n=0;n<gl.length;n++)Ee(gl[n],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),cd(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),rd(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||fp(t.textContent,n)?(a.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),a.onScroll!=null&&Ee("scroll",t),a.onScrollEnd!=null&&Ee("scrollend",t),a.onClick!=null&&(t.onclick=on),t=!0):t=!1,t||Rn(e,!0)}function Kd(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:Bt=!1;return;case 27:case 3:Bt=!0;return;default:st=st.return}}function $a(e){if(e!==st)return!1;if(!Me)return Kd(e),Me=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Mr(e.type,e.memoizedProps)),n=!n),n&&Pe&&Rn(e),Kd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Pe=wp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Pe=wp(e)}else t===27?(t=Pe,Xn(e.type)?(e=Dr,Dr=null,Pe=e):Pe=t):Pe=st?Vt(e.stateNode.nextSibling):null;return!0}function xa(){Pe=st=null,Me=!1}function di(){var e=_n;return e!==null&&(vt===null?vt=e:vt.push.apply(vt,e),_n=null),e}function Ks(e){_n===null?_n=[e]:_n.push(e)}var fi=N(null),ga=null,dn=null;function Dn(e,t,n){F(fi,t._currentValue),t._currentValue=n}function fn(e){e._currentValue=fi.current,q(fi)}function mi(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function pi(e,t,n,a){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var c=l.dependencies;if(c!==null){var f=l.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=l;for(var j=0;j<t.length;j++)if(v.context===t[j]){c.lanes|=n,v=c.alternate,v!==null&&(v.lanes|=n),mi(c.return,n,e),a||(f=null);break e}c=v.next}}else if(l.tag===18){if(f=l.return,f===null)throw Error(i(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),mi(f,n,e),f=null}else f=l.child;if(f!==null)f.return=l;else for(f=l;f!==null;){if(f===e){f=null;break}if(l=f.sibling,l!==null){l.return=f.return,f=l;break}f=f.return}l=f}}function Fa(e,t,n,a){e=null;for(var l=t,c=!1;l!==null;){if(!c){if((l.flags&524288)!==0)c=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var f=l.alternate;if(f===null)throw Error(i(387));if(f=f.memoizedProps,f!==null){var v=l.type;Nt(l.pendingProps.value,f.value)||(e!==null?e.push(v):e=[v])}}else if(l===M.current){if(f=l.alternate,f===null)throw Error(i(387));f.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Sl):e=[Sl])}l=l.return}e!==null&&pi(t,e,n,a),t.flags|=262144}function so(e){for(e=e.firstContext;e!==null;){if(!Nt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function va(e){ga=e,dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return Jd(ga,e)}function lo(e,t){return ga===null&&va(e),Jd(e,t)}function Jd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},dn===null){if(e===null)throw Error(i(308));dn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else dn=dn.next=t;return n}var K0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},J0=s.unstable_scheduleCallback,$0=s.unstable_NormalPriority,Qe={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hi(){return{controller:new K0,data:new Map,refCount:0}}function Js(e){e.refCount--,e.refCount===0&&J0($0,function(){e.controller.abort()})}var $s=null,xi=0,Ia=0,es=null;function F0(e,t){if($s===null){var n=$s=[];xi=0,Ia=yr(),es={status:"pending",value:void 0,then:function(a){n.push(a)}}}return xi++,t.then($d,$d),t}function $d(){if(--xi===0&&$s!==null){es!==null&&(es.status="fulfilled");var e=$s;$s=null,Ia=0,es=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function I0(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var l=0;l<n.length;l++)(0,n[l])(t)},function(l){for(a.status="rejected",a.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),a}var Fd=D.S;D.S=function(e,t){Hm=wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&F0(e,t),Fd!==null&&Fd(e,t)};var ya=N(null);function gi(){var e=ya.current;return e!==null?e:Be.pooledCache}function oo(e,t){t===null?F(ya,ya.current):F(ya,t.pool)}function Id(){var e=gi();return e===null?null:{parent:Qe._currentValue,pool:e}}var ts=Error(i(460)),vi=Error(i(474)),co=Error(i(542)),io={then:function(){}};function ef(e){return e=e.status,e==="fulfilled"||e==="rejected"}function tf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(on,on),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,af(e),e;default:if(typeof t.status=="string")t.then(on,on);else{if(e=Be,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=a}},function(a){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,af(e),e}throw wa=t,ts}}function ba(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(wa=n,ts):n}}var wa=null;function nf(){if(wa===null)throw Error(i(459));var e=wa;return wa=null,e}function af(e){if(e===ts||e===co)throw Error(i(483))}var ns=null,Fs=0;function ro(e){var t=Fs;return Fs+=1,ns===null&&(ns=[]),tf(ns,e,t)}function Is(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function uo(e,t){throw t.$$typeof===E?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function sf(e){function t(O,T){if(e){var H=O.deletions;H===null?(O.deletions=[T],O.flags|=16):H.push(T)}}function n(O,T){if(!e)return null;for(;T!==null;)t(O,T),T=T.sibling;return null}function a(O){for(var T=new Map;O!==null;)O.key!==null?T.set(O.key,O):T.set(O.index,O),O=O.sibling;return T}function l(O,T){return O=rn(O,T),O.index=0,O.sibling=null,O}function c(O,T,H){return O.index=H,e?(H=O.alternate,H!==null?(H=H.index,H<T?(O.flags|=67108866,T):H):(O.flags|=67108866,T)):(O.flags|=1048576,T)}function f(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function v(O,T,H,Z){return T===null||T.tag!==6?(T=oi(H,O.mode,Z),T.return=O,T):(T=l(T,H),T.return=O,T)}function j(O,T,H,Z){var xe=H.type;return xe===S?G(O,T,H.props.children,Z,H.key):T!==null&&(T.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===J&&ba(xe)===T.type)?(T=l(T,H.props),Is(T,H),T.return=O,T):(T=no(H.type,H.key,H.props,null,O.mode,Z),Is(T,H),T.return=O,T)}function U(O,T,H,Z){return T===null||T.tag!==4||T.stateNode.containerInfo!==H.containerInfo||T.stateNode.implementation!==H.implementation?(T=ci(H,O.mode,Z),T.return=O,T):(T=l(T,H.children||[]),T.return=O,T)}function G(O,T,H,Z,xe){return T===null||T.tag!==7?(T=ha(H,O.mode,Z,xe),T.return=O,T):(T=l(T,H),T.return=O,T)}function $(O,T,H){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=oi(""+T,O.mode,H),T.return=O,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case A:return H=no(T.type,T.key,T.props,null,O.mode,H),Is(H,T),H.return=O,H;case R:return T=ci(T,O.mode,H),T.return=O,T;case J:return T=ba(T),$(O,T,H)}if(me(T)||te(T))return T=ha(T,O.mode,H,null),T.return=O,T;if(typeof T.then=="function")return $(O,ro(T),H);if(T.$$typeof===L)return $(O,lo(O,T),H);uo(O,T)}return null}function B(O,T,H,Z){var xe=T!==null?T.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return xe!==null?null:v(O,T,""+H,Z);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case A:return H.key===xe?j(O,T,H,Z):null;case R:return H.key===xe?U(O,T,H,Z):null;case J:return H=ba(H),B(O,T,H,Z)}if(me(H)||te(H))return xe!==null?null:G(O,T,H,Z,null);if(typeof H.then=="function")return B(O,T,ro(H),Z);if(H.$$typeof===L)return B(O,T,lo(O,H),Z);uo(O,H)}return null}function Y(O,T,H,Z,xe){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return O=O.get(H)||null,v(T,O,""+Z,xe);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case A:return O=O.get(Z.key===null?H:Z.key)||null,j(T,O,Z,xe);case R:return O=O.get(Z.key===null?H:Z.key)||null,U(T,O,Z,xe);case J:return Z=ba(Z),Y(O,T,H,Z,xe)}if(me(Z)||te(Z))return O=O.get(H)||null,G(T,O,Z,xe,null);if(typeof Z.then=="function")return Y(O,T,H,ro(Z),xe);if(Z.$$typeof===L)return Y(O,T,H,lo(T,Z),xe);uo(T,Z)}return null}function oe(O,T,H,Z){for(var xe=null,_e=null,de=T,Se=T=0,Ae=null;de!==null&&Se<H.length;Se++){de.index>Se?(Ae=de,de=null):Ae=de.sibling;var Re=B(O,de,H[Se],Z);if(Re===null){de===null&&(de=Ae);break}e&&de&&Re.alternate===null&&t(O,de),T=c(Re,T,Se),_e===null?xe=Re:_e.sibling=Re,_e=Re,de=Ae}if(Se===H.length)return n(O,de),Me&&un(O,Se),xe;if(de===null){for(;Se<H.length;Se++)de=$(O,H[Se],Z),de!==null&&(T=c(de,T,Se),_e===null?xe=de:_e.sibling=de,_e=de);return Me&&un(O,Se),xe}for(de=a(de);Se<H.length;Se++)Ae=Y(de,O,Se,H[Se],Z),Ae!==null&&(e&&Ae.alternate!==null&&de.delete(Ae.key===null?Se:Ae.key),T=c(Ae,T,Se),_e===null?xe=Ae:_e.sibling=Ae,_e=Ae);return e&&de.forEach(function($n){return t(O,$n)}),Me&&un(O,Se),xe}function ve(O,T,H,Z){if(H==null)throw Error(i(151));for(var xe=null,_e=null,de=T,Se=T=0,Ae=null,Re=H.next();de!==null&&!Re.done;Se++,Re=H.next()){de.index>Se?(Ae=de,de=null):Ae=de.sibling;var $n=B(O,de,Re.value,Z);if($n===null){de===null&&(de=Ae);break}e&&de&&$n.alternate===null&&t(O,de),T=c($n,T,Se),_e===null?xe=$n:_e.sibling=$n,_e=$n,de=Ae}if(Re.done)return n(O,de),Me&&un(O,Se),xe;if(de===null){for(;!Re.done;Se++,Re=H.next())Re=$(O,Re.value,Z),Re!==null&&(T=c(Re,T,Se),_e===null?xe=Re:_e.sibling=Re,_e=Re);return Me&&un(O,Se),xe}for(de=a(de);!Re.done;Se++,Re=H.next())Re=Y(de,O,Se,Re.value,Z),Re!==null&&(e&&Re.alternate!==null&&de.delete(Re.key===null?Se:Re.key),T=c(Re,T,Se),_e===null?xe=Re:_e.sibling=Re,_e=Re);return e&&de.forEach(function(u1){return t(O,u1)}),Me&&un(O,Se),xe}function Le(O,T,H,Z){if(typeof H=="object"&&H!==null&&H.type===S&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case A:e:{for(var xe=H.key;T!==null;){if(T.key===xe){if(xe=H.type,xe===S){if(T.tag===7){n(O,T.sibling),Z=l(T,H.props.children),Z.return=O,O=Z;break e}}else if(T.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===J&&ba(xe)===T.type){n(O,T.sibling),Z=l(T,H.props),Is(Z,H),Z.return=O,O=Z;break e}n(O,T);break}else t(O,T);T=T.sibling}H.type===S?(Z=ha(H.props.children,O.mode,Z,H.key),Z.return=O,O=Z):(Z=no(H.type,H.key,H.props,null,O.mode,Z),Is(Z,H),Z.return=O,O=Z)}return f(O);case R:e:{for(xe=H.key;T!==null;){if(T.key===xe)if(T.tag===4&&T.stateNode.containerInfo===H.containerInfo&&T.stateNode.implementation===H.implementation){n(O,T.sibling),Z=l(T,H.children||[]),Z.return=O,O=Z;break e}else{n(O,T);break}else t(O,T);T=T.sibling}Z=ci(H,O.mode,Z),Z.return=O,O=Z}return f(O);case J:return H=ba(H),Le(O,T,H,Z)}if(me(H))return oe(O,T,H,Z);if(te(H)){if(xe=te(H),typeof xe!="function")throw Error(i(150));return H=xe.call(H),ve(O,T,H,Z)}if(typeof H.then=="function")return Le(O,T,ro(H),Z);if(H.$$typeof===L)return Le(O,T,lo(O,H),Z);uo(O,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,T!==null&&T.tag===6?(n(O,T.sibling),Z=l(T,H),Z.return=O,O=Z):(n(O,T),Z=oi(H,O.mode,Z),Z.return=O,O=Z),f(O)):n(O,T)}return function(O,T,H,Z){try{Fs=0;var xe=Le(O,T,H,Z);return ns=null,xe}catch(de){if(de===ts||de===co)throw de;var _e=Et(29,de,null,O.mode);return _e.lanes=Z,_e.return=O,_e}}}var Sa=sf(!0),lf=sf(!1),On=!1;function yi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function kn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Hn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(De&2)!==0){var l=a.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),a.pending=t,t=to(e),qd(e,null,n),t}return eo(e,a,t,n),to(e)}function el(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Ju(e,n)}}function wi(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var l=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?l=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?l=c=t:c=c.next=t}else l=c=t;n={baseState:a.baseState,firstBaseUpdate:l,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Si=!1;function tl(){if(Si){var e=es;if(e!==null)throw e}}function nl(e,t,n,a){Si=!1;var l=e.updateQueue;On=!1;var c=l.firstBaseUpdate,f=l.lastBaseUpdate,v=l.shared.pending;if(v!==null){l.shared.pending=null;var j=v,U=j.next;j.next=null,f===null?c=U:f.next=U,f=j;var G=e.alternate;G!==null&&(G=G.updateQueue,v=G.lastBaseUpdate,v!==f&&(v===null?G.firstBaseUpdate=U:v.next=U,G.lastBaseUpdate=j))}if(c!==null){var $=l.baseState;f=0,G=U=j=null,v=c;do{var B=v.lane&-536870913,Y=B!==v.lane;if(Y?(Ce&B)===B:(a&B)===B){B!==0&&B===Ia&&(Si=!0),G!==null&&(G=G.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var oe=e,ve=v;B=t;var Le=n;switch(ve.tag){case 1:if(oe=ve.payload,typeof oe=="function"){$=oe.call(Le,$,B);break e}$=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=ve.payload,B=typeof oe=="function"?oe.call(Le,$,B):oe,B==null)break e;$=w({},$,B);break e;case 2:On=!0}}B=v.callback,B!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=l.callbacks,Y===null?l.callbacks=[B]:Y.push(B))}else Y={lane:B,tag:v.tag,payload:v.payload,callback:v.callback,next:null},G===null?(U=G=Y,j=$):G=G.next=Y,f|=B;if(v=v.next,v===null){if(v=l.shared.pending,v===null)break;Y=v,v=Y.next,Y.next=null,l.lastBaseUpdate=Y,l.shared.pending=null}}while(!0);G===null&&(j=$),l.baseState=j,l.firstBaseUpdate=U,l.lastBaseUpdate=G,c===null&&(l.shared.lanes=0),Vn|=f,e.lanes=f,e.memoizedState=$}}function of(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function cf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)of(n[e],t)}var as=N(null),fo=N(0);function rf(e,t){e=wn,F(fo,e),F(as,t),wn=e|t.baseLanes}function ji(){F(fo,wn),F(as,as.current)}function Ni(){wn=fo.current,q(as),q(fo)}var Ct=N(null),Pt=null;function Un(e){var t=e.alternate;F(Ge,Ge.current&1),F(Ct,e),Pt===null&&(t===null||as.current!==null||t.memoizedState!==null)&&(Pt=e)}function Ei(e){F(Ge,Ge.current),F(Ct,e),Pt===null&&(Pt=e)}function uf(e){e.tag===22?(F(Ge,Ge.current),F(Ct,e),Pt===null&&(Pt=e)):Ln()}function Ln(){F(Ge,Ge.current),F(Ct,Ct.current)}function At(e){q(Ct),Pt===e&&(Pt=null),q(Ge)}var Ge=N(0);function mo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||_r(n)||Rr(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mn=0,we=null,He=null,Ke=null,po=!1,ss=!1,ja=!1,ho=0,al=0,ls=null,ev=0;function Ye(){throw Error(i(321))}function Ci(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Nt(e[n],t[n]))return!1;return!0}function Ai(e,t,n,a,l,c){return mn=c,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Zf:qi,ja=!1,c=n(a,l),ja=!1,ss&&(c=ff(t,n,a,l)),df(e),c}function df(e){D.H=ol;var t=He!==null&&He.next!==null;if(mn=0,Ke=He=we=null,po=!1,al=0,ls=null,t)throw Error(i(300));e===null||Je||(e=e.dependencies,e!==null&&so(e)&&(Je=!0))}function ff(e,t,n,a){we=e;var l=0;do{if(ss&&(ls=null),al=0,ss=!1,25<=l)throw Error(i(301));if(l+=1,Ke=He=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}D.H=Qf,c=t(n,a)}while(ss);return c}function tv(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?sl(t):t,e=e.useState()[0],(He!==null?He.memoizedState:null)!==e&&(we.flags|=1024),t}function Mi(){var e=ho!==0;return ho=0,e}function Ti(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function zi(e){if(po){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}po=!1}mn=0,Ke=He=we=null,ss=!1,al=ho=0,ls=null}function ft(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?we.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Xe(){if(He===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=Ke===null?we.memoizedState:Ke.next;if(t!==null)Ke=t,He=e;else{if(e===null)throw we.alternate===null?Error(i(467)):Error(i(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},Ke===null?we.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function xo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sl(e){var t=al;return al+=1,ls===null&&(ls=[]),e=tf(ls,e,t),t=we,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Zf:qi),e}function go(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return sl(e);if(e.$$typeof===L)return lt(e)}throw Error(i(438,String(e)))}function _i(e){var t=null,n=we.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=we.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=xo(),we.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=ue;return t.index++,n}function pn(e,t){return typeof t=="function"?t(e):t}function vo(e){var t=Xe();return Ri(t,He,e)}function Ri(e,t,n){var a=e.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=n;var l=e.baseQueue,c=a.pending;if(c!==null){if(l!==null){var f=l.next;l.next=c.next,c.next=f}t.baseQueue=l=c,a.pending=null}if(c=e.baseState,l===null)e.memoizedState=c;else{t=l.next;var v=f=null,j=null,U=t,G=!1;do{var $=U.lane&-536870913;if($!==U.lane?(Ce&$)===$:(mn&$)===$){var B=U.revertLane;if(B===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),$===Ia&&(G=!0);else if((mn&B)===B){U=U.next,B===Ia&&(G=!0);continue}else $={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},j===null?(v=j=$,f=c):j=j.next=$,we.lanes|=B,Vn|=B;$=U.action,ja&&n(c,$),c=U.hasEagerState?U.eagerState:n(c,$)}else B={lane:$,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},j===null?(v=j=B,f=c):j=j.next=B,we.lanes|=$,Vn|=$;U=U.next}while(U!==null&&U!==t);if(j===null?f=c:j.next=v,!Nt(c,e.memoizedState)&&(Je=!0,G&&(n=es,n!==null)))throw n;e.memoizedState=c,e.baseState=f,e.baseQueue=j,a.lastRenderedState=c}return l===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Di(e){var t=Xe(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var a=n.dispatch,l=n.pending,c=t.memoizedState;if(l!==null){n.pending=null;var f=l=l.next;do c=e(c,f.action),f=f.next;while(f!==l);Nt(c,t.memoizedState)||(Je=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function mf(e,t,n){var a=we,l=Xe(),c=Me;if(c){if(n===void 0)throw Error(i(407));n=n()}else n=t();var f=!Nt((He||l).memoizedState,n);if(f&&(l.memoizedState=n,Je=!0),l=l.queue,Hi(xf.bind(null,a,l,e),[e]),l.getSnapshot!==t||f||Ke!==null&&Ke.memoizedState.tag&1){if(a.flags|=2048,os(9,{destroy:void 0},hf.bind(null,a,l,n,t),null),Be===null)throw Error(i(349));c||(mn&127)!==0||pf(a,t,n)}return n}function pf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=we.updateQueue,t===null?(t=xo(),we.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hf(e,t,n,a){t.value=n,t.getSnapshot=a,gf(t)&&vf(e)}function xf(e,t,n){return n(function(){gf(t)&&vf(e)})}function gf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nt(e,n)}catch{return!0}}function vf(e){var t=pa(e,2);t!==null&&yt(t,e,2)}function Oi(e){var t=ft();if(typeof e=="function"){var n=e;if(e=n(),ja){An(!0);try{n()}finally{An(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:e},t}function yf(e,t,n,a){return e.baseState=n,Ri(e,He,typeof a=="function"?a:pn)}function nv(e,t,n,a,l){if(wo(e))throw Error(i(485));if(e=t.action,e!==null){var c={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};D.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,bf(t,c)):(c.next=n.next,t.pending=n.next=c)}}function bf(e,t){var n=t.action,a=t.payload,l=e.state;if(t.isTransition){var c=D.T,f={};D.T=f;try{var v=n(l,a),j=D.S;j!==null&&j(f,v),wf(e,t,v)}catch(U){ki(e,t,U)}finally{c!==null&&f.types!==null&&(c.types=f.types),D.T=c}}else try{c=n(l,a),wf(e,t,c)}catch(U){ki(e,t,U)}}function wf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Sf(e,t,a)},function(a){return ki(e,t,a)}):Sf(e,t,n)}function Sf(e,t,n){t.status="fulfilled",t.value=n,jf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,bf(e,n)))}function ki(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,jf(t),t=t.next;while(t!==a)}e.action=null}function jf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Nf(e,t){return t}function Ef(e,t){if(Me){var n=Be.formState;if(n!==null){e:{var a=we;if(Me){if(Pe){t:{for(var l=Pe,c=Bt;l.nodeType!==8;){if(!c){l=null;break t}if(l=Vt(l.nextSibling),l===null){l=null;break t}}c=l.data,l=c==="F!"||c==="F"?l:null}if(l){Pe=Vt(l.nextSibling),a=l.data==="F!";break e}}Rn(a)}a=!1}a&&(t=n[0])}}return n=ft(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nf,lastRenderedState:t},n.queue=a,n=Wf.bind(null,we,a),a.dispatch=n,a=Oi(!1),c=Vi.bind(null,we,!1,a.queue),a=ft(),l={state:t,dispatch:null,action:e,pending:null},a.queue=l,n=nv.bind(null,we,l,c,n),l.dispatch=n,a.memoizedState=e,[t,n,!1]}function Cf(e){var t=Xe();return Af(t,He,e)}function Af(e,t,n){if(t=Ri(e,t,Nf)[0],e=vo(pn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=sl(t)}catch(f){throw f===ts?co:f}else a=t;t=Xe();var l=t.queue,c=l.dispatch;return n!==t.memoizedState&&(we.flags|=2048,os(9,{destroy:void 0},av.bind(null,l,n),null)),[a,c,e]}function av(e,t){e.action=t}function Mf(e){var t=Xe(),n=He;if(n!==null)return Af(t,n,e);Xe(),t=t.memoizedState,n=Xe();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function os(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=we.updateQueue,t===null&&(t=xo(),we.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Tf(){return Xe().memoizedState}function yo(e,t,n,a){var l=ft();we.flags|=e,l.memoizedState=os(1|t,{destroy:void 0},n,a===void 0?null:a)}function bo(e,t,n,a){var l=Xe();a=a===void 0?null:a;var c=l.memoizedState.inst;He!==null&&a!==null&&Ci(a,He.memoizedState.deps)?l.memoizedState=os(t,c,n,a):(we.flags|=e,l.memoizedState=os(1|t,c,n,a))}function zf(e,t){yo(8390656,8,e,t)}function Hi(e,t){bo(2048,8,e,t)}function sv(e){we.flags|=4;var t=we.updateQueue;if(t===null)t=xo(),we.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function _f(e){var t=Xe().memoizedState;return sv({ref:t,nextImpl:e}),function(){if((De&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Rf(e,t){return bo(4,2,e,t)}function Df(e,t){return bo(4,4,e,t)}function Of(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function kf(e,t,n){n=n!=null?n.concat([e]):null,bo(4,4,Of.bind(null,t,e),n)}function Ui(){}function Hf(e,t){var n=Xe();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Ci(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Uf(e,t){var n=Xe();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Ci(t,a[1]))return a[0];if(a=e(),ja){An(!0);try{e()}finally{An(!1)}}return n.memoizedState=[a,t],a}function Li(e,t,n){return n===void 0||(mn&1073741824)!==0&&(Ce&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Lm(),we.lanes|=e,Vn|=e,n)}function Lf(e,t,n,a){return Nt(n,t)?n:as.current!==null?(e=Li(e,n,a),Nt(e,t)||(Je=!0),e):(mn&42)===0||(mn&1073741824)!==0&&(Ce&261930)===0?(Je=!0,e.memoizedState=n):(e=Lm(),we.lanes|=e,Vn|=e,t)}function Bf(e,t,n,a,l){var c=X.p;X.p=c!==0&&8>c?c:8;var f=D.T,v={};D.T=v,Vi(e,!1,t,n);try{var j=l(),U=D.S;if(U!==null&&U(v,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var G=I0(j,a);ll(e,t,G,zt(e))}else ll(e,t,a,zt(e))}catch($){ll(e,t,{then:function(){},status:"rejected",reason:$},zt())}finally{X.p=c,f!==null&&v.types!==null&&(f.types=v.types),D.T=f}}function lv(){}function Bi(e,t,n,a){if(e.tag!==5)throw Error(i(476));var l=Pf(e).queue;Bf(e,l,t,P,n===null?lv:function(){return Vf(e),n(a)})}function Pf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:P},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Vf(e){var t=Pf(e);t.next===null&&(t=e.alternate.memoizedState),ll(e,t.next.queue,{},zt())}function Pi(){return lt(Sl)}function qf(){return Xe().memoizedState}function Yf(){return Xe().memoizedState}function ov(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=zt();e=kn(n);var a=Hn(t,e,n);a!==null&&(yt(a,t,n),el(a,t,n)),t={cache:hi()},e.payload=t;return}t=t.return}}function cv(e,t,n){var a=zt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},wo(e)?Gf(t,n):(n=si(e,t,n,a),n!==null&&(yt(n,e,a),Xf(n,t,a)))}function Wf(e,t,n){var a=zt();ll(e,t,n,a)}function ll(e,t,n,a){var l={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(wo(e))Gf(t,l);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var f=t.lastRenderedState,v=c(f,n);if(l.hasEagerState=!0,l.eagerState=v,Nt(v,f))return eo(e,t,l,0),Be===null&&Il(),!1}catch{}if(n=si(e,t,l,a),n!==null)return yt(n,e,a),Xf(n,t,a),!0}return!1}function Vi(e,t,n,a){if(a={lane:2,revertLane:yr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},wo(e)){if(t)throw Error(i(479))}else t=si(e,n,a,2),t!==null&&yt(t,e,2)}function wo(e){var t=e.alternate;return e===we||t!==null&&t===we}function Gf(e,t){ss=po=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xf(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Ju(e,n)}}var ol={readContext:lt,use:go,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};ol.useEffectEvent=Ye;var Zf={readContext:lt,use:go,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:zf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,yo(4194308,4,Of.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4194308,4,e,t)},useInsertionEffect:function(e,t){yo(4,2,e,t)},useMemo:function(e,t){var n=ft();t=t===void 0?null:t;var a=e();if(ja){An(!0);try{e()}finally{An(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=ft();if(n!==void 0){var l=n(t);if(ja){An(!0);try{n(t)}finally{An(!1)}}}else l=t;return a.memoizedState=a.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},a.queue=e,e=e.dispatch=cv.bind(null,we,e),[a.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:function(e){e=Oi(e);var t=e.queue,n=Wf.bind(null,we,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ui,useDeferredValue:function(e,t){var n=ft();return Li(n,e,t)},useTransition:function(){var e=Oi(!1);return e=Bf.bind(null,we,e.queue,!0,!1),ft().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=we,l=ft();if(Me){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Be===null)throw Error(i(349));(Ce&127)!==0||pf(a,t,n)}l.memoizedState=n;var c={value:n,getSnapshot:t};return l.queue=c,zf(xf.bind(null,a,c,e),[e]),a.flags|=2048,os(9,{destroy:void 0},hf.bind(null,a,c,n,t),null),n},useId:function(){var e=ft(),t=Be.identifierPrefix;if(Me){var n=$t,a=Jt;n=(a&~(1<<32-jt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=ho++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=ev++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Pi,useFormState:Ef,useActionState:Ef,useOptimistic:function(e){var t=ft();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Vi.bind(null,we,!0,n),n.dispatch=t,[e,t]},useMemoCache:_i,useCacheRefresh:function(){return ft().memoizedState=ov.bind(null,we)},useEffectEvent:function(e){var t=ft(),n={impl:e};return t.memoizedState=n,function(){if((De&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},qi={readContext:lt,use:go,useCallback:Hf,useContext:lt,useEffect:Hi,useImperativeHandle:kf,useInsertionEffect:Rf,useLayoutEffect:Df,useMemo:Uf,useReducer:vo,useRef:Tf,useState:function(){return vo(pn)},useDebugValue:Ui,useDeferredValue:function(e,t){var n=Xe();return Lf(n,He.memoizedState,e,t)},useTransition:function(){var e=vo(pn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:sl(e),t]},useSyncExternalStore:mf,useId:qf,useHostTransitionStatus:Pi,useFormState:Cf,useActionState:Cf,useOptimistic:function(e,t){var n=Xe();return yf(n,He,e,t)},useMemoCache:_i,useCacheRefresh:Yf};qi.useEffectEvent=_f;var Qf={readContext:lt,use:go,useCallback:Hf,useContext:lt,useEffect:Hi,useImperativeHandle:kf,useInsertionEffect:Rf,useLayoutEffect:Df,useMemo:Uf,useReducer:Di,useRef:Tf,useState:function(){return Di(pn)},useDebugValue:Ui,useDeferredValue:function(e,t){var n=Xe();return He===null?Li(n,e,t):Lf(n,He.memoizedState,e,t)},useTransition:function(){var e=Di(pn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:sl(e),t]},useSyncExternalStore:mf,useId:qf,useHostTransitionStatus:Pi,useFormState:Mf,useActionState:Mf,useOptimistic:function(e,t){var n=Xe();return He!==null?yf(n,He,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:_i,useCacheRefresh:Yf};Qf.useEffectEvent=_f;function Yi(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:w({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Wi={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=zt(),l=kn(a);l.payload=t,n!=null&&(l.callback=n),t=Hn(e,l,a),t!==null&&(yt(t,e,a),el(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=zt(),l=kn(a);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Hn(e,l,a),t!==null&&(yt(t,e,a),el(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=zt(),a=kn(n);a.tag=2,t!=null&&(a.callback=t),t=Hn(e,a,n),t!==null&&(yt(t,e,n),el(t,e,n))}};function Kf(e,t,n,a,l,c,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,f):t.prototype&&t.prototype.isPureReactComponent?!Xs(n,a)||!Xs(l,c):!0}function Jf(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Wi.enqueueReplaceState(t,t.state,null)}function Na(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=w({},n));for(var l in e)n[l]===void 0&&(n[l]=e[l])}return n}function $f(e){Fl(e)}function Ff(e){console.error(e)}function If(e){Fl(e)}function So(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function em(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Gi(e,t,n){return n=kn(n),n.tag=3,n.payload={element:null},n.callback=function(){So(e,t)},n}function tm(e){return e=kn(e),e.tag=3,e}function nm(e,t,n,a){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var c=a.value;e.payload=function(){return l(c)},e.callback=function(){em(t,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){em(t,n,a),typeof l!="function"&&(qn===null?qn=new Set([this]):qn.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function iv(e,t,n,a,l){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Fa(t,n,l,!0),n=Ct.current,n!==null){switch(n.tag){case 31:case 13:return Pt===null?Oo():n.alternate===null&&We===0&&(We=3),n.flags&=-257,n.flags|=65536,n.lanes=l,a===io?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),xr(e,a,l)),!1;case 22:return n.flags|=65536,a===io?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),xr(e,a,l)),!1}throw Error(i(435,n.tag))}return xr(e,a,l),Oo(),!1}if(Me)return t=Ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,a!==ui&&(e=Error(i(422),{cause:a}),Ks(Ht(e,n)))):(a!==ui&&(t=Error(i(423),{cause:a}),Ks(Ht(t,n))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,a=Ht(a,n),l=Gi(e.stateNode,a,l),wi(e,l),We!==4&&(We=2)),!1;var c=Error(i(520),{cause:a});if(c=Ht(c,n),pl===null?pl=[c]:pl.push(c),We!==4&&(We=2),t===null)return!0;a=Ht(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=l&-l,n.lanes|=e,e=Gi(n.stateNode,a,e),wi(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(qn===null||!qn.has(c))))return n.flags|=65536,l&=-l,n.lanes|=l,l=tm(l),nm(l,e,n,a),wi(n,l),!1}n=n.return}while(n!==null);return!1}var Xi=Error(i(461)),Je=!1;function ot(e,t,n,a){t.child=e===null?lf(t,null,n,a):Sa(t,e.child,n,a)}function am(e,t,n,a,l){n=n.render;var c=t.ref;if("ref"in a){var f={};for(var v in a)v!=="ref"&&(f[v]=a[v])}else f=a;return va(t),a=Ai(e,t,n,f,c,l),v=Mi(),e!==null&&!Je?(Ti(e,t,l),hn(e,t,l)):(Me&&v&&ii(t),t.flags|=1,ot(e,t,a,l),t.child)}function sm(e,t,n,a,l){if(e===null){var c=n.type;return typeof c=="function"&&!li(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,lm(e,t,c,a,l)):(e=no(n.type,null,a,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!er(e,l)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:Xs,n(f,a)&&e.ref===t.ref)return hn(e,t,l)}return t.flags|=1,e=rn(c,a),e.ref=t.ref,e.return=t,t.child=e}function lm(e,t,n,a,l){if(e!==null){var c=e.memoizedProps;if(Xs(c,a)&&e.ref===t.ref)if(Je=!1,t.pendingProps=a=c,er(e,l))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,hn(e,t,l)}return Zi(e,t,n,a,l)}function om(e,t,n,a){var l=a.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(a=t.child=e.child,l=0;a!==null;)l=l|a.lanes|a.childLanes,a=a.sibling;a=l&~c}else a=0,t.child=null;return cm(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&oo(t,c!==null?c.cachePool:null),c!==null?rf(t,c):ji(),uf(t);else return a=t.lanes=536870912,cm(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(oo(t,c.cachePool),rf(t,c),Ln(),t.memoizedState=null):(e!==null&&oo(t,null),ji(),Ln());return ot(e,t,l,n),t.child}function cl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cm(e,t,n,a,l){var c=gi();return c=c===null?null:{parent:Qe._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&oo(t,null),ji(),uf(t),e!==null&&Fa(e,t,a,!0),t.childLanes=l,null}function jo(e,t){return t=Eo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function im(e,t,n){return Sa(t,e.child,null,n),e=jo(t,t.pendingProps),e.flags|=2,At(t),t.memoizedState=null,e}function rv(e,t,n){var a=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Me){if(a.mode==="hidden")return e=jo(t,a),t.lanes=536870912,cl(null,e);if(Ei(t),(e=Pe)?(e=bp(e,Bt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:zn!==null?{id:Jt,overflow:$t}:null,retryLane:536870912,hydrationErrors:null},n=Wd(e),n.return=t,t.child=n,st=t,Pe=null)):e=null,e===null)throw Rn(t);return t.lanes=536870912,null}return jo(t,a)}var c=e.memoizedState;if(c!==null){var f=c.dehydrated;if(Ei(t),l)if(t.flags&256)t.flags&=-257,t=im(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(Je||Fa(e,t,n,!1),l=(n&e.childLanes)!==0,Je||l){if(a=Be,a!==null&&(f=$u(a,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,pa(e,f),yt(a,e,f),Xi;Oo(),t=im(e,t,n)}else e=c.treeContext,Pe=Vt(f.nextSibling),st=t,Me=!0,_n=null,Bt=!1,e!==null&&Zd(t,e),t=jo(t,a),t.flags|=4096;return t}return e=rn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function No(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Zi(e,t,n,a,l){return va(t),n=Ai(e,t,n,a,void 0,l),a=Mi(),e!==null&&!Je?(Ti(e,t,l),hn(e,t,l)):(Me&&a&&ii(t),t.flags|=1,ot(e,t,n,l),t.child)}function rm(e,t,n,a,l,c){return va(t),t.updateQueue=null,n=ff(t,a,n,l),df(e),a=Mi(),e!==null&&!Je?(Ti(e,t,c),hn(e,t,c)):(Me&&a&&ii(t),t.flags|=1,ot(e,t,n,c),t.child)}function um(e,t,n,a,l){if(va(t),t.stateNode===null){var c=Qa,f=n.contextType;typeof f=="object"&&f!==null&&(c=lt(f)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Wi,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},yi(t),f=n.contextType,c.context=typeof f=="object"&&f!==null?lt(f):Qa,c.state=t.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Yi(t,n,f,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&Wi.enqueueReplaceState(c,c.state,null),nl(t,a,c,l),tl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,j=Na(n,v);c.props=j;var U=c.context,G=n.contextType;f=Qa,typeof G=="object"&&G!==null&&(f=lt(G));var $=n.getDerivedStateFromProps;G=typeof $=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,G||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||U!==f)&&Jf(t,c,a,f),On=!1;var B=t.memoizedState;c.state=B,nl(t,a,c,l),tl(),U=t.memoizedState,v||B!==U||On?(typeof $=="function"&&(Yi(t,n,$,a),U=t.memoizedState),(j=On||Kf(t,n,j,a,B,U,f))?(G||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=U),c.props=a,c.state=U,c.context=f,a=j):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,bi(e,t),f=t.memoizedProps,G=Na(n,f),c.props=G,$=t.pendingProps,B=c.context,U=n.contextType,j=Qa,typeof U=="object"&&U!==null&&(j=lt(U)),v=n.getDerivedStateFromProps,(U=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==$||B!==j)&&Jf(t,c,a,j),On=!1,B=t.memoizedState,c.state=B,nl(t,a,c,l),tl();var Y=t.memoizedState;f!==$||B!==Y||On||e!==null&&e.dependencies!==null&&so(e.dependencies)?(typeof v=="function"&&(Yi(t,n,v,a),Y=t.memoizedState),(G=On||Kf(t,n,G,a,B,Y,j)||e!==null&&e.dependencies!==null&&so(e.dependencies))?(U||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,Y,j),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,Y,j)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=Y),c.props=a,c.state=Y,c.context=j,a=G):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,No(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=Sa(t,e.child,null,l),t.child=Sa(t,null,n,l)):ot(e,t,n,l),t.memoizedState=c.state,e=t.child):e=hn(e,t,l),e}function dm(e,t,n,a){return xa(),t.flags|=256,ot(e,t,n,a),t.child}var Qi={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ki(e){return{baseLanes:e,cachePool:Id()}}function Ji(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Tt),e}function fm(e,t,n){var a=t.pendingProps,l=!1,c=(t.flags&128)!==0,f;if((f=c)||(f=e!==null&&e.memoizedState===null?!1:(Ge.current&2)!==0),f&&(l=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(Me){if(l?Un(t):Ln(),(e=Pe)?(e=bp(e,Bt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:zn!==null?{id:Jt,overflow:$t}:null,retryLane:536870912,hydrationErrors:null},n=Wd(e),n.return=t,t.child=n,st=t,Pe=null)):e=null,e===null)throw Rn(t);return Rr(e)?t.lanes=32:t.lanes=536870912,null}var v=a.children;return a=a.fallback,l?(Ln(),l=t.mode,v=Eo({mode:"hidden",children:v},l),a=ha(a,l,n,null),v.return=t,a.return=t,v.sibling=a,t.child=v,a=t.child,a.memoizedState=Ki(n),a.childLanes=Ji(e,f,n),t.memoizedState=Qi,cl(null,a)):(Un(t),$i(t,v))}var j=e.memoizedState;if(j!==null&&(v=j.dehydrated,v!==null)){if(c)t.flags&256?(Un(t),t.flags&=-257,t=Fi(e,t,n)):t.memoizedState!==null?(Ln(),t.child=e.child,t.flags|=128,t=null):(Ln(),v=a.fallback,l=t.mode,a=Eo({mode:"visible",children:a.children},l),v=ha(v,l,n,null),v.flags|=2,a.return=t,v.return=t,a.sibling=v,t.child=a,Sa(t,e.child,null,n),a=t.child,a.memoizedState=Ki(n),a.childLanes=Ji(e,f,n),t.memoizedState=Qi,t=cl(null,a));else if(Un(t),Rr(v)){if(f=v.nextSibling&&v.nextSibling.dataset,f)var U=f.dgst;f=U,a=Error(i(419)),a.stack="",a.digest=f,Ks({value:a,source:null,stack:null}),t=Fi(e,t,n)}else if(Je||Fa(e,t,n,!1),f=(n&e.childLanes)!==0,Je||f){if(f=Be,f!==null&&(a=$u(f,n),a!==0&&a!==j.retryLane))throw j.retryLane=a,pa(e,a),yt(f,e,a),Xi;_r(v)||Oo(),t=Fi(e,t,n)}else _r(v)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,Pe=Vt(v.nextSibling),st=t,Me=!0,_n=null,Bt=!1,e!==null&&Zd(t,e),t=$i(t,a.children),t.flags|=4096);return t}return l?(Ln(),v=a.fallback,l=t.mode,j=e.child,U=j.sibling,a=rn(j,{mode:"hidden",children:a.children}),a.subtreeFlags=j.subtreeFlags&65011712,U!==null?v=rn(U,v):(v=ha(v,l,n,null),v.flags|=2),v.return=t,a.return=t,a.sibling=v,t.child=a,cl(null,a),a=t.child,v=e.child.memoizedState,v===null?v=Ki(n):(l=v.cachePool,l!==null?(j=Qe._currentValue,l=l.parent!==j?{parent:j,pool:j}:l):l=Id(),v={baseLanes:v.baseLanes|n,cachePool:l}),a.memoizedState=v,a.childLanes=Ji(e,f,n),t.memoizedState=Qi,cl(e.child,a)):(Un(t),n=e.child,e=n.sibling,n=rn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=n,t.memoizedState=null,n)}function $i(e,t){return t=Eo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Eo(e,t){return e=Et(22,e,null,t),e.lanes=0,e}function Fi(e,t,n){return Sa(t,e.child,null,n),e=$i(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mm(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),mi(e.return,t,n)}function Ii(e,t,n,a,l,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:l,treeForkCount:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=l,f.treeForkCount=c)}function pm(e,t,n){var a=t.pendingProps,l=a.revealOrder,c=a.tail;a=a.children;var f=Ge.current,v=(f&2)!==0;if(v?(f=f&1|2,t.flags|=128):f&=1,F(Ge,f),ot(e,t,a,n),a=Me?Qs:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mm(e,n,t);else if(e.tag===19)mm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&mo(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Ii(t,!1,l,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&mo(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Ii(t,!0,n,null,c,a);break;case"together":Ii(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function hn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Vn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Fa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=rn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=rn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function er(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&so(e)))}function uv(e,t,n){switch(t.tag){case 3:_(t,t.stateNode.containerInfo),Dn(t,Qe,e.memoizedState.cache),xa();break;case 27:case 5:he(t);break;case 4:_(t,t.stateNode.containerInfo);break;case 10:Dn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ei(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Un(t),t.flags|=128,null):(n&t.child.childLanes)!==0?fm(e,t,n):(Un(t),e=hn(e,t,n),e!==null?e.sibling:null);Un(t);break;case 19:var l=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Fa(e,t,n,!1),a=(n&t.childLanes)!==0),l){if(a)return pm(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),F(Ge,Ge.current),a)break;return null;case 22:return t.lanes=0,om(e,t,n,t.pendingProps);case 24:Dn(t,Qe,e.memoizedState.cache)}return hn(e,t,n)}function hm(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!er(e,n)&&(t.flags&128)===0)return Je=!1,uv(e,t,n);Je=(e.flags&131072)!==0}else Je=!1,Me&&(t.flags&1048576)!==0&&Xd(t,Qs,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ba(t.elementType),t.type=e,typeof e=="function")li(e)?(a=Na(e,a),t.tag=1,t=um(null,t,e,a,n)):(t.tag=0,t=Zi(null,t,e,a,n));else{if(e!=null){var l=e.$$typeof;if(l===V){t.tag=11,t=am(null,t,e,a,n);break e}else if(l===W){t.tag=14,t=sm(null,t,e,a,n);break e}}throw t=re(e)||e,Error(i(306,t,""))}}return t;case 0:return Zi(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,l=Na(a,t.pendingProps),um(e,t,a,l,n);case 3:e:{if(_(t,t.stateNode.containerInfo),e===null)throw Error(i(387));a=t.pendingProps;var c=t.memoizedState;l=c.element,bi(e,t),nl(t,a,null,n);var f=t.memoizedState;if(a=f.cache,Dn(t,Qe,a),a!==c.cache&&pi(t,[Qe],n,!0),tl(),a=f.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=dm(e,t,a,n);break e}else if(a!==l){l=Ht(Error(i(424)),t),Ks(l),t=dm(e,t,a,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Pe=Vt(e.firstChild),st=t,Me=!0,_n=null,Bt=!0,n=lf(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xa(),a===l){t=hn(e,t,n);break e}ot(e,t,a,n)}t=t.child}return t;case 26:return No(e,t),e===null?(n=Cp(t.type,null,t.pendingProps,null))?t.memoizedState=n:Me||(n=t.type,e=t.pendingProps,a=Vo(K.current).createElement(n),a[at]=t,a[mt]=e,ct(a,n,e),tt(a),t.stateNode=a):t.memoizedState=Cp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return he(t),e===null&&Me&&(a=t.stateNode=jp(t.type,t.pendingProps,K.current),st=t,Bt=!0,l=Pe,Xn(t.type)?(Dr=l,Pe=Vt(a.firstChild)):Pe=l),ot(e,t,t.pendingProps.children,n),No(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Me&&((l=a=Pe)&&(a=Pv(a,t.type,t.pendingProps,Bt),a!==null?(t.stateNode=a,st=t,Pe=Vt(a.firstChild),Bt=!1,l=!0):l=!1),l||Rn(t)),he(t),l=t.type,c=t.pendingProps,f=e!==null?e.memoizedProps:null,a=c.children,Mr(l,c)?a=null:f!==null&&Mr(l,f)&&(t.flags|=32),t.memoizedState!==null&&(l=Ai(e,t,tv,null,null,n),Sl._currentValue=l),No(e,t),ot(e,t,a,n),t.child;case 6:return e===null&&Me&&((e=n=Pe)&&(n=Vv(n,t.pendingProps,Bt),n!==null?(t.stateNode=n,st=t,Pe=null,e=!0):e=!1),e||Rn(t)),null;case 13:return fm(e,t,n);case 4:return _(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Sa(t,null,a,n):ot(e,t,a,n),t.child;case 11:return am(e,t,t.type,t.pendingProps,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Dn(t,t.type,a.value),ot(e,t,a.children,n),t.child;case 9:return l=t.type._context,a=t.pendingProps.children,va(t),l=lt(l),a=a(l),t.flags|=1,ot(e,t,a,n),t.child;case 14:return sm(e,t,t.type,t.pendingProps,n);case 15:return lm(e,t,t.type,t.pendingProps,n);case 19:return pm(e,t,n);case 31:return rv(e,t,n);case 22:return om(e,t,n,t.pendingProps);case 24:return va(t),a=lt(Qe),e===null?(l=gi(),l===null&&(l=Be,c=hi(),l.pooledCache=c,c.refCount++,c!==null&&(l.pooledCacheLanes|=n),l=c),t.memoizedState={parent:a,cache:l},yi(t),Dn(t,Qe,l)):((e.lanes&n)!==0&&(bi(e,t),nl(t,null,null,n),tl()),l=e.memoizedState,c=t.memoizedState,l.parent!==a?(l={parent:a,cache:a},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),Dn(t,Qe,a)):(a=c.cache,Dn(t,Qe,a),a!==l.cache&&pi(t,[Qe],n,!0))),ot(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function xn(e){e.flags|=4}function tr(e,t,n,a,l){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(qm())e.flags|=8192;else throw wa=io,vi}else e.flags&=-16777217}function xm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!_p(t))if(qm())e.flags|=8192;else throw wa=io,vi}function Co(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Qu():536870912,e.lanes|=t,us|=t)}function il(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags&65011712,a|=l.flags&65011712,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags,a|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function dv(e,t,n){var a=t.pendingProps;switch(ri(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return Ve(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),fn(Qe),ne(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&($a(t)?xn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,di())),Ve(t),null;case 26:var l=t.type,c=t.memoizedState;return e===null?(xn(t),c!==null?(Ve(t),xm(t,c)):(Ve(t),tr(t,l,null,a,n))):c?c!==e.memoizedState?(xn(t),Ve(t),xm(t,c)):(Ve(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&xn(t),Ve(t),tr(t,l,e,a,n)),null;case 27:if(ye(t),n=K.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&xn(t);else{if(!a){if(t.stateNode===null)throw Error(i(166));return Ve(t),null}e=ee.current,$a(t)?Qd(t):(e=jp(l,a,n),t.stateNode=e,xn(t))}return Ve(t),null;case 5:if(ye(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&xn(t);else{if(!a){if(t.stateNode===null)throw Error(i(166));return Ve(t),null}if(c=ee.current,$a(t))Qd(t);else{var f=Vo(K.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?f.createElement(l,{is:a.is}):f.createElement(l)}}c[at]=t,c[mt]=a;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=c;e:switch(ct(c,l,a),l){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&xn(t)}}return Ve(t),tr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&xn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(i(166));if(e=K.current,$a(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,l=st,l!==null)switch(l.tag){case 27:case 5:a=l.memoizedProps}e[at]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||fp(e.nodeValue,n)),e||Rn(t,!0)}else e=Vo(e).createTextNode(a),e[at]=t,t.stateNode=e}return Ve(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=$a(t),n!==null){if(e===null){if(!a)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[at]=t}else xa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),e=!1}else n=di(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(At(t),t):(At(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Ve(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=$a(t),a!==null&&a.dehydrated!==null){if(e===null){if(!l)throw Error(i(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(i(317));l[at]=t}else xa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),l=!1}else l=di(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(At(t),t):(At(t),null)}return At(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,l=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(l=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==l&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Co(t,t.updateQueue),Ve(t),null);case 4:return ne(),e===null&&jr(t.stateNode.containerInfo),Ve(t),null;case 10:return fn(t.type),Ve(t),null;case 19:if(q(Ge),a=t.memoizedState,a===null)return Ve(t),null;if(l=(t.flags&128)!==0,c=a.rendering,c===null)if(l)il(a,!1);else{if(We!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=mo(e),c!==null){for(t.flags|=128,il(a,!1),e=c.updateQueue,t.updateQueue=e,Co(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Yd(n,e),n=n.sibling;return F(Ge,Ge.current&1|2),Me&&un(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&wt()>_o&&(t.flags|=128,l=!0,il(a,!1),t.lanes=4194304)}else{if(!l)if(e=mo(c),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Co(t,e),il(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!Me)return Ve(t),null}else 2*wt()-a.renderingStartTime>_o&&n!==536870912&&(t.flags|=128,l=!0,il(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=wt(),e.sibling=null,n=Ge.current,F(Ge,l?n&1|2:n&1),Me&&un(t,a.treeForkCount),e):(Ve(t),null);case 22:case 23:return At(t),Ni(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),n=t.updateQueue,n!==null&&Co(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&q(ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fn(Qe),Ve(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function fv(e,t){switch(ri(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fn(Qe),ne(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ye(t),null;case 31:if(t.memoizedState!==null){if(At(t),t.alternate===null)throw Error(i(340));xa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(At(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));xa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ge),null;case 4:return ne(),null;case 10:return fn(t.type),null;case 22:case 23:return At(t),Ni(),e!==null&&q(ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fn(Qe),null;case 25:return null;default:return null}}function gm(e,t){switch(ri(t),t.tag){case 3:fn(Qe),ne();break;case 26:case 27:case 5:ye(t);break;case 4:ne();break;case 31:t.memoizedState!==null&&At(t);break;case 13:At(t);break;case 19:q(Ge);break;case 10:fn(t.type);break;case 22:case 23:At(t),Ni(),e!==null&&q(ya);break;case 24:fn(Qe)}}function rl(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var l=a.next;n=l;do{if((n.tag&e)===e){a=void 0;var c=n.create,f=n.inst;a=c(),f.destroy=a}n=n.next}while(n!==l)}}catch(v){ke(t,t.return,v)}}function Bn(e,t,n){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var c=l.next;a=c;do{if((a.tag&e)===e){var f=a.inst,v=f.destroy;if(v!==void 0){f.destroy=void 0,l=t;var j=n,U=v;try{U()}catch(G){ke(l,j,G)}}}a=a.next}while(a!==c)}}catch(G){ke(t,t.return,G)}}function vm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{cf(t,n)}catch(a){ke(e,e.return,a)}}}function ym(e,t,n){n.props=Na(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){ke(e,t,a)}}function ul(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(l){ke(e,t,l)}}function Ft(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(l){ke(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){ke(e,t,l)}else n.current=null}function bm(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(l){ke(e,e.return,l)}}function nr(e,t,n){try{var a=e.stateNode;Ov(a,e.type,n,t),a[mt]=t}catch(l){ke(e,e.return,l)}}function wm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xn(e.type)||e.tag===4}function ar(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Xn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=on));else if(a!==4&&(a===27&&Xn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(sr(e,t,n),e=e.sibling;e!==null;)sr(e,t,n),e=e.sibling}function Ao(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Xn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ao(e,t,n),e=e.sibling;e!==null;)Ao(e,t,n),e=e.sibling}function Sm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);ct(t,a,n),t[at]=e,t[mt]=n}catch(c){ke(e,e.return,c)}}var gn=!1,$e=!1,lr=!1,jm=typeof WeakSet=="function"?WeakSet:Set,nt=null;function mv(e,t){if(e=e.containerInfo,Cr=Qo,e=Od(e),Fc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var l=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var f=0,v=-1,j=-1,U=0,G=0,$=e,B=null;t:for(;;){for(var Y;$!==n||l!==0&&$.nodeType!==3||(v=f+l),$!==c||a!==0&&$.nodeType!==3||(j=f+a),$.nodeType===3&&(f+=$.nodeValue.length),(Y=$.firstChild)!==null;)B=$,$=Y;for(;;){if($===e)break t;if(B===n&&++U===l&&(v=f),B===c&&++G===a&&(j=f),(Y=$.nextSibling)!==null)break;$=B,B=$.parentNode}$=Y}n=v===-1||j===-1?null:{start:v,end:j}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ar={focusedElem:e,selectionRange:n},Qo=!1,nt=t;nt!==null;)if(t=nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nt=e;else for(;nt!==null;){switch(t=nt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)l=e[n],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,l=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var oe=Na(n.type,l);e=a.getSnapshotBeforeUpdate(oe,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(ve){ke(n,n.return,ve)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)zr(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":zr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,nt=e;break}nt=t.return}}function Nm(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:yn(e,n),a&4&&rl(5,n);break;case 1:if(yn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(f){ke(n,n.return,f)}else{var l=Na(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){ke(n,n.return,f)}}a&64&&vm(n),a&512&&ul(n,n.return);break;case 3:if(yn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{cf(e,t)}catch(f){ke(n,n.return,f)}}break;case 27:t===null&&a&4&&Sm(n);case 26:case 5:yn(e,n),t===null&&a&4&&bm(n),a&512&&ul(n,n.return);break;case 12:yn(e,n);break;case 31:yn(e,n),a&4&&Am(e,n);break;case 13:yn(e,n),a&4&&Mm(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Sv.bind(null,n),qv(e,n))));break;case 22:if(a=n.memoizedState!==null||gn,!a){t=t!==null&&t.memoizedState!==null||$e,l=gn;var c=$e;gn=a,($e=t)&&!c?bn(e,n,(n.subtreeFlags&8772)!==0):yn(e,n),gn=l,$e=c}break;case 30:break;default:yn(e,n)}}function Em(e){var t=e.alternate;t!==null&&(e.alternate=null,Em(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&kc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var qe=null,ht=!1;function vn(e,t,n){for(n=n.child;n!==null;)Cm(e,t,n),n=n.sibling}function Cm(e,t,n){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(Os,n)}catch{}switch(n.tag){case 26:$e||Ft(n,t),vn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:$e||Ft(n,t);var a=qe,l=ht;Xn(n.type)&&(qe=n.stateNode,ht=!1),vn(e,t,n),yl(n.stateNode),qe=a,ht=l;break;case 5:$e||Ft(n,t);case 6:if(a=qe,l=ht,qe=null,vn(e,t,n),qe=a,ht=l,qe!==null)if(ht)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(n.stateNode)}catch(c){ke(n,t,c)}else try{qe.removeChild(n.stateNode)}catch(c){ke(n,t,c)}break;case 18:qe!==null&&(ht?(e=qe,vp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),vs(e)):vp(qe,n.stateNode));break;case 4:a=qe,l=ht,qe=n.stateNode.containerInfo,ht=!0,vn(e,t,n),qe=a,ht=l;break;case 0:case 11:case 14:case 15:Bn(2,n,t),$e||Bn(4,n,t),vn(e,t,n);break;case 1:$e||(Ft(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&ym(n,t,a)),vn(e,t,n);break;case 21:vn(e,t,n);break;case 22:$e=(a=$e)||n.memoizedState!==null,vn(e,t,n),$e=a;break;default:vn(e,t,n)}}function Am(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{vs(e)}catch(n){ke(t,t.return,n)}}}function Mm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{vs(e)}catch(n){ke(t,t.return,n)}}function pv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new jm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new jm),t;default:throw Error(i(435,e.tag))}}function Mo(e,t){var n=pv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var l=jv.bind(null,e,a);a.then(l,l)}})}function xt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var l=n[a],c=e,f=t,v=f;e:for(;v!==null;){switch(v.tag){case 27:if(Xn(v.type)){qe=v.stateNode,ht=!1;break e}break;case 5:qe=v.stateNode,ht=!1;break e;case 3:case 4:qe=v.stateNode.containerInfo,ht=!0;break e}v=v.return}if(qe===null)throw Error(i(160));Cm(c,f,l),qe=null,ht=!1,c=l.alternate,c!==null&&(c.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Tm(t,e),t=t.sibling}var Wt=null;function Tm(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xt(t,e),gt(e),a&4&&(Bn(3,e,e.return),rl(3,e),Bn(5,e,e.return));break;case 1:xt(t,e),gt(e),a&512&&($e||n===null||Ft(n,n.return)),a&64&&gn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var l=Wt;if(xt(t,e),gt(e),a&512&&($e||n===null||Ft(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,l=l.ownerDocument||l;t:switch(a){case"title":c=l.getElementsByTagName("title")[0],(!c||c[Us]||c[at]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=l.createElement(a),l.head.insertBefore(c,l.querySelector("head > title"))),ct(c,a,n),c[at]=e,tt(c),a=c;break e;case"link":var f=Tp("link","href",l).get(a+(n.href||""));if(f){for(var v=0;v<f.length;v++)if(c=f[v],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(v,1);break t}}c=l.createElement(a),ct(c,a,n),l.head.appendChild(c);break;case"meta":if(f=Tp("meta","content",l).get(a+(n.content||""))){for(v=0;v<f.length;v++)if(c=f[v],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(v,1);break t}}c=l.createElement(a),ct(c,a,n),l.head.appendChild(c);break;default:throw Error(i(468,a))}c[at]=e,tt(c),a=c}e.stateNode=a}else zp(l,e.type,e.stateNode);else e.stateNode=Mp(l,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?zp(l,e.type,e.stateNode):Mp(l,a,e.memoizedProps)):a===null&&e.stateNode!==null&&nr(e,e.memoizedProps,n.memoizedProps)}break;case 27:xt(t,e),gt(e),a&512&&($e||n===null||Ft(n,n.return)),n!==null&&a&4&&nr(e,e.memoizedProps,n.memoizedProps);break;case 5:if(xt(t,e),gt(e),a&512&&($e||n===null||Ft(n,n.return)),e.flags&32){l=e.stateNode;try{Va(l,"")}catch(oe){ke(e,e.return,oe)}}a&4&&e.stateNode!=null&&(l=e.memoizedProps,nr(e,l,n!==null?n.memoizedProps:l)),a&1024&&(lr=!0);break;case 6:if(xt(t,e),gt(e),a&4){if(e.stateNode===null)throw Error(i(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(oe){ke(e,e.return,oe)}}break;case 3:if(Wo=null,l=Wt,Wt=qo(t.containerInfo),xt(t,e),Wt=l,gt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{vs(t.containerInfo)}catch(oe){ke(e,e.return,oe)}lr&&(lr=!1,zm(e));break;case 4:a=Wt,Wt=qo(e.stateNode.containerInfo),xt(t,e),gt(e),Wt=a;break;case 12:xt(t,e),gt(e);break;case 31:xt(t,e),gt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Mo(e,a)));break;case 13:xt(t,e),gt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(zo=wt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Mo(e,a)));break;case 22:l=e.memoizedState!==null;var j=n!==null&&n.memoizedState!==null,U=gn,G=$e;if(gn=U||l,$e=G||j,xt(t,e),$e=G,gn=U,gt(e),a&8192)e:for(t=e.stateNode,t._visibility=l?t._visibility&-2:t._visibility|1,l&&(n===null||j||gn||$e||Ea(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){j=n=t;try{if(c=j.stateNode,l)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{v=j.stateNode;var $=j.memoizedProps.style,B=$!=null&&$.hasOwnProperty("display")?$.display:null;v.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(oe){ke(j,j.return,oe)}}}else if(t.tag===6){if(n===null){j=t;try{j.stateNode.nodeValue=l?"":j.memoizedProps}catch(oe){ke(j,j.return,oe)}}}else if(t.tag===18){if(n===null){j=t;try{var Y=j.stateNode;l?yp(Y,!0):yp(j.stateNode,!1)}catch(oe){ke(j,j.return,oe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Mo(e,n))));break;case 19:xt(t,e),gt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Mo(e,a)));break;case 30:break;case 21:break;default:xt(t,e),gt(e)}}function gt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(wm(a)){n=a;break}a=a.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var l=n.stateNode,c=ar(e);Ao(e,c,l);break;case 5:var f=n.stateNode;n.flags&32&&(Va(f,""),n.flags&=-33);var v=ar(e);Ao(e,v,f);break;case 3:case 4:var j=n.stateNode.containerInfo,U=ar(e);sr(e,U,j);break;default:throw Error(i(161))}}catch(G){ke(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;zm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function yn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Nm(e,t.alternate,t),t=t.sibling}function Ea(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Bn(4,t,t.return),Ea(t);break;case 1:Ft(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&ym(t,t.return,n),Ea(t);break;case 27:yl(t.stateNode);case 26:case 5:Ft(t,t.return),Ea(t);break;case 22:t.memoizedState===null&&Ea(t);break;case 30:Ea(t);break;default:Ea(t)}e=e.sibling}}function bn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,l=e,c=t,f=c.flags;switch(c.tag){case 0:case 11:case 15:bn(l,c,n),rl(4,c);break;case 1:if(bn(l,c,n),a=c,l=a.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(U){ke(a,a.return,U)}if(a=c,l=a.updateQueue,l!==null){var v=a.stateNode;try{var j=l.shared.hiddenCallbacks;if(j!==null)for(l.shared.hiddenCallbacks=null,l=0;l<j.length;l++)of(j[l],v)}catch(U){ke(a,a.return,U)}}n&&f&64&&vm(c),ul(c,c.return);break;case 27:Sm(c);case 26:case 5:bn(l,c,n),n&&a===null&&f&4&&bm(c),ul(c,c.return);break;case 12:bn(l,c,n);break;case 31:bn(l,c,n),n&&f&4&&Am(l,c);break;case 13:bn(l,c,n),n&&f&4&&Mm(l,c);break;case 22:c.memoizedState===null&&bn(l,c,n),ul(c,c.return);break;case 30:break;default:bn(l,c,n)}t=t.sibling}}function or(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Js(n))}function cr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Js(e))}function Gt(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)_m(e,t,n,a),t=t.sibling}function _m(e,t,n,a){var l=t.flags;switch(t.tag){case 0:case 11:case 15:Gt(e,t,n,a),l&2048&&rl(9,t);break;case 1:Gt(e,t,n,a);break;case 3:Gt(e,t,n,a),l&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Js(e)));break;case 12:if(l&2048){Gt(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,f=c.id,v=c.onPostCommit;typeof v=="function"&&v(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){ke(t,t.return,j)}}else Gt(e,t,n,a);break;case 31:Gt(e,t,n,a);break;case 13:Gt(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,f=t.alternate,t.memoizedState!==null?c._visibility&2?Gt(e,t,n,a):dl(e,t):c._visibility&2?Gt(e,t,n,a):(c._visibility|=2,cs(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),l&2048&&or(f,t);break;case 24:Gt(e,t,n,a),l&2048&&cr(t.alternate,t);break;default:Gt(e,t,n,a)}}function cs(e,t,n,a,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,f=t,v=n,j=a,U=f.flags;switch(f.tag){case 0:case 11:case 15:cs(c,f,v,j,l),rl(8,f);break;case 23:break;case 22:var G=f.stateNode;f.memoizedState!==null?G._visibility&2?cs(c,f,v,j,l):dl(c,f):(G._visibility|=2,cs(c,f,v,j,l)),l&&U&2048&&or(f.alternate,f);break;case 24:cs(c,f,v,j,l),l&&U&2048&&cr(f.alternate,f);break;default:cs(c,f,v,j,l)}t=t.sibling}}function dl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,l=a.flags;switch(a.tag){case 22:dl(n,a),l&2048&&or(a.alternate,a);break;case 24:dl(n,a),l&2048&&cr(a.alternate,a);break;default:dl(n,a)}t=t.sibling}}var fl=8192;function is(e,t,n){if(e.subtreeFlags&fl)for(e=e.child;e!==null;)Rm(e,t,n),e=e.sibling}function Rm(e,t,n){switch(e.tag){case 26:is(e,t,n),e.flags&fl&&e.memoizedState!==null&&e1(n,Wt,e.memoizedState,e.memoizedProps);break;case 5:is(e,t,n);break;case 3:case 4:var a=Wt;Wt=qo(e.stateNode.containerInfo),is(e,t,n),Wt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=fl,fl=16777216,is(e,t,n),fl=a):is(e,t,n));break;default:is(e,t,n)}}function Dm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ml(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];nt=a,km(a,e)}Dm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Om(e),e=e.sibling}function Om(e){switch(e.tag){case 0:case 11:case 15:ml(e),e.flags&2048&&Bn(9,e,e.return);break;case 3:ml(e);break;case 12:ml(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,To(e)):ml(e);break;default:ml(e)}}function To(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];nt=a,km(a,e)}Dm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Bn(8,t,t.return),To(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,To(t));break;default:To(t)}e=e.sibling}}function km(e,t){for(;nt!==null;){var n=nt;switch(n.tag){case 0:case 11:case 15:Bn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Js(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,nt=a;else e:for(n=e;nt!==null;){a=nt;var l=a.sibling,c=a.return;if(Em(a),a===n){nt=null;break e}if(l!==null){l.return=c,nt=l;break e}nt=c}}}var hv={getCacheForType:function(e){var t=lt(Qe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return lt(Qe).controller.signal}},xv=typeof WeakMap=="function"?WeakMap:Map,De=0,Be=null,Ne=null,Ce=0,Oe=0,Mt=null,Pn=!1,rs=!1,ir=!1,wn=0,We=0,Vn=0,Ca=0,rr=0,Tt=0,us=0,pl=null,vt=null,ur=!1,zo=0,Hm=0,_o=1/0,Ro=null,qn=null,Ie=0,Yn=null,ds=null,Sn=0,dr=0,fr=null,Um=null,hl=0,mr=null;function zt(){return(De&2)!==0&&Ce!==0?Ce&-Ce:D.T!==null?yr():Fu()}function Lm(){if(Tt===0)if((Ce&536870912)===0||Me){var e=Bl;Bl<<=1,(Bl&3932160)===0&&(Bl=262144),Tt=e}else Tt=536870912;return e=Ct.current,e!==null&&(e.flags|=32),Tt}function yt(e,t,n){(e===Be&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(fs(e,0),Wn(e,Ce,Tt,!1)),Hs(e,n),((De&2)===0||e!==Be)&&(e===Be&&((De&2)===0&&(Ca|=n),We===4&&Wn(e,Ce,Tt,!1)),It(e))}function Bm(e,t,n){if((De&6)!==0)throw Error(i(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ks(e,t),l=a?yv(e,t):hr(e,t,!0),c=a;do{if(l===0){rs&&!a&&Wn(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!gv(n)){l=hr(e,t,!1),c=!1;continue}if(l===2){if(c=t,e.errorRecoveryDisabledLanes&c)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var v=e;l=pl;var j=v.current.memoizedState.isDehydrated;if(j&&(fs(v,f).flags|=256),f=hr(v,f,!1),f!==2){if(ir&&!j){v.errorRecoveryDisabledLanes|=c,Ca|=c,l=4;break e}c=vt,vt=l,c!==null&&(vt===null?vt=c:vt.push.apply(vt,c))}l=f}if(c=!1,l!==2)continue}}if(l===1){fs(e,0),Wn(e,t,0,!0);break}e:{switch(a=e,c=l,c){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Wn(a,t,Tt,!Pn);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(l=zo+300-wt(),10<l)){if(Wn(a,t,Tt,!Pn),Vl(a,0,!0)!==0)break e;Sn=t,a.timeoutHandle=xp(Pm.bind(null,a,n,vt,Ro,ur,t,Tt,Ca,us,Pn,c,"Throttled",-0,0),l);break e}Pm(a,n,vt,Ro,ur,t,Tt,Ca,us,Pn,c,null,-0,0)}}break}while(!0);It(e)}function Pm(e,t,n,a,l,c,f,v,j,U,G,$,B,Y){if(e.timeoutHandle=-1,$=t.subtreeFlags,$&8192||($&16785408)===16785408){$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:on},Rm(t,c,$);var oe=(c&62914560)===c?zo-wt():(c&4194048)===c?Hm-wt():0;if(oe=t1($,oe),oe!==null){Sn=c,e.cancelPendingCommit=oe(Qm.bind(null,e,t,c,n,a,l,f,v,j,G,$,null,B,Y)),Wn(e,c,f,!U);return}}Qm(e,t,c,n,a,l,f,v,j)}function gv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var l=n[a],c=l.getSnapshot;l=l.value;try{if(!Nt(c(),l))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wn(e,t,n,a){t&=~rr,t&=~Ca,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var l=t;0<l;){var c=31-jt(l),f=1<<c;a[c]=-1,l&=~f}n!==0&&Ku(e,n,t)}function Do(){return(De&6)===0?(xl(0),!1):!0}function pr(){if(Ne!==null){if(Oe===0)var e=Ne.return;else e=Ne,dn=ga=null,zi(e),ns=null,Fs=0,e=Ne;for(;e!==null;)gm(e.alternate,e),e=e.return;Ne=null}}function fs(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Uv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sn=0,pr(),Be=e,Ne=n=rn(e.current,null),Ce=t,Oe=0,Mt=null,Pn=!1,rs=ks(e,t),ir=!1,us=Tt=rr=Ca=Vn=We=0,vt=pl=null,ur=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var l=31-jt(a),c=1<<l;t|=e[l],a&=~c}return wn=t,Il(),n}function Vm(e,t){we=null,D.H=ol,t===ts||t===co?(t=nf(),Oe=3):t===vi?(t=nf(),Oe=4):Oe=t===Xi?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mt=t,Ne===null&&(We=1,So(e,Ht(t,e.current)))}function qm(){var e=Ct.current;return e===null?!0:(Ce&4194048)===Ce?Pt===null:(Ce&62914560)===Ce||(Ce&536870912)!==0?e===Pt:!1}function Ym(){var e=D.H;return D.H=ol,e===null?ol:e}function Wm(){var e=D.A;return D.A=hv,e}function Oo(){We=4,Pn||(Ce&4194048)!==Ce&&Ct.current!==null||(rs=!0),(Vn&134217727)===0&&(Ca&134217727)===0||Be===null||Wn(Be,Ce,Tt,!1)}function hr(e,t,n){var a=De;De|=2;var l=Ym(),c=Wm();(Be!==e||Ce!==t)&&(Ro=null,fs(e,t)),t=!1;var f=We;e:do try{if(Oe!==0&&Ne!==null){var v=Ne,j=Mt;switch(Oe){case 8:pr(),f=6;break e;case 3:case 2:case 9:case 6:Ct.current===null&&(t=!0);var U=Oe;if(Oe=0,Mt=null,ms(e,v,j,U),n&&rs){f=0;break e}break;default:U=Oe,Oe=0,Mt=null,ms(e,v,j,U)}}vv(),f=We;break}catch(G){Vm(e,G)}while(!0);return t&&e.shellSuspendCounter++,dn=ga=null,De=a,D.H=l,D.A=c,Ne===null&&(Be=null,Ce=0,Il()),f}function vv(){for(;Ne!==null;)Gm(Ne)}function yv(e,t){var n=De;De|=2;var a=Ym(),l=Wm();Be!==e||Ce!==t?(Ro=null,_o=wt()+500,fs(e,t)):rs=ks(e,t);e:do try{if(Oe!==0&&Ne!==null){t=Ne;var c=Mt;t:switch(Oe){case 1:Oe=0,Mt=null,ms(e,t,c,1);break;case 2:case 9:if(ef(c)){Oe=0,Mt=null,Xm(t);break}t=function(){Oe!==2&&Oe!==9||Be!==e||(Oe=7),It(e)},c.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:ef(c)?(Oe=0,Mt=null,Xm(t)):(Oe=0,Mt=null,ms(e,t,c,7));break;case 5:var f=null;switch(Ne.tag){case 26:f=Ne.memoizedState;case 5:case 27:var v=Ne;if(f?_p(f):v.stateNode.complete){Oe=0,Mt=null;var j=v.sibling;if(j!==null)Ne=j;else{var U=v.return;U!==null?(Ne=U,ko(U)):Ne=null}break t}}Oe=0,Mt=null,ms(e,t,c,5);break;case 6:Oe=0,Mt=null,ms(e,t,c,6);break;case 8:pr(),We=6;break e;default:throw Error(i(462))}}bv();break}catch(G){Vm(e,G)}while(!0);return dn=ga=null,D.H=a,D.A=l,De=n,Ne!==null?0:(Be=null,Ce=0,Il(),We)}function bv(){for(;Ne!==null&&!Yg();)Gm(Ne)}function Gm(e){var t=hm(e.alternate,e,wn);e.memoizedProps=e.pendingProps,t===null?ko(e):Ne=t}function Xm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=rm(n,t,t.pendingProps,t.type,void 0,Ce);break;case 11:t=rm(n,t,t.pendingProps,t.type.render,t.ref,Ce);break;case 5:zi(t);default:gm(n,t),t=Ne=Yd(t,wn),t=hm(n,t,wn)}e.memoizedProps=e.pendingProps,t===null?ko(e):Ne=t}function ms(e,t,n,a){dn=ga=null,zi(t),ns=null,Fs=0;var l=t.return;try{if(iv(e,l,t,n,Ce)){We=1,So(e,Ht(n,e.current)),Ne=null;return}}catch(c){if(l!==null)throw Ne=l,c;We=1,So(e,Ht(n,e.current)),Ne=null;return}t.flags&32768?(Me||a===1?e=!0:rs||(Ce&536870912)!==0?e=!1:(Pn=e=!0,(a===2||a===9||a===3||a===6)&&(a=Ct.current,a!==null&&a.tag===13&&(a.flags|=16384))),Zm(t,e)):ko(t)}function ko(e){var t=e;do{if((t.flags&32768)!==0){Zm(t,Pn);return}e=t.return;var n=dv(t.alternate,t,wn);if(n!==null){Ne=n;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);We===0&&(We=5)}function Zm(e,t){do{var n=fv(e.alternate,e);if(n!==null){n.flags&=32767,Ne=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=n}while(e!==null);We=6,Ne=null}function Qm(e,t,n,a,l,c,f,v,j){e.cancelPendingCommit=null;do Ho();while(Ie!==0);if((De&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(c=t.lanes|t.childLanes,c|=ai,Ig(e,n,c,f,v,j),e===Be&&(Ne=Be=null,Ce=0),ds=t,Yn=e,Sn=n,dr=c,fr=l,Um=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Nv(Ul,function(){return Im(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,l=X.p,X.p=2,f=De,De|=4;try{mv(e,t,n)}finally{De=f,X.p=l,D.T=a}}Ie=1,Km(),Jm(),$m()}}function Km(){if(Ie===1){Ie=0;var e=Yn,t=ds,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var a=X.p;X.p=2;var l=De;De|=4;try{Tm(t,e);var c=Ar,f=Od(e.containerInfo),v=c.focusedElem,j=c.selectionRange;if(f!==v&&v&&v.ownerDocument&&Dd(v.ownerDocument.documentElement,v)){if(j!==null&&Fc(v)){var U=j.start,G=j.end;if(G===void 0&&(G=U),"selectionStart"in v)v.selectionStart=U,v.selectionEnd=Math.min(G,v.value.length);else{var $=v.ownerDocument||document,B=$&&$.defaultView||window;if(B.getSelection){var Y=B.getSelection(),oe=v.textContent.length,ve=Math.min(j.start,oe),Le=j.end===void 0?ve:Math.min(j.end,oe);!Y.extend&&ve>Le&&(f=Le,Le=ve,ve=f);var O=Rd(v,ve),T=Rd(v,Le);if(O&&T&&(Y.rangeCount!==1||Y.anchorNode!==O.node||Y.anchorOffset!==O.offset||Y.focusNode!==T.node||Y.focusOffset!==T.offset)){var H=$.createRange();H.setStart(O.node,O.offset),Y.removeAllRanges(),ve>Le?(Y.addRange(H),Y.extend(T.node,T.offset)):(H.setEnd(T.node,T.offset),Y.addRange(H))}}}}for($=[],Y=v;Y=Y.parentNode;)Y.nodeType===1&&$.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<$.length;v++){var Z=$[v];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Qo=!!Cr,Ar=Cr=null}finally{De=l,X.p=a,D.T=n}}e.current=t,Ie=2}}function Jm(){if(Ie===2){Ie=0;var e=Yn,t=ds,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var a=X.p;X.p=2;var l=De;De|=4;try{Nm(e,t.alternate,t)}finally{De=l,X.p=a,D.T=n}}Ie=3}}function $m(){if(Ie===4||Ie===3){Ie=0,Wg();var e=Yn,t=ds,n=Sn,a=Um;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ie=5:(Ie=0,ds=Yn=null,Fm(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(qn=null),Dc(n),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(Os,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,l=X.p,X.p=2,D.T=null;try{for(var c=e.onRecoverableError,f=0;f<a.length;f++){var v=a[f];c(v.value,{componentStack:v.stack})}}finally{D.T=t,X.p=l}}(Sn&3)!==0&&Ho(),It(e),l=e.pendingLanes,(n&261930)!==0&&(l&42)!==0?e===mr?hl++:(hl=0,mr=e):hl=0,xl(0)}}function Fm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Js(t)))}function Ho(){return Km(),Jm(),$m(),Im()}function Im(){if(Ie!==5)return!1;var e=Yn,t=dr;dr=0;var n=Dc(Sn),a=D.T,l=X.p;try{X.p=32>n?32:n,D.T=null,n=fr,fr=null;var c=Yn,f=Sn;if(Ie=0,ds=Yn=null,Sn=0,(De&6)!==0)throw Error(i(331));var v=De;if(De|=4,Om(c.current),_m(c,c.current,f,n),De=v,xl(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(Os,c)}catch{}return!0}finally{X.p=l,D.T=a,Fm(e,t)}}function ep(e,t,n){t=Ht(n,t),t=Gi(e.stateNode,t,2),e=Hn(e,t,2),e!==null&&(Hs(e,2),It(e))}function ke(e,t,n){if(e.tag===3)ep(e,e,n);else for(;t!==null;){if(t.tag===3){ep(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(qn===null||!qn.has(a))){e=Ht(n,e),n=tm(2),a=Hn(t,n,2),a!==null&&(nm(n,a,t,e),Hs(a,2),It(a));break}}t=t.return}}function xr(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new xv;var l=new Set;a.set(t,l)}else l=a.get(t),l===void 0&&(l=new Set,a.set(t,l));l.has(n)||(ir=!0,l.add(n),e=wv.bind(null,e,t,n),t.then(e,e))}function wv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Be===e&&(Ce&n)===n&&(We===4||We===3&&(Ce&62914560)===Ce&&300>wt()-zo?(De&2)===0&&fs(e,0):rr|=n,us===Ce&&(us=0)),It(e)}function tp(e,t){t===0&&(t=Qu()),e=pa(e,t),e!==null&&(Hs(e,t),It(e))}function Sv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tp(e,n)}function jv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(i(314))}a!==null&&a.delete(t),tp(e,n)}function Nv(e,t){return Tc(e,t)}var Uo=null,ps=null,gr=!1,Lo=!1,vr=!1,Gn=0;function It(e){e!==ps&&e.next===null&&(ps===null?Uo=ps=e:ps=ps.next=e),Lo=!0,gr||(gr=!0,Cv())}function xl(e,t){if(!vr&&Lo){vr=!0;do for(var n=!1,a=Uo;a!==null;){if(e!==0){var l=a.pendingLanes;if(l===0)var c=0;else{var f=a.suspendedLanes,v=a.pingedLanes;c=(1<<31-jt(42|e)+1)-1,c&=l&~(f&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,lp(a,c))}else c=Ce,c=Vl(a,a===Be?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ks(a,c)||(n=!0,lp(a,c));a=a.next}while(n);vr=!1}}function Ev(){np()}function np(){Lo=gr=!1;var e=0;Gn!==0&&Hv()&&(e=Gn);for(var t=wt(),n=null,a=Uo;a!==null;){var l=a.next,c=ap(a,t);c===0?(a.next=null,n===null?Uo=l:n.next=l,l===null&&(ps=n)):(n=a,(e!==0||(c&3)!==0)&&(Lo=!0)),a=l}Ie!==0&&Ie!==5||xl(e),Gn!==0&&(Gn=0)}function ap(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,l=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var f=31-jt(c),v=1<<f,j=l[f];j===-1?((v&n)===0||(v&a)!==0)&&(l[f]=Fg(v,t)):j<=t&&(e.expiredLanes|=v),c&=~v}if(t=Be,n=Ce,n=Vl(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&zc(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ks(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&zc(a),Dc(n)){case 2:case 8:n=Xu;break;case 32:n=Ul;break;case 268435456:n=Zu;break;default:n=Ul}return a=sp.bind(null,e),n=Tc(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&zc(a),e.callbackPriority=2,e.callbackNode=null,2}function sp(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ho()&&e.callbackNode!==n)return null;var a=Ce;return a=Vl(e,e===Be?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Bm(e,a,t),ap(e,wt()),e.callbackNode!=null&&e.callbackNode===n?sp.bind(null,e):null)}function lp(e,t){if(Ho())return null;Bm(e,t,!0)}function Cv(){Lv(function(){(De&6)!==0?Tc(Gu,Ev):np()})}function yr(){if(Gn===0){var e=Ia;e===0&&(e=Ll,Ll<<=1,(Ll&261888)===0&&(Ll=256)),Gn=e}return Gn}function op(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Gl(""+e)}function cp(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Av(e,t,n,a,l){if(t==="submit"&&n&&n.stateNode===l){var c=op((l[mt]||null).action),f=a.submitter;f&&(t=(t=f[mt]||null)?op(t.formAction):f.getAttribute("formAction"),t!==null&&(c=t,f=null));var v=new Kl("action","action",null,a,l);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Gn!==0){var j=f?cp(l,f):new FormData(l);Bi(n,{pending:!0,data:j,method:l.method,action:c},null,j)}}else typeof c=="function"&&(v.preventDefault(),j=f?cp(l,f):new FormData(l),Bi(n,{pending:!0,data:j,method:l.method,action:c},c,j))},currentTarget:l}]})}}for(var br=0;br<ni.length;br++){var wr=ni[br],Mv=wr.toLowerCase(),Tv=wr[0].toUpperCase()+wr.slice(1);Yt(Mv,"on"+Tv)}Yt(Ud,"onAnimationEnd"),Yt(Ld,"onAnimationIteration"),Yt(Bd,"onAnimationStart"),Yt("dblclick","onDoubleClick"),Yt("focusin","onFocus"),Yt("focusout","onBlur"),Yt(G0,"onTransitionRun"),Yt(X0,"onTransitionStart"),Yt(Z0,"onTransitionCancel"),Yt(Pd,"onTransitionEnd"),Ba("onMouseEnter",["mouseout","mouseover"]),Ba("onMouseLeave",["mouseout","mouseover"]),Ba("onPointerEnter",["pointerout","pointerover"]),Ba("onPointerLeave",["pointerout","pointerover"]),ua("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ua("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ua("onBeforeInput",["compositionend","keypress","textInput","paste"]),ua("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ua("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ua("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gl="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(" "),zv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gl));function ip(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],l=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var f=a.length-1;0<=f;f--){var v=a[f],j=v.instance,U=v.currentTarget;if(v=v.listener,j!==c&&l.isPropagationStopped())break e;c=v,l.currentTarget=U;try{c(l)}catch(G){Fl(G)}l.currentTarget=null,c=j}else for(f=0;f<a.length;f++){if(v=a[f],j=v.instance,U=v.currentTarget,v=v.listener,j!==c&&l.isPropagationStopped())break e;c=v,l.currentTarget=U;try{c(l)}catch(G){Fl(G)}l.currentTarget=null,c=j}}}}function Ee(e,t){var n=t[Oc];n===void 0&&(n=t[Oc]=new Set);var a=e+"__bubble";n.has(a)||(rp(t,e,2,!1),n.add(a))}function Sr(e,t,n){var a=0;t&&(a|=4),rp(n,e,a,t)}var Bo="_reactListening"+Math.random().toString(36).slice(2);function jr(e){if(!e[Bo]){e[Bo]=!0,td.forEach(function(n){n!=="selectionchange"&&(zv.has(n)||Sr(n,!1,e),Sr(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Bo]||(t[Bo]=!0,Sr("selectionchange",!1,t))}}function rp(e,t,n,a){switch(Lp(t)){case 2:var l=s1;break;case 8:l=l1;break;default:l=Lr}n=l.bind(null,t,n,e),l=void 0,!Yc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),a?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Nr(e,t,n,a,l){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var v=a.stateNode.containerInfo;if(v===l)break;if(f===4)for(f=a.return;f!==null;){var j=f.tag;if((j===3||j===4)&&f.stateNode.containerInfo===l)return;f=f.return}for(;v!==null;){if(f=Ha(v),f===null)return;if(j=f.tag,j===5||j===6||j===26||j===27){a=c=f;continue e}v=v.parentNode}}a=a.return}md(function(){var U=c,G=Vc(n),$=[];e:{var B=Vd.get(e);if(B!==void 0){var Y=Kl,oe=e;switch(e){case"keypress":if(Zl(n)===0)break e;case"keydown":case"keyup":Y=j0;break;case"focusin":oe="focus",Y=Zc;break;case"focusout":oe="blur",Y=Zc;break;case"beforeblur":case"afterblur":Y=Zc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=xd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=d0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=C0;break;case Ud:case Ld:case Bd:Y=p0;break;case Pd:Y=M0;break;case"scroll":case"scrollend":Y=r0;break;case"wheel":Y=z0;break;case"copy":case"cut":case"paste":Y=x0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=vd;break;case"toggle":case"beforetoggle":Y=R0}var ve=(t&4)!==0,Le=!ve&&(e==="scroll"||e==="scrollend"),O=ve?B!==null?B+"Capture":null:B;ve=[];for(var T=U,H;T!==null;){var Z=T;if(H=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||H===null||O===null||(Z=Bs(T,O),Z!=null&&ve.push(vl(T,Z,H))),Le)break;T=T.return}0<ve.length&&(B=new Y(B,oe,null,n,G),$.push({event:B,listeners:ve}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",B&&n!==Pc&&(oe=n.relatedTarget||n.fromElement)&&(Ha(oe)||oe[ka]))break e;if((Y||B)&&(B=G.window===G?G:(B=G.ownerDocument)?B.defaultView||B.parentWindow:window,Y?(oe=n.relatedTarget||n.toElement,Y=U,oe=oe?Ha(oe):null,oe!==null&&(Le=m(oe),ve=oe.tag,oe!==Le||ve!==5&&ve!==27&&ve!==6)&&(oe=null)):(Y=null,oe=U),Y!==oe)){if(ve=xd,Z="onMouseLeave",O="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(ve=vd,Z="onPointerLeave",O="onPointerEnter",T="pointer"),Le=Y==null?B:Ls(Y),H=oe==null?B:Ls(oe),B=new ve(Z,T+"leave",Y,n,G),B.target=Le,B.relatedTarget=H,Z=null,Ha(G)===U&&(ve=new ve(O,T+"enter",oe,n,G),ve.target=H,ve.relatedTarget=Le,Z=ve),Le=Z,Y&&oe)t:{for(ve=_v,O=Y,T=oe,H=0,Z=O;Z;Z=ve(Z))H++;Z=0;for(var xe=T;xe;xe=ve(xe))Z++;for(;0<H-Z;)O=ve(O),H--;for(;0<Z-H;)T=ve(T),Z--;for(;H--;){if(O===T||T!==null&&O===T.alternate){ve=O;break t}O=ve(O),T=ve(T)}ve=null}else ve=null;Y!==null&&up($,B,Y,ve,!1),oe!==null&&Le!==null&&up($,Le,oe,ve,!0)}}e:{if(B=U?Ls(U):window,Y=B.nodeName&&B.nodeName.toLowerCase(),Y==="select"||Y==="input"&&B.type==="file")var _e=Cd;else if(Nd(B))if(Ad)_e=q0;else{_e=P0;var de=B0}else Y=B.nodeName,!Y||Y.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?U&&Bc(U.elementType)&&(_e=Cd):_e=V0;if(_e&&(_e=_e(e,U))){Ed($,_e,n,G);break e}de&&de(e,B,U),e==="focusout"&&U&&B.type==="number"&&U.memoizedProps.value!=null&&Lc(B,"number",B.value)}switch(de=U?Ls(U):window,e){case"focusin":(Nd(de)||de.contentEditable==="true")&&(Ga=de,Ic=U,Zs=null);break;case"focusout":Zs=Ic=Ga=null;break;case"mousedown":ei=!0;break;case"contextmenu":case"mouseup":case"dragend":ei=!1,kd($,n,G);break;case"selectionchange":if(W0)break;case"keydown":case"keyup":kd($,n,G)}var Se;if(Kc)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else Wa?Sd(e,n)&&(Ae="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ae="onCompositionStart");Ae&&(yd&&n.locale!=="ko"&&(Wa||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&Wa&&(Se=pd()):(Tn=G,Wc="value"in Tn?Tn.value:Tn.textContent,Wa=!0)),de=Po(U,Ae),0<de.length&&(Ae=new gd(Ae,e,null,n,G),$.push({event:Ae,listeners:de}),Se?Ae.data=Se:(Se=jd(n),Se!==null&&(Ae.data=Se)))),(Se=O0?k0(e,n):H0(e,n))&&(Ae=Po(U,"onBeforeInput"),0<Ae.length&&(de=new gd("onBeforeInput","beforeinput",null,n,G),$.push({event:de,listeners:Ae}),de.data=Se)),Av($,e,U,n,G)}ip($,t)})}function vl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Po(e,t){for(var n=t+"Capture",a=[];e!==null;){var l=e,c=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||c===null||(l=Bs(e,n),l!=null&&a.unshift(vl(e,l,c)),l=Bs(e,t),l!=null&&a.push(vl(e,l,c))),e.tag===3)return a;e=e.return}return[]}function _v(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function up(e,t,n,a,l){for(var c=t._reactName,f=[];n!==null&&n!==a;){var v=n,j=v.alternate,U=v.stateNode;if(v=v.tag,j!==null&&j===a)break;v!==5&&v!==26&&v!==27||U===null||(j=U,l?(U=Bs(n,c),U!=null&&f.unshift(vl(n,U,j))):l||(U=Bs(n,c),U!=null&&f.push(vl(n,U,j)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var Rv=/\r\n?/g,Dv=/\u0000|\uFFFD/g;function dp(e){return(typeof e=="string"?e:""+e).replace(Rv,`
`).replace(Dv,"")}function fp(e,t){return t=dp(t),dp(e)===t}function Ue(e,t,n,a,l,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Va(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Va(e,""+a);break;case"className":Yl(e,"class",a);break;case"tabIndex":Yl(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Yl(e,n,a);break;case"style":dd(e,a,c);break;case"data":if(t!=="object"){Yl(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Gl(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&Ue(e,t,"name",l.name,l,null),Ue(e,t,"formEncType",l.formEncType,l,null),Ue(e,t,"formMethod",l.formMethod,l,null),Ue(e,t,"formTarget",l.formTarget,l,null)):(Ue(e,t,"encType",l.encType,l,null),Ue(e,t,"method",l.method,l,null),Ue(e,t,"target",l.target,l,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Gl(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=on);break;case"onScroll":a!=null&&Ee("scroll",e);break;case"onScrollEnd":a!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(i(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(i(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Gl(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),ql(e,"popover",a);break;case"xlinkActuate":ln(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ln(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ln(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ln(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ln(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ln(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ln(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ln(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ln(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ql(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=c0.get(n)||n,ql(e,n,a))}}function Er(e,t,n,a,l,c){switch(n){case"style":dd(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(i(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(i(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Va(e,a):(typeof a=="number"||typeof a=="bigint")&&Va(e,""+a);break;case"onScroll":a!=null&&Ee("scroll",e);break;case"onScrollEnd":a!=null&&Ee("scrollend",e);break;case"onClick":a!=null&&(e.onclick=on);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!nd.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),t=n.slice(2,l?n.length-7:void 0),c=e[mt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,l),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,l);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):ql(e,n,a)}}}function ct(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var a=!1,l=!1,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":a=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ue(e,t,c,f,n,null)}}l&&Ue(e,t,"srcSet",n.srcSet,n,null),a&&Ue(e,t,"src",n.src,n,null);return;case"input":Ee("invalid",e);var v=c=f=l=null,j=null,U=null;for(a in n)if(n.hasOwnProperty(a)){var G=n[a];if(G!=null)switch(a){case"name":l=G;break;case"type":f=G;break;case"checked":j=G;break;case"defaultChecked":U=G;break;case"value":c=G;break;case"defaultValue":v=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(i(137,t));break;default:Ue(e,t,a,G,n,null)}}cd(e,c,v,j,U,f,l,!1);return;case"select":Ee("invalid",e),a=f=c=null;for(l in n)if(n.hasOwnProperty(l)&&(v=n[l],v!=null))switch(l){case"value":c=v;break;case"defaultValue":f=v;break;case"multiple":a=v;default:Ue(e,t,l,v,n,null)}t=c,n=f,e.multiple=!!a,t!=null?Pa(e,!!a,t,!1):n!=null&&Pa(e,!!a,n,!0);return;case"textarea":Ee("invalid",e),c=l=a=null;for(f in n)if(n.hasOwnProperty(f)&&(v=n[f],v!=null))switch(f){case"value":a=v;break;case"defaultValue":l=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(i(91));break;default:Ue(e,t,f,v,n,null)}rd(e,a,l,c);return;case"option":for(j in n)n.hasOwnProperty(j)&&(a=n[j],a!=null)&&(j==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":Ue(e,t,j,a,n,null));return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(a=0;a<gl.length;a++)Ee(gl[a],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in n)if(n.hasOwnProperty(U)&&(a=n[U],a!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ue(e,t,U,a,n,null)}return;default:if(Bc(t)){for(G in n)n.hasOwnProperty(G)&&(a=n[G],a!==void 0&&Er(e,t,G,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&Ue(e,t,v,a,n,null))}function Ov(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,c=null,f=null,v=null,j=null,U=null,G=null;for(Y in n){var $=n[Y];if(n.hasOwnProperty(Y)&&$!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":j=$;default:a.hasOwnProperty(Y)||Ue(e,t,Y,null,a,$)}}for(var B in a){var Y=a[B];if($=n[B],a.hasOwnProperty(B)&&(Y!=null||$!=null))switch(B){case"type":c=Y;break;case"name":l=Y;break;case"checked":U=Y;break;case"defaultChecked":G=Y;break;case"value":f=Y;break;case"defaultValue":v=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:Y!==$&&Ue(e,t,B,Y,a,$)}}Uc(e,f,v,j,U,G,c,l);return;case"select":Y=f=v=B=null;for(c in n)if(j=n[c],n.hasOwnProperty(c)&&j!=null)switch(c){case"value":break;case"multiple":Y=j;default:a.hasOwnProperty(c)||Ue(e,t,c,null,a,j)}for(l in a)if(c=a[l],j=n[l],a.hasOwnProperty(l)&&(c!=null||j!=null))switch(l){case"value":B=c;break;case"defaultValue":v=c;break;case"multiple":f=c;default:c!==j&&Ue(e,t,l,c,a,j)}t=v,n=f,a=Y,B!=null?Pa(e,!!n,B,!1):!!a!=!!n&&(t!=null?Pa(e,!!n,t,!0):Pa(e,!!n,n?[]:"",!1));return;case"textarea":Y=B=null;for(v in n)if(l=n[v],n.hasOwnProperty(v)&&l!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ue(e,t,v,null,a,l)}for(f in a)if(l=a[f],c=n[f],a.hasOwnProperty(f)&&(l!=null||c!=null))switch(f){case"value":B=l;break;case"defaultValue":Y=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(i(91));break;default:l!==c&&Ue(e,t,f,l,a,c)}id(e,B,Y);return;case"option":for(var oe in n)B=n[oe],n.hasOwnProperty(oe)&&B!=null&&!a.hasOwnProperty(oe)&&(oe==="selected"?e.selected=!1:Ue(e,t,oe,null,a,B));for(j in a)B=a[j],Y=n[j],a.hasOwnProperty(j)&&B!==Y&&(B!=null||Y!=null)&&(j==="selected"?e.selected=B&&typeof B!="function"&&typeof B!="symbol":Ue(e,t,j,B,a,Y));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 ve in n)B=n[ve],n.hasOwnProperty(ve)&&B!=null&&!a.hasOwnProperty(ve)&&Ue(e,t,ve,null,a,B);for(U in a)if(B=a[U],Y=n[U],a.hasOwnProperty(U)&&B!==Y&&(B!=null||Y!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(i(137,t));break;default:Ue(e,t,U,B,a,Y)}return;default:if(Bc(t)){for(var Le in n)B=n[Le],n.hasOwnProperty(Le)&&B!==void 0&&!a.hasOwnProperty(Le)&&Er(e,t,Le,void 0,a,B);for(G in a)B=a[G],Y=n[G],!a.hasOwnProperty(G)||B===Y||B===void 0&&Y===void 0||Er(e,t,G,B,a,Y);return}}for(var O in n)B=n[O],n.hasOwnProperty(O)&&B!=null&&!a.hasOwnProperty(O)&&Ue(e,t,O,null,a,B);for($ in a)B=a[$],Y=n[$],!a.hasOwnProperty($)||B===Y||B==null&&Y==null||Ue(e,t,$,B,a,Y)}function mp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var l=n[a],c=l.transferSize,f=l.initiatorType,v=l.duration;if(c&&v&&mp(f)){for(f=0,v=l.responseEnd,a+=1;a<n.length;a++){var j=n[a],U=j.startTime;if(U>v)break;var G=j.transferSize,$=j.initiatorType;G&&mp($)&&(j=j.responseEnd,f+=G*(j<v?1:(v-U)/(j-U)))}if(--a,t+=8*(c+f)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Cr=null,Ar=null;function Vo(e){return e.nodeType===9?e:e.ownerDocument}function pp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function hp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Mr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Tr=null;function Hv(){var e=window.event;return e&&e.type==="popstate"?e===Tr?!1:(Tr=e,!0):(Tr=null,!1)}var xp=typeof setTimeout=="function"?setTimeout:void 0,Uv=typeof clearTimeout=="function"?clearTimeout:void 0,gp=typeof Promise=="function"?Promise:void 0,Lv=typeof queueMicrotask=="function"?queueMicrotask:typeof gp<"u"?function(e){return gp.resolve(null).then(e).catch(Bv)}:xp;function Bv(e){setTimeout(function(){throw e})}function Xn(e){return e==="head"}function vp(e,t){var n=t,a=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(l),vs(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")yl(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,yl(n);for(var c=n.firstChild;c;){var f=c.nextSibling,v=c.nodeName;c[Us]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&yl(e.ownerDocument.body);n=l}while(n);vs(t)}function yp(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function zr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":zr(n),kc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Pv(e,t,n,a){for(;e.nodeType===1;){var l=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Us])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Vt(e.nextSibling),e===null)break}return null}function Vv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Vt(e.nextSibling),e===null))return null;return e}function bp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Vt(e.nextSibling),e===null))return null;return e}function _r(e){return e.data==="$?"||e.data==="$~"}function Rr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function qv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Vt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Dr=null;function wp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Vt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Sp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function jp(e,t,n){switch(t=Vo(n),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function yl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);kc(e)}var qt=new Map,Np=new Set;function qo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var jn=X.d;X.d={f:Yv,r:Wv,D:Gv,C:Xv,L:Zv,m:Qv,X:Jv,S:Kv,M:$v};function Yv(){var e=jn.f(),t=Do();return e||t}function Wv(e){var t=Ua(e);t!==null&&t.tag===5&&t.type==="form"?Vf(t):jn.r(e)}var hs=typeof document>"u"?null:document;function Ep(e,t,n){var a=hs;if(a&&typeof t=="string"&&t){var l=Ot(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),Np.has(l)||(Np.add(l),e={rel:e,crossOrigin:n,href:t},a.querySelector(l)===null&&(t=a.createElement("link"),ct(t,"link",e),tt(t),a.head.appendChild(t)))}}function Gv(e){jn.D(e),Ep("dns-prefetch",e,null)}function Xv(e,t){jn.C(e,t),Ep("preconnect",e,t)}function Zv(e,t,n){jn.L(e,t,n);var a=hs;if(a&&e&&t){var l='link[rel="preload"][as="'+Ot(t)+'"]';t==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+Ot(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+Ot(n.imageSizes)+'"]')):l+='[href="'+Ot(e)+'"]';var c=l;switch(t){case"style":c=xs(e);break;case"script":c=gs(e)}qt.has(c)||(e=w({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),qt.set(c,e),a.querySelector(l)!==null||t==="style"&&a.querySelector(bl(c))||t==="script"&&a.querySelector(wl(c))||(t=a.createElement("link"),ct(t,"link",e),tt(t),a.head.appendChild(t)))}}function Qv(e,t){jn.m(e,t);var n=hs;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Ot(a)+'"][href="'+Ot(e)+'"]',c=l;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=gs(e)}if(!qt.has(c)&&(e=w({rel:"modulepreload",href:e},t),qt.set(c,e),n.querySelector(l)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(wl(c)))return}a=n.createElement("link"),ct(a,"link",e),tt(a),n.head.appendChild(a)}}}function Kv(e,t,n){jn.S(e,t,n);var a=hs;if(a&&e){var l=La(a).hoistableStyles,c=xs(e);t=t||"default";var f=l.get(c);if(!f){var v={loading:0,preload:null};if(f=a.querySelector(bl(c)))v.loading=5;else{e=w({rel:"stylesheet",href:e,"data-precedence":t},n),(n=qt.get(c))&&Or(e,n);var j=f=a.createElement("link");tt(j),ct(j,"link",e),j._p=new Promise(function(U,G){j.onload=U,j.onerror=G}),j.addEventListener("load",function(){v.loading|=1}),j.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Yo(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:v},l.set(c,f)}}}function Jv(e,t){jn.X(e,t);var n=hs;if(n&&e){var a=La(n).hoistableScripts,l=gs(e),c=a.get(l);c||(c=n.querySelector(wl(l)),c||(e=w({src:e,async:!0},t),(t=qt.get(l))&&kr(e,t),c=n.createElement("script"),tt(c),ct(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(l,c))}}function $v(e,t){jn.M(e,t);var n=hs;if(n&&e){var a=La(n).hoistableScripts,l=gs(e),c=a.get(l);c||(c=n.querySelector(wl(l)),c||(e=w({src:e,async:!0,type:"module"},t),(t=qt.get(l))&&kr(e,t),c=n.createElement("script"),tt(c),ct(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(l,c))}}function Cp(e,t,n,a){var l=(l=K.current)?qo(l):null;if(!l)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=xs(n.href),n=La(l).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=xs(n.href);var c=La(l).hoistableStyles,f=c.get(e);if(f||(l=l.ownerDocument||l,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,f),(c=l.querySelector(bl(e)))&&!c._p&&(f.instance=c,f.state.loading=5),qt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},qt.set(e,n),c||Fv(l,e,n,f.state))),t&&a===null)throw Error(i(528,""));return f}if(t&&a!==null)throw Error(i(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=gs(n),n=La(l).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function xs(e){return'href="'+Ot(e)+'"'}function bl(e){return'link[rel="stylesheet"]['+e+"]"}function Ap(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function Fv(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ct(t,"link",n),tt(t),e.head.appendChild(t))}function gs(e){return'[src="'+Ot(e)+'"]'}function wl(e){return"script[async]"+e}function Mp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Ot(n.href)+'"]');if(a)return t.instance=a,tt(a),a;var l=w({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),tt(a),ct(a,"style",l),Yo(a,n.precedence,e),t.instance=a;case"stylesheet":l=xs(n.href);var c=e.querySelector(bl(l));if(c)return t.state.loading|=4,t.instance=c,tt(c),c;a=Ap(n),(l=qt.get(l))&&Or(a,l),c=(e.ownerDocument||e).createElement("link"),tt(c);var f=c;return f._p=new Promise(function(v,j){f.onload=v,f.onerror=j}),ct(c,"link",a),t.state.loading|=4,Yo(c,n.precedence,e),t.instance=c;case"script":return c=gs(n.src),(l=e.querySelector(wl(c)))?(t.instance=l,tt(l),l):(a=n,(l=qt.get(c))&&(a=w({},n),kr(a,l)),e=e.ownerDocument||e,l=e.createElement("script"),tt(l),ct(l,"link",a),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Yo(a,n.precedence,e));return t.instance}function Yo(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=a.length?a[a.length-1]:null,c=l,f=0;f<a.length;f++){var v=a[f];if(v.dataset.precedence===t)c=v;else if(c!==l)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Or(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function kr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Wo=null;function Tp(e,t,n){if(Wo===null){var a=new Map,l=Wo=new Map;l.set(n,a)}else l=Wo,a=l.get(n),a||(a=new Map,l.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),l=0;l<n.length;l++){var c=n[l];if(!(c[Us]||c[at]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(t)||"";f=e+f;var v=a.get(f);v?v.push(c):a.set(f,[c])}}return a}function zp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Iv(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function _p(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function e1(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var l=xs(a.href),c=t.querySelector(bl(l));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Go.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,tt(c);return}c=t.ownerDocument||t,a=Ap(a),(l=qt.get(l))&&Or(a,l),c=c.createElement("link"),tt(c);var f=c;f._p=new Promise(function(v,j){f.onload=v,f.onerror=j}),ct(c,"link",a),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Go.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Hr=0;function t1(e,t){return e.stylesheets&&e.count===0&&Zo(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Zo(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Hr===0&&(Hr=62500*kv());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zo(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Hr?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(l)}}:null}function Go(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xo=null;function Zo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xo=new Map,t.forEach(n1,e),Xo=null,Go.call(e))}function n1(e,t){if(!(t.state.loading&4)){var n=Xo.get(e);if(n)var a=n.get(null);else{n=new Map,Xo.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<l.length;c++){var f=l[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}l=t.instance,f=l.getAttribute("data-precedence"),c=n.get(f)||a,c===a&&n.set(null,l),n.set(f,l),this.count++,a=Go.bind(this),l.addEventListener("load",a),l.addEventListener("error",a),c?c.parentNode.insertBefore(l,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var Sl={$$typeof:L,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function a1(e,t,n,a,l,c,f,v,j){this.tag=1,this.containerInfo=e,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=_c(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_c(0),this.hiddenUpdates=_c(null),this.identifierPrefix=a,this.onUncaughtError=l,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function Rp(e,t,n,a,l,c,f,v,j,U,G,$){return e=new a1(e,t,n,f,j,U,G,$,v),t=1,c===!0&&(t|=24),c=Et(3,null,null,t),e.current=c,c.stateNode=e,t=hi(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},yi(c),e}function Dp(e){return e?(e=Qa,e):Qa}function Op(e,t,n,a,l,c){l=Dp(l),a.context===null?a.context=l:a.pendingContext=l,a=kn(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=Hn(e,a,t),n!==null&&(yt(n,e,t),el(n,e,t))}function kp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ur(e,t){kp(e,t),(e=e.alternate)&&kp(e,t)}function Hp(e){if(e.tag===13||e.tag===31){var t=pa(e,67108864);t!==null&&yt(t,e,67108864),Ur(e,67108864)}}function Up(e){if(e.tag===13||e.tag===31){var t=zt();t=Rc(t);var n=pa(e,t);n!==null&&yt(n,e,t),Ur(e,t)}}var Qo=!0;function s1(e,t,n,a){var l=D.T;D.T=null;var c=X.p;try{X.p=2,Lr(e,t,n,a)}finally{X.p=c,D.T=l}}function l1(e,t,n,a){var l=D.T;D.T=null;var c=X.p;try{X.p=8,Lr(e,t,n,a)}finally{X.p=c,D.T=l}}function Lr(e,t,n,a){if(Qo){var l=Br(a);if(l===null)Nr(e,t,a,Ko,n),Bp(e,a);else if(c1(l,e,t,n,a))a.stopPropagation();else if(Bp(e,a),t&4&&-1<o1.indexOf(e)){for(;l!==null;){var c=Ua(l);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=ra(c.pendingLanes);if(f!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;f;){var j=1<<31-jt(f);v.entanglements[1]|=j,f&=~j}It(c),(De&6)===0&&(_o=wt()+500,xl(0))}}break;case 31:case 13:v=pa(c,2),v!==null&&yt(v,c,2),Do(),Ur(c,2)}if(c=Br(a),c===null&&Nr(e,t,a,Ko,n),c===l)break;l=c}l!==null&&a.stopPropagation()}else Nr(e,t,a,null,n)}}function Br(e){return e=Vc(e),Pr(e)}var Ko=null;function Pr(e){if(Ko=null,e=Ha(e),e!==null){var t=m(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ko=e,null}function Lp(e){switch(e){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(Gg()){case Gu:return 2;case Xu:return 8;case Ul:case Xg:return 32;case Zu:return 268435456;default:return 32}default:return 32}}var Vr=!1,Zn=null,Qn=null,Kn=null,jl=new Map,Nl=new Map,Jn=[],o1="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 Bp(e,t){switch(e){case"focusin":case"focusout":Zn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Kn=null;break;case"pointerover":case"pointerout":jl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nl.delete(t.pointerId)}}function El(e,t,n,a,l,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[l]},t!==null&&(t=Ua(t),t!==null&&Hp(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function c1(e,t,n,a,l){switch(t){case"focusin":return Zn=El(Zn,e,t,n,a,l),!0;case"dragenter":return Qn=El(Qn,e,t,n,a,l),!0;case"mouseover":return Kn=El(Kn,e,t,n,a,l),!0;case"pointerover":var c=l.pointerId;return jl.set(c,El(jl.get(c)||null,e,t,n,a,l)),!0;case"gotpointercapture":return c=l.pointerId,Nl.set(c,El(Nl.get(c)||null,e,t,n,a,l)),!0}return!1}function Pp(e){var t=Ha(e.target);if(t!==null){var n=m(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,Iu(e.priority,function(){Up(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,Iu(e.priority,function(){Up(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Jo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Br(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Pc=a,n.target.dispatchEvent(a),Pc=null}else return t=Ua(n),t!==null&&Hp(t),e.blockedOn=n,!1;t.shift()}return!0}function Vp(e,t,n){Jo(e)&&n.delete(t)}function i1(){Vr=!1,Zn!==null&&Jo(Zn)&&(Zn=null),Qn!==null&&Jo(Qn)&&(Qn=null),Kn!==null&&Jo(Kn)&&(Kn=null),jl.forEach(Vp),Nl.forEach(Vp)}function $o(e,t){e.blockedOn===t&&(e.blockedOn=null,Vr||(Vr=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,i1)))}var Fo=null;function qp(e){Fo!==e&&(Fo=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Fo===e&&(Fo=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],l=e[t+2];if(typeof a!="function"){if(Pr(a||n)===null)continue;break}var c=Ua(n);c!==null&&(e.splice(t,3),t-=3,Bi(c,{pending:!0,data:l,method:n.method,action:a},a,l))}}))}function vs(e){function t(j){return $o(j,e)}Zn!==null&&$o(Zn,e),Qn!==null&&$o(Qn,e),Kn!==null&&$o(Kn,e),jl.forEach(t),Nl.forEach(t);for(var n=0;n<Jn.length;n++){var a=Jn[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Jn.length&&(n=Jn[0],n.blockedOn===null);)Pp(n),n.blockedOn===null&&Jn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var l=n[a],c=n[a+1],f=l[mt]||null;if(typeof c=="function")f||qp(n);else if(f){var v=null;if(c&&c.hasAttribute("formAction")){if(l=c,f=c[mt]||null)v=f.formAction;else if(Pr(l)!==null)continue}else v=f.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),qp(n)}}}function Yp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return l=f})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function qr(e){this._internalRoot=e}Io.prototype.render=qr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current,a=zt();Op(n,a,e,t,null,null)},Io.prototype.unmount=qr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Op(e.current,2,null,e,null,null),Do(),t[ka]=null}};function Io(e){this._internalRoot=e}Io.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Jn.length&&t!==0&&t<Jn[n].priority;n++);Jn.splice(n,0,e),n===0&&Pp(e)}};var Wp=o.version;if(Wp!=="19.2.3")throw Error(i(527,Wp,"19.2.3"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=x(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var r1={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ec=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ec.isDisabled&&ec.supportsFiber)try{Os=ec.inject(r1),St=ec}catch{}}return Al.createRoot=function(e,t){if(!d(e))throw Error(i(299));var n=!1,a="",l=$f,c=Ff,f=If;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=Rp(e,1,!1,null,null,n,a,null,l,c,f,Yp),e[ka]=t.current,jr(e),new qr(t)},Al.hydrateRoot=function(e,t,n){if(!d(e))throw Error(i(299));var a=!1,l="",c=$f,f=Ff,v=If,j=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(j=n.formState)),t=Rp(e,1,!0,t,n??null,a,l,j,c,f,v,Yp),t.context=Dp(null),n=t.current,a=zt(),a=Rc(a),l=kn(a),l.callback=null,Hn(n,l,a),n=a,t.current.lanes=n,Hs(t,n),It(t),e[ka]=t.current,jr(e),new Io(t)},Al.version="19.2.3",Al}var eh;function y1(){if(eh)return Gr.exports;eh=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),Gr.exports=v1(),Gr.exports}var b1=y1();const w1={production_hub:{id:"production_hub",isOpen:!1,isMinimized:!1,isMaximized:!1,zIndex:10,position:{x:100,y:60},size:{width:1140,height:760}},asset_vault:{id:"asset_vault",isOpen:!1,isMinimized:!1,isMaximized:!1,zIndex:10,position:{x:150,y:100},size:{width:900,height:600}},engine_room:{id:"engine_room",isOpen:!1,isMinimized:!1,isMaximized:!1,zIndex:10,position:{x:200,y:140},size:{width:620,height:500}}},S1=[{id:"1",name:"Verdant Spire Launch",type:"Campaign",scenes:12,thumbnail:"/projects/verdant.jpg",lastModified:new Date("2024-01-15")},{id:"2",name:"Summer Watch Promo",type:"Product",scenes:6,thumbnail:"/projects/watch.jpg",lastModified:new Date("2024-01-12")},{id:"3",name:"Midnight Drive",type:"Automotive",scenes:8,thumbnail:"/projects/car.jpg",lastModified:new Date("2024-01-10")},{id:"4",name:"Neon Portrait",type:"Identity",scenes:4,thumbnail:"/projects/portrait.jpg",lastModified:new Date("2024-01-08")}],j1=[{id:"gpu-a",name:"RTX 6000 A",vramTotal:96,vramUsed:42,temperature:68,utilization:73},{id:"gpu-b",name:"RTX 6000 B",vramTotal:96,vramUsed:28,temperature:62,utilization:45}],Zh=y.createContext(void 0),N1=({children:s})=>{const[o,r]=y.useState("vault"),[i,d]=y.useState({...w1}),[m,h]=y.useState(null),[p,g]=y.useState(10),[x,b]=y.useState(null),[w,E]=y.useState(S1),[A,R]=y.useState([]),[S,C]=y.useState(!1),[k,z]=y.useState([]),[L,V]=y.useState(j1),[Q,I]=y.useState([]),W=y.useCallback(K=>{r(K)},[]),J=y.useCallback(K=>{d(M=>{const _=p+1;return g(_),h(K),{...M,[K]:{...M[K],isOpen:!0,isMinimized:!1,zIndex:_}}})},[p]),ae=y.useCallback(K=>{d(M=>({...M,[K]:{...M[K],isOpen:!1}})),h(M=>M===K?null:M)},[]),ue=y.useCallback(K=>{d(M=>({...M,[K]:{...M[K],isMinimized:!0}})),h(M=>M===K?null:M)},[]),fe=y.useCallback(K=>{d(M=>{const _=p+1;return g(_),h(K),{...M,[K]:{...M[K],isMinimized:!1,zIndex:_}}})},[p]),te=y.useCallback(K=>{d(M=>({...M,[K]:{...M[K],isMaximized:!M[K].isMaximized}}))},[]),ge=y.useCallback((K,M)=>{d(_=>({..._,[K]:{..._[K],isMaximized:M}}))},[]),re=y.useCallback(K=>{d(M=>{if(M[K].zIndex===p)return M;const _=p+1;return g(_),h(K),{...M,[K]:{...M[K],zIndex:_}}})},[p]),me=y.useCallback((K,M)=>{d(_=>({..._,[K]:{..._[K],position:M}}))},[]),D=y.useCallback((K,M)=>{d(_=>({..._,[K]:{..._[K],size:M}}))},[]),X=y.useCallback(K=>{E(M=>[K,...M])},[]),P=y.useCallback((K,M)=>{const _=M.trim();_&&(E(ne=>ne.map(he=>he.id===K?{...he,name:_,lastModified:new Date}:he)),b(ne=>ne&&ne.id===K?{...ne,name:_,lastModified:new Date}:ne))},[]),se=y.useCallback(K=>{E(M=>{const _=M.find(he=>he.id===K);return _?[{..._,id:`${_.id}-${Date.now()}`,name:`${_.name} (Copy)`,lastModified:new Date},...M]:M})},[]),pe=y.useCallback(K=>{const M=new Date,_=new Date(M);_.setDate(_.getDate()+30),E(ne=>{const he=ne.find(ye=>ye.id===K);return he?(R(ye=>[{...he,deletedAt:M,permanentDeleteAt:_},...ye]),ne.filter(ye=>ye.id!==K)):ne}),b(ne=>ne&&ne.id===K?null:ne)},[]),N=y.useCallback(K=>{z(M=>[...M,K])},[]),q=y.useCallback((K,M)=>{z(_=>_.map(ne=>ne.id===K?{...ne,...M}:ne))},[]),F=y.useCallback(K=>{V(K)},[]),ee=y.useCallback(K=>{I(M=>[...M.slice(-49),K])},[]),le={currentStage:o,setStage:W,windows:i,activeWindow:m,highestZIndex:p,openWindow:J,closeWindow:ae,minimizeWindow:ue,restoreWindow:fe,toggleMaximizeWindow:te,setWindowMaximized:ge,bringToFront:re,updateWindowPosition:me,updateWindowSize:D,selectedProject:x,setSelectedProject:b,projects:w,addProject:X,renameProject:P,duplicateProject:se,moveProjectToTrash:pe,trashedProjects:A,isAuthenticated:S,setAuthenticated:C,tasks:k,addTask:N,updateTask:q,gpuStats:L,updateGPUStats:F,logs:Q,addLog:ee};return u.jsx(Zh.Provider,{"code-path":"src\\stores\\desktopStore.tsx:383:5",value:le,children:s})},sa=()=>{const s=y.useContext(Zh);if(s===void 0)throw new Error("useDesktopStore must be used within a DesktopProvider");return s},E1=()=>u.jsxs("div",{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:5:5",className:"fixed inset-0 overflow-hidden pointer-events-none parallax-layer-bg",children:[u.jsx("div",{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:7:7",className:"absolute inset-0 bg-black"}),u.jsx("div",{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:10:7",className:"absolute inset-0 parallax-layer-mid",children:u.jsx("div",{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:11:9",className:"absolute inset-0 nebula-layer",style:{background:`
radial-gradient(ellipse 80% 60% at 30% 40%, rgba(var(--primary-accent-rgb), 0.25) 0%, transparent 60%),
radial-gradient(ellipse 60% 50% at 70% 60%, rgba(var(--primary-accent-rgb), 0.18) 0%, transparent 55%),
radial-gradient(ellipse 50% 40% at 50% 30%, rgba(var(--primary-accent-rgb), 0.12) 0%, transparent 50%)
`}})}),u.jsx("div",{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:24:7",className:"absolute inset-0 parallax-layer-ui",children:u.jsx("div",{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:25:9",className:"absolute inset-0",style:{background:`
radial-gradient(ellipse 40% 30% at 80% 20%, rgba(var(--primary-accent-rgb), 0.1) 0%, transparent 50%),
radial-gradient(ellipse 35% 25% at 20% 80%, rgba(var(--primary-accent-rgb), 0.12) 0%, transparent 45%)
`,animation:"nebula-drift 25s ease-in-out infinite reverse"}})}),u.jsx(C1,{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:38:7"}),u.jsx("div",{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:41:7",className:"absolute inset-0",style:{background:"radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%)"}})]}),C1=()=>{const s=Zt.useMemo(()=>Array.from({length:60},(o,r)=>({id:r,x:Math.random()*100,y:Math.random()*100,size:Math.random()*2+.5,opacity:Math.random()*.5+.2,delay:Math.random()*5})),[]);return u.jsx("div",{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:65:5",className:"absolute inset-0 parallax-layer-foreground",children:s.map(o=>u.jsx("div",{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:67:9",className:"absolute rounded-full bg-white",style:{left:`${o.x}%`,top:`${o.y}%`,width:`${o.size}px`,height:`${o.size}px`,opacity:o.opacity,animation:`twinkle 4s ease-in-out ${o.delay}s infinite`}},o.id))})},Qh=document.createElement("style");Qh.textContent=`
@keyframes twinkle {
0%, 100% { opacity: 0.2; }
50% { opacity: 0.6; }
}
`;document.head.appendChild(Qh);const A1=new URL(""+new URL("Project Astral - Aura-0TZza6qr.png",import.meta.url).href,import.meta.url).href,M1=new URL(""+new URL("Project Astral - Face-BeUwrsiX.png",import.meta.url).href,import.meta.url).href,T1=new URL(""+new URL("Project Astral - Portal-D1MO2Ywb.png",import.meta.url).href,import.meta.url).href,z1=()=>{const[s,o]=y.useState(!1),[r,i]=y.useState(!1),[d,m]=y.useState({x:0,y:0}),{setStage:h,setAuthenticated:p}=sa(),g=1.61,x=20,b=y.useCallback(()=>{s||(o(!0),setTimeout(()=>{i(!0),setTimeout(()=>{p(!0),h("nexus")},600)},900))},[s,p,h]),w=A=>{const R=A.clientX/window.innerWidth-.5,S=A.clientY/window.innerHeight-.5;m({x:R,y:S})},E=()=>{m({x:0,y:0})};return u.jsxs("div",{"code-path":"src\\sections\\VaultDoor.tsx:42:5",className:"fixed inset-0 flex items-center justify-center bg-black z-50",onMouseMove:w,onMouseLeave:E,children:[u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:47:7",className:"absolute inset-0 opacity-60",style:{background:`
radial-gradient(ellipse 70% 50% at 50% 50%, rgba(var(--primary-accent-rgb), 0.2) 0%, transparent 60%),
radial-gradient(ellipse 50% 40% at 40% 60%, rgba(var(--primary-accent-rgb), 0.15) 0%, transparent 50%)
`}}),u.jsxs("div",{"code-path":"src\\sections\\VaultDoor.tsx:57:7",className:"relative z-10 w-full h-full max-w-[1680px] px-8 lg:px-12",children:[u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:58:9",className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:u.jsxs("div",{"code-path":"src\\sections\\VaultDoor.tsx:59:11",className:"w-full max-w-[1500px] px-6 lg:px-10 flex items-center justify-between",children:[u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:60:13",className:"w-[44%] flex justify-center",children:u.jsxs("div",{"code-path":"src\\sections\\VaultDoor.tsx:61:15",className:"relative w-[min(92vw,1426px)] max-w-[1426px] aspect-square max-h-[90vh] flex items-center justify-center translate-x-[20px]",children:[u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:62:15",className:"absolute inset-0",style:{transform:`translate3d(${x+d.x*10}px, ${d.y*10}px, 0) scale(${g})`,transformOrigin:"center center",transition:"transform 160ms ease-out"},children:u.jsx("img",{"code-path":"src\\sections\\VaultDoor.tsx:70:17",src:T1,alt:"Astral Portal layer",className:"absolute inset-0 w-full h-full object-contain select-none pointer-events-none opacity-95"})}),u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:77:15",className:"absolute inset-0",style:{transform:`translate3d(${x+d.x*18}px, ${d.y*18}px, 0) scale(${g})`,transformOrigin:"center center",transition:"transform 160ms ease-out"},children:u.jsx("img",{"code-path":"src\\sections\\VaultDoor.tsx:85:17",src:M1,alt:"Astral Face layer",className:"absolute inset-0 w-full h-full object-contain select-none pointer-events-none opacity-95"})}),u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:92:15",className:"absolute inset-0",style:{transform:`translate3d(${x+d.x*26}px, ${d.y*26}px, 0) scale(${g})`,transformOrigin:"center center",transition:"transform 160ms ease-out"},children:u.jsx("img",{"code-path":"src\\sections\\VaultDoor.tsx:100:17",src:A1,alt:"Astral Aura layer",className:"absolute inset-0 w-full h-full object-contain select-none pointer-events-none opacity-100 mix-blend-screen"})}),u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:107:15",className:"absolute inset-0",style:{background:"radial-gradient(circle at 50% 50%, rgba(var(--primary-accent-rgb), 0.22) 0%, transparent 62%)",filter:"blur(12px)"}})]})}),u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:117:13",className:"w-[52%] flex justify-start",children:u.jsxs("h1",{"code-path":"src\\sections\\VaultDoor.tsx:118:15",className:"font-semibold leading-[0.9] text-[clamp(70px,10.4vw,184px)]",style:{color:"rgba(248, 248, 250, 0.95)"},children:["Astral",u.jsx("br",{"code-path":"src\\sections\\VaultDoor.tsx:123:17"}),"Suite"]})})]})}),u.jsxs("div",{"code-path":"src\\sections\\VaultDoor.tsx:130:9",className:"absolute left-1/2 bottom-[6.5vh] -translate-x-1/2 z-30 flex flex-col items-center",children:[u.jsxs("div",{"code-path":"src\\sections\\VaultDoor.tsx:131:11",className:"relative",children:[u.jsx("button",{"code-path":"src\\sections\\VaultDoor.tsx:132:13",type:"button",onClick:b,className:"glass-pill w-[104px] h-[104px] flex items-center justify-center transition-transform duration-300 hover:scale-105",style:{cursor:"pointer"},children:u.jsxs("svg",{"code-path":"src\\sections\\VaultDoor.tsx:138:15",width:"82",height:"82",viewBox:"0 0 180 180",className:`transform transition-transform duration-300 ${s?"scale-110":"scale-100"}`,children:[u.jsx("path",{"code-path":"src\\sections\\VaultDoor.tsx:146:17",d:"M90 18a72 72 0 1 1 0 144a72 72 0 1 1 0-144z",fill:"none",stroke:"rgba(255,255,255,0.08)",strokeWidth:"2"}),u.jsx("path",{"code-path":"src\\sections\\VaultDoor.tsx:152:17",d:"M90 18a72 72 0 1 1 0 144a72 72 0 1 1 0-144z",fill:"none",stroke:"rgba(var(--primary-accent-rgb), 0.9)",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"452",style:{filter:"drop-shadow(0 0 18px rgba(var(--primary-accent-rgb), 0.45))",animation:s?"ring-spin 0.9s linear forwards":"pulse-slow 3s ease-in-out infinite"}}),u.jsx("circle",{"code-path":"src\\sections\\VaultDoor.tsx:164:17",cx:"90",cy:"90",r:"52",fill:"none",stroke:"rgba(var(--primary-accent-rgb), 0.2)",strokeWidth:"1",strokeDasharray:"8 4",className:"animate-spin-slow",style:{transformOrigin:"center",animationDuration:"20s"}}),u.jsx("path",{"code-path":"src\\sections\\VaultDoor.tsx:175:17",d:"M90 73a17 17 0 1 0 0 34a17 17 0 1 0 0-34zm0 29a12 12 0 1 1 0-24a12 12 0 1 1 0 24z",fill:"rgba(var(--primary-accent-rgb), 0.6)"}),u.jsx("circle",{"code-path":"src\\sections\\VaultDoor.tsx:179:17",cx:"90",cy:"90",r:"6",fill:"rgba(var(--primary-accent-rgb), 0.9)"})]})}),r&&u.jsx(_1,{"code-path":"src\\sections\\VaultDoor.tsx:183:31"})]}),u.jsx("p",{"code-path":"src\\sections\\VaultDoor.tsx:186:11",className:"mt-5 text-sm font-medium tracking-wide text-center whitespace-nowrap",style:{color:"var(--astral-text-muted)"},children:s?"Authenticating...":"Insert security key or use biometric sensor"})]})]})]})},_1=()=>{const s=Zt.useMemo(()=>Array.from({length:24},(o,r)=>({id:r,angle:r/24*360,distance:80+Math.random()*40,size:3+Math.random()*4,delay:Math.random()*.1})),[]);return u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:210:5",className:"absolute inset-0 pointer-events-none",children:s.map(o=>u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:212:9",className:"absolute left-1/2 top-1/2 rounded-full",style:{width:`${o.size}px`,height:`${o.size}px`,background:"rgba(var(--primary-accent-rgb), 0.9)",boxShadow:"0 0 10px rgba(var(--primary-accent-rgb), 0.6)",animation:`particle-burst 0.6s ease-out ${o.delay}s forwards`,"--angle":`${o.angle}deg`,"--distance":`${o.distance}px`}},o.id))})},Kh=document.createElement("style");Kh.textContent+=`
@keyframes particle-burst {
0% {
transform: translate(-50%, -50%) rotate(var(--angle)) translateX(0);
opacity: 1;
}
100% {
transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--distance));
opacity: 0;
}
}
@keyframes ring-spin {
0% {
stroke-dashoffset: 452;
}
100% {
stroke-dashoffset: 0;
}
}
`;document.head.appendChild(Kh);const R1=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),D1=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,r,i)=>i?i.toUpperCase():r.toLowerCase()),th=s=>{const o=D1(s);return o.charAt(0).toUpperCase()+o.slice(1)},Jh=(...s)=>s.filter((o,r,i)=>!!o&&o.trim()!==""&&i.indexOf(o)===r).join(" ").trim(),O1=s=>{for(const o in s)if(o.startsWith("aria-")||o==="role"||o==="title")return!0};var k1={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 H1=y.forwardRef(({color:s="currentColor",size:o=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:d="",children:m,iconNode:h,...p},g)=>y.createElement("svg",{ref:g,...k1,width:o,height:o,stroke:s,strokeWidth:i?Number(r)*24/Number(o):r,className:Jh("lucide",d),...!m&&!O1(p)&&{"aria-hidden":"true"},...p},[...h.map(([x,b])=>y.createElement(x,b)),...Array.isArray(m)?m:[m]]));const Te=(s,o)=>{const r=y.forwardRef(({className:i,...d},m)=>y.createElement(H1,{ref:m,iconNode:o,className:Jh(`lucide-${R1(th(s))}`,`lucide-${s}`,i),...d}));return r.displayName=th(s),r};const U1=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],L1=Te("box",U1);const B1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],P1=Te("check",B1);const V1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],$h=Te("chevron-down",V1);const q1=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Y1=Te("chevron-up",q1);const W1=[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Fh=Te("circle-user-round",W1);const G1=[["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z",key:"1tn4o7"}],["path",{d:"m6.2 5.3 3.1 3.9",key:"iuk76l"}],["path",{d:"m12.4 3.4 3.1 4",key:"6hsd6n"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z",key:"ltgou9"}]],Ih=Te("clapperboard",G1);const X1=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Z1=Te("clock",X1);const Q1=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ex=Te("copy",Q1);const K1=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],tx=Te("cpu",K1);const J1=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],$1=Te("download",J1);const F1=[["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"}]],nx=Te("ellipsis",F1);const I1=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],ey=Te("eye-off",I1);const ty=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ny=Te("eye",ty);const ay=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]],sy=Te("film",ay);const ly=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],oy=Te("folder-open",ly);const cy=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],iy=Te("folder-plus",cy);const ry=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],uy=Te("folder",ry);const dy=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],fy=Te("grid-3x3",dy);const my=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],Mu=Te("hard-drive",my);const py=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],ax=Te("image",py);const hy=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],sx=Te("key-round",hy);const xy=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],lx=Te("link-2",xy);const gy=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],vy=Te("list",gy);const yy=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],by=Te("log-out",yy);const wy=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Sy=Te("pencil",wy);const jy=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ox=Te("plus",jy);const Ny=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Ey=Te("send",Ny);const Cy=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],cx=Te("shield-check",Cy);const Ay=[["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"}]],ix=Te("sliders-horizontal",Ay);const My=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],Ty=Te("toggle-left",My);const zy=[["circle",{cx:"15",cy:"12",r:"3",key:"1afu0r"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],_y=Te("toggle-right",zy);const Ry=[["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"}]],rx=Te("trash-2",Ry);const Dy=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],nh=Te("upload",Dy);const Oy=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ky=Te("user",Oy);const Hy=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Tu=Te("users",Hy),Uy={},ah=s=>{let o;const r=new Set,i=(b,w)=>{const E=typeof b=="function"?b(o):b;if(!Object.is(E,o)){const A=o;o=w??(typeof E!="object"||E===null)?E:Object.assign({},o,E),r.forEach(R=>R(o,A))}},d=()=>o,g={setState:i,getState:d,getInitialState:()=>x,subscribe:b=>(r.add(b),()=>r.delete(b)),destroy:()=>{(Uy?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},x=o=s(i,d,g);return g},Ly=s=>s?ah(s):ah;var Kr={exports:{}},Jr={},$r={exports:{}},Fr={};var sh;function By(){if(sh)return Fr;sh=1;var s=Ol();function o(w,E){return w===E&&(w!==0||1/w===1/E)||w!==w&&E!==E}var r=typeof Object.is=="function"?Object.is:o,i=s.useState,d=s.useEffect,m=s.useLayoutEffect,h=s.useDebugValue;function p(w,E){var A=E(),R=i({inst:{value:A,getSnapshot:E}}),S=R[0].inst,C=R[1];return m(function(){S.value=A,S.getSnapshot=E,g(S)&&C({inst:S})},[w,A,E]),d(function(){return g(S)&&C({inst:S}),w(function(){g(S)&&C({inst:S})})},[w]),h(A),A}function g(w){var E=w.getSnapshot;w=w.value;try{var A=E();return!r(w,A)}catch{return!0}}function x(w,E){return E()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?x:p;return Fr.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:b,Fr}var lh;function Py(){return lh||(lh=1,$r.exports=By()),$r.exports}var oh;function Vy(){if(oh)return Jr;oh=1;var s=Ol(),o=Py();function r(x,b){return x===b&&(x!==0||1/x===1/b)||x!==x&&b!==b}var i=typeof Object.is=="function"?Object.is:r,d=o.useSyncExternalStore,m=s.useRef,h=s.useEffect,p=s.useMemo,g=s.useDebugValue;return Jr.useSyncExternalStoreWithSelector=function(x,b,w,E,A){var R=m(null);if(R.current===null){var S={hasValue:!1,value:null};R.current=S}else S=R.current;R=p(function(){function k(I){if(!z){if(z=!0,L=I,I=E(I),A!==void 0&&S.hasValue){var W=S.value;if(A(W,I))return V=W}return V=I}if(W=V,i(L,I))return W;var J=E(I);return A!==void 0&&A(W,J)?(L=I,W):(L=I,V=J)}var z=!1,L,V,Q=w===void 0?null:w;return[function(){return k(b())},Q===null?void 0:function(){return k(Q())}]},[b,w,E,A]);var C=d(x,R[0],R[1]);return h(function(){S.hasValue=!0,S.value=C},[C]),g(C),C},Jr}var ch;function qy(){return ch||(ch=1,Kr.exports=Vy()),Kr.exports}var Yy=qy();const Wy=Au(Yy),ux={},{useDebugValue:Gy}=Zt,{useSyncExternalStoreWithSelector:Xy}=Wy;let ih=!1;const Zy=s=>s;function Qy(s,o=Zy,r){(ux?"production":void 0)!=="production"&&r&&!ih&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),ih=!0);const i=Xy(s.subscribe,s.getState,s.getServerState||s.getInitialState,o,r);return Gy(i),i}const Ky=s=>{(ux?"production":void 0)!=="production"&&typeof s!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const o=typeof s=="function"?Ly(s):s,r=(i,d)=>Qy(o,i,d);return Object.assign(r,o),r},Jy=s=>Ky,$y={};function Fy(s,o){let r;try{r=s()}catch{return}return{getItem:d=>{var m;const h=g=>g===null?null:JSON.parse(g,void 0),p=(m=r.getItem(d))!=null?m:null;return p instanceof Promise?p.then(h):h(p)},setItem:(d,m)=>r.setItem(d,JSON.stringify(m,void 0)),removeItem:d=>r.removeItem(d)}}const _l=s=>o=>{try{const r=s(o);return r instanceof Promise?r:{then(i){return _l(i)(r)},catch(i){return this}}}catch(r){return{then(i){return this},catch(i){return _l(i)(r)}}}},Iy=(s,o)=>(r,i,d)=>{let m={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:C=>C,version:0,merge:(C,k)=>({...k,...C}),...o},h=!1;const p=new Set,g=new Set;let x;try{x=m.getStorage()}catch{}if(!x)return s((...C)=>{console.warn(`[zustand persist middleware] Unable to update item '${m.name}', the given storage is currently unavailable.`),r(...C)},i,d);const b=_l(m.serialize),w=()=>{const C=m.partialize({...i()});let k;const z=b({state:C,version:m.version}).then(L=>x.setItem(m.name,L)).catch(L=>{k=L});if(k)throw k;return z},E=d.setState;d.setState=(C,k)=>{E(C,k),w()};const A=s((...C)=>{r(...C),w()},i,d);let R;const S=()=>{var C;if(!x)return;h=!1,p.forEach(z=>z(i()));const k=((C=m.onRehydrateStorage)==null?void 0:C.call(m,i()))||void 0;return _l(x.getItem.bind(x))(m.name).then(z=>{if(z)return m.deserialize(z)}).then(z=>{if(z)if(typeof z.version=="number"&&z.version!==m.version){if(m.migrate)return m.migrate(z.state,z.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return z.state}).then(z=>{var L;return R=m.merge(z,(L=i())!=null?L:A),r(R,!0),w()}).then(()=>{k?.(R,void 0),h=!0,g.forEach(z=>z(R))}).catch(z=>{k?.(void 0,z)})};return d.persist={setOptions:C=>{m={...m,...C},C.getStorage&&(x=C.getStorage())},clearStorage:()=>{x?.removeItem(m.name)},getOptions:()=>m,rehydrate:()=>S(),hasHydrated:()=>h,onHydrate:C=>(p.add(C),()=>{p.delete(C)}),onFinishHydration:C=>(g.add(C),()=>{g.delete(C)})},S(),R||A},eb=(s,o)=>(r,i,d)=>{let m={storage:Fy(()=>localStorage),partialize:S=>S,version:0,merge:(S,C)=>({...C,...S}),...o},h=!1;const p=new Set,g=new Set;let x=m.storage;if(!x)return s((...S)=>{console.warn(`[zustand persist middleware] Unable to update item '${m.name}', the given storage is currently unavailable.`),r(...S)},i,d);const b=()=>{const S=m.partialize({...i()});return x.setItem(m.name,{state:S,version:m.version})},w=d.setState;d.setState=(S,C)=>{w(S,C),b()};const E=s((...S)=>{r(...S),b()},i,d);d.getInitialState=()=>E;let A;const R=()=>{var S,C;if(!x)return;h=!1,p.forEach(z=>{var L;return z((L=i())!=null?L:E)});const k=((C=m.onRehydrateStorage)==null?void 0:C.call(m,(S=i())!=null?S:E))||void 0;return _l(x.getItem.bind(x))(m.name).then(z=>{if(z)if(typeof z.version=="number"&&z.version!==m.version){if(m.migrate)return[!0,m.migrate(z.state,z.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,z.state];return[!1,void 0]}).then(z=>{var L;const[V,Q]=z;if(A=m.merge(Q,(L=i())!=null?L:E),r(A,!0),V)return b()}).then(()=>{k?.(A,void 0),A=i(),h=!0,g.forEach(z=>z(A))}).catch(z=>{k?.(void 0,z)})};return d.persist={setOptions:S=>{m={...m,...S},S.storage&&(x=S.storage)},clearStorage:()=>{x?.removeItem(m.name)},getOptions:()=>m,rehydrate:()=>R(),hasHydrated:()=>h,onHydrate:S=>(p.add(S),()=>{p.delete(S)}),onFinishHydration:S=>(g.add(S),()=>{g.delete(S)})},m.skipHydration||R(),A||E},tb=(s,o)=>"getStorage"in o||"serialize"in o||"deserialize"in o?(($y?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Iy(s,o)):eb(s,o),nb=tb,Ir=(s,o)=>{const{r,g:i,b:d}=dx(s),m=Math.max(.2,Math.min(1.4,o)),h=Number((.12*m).toFixed(3)),p=Number((.24*m).toFixed(3)),g=Number((.42*m).toFixed(3)),x=Number((.48*m).toFixed(3));document.documentElement.style.setProperty("--primary-accent",s),document.documentElement.style.setProperty("--primary-accent-rgb",`${r} ${i} ${d}`),document.documentElement.style.setProperty("--astral-violet",s),document.documentElement.style.setProperty("--accent-glow-intensity",m.toString()),document.documentElement.style.setProperty("--astral-violet-glow",`${Ml(s,g)}`),document.documentElement.style.setProperty("--accent-glow-soft",`${Ml(s,h)}`),document.documentElement.style.setProperty("--accent-glow-medium",`${Ml(s,p)}`),document.documentElement.style.setProperty("--accent-glow-strong",`${Ml(s,g)}`),document.documentElement.style.setProperty("--accent-edge",`${Ml(s,x)}`)},rh=s=>{document.documentElement.setAttribute("data-density",s)},uh=s=>{document.documentElement.style.setProperty("--reduced-motion",s?"1":"0")},zu=Jy()(nb((s,o)=>({isSystemPreferencesOpen:!1,activeSection:"preferences",accentColor:"#7B6CFF",glowIntensity:.9,interfaceDensity:"comfortable",reducedMotion:!1,notifications:{renderComplete:!0,trainingFinished:!0,securityAlert:!0},profile:{avatarUrl:"",displayName:"Sagnik Chatterjee",roleLabel:"Creative Director · CL-3",email:"sagnik@astral.local",clearanceLevel:3},socials:{youtubeConnected:!1,instagramConnected:!1,vimeoConnected:!1},apiVault:{openRouterKey:"",runwayKey:"",pikaKey:""},closedModels:{ltx2Mounted:!0,ltx2Path:"/mnt/nas/models/ltx2_v1.safetensors",ltx2License:"",fluxMounted:!0,fluxPath:"/mnt/nas/models/flux_dev.safetensors",fluxLicense:"",wanMounted:!1,wanPath:"/mnt/nas/models/wan_2.1.safetensors",wanLicense:"",vramLimit:90},security:{biometricEnforcement:!0},storage:{nasMountPath:"\\\\192.168.1.50\\project_astral",archiveDays:30,videoUsed:42,imagesUsed:21,cacheUsed:9,freeSpace:28},teamMembers:[{id:"m1",name:"Sagnik Chatterjee",email:"sagnik@astral.local",role:"Admin"},{id:"m2",name:"Sayan Roy",email:"sayan@astral.local",role:"Editor"},{id:"m3",name:"Nadia Khan",email:"nadia@astral.local",role:"Viewer"}],openSystemPreferences:(r="preferences")=>s({isSystemPreferencesOpen:!0,activeSection:r}),closeSystemPreferences:()=>s({isSystemPreferencesOpen:!1}),setActiveSection:r=>s({activeSection:r}),setAccentColor:r=>{s({accentColor:r}),Ir(r,o().glowIntensity)},setGlowIntensity:r=>{const i=Math.max(.2,Math.min(1.4,r));s({glowIntensity:i}),Ir(o().accentColor,i)},setInterfaceDensity:r=>{s({interfaceDensity:r}),rh(r)},setReducedMotion:r=>{s({reducedMotion:r}),uh(r)},setNotification:(r,i)=>s(d=>({notifications:{...d.notifications,[r]:i}})),setDisplayName:r=>s(i=>({profile:{...i.profile,displayName:r}})),setSocialConnected:(r,i)=>s(d=>({socials:{...d.socials,[r]:i}})),setApiKey:(r,i)=>s(d=>({apiVault:{...d.apiVault,[r]:i}})),setClosedModelValue:(r,i)=>s(d=>({closedModels:{...d.closedModels,[r]:i}})),setBiometricEnforcement:r=>s(i=>({security:{...i.security,biometricEnforcement:r}})),setStorageMountPath:r=>s(i=>({storage:{...i.storage,nasMountPath:r}})),setArchiveDays:r=>s(i=>({storage:{...i.storage,archiveDays:r}})),setTeamRole:(r,i)=>s(d=>({teamMembers:d.teamMembers.map(m=>m.id===r?{...m,role:i}:m)})),revokeTeamMember:r=>s(i=>({teamMembers:i.teamMembers.filter(d=>d.id!==r)})),inviteTeamMember:r=>s(i=>{const d=r.trim().toLowerCase();return!d||i.teamMembers.some(m=>m.email===d)?i:{teamMembers:[...i.teamMembers,{id:`m-${Date.now()}`,name:d.split("@")[0],email:d,role:"Viewer"}]}}),initializeSettings:()=>{const{accentColor:r,glowIntensity:i,interfaceDensity:d,reducedMotion:m}=o();Ir(r,i),rh(d),uh(m)}}),{name:"astral-suite-settings-v1",partialize:s=>({accentColor:s.accentColor,glowIntensity:s.glowIntensity,interfaceDensity:s.interfaceDensity,reducedMotion:s.reducedMotion,notifications:s.notifications,profile:s.profile,socials:s.socials,apiVault:s.apiVault,closedModels:s.closedModels,security:s.security,storage:s.storage,teamMembers:s.teamMembers})}));function Ml(s,o){const{r,g:i,b:d}=dx(s);return`rgba(${r}, ${i}, ${d}, ${o})`}function dx(s){const o=s.replace("#",""),r=o.length===3?o.split("").map(p=>`${p}${p}`).join(""):o,i=Number.parseInt(r,16),d=i>>16&255,m=i>>8&255,h=i&255;return{r:d,g:m,b:h}}const fx=({className:s=""})=>{const{setAuthenticated:o,setSelectedProject:r,setStage:i}=sa(),d=zu(b=>b.openSystemPreferences),[m,h]=y.useState(!1),p=y.useRef(null);y.useEffect(()=>{const b=w=>{p.current&&(p.current.contains(w.target)||h(!1))};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[]);const g=()=>{o(!1),r(null),i("vault"),h(!1)},x=b=>{d(b),h(!1)};return u.jsxs("div",{"code-path":"src\\components\\user\\UserControl.tsx:51:5",className:`relative ${s}`,ref:p,children:[u.jsxs("div",{"code-path":"src\\components\\user\\UserControl.tsx:52:7",className:"glass-pill h-12 pl-2 pr-2 rounded-full flex items-center gap-3",style:{border:"1px solid rgba(var(--primary-accent-rgb), 0.22)",boxShadow:"0 8px 28px rgba(0, 0, 0, 0.35), 0 0 18px rgba(var(--primary-accent-rgb), 0.18)"},children:[u.jsx("div",{"code-path":"src\\components\\user\\UserControl.tsx:59:9",className:"w-8 h-8 rounded-full bg-white/10 border border-white/15 overflow-hidden flex items-center justify-center",children:u.jsx("span",{"code-path":"src\\components\\user\\UserControl.tsx:60:11",className:"text-xs font-semibold text-white",children:"SC"})}),u.jsxs("div",{"code-path":"src\\components\\user\\UserControl.tsx:63:9",className:"leading-tight",children:[u.jsx("div",{"code-path":"src\\components\\user\\UserControl.tsx:64:11",className:"text-xs font-semibold text-white",children:"Sagnik Chakraborty"}),u.jsx("div",{"code-path":"src\\components\\user\\UserControl.tsx:65:11",className:"text-[10px] text-white/55 tracking-wide uppercase",children:"Creative Director · CL-3"})]}),u.jsx("button",{"code-path":"src\\components\\user\\UserControl.tsx:68:9",type:"button",onClick:()=>h(b=>!b),className:"w-8 h-8 rounded-full flex items-center justify-center bg-white/5 hover:bg-white/10 transition-colors","aria-label":"Open user menu","aria-expanded":m,children:u.jsx(nx,{"code-path":"src\\components\\user\\UserControl.tsx:75:11",className:"w-4 h-4 text-white/85"})})]}),m&&u.jsxs("div",{"code-path":"src\\components\\user\\UserControl.tsx:80:9",className:"absolute right-0 mt-2 w-[280px] rounded-2xl overflow-hidden",style:{background:"rgba(12, 12, 18, 0.92)",backdropFilter:"blur(18px) saturate(130%)",border:"1px solid rgba(var(--primary-accent-rgb), 0.24)",boxShadow:"0 18px 50px rgba(0, 0, 0, 0.45), 0 0 22px rgba(var(--primary-accent-rgb), 0.16)"},children:[u.jsx(Aa,{"code-path":"src\\components\\user\\UserControl.tsx:89:11",icon:u.jsx(Fh,{"code-path":"src\\components\\user\\UserControl.tsx:89:29",className:"w-4 h-4"}),label:"User Profile",sub:"Identity, role, and clearance data",onClick:()=>x("user_profile")}),u.jsx(Aa,{"code-path":"src\\components\\user\\UserControl.tsx:90:11",icon:u.jsx(lx,{"code-path":"src\\components\\user\\UserControl.tsx:90:29",className:"w-4 h-4"}),label:"Socials and API",sub:"Connect social channels and model APIs",onClick:()=>x("socials_api")}),u.jsx(Aa,{"code-path":"src\\components\\user\\UserControl.tsx:91:11",icon:u.jsx(sx,{"code-path":"src\\components\\user\\UserControl.tsx:91:29",className:"w-4 h-4"}),label:"Closed-Model Access",sub:"Video and image provider credentials",onClick:()=>x("closed_model_access")}),u.jsx(Aa,{"code-path":"src\\components\\user\\UserControl.tsx:92:11",icon:u.jsx(Tu,{"code-path":"src\\components\\user\\UserControl.tsx:92:29",className:"w-4 h-4"}),label:"Team Access",sub:"Permissions, invites, and handoff control",onClick:()=>x("team_access")}),u.jsx(Aa,{"code-path":"src\\components\\user\\UserControl.tsx:93:11",icon:u.jsx(cx,{"code-path":"src\\components\\user\\UserControl.tsx:93:29",className:"w-4 h-4"}),label:"Security and Consent",sub:"Contract checks and kill-switch settings",onClick:()=>x("security_consent")}),u.jsx(Aa,{"code-path":"src\\components\\user\\UserControl.tsx:94:11",icon:u.jsx(Mu,{"code-path":"src\\components\\user\\UserControl.tsx:94:29",className:"w-4 h-4"}),label:"Storage and Sync",sub:"NAS mount targets and project mirrors",onClick:()=>x("storage_sync")}),u.jsx(Aa,{"code-path":"src\\components\\user\\UserControl.tsx:95:11",icon:u.jsx(ix,{"code-path":"src\\components\\user\\UserControl.tsx:95:29",className:"w-4 h-4"}),label:"Preferences",sub:"Workspace behavior and defaults",onClick:()=>x("preferences")}),u.jsx("div",{"code-path":"src\\components\\user\\UserControl.tsx:97:11",className:"h-px bg-white/10 my-1"}),u.jsxs("button",{"code-path":"src\\components\\user\\UserControl.tsx:99:11",type:"button",onClick:g,className:"w-full px-3 py-2.5 flex items-center gap-3 text-left hover:bg-red-500/10 transition-colors",children:[u.jsx("span",{"code-path":"src\\components\\user\\UserControl.tsx:104:13",className:"w-8 h-8 rounded-lg bg-red-500/15 flex items-center justify-center text-red-300",children:u.jsx(by,{"code-path":"src\\components\\user\\UserControl.tsx:105:15",className:"w-4 h-4"})}),u.jsx("span",{"code-path":"src\\components\\user\\UserControl.tsx:107:13",className:"text-sm font-medium text-red-300",children:"Log out"})]})]})]})},Aa=({icon:s,label:o,sub:r,onClick:i})=>u.jsxs("button",{"code-path":"src\\components\\user\\UserControl.tsx:117:5",type:"button",onClick:i,className:"w-full px-3 py-2.5 flex items-start gap-3 text-left hover:bg-white/5 transition-colors",children:[u.jsx("span",{"code-path":"src\\components\\user\\UserControl.tsx:122:7",className:"w-8 h-8 rounded-lg bg-white/5 border border-white/10 flex items-center justify-center text-white/80",children:s}),u.jsxs("span",{"code-path":"src\\components\\user\\UserControl.tsx:125:7",className:"flex-1 min-w-0",children:[u.jsx("span",{"code-path":"src\\components\\user\\UserControl.tsx:126:9",className:"block text-sm text-white",children:o}),u.jsx("span",{"code-path":"src\\components\\user\\UserControl.tsx:127:9",className:"block text-[11px] text-white/50",children:r})]})]});var kl=Xh();const ab=Au(kl);function dh(s,[o,r]){return Math.min(r,Math.max(o,s))}function Fe(s,o,{checkForDefaultPrevented:r=!0}={}){return function(d){if(s?.(d),r===!1||!d.defaultPrevented)return o?.(d)}}function _u(s,o=[]){let r=[];function i(m,h){const p=y.createContext(h),g=r.length;r=[...r,h];const x=w=>{const{scope:E,children:A,...R}=w,S=E?.[s]?.[g]||p,C=y.useMemo(()=>R,Object.values(R));return u.jsx(S.Provider,{value:C,children:A})};x.displayName=m+"Provider";function b(w,E){const A=E?.[s]?.[g]||p,R=y.useContext(A);if(R)return R;if(h!==void 0)return h;throw new Error(`\`${w}\` must be used within \`${m}\``)}return[x,b]}const d=()=>{const m=r.map(h=>y.createContext(h));return function(p){const g=p?.[s]||m;return y.useMemo(()=>({[`__scope${s}`]:{...p,[s]:g}}),[p,g])}};return d.scopeName=s,[i,sb(d,...o)]}function sb(...s){const o=s[0];if(s.length===1)return o;const r=()=>{const i=s.map(d=>({useScope:d(),scopeName:d.scopeName}));return function(m){const h=i.reduce((p,{useScope:g,scopeName:x})=>{const w=g(m)[`__scope${x}`];return{...p,...w}},{});return y.useMemo(()=>({[`__scope${o.scopeName}`]:h}),[h])}};return r.scopeName=o.scopeName,r}function fh(s,o){if(typeof s=="function")return s(o);s!=null&&(s.current=o)}function yc(...s){return o=>{let r=!1;const i=s.map(d=>{const m=fh(d,o);return!r&&typeof m=="function"&&(r=!0),m});if(r)return()=>{for(let d=0;d<i.length;d++){const m=i[d];typeof m=="function"?m():fh(s[d],null)}}}}function it(...s){return y.useCallback(yc(...s),s)}function mh(s){const o=lb(s),r=y.forwardRef((i,d)=>{const{children:m,...h}=i,p=y.Children.toArray(m),g=p.find(cb);if(g){const x=g.props.children,b=p.map(w=>w===g?y.Children.count(x)>1?y.Children.only(null):y.isValidElement(x)?x.props.children:null:w);return u.jsx(o,{...h,ref:d,children:y.isValidElement(x)?y.cloneElement(x,void 0,b):null})}return u.jsx(o,{...h,ref:d,children:m})});return r.displayName=`${s}.Slot`,r}function lb(s){const o=y.forwardRef((r,i)=>{const{children:d,...m}=r;if(y.isValidElement(d)){const h=rb(d),p=ib(m,d.props);return d.type!==y.Fragment&&(p.ref=i?yc(i,h):h),y.cloneElement(d,p)}return y.Children.count(d)>1?y.Children.only(null):null});return o.displayName=`${s}.SlotClone`,o}var ob=Symbol("radix.slottable");function cb(s){return y.isValidElement(s)&&typeof s.type=="function"&&"__radixId"in s.type&&s.type.__radixId===ob}function ib(s,o){const r={...o};for(const i in o){const d=s[i],m=o[i];/^on[A-Z]/.test(i)?d&&m?r[i]=(...p)=>{const g=m(...p);return d(...p),g}:d&&(r[i]=d):i==="style"?r[i]={...d,...m}:i==="className"&&(r[i]=[d,m].filter(Boolean).join(" "))}return{...s,...r}}function rb(s){let o=Object.getOwnPropertyDescriptor(s.props,"ref")?.get,r=o&&"isReactWarning"in o&&o.isReactWarning;return r?s.ref:(o=Object.getOwnPropertyDescriptor(s,"ref")?.get,r=o&&"isReactWarning"in o&&o.isReactWarning,r?s.props.ref:s.props.ref||s.ref)}function ub(s){const o=s+"CollectionProvider",[r,i]=_u(o),[d,m]=r(o,{collectionRef:{current:null},itemMap:new Map}),h=S=>{const{scope:C,children:k}=S,z=Zt.useRef(null),L=Zt.useRef(new Map).current;return u.jsx(d,{scope:C,itemMap:L,collectionRef:z,children:k})};h.displayName=o;const p=s+"CollectionSlot",g=mh(p),x=Zt.forwardRef((S,C)=>{const{scope:k,children:z}=S,L=m(p,k),V=it(C,L.collectionRef);return u.jsx(g,{ref:V,children:z})});x.displayName=p;const b=s+"CollectionItemSlot",w="data-radix-collection-item",E=mh(b),A=Zt.forwardRef((S,C)=>{const{scope:k,children:z,...L}=S,V=Zt.useRef(null),Q=it(C,V),I=m(b,k);return Zt.useEffect(()=>(I.itemMap.set(V,{ref:V,...L}),()=>{I.itemMap.delete(V)})),u.jsx(E,{[w]:"",ref:Q,children:z})});A.displayName=b;function R(S){const C=m(s+"CollectionConsumer",S);return Zt.useCallback(()=>{const z=C.collectionRef.current;if(!z)return[];const L=Array.from(z.querySelectorAll(`[${w}]`));return Array.from(C.itemMap.values()).sort((I,W)=>L.indexOf(I.ref.current)-L.indexOf(W.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:h,Slot:x,ItemSlot:A},R,i]}var db=y.createContext(void 0);function fb(s){const o=y.useContext(db);return s||o||"ltr"}function mb(s){const o=pb(s),r=y.forwardRef((i,d)=>{const{children:m,...h}=i,p=y.Children.toArray(m),g=p.find(xb);if(g){const x=g.props.children,b=p.map(w=>w===g?y.Children.count(x)>1?y.Children.only(null):y.isValidElement(x)?x.props.children:null:w);return u.jsx(o,{...h,ref:d,children:y.isValidElement(x)?y.cloneElement(x,void 0,b):null})}return u.jsx(o,{...h,ref:d,children:m})});return r.displayName=`${s}.Slot`,r}function pb(s){const o=y.forwardRef((r,i)=>{const{children:d,...m}=r;if(y.isValidElement(d)){const h=vb(d),p=gb(m,d.props);return d.type!==y.Fragment&&(p.ref=i?yc(i,h):h),y.cloneElement(d,p)}return y.Children.count(d)>1?y.Children.only(null):null});return o.displayName=`${s}.SlotClone`,o}var hb=Symbol("radix.slottable");function xb(s){return y.isValidElement(s)&&typeof s.type=="function"&&"__radixId"in s.type&&s.type.__radixId===hb}function gb(s,o){const r={...o};for(const i in o){const d=s[i],m=o[i];/^on[A-Z]/.test(i)?d&&m?r[i]=(...p)=>{const g=m(...p);return d(...p),g}:d&&(r[i]=d):i==="style"?r[i]={...d,...m}:i==="className"&&(r[i]=[d,m].filter(Boolean).join(" "))}return{...s,...r}}function vb(s){let o=Object.getOwnPropertyDescriptor(s.props,"ref")?.get,r=o&&"isReactWarning"in o&&o.isReactWarning;return r?s.ref:(o=Object.getOwnPropertyDescriptor(s,"ref")?.get,r=o&&"isReactWarning"in o&&o.isReactWarning,r?s.props.ref:s.props.ref||s.ref)}var yb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=yb.reduce((s,o)=>{const r=mb(`Primitive.${o}`),i=y.forwardRef((d,m)=>{const{asChild:h,...p}=d,g=h?r:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(g,{...p,ref:m})});return i.displayName=`Primitive.${o}`,{...s,[o]:i}},{});function bb(s,o){s&&kl.flushSync(()=>s.dispatchEvent(o))}function _a(s){const o=y.useRef(s);return y.useEffect(()=>{o.current=s}),y.useMemo(()=>(...r)=>o.current?.(...r),[])}function wb(s,o=globalThis?.document){const r=_a(s);y.useEffect(()=>{const i=d=>{d.key==="Escape"&&r(d)};return o.addEventListener("keydown",i,{capture:!0}),()=>o.removeEventListener("keydown",i,{capture:!0})},[r,o])}var Sb="DismissableLayer",xu="dismissableLayer.update",jb="dismissableLayer.pointerDownOutside",Nb="dismissableLayer.focusOutside",ph,mx=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),px=y.forwardRef((s,o)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:d,onFocusOutside:m,onInteractOutside:h,onDismiss:p,...g}=s,x=y.useContext(mx),[b,w]=y.useState(null),E=b?.ownerDocument??globalThis?.document,[,A]=y.useState({}),R=it(o,W=>w(W)),S=Array.from(x.layers),[C]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),k=S.indexOf(C),z=b?S.indexOf(b):-1,L=x.layersWithOutsidePointerEventsDisabled.size>0,V=z>=k,Q=Ab(W=>{const J=W.target,ae=[...x.branches].some(ue=>ue.contains(J));!V||ae||(d?.(W),h?.(W),W.defaultPrevented||p?.())},E),I=Mb(W=>{const J=W.target;[...x.branches].some(ue=>ue.contains(J))||(m?.(W),h?.(W),W.defaultPrevented||p?.())},E);return wb(W=>{z===x.layers.size-1&&(i?.(W),!W.defaultPrevented&&p&&(W.preventDefault(),p()))},E),y.useEffect(()=>{if(b)return r&&(x.layersWithOutsidePointerEventsDisabled.size===0&&(ph=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(b)),x.layers.add(b),hh(),()=>{r&&x.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=ph)}},[b,E,r,x]),y.useEffect(()=>()=>{b&&(x.layers.delete(b),x.layersWithOutsidePointerEventsDisabled.delete(b),hh())},[b,x]),y.useEffect(()=>{const W=()=>A({});return document.addEventListener(xu,W),()=>document.removeEventListener(xu,W)},[]),u.jsx(Ze.div,{...g,ref:R,style:{pointerEvents:L?V?"auto":"none":void 0,...s.style},onFocusCapture:Fe(s.onFocusCapture,I.onFocusCapture),onBlurCapture:Fe(s.onBlurCapture,I.onBlurCapture),onPointerDownCapture:Fe(s.onPointerDownCapture,Q.onPointerDownCapture)})});px.displayName=Sb;var Eb="DismissableLayerBranch",Cb=y.forwardRef((s,o)=>{const r=y.useContext(mx),i=y.useRef(null),d=it(o,i);return y.useEffect(()=>{const m=i.current;if(m)return r.branches.add(m),()=>{r.branches.delete(m)}},[r.branches]),u.jsx(Ze.div,{...s,ref:d})});Cb.displayName=Eb;function Ab(s,o=globalThis?.document){const r=_a(s),i=y.useRef(!1),d=y.useRef(()=>{});return y.useEffect(()=>{const m=p=>{if(p.target&&!i.current){let g=function(){hx(jb,r,x,{discrete:!0})};const x={originalEvent:p};p.pointerType==="touch"?(o.removeEventListener("click",d.current),d.current=g,o.addEventListener("click",d.current,{once:!0})):g()}else o.removeEventListener("click",d.current);i.current=!1},h=window.setTimeout(()=>{o.addEventListener("pointerdown",m)},0);return()=>{window.clearTimeout(h),o.removeEventListener("pointerdown",m),o.removeEventListener("click",d.current)}},[o,r]),{onPointerDownCapture:()=>i.current=!0}}function Mb(s,o=globalThis?.document){const r=_a(s),i=y.useRef(!1);return y.useEffect(()=>{const d=m=>{m.target&&!i.current&&hx(Nb,r,{originalEvent:m},{discrete:!1})};return o.addEventListener("focusin",d),()=>o.removeEventListener("focusin",d)},[o,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function hh(){const s=new CustomEvent(xu);document.dispatchEvent(s)}function hx(s,o,r,{discrete:i}){const d=r.originalEvent.target,m=new CustomEvent(s,{bubbles:!1,cancelable:!0,detail:r});o&&d.addEventListener(s,o,{once:!0}),i?bb(d,m):d.dispatchEvent(m)}var eu=0;function Tb(){y.useEffect(()=>{const s=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",s[0]??xh()),document.body.insertAdjacentElement("beforeend",s[1]??xh()),eu++,()=>{eu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),eu--}},[])}function xh(){const s=document.createElement("span");return s.setAttribute("data-radix-focus-guard",""),s.tabIndex=0,s.style.outline="none",s.style.opacity="0",s.style.position="fixed",s.style.pointerEvents="none",s}var tu="focusScope.autoFocusOnMount",nu="focusScope.autoFocusOnUnmount",gh={bubbles:!1,cancelable:!0},zb="FocusScope",xx=y.forwardRef((s,o)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:d,onUnmountAutoFocus:m,...h}=s,[p,g]=y.useState(null),x=_a(d),b=_a(m),w=y.useRef(null),E=it(o,S=>g(S)),A=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(i){let S=function(L){if(A.paused||!p)return;const V=L.target;p.contains(V)?w.current=V:ta(w.current,{select:!0})},C=function(L){if(A.paused||!p)return;const V=L.relatedTarget;V!==null&&(p.contains(V)||ta(w.current,{select:!0}))},k=function(L){if(document.activeElement===document.body)for(const Q of L)Q.removedNodes.length>0&&ta(p)};document.addEventListener("focusin",S),document.addEventListener("focusout",C);const z=new MutationObserver(k);return p&&z.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",C),z.disconnect()}}},[i,p,A.paused]),y.useEffect(()=>{if(p){yh.add(A);const S=document.activeElement;if(!p.contains(S)){const k=new CustomEvent(tu,gh);p.addEventListener(tu,x),p.dispatchEvent(k),k.defaultPrevented||(_b(Hb(gx(p)),{select:!0}),document.activeElement===S&&ta(p))}return()=>{p.removeEventListener(tu,x),setTimeout(()=>{const k=new CustomEvent(nu,gh);p.addEventListener(nu,b),p.dispatchEvent(k),k.defaultPrevented||ta(S??document.body,{select:!0}),p.removeEventListener(nu,b),yh.remove(A)},0)}}},[p,x,b,A]);const R=y.useCallback(S=>{if(!r&&!i||A.paused)return;const C=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,k=document.activeElement;if(C&&k){const z=S.currentTarget,[L,V]=Rb(z);L&&V?!S.shiftKey&&k===V?(S.preventDefault(),r&&ta(L,{select:!0})):S.shiftKey&&k===L&&(S.preventDefault(),r&&ta(V,{select:!0})):k===z&&S.preventDefault()}},[r,i,A.paused]);return u.jsx(Ze.div,{tabIndex:-1,...h,ref:E,onKeyDown:R})});xx.displayName=zb;function _b(s,{select:o=!1}={}){const r=document.activeElement;for(const i of s)if(ta(i,{select:o}),document.activeElement!==r)return}function Rb(s){const o=gx(s),r=vh(o,s),i=vh(o.reverse(),s);return[r,i]}function gx(s){const o=[],r=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const d=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||d?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)o.push(r.currentNode);return o}function vh(s,o){for(const r of s)if(!Db(r,{upTo:o}))return r}function Db(s,{upTo:o}){if(getComputedStyle(s).visibility==="hidden")return!0;for(;s;){if(o!==void 0&&s===o)return!1;if(getComputedStyle(s).display==="none")return!0;s=s.parentElement}return!1}function Ob(s){return s instanceof HTMLInputElement&&"select"in s}function ta(s,{select:o=!1}={}){if(s&&s.focus){const r=document.activeElement;s.focus({preventScroll:!0}),s!==r&&Ob(s)&&o&&s.select()}}var yh=kb();function kb(){let s=[];return{add(o){const r=s[0];o!==r&&r?.pause(),s=bh(s,o),s.unshift(o)},remove(o){s=bh(s,o),s[0]?.resume()}}}function bh(s,o){const r=[...s],i=r.indexOf(o);return i!==-1&&r.splice(i,1),r}function Hb(s){return s.filter(o=>o.tagName!=="A")}var bt=globalThis?.document?y.useLayoutEffect:()=>{},Ub=Gh[" useId ".trim().toString()]||(()=>{}),Lb=0;function Ru(s){const[o,r]=y.useState(Ub());return bt(()=>{r(i=>i??String(Lb++))},[s]),s||(o?`radix-${o}`:"")}const Bb=["top","right","bottom","left"],na=Math.min,_t=Math.max,mc=Math.round,tc=Math.floor,nn=s=>({x:s,y:s}),Pb={left:"right",right:"left",bottom:"top",top:"bottom"},Vb={start:"end",end:"start"};function gu(s,o,r){return _t(s,na(o,r))}function En(s,o){return typeof s=="function"?s(o):s}function Cn(s){return s.split("-")[0]}function Ms(s){return s.split("-")[1]}function Du(s){return s==="x"?"y":"x"}function Ou(s){return s==="y"?"height":"width"}const qb=new Set(["top","bottom"]);function tn(s){return qb.has(Cn(s))?"y":"x"}function ku(s){return Du(tn(s))}function Yb(s,o,r){r===void 0&&(r=!1);const i=Ms(s),d=ku(s),m=Ou(d);let h=d==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[m]>o.floating[m]&&(h=pc(h)),[h,pc(h)]}function Wb(s){const o=pc(s);return[vu(s),o,vu(o)]}function vu(s){return s.replace(/start|end/g,o=>Vb[o])}const wh=["left","right"],Sh=["right","left"],Gb=["top","bottom"],Xb=["bottom","top"];function Zb(s,o,r){switch(s){case"top":case"bottom":return r?o?Sh:wh:o?wh:Sh;case"left":case"right":return o?Gb:Xb;default:return[]}}function Qb(s,o,r,i){const d=Ms(s);let m=Zb(Cn(s),r==="start",i);return d&&(m=m.map(h=>h+"-"+d),o&&(m=m.concat(m.map(vu)))),m}function pc(s){return s.replace(/left|right|bottom|top/g,o=>Pb[o])}function Kb(s){return{top:0,right:0,bottom:0,left:0,...s}}function vx(s){return typeof s!="number"?Kb(s):{top:s,right:s,bottom:s,left:s}}function hc(s){const{x:o,y:r,width:i,height:d}=s;return{width:i,height:d,top:r,left:o,right:o+i,bottom:r+d,x:o,y:r}}function jh(s,o,r){let{reference:i,floating:d}=s;const m=tn(o),h=ku(o),p=Ou(h),g=Cn(o),x=m==="y",b=i.x+i.width/2-d.width/2,w=i.y+i.height/2-d.height/2,E=i[p]/2-d[p]/2;let A;switch(g){case"top":A={x:b,y:i.y-d.height};break;case"bottom":A={x:b,y:i.y+i.height};break;case"right":A={x:i.x+i.width,y:w};break;case"left":A={x:i.x-d.width,y:w};break;default:A={x:i.x,y:i.y}}switch(Ms(o)){case"start":A[h]-=E*(r&&x?-1:1);break;case"end":A[h]+=E*(r&&x?-1:1);break}return A}const Jb=async(s,o,r)=>{const{placement:i="bottom",strategy:d="absolute",middleware:m=[],platform:h}=r,p=m.filter(Boolean),g=await(h.isRTL==null?void 0:h.isRTL(o));let x=await h.getElementRects({reference:s,floating:o,strategy:d}),{x:b,y:w}=jh(x,i,g),E=i,A={},R=0;for(let S=0;S<p.length;S++){const{name:C,fn:k}=p[S],{x:z,y:L,data:V,reset:Q}=await k({x:b,y:w,initialPlacement:i,placement:E,strategy:d,middlewareData:A,rects:x,platform:h,elements:{reference:s,floating:o}});b=z??b,w=L??w,A={...A,[C]:{...A[C],...V}},Q&&R<=50&&(R++,typeof Q=="object"&&(Q.placement&&(E=Q.placement),Q.rects&&(x=Q.rects===!0?await h.getElementRects({reference:s,floating:o,strategy:d}):Q.rects),{x:b,y:w}=jh(x,E,g)),S=-1)}return{x:b,y:w,placement:E,strategy:d,middlewareData:A}};async function Rl(s,o){var r;o===void 0&&(o={});const{x:i,y:d,platform:m,rects:h,elements:p,strategy:g}=s,{boundary:x="clippingAncestors",rootBoundary:b="viewport",elementContext:w="floating",altBoundary:E=!1,padding:A=0}=En(o,s),R=vx(A),C=p[E?w==="floating"?"reference":"floating":w],k=hc(await m.getClippingRect({element:(r=await(m.isElement==null?void 0:m.isElement(C)))==null||r?C:C.contextElement||await(m.getDocumentElement==null?void 0:m.getDocumentElement(p.floating)),boundary:x,rootBoundary:b,strategy:g})),z=w==="floating"?{x:i,y:d,width:h.floating.width,height:h.floating.height}:h.reference,L=await(m.getOffsetParent==null?void 0:m.getOffsetParent(p.floating)),V=await(m.isElement==null?void 0:m.isElement(L))?await(m.getScale==null?void 0:m.getScale(L))||{x:1,y:1}:{x:1,y:1},Q=hc(m.convertOffsetParentRelativeRectToViewportRelativeRect?await m.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:z,offsetParent:L,strategy:g}):z);return{top:(k.top-Q.top+R.top)/V.y,bottom:(Q.bottom-k.bottom+R.bottom)/V.y,left:(k.left-Q.left+R.left)/V.x,right:(Q.right-k.right+R.right)/V.x}}const $b=s=>({name:"arrow",options:s,async fn(o){const{x:r,y:i,placement:d,rects:m,platform:h,elements:p,middlewareData:g}=o,{element:x,padding:b=0}=En(s,o)||{};if(x==null)return{};const w=vx(b),E={x:r,y:i},A=ku(d),R=Ou(A),S=await h.getDimensions(x),C=A==="y",k=C?"top":"left",z=C?"bottom":"right",L=C?"clientHeight":"clientWidth",V=m.reference[R]+m.reference[A]-E[A]-m.floating[R],Q=E[A]-m.reference[A],I=await(h.getOffsetParent==null?void 0:h.getOffsetParent(x));let W=I?I[L]:0;(!W||!await(h.isElement==null?void 0:h.isElement(I)))&&(W=p.floating[L]||m.floating[R]);const J=V/2-Q/2,ae=W/2-S[R]/2-1,ue=na(w[k],ae),fe=na(w[z],ae),te=ue,ge=W-S[R]-fe,re=W/2-S[R]/2+J,me=gu(te,re,ge),D=!g.arrow&&Ms(d)!=null&&re!==me&&m.reference[R]/2-(re<te?ue:fe)-S[R]/2<0,X=D?re<te?re-te:re-ge:0;return{[A]:E[A]+X,data:{[A]:me,centerOffset:re-me-X,...D&&{alignmentOffset:X}},reset:D}}}),Fb=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(o){var r,i;const{placement:d,middlewareData:m,rects:h,initialPlacement:p,platform:g,elements:x}=o,{mainAxis:b=!0,crossAxis:w=!0,fallbackPlacements:E,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:S=!0,...C}=En(s,o);if((r=m.arrow)!=null&&r.alignmentOffset)return{};const k=Cn(d),z=tn(p),L=Cn(p)===p,V=await(g.isRTL==null?void 0:g.isRTL(x.floating)),Q=E||(L||!S?[pc(p)]:Wb(p)),I=R!=="none";!E&&I&&Q.push(...Qb(p,S,R,V));const W=[p,...Q],J=await Rl(o,C),ae=[];let ue=((i=m.flip)==null?void 0:i.overflows)||[];if(b&&ae.push(J[k]),w){const re=Yb(d,h,V);ae.push(J[re[0]],J[re[1]])}if(ue=[...ue,{placement:d,overflows:ae}],!ae.every(re=>re<=0)){var fe,te;const re=(((fe=m.flip)==null?void 0:fe.index)||0)+1,me=W[re];if(me&&(!(w==="alignment"?z!==tn(me):!1)||ue.every(P=>tn(P.placement)===z?P.overflows[0]>0:!0)))return{data:{index:re,overflows:ue},reset:{placement:me}};let D=(te=ue.filter(X=>X.overflows[0]<=0).sort((X,P)=>X.overflows[1]-P.overflows[1])[0])==null?void 0:te.placement;if(!D)switch(A){case"bestFit":{var ge;const X=(ge=ue.filter(P=>{if(I){const se=tn(P.placement);return se===z||se==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(se=>se>0).reduce((se,pe)=>se+pe,0)]).sort((P,se)=>P[1]-se[1])[0])==null?void 0:ge[0];X&&(D=X);break}case"initialPlacement":D=p;break}if(d!==D)return{reset:{placement:D}}}return{}}}};function Nh(s,o){return{top:s.top-o.height,right:s.right-o.width,bottom:s.bottom-o.height,left:s.left-o.width}}function Eh(s){return Bb.some(o=>s[o]>=0)}const Ib=function(s){return s===void 0&&(s={}),{name:"hide",options:s,async fn(o){const{rects:r}=o,{strategy:i="referenceHidden",...d}=En(s,o);switch(i){case"referenceHidden":{const m=await Rl(o,{...d,elementContext:"reference"}),h=Nh(m,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Eh(h)}}}case"escaped":{const m=await Rl(o,{...d,altBoundary:!0}),h=Nh(m,r.floating);return{data:{escapedOffsets:h,escaped:Eh(h)}}}default:return{}}}}},yx=new Set(["left","top"]);async function e2(s,o){const{placement:r,platform:i,elements:d}=s,m=await(i.isRTL==null?void 0:i.isRTL(d.floating)),h=Cn(r),p=Ms(r),g=tn(r)==="y",x=yx.has(h)?-1:1,b=m&&g?-1:1,w=En(o,s);let{mainAxis:E,crossAxis:A,alignmentAxis:R}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return p&&typeof R=="number"&&(A=p==="end"?R*-1:R),g?{x:A*b,y:E*x}:{x:E*x,y:A*b}}const t2=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(o){var r,i;const{x:d,y:m,placement:h,middlewareData:p}=o,g=await e2(o,s);return h===((r=p.offset)==null?void 0:r.placement)&&(i=p.arrow)!=null&&i.alignmentOffset?{}:{x:d+g.x,y:m+g.y,data:{...g,placement:h}}}}},n2=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(o){const{x:r,y:i,placement:d}=o,{mainAxis:m=!0,crossAxis:h=!1,limiter:p={fn:C=>{let{x:k,y:z}=C;return{x:k,y:z}}},...g}=En(s,o),x={x:r,y:i},b=await Rl(o,g),w=tn(Cn(d)),E=Du(w);let A=x[E],R=x[w];if(m){const C=E==="y"?"top":"left",k=E==="y"?"bottom":"right",z=A+b[C],L=A-b[k];A=gu(z,A,L)}if(h){const C=w==="y"?"top":"left",k=w==="y"?"bottom":"right",z=R+b[C],L=R-b[k];R=gu(z,R,L)}const S=p.fn({...o,[E]:A,[w]:R});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[E]:m,[w]:h}}}}}},a2=function(s){return s===void 0&&(s={}),{options:s,fn(o){const{x:r,y:i,placement:d,rects:m,middlewareData:h}=o,{offset:p=0,mainAxis:g=!0,crossAxis:x=!0}=En(s,o),b={x:r,y:i},w=tn(d),E=Du(w);let A=b[E],R=b[w];const S=En(p,o),C=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(g){const L=E==="y"?"height":"width",V=m.reference[E]-m.floating[L]+C.mainAxis,Q=m.reference[E]+m.reference[L]-C.mainAxis;A<V?A=V:A>Q&&(A=Q)}if(x){var k,z;const L=E==="y"?"width":"height",V=yx.has(Cn(d)),Q=m.reference[w]-m.floating[L]+(V&&((k=h.offset)==null?void 0:k[w])||0)+(V?0:C.crossAxis),I=m.reference[w]+m.reference[L]+(V?0:((z=h.offset)==null?void 0:z[w])||0)-(V?C.crossAxis:0);R<Q?R=Q:R>I&&(R=I)}return{[E]:A,[w]:R}}}},s2=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(o){var r,i;const{placement:d,rects:m,platform:h,elements:p}=o,{apply:g=()=>{},...x}=En(s,o),b=await Rl(o,x),w=Cn(d),E=Ms(d),A=tn(d)==="y",{width:R,height:S}=m.floating;let C,k;w==="top"||w==="bottom"?(C=w,k=E===(await(h.isRTL==null?void 0:h.isRTL(p.floating))?"start":"end")?"left":"right"):(k=w,C=E==="end"?"top":"bottom");const z=S-b.top-b.bottom,L=R-b.left-b.right,V=na(S-b[C],z),Q=na(R-b[k],L),I=!o.middlewareData.shift;let W=V,J=Q;if((r=o.middlewareData.shift)!=null&&r.enabled.x&&(J=L),(i=o.middlewareData.shift)!=null&&i.enabled.y&&(W=z),I&&!E){const ue=_t(b.left,0),fe=_t(b.right,0),te=_t(b.top,0),ge=_t(b.bottom,0);A?J=R-2*(ue!==0||fe!==0?ue+fe:_t(b.left,b.right)):W=S-2*(te!==0||ge!==0?te+ge:_t(b.top,b.bottom))}await g({...o,availableWidth:J,availableHeight:W});const ae=await h.getDimensions(p.floating);return R!==ae.width||S!==ae.height?{reset:{rects:!0}}:{}}}};function bc(){return typeof window<"u"}function Ts(s){return bx(s)?(s.nodeName||"").toLowerCase():"#document"}function Rt(s){var o;return(s==null||(o=s.ownerDocument)==null?void 0:o.defaultView)||window}function sn(s){var o;return(o=(bx(s)?s.ownerDocument:s.document)||window.document)==null?void 0:o.documentElement}function bx(s){return bc()?s instanceof Node||s instanceof Rt(s).Node:!1}function Qt(s){return bc()?s instanceof Element||s instanceof Rt(s).Element:!1}function an(s){return bc()?s instanceof HTMLElement||s instanceof Rt(s).HTMLElement:!1}function Ch(s){return!bc()||typeof ShadowRoot>"u"?!1:s instanceof ShadowRoot||s instanceof Rt(s).ShadowRoot}const l2=new Set(["inline","contents"]);function Hl(s){const{overflow:o,overflowX:r,overflowY:i,display:d}=Kt(s);return/auto|scroll|overlay|hidden|clip/.test(o+i+r)&&!l2.has(d)}const o2=new Set(["table","td","th"]);function c2(s){return o2.has(Ts(s))}const i2=[":popover-open",":modal"];function wc(s){return i2.some(o=>{try{return s.matches(o)}catch{return!1}})}const r2=["transform","translate","scale","rotate","perspective"],u2=["transform","translate","scale","rotate","perspective","filter"],d2=["paint","layout","strict","content"];function Hu(s){const o=Uu(),r=Qt(s)?Kt(s):s;return r2.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!o&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!o&&(r.filter?r.filter!=="none":!1)||u2.some(i=>(r.willChange||"").includes(i))||d2.some(i=>(r.contain||"").includes(i))}function f2(s){let o=aa(s);for(;an(o)&&!Cs(o);){if(Hu(o))return o;if(wc(o))return null;o=aa(o)}return null}function Uu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const m2=new Set(["html","body","#document"]);function Cs(s){return m2.has(Ts(s))}function Kt(s){return Rt(s).getComputedStyle(s)}function Sc(s){return Qt(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function aa(s){if(Ts(s)==="html")return s;const o=s.assignedSlot||s.parentNode||Ch(s)&&s.host||sn(s);return Ch(o)?o.host:o}function wx(s){const o=aa(s);return Cs(o)?s.ownerDocument?s.ownerDocument.body:s.body:an(o)&&Hl(o)?o:wx(o)}function Dl(s,o,r){var i;o===void 0&&(o=[]),r===void 0&&(r=!0);const d=wx(s),m=d===((i=s.ownerDocument)==null?void 0:i.body),h=Rt(d);if(m){const p=yu(h);return o.concat(h,h.visualViewport||[],Hl(d)?d:[],p&&r?Dl(p):[])}return o.concat(d,Dl(d,[],r))}function yu(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function Sx(s){const o=Kt(s);let r=parseFloat(o.width)||0,i=parseFloat(o.height)||0;const d=an(s),m=d?s.offsetWidth:r,h=d?s.offsetHeight:i,p=mc(r)!==m||mc(i)!==h;return p&&(r=m,i=h),{width:r,height:i,$:p}}function Lu(s){return Qt(s)?s:s.contextElement}function Ns(s){const o=Lu(s);if(!an(o))return nn(1);const r=o.getBoundingClientRect(),{width:i,height:d,$:m}=Sx(o);let h=(m?mc(r.width):r.width)/i,p=(m?mc(r.height):r.height)/d;return(!h||!Number.isFinite(h))&&(h=1),(!p||!Number.isFinite(p))&&(p=1),{x:h,y:p}}const p2=nn(0);function jx(s){const o=Rt(s);return!Uu()||!o.visualViewport?p2:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function h2(s,o,r){return o===void 0&&(o=!1),!r||o&&r!==Rt(s)?!1:o}function Ra(s,o,r,i){o===void 0&&(o=!1),r===void 0&&(r=!1);const d=s.getBoundingClientRect(),m=Lu(s);let h=nn(1);o&&(i?Qt(i)&&(h=Ns(i)):h=Ns(s));const p=h2(m,r,i)?jx(m):nn(0);let g=(d.left+p.x)/h.x,x=(d.top+p.y)/h.y,b=d.width/h.x,w=d.height/h.y;if(m){const E=Rt(m),A=i&&Qt(i)?Rt(i):i;let R=E,S=yu(R);for(;S&&i&&A!==R;){const C=Ns(S),k=S.getBoundingClientRect(),z=Kt(S),L=k.left+(S.clientLeft+parseFloat(z.paddingLeft))*C.x,V=k.top+(S.clientTop+parseFloat(z.paddingTop))*C.y;g*=C.x,x*=C.y,b*=C.x,w*=C.y,g+=L,x+=V,R=Rt(S),S=yu(R)}}return hc({width:b,height:w,x:g,y:x})}function jc(s,o){const r=Sc(s).scrollLeft;return o?o.left+r:Ra(sn(s)).left+r}function Nx(s,o){const r=s.getBoundingClientRect(),i=r.left+o.scrollLeft-jc(s,r),d=r.top+o.scrollTop;return{x:i,y:d}}function x2(s){let{elements:o,rect:r,offsetParent:i,strategy:d}=s;const m=d==="fixed",h=sn(i),p=o?wc(o.floating):!1;if(i===h||p&&m)return r;let g={scrollLeft:0,scrollTop:0},x=nn(1);const b=nn(0),w=an(i);if((w||!w&&!m)&&((Ts(i)!=="body"||Hl(h))&&(g=Sc(i)),an(i))){const A=Ra(i);x=Ns(i),b.x=A.x+i.clientLeft,b.y=A.y+i.clientTop}const E=h&&!w&&!m?Nx(h,g):nn(0);return{width:r.width*x.x,height:r.height*x.y,x:r.x*x.x-g.scrollLeft*x.x+b.x+E.x,y:r.y*x.y-g.scrollTop*x.y+b.y+E.y}}function g2(s){return Array.from(s.getClientRects())}function v2(s){const o=sn(s),r=Sc(s),i=s.ownerDocument.body,d=_t(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),m=_t(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight);let h=-r.scrollLeft+jc(s);const p=-r.scrollTop;return Kt(i).direction==="rtl"&&(h+=_t(o.clientWidth,i.clientWidth)-d),{width:d,height:m,x:h,y:p}}const Ah=25;function y2(s,o){const r=Rt(s),i=sn(s),d=r.visualViewport;let m=i.clientWidth,h=i.clientHeight,p=0,g=0;if(d){m=d.width,h=d.height;const b=Uu();(!b||b&&o==="fixed")&&(p=d.offsetLeft,g=d.offsetTop)}const x=jc(i);if(x<=0){const b=i.ownerDocument,w=b.body,E=getComputedStyle(w),A=b.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,R=Math.abs(i.clientWidth-w.clientWidth-A);R<=Ah&&(m-=R)}else x<=Ah&&(m+=x);return{width:m,height:h,x:p,y:g}}const b2=new Set(["absolute","fixed"]);function w2(s,o){const r=Ra(s,!0,o==="fixed"),i=r.top+s.clientTop,d=r.left+s.clientLeft,m=an(s)?Ns(s):nn(1),h=s.clientWidth*m.x,p=s.clientHeight*m.y,g=d*m.x,x=i*m.y;return{width:h,height:p,x:g,y:x}}function Mh(s,o,r){let i;if(o==="viewport")i=y2(s,r);else if(o==="document")i=v2(sn(s));else if(Qt(o))i=w2(o,r);else{const d=jx(s);i={x:o.x-d.x,y:o.y-d.y,width:o.width,height:o.height}}return hc(i)}function Ex(s,o){const r=aa(s);return r===o||!Qt(r)||Cs(r)?!1:Kt(r).position==="fixed"||Ex(r,o)}function S2(s,o){const r=o.get(s);if(r)return r;let i=Dl(s,[],!1).filter(p=>Qt(p)&&Ts(p)!=="body"),d=null;const m=Kt(s).position==="fixed";let h=m?aa(s):s;for(;Qt(h)&&!Cs(h);){const p=Kt(h),g=Hu(h);!g&&p.position==="fixed"&&(d=null),(m?!g&&!d:!g&&p.position==="static"&&!!d&&b2.has(d.position)||Hl(h)&&!g&&Ex(s,h))?i=i.filter(b=>b!==h):d=p,h=aa(h)}return o.set(s,i),i}function j2(s){let{element:o,boundary:r,rootBoundary:i,strategy:d}=s;const h=[...r==="clippingAncestors"?wc(o)?[]:S2(o,this._c):[].concat(r),i],p=h[0],g=h.reduce((x,b)=>{const w=Mh(o,b,d);return x.top=_t(w.top,x.top),x.right=na(w.right,x.right),x.bottom=na(w.bottom,x.bottom),x.left=_t(w.left,x.left),x},Mh(o,p,d));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function N2(s){const{width:o,height:r}=Sx(s);return{width:o,height:r}}function E2(s,o,r){const i=an(o),d=sn(o),m=r==="fixed",h=Ra(s,!0,m,o);let p={scrollLeft:0,scrollTop:0};const g=nn(0);function x(){g.x=jc(d)}if(i||!i&&!m)if((Ts(o)!=="body"||Hl(d))&&(p=Sc(o)),i){const A=Ra(o,!0,m,o);g.x=A.x+o.clientLeft,g.y=A.y+o.clientTop}else d&&x();m&&!i&&d&&x();const b=d&&!i&&!m?Nx(d,p):nn(0),w=h.left+p.scrollLeft-g.x-b.x,E=h.top+p.scrollTop-g.y-b.y;return{x:w,y:E,width:h.width,height:h.height}}function au(s){return Kt(s).position==="static"}function Th(s,o){if(!an(s)||Kt(s).position==="fixed")return null;if(o)return o(s);let r=s.offsetParent;return sn(s)===r&&(r=r.ownerDocument.body),r}function Cx(s,o){const r=Rt(s);if(wc(s))return r;if(!an(s)){let d=aa(s);for(;d&&!Cs(d);){if(Qt(d)&&!au(d))return d;d=aa(d)}return r}let i=Th(s,o);for(;i&&c2(i)&&au(i);)i=Th(i,o);return i&&Cs(i)&&au(i)&&!Hu(i)?r:i||f2(s)||r}const C2=async function(s){const o=this.getOffsetParent||Cx,r=this.getDimensions,i=await r(s.floating);return{reference:E2(s.reference,await o(s.floating),s.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function A2(s){return Kt(s).direction==="rtl"}const M2={convertOffsetParentRelativeRectToViewportRelativeRect:x2,getDocumentElement:sn,getClippingRect:j2,getOffsetParent:Cx,getElementRects:C2,getClientRects:g2,getDimensions:N2,getScale:Ns,isElement:Qt,isRTL:A2};function Ax(s,o){return s.x===o.x&&s.y===o.y&&s.width===o.width&&s.height===o.height}function T2(s,o){let r=null,i;const d=sn(s);function m(){var p;clearTimeout(i),(p=r)==null||p.disconnect(),r=null}function h(p,g){p===void 0&&(p=!1),g===void 0&&(g=1),m();const x=s.getBoundingClientRect(),{left:b,top:w,width:E,height:A}=x;if(p||o(),!E||!A)return;const R=tc(w),S=tc(d.clientWidth-(b+E)),C=tc(d.clientHeight-(w+A)),k=tc(b),L={rootMargin:-R+"px "+-S+"px "+-C+"px "+-k+"px",threshold:_t(0,na(1,g))||1};let V=!0;function Q(I){const W=I[0].intersectionRatio;if(W!==g){if(!V)return h();W?h(!1,W):i=setTimeout(()=>{h(!1,1e-7)},1e3)}W===1&&!Ax(x,s.getBoundingClientRect())&&h(),V=!1}try{r=new IntersectionObserver(Q,{...L,root:d.ownerDocument})}catch{r=new IntersectionObserver(Q,L)}r.observe(s)}return h(!0),m}function z2(s,o,r,i){i===void 0&&(i={});const{ancestorScroll:d=!0,ancestorResize:m=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:g=!1}=i,x=Lu(s),b=d||m?[...x?Dl(x):[],...Dl(o)]:[];b.forEach(k=>{d&&k.addEventListener("scroll",r,{passive:!0}),m&&k.addEventListener("resize",r)});const w=x&&p?T2(x,r):null;let E=-1,A=null;h&&(A=new ResizeObserver(k=>{let[z]=k;z&&z.target===x&&A&&(A.unobserve(o),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var L;(L=A)==null||L.observe(o)})),r()}),x&&!g&&A.observe(x),A.observe(o));let R,S=g?Ra(s):null;g&&C();function C(){const k=Ra(s);S&&!Ax(S,k)&&r(),S=k,R=requestAnimationFrame(C)}return r(),()=>{var k;b.forEach(z=>{d&&z.removeEventListener("scroll",r),m&&z.removeEventListener("resize",r)}),w?.(),(k=A)==null||k.disconnect(),A=null,g&&cancelAnimationFrame(R)}}const _2=t2,R2=n2,D2=Fb,O2=s2,k2=Ib,zh=$b,H2=a2,U2=(s,o,r)=>{const i=new Map,d={platform:M2,...r},m={...d.platform,_c:i};return Jb(s,o,{...d,platform:m})};var L2=typeof document<"u",B2=function(){},uc=L2?y.useLayoutEffect:B2;function xc(s,o){if(s===o)return!0;if(typeof s!=typeof o)return!1;if(typeof s=="function"&&s.toString()===o.toString())return!0;let r,i,d;if(s&&o&&typeof s=="object"){if(Array.isArray(s)){if(r=s.length,r!==o.length)return!1;for(i=r;i--!==0;)if(!xc(s[i],o[i]))return!1;return!0}if(d=Object.keys(s),r=d.length,r!==Object.keys(o).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(o,d[i]))return!1;for(i=r;i--!==0;){const m=d[i];if(!(m==="_owner"&&s.$$typeof)&&!xc(s[m],o[m]))return!1}return!0}return s!==s&&o!==o}function Mx(s){return typeof window>"u"?1:(s.ownerDocument.defaultView||window).devicePixelRatio||1}function _h(s,o){const r=Mx(s);return Math.round(o*r)/r}function su(s){const o=y.useRef(s);return uc(()=>{o.current=s}),o}function P2(s){s===void 0&&(s={});const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:d,elements:{reference:m,floating:h}={},transform:p=!0,whileElementsMounted:g,open:x}=s,[b,w]=y.useState({x:0,y:0,strategy:r,placement:o,middlewareData:{},isPositioned:!1}),[E,A]=y.useState(i);xc(E,i)||A(i);const[R,S]=y.useState(null),[C,k]=y.useState(null),z=y.useCallback(P=>{P!==I.current&&(I.current=P,S(P))},[]),L=y.useCallback(P=>{P!==W.current&&(W.current=P,k(P))},[]),V=m||R,Q=h||C,I=y.useRef(null),W=y.useRef(null),J=y.useRef(b),ae=g!=null,ue=su(g),fe=su(d),te=su(x),ge=y.useCallback(()=>{if(!I.current||!W.current)return;const P={placement:o,strategy:r,middleware:E};fe.current&&(P.platform=fe.current),U2(I.current,W.current,P).then(se=>{const pe={...se,isPositioned:te.current!==!1};re.current&&!xc(J.current,pe)&&(J.current=pe,kl.flushSync(()=>{w(pe)}))})},[E,o,r,fe,te]);uc(()=>{x===!1&&J.current.isPositioned&&(J.current.isPositioned=!1,w(P=>({...P,isPositioned:!1})))},[x]);const re=y.useRef(!1);uc(()=>(re.current=!0,()=>{re.current=!1}),[]),uc(()=>{if(V&&(I.current=V),Q&&(W.current=Q),V&&Q){if(ue.current)return ue.current(V,Q,ge);ge()}},[V,Q,ge,ue,ae]);const me=y.useMemo(()=>({reference:I,floating:W,setReference:z,setFloating:L}),[z,L]),D=y.useMemo(()=>({reference:V,floating:Q}),[V,Q]),X=y.useMemo(()=>{const P={position:r,left:0,top:0};if(!D.floating)return P;const se=_h(D.floating,b.x),pe=_h(D.floating,b.y);return p?{...P,transform:"translate("+se+"px, "+pe+"px)",...Mx(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:se,top:pe}},[r,p,D.floating,b.x,b.y]);return y.useMemo(()=>({...b,update:ge,refs:me,elements:D,floatingStyles:X}),[b,ge,me,D,X])}const V2=s=>{function o(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:s,fn(r){const{element:i,padding:d}=typeof s=="function"?s(r):s;return i&&o(i)?i.current!=null?zh({element:i.current,padding:d}).fn(r):{}:i?zh({element:i,padding:d}).fn(r):{}}}},q2=(s,o)=>({..._2(s),options:[s,o]}),Y2=(s,o)=>({...R2(s),options:[s,o]}),W2=(s,o)=>({...H2(s),options:[s,o]}),G2=(s,o)=>({...D2(s),options:[s,o]}),X2=(s,o)=>({...O2(s),options:[s,o]}),Z2=(s,o)=>({...k2(s),options:[s,o]}),Q2=(s,o)=>({...V2(s),options:[s,o]});var K2="Arrow",Tx=y.forwardRef((s,o)=>{const{children:r,width:i=10,height:d=5,...m}=s;return u.jsx(Ze.svg,{...m,ref:o,width:i,height:d,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:s.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Tx.displayName=K2;var J2=Tx;function $2(s){const[o,r]=y.useState(void 0);return bt(()=>{if(s){r({width:s.offsetWidth,height:s.offsetHeight});const i=new ResizeObserver(d=>{if(!Array.isArray(d)||!d.length)return;const m=d[0];let h,p;if("borderBoxSize"in m){const g=m.borderBoxSize,x=Array.isArray(g)?g[0]:g;h=x.inlineSize,p=x.blockSize}else h=s.offsetWidth,p=s.offsetHeight;r({width:h,height:p})});return i.observe(s,{box:"border-box"}),()=>i.unobserve(s)}else r(void 0)},[s]),o}var Bu="Popper",[zx,_x]=_u(Bu),[F2,Rx]=zx(Bu),Dx=s=>{const{__scopePopper:o,children:r}=s,[i,d]=y.useState(null);return u.jsx(F2,{scope:o,anchor:i,onAnchorChange:d,children:r})};Dx.displayName=Bu;var Ox="PopperAnchor",kx=y.forwardRef((s,o)=>{const{__scopePopper:r,virtualRef:i,...d}=s,m=Rx(Ox,r),h=y.useRef(null),p=it(o,h),g=y.useRef(null);return y.useEffect(()=>{const x=g.current;g.current=i?.current||h.current,x!==g.current&&m.onAnchorChange(g.current)}),i?null:u.jsx(Ze.div,{...d,ref:p})});kx.displayName=Ox;var Pu="PopperContent",[I2,ew]=zx(Pu),Hx=y.forwardRef((s,o)=>{const{__scopePopper:r,side:i="bottom",sideOffset:d=0,align:m="center",alignOffset:h=0,arrowPadding:p=0,avoidCollisions:g=!0,collisionBoundary:x=[],collisionPadding:b=0,sticky:w="partial",hideWhenDetached:E=!1,updatePositionStrategy:A="optimized",onPlaced:R,...S}=s,C=Rx(Pu,r),[k,z]=y.useState(null),L=it(o,M=>z(M)),[V,Q]=y.useState(null),I=$2(V),W=I?.width??0,J=I?.height??0,ae=i+(m!=="center"?"-"+m:""),ue=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},fe=Array.isArray(x)?x:[x],te=fe.length>0,ge={padding:ue,boundary:fe.filter(nw),altBoundary:te},{refs:re,floatingStyles:me,placement:D,isPositioned:X,middlewareData:P}=P2({strategy:"fixed",placement:ae,whileElementsMounted:(...M)=>z2(...M,{animationFrame:A==="always"}),elements:{reference:C.anchor},middleware:[q2({mainAxis:d+J,alignmentAxis:h}),g&&Y2({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?W2():void 0,...ge}),g&&G2({...ge}),X2({...ge,apply:({elements:M,rects:_,availableWidth:ne,availableHeight:he})=>{const{width:ye,height:ze}=_.reference,ut=M.floating.style;ut.setProperty("--radix-popper-available-width",`${ne}px`),ut.setProperty("--radix-popper-available-height",`${he}px`),ut.setProperty("--radix-popper-anchor-width",`${ye}px`),ut.setProperty("--radix-popper-anchor-height",`${ze}px`)}}),V&&Q2({element:V,padding:p}),aw({arrowWidth:W,arrowHeight:J}),E&&Z2({strategy:"referenceHidden",...ge})]}),[se,pe]=Bx(D),N=_a(R);bt(()=>{X&&N?.()},[X,N]);const q=P.arrow?.x,F=P.arrow?.y,ee=P.arrow?.centerOffset!==0,[le,K]=y.useState();return bt(()=>{k&&K(window.getComputedStyle(k).zIndex)},[k]),u.jsx("div",{ref:re.setFloating,"data-radix-popper-content-wrapper":"",style:{...me,transform:X?me.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(" "),...P.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:s.dir,children:u.jsx(I2,{scope:r,placedSide:se,onArrowChange:Q,arrowX:q,arrowY:F,shouldHideArrow:ee,children:u.jsx(Ze.div,{"data-side":se,"data-align":pe,...S,ref:L,style:{...S.style,animation:X?void 0:"none"}})})})});Hx.displayName=Pu;var Ux="PopperArrow",tw={top:"bottom",right:"left",bottom:"top",left:"right"},Lx=y.forwardRef(function(o,r){const{__scopePopper:i,...d}=o,m=ew(Ux,i),h=tw[m.placedSide];return u.jsx("span",{ref:m.onArrowChange,style:{position:"absolute",left:m.arrowX,top:m.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[m.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[m.placedSide],visibility:m.shouldHideArrow?"hidden":void 0},children:u.jsx(J2,{...d,ref:r,style:{...d.style,display:"block"}})})});Lx.displayName=Ux;function nw(s){return s!==null}var aw=s=>({name:"transformOrigin",options:s,fn(o){const{placement:r,rects:i,middlewareData:d}=o,h=d.arrow?.centerOffset!==0,p=h?0:s.arrowWidth,g=h?0:s.arrowHeight,[x,b]=Bx(r),w={start:"0%",center:"50%",end:"100%"}[b],E=(d.arrow?.x??0)+p/2,A=(d.arrow?.y??0)+g/2;let R="",S="";return x==="bottom"?(R=h?w:`${E}px`,S=`${-g}px`):x==="top"?(R=h?w:`${E}px`,S=`${i.floating.height+g}px`):x==="right"?(R=`${-g}px`,S=h?w:`${A}px`):x==="left"&&(R=`${i.floating.width+g}px`,S=h?w:`${A}px`),{data:{x:R,y:S}}}});function Bx(s){const[o,r="center"]=s.split("-");return[o,r]}var sw=Dx,lw=kx,ow=Hx,cw=Lx,iw="Portal",Px=y.forwardRef((s,o)=>{const{container:r,...i}=s,[d,m]=y.useState(!1);bt(()=>m(!0),[]);const h=r||d&&globalThis?.document?.body;return h?ab.createPortal(u.jsx(Ze.div,{...i,ref:o}),h):null});Px.displayName=iw;function rw(s){const o=uw(s),r=y.forwardRef((i,d)=>{const{children:m,...h}=i,p=y.Children.toArray(m),g=p.find(fw);if(g){const x=g.props.children,b=p.map(w=>w===g?y.Children.count(x)>1?y.Children.only(null):y.isValidElement(x)?x.props.children:null:w);return u.jsx(o,{...h,ref:d,children:y.isValidElement(x)?y.cloneElement(x,void 0,b):null})}return u.jsx(o,{...h,ref:d,children:m})});return r.displayName=`${s}.Slot`,r}function uw(s){const o=y.forwardRef((r,i)=>{const{children:d,...m}=r;if(y.isValidElement(d)){const h=pw(d),p=mw(m,d.props);return d.type!==y.Fragment&&(p.ref=i?yc(i,h):h),y.cloneElement(d,p)}return y.Children.count(d)>1?y.Children.only(null):null});return o.displayName=`${s}.SlotClone`,o}var dw=Symbol("radix.slottable");function fw(s){return y.isValidElement(s)&&typeof s.type=="function"&&"__radixId"in s.type&&s.type.__radixId===dw}function mw(s,o){const r={...o};for(const i in o){const d=s[i],m=o[i];/^on[A-Z]/.test(i)?d&&m?r[i]=(...p)=>{const g=m(...p);return d(...p),g}:d&&(r[i]=d):i==="style"?r[i]={...d,...m}:i==="className"&&(r[i]=[d,m].filter(Boolean).join(" "))}return{...s,...r}}function pw(s){let o=Object.getOwnPropertyDescriptor(s.props,"ref")?.get,r=o&&"isReactWarning"in o&&o.isReactWarning;return r?s.ref:(o=Object.getOwnPropertyDescriptor(s,"ref")?.get,r=o&&"isReactWarning"in o&&o.isReactWarning,r?s.props.ref:s.props.ref||s.ref)}var hw=Gh[" useInsertionEffect ".trim().toString()]||bt;function Rh({prop:s,defaultProp:o,onChange:r=()=>{},caller:i}){const[d,m,h]=xw({defaultProp:o,onChange:r}),p=s!==void 0,g=p?s:d;{const b=y.useRef(s!==void 0);y.useEffect(()=>{const w=b.current;w!==p&&console.warn(`${i} is changing from ${w?"controlled":"uncontrolled"} to ${p?"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.`),b.current=p},[p,i])}const x=y.useCallback(b=>{if(p){const w=gw(b)?b(s):b;w!==s&&h.current?.(w)}else m(b)},[p,s,m,h]);return[g,x]}function xw({defaultProp:s,onChange:o}){const[r,i]=y.useState(s),d=y.useRef(r),m=y.useRef(o);return hw(()=>{m.current=o},[o]),y.useEffect(()=>{d.current!==r&&(m.current?.(r),d.current=r)},[r,d]),[r,i,m]}function gw(s){return typeof s=="function"}function vw(s){const o=y.useRef({value:s,previous:s});return y.useMemo(()=>(o.current.value!==s&&(o.current.previous=o.current.value,o.current.value=s),o.current.previous),[s])}var Vx=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),yw="VisuallyHidden",bw=y.forwardRef((s,o)=>u.jsx(Ze.span,{...s,ref:o,style:{...Vx,...s.style}}));bw.displayName=yw;var ww=function(s){if(typeof document>"u")return null;var o=Array.isArray(s)?s[0]:s;return o.ownerDocument.body},ys=new WeakMap,nc=new WeakMap,ac={},lu=0,qx=function(s){return s&&(s.host||qx(s.parentNode))},Sw=function(s,o){return o.map(function(r){if(s.contains(r))return r;var i=qx(r);return i&&s.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",s,". Doing nothing"),null)}).filter(function(r){return!!r})},jw=function(s,o,r,i){var d=Sw(o,Array.isArray(s)?s:[s]);ac[r]||(ac[r]=new WeakMap);var m=ac[r],h=[],p=new Set,g=new Set(d),x=function(w){!w||p.has(w)||(p.add(w),x(w.parentNode))};d.forEach(x);var b=function(w){!w||g.has(w)||Array.prototype.forEach.call(w.children,function(E){if(p.has(E))b(E);else try{var A=E.getAttribute(i),R=A!==null&&A!=="false",S=(ys.get(E)||0)+1,C=(m.get(E)||0)+1;ys.set(E,S),m.set(E,C),h.push(E),S===1&&R&&nc.set(E,!0),C===1&&E.setAttribute(r,"true"),R||E.setAttribute(i,"true")}catch(k){console.error("aria-hidden: cannot operate on ",E,k)}})};return b(o),p.clear(),lu++,function(){h.forEach(function(w){var E=ys.get(w)-1,A=m.get(w)-1;ys.set(w,E),m.set(w,A),E||(nc.has(w)||w.removeAttribute(i),nc.delete(w)),A||w.removeAttribute(r)}),lu--,lu||(ys=new WeakMap,ys=new WeakMap,nc=new WeakMap,ac={})}},Nw=function(s,o,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(s)?s:[s]),d=ww(s);return d?(i.push.apply(i,Array.from(d.querySelectorAll("[aria-live], script"))),jw(i,d,r,"aria-hidden")):function(){return null}},en=function(){return en=Object.assign||function(o){for(var r,i=1,d=arguments.length;i<d;i++){r=arguments[i];for(var m in r)Object.prototype.hasOwnProperty.call(r,m)&&(o[m]=r[m])}return o},en.apply(this,arguments)};function Yx(s,o){var r={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&o.indexOf(i)<0&&(r[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,i=Object.getOwnPropertySymbols(s);d<i.length;d++)o.indexOf(i[d])<0&&Object.prototype.propertyIsEnumerable.call(s,i[d])&&(r[i[d]]=s[i[d]]);return r}function Ew(s,o,r){if(r||arguments.length===2)for(var i=0,d=o.length,m;i<d;i++)(m||!(i in o))&&(m||(m=Array.prototype.slice.call(o,0,i)),m[i]=o[i]);return s.concat(m||Array.prototype.slice.call(o))}var dc="right-scroll-bar-position",fc="width-before-scroll-bar",Cw="with-scroll-bars-hidden",Aw="--removed-body-scroll-bar-size";function ou(s,o){return typeof s=="function"?s(o):s&&(s.current=o),s}function Mw(s,o){var r=y.useState(function(){return{value:s,callback:o,facade:{get current(){return r.value},set current(i){var d=r.value;d!==i&&(r.value=i,r.callback(i,d))}}}})[0];return r.callback=o,r.facade}var Tw=typeof window<"u"?y.useLayoutEffect:y.useEffect,Dh=new WeakMap;function zw(s,o){var r=Mw(null,function(i){return s.forEach(function(d){return ou(d,i)})});return Tw(function(){var i=Dh.get(r);if(i){var d=new Set(i),m=new Set(s),h=r.current;d.forEach(function(p){m.has(p)||ou(p,null)}),m.forEach(function(p){d.has(p)||ou(p,h)})}Dh.set(r,s)},[s]),r}function _w(s){return s}function Rw(s,o){o===void 0&&(o=_w);var r=[],i=!1,d={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:s},useMedium:function(m){var h=o(m,i);return r.push(h),function(){r=r.filter(function(p){return p!==h})}},assignSyncMedium:function(m){for(i=!0;r.length;){var h=r;r=[],h.forEach(m)}r={push:function(p){return m(p)},filter:function(){return r}}},assignMedium:function(m){i=!0;var h=[];if(r.length){var p=r;r=[],p.forEach(m),h=r}var g=function(){var b=h;h=[],b.forEach(m)},x=function(){return Promise.resolve().then(g)};x(),r={push:function(b){h.push(b),x()},filter:function(b){return h=h.filter(b),r}}}};return d}function Dw(s){s===void 0&&(s={});var o=Rw(null);return o.options=en({async:!0,ssr:!1},s),o}var Wx=function(s){var o=s.sideCar,r=Yx(s,["sideCar"]);if(!o)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=o.read();if(!i)throw new Error("Sidecar medium not found");return y.createElement(i,en({},r))};Wx.isSideCarExport=!0;function Ow(s,o){return s.useMedium(o),Wx}var Gx=Dw(),cu=function(){},Nc=y.forwardRef(function(s,o){var r=y.useRef(null),i=y.useState({onScrollCapture:cu,onWheelCapture:cu,onTouchMoveCapture:cu}),d=i[0],m=i[1],h=s.forwardProps,p=s.children,g=s.className,x=s.removeScrollBar,b=s.enabled,w=s.shards,E=s.sideCar,A=s.noRelative,R=s.noIsolation,S=s.inert,C=s.allowPinchZoom,k=s.as,z=k===void 0?"div":k,L=s.gapMode,V=Yx(s,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Q=E,I=zw([r,o]),W=en(en({},V),d);return y.createElement(y.Fragment,null,b&&y.createElement(Q,{sideCar:Gx,removeScrollBar:x,shards:w,noRelative:A,noIsolation:R,inert:S,setCallbacks:m,allowPinchZoom:!!C,lockRef:r,gapMode:L}),h?y.cloneElement(y.Children.only(p),en(en({},W),{ref:I})):y.createElement(z,en({},W,{className:g,ref:I}),p))});Nc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Nc.classNames={fullWidth:fc,zeroRight:dc};var kw=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Hw(){if(!document)return null;var s=document.createElement("style");s.type="text/css";var o=kw();return o&&s.setAttribute("nonce",o),s}function Uw(s,o){s.styleSheet?s.styleSheet.cssText=o:s.appendChild(document.createTextNode(o))}function Lw(s){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(s)}var Bw=function(){var s=0,o=null;return{add:function(r){s==0&&(o=Hw())&&(Uw(o,r),Lw(o)),s++},remove:function(){s--,!s&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},Pw=function(){var s=Bw();return function(o,r){y.useEffect(function(){return s.add(o),function(){s.remove()}},[o&&r])}},Xx=function(){var s=Pw(),o=function(r){var i=r.styles,d=r.dynamic;return s(i,d),null};return o},Vw={left:0,top:0,right:0,gap:0},iu=function(s){return parseInt(s||"",10)||0},qw=function(s){var o=window.getComputedStyle(document.body),r=o[s==="padding"?"paddingLeft":"marginLeft"],i=o[s==="padding"?"paddingTop":"marginTop"],d=o[s==="padding"?"paddingRight":"marginRight"];return[iu(r),iu(i),iu(d)]},Yw=function(s){if(s===void 0&&(s="margin"),typeof window>"u")return Vw;var o=qw(s),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,i-r+o[2]-o[0])}},Ww=Xx(),Es="data-scroll-locked",Gw=function(s,o,r,i){var d=s.left,m=s.top,h=s.right,p=s.gap;return r===void 0&&(r="margin"),`
.`.concat(Cw,` {
overflow: hidden `).concat(i,`;
padding-right: `).concat(p,"px ").concat(i,`;
}
body[`).concat(Es,`] {
overflow: hidden `).concat(i,`;
overscroll-behavior: contain;
`).concat([o&&"position: relative ".concat(i,";"),r==="margin"&&`
padding-left: `.concat(d,`px;
padding-top: `).concat(m,`px;
padding-right: `).concat(h,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(p,"px ").concat(i,`;
`),r==="padding"&&"padding-right: ".concat(p,"px ").concat(i,";")].filter(Boolean).join(""),`
}
.`).concat(dc,` {
right: `).concat(p,"px ").concat(i,`;
}
.`).concat(fc,` {
margin-right: `).concat(p,"px ").concat(i,`;
}
.`).concat(dc," .").concat(dc,` {
right: 0 `).concat(i,`;
}
.`).concat(fc," .").concat(fc,` {
margin-right: 0 `).concat(i,`;
}
body[`).concat(Es,`] {
`).concat(Aw,": ").concat(p,`px;
}
`)},Oh=function(){var s=parseInt(document.body.getAttribute(Es)||"0",10);return isFinite(s)?s:0},Xw=function(){y.useEffect(function(){return document.body.setAttribute(Es,(Oh()+1).toString()),function(){var s=Oh()-1;s<=0?document.body.removeAttribute(Es):document.body.setAttribute(Es,s.toString())}},[])},Zw=function(s){var o=s.noRelative,r=s.noImportant,i=s.gapMode,d=i===void 0?"margin":i;Xw();var m=y.useMemo(function(){return Yw(d)},[d]);return y.createElement(Ww,{styles:Gw(m,!o,d,r?"":"!important")})},bu=!1;if(typeof window<"u")try{var sc=Object.defineProperty({},"passive",{get:function(){return bu=!0,!0}});window.addEventListener("test",sc,sc),window.removeEventListener("test",sc,sc)}catch{bu=!1}var bs=bu?{passive:!1}:!1,Qw=function(s){return s.tagName==="TEXTAREA"},Zx=function(s,o){if(!(s instanceof Element))return!1;var r=window.getComputedStyle(s);return r[o]!=="hidden"&&!(r.overflowY===r.overflowX&&!Qw(s)&&r[o]==="visible")},Kw=function(s){return Zx(s,"overflowY")},Jw=function(s){return Zx(s,"overflowX")},kh=function(s,o){var r=o.ownerDocument,i=o;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var d=Qx(s,i);if(d){var m=Kx(s,i),h=m[1],p=m[2];if(h>p)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},$w=function(s){var o=s.scrollTop,r=s.scrollHeight,i=s.clientHeight;return[o,r,i]},Fw=function(s){var o=s.scrollLeft,r=s.scrollWidth,i=s.clientWidth;return[o,r,i]},Qx=function(s,o){return s==="v"?Kw(o):Jw(o)},Kx=function(s,o){return s==="v"?$w(o):Fw(o)},Iw=function(s,o){return s==="h"&&o==="rtl"?-1:1},eS=function(s,o,r,i,d){var m=Iw(s,window.getComputedStyle(o).direction),h=m*i,p=r.target,g=o.contains(p),x=!1,b=h>0,w=0,E=0;do{if(!p)break;var A=Kx(s,p),R=A[0],S=A[1],C=A[2],k=S-C-m*R;(R||k)&&Qx(s,p)&&(w+=k,E+=R);var z=p.parentNode;p=z&&z.nodeType===Node.DOCUMENT_FRAGMENT_NODE?z.host:z}while(!g&&p!==document.body||g&&(o.contains(p)||o===p));return(b&&Math.abs(w)<1||!b&&Math.abs(E)<1)&&(x=!0),x},lc=function(s){return"changedTouches"in s?[s.changedTouches[0].clientX,s.changedTouches[0].clientY]:[0,0]},Hh=function(s){return[s.deltaX,s.deltaY]},Uh=function(s){return s&&"current"in s?s.current:s},tS=function(s,o){return s[0]===o[0]&&s[1]===o[1]},nS=function(s){return`
.block-interactivity-`.concat(s,` {pointer-events: none;}
.allow-interactivity-`).concat(s,` {pointer-events: all;}
`)},aS=0,ws=[];function sS(s){var o=y.useRef([]),r=y.useRef([0,0]),i=y.useRef(),d=y.useState(aS++)[0],m=y.useState(Xx)[0],h=y.useRef(s);y.useEffect(function(){h.current=s},[s]),y.useEffect(function(){if(s.inert){document.body.classList.add("block-interactivity-".concat(d));var S=Ew([s.lockRef.current],(s.shards||[]).map(Uh),!0).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(d))}),function(){document.body.classList.remove("block-interactivity-".concat(d)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(d))})}}},[s.inert,s.lockRef.current,s.shards]);var p=y.useCallback(function(S,C){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!h.current.allowPinchZoom;var k=lc(S),z=r.current,L="deltaX"in S?S.deltaX:z[0]-k[0],V="deltaY"in S?S.deltaY:z[1]-k[1],Q,I=S.target,W=Math.abs(L)>Math.abs(V)?"h":"v";if("touches"in S&&W==="h"&&I.type==="range")return!1;var J=window.getSelection(),ae=J&&J.anchorNode,ue=ae?ae===I||ae.contains(I):!1;if(ue)return!1;var fe=kh(W,I);if(!fe)return!0;if(fe?Q=W:(Q=W==="v"?"h":"v",fe=kh(W,I)),!fe)return!1;if(!i.current&&"changedTouches"in S&&(L||V)&&(i.current=Q),!Q)return!0;var te=i.current||Q;return eS(te,C,S,te==="h"?L:V)},[]),g=y.useCallback(function(S){var C=S;if(!(!ws.length||ws[ws.length-1]!==m)){var k="deltaY"in C?Hh(C):lc(C),z=o.current.filter(function(Q){return Q.name===C.type&&(Q.target===C.target||C.target===Q.shadowParent)&&tS(Q.delta,k)})[0];if(z&&z.should){C.cancelable&&C.preventDefault();return}if(!z){var L=(h.current.shards||[]).map(Uh).filter(Boolean).filter(function(Q){return Q.contains(C.target)}),V=L.length>0?p(C,L[0]):!h.current.noIsolation;V&&C.cancelable&&C.preventDefault()}}},[]),x=y.useCallback(function(S,C,k,z){var L={name:S,delta:C,target:k,should:z,shadowParent:lS(k)};o.current.push(L),setTimeout(function(){o.current=o.current.filter(function(V){return V!==L})},1)},[]),b=y.useCallback(function(S){r.current=lc(S),i.current=void 0},[]),w=y.useCallback(function(S){x(S.type,Hh(S),S.target,p(S,s.lockRef.current))},[]),E=y.useCallback(function(S){x(S.type,lc(S),S.target,p(S,s.lockRef.current))},[]);y.useEffect(function(){return ws.push(m),s.setCallbacks({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:E}),document.addEventListener("wheel",g,bs),document.addEventListener("touchmove",g,bs),document.addEventListener("touchstart",b,bs),function(){ws=ws.filter(function(S){return S!==m}),document.removeEventListener("wheel",g,bs),document.removeEventListener("touchmove",g,bs),document.removeEventListener("touchstart",b,bs)}},[]);var A=s.removeScrollBar,R=s.inert;return y.createElement(y.Fragment,null,R?y.createElement(m,{styles:nS(d)}):null,A?y.createElement(Zw,{noRelative:s.noRelative,gapMode:s.gapMode}):null)}function lS(s){for(var o=null;s!==null;)s instanceof ShadowRoot&&(o=s.host,s=s.host),s=s.parentNode;return o}const oS=Ow(Gx,sS);var Jx=y.forwardRef(function(s,o){return y.createElement(Nc,en({},s,{ref:o,sideCar:oS}))});Jx.classNames=Nc.classNames;var cS=[" ","Enter","ArrowUp","ArrowDown"],iS=[" ","Enter"],Da="Select",[Ec,Cc,rS]=ub(Da),[zs]=_u(Da,[rS,_x]),Ac=_x(),[uS,la]=zs(Da),[dS,fS]=zs(Da),$x=s=>{const{__scopeSelect:o,children:r,open:i,defaultOpen:d,onOpenChange:m,value:h,defaultValue:p,onValueChange:g,dir:x,name:b,autoComplete:w,disabled:E,required:A,form:R}=s,S=Ac(o),[C,k]=y.useState(null),[z,L]=y.useState(null),[V,Q]=y.useState(!1),I=fb(x),[W,J]=Rh({prop:i,defaultProp:d??!1,onChange:m,caller:Da}),[ae,ue]=Rh({prop:h,defaultProp:p,onChange:g,caller:Da}),fe=y.useRef(null),te=C?R||!!C.closest("form"):!0,[ge,re]=y.useState(new Set),me=Array.from(ge).map(D=>D.props.value).join(";");return u.jsx(sw,{...S,children:u.jsxs(uS,{required:A,scope:o,trigger:C,onTriggerChange:k,valueNode:z,onValueNodeChange:L,valueNodeHasChildren:V,onValueNodeHasChildrenChange:Q,contentId:Ru(),value:ae,onValueChange:ue,open:W,onOpenChange:J,dir:I,triggerPointerDownPosRef:fe,disabled:E,children:[u.jsx(Ec.Provider,{scope:o,children:u.jsx(dS,{scope:s.__scopeSelect,onNativeOptionAdd:y.useCallback(D=>{re(X=>new Set(X).add(D))},[]),onNativeOptionRemove:y.useCallback(D=>{re(X=>{const P=new Set(X);return P.delete(D),P})},[]),children:r})}),te?u.jsxs(yg,{"aria-hidden":!0,required:A,tabIndex:-1,name:b,autoComplete:w,value:ae,onChange:D=>ue(D.target.value),disabled:E,form:R,children:[ae===void 0?u.jsx("option",{value:""}):null,Array.from(ge)]},me):null]})})};$x.displayName=Da;var Fx="SelectTrigger",Ix=y.forwardRef((s,o)=>{const{__scopeSelect:r,disabled:i=!1,...d}=s,m=Ac(r),h=la(Fx,r),p=h.disabled||i,g=it(o,h.onTriggerChange),x=Cc(r),b=y.useRef("touch"),[w,E,A]=wg(S=>{const C=x().filter(L=>!L.disabled),k=C.find(L=>L.value===h.value),z=Sg(C,S,k);z!==void 0&&h.onValueChange(z.value)}),R=S=>{p||(h.onOpenChange(!0),A()),S&&(h.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return u.jsx(lw,{asChild:!0,...m,children:u.jsx(Ze.button,{type:"button",role:"combobox","aria-controls":h.contentId,"aria-expanded":h.open,"aria-required":h.required,"aria-autocomplete":"none",dir:h.dir,"data-state":h.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":bg(h.value)?"":void 0,...d,ref:g,onClick:Fe(d.onClick,S=>{S.currentTarget.focus(),b.current!=="mouse"&&R(S)}),onPointerDown:Fe(d.onPointerDown,S=>{b.current=S.pointerType;const C=S.target;C.hasPointerCapture(S.pointerId)&&C.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(R(S),S.preventDefault())}),onKeyDown:Fe(d.onKeyDown,S=>{const C=w.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&E(S.key),!(C&&S.key===" ")&&cS.includes(S.key)&&(R(),S.preventDefault())})})})});Ix.displayName=Fx;var eg="SelectValue",tg=y.forwardRef((s,o)=>{const{__scopeSelect:r,className:i,style:d,children:m,placeholder:h="",...p}=s,g=la(eg,r),{onValueNodeHasChildrenChange:x}=g,b=m!==void 0,w=it(o,g.onValueNodeChange);return bt(()=>{x(b)},[x,b]),u.jsx(Ze.span,{...p,ref:w,style:{pointerEvents:"none"},children:bg(g.value)?u.jsx(u.Fragment,{children:h}):m})});tg.displayName=eg;var mS="SelectIcon",ng=y.forwardRef((s,o)=>{const{__scopeSelect:r,children:i,...d}=s;return u.jsx(Ze.span,{"aria-hidden":!0,...d,ref:o,children:i||"▼"})});ng.displayName=mS;var pS="SelectPortal",ag=s=>u.jsx(Px,{asChild:!0,...s});ag.displayName=pS;var Oa="SelectContent",sg=y.forwardRef((s,o)=>{const r=la(Oa,s.__scopeSelect),[i,d]=y.useState();if(bt(()=>{d(new DocumentFragment)},[]),!r.open){const m=i;return m?kl.createPortal(u.jsx(lg,{scope:s.__scopeSelect,children:u.jsx(Ec.Slot,{scope:s.__scopeSelect,children:u.jsx("div",{children:s.children})})}),m):null}return u.jsx(og,{...s,ref:o})});sg.displayName=Oa;var Xt=10,[lg,oa]=zs(Oa),hS="SelectContentImpl",xS=rw("SelectContent.RemoveScroll"),og=y.forwardRef((s,o)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:d,onEscapeKeyDown:m,onPointerDownOutside:h,side:p,sideOffset:g,align:x,alignOffset:b,arrowPadding:w,collisionBoundary:E,collisionPadding:A,sticky:R,hideWhenDetached:S,avoidCollisions:C,...k}=s,z=la(Oa,r),[L,V]=y.useState(null),[Q,I]=y.useState(null),W=it(o,M=>V(M)),[J,ae]=y.useState(null),[ue,fe]=y.useState(null),te=Cc(r),[ge,re]=y.useState(!1),me=y.useRef(!1);y.useEffect(()=>{if(L)return Nw(L)},[L]),Tb();const D=y.useCallback(M=>{const[_,...ne]=te().map(ze=>ze.ref.current),[he]=ne.slice(-1),ye=document.activeElement;for(const ze of M)if(ze===ye||(ze?.scrollIntoView({block:"nearest"}),ze===_&&Q&&(Q.scrollTop=0),ze===he&&Q&&(Q.scrollTop=Q.scrollHeight),ze?.focus(),document.activeElement!==ye))return},[te,Q]),X=y.useCallback(()=>D([J,L]),[D,J,L]);y.useEffect(()=>{ge&&X()},[ge,X]);const{onOpenChange:P,triggerPointerDownPosRef:se}=z;y.useEffect(()=>{if(L){let M={x:0,y:0};const _=he=>{M={x:Math.abs(Math.round(he.pageX)-(se.current?.x??0)),y:Math.abs(Math.round(he.pageY)-(se.current?.y??0))}},ne=he=>{M.x<=10&&M.y<=10?he.preventDefault():L.contains(he.target)||P(!1),document.removeEventListener("pointermove",_),se.current=null};return se.current!==null&&(document.addEventListener("pointermove",_),document.addEventListener("pointerup",ne,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",_),document.removeEventListener("pointerup",ne,{capture:!0})}}},[L,P,se]),y.useEffect(()=>{const M=()=>P(!1);return window.addEventListener("blur",M),window.addEventListener("resize",M),()=>{window.removeEventListener("blur",M),window.removeEventListener("resize",M)}},[P]);const[pe,N]=wg(M=>{const _=te().filter(ye=>!ye.disabled),ne=_.find(ye=>ye.ref.current===document.activeElement),he=Sg(_,M,ne);he&&setTimeout(()=>he.ref.current.focus())}),q=y.useCallback((M,_,ne)=>{const he=!me.current&&!ne;(z.value!==void 0&&z.value===_||he)&&(ae(M),he&&(me.current=!0))},[z.value]),F=y.useCallback(()=>L?.focus(),[L]),ee=y.useCallback((M,_,ne)=>{const he=!me.current&&!ne;(z.value!==void 0&&z.value===_||he)&&fe(M)},[z.value]),le=i==="popper"?wu:cg,K=le===wu?{side:p,sideOffset:g,align:x,alignOffset:b,arrowPadding:w,collisionBoundary:E,collisionPadding:A,sticky:R,hideWhenDetached:S,avoidCollisions:C}:{};return u.jsx(lg,{scope:r,content:L,viewport:Q,onViewportChange:I,itemRefCallback:q,selectedItem:J,onItemLeave:F,itemTextRefCallback:ee,focusSelectedItem:X,selectedItemText:ue,position:i,isPositioned:ge,searchRef:pe,children:u.jsx(Jx,{as:xS,allowPinchZoom:!0,children:u.jsx(xx,{asChild:!0,trapped:z.open,onMountAutoFocus:M=>{M.preventDefault()},onUnmountAutoFocus:Fe(d,M=>{z.trigger?.focus({preventScroll:!0}),M.preventDefault()}),children:u.jsx(px,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:m,onPointerDownOutside:h,onFocusOutside:M=>M.preventDefault(),onDismiss:()=>z.onOpenChange(!1),children:u.jsx(le,{role:"listbox",id:z.contentId,"data-state":z.open?"open":"closed",dir:z.dir,onContextMenu:M=>M.preventDefault(),...k,...K,onPlaced:()=>re(!0),ref:W,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:Fe(k.onKeyDown,M=>{const _=M.ctrlKey||M.altKey||M.metaKey;if(M.key==="Tab"&&M.preventDefault(),!_&&M.key.length===1&&N(M.key),["ArrowUp","ArrowDown","Home","End"].includes(M.key)){let he=te().filter(ye=>!ye.disabled).map(ye=>ye.ref.current);if(["ArrowUp","End"].includes(M.key)&&(he=he.slice().reverse()),["ArrowUp","ArrowDown"].includes(M.key)){const ye=M.target,ze=he.indexOf(ye);he=he.slice(ze+1)}setTimeout(()=>D(he)),M.preventDefault()}})})})})})})});og.displayName=hS;var gS="SelectItemAlignedPosition",cg=y.forwardRef((s,o)=>{const{__scopeSelect:r,onPlaced:i,...d}=s,m=la(Oa,r),h=oa(Oa,r),[p,g]=y.useState(null),[x,b]=y.useState(null),w=it(o,W=>b(W)),E=Cc(r),A=y.useRef(!1),R=y.useRef(!0),{viewport:S,selectedItem:C,selectedItemText:k,focusSelectedItem:z}=h,L=y.useCallback(()=>{if(m.trigger&&m.valueNode&&p&&x&&S&&C&&k){const W=m.trigger.getBoundingClientRect(),J=x.getBoundingClientRect(),ae=m.valueNode.getBoundingClientRect(),ue=k.getBoundingClientRect();if(m.dir!=="rtl"){const ye=ue.left-J.left,ze=ae.left-ye,ut=W.left-ze,dt=W.width+ut,ca=Math.max(dt,J.width),ia=window.innerWidth-Xt,Ds=dh(ze,[Xt,Math.max(Xt,ia-ca)]);p.style.minWidth=dt+"px",p.style.left=Ds+"px"}else{const ye=J.right-ue.right,ze=window.innerWidth-ae.right-ye,ut=window.innerWidth-W.right-ze,dt=W.width+ut,ca=Math.max(dt,J.width),ia=window.innerWidth-Xt,Ds=dh(ze,[Xt,Math.max(Xt,ia-ca)]);p.style.minWidth=dt+"px",p.style.right=Ds+"px"}const fe=E(),te=window.innerHeight-Xt*2,ge=S.scrollHeight,re=window.getComputedStyle(x),me=parseInt(re.borderTopWidth,10),D=parseInt(re.paddingTop,10),X=parseInt(re.borderBottomWidth,10),P=parseInt(re.paddingBottom,10),se=me+D+ge+P+X,pe=Math.min(C.offsetHeight*5,se),N=window.getComputedStyle(S),q=parseInt(N.paddingTop,10),F=parseInt(N.paddingBottom,10),ee=W.top+W.height/2-Xt,le=te-ee,K=C.offsetHeight/2,M=C.offsetTop+K,_=me+D+M,ne=se-_;if(_<=ee){const ye=fe.length>0&&C===fe[fe.length-1].ref.current;p.style.bottom="0px";const ze=x.clientHeight-S.offsetTop-S.offsetHeight,ut=Math.max(le,K+(ye?F:0)+ze+X),dt=_+ut;p.style.height=dt+"px"}else{const ye=fe.length>0&&C===fe[0].ref.current;p.style.top="0px";const ut=Math.max(ee,me+S.offsetTop+(ye?q:0)+K)+ne;p.style.height=ut+"px",S.scrollTop=_-ee+S.offsetTop}p.style.margin=`${Xt}px 0`,p.style.minHeight=pe+"px",p.style.maxHeight=te+"px",i?.(),requestAnimationFrame(()=>A.current=!0)}},[E,m.trigger,m.valueNode,p,x,S,C,k,m.dir,i]);bt(()=>L(),[L]);const[V,Q]=y.useState();bt(()=>{x&&Q(window.getComputedStyle(x).zIndex)},[x]);const I=y.useCallback(W=>{W&&R.current===!0&&(L(),z?.(),R.current=!1)},[L,z]);return u.jsx(yS,{scope:r,contentWrapper:p,shouldExpandOnScrollRef:A,onScrollButtonChange:I,children:u.jsx("div",{ref:g,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:V},children:u.jsx(Ze.div,{...d,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...d.style}})})})});cg.displayName=gS;var vS="SelectPopperPosition",wu=y.forwardRef((s,o)=>{const{__scopeSelect:r,align:i="start",collisionPadding:d=Xt,...m}=s,h=Ac(r);return u.jsx(ow,{...h,...m,ref:o,align:i,collisionPadding:d,style:{boxSizing:"border-box",...m.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});wu.displayName=vS;var[yS,Vu]=zs(Oa,{}),Su="SelectViewport",ig=y.forwardRef((s,o)=>{const{__scopeSelect:r,nonce:i,...d}=s,m=oa(Su,r),h=Vu(Su,r),p=it(o,m.onViewportChange),g=y.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),u.jsx(Ec.Slot,{scope:r,children:u.jsx(Ze.div,{"data-radix-select-viewport":"",role:"presentation",...d,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...d.style},onScroll:Fe(d.onScroll,x=>{const b=x.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:E}=h;if(E?.current&&w){const A=Math.abs(g.current-b.scrollTop);if(A>0){const R=window.innerHeight-Xt*2,S=parseFloat(w.style.minHeight),C=parseFloat(w.style.height),k=Math.max(S,C);if(k<R){const z=k+A,L=Math.min(R,z),V=z-L;w.style.height=L+"px",w.style.bottom==="0px"&&(b.scrollTop=V>0?V:0,w.style.justifyContent="flex-end")}}}g.current=b.scrollTop})})})]})});ig.displayName=Su;var rg="SelectGroup",[bS,wS]=zs(rg),SS=y.forwardRef((s,o)=>{const{__scopeSelect:r,...i}=s,d=Ru();return u.jsx(bS,{scope:r,id:d,children:u.jsx(Ze.div,{role:"group","aria-labelledby":d,...i,ref:o})})});SS.displayName=rg;var ug="SelectLabel",jS=y.forwardRef((s,o)=>{const{__scopeSelect:r,...i}=s,d=wS(ug,r);return u.jsx(Ze.div,{id:d.id,...i,ref:o})});jS.displayName=ug;var gc="SelectItem",[NS,dg]=zs(gc),fg=y.forwardRef((s,o)=>{const{__scopeSelect:r,value:i,disabled:d=!1,textValue:m,...h}=s,p=la(gc,r),g=oa(gc,r),x=p.value===i,[b,w]=y.useState(m??""),[E,A]=y.useState(!1),R=it(o,z=>g.itemRefCallback?.(z,i,d)),S=Ru(),C=y.useRef("touch"),k=()=>{d||(p.onValueChange(i),p.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(NS,{scope:r,value:i,disabled:d,textId:S,isSelected:x,onItemTextChange:y.useCallback(z=>{w(L=>L||(z?.textContent??"").trim())},[]),children:u.jsx(Ec.ItemSlot,{scope:r,value:i,disabled:d,textValue:b,children:u.jsx(Ze.div,{role:"option","aria-labelledby":S,"data-highlighted":E?"":void 0,"aria-selected":x&&E,"data-state":x?"checked":"unchecked","aria-disabled":d||void 0,"data-disabled":d?"":void 0,tabIndex:d?void 0:-1,...h,ref:R,onFocus:Fe(h.onFocus,()=>A(!0)),onBlur:Fe(h.onBlur,()=>A(!1)),onClick:Fe(h.onClick,()=>{C.current!=="mouse"&&k()}),onPointerUp:Fe(h.onPointerUp,()=>{C.current==="mouse"&&k()}),onPointerDown:Fe(h.onPointerDown,z=>{C.current=z.pointerType}),onPointerMove:Fe(h.onPointerMove,z=>{C.current=z.pointerType,d?g.onItemLeave?.():C.current==="mouse"&&z.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Fe(h.onPointerLeave,z=>{z.currentTarget===document.activeElement&&g.onItemLeave?.()}),onKeyDown:Fe(h.onKeyDown,z=>{g.searchRef?.current!==""&&z.key===" "||(iS.includes(z.key)&&k(),z.key===" "&&z.preventDefault())})})})})});fg.displayName=gc;var zl="SelectItemText",mg=y.forwardRef((s,o)=>{const{__scopeSelect:r,className:i,style:d,...m}=s,h=la(zl,r),p=oa(zl,r),g=dg(zl,r),x=fS(zl,r),[b,w]=y.useState(null),E=it(o,k=>w(k),g.onItemTextChange,k=>p.itemTextRefCallback?.(k,g.value,g.disabled)),A=b?.textContent,R=y.useMemo(()=>u.jsx("option",{value:g.value,disabled:g.disabled,children:A},g.value),[g.disabled,g.value,A]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=x;return bt(()=>(S(R),()=>C(R)),[S,C,R]),u.jsxs(u.Fragment,{children:[u.jsx(Ze.span,{id:g.textId,...m,ref:E}),g.isSelected&&h.valueNode&&!h.valueNodeHasChildren?kl.createPortal(m.children,h.valueNode):null]})});mg.displayName=zl;var pg="SelectItemIndicator",hg=y.forwardRef((s,o)=>{const{__scopeSelect:r,...i}=s;return dg(pg,r).isSelected?u.jsx(Ze.span,{"aria-hidden":!0,...i,ref:o}):null});hg.displayName=pg;var ju="SelectScrollUpButton",xg=y.forwardRef((s,o)=>{const r=oa(ju,s.__scopeSelect),i=Vu(ju,s.__scopeSelect),[d,m]=y.useState(!1),h=it(o,i.onScrollButtonChange);return bt(()=>{if(r.viewport&&r.isPositioned){let p=function(){const x=g.scrollTop>0;m(x)};const g=r.viewport;return p(),g.addEventListener("scroll",p),()=>g.removeEventListener("scroll",p)}},[r.viewport,r.isPositioned]),d?u.jsx(vg,{...s,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:g}=r;p&&g&&(p.scrollTop=p.scrollTop-g.offsetHeight)}}):null});xg.displayName=ju;var Nu="SelectScrollDownButton",gg=y.forwardRef((s,o)=>{const r=oa(Nu,s.__scopeSelect),i=Vu(Nu,s.__scopeSelect),[d,m]=y.useState(!1),h=it(o,i.onScrollButtonChange);return bt(()=>{if(r.viewport&&r.isPositioned){let p=function(){const x=g.scrollHeight-g.clientHeight,b=Math.ceil(g.scrollTop)<x;m(b)};const g=r.viewport;return p(),g.addEventListener("scroll",p),()=>g.removeEventListener("scroll",p)}},[r.viewport,r.isPositioned]),d?u.jsx(vg,{...s,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:g}=r;p&&g&&(p.scrollTop=p.scrollTop+g.offsetHeight)}}):null});gg.displayName=Nu;var vg=y.forwardRef((s,o)=>{const{__scopeSelect:r,onAutoScroll:i,...d}=s,m=oa("SelectScrollButton",r),h=y.useRef(null),p=Cc(r),g=y.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return y.useEffect(()=>()=>g(),[g]),bt(()=>{p().find(b=>b.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[p]),u.jsx(Ze.div,{"aria-hidden":!0,...d,ref:o,style:{flexShrink:0,...d.style},onPointerDown:Fe(d.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(i,50))}),onPointerMove:Fe(d.onPointerMove,()=>{m.onItemLeave?.(),h.current===null&&(h.current=window.setInterval(i,50))}),onPointerLeave:Fe(d.onPointerLeave,()=>{g()})})}),ES="SelectSeparator",CS=y.forwardRef((s,o)=>{const{__scopeSelect:r,...i}=s;return u.jsx(Ze.div,{"aria-hidden":!0,...i,ref:o})});CS.displayName=ES;var Eu="SelectArrow",AS=y.forwardRef((s,o)=>{const{__scopeSelect:r,...i}=s,d=Ac(r),m=la(Eu,r),h=oa(Eu,r);return m.open&&h.position==="popper"?u.jsx(cw,{...d,...i,ref:o}):null});AS.displayName=Eu;var MS="SelectBubbleInput",yg=y.forwardRef(({__scopeSelect:s,value:o,...r},i)=>{const d=y.useRef(null),m=it(i,d),h=vw(o);return y.useEffect(()=>{const p=d.current;if(!p)return;const g=window.HTMLSelectElement.prototype,b=Object.getOwnPropertyDescriptor(g,"value").set;if(h!==o&&b){const w=new Event("change",{bubbles:!0});b.call(p,o),p.dispatchEvent(w)}},[h,o]),u.jsx(Ze.select,{...r,style:{...Vx,...r.style},ref:m,defaultValue:o})});yg.displayName=MS;function bg(s){return s===""||s===void 0}function wg(s){const o=_a(s),r=y.useRef(""),i=y.useRef(0),d=y.useCallback(h=>{const p=r.current+h;o(p),(function g(x){r.current=x,window.clearTimeout(i.current),x!==""&&(i.current=window.setTimeout(()=>g(""),1e3))})(p)},[o]),m=y.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,d,m]}function Sg(s,o,r){const d=o.length>1&&Array.from(o).every(x=>x===o[0])?o[0]:o,m=r?s.indexOf(r):-1;let h=TS(s,Math.max(m,0));d.length===1&&(h=h.filter(x=>x!==r));const g=h.find(x=>x.textValue.toLowerCase().startsWith(d.toLowerCase()));return g!==r?g:void 0}function TS(s,o){return s.map((r,i)=>s[(o+i)%s.length])}var zS=$x,_S=Ix,RS=tg,DS=ng,OS=ag,kS=sg,HS=ig,US=fg,LS=mg,BS=hg,PS=xg,VS=gg;function jg(s){var o,r,i="";if(typeof s=="string"||typeof s=="number")i+=s;else if(typeof s=="object")if(Array.isArray(s)){var d=s.length;for(o=0;o<d;o++)s[o]&&(r=jg(s[o]))&&(i&&(i+=" "),i+=r)}else for(r in s)s[r]&&(i&&(i+=" "),i+=r);return i}function qS(){for(var s,o,r=0,i="",d=arguments.length;r<d;r++)(s=arguments[r])&&(o=jg(s))&&(i&&(i+=" "),i+=o);return i}const YS=(s,o)=>{const r=new Array(s.length+o.length);for(let i=0;i<s.length;i++)r[i]=s[i];for(let i=0;i<o.length;i++)r[s.length+i]=o[i];return r},WS=(s,o)=>({classGroupId:s,validator:o}),Ng=(s=new Map,o=null,r)=>({nextPart:s,validators:o,classGroupId:r}),vc="-",Lh=[],GS="arbitrary..",XS=s=>{const o=QS(s),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=s;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return ZS(h);const p=h.split(vc),g=p[0]===""&&p.length>1?1:0;return Eg(p,g,o)},getConflictingClassGroupIds:(h,p)=>{if(p){const g=i[h],x=r[h];return g?x?YS(x,g):g:x||Lh}return r[h]||Lh}}},Eg=(s,o,r)=>{if(s.length-o===0)return r.classGroupId;const d=s[o],m=r.nextPart.get(d);if(m){const x=Eg(s,o+1,m);if(x)return x}const h=r.validators;if(h===null)return;const p=o===0?s.join(vc):s.slice(o).join(vc),g=h.length;for(let x=0;x<g;x++){const b=h[x];if(b.validator(p))return b.classGroupId}},ZS=s=>s.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=s.slice(1,-1),r=o.indexOf(":"),i=o.slice(0,r);return i?GS+i:void 0})(),QS=s=>{const{theme:o,classGroups:r}=s;return KS(r,o)},KS=(s,o)=>{const r=Ng();for(const i in s){const d=s[i];qu(d,r,i,o)}return r},qu=(s,o,r,i)=>{const d=s.length;for(let m=0;m<d;m++){const h=s[m];JS(h,o,r,i)}},JS=(s,o,r,i)=>{if(typeof s=="string"){$S(s,o,r);return}if(typeof s=="function"){FS(s,o,r,i);return}IS(s,o,r,i)},$S=(s,o,r)=>{const i=s===""?o:Cg(o,s);i.classGroupId=r},FS=(s,o,r,i)=>{if(e5(s)){qu(s(i),o,r,i);return}o.validators===null&&(o.validators=[]),o.validators.push(WS(r,s))},IS=(s,o,r,i)=>{const d=Object.entries(s),m=d.length;for(let h=0;h<m;h++){const[p,g]=d[h];qu(g,Cg(o,p),r,i)}},Cg=(s,o)=>{let r=s;const i=o.split(vc),d=i.length;for(let m=0;m<d;m++){const h=i[m];let p=r.nextPart.get(h);p||(p=Ng(),r.nextPart.set(h,p)),r=p}return r},e5=s=>"isThemeGetter"in s&&s.isThemeGetter===!0,t5=s=>{if(s<1)return{get:()=>{},set:()=>{}};let o=0,r=Object.create(null),i=Object.create(null);const d=(m,h)=>{r[m]=h,o++,o>s&&(o=0,i=r,r=Object.create(null))};return{get(m){let h=r[m];if(h!==void 0)return h;if((h=i[m])!==void 0)return d(m,h),h},set(m,h){m in r?r[m]=h:d(m,h)}}},Cu="!",Bh=":",n5=[],Ph=(s,o,r,i,d)=>({modifiers:s,hasImportantModifier:o,baseClassName:r,maybePostfixModifierPosition:i,isExternal:d}),a5=s=>{const{prefix:o,experimentalParseClassName:r}=s;let i=d=>{const m=[];let h=0,p=0,g=0,x;const b=d.length;for(let S=0;S<b;S++){const C=d[S];if(h===0&&p===0){if(C===Bh){m.push(d.slice(g,S)),g=S+1;continue}if(C==="/"){x=S;continue}}C==="["?h++:C==="]"?h--:C==="("?p++:C===")"&&p--}const w=m.length===0?d:d.slice(g);let E=w,A=!1;w.endsWith(Cu)?(E=w.slice(0,-1),A=!0):w.startsWith(Cu)&&(E=w.slice(1),A=!0);const R=x&&x>g?x-g:void 0;return Ph(m,A,E,R)};if(o){const d=o+Bh,m=i;i=h=>h.startsWith(d)?m(h.slice(d.length)):Ph(n5,!1,h,void 0,!0)}if(r){const d=i;i=m=>r({className:m,parseClassName:d})}return i},s5=s=>{const o=new Map;return s.orderSensitiveModifiers.forEach((r,i)=>{o.set(r,1e6+i)}),r=>{const i=[];let d=[];for(let m=0;m<r.length;m++){const h=r[m],p=h[0]==="[",g=o.has(h);p||g?(d.length>0&&(d.sort(),i.push(...d),d=[]),i.push(h)):d.push(h)}return d.length>0&&(d.sort(),i.push(...d)),i}},l5=s=>({cache:t5(s.cacheSize),parseClassName:a5(s),sortModifiers:s5(s),...XS(s)}),o5=/\s+/,c5=(s,o)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:d,sortModifiers:m}=o,h=[],p=s.trim().split(o5);let g="";for(let x=p.length-1;x>=0;x-=1){const b=p[x],{isExternal:w,modifiers:E,hasImportantModifier:A,baseClassName:R,maybePostfixModifierPosition:S}=r(b);if(w){g=b+(g.length>0?" "+g:g);continue}let C=!!S,k=i(C?R.substring(0,S):R);if(!k){if(!C){g=b+(g.length>0?" "+g:g);continue}if(k=i(R),!k){g=b+(g.length>0?" "+g:g);continue}C=!1}const z=E.length===0?"":E.length===1?E[0]:m(E).join(":"),L=A?z+Cu:z,V=L+k;if(h.indexOf(V)>-1)continue;h.push(V);const Q=d(k,C);for(let I=0;I<Q.length;++I){const W=Q[I];h.push(L+W)}g=b+(g.length>0?" "+g:g)}return g},i5=(...s)=>{let o=0,r,i,d="";for(;o<s.length;)(r=s[o++])&&(i=Ag(r))&&(d&&(d+=" "),d+=i);return d},Ag=s=>{if(typeof s=="string")return s;let o,r="";for(let i=0;i<s.length;i++)s[i]&&(o=Ag(s[i]))&&(r&&(r+=" "),r+=o);return r},r5=(s,...o)=>{let r,i,d,m;const h=g=>{const x=o.reduce((b,w)=>w(b),s());return r=l5(x),i=r.cache.get,d=r.cache.set,m=p,p(g)},p=g=>{const x=i(g);if(x)return x;const b=c5(g,r);return d(g,b),b};return m=h,(...g)=>m(i5(...g))},u5=[],et=s=>{const o=r=>r[s]||u5;return o.isThemeGetter=!0,o},Mg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Tg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,d5=/^\d+\/\d+$/,f5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,m5=/\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$/,p5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,h5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,x5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ss=s=>d5.test(s),je=s=>!!s&&!Number.isNaN(Number(s)),Fn=s=>!!s&&Number.isInteger(Number(s)),ru=s=>s.endsWith("%")&&je(s.slice(0,-1)),Nn=s=>f5.test(s),g5=()=>!0,v5=s=>m5.test(s)&&!p5.test(s),zg=()=>!1,y5=s=>h5.test(s),b5=s=>x5.test(s),w5=s=>!ce(s)&&!ie(s),S5=s=>_s(s,Dg,zg),ce=s=>Mg.test(s),Ma=s=>_s(s,Og,v5),uu=s=>_s(s,A5,je),Vh=s=>_s(s,_g,zg),j5=s=>_s(s,Rg,b5),oc=s=>_s(s,kg,y5),ie=s=>Tg.test(s),Tl=s=>Rs(s,Og),N5=s=>Rs(s,M5),qh=s=>Rs(s,_g),E5=s=>Rs(s,Dg),C5=s=>Rs(s,Rg),cc=s=>Rs(s,kg,!0),_s=(s,o,r)=>{const i=Mg.exec(s);return i?i[1]?o(i[1]):r(i[2]):!1},Rs=(s,o,r=!1)=>{const i=Tg.exec(s);return i?i[1]?o(i[1]):r:!1},_g=s=>s==="position"||s==="percentage",Rg=s=>s==="image"||s==="url",Dg=s=>s==="length"||s==="size"||s==="bg-size",Og=s=>s==="length",A5=s=>s==="number",M5=s=>s==="family-name",kg=s=>s==="shadow",T5=()=>{const s=et("color"),o=et("font"),r=et("text"),i=et("font-weight"),d=et("tracking"),m=et("leading"),h=et("breakpoint"),p=et("container"),g=et("spacing"),x=et("radius"),b=et("shadow"),w=et("inset-shadow"),E=et("text-shadow"),A=et("drop-shadow"),R=et("blur"),S=et("perspective"),C=et("aspect"),k=et("ease"),z=et("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Q=()=>[...V(),ie,ce],I=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],J=()=>[ie,ce,g],ae=()=>[Ss,"full","auto",...J()],ue=()=>[Fn,"none","subgrid",ie,ce],fe=()=>["auto",{span:["full",Fn,ie,ce]},Fn,ie,ce],te=()=>[Fn,"auto",ie,ce],ge=()=>["auto","min","max","fr",ie,ce],re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],me=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...J()],X=()=>[Ss,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...J()],P=()=>[s,ie,ce],se=()=>[...V(),qh,Vh,{position:[ie,ce]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",E5,S5,{size:[ie,ce]}],q=()=>[ru,Tl,Ma],F=()=>["","none","full",x,ie,ce],ee=()=>["",je,Tl,Ma],le=()=>["solid","dashed","dotted","double"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>[je,ru,qh,Vh],_=()=>["","none",R,ie,ce],ne=()=>["none",je,ie,ce],he=()=>["none",je,ie,ce],ye=()=>[je,ie,ce],ze=()=>[Ss,"full",...J()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Nn],breakpoint:[Nn],color:[g5],container:[Nn],"drop-shadow":[Nn],ease:["in","out","in-out"],font:[w5],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Nn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Nn],shadow:[Nn],spacing:["px",je],text:[Nn],"text-shadow":[Nn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ss,ce,ie,C]}],container:["container"],columns:[{columns:[je,ce,ie,p]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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:Q()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{start:ae()}],end:[{end:ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[Fn,"auto",ie,ce]}],basis:[{basis:[Ss,"full","auto",p,...J()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,Ss,"auto","initial","none",ce]}],grow:[{grow:["",je,ie,ce]}],shrink:[{shrink:["",je,ie,ce]}],order:[{order:[Fn,"first","last","none",ie,ce]}],"grid-cols":[{"grid-cols":ue()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":ue()}],"row-start-end":[{row:fe()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ge()}],"auto-rows":[{"auto-rows":ge()}],gap:[{gap:J()}],"gap-x":[{"gap-x":J()}],"gap-y":[{"gap-y":J()}],"justify-content":[{justify:[...re(),"normal"]}],"justify-items":[{"justify-items":[...me(),"normal"]}],"justify-self":[{"justify-self":["auto",...me()]}],"align-content":[{content:["normal",...re()]}],"align-items":[{items:[...me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...me(),{baseline:["","last"]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...me(),"baseline"]}],"place-self":[{"place-self":["auto",...me()]}],p:[{p:J()}],px:[{px:J()}],py:[{py:J()}],ps:[{ps:J()}],pe:[{pe:J()}],pt:[{pt:J()}],pr:[{pr:J()}],pb:[{pb:J()}],pl:[{pl:J()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":J()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":J()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[p,"screen",...X()]}],"min-w":[{"min-w":[p,"screen","none",...X()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[h]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",r,Tl,Ma]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ie,uu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ru,ce]}],"font-family":[{font:[N5,ce,o]}],"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:[d,ie,ce]}],"line-clamp":[{"line-clamp":[je,"none",ie,uu]}],leading:[{leading:[m,...J()]}],"list-image":[{"list-image":["none",ie,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[je,"from-font","auto",ie,Ma]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[je,"auto",ie,ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:J()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,ce]}],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",ie,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fn,ie,ce],radial:["",ie,ce],conic:[Fn,ie,ce]},C5,j5]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[je,ie,ce]}],"outline-w":[{outline:["",je,Tl,Ma]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",b,cc,oc]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",w,cc,oc]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[je,Ma]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",E,cc,oc]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[je,ie,ce]}],"mix-blend":[{"mix-blend":[...K(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K()}],"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":[je]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[ie,ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"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":V()}],"mask-image-conic-pos":[{"mask-conic":[je]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,ce]}],filter:[{filter:["","none",ie,ce]}],blur:[{blur:_()}],brightness:[{brightness:[je,ie,ce]}],contrast:[{contrast:[je,ie,ce]}],"drop-shadow":[{"drop-shadow":["","none",A,cc,oc]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",je,ie,ce]}],"hue-rotate":[{"hue-rotate":[je,ie,ce]}],invert:[{invert:["",je,ie,ce]}],saturate:[{saturate:[je,ie,ce]}],sepia:[{sepia:["",je,ie,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,ce]}],"backdrop-blur":[{"backdrop-blur":_()}],"backdrop-brightness":[{"backdrop-brightness":[je,ie,ce]}],"backdrop-contrast":[{"backdrop-contrast":[je,ie,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,ie,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,ie,ce]}],"backdrop-invert":[{"backdrop-invert":["",je,ie,ce]}],"backdrop-opacity":[{"backdrop-opacity":[je,ie,ce]}],"backdrop-saturate":[{"backdrop-saturate":[je,ie,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",je,ie,ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":J()}],"border-spacing-x":[{"border-spacing-x":J()}],"border-spacing-y":[{"border-spacing-y":J()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[je,"initial",ie,ce]}],ease:[{ease:["linear","initial",k,ie,ce]}],delay:[{delay:[je,ie,ce]}],animate:[{animate:["none",z,ie,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,ie,ce]}],"perspective-origin":[{"perspective-origin":Q()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[ie,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:Q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ze()}],"translate-x":[{"translate-x":ze()}],"translate-y":[{"translate-y":ze()}],"translate-z":[{"translate-z":ze()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"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",ie,ce]}],"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":J()}],"scroll-mx":[{"scroll-mx":J()}],"scroll-my":[{"scroll-my":J()}],"scroll-ms":[{"scroll-ms":J()}],"scroll-me":[{"scroll-me":J()}],"scroll-mt":[{"scroll-mt":J()}],"scroll-mr":[{"scroll-mr":J()}],"scroll-mb":[{"scroll-mb":J()}],"scroll-ml":[{"scroll-ml":J()}],"scroll-p":[{"scroll-p":J()}],"scroll-px":[{"scroll-px":J()}],"scroll-py":[{"scroll-py":J()}],"scroll-ps":[{"scroll-ps":J()}],"scroll-pe":[{"scroll-pe":J()}],"scroll-pt":[{"scroll-pt":J()}],"scroll-pr":[{"scroll-pr":J()}],"scroll-pb":[{"scroll-pb":J()}],"scroll-pl":[{"scroll-pl":J()}],"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",ie,ce]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[je,Tl,Ma,uu]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]}},z5=r5(T5);function As(...s){return z5(qS(s))}function Hg({...s}){return u.jsx(zS,{"code-path":"src\\components\\ui\\select.tsx:10:10","data-slot":"select",...s})}function Ug({...s}){return u.jsx(RS,{"code-path":"src\\components\\ui\\select.tsx:22:10","data-slot":"select-value",...s})}function Lg({className:s,size:o="default",children:r,...i}){return u.jsxs(_S,{"code-path":"src\\components\\ui\\select.tsx:34:5","data-slot":"select-trigger","data-size":o,className:As("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s),...i,children:[r,u.jsx(DS,{"code-path":"src\\components\\ui\\select.tsx:44:7",asChild:!0,children:u.jsx($h,{"code-path":"src\\components\\ui\\select.tsx:45:9",className:"size-4 opacity-50"})})]})}function Bg({className:s,children:o,position:r="item-aligned",align:i="center",...d}){return u.jsx(OS,{"code-path":"src\\components\\ui\\select.tsx:59:5",children:u.jsxs(kS,{"code-path":"src\\components\\ui\\select.tsx:60:7","data-slot":"select-content",className:As("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:r,align:i,...d,children:[u.jsx(_5,{"code-path":"src\\components\\ui\\select.tsx:72:9"}),u.jsx(HS,{"code-path":"src\\components\\ui\\select.tsx:73:9",className:As("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:o}),u.jsx(R5,{"code-path":"src\\components\\ui\\select.tsx:82:9"})]})})}function za({className:s,children:o,...r}){return u.jsxs(US,{"code-path":"src\\components\\ui\\select.tsx:107:5","data-slot":"select-item",className:As("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",s),...r,children:[u.jsx("span",{"code-path":"src\\components\\ui\\select.tsx:115:7","data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:u.jsx(BS,{"code-path":"src\\components\\ui\\select.tsx:119:9",children:u.jsx(P1,{"code-path":"src\\components\\ui\\select.tsx:120:11",className:"size-4"})})}),u.jsx(LS,{"code-path":"src\\components\\ui\\select.tsx:123:7",children:o})]})}function _5({className:s,...o}){return u.jsx(PS,{"code-path":"src\\components\\ui\\select.tsx:146:5","data-slot":"select-scroll-up-button",className:As("flex cursor-default items-center justify-center py-1",s),...o,children:u.jsx(Y1,{"code-path":"src\\components\\ui\\select.tsx:154:7",className:"size-4"})})}function R5({className:s,...o}){return u.jsx(VS,{"code-path":"src\\components\\ui\\select.tsx:164:5","data-slot":"select-scroll-down-button",className:As("flex cursor-default items-center justify-center py-1",s),...o,children:u.jsx($h,{"code-path":"src\\components\\ui\\select.tsx:172:7",className:"size-4"})})}const Yh=80,D5="/mnt/nas/projects",O5=()=>{const{projects:s,addProject:o,renameProject:r,duplicateProject:i,moveProjectToTrash:d,setSelectedProject:m,setStage:h}=sa(),[p,g]=y.useState(0),[x,b]=y.useState(!1),[w,E]=y.useState(0),[A,R]=y.useState(!1),[S,C]=y.useState(!1),[k,z]=y.useState(null),[L,V]=y.useState(null),[Q,I]=y.useState(""),[W,J]=y.useState(null),ae=y.useRef(0),ue=y.useRef(!1),fe=y.useRef(null);y.useEffect(()=>{p>s.length-1&&g(Math.max(0,s.length-1))},[p,s.length]),y.useEffect(()=>{const M=_=>{fe.current&&(fe.current.contains(_.target)||z(null))};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[]);const te=(M,_)=>{x||ue.current||A||S||L||W||(g(_),R(!0),setTimeout(()=>{m(M),h("workspace")},600))},ge=M=>{S||L||W||(b(!0),E(0),ae.current=M,ue.current=!1)},re=M=>{if(!x)return;const _=M-ae.current;Math.abs(_)>6&&(ue.current=!0);const ne=Math.max(-220,Math.min(220,_));E(ne)},me=()=>{x&&(w>Yh&&p>0?g(p-1):w<-Yh&&p<s.length-1&&g(p+1),b(!1),E(0),setTimeout(()=>{ue.current=!1},0))},D=M=>{A||ge(M.clientX)},X=M=>{re(M.clientX)},P=M=>{A||M.touches.length===0||ge(M.touches[0].clientX)},se=M=>{M.touches.length!==0&&re(M.touches[0].clientX)},pe=()=>{C(!0)},N=()=>{C(!1)},q=M=>{V(M.id),I(M.name),z(null)},F=()=>{L&&(r(L,Q),V(null),I(""))},ee=()=>{V(null),I("")},le=()=>{W&&(d(W),J(null),z(null))},K=M=>{const _={...M,id:Date.now().toString(),thumbnail:"/projects/new.jpg",lastModified:new Date};o(_),g(0),C(!1)};return y.useEffect(()=>{const M=_=>{if(!A){if(S){_.key==="Escape"&&N();return}if(L||W){_.key==="Escape"&&(V(null),J(null));return}_.key==="ArrowLeft"&&p>0?g(p-1):_.key==="ArrowRight"&&p<s.length-1?g(p+1):_.key==="Enter"&&te(s[p],p)}};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)},[p,s,A,S,L,W]),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:194:5",className:`fixed inset-0 flex flex-col items-center justify-center z-40 transition-all duration-500 ${A?"opacity-0 scale-105":"opacity-100 scale-100"}`,children:[u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:199:7",className:"absolute top-8 left-8",children:u.jsx("h1",{"code-path":"src\\sections\\ProjectNexus.tsx:200:9",className:"text-xs font-semibold tracking-[0.2em] uppercase",style:{color:"var(--astral-text-muted)"},children:"Astral Suite"})}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:208:7",className:"absolute top-6 right-8 z-20",children:u.jsx(fx,{"code-path":"src\\sections\\ProjectNexus.tsx:209:9"})}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:212:7",className:"mb-10",children:u.jsx("span",{"code-path":"src\\sections\\ProjectNexus.tsx:213:9",className:"text-xs font-semibold tracking-[0.15em] uppercase",style:{color:"var(--astral-violet)"},children:"Project Nexus"})}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:221:7",className:"w-full max-w-[1520px] px-8",children:[u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:222:9",className:"py-6 overflow-visible select-none",onMouseDown:D,onMouseMove:X,onMouseUp:me,onMouseLeave:me,onTouchStart:P,onTouchMove:se,onTouchEnd:me,style:{cursor:x?"grabbing":"grab"},children:u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:233:11",className:`flex gap-6 ${x?"transition-none":"transition-transform duration-500 ease-out"}`,style:{transform:`translateX(calc(50% - ${p*452+210}px + ${w}px))`},children:s.map((M,_)=>u.jsx(k5,{"code-path":"src\\sections\\ProjectNexus.tsx:240:15",project:M,isActive:_===p,onClick:()=>te(M,_),isMenuOpen:k===M.id,menuRef:k===M.id?fe:void 0,onToggleMenu:()=>z(ne=>ne===M.id?null:M.id),onRename:()=>q(M),onDuplicate:()=>{i(M.id),z(null)},onDelete:()=>{J(M.id),z(null)}},M.id))})}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:262:9",className:"mt-1 flex justify-center",children:u.jsxs("button",{"code-path":"src\\sections\\ProjectNexus.tsx:263:11",type:"button",onClick:pe,className:"glass-panel px-5 py-3 rounded-xl flex items-center gap-3 hover:bg-white/10 transition-colors",children:[u.jsx("span",{"code-path":"src\\sections\\ProjectNexus.tsx:268:13",className:"w-7 h-7 rounded-full bg-[var(--astral-violet)] flex items-center justify-center",children:u.jsx(ox,{"code-path":"src\\sections\\ProjectNexus.tsx:269:15",className:"w-4 h-4 text-white"})}),u.jsx("span",{"code-path":"src\\sections\\ProjectNexus.tsx:271:13",className:"text-sm font-medium text-white tracking-wide",children:"New Project"})]})})]}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:276:7",className:"flex gap-2 mt-8",children:s.map((M,_)=>u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:278:11",onClick:()=>g(_),className:`w-2 h-2 rounded-full transition-all duration-300 ${_===p?"bg-[var(--astral-violet)] w-6":"bg-white/20 hover:bg-white/40"}`},M.id))}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:288:7",className:"absolute bottom-8 text-xs tracking-wide",style:{color:"rgba(161, 161, 170, 0.4)"},children:"Use Left/Right arrows or drag to navigate <20> Enter to select"}),S&&u.jsx(H5,{"code-path":"src\\sections\\ProjectNexus.tsx:296:9",onClose:N,onCreate:K}),L&&u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:300:9",className:"fixed inset-0 z-[90] flex items-center justify-center",children:[u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:301:11",type:"button",className:"absolute inset-0 bg-black/55 backdrop-blur-[2px]",onClick:ee,"aria-label":"Close rename project window"}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:307:11",className:"relative w-[480px] rounded-[16px] p-5",style:{background:"rgba(12, 12, 18, 0.9)",backdropFilter:"blur(18px) saturate(125%)",border:"1px solid var(--accent-edge)",boxShadow:"0 20px 60px rgba(0,0,0,0.55), 0 0 30px var(--accent-glow-medium)"},children:[u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:316:13",className:"text-sm font-semibold text-white mb-1",children:"Rename Project"}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:317:13",className:"text-xs text-white/60 mb-3",children:"Update project display name."}),u.jsx("input",{"code-path":"src\\sections\\ProjectNexus.tsx:318:13",type:"text",value:Q,onChange:M=>I(M.target.value),className:"w-full glass-panel rounded-lg px-3 py-2.5 text-sm text-white bg-transparent outline-none",autoFocus:!0,onKeyDown:M=>{M.key==="Enter"&&F(),M.key==="Escape"&&ee()}}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:329:13",className:"mt-4 flex items-center justify-end gap-2",children:[u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:330:15",type:"button",onClick:ee,className:"px-4 py-2 rounded-lg border border-white/15 text-sm text-white/70 hover:bg-white/5 transition-colors",children:"Cancel"}),u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:337:15",type:"button",onClick:F,className:"px-4 py-2 rounded-lg text-sm font-medium text-white bg-[var(--astral-violet)] hover:brightness-110 transition-colors",children:"Save"})]})]})]}),W&&u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:350:9",className:"fixed inset-0 z-[90] flex items-center justify-center",children:[u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:351:11",type:"button",className:"absolute inset-0 bg-black/55 backdrop-blur-[2px]",onClick:()=>J(null),"aria-label":"Close delete project confirmation"}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:357:11",className:"relative w-[520px] rounded-[16px] p-5",style:{background:"rgba(12, 12, 18, 0.9)",backdropFilter:"blur(18px) saturate(125%)",border:"1px solid rgba(239, 68, 68, 0.45)",boxShadow:"0 20px 60px rgba(0,0,0,0.55), 0 0 24px rgba(239, 68, 68, 0.28)"},children:[u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:366:13",className:"text-sm font-semibold text-white mb-1",children:"Move Project To Trash"}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:367:13",className:"text-xs text-white/70 mb-4",children:"This project will stay in Trash for 30 days and then be permanently deleted."}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:370:13",className:"flex items-center justify-end gap-2",children:[u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:371:15",type:"button",onClick:()=>J(null),className:"px-4 py-2 rounded-lg border border-white/15 text-sm text-white/70 hover:bg-white/5 transition-colors",children:"Cancel"}),u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:378:15",type:"button",onClick:le,className:"px-4 py-2 rounded-lg text-sm font-medium text-white bg-red-500/85 hover:bg-red-500 transition-colors",children:"Move To Trash"})]})]})]})]})},k5=({project:s,isActive:o,onClick:r,isMenuOpen:i,menuRef:d,onToggleMenu:m,onRename:h,onDuplicate:p,onDelete:g})=>u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:417:5",onClick:r,className:`
relative flex-shrink-0 w-[420px] h-[244px] rounded-[18px] overflow-hidden
transition-all duration-500 ease-out cursor-pointer
${o?"scale-[1.03] opacity-100":"scale-[0.96] opacity-60 blur-[2px]"}
`,style:{boxShadow:o?"0 18px 60px rgba(0, 0, 0, 0.55), 0 0 46px var(--accent-glow-strong)":"0 8px 30px rgba(0, 0, 0, 0.3)"},children:[u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:430:7",className:"absolute inset-0 glass-panel-strong"}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:432:7",className:"absolute top-4 left-4 z-20",children:[u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:433:9",type:"button",onClick:x=>{x.stopPropagation(),m()},className:"w-8 h-8 rounded-full flex items-center justify-center text-white/75 hover:text-white transition-colors",style:{background:"rgba(0, 0, 0, 0.22)",border:"1px solid rgba(255,255,255,0.18)"},"aria-label":`Project actions for ${s.name}`,children:u.jsx(nx,{"code-path":"src\\sections\\ProjectNexus.tsx:446:11",className:"w-4 h-4"})}),i&&u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:450:11",ref:d,className:"mt-2 w-[210px] rounded-xl p-1.5",style:{background:"rgba(10, 10, 16, 0.95)",backdropFilter:"blur(18px) saturate(135%)",border:"1px solid var(--accent-edge)",boxShadow:"0 16px 40px rgba(0,0,0,0.45), 0 0 24px var(--accent-glow-soft)"},onClick:x=>x.stopPropagation(),children:[u.jsx(du,{"code-path":"src\\sections\\ProjectNexus.tsx:461:13",icon:u.jsx(Sy,{"code-path":"src\\sections\\ProjectNexus.tsx:461:38",className:"w-3.5 h-3.5"}),label:"Rename Project",onClick:h}),u.jsx(du,{"code-path":"src\\sections\\ProjectNexus.tsx:462:13",icon:u.jsx(ex,{"code-path":"src\\sections\\ProjectNexus.tsx:462:38",className:"w-3.5 h-3.5"}),label:"Duplicate Project",onClick:p}),u.jsx(du,{"code-path":"src\\sections\\ProjectNexus.tsx:463:13",icon:u.jsx(rx,{"code-path":"src\\sections\\ProjectNexus.tsx:464:21",className:"w-3.5 h-3.5"}),label:"Move To Trash (30 Days)",onClick:g,danger:!0})]})]}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:473:7",className:"absolute inset-0 opacity-40",style:{background:`
linear-gradient(135deg,
rgba(var(--primary-accent-rgb), 0.36) 0%,
rgba(var(--primary-accent-rgb), 0.24) 50%,
rgba(var(--primary-accent-rgb), 0.17) 100%
)
`}}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:486:7",className:"absolute inset-0 opacity-20",style:{backgroundImage:`
radial-gradient(circle at 20% 30%, rgba(var(--primary-accent-rgb), 0.3) 0%, transparent 40%),
radial-gradient(circle at 80% 70%, rgba(var(--primary-accent-rgb), 0.2) 0%, transparent 35%)
`}}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:496:7",className:"absolute inset-0 p-6 flex flex-col justify-end",children:[u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:497:9",className:"text-xs font-medium tracking-wider uppercase mb-2",style:{color:"var(--astral-violet)"},children:[s.type," <20> ",s.scenes," scenes"]}),u.jsx("h3",{"code-path":"src\\sections\\ProjectNexus.tsx:503:9",className:"text-xl font-semibold text-white",children:s.name}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:504:9",className:"text-xs mt-2",style:{color:"var(--astral-text-muted)"},children:["Last modified ",s.lastModified.toLocaleDateString()]}),(s.videoModel||s.imageModel)&&u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:508:11",className:"mt-2 text-[10px] text-white/55 tracking-wide uppercase",children:[s.videoModel?`Video: ${s.videoModel}`:"",s.videoModel&&s.imageModel?" <20> ":"",s.imageModel?`Image: ${s.imageModel}`:""]})]}),o&&u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:516:20",className:"absolute top-4 right-4 w-2 h-2 rounded-full status-active"}),o&&u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:519:9",className:"absolute inset-0 rounded-[18px] pointer-events-none",style:{border:"1px solid var(--accent-edge)",boxShadow:"inset 0 0 24px var(--accent-glow-soft)"}})]}),du=({icon:s,label:o,onClick:r,danger:i=!1})=>u.jsxs("button",{"code-path":"src\\sections\\ProjectNexus.tsx:537:3",type:"button",onClick:r,className:`w-full px-2.5 py-2 rounded-lg text-left text-xs flex items-center gap-2 transition-colors ${i?"text-red-300 hover:bg-red-500/15":"text-white/85 hover:bg-white/10"}`,children:[u.jsx("span",{"code-path":"src\\sections\\ProjectNexus.tsx:544:5",className:"opacity-85",children:s}),u.jsx("span",{"code-path":"src\\sections\\ProjectNexus.tsx:545:5",children:o})]}),H5=({onClose:s,onCreate:o})=>{const[r,i]=y.useState(""),[d,m]=y.useState("Campaign"),[h,p]=y.useState(8),[g,x]=y.useState(D5),[b,w]=y.useState("LTX-2"),[E,A]=y.useState("Flux"),R=S=>{S.preventDefault(),r.trim()&&o({name:r.trim(),type:d,scenes:Math.max(1,h),storagePath:g,videoModel:b,imageModel:E})};return u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:577:5",className:"fixed inset-0 z-[70] flex items-center justify-center",children:[u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:578:7",type:"button",className:"absolute inset-0 bg-black/55 backdrop-blur-[2px]",onClick:s,"aria-label":"Close create project window"}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:585:7",className:"relative w-[760px] rounded-[18px] overflow-hidden",style:{background:"rgba(255, 255, 255, 0.05)",backdropFilter:"blur(20px) saturate(120%)",border:"1px solid var(--accent-edge)",boxShadow:"0 18px 60px rgba(0, 0, 0, 0.55), 0 0 40px var(--accent-glow-medium)"},children:[u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:594:9",className:"h-11 flex items-center px-4 border-b border-white/10",children:[u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:595:11",className:"flex items-center gap-2",children:[u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:596:13",onClick:s,className:"traffic-light traffic-light-close","aria-label":"Close"}),u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:597:13",onClick:s,className:"traffic-light traffic-light-minimize","aria-label":"Minimize"}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:598:13",className:"traffic-light traffic-light-maximize"})]}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:600:11",className:"flex-1 text-center",children:u.jsx("span",{"code-path":"src\\sections\\ProjectNexus.tsx:601:13",className:"text-xs font-medium tracking-wide",style:{color:"var(--astral-text-muted)"},children:"New Project"})}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:605:11",className:"w-[52px]"})]}),u.jsxs("form",{"code-path":"src\\sections\\ProjectNexus.tsx:608:9",onSubmit:R,className:"p-6 space-y-5",children:[u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:609:11",className:"grid grid-cols-2 gap-4",children:[u.jsx(js,{"code-path":"src\\sections\\ProjectNexus.tsx:610:13",label:"Project Name",icon:u.jsx(iy,{"code-path":"src\\sections\\ProjectNexus.tsx:610:47",className:"w-4 h-4"}),children:u.jsx("input",{"code-path":"src\\sections\\ProjectNexus.tsx:611:15",type:"text",value:r,onChange:S=>i(S.target.value),placeholder:"Summer Watch Promo",className:"w-full bg-transparent text-sm text-white placeholder-white/35 outline-none",autoFocus:!0})}),u.jsx(js,{"code-path":"src\\sections\\ProjectNexus.tsx:621:13",label:"Project Type",children:u.jsxs(Hg,{"code-path":"src\\sections\\ProjectNexus.tsx:622:15",value:d,onValueChange:S=>m(S),children:[u.jsx(Lg,{"code-path":"src\\sections\\ProjectNexus.tsx:623:17",className:"w-full h-auto border-0 bg-transparent px-0 py-0 text-sm text-white shadow-none focus-visible:ring-0 focus-visible:border-0",children:u.jsx(Ug,{"code-path":"src\\sections\\ProjectNexus.tsx:624:19",placeholder:"Select project type"})}),u.jsxs(Bg,{"code-path":"src\\sections\\ProjectNexus.tsx:626:17",className:"rounded-xl border-white/15 text-white",style:{background:"rgba(14, 14, 20, 0.96)",backdropFilter:"blur(18px) saturate(130%)"},children:[u.jsx(za,{"code-path":"src\\sections\\ProjectNexus.tsx:633:19",value:"Campaign",className:"text-white focus:bg-white/10 focus:text-white",children:"Campaign"}),u.jsx(za,{"code-path":"src\\sections\\ProjectNexus.tsx:634:19",value:"Product",className:"text-white focus:bg-white/10 focus:text-white",children:"Product"}),u.jsx(za,{"code-path":"src\\sections\\ProjectNexus.tsx:635:19",value:"Automotive",className:"text-white focus:bg-white/10 focus:text-white",children:"Automotive"}),u.jsx(za,{"code-path":"src\\sections\\ProjectNexus.tsx:636:19",value:"Identity",className:"text-white focus:bg-white/10 focus:text-white",children:"Identity"})]})]})})]}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:642:11",className:"grid grid-cols-2 gap-4",children:[u.jsx(js,{"code-path":"src\\sections\\ProjectNexus.tsx:643:13",label:"NAS Storage Path",icon:u.jsx(Mu,{"code-path":"src\\sections\\ProjectNexus.tsx:643:51",className:"w-4 h-4"}),children:u.jsx("input",{"code-path":"src\\sections\\ProjectNexus.tsx:644:15",type:"text",value:g,onChange:S=>x(S.target.value),className:"w-full bg-transparent text-sm text-white outline-none"})}),u.jsx(js,{"code-path":"src\\sections\\ProjectNexus.tsx:652:13",label:"Scene Count",children:u.jsx("input",{"code-path":"src\\sections\\ProjectNexus.tsx:653:15",type:"number",min:1,value:h,onChange:S=>p(Number(S.target.value)||1),className:"w-full bg-transparent text-sm text-white outline-none"})})]}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:663:11",className:"grid grid-cols-2 gap-4",children:[u.jsx(js,{"code-path":"src\\sections\\ProjectNexus.tsx:664:13",label:"Video Model",icon:u.jsx(Ih,{"code-path":"src\\sections\\ProjectNexus.tsx:664:46",className:"w-4 h-4"}),children:u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:665:15",className:"flex gap-2",children:[u.jsx(ic,{"code-path":"src\\sections\\ProjectNexus.tsx:666:17",active:b==="LTX-2",onClick:()=>w("LTX-2"),label:"LTX-2"}),u.jsx(ic,{"code-path":"src\\sections\\ProjectNexus.tsx:671:17",active:b==="Wan",onClick:()=>w("Wan"),label:"Wan"})]})}),u.jsx(js,{"code-path":"src\\sections\\ProjectNexus.tsx:679:13",label:"Image Model",icon:u.jsx(ax,{"code-path":"src\\sections\\ProjectNexus.tsx:679:46",className:"w-4 h-4"}),children:u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:680:15",className:"flex gap-2",children:[u.jsx(ic,{"code-path":"src\\sections\\ProjectNexus.tsx:681:17",active:E==="Stable Diffusion",onClick:()=>A("Stable Diffusion"),label:"Stable Diffusion"}),u.jsx(ic,{"code-path":"src\\sections\\ProjectNexus.tsx:686:17",active:E==="Flux",onClick:()=>A("Flux"),label:"Flux"})]})})]}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:695:11",className:"glass-panel rounded-xl p-3 text-xs text-[var(--astral-text-muted)]",children:"Project files will be mounted to NAS path and prepared for OpenClaw + ComfyUI orchestration."}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:699:11",className:"flex items-center justify-end gap-3 pt-1",children:[u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:700:13",type:"button",onClick:s,className:"px-4 py-2 rounded-lg border border-white/15 text-sm text-white/75 hover:bg-white/5 transition-colors",children:"Cancel"}),u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:707:13",type:"submit",className:"px-5 py-2 rounded-lg text-sm font-medium text-white bg-[var(--astral-violet)] hover:brightness-110 transition-all",children:"Create Project"})]})]})]})]})},js=({label:s,icon:o,children:r})=>u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:722:5",children:[u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:723:7",className:"text-[11px] uppercase tracking-[0.12em] mb-2 flex items-center gap-2",style:{color:"var(--astral-text-muted)"},children:[o,u.jsx("span",{"code-path":"src\\sections\\ProjectNexus.tsx:725:9",children:s})]}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:727:7",className:"glass-panel rounded-lg px-3 py-2.5 min-h-[44px] flex items-center",children:r})]}),ic=({active:s,label:o,onClick:r})=>u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:734:5",type:"button",onClick:r,className:`px-3 py-2 rounded-md text-xs font-medium transition-all ${s?"bg-[var(--astral-violet)] text-white":"bg-white/5 text-white/70 hover:bg-white/10"}`,children:o}),U5=[{id:"production_hub",name:"Production Hub",icon:Ih},{id:"asset_vault",name:"Asset Vault",icon:oy},{id:"engine_room",name:"Engine Room",icon:tx}],L5=()=>{const[s,o]=y.useState(null),{windows:r,activeWindow:i,openWindow:d,restoreWindow:m}=sa(),h=p=>{const g=r[p];g.isOpen?g.isMinimized&&m(p):d(p)};return u.jsx("div",{"code-path":"src\\components\\dock\\Dock.tsx:32:5",className:"fixed bottom-6 left-1/2 -translate-x-1/2 z-[100]",children:u.jsx("div",{"code-path":"src\\components\\dock\\Dock.tsx:33:7",className:"glass-pill px-4 py-3 flex items-center gap-2",children:U5.map(p=>{const g=r[p.id],x=g.isOpen&&!g.isMinimized,b=i===p.id;return u.jsx(B5,{"code-path":"src\\components\\dock\\Dock.tsx:40:13",item:p,isOpen:x,isActive:b,isHovered:s===p.id,onHover:()=>o(p.id),onLeave:()=>o(null),onClick:()=>h(p.id)},p.id)})})})},B5=({item:s,isOpen:o,isActive:r,isHovered:i,onHover:d,onLeave:m,onClick:h})=>{const p=s.icon;return u.jsxs("div",{"code-path":"src\\components\\dock\\Dock.tsx:79:5",className:"relative",children:[i&&u.jsx("div",{"code-path":"src\\components\\dock\\Dock.tsx:82:9",className:"absolute -top-12 left-1/2 -translate-x-1/2 px-3 py-1.5 rounded-lg text-xs font-medium whitespace-nowrap animate-fade-in",style:{background:"rgba(255, 255, 255, 0.1)",backdropFilter:"blur(12px)",border:"1px solid rgba(255, 255, 255, 0.1)"},children:s.name}),u.jsx("button",{"code-path":"src\\components\\dock\\Dock.tsx:95:7",onMouseEnter:d,onMouseLeave:m,onClick:h,className:`
relative w-12 h-12 rounded-xl flex items-center justify-center
transition-all duration-300 ease-out
${r?"translate-y-[-6px]":"translate-y-0"}
${i?"scale-110":"scale-100"}
`,style:{background:r?"rgba(var(--primary-accent-rgb), 0.2)":"rgba(255, 255, 255, 0.05)",border:`1px solid ${r?"rgba(var(--primary-accent-rgb), 0.4)":"rgba(255, 255, 255, 0.1)"}`,boxShadow:r?"0 0 20px rgba(var(--primary-accent-rgb), 0.2)":"none"},children:u.jsx(p,{"code-path":"src\\components\\dock\\Dock.tsx:115:9",className:"w-5 h-5 transition-colors duration-300",style:{color:r?"var(--astral-violet)":"rgba(255, 255, 255, 0.8)"},strokeWidth:1.5})}),(o||r)&&u.jsx("div",{"code-path":"src\\components\\dock\\Dock.tsx:126:9",className:"absolute -bottom-1.5 left-1/2 -translate-x-1/2 w-1.5 h-1.5 rounded-full transition-all duration-300",style:{background:r?"var(--astral-violet)":"rgba(255, 255, 255, 0.4)",boxShadow:r?"0 0 8px var(--astral-violet)":"none"}})]})},Yu=({id:s,title:o,children:r,defaultPosition:i={x:100,y:60},defaultSize:d={width:900,height:600}})=>{const m=y.useRef(null),[h,p]=y.useState(!1),[g,x]=y.useState({x:0,y:0}),[b,w]=y.useState(!1),[E,A]=y.useState(null),[R,S]=y.useState({x:0,y:0,width:0,height:0,left:0,top:0}),[C,k]=y.useState(null),[z,L]=y.useState(null),{windows:V,activeWindow:Q,closeWindow:I,minimizeWindow:W,bringToFront:J,updateWindowPosition:ae,updateWindowSize:ue,setWindowMaximized:fe}=sa(),te=V[s],ge=Q===s,re=te.size.width||d.width,me=te.size.height||d.height;y.useEffect(()=>{te.position.x===0&&te.position.y===0&&ae(s,i)},[s,i,te.position,ae]);const D=y.useCallback(()=>{const N={x:8,y:8},q={width:window.innerWidth-16,height:window.innerHeight-16};ae(s,N),ue(s,q)},[s,ae,ue]),X=y.useCallback(()=>{if(J(s),!te.isMaximized){L({position:{x:te.position.x||i.x,y:te.position.y||i.y},size:{width:re,height:me}}),D(),fe(s,!0);return}z&&(ae(s,z.position),ue(s,z.size)),fe(s,!1)},[s,J,te.isMaximized,te.position.x,te.position.y,i.x,i.y,re,me,z,D,fe,ae,ue]),P=y.useCallback(N=>{if(!N.target.closest(".window-controls")&&!te.isMaximized&&(J(s),p(!0),m.current)){const q=m.current.getBoundingClientRect();x({x:N.clientX-q.left,y:N.clientY-q.top})}},[s,J,te.isMaximized]),se=y.useCallback((N,q)=>{q.preventDefault(),q.stopPropagation(),!te.isMaximized&&(J(s),w(!0),A(N),S({x:q.clientX,y:q.clientY,width:re,height:me,left:te.position.x||i.x,top:te.position.y||i.y}))},[s,J,re,me,te.position.x,te.position.y,i.x,i.y,te.isMaximized]);if(y.useEffect(()=>{const ee=K=>{if(h){const M=K.clientX-g.x,_=K.clientY-g.y,ne=window.innerWidth-re,he=window.innerHeight-me;ae(s,{x:Math.max(0,Math.min(M,ne)),y:Math.max(0,Math.min(_,he))}),K.clientY<=24?k("max"):K.clientX<=24?k("left"):K.clientX>=window.innerWidth-24?k("right"):k(null)}if(b&&E){const M=K.clientX-R.x,_=K.clientY-R.y;let ne=R.width,he=R.height,ye=R.left,ze=R.top;E.includes("e")&&(ne=Math.max(420,R.width+M)),E.includes("s")&&(he=Math.max(320,R.height+_)),E.includes("w")&&(ne=Math.max(420,R.width-M),ye=R.left+(R.width-ne)),E.includes("n")&&(he=Math.max(320,R.height-_),ze=R.top+(R.height-he)),ne=Math.min(ne,window.innerWidth-ye),he=Math.min(he,window.innerHeight-ze),ae(s,{x:Math.max(0,ye),y:Math.max(0,ze)}),ue(s,{width:ne,height:he})}},le=()=>{if(h&&C){if(C==="max")L({position:{x:te.position.x,y:te.position.y},size:{width:re,height:me}}),D(),fe(s,!0);else if(C==="left")fe(s,!1),ae(s,{x:8,y:8}),ue(s,{width:Math.floor((window.innerWidth-24)/2),height:window.innerHeight-16});else if(C==="right"){const K=Math.floor((window.innerWidth-24)/2);fe(s,!1),ae(s,{x:window.innerWidth-K-8,y:8}),ue(s,{width:K,height:window.innerHeight-16})}}p(!1),w(!1),A(null),k(null)};return(h||b)&&(document.addEventListener("mousemove",ee),document.addEventListener("mouseup",le)),()=>{document.removeEventListener("mousemove",ee),document.removeEventListener("mouseup",le)}},[h,b,E,R,g,s,ae,ue,re,me,C,D,fe,te.position.x,te.position.y]),!te.isOpen||te.isMinimized)return null;const pe=C==="max"?{left:8,top:8,width:window.innerWidth-16,height:window.innerHeight-16}:C==="left"?{left:8,top:8,width:Math.floor((window.innerWidth-24)/2),height:window.innerHeight-16}:C==="right"?{left:window.innerWidth-Math.floor((window.innerWidth-24)/2)-8,top:8,width:Math.floor((window.innerWidth-24)/2),height:window.innerHeight-16}:null;return u.jsxs(u.Fragment,{children:[pe&&u.jsx("div",{"code-path":"src\\components\\windows\\Window.tsx:265:9",className:"fixed z-[80] pointer-events-none rounded-[18px] border border-[var(--astral-violet)] bg-[var(--astral-violet)]/10",style:{...pe,borderColor:"var(--accent-edge)",boxShadow:"0 0 36px var(--accent-glow-medium)"}}),u.jsxs("div",{"code-path":"src\\components\\windows\\Window.tsx:275:7",ref:m,className:`absolute flex flex-col transition-shadow duration-300 ${h?"dragging":""} animate-scale-in`,style:{left:te.position.x||i.x,top:te.position.y||i.y,width:re,height:me,zIndex:te.zIndex},onMouseDown:()=>J(s),children:[u.jsxs("div",{"code-path":"src\\components\\windows\\Window.tsx:287:9",className:"flex-1 flex flex-col rounded-[18px] overflow-hidden transition-all duration-300",style:{background:"rgba(10, 10, 16, 0.84)",backdropFilter:"blur(18px) saturate(120%)",border:`1px solid ${ge?"var(--accent-edge)":"rgba(255, 255, 255, 0.1)"}`,boxShadow:ge?"0 18px 60px rgba(0, 0, 0, 0.55), 0 0 40px var(--accent-glow-medium)":"0 18px 60px rgba(0, 0, 0, 0.55)"},children:[u.jsxs("div",{"code-path":"src\\components\\windows\\Window.tsx:298:11",className:"h-11 flex items-center px-4 drag-handle",onMouseDown:P,onDoubleClick:X,children:[u.jsxs("div",{"code-path":"src\\components\\windows\\Window.tsx:299:13",className:"window-controls flex items-center gap-1",children:[u.jsx("button",{"code-path":"src\\components\\windows\\Window.tsx:300:15",onClick:()=>I(s),className:"w-6 h-6 rounded-full flex items-center justify-center hover:bg-white/10 transition-colors","aria-label":"Close",children:u.jsx("span",{"code-path":"src\\components\\windows\\Window.tsx:301:17",className:"traffic-light traffic-light-close"})}),u.jsx("button",{"code-path":"src\\components\\windows\\Window.tsx:303:15",onClick:()=>W(s),className:"w-6 h-6 rounded-full flex items-center justify-center hover:bg-white/10 transition-colors","aria-label":"Minimize",children:u.jsx("span",{"code-path":"src\\components\\windows\\Window.tsx:304:17",className:"traffic-light traffic-light-minimize"})}),u.jsx("button",{"code-path":"src\\components\\windows\\Window.tsx:306:15",onClick:X,className:"w-6 h-6 rounded-full flex items-center justify-center hover:bg-white/10 transition-colors","aria-label":te.isMaximized?"Restore":"Maximize",children:u.jsx("span",{"code-path":"src\\components\\windows\\Window.tsx:307:17",className:"traffic-light traffic-light-maximize"})})]}),u.jsx("div",{"code-path":"src\\components\\windows\\Window.tsx:311:13",className:"flex-1 text-center",children:u.jsx("span",{"code-path":"src\\components\\windows\\Window.tsx:312:15",className:"text-xs font-medium tracking-wide",style:{color:"var(--astral-text-muted)"},children:o})}),u.jsx("div",{"code-path":"src\\components\\windows\\Window.tsx:317:13",className:"w-[66px]"})]}),u.jsx("div",{"code-path":"src\\components\\windows\\Window.tsx:320:11",className:"flex-1 overflow-auto relative",children:r})]}),!te.isMaximized&&u.jsxs(u.Fragment,{children:[u.jsx(In,{"code-path":"src\\components\\windows\\Window.tsx:325:13",direction:"n",onMouseDown:se}),u.jsx(In,{"code-path":"src\\components\\windows\\Window.tsx:326:13",direction:"s",onMouseDown:se}),u.jsx(In,{"code-path":"src\\components\\windows\\Window.tsx:327:13",direction:"e",onMouseDown:se}),u.jsx(In,{"code-path":"src\\components\\windows\\Window.tsx:328:13",direction:"w",onMouseDown:se}),u.jsx(In,{"code-path":"src\\components\\windows\\Window.tsx:329:13",direction:"ne",onMouseDown:se}),u.jsx(In,{"code-path":"src\\components\\windows\\Window.tsx:330:13",direction:"nw",onMouseDown:se}),u.jsx(In,{"code-path":"src\\components\\windows\\Window.tsx:331:13",direction:"se",onMouseDown:se}),u.jsx(In,{"code-path":"src\\components\\windows\\Window.tsx:332:13",direction:"sw",onMouseDown:se})]})]})]})},In=({direction:s,onMouseDown:o})=>{const r="absolute z-20",i={n:{className:"top-0 left-3 right-3 h-2 -translate-y-1 cursor-n-resize"},s:{className:"bottom-0 left-3 right-3 h-2 translate-y-1 cursor-s-resize"},e:{className:"right-0 top-3 bottom-3 w-2 translate-x-1 cursor-e-resize"},w:{className:"left-0 top-3 bottom-3 w-2 -translate-x-1 cursor-w-resize"},ne:{className:"top-0 right-0 w-3 h-3 -translate-y-1 translate-x-1 cursor-ne-resize"},nw:{className:"top-0 left-0 w-3 h-3 -translate-y-1 -translate-x-1 cursor-nw-resize"},se:{className:"bottom-0 right-0 w-3 h-3 translate-y-1 translate-x-1 cursor-se-resize"},sw:{className:"bottom-0 left-0 w-3 h-3 translate-y-1 -translate-x-1 cursor-sw-resize"}};return u.jsx("div",{"code-path":"src\\components\\windows\\Window.tsx:356:10",className:`${r} ${i[s].className}`,onMouseDown:d=>o(s,d)})},P5=[{id:"1",name:"Alex Chen",status:"active",hasLiDAR:!0},{id:"2",name:"Maria Santos",status:"active",hasLiDAR:!0},{id:"3",name:"James Wilson",status:"training",hasLiDAR:!1}],V5=[{id:"1",prompt:"Sunset beach scene, golden hour",status:"generating",progress:67,eta:45,vramUsage:42,createdAt:new Date},{id:"2",prompt:"Urban nightscape, neon lights",status:"queued",progress:0,eta:120,vramUsage:0,createdAt:new Date}],q5=()=>{const[s,o]=y.useState(P5),[r,i]=y.useState([]),[d,m]=y.useState(V5),[h,p]=y.useState(""),[g,x]=y.useState(""),[b,w]=y.useState(!1),[E,A]=y.useState(!1),[R,S]=y.useState(!1),C=V=>{const Q=V.target.value;p(Q),Q.length>10&&!Q.includes(",")?x(", shot on Arri Alexa, 85mm lens, cinematic lighting..."):Q.length>20&&!Q.includes("8k")?x(", 8k, highly detailed, photorealistic..."):x("")},k=()=>{h.trim()&&(w(!0),setTimeout(()=>{w(!1);const V={id:Date.now().toString(),prompt:h,status:"queued",progress:0,eta:180,vramUsage:0,createdAt:new Date};m([V,...d]),p(""),x("")},1500))},z=y.useCallback(V=>{V.preventDefault(),A(!1);const Q={id:Date.now().toString(),name:`Actor ${s.length+1}`,status:"active",hasLiDAR:!0};o([...s,Q])},[s]),L=y.useCallback(V=>{V.preventDefault(),S(!1);const Q={id:Date.now().toString(),name:`Product ${r.length+1}`,category:"Watch",materials:[],extractionProgress:0};i([...r,Q]);let I=0;const W=setInterval(()=>{I+=10,i(J=>J.map(ae=>ae.id===Q.id?{...ae,extractionProgress:I}:ae)),I>=100&&clearInterval(W)},200)},[r]);return u.jsx(Yu,{"code-path":"src\\components\\apps\\ProductionHub.tsx:119:5",id:"production_hub",title:"Production Hub",defaultPosition:{x:80,y:50},defaultSize:{width:1140,height:760},children:u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:125:7",className:"h-full flex flex-col",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:127:9",className:"flex-1 flex min-h-0",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:129:11",className:"w-[240px] border-r border-white/10 p-3 flex flex-col",children:[u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:130:13",className:"section-header mb-3",children:"Cast"}),u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:133:13",className:`drop-zone p-3 mb-3 text-center ${E?"drag-over":""}`,onDragOver:V=>{V.preventDefault(),A(!0)},onDragLeave:()=>A(!1),onDrop:z,children:[u.jsx(nh,{"code-path":"src\\components\\apps\\ProductionHub.tsx:139:15",className:"w-6 h-6 mx-auto mb-2 opacity-50"}),u.jsx("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:140:15",className:"text-xs opacity-60",children:"Drop actor set"})]}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:144:13",className:"flex-1 overflow-hidden space-y-1.5",children:s.map(V=>u.jsx(Y5,{"code-path":"src\\components\\apps\\ProductionHub.tsx:146:17",actor:V},V.id))}),u.jsxs("button",{"code-path":"src\\components\\apps\\ProductionHub.tsx:151:13",className:"mt-3 glass-panel py-2 px-4 rounded-lg flex items-center justify-center gap-2 text-sm hover:bg-white/10 transition-colors",children:[u.jsx(ox,{"code-path":"src\\components\\apps\\ProductionHub.tsx:152:15",className:"w-4 h-4"}),"Add Actor"]})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:158:11",className:"flex-1 p-3 flex flex-col",children:[u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:160:13",className:"flex-1 rounded-[14px] border border-white/10 relative overflow-hidden flex items-center justify-center",style:{aspectRatio:"16/9"},children:b?u.jsx(Q5,{"code-path":"src\\components\\apps\\ProductionHub.tsx:165:17"}):u.jsx(Z5,{"code-path":"src\\components\\apps\\ProductionHub.tsx:167:17"})}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:172:13",className:"mt-3 relative",children:u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:173:15",className:"intent-bar h-[52px] flex items-center px-4",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:174:17",className:"relative flex-1",children:[u.jsx("input",{"code-path":"src\\components\\apps\\ProductionHub.tsx:175:19",type:"text",value:h,onChange:C,onKeyDown:V=>V.key==="Enter"&&k(),placeholder:"Describe the scene...",className:"w-full bg-transparent text-sm text-white placeholder-white/40 outline-none"}),g&&u.jsxs("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:184:21",className:"absolute left-0 top-0 text-sm text-white/20 pointer-events-none",children:[h,g]})]}),u.jsx("button",{"code-path":"src\\components\\apps\\ProductionHub.tsx:189:17",onClick:k,disabled:!h.trim()||b,className:"w-10 h-10 rounded-full bg-[var(--astral-violet)] flex items-center justify-center ml-3 transition-all hover:scale-105 disabled:opacity-50 disabled:hover:scale-100",children:u.jsx(Ey,{"code-path":"src\\components\\apps\\ProductionHub.tsx:194:19",className:"w-4 h-4 text-white"})})]})})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:201:11",className:"w-[240px] border-l border-white/10 p-3 flex flex-col",children:[u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:202:13",className:"section-header mb-3",children:"Essence"}),u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:205:13",className:`drop-zone p-4 mb-3 text-center flex flex-col items-center ${R?"drag-over":""}`,onDragOver:V=>{V.preventDefault(),S(!0)},onDragLeave:()=>S(!1),onDrop:L,children:[u.jsx(nh,{"code-path":"src\\components\\apps\\ProductionHub.tsx:211:15",className:"w-8 h-8 mb-3 opacity-50"}),u.jsx("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:212:15",className:"text-xs opacity-60",children:"Drop product images"})]}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:216:13",className:"flex-1 overflow-hidden space-y-2",children:r.map(V=>u.jsx(G5,{"code-path":"src\\components\\apps\\ProductionHub.tsx:218:17",product:V},V.id))})]})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:225:9",className:"h-[124px] border-t border-white/10 p-3 film-strip",children:[u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:226:11",className:"section-header mb-2 text-[10px]",children:"Task Loom"}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:227:11",className:"flex gap-3 overflow-x-auto pb-1",children:d.map(V=>u.jsx(X5,{"code-path":"src\\components\\apps\\ProductionHub.tsx:229:15",task:V},V.id))})]})]})})},Y5=({actor:s})=>{const[o,r]=y.useState(!1);return u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:244:5",className:"flex items-center gap-3 p-2 rounded-lg hover:bg-white/5 transition-colors cursor-pointer",onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:249:7",className:"w-10 h-10 rounded-lg bg-white/10 flex items-center justify-center overflow-hidden relative",children:o&&s.hasLiDAR?u.jsx(W5,{"code-path":"src\\components\\apps\\ProductionHub.tsx:251:11"}):u.jsx(ky,{"code-path":"src\\components\\apps\\ProductionHub.tsx:253:11",className:"w-5 h-5 opacity-50"})}),u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:256:7",className:"flex-1 min-w-0",children:[u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:257:9",className:"text-sm font-medium truncate",children:s.name}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:258:9",className:"text-xs opacity-50 capitalize",children:s.status})]}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:260:7",className:`w-2 h-2 rounded-full ${s.status==="active"?"status-active":"status-inactive"}`})]})},W5=()=>u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:271:5",className:"absolute inset-0 flex items-center justify-center",children:u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:272:7",className:"w-full h-full animate-spin-slow",style:{background:`
radial-gradient(circle at 30% 40%, rgba(123, 108, 255, 0.6) 1px, transparent 1px),
radial-gradient(circle at 60% 30%, rgba(123, 108, 255, 0.5) 1px, transparent 1px),
radial-gradient(circle at 45% 60%, rgba(123, 108, 255, 0.4) 1px, transparent 1px),
radial-gradient(circle at 70% 50%, rgba(123, 108, 255, 0.5) 1px, transparent 1px),
radial-gradient(circle at 25% 65%, rgba(123, 108, 255, 0.4) 1px, transparent 1px)
`,backgroundSize:"100% 100%"}})}),G5=({product:s})=>u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:291:5",className:"glass-panel p-3 rounded-lg",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:292:7",className:"flex items-center gap-2 mb-2",children:[u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:293:9",className:"w-8 h-8 rounded bg-white/10 flex items-center justify-center",children:u.jsx(ax,{"code-path":"src\\components\\apps\\ProductionHub.tsx:294:11",className:"w-4 h-4 opacity-50"})}),u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:296:9",className:"flex-1 min-w-0",children:[u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:297:11",className:"text-sm font-medium truncate",children:s.name}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:298:11",className:"text-xs opacity-50",children:s.category})]})]}),s.extractionProgress!==void 0&&s.extractionProgress<100&&u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:303:9",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:304:11",className:"flex items-center justify-between text-[10px] opacity-60 mb-1",children:[u.jsx("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:305:13",children:"Extracting materials..."}),u.jsxs("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:306:13",children:[s.extractionProgress,"%"]})]}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:308:11",className:"h-1 bg-white/10 rounded-full overflow-hidden",children:u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:309:13",className:"h-full bg-[var(--astral-violet)] transition-all duration-200",style:{width:`${s.extractionProgress}%`}})})]}),s.extractionProgress===100&&u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:318:9",className:"flex flex-wrap gap-1 mt-2",children:["Material 1","Texture","Mesh"].map((o,r)=>u.jsx("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:320:13",className:"text-[10px] px-2 py-0.5 rounded-full bg-white/10",children:o},r))})]}),X5=({task:s})=>u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:335:5",className:"flex-shrink-0 w-[172px] h-[86px] glass-panel rounded-lg p-2.5 flex flex-col justify-between",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:338:7",className:"flex items-start justify-between",children:[u.jsx("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:339:9",className:"text-[10px] opacity-60 line-clamp-1 flex-1",children:s.prompt}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:340:9",className:`w-1.5 h-1.5 rounded-full ml-1 flex-shrink-0 ${s.status==="generating"?"status-active animate-pulse":s.status==="queued"?"status-inactive":s.status==="completed"?"status-active":"status-alert"}`})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:349:7",className:"flex items-center justify-between text-[10px] opacity-50",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:350:9",className:"flex items-center gap-1",children:[u.jsx(Z1,{"code-path":"src\\components\\apps\\ProductionHub.tsx:351:11",className:"w-3 h-3"}),u.jsxs("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:352:11",children:[s.eta,"s"]})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:354:9",className:"flex items-center gap-1",children:[u.jsx(tx,{"code-path":"src\\components\\apps\\ProductionHub.tsx:355:11",className:"w-3 h-3"}),u.jsx("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:356:11",children:s.vramUsage>0?`${s.vramUsage}GB`:"-"})]})]}),s.status==="generating"&&u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:361:9",className:"h-1 bg-white/10 rounded-full overflow-hidden",children:u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:362:11",className:"h-full bg-[var(--astral-violet)] transition-all duration-300",style:{width:`${s.progress}%`}})})]}),Z5=()=>u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:374:5",className:"flex flex-col items-center justify-center",children:[u.jsxs("svg",{"code-path":"src\\components\\apps\\ProductionHub.tsx:376:7",width:"80",height:"80",viewBox:"0 0 80 80",className:"opacity-30",children:[u.jsx("polygon",{"code-path":"src\\components\\apps\\ProductionHub.tsx:382:9",points:"40,10 70,60 10,60",fill:"none",stroke:"rgba(123, 108, 255, 0.6)",strokeWidth:"1"}),u.jsx("polygon",{"code-path":"src\\components\\apps\\ProductionHub.tsx:388:9",points:"40,25 58,55 22,55",fill:"none",stroke:"rgba(123, 108, 255, 0.4)",strokeWidth:"0.5"})]}),u.jsx("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:395:7",className:"mt-4 text-sm opacity-40",children:"Ready"})]}),Q5=()=>u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:402:5",className:"absolute inset-0 flex items-center justify-center",children:[u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:403:7",className:"w-full h-full",style:{background:`
repeating-radial-gradient(
circle at 50% 50%,
transparent 0,
transparent 2px,
rgba(123, 108, 255, 0.1) 2px,
rgba(123, 108, 255, 0.1) 4px
)
`,animation:"noise-shift 0.5s linear infinite"}}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:418:7",className:"absolute inset-0 flex items-center justify-center",children:u.jsx("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:419:9",className:"text-sm opacity-60 animate-pulse",children:"Generating..."})})]}),Pg=document.createElement("style");Pg.textContent+=`
@keyframes noise-shift {
0% { transform: translate(0, 0); }
25% { transform: translate(2px, -2px); }
50% { transform: translate(-2px, 2px); }
75% { transform: translate(2px, 2px); }
100% { transform: translate(0, 0); }
}
`;document.head.appendChild(Pg);const K5=[{id:"1",name:"Verdant Spire",type:"project",date:new Date("2024-01-15"),size:"2.4 GB"},{id:"2",name:"Alex Chen Set",type:"actor",date:new Date("2024-01-14"),size:"890 MB"},{id:"3",name:"Watch Collection",type:"product",date:new Date("2024-01-13"),size:"456 MB"},{id:"4",name:"Scene_001_v3",type:"render",date:new Date("2024-01-12"),size:"1.2 GB"},{id:"5",name:"Scene_002_v1",type:"render",date:new Date("2024-01-11"),size:"980 MB"},{id:"6",name:"Maria Santos Set",type:"actor",date:new Date("2024-01-10"),size:"1.1 GB"}],J5=[{id:"projects",name:"Projects",icon:uy},{id:"actors",name:"Actors",icon:Tu},{id:"products",name:"Products",icon:L1},{id:"renders",name:"Renders",icon:sy}],$5=()=>{const[s,o]=y.useState("projects"),[r,i]=y.useState(!1),[d,m]=y.useState("grid"),h=K5.filter(p=>p.type===s.slice(0,-1)||s==="projects"&&p.type==="project");return u.jsx(Yu,{"code-path":"src\\components\\apps\\AssetVault.tsx:41:5",id:"asset_vault",title:"Asset Vault",defaultPosition:{x:150,y:100},defaultSize:{width:900,height:600},children:u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:47:7",className:"h-full flex",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:49:9",className:"w-[180px] border-r border-white/10 p-4",children:[u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:50:11",className:"section-header mb-4",children:"Folders"}),u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:51:11",className:"space-y-1",children:J5.map(p=>{const g=p.icon;return u.jsxs("button",{"code-path":"src\\components\\apps\\AssetVault.tsx:55:17",onClick:()=>o(p.id),className:`
w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm
transition-all duration-200
${s===p.id?"bg-white/10 text-white":"text-white/60 hover:bg-white/5 hover:text-white"}
`,children:[u.jsx(g,{"code-path":"src\\components\\apps\\AssetVault.tsx:66:19",className:"w-4 h-4"}),p.name]},p.id)})})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:75:9",className:"flex-1 flex flex-col",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:77:11",className:"h-14 border-b border-white/10 px-4 flex items-center justify-between",children:[u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:78:13",className:"text-sm font-medium capitalize",children:s}),u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:82:13",className:"flex items-center gap-3",children:[u.jsxs("button",{"code-path":"src\\components\\apps\\AssetVault.tsx:84:15",onClick:()=>i(!r),className:"flex items-center gap-2 px-3 py-1.5 rounded-lg text-xs hover:bg-white/5 transition-colors",children:[r?u.jsx(_y,{"code-path":"src\\components\\apps\\AssetVault.tsx:89:19",className:"w-4 h-4 text-[var(--astral-violet)]"}):u.jsx(Ty,{"code-path":"src\\components\\apps\\AssetVault.tsx:91:19",className:"w-4 h-4 opacity-50"}),u.jsx("span",{"code-path":"src\\components\\apps\\AssetVault.tsx:93:17",className:r?"text-[var(--astral-violet)]":"opacity-60",children:"LiDAR view"})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:99:15",className:"flex items-center gap-1 p-1 rounded-lg bg-white/5",children:[u.jsx("button",{"code-path":"src\\components\\apps\\AssetVault.tsx:100:17",onClick:()=>m("grid"),className:`p-1.5 rounded transition-colors ${d==="grid"?"bg-white/10":"hover:bg-white/5"}`,children:u.jsx(fy,{"code-path":"src\\components\\apps\\AssetVault.tsx:106:19",className:"w-3.5 h-3.5"})}),u.jsx("button",{"code-path":"src\\components\\apps\\AssetVault.tsx:108:17",onClick:()=>m("list"),className:`p-1.5 rounded transition-colors ${d==="list"?"bg-white/10":"hover:bg-white/5"}`,children:u.jsx(vy,{"code-path":"src\\components\\apps\\AssetVault.tsx:114:19",className:"w-3.5 h-3.5"})})]})]})]}),u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:121:11",className:"flex-1 overflow-auto p-4",children:d==="grid"?u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:123:15",className:"grid grid-cols-3 gap-4",children:h.map(p=>u.jsx(F5,{"code-path":"src\\components\\apps\\AssetVault.tsx:125:19",asset:p,isLiDARView:r},p.id))}):u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:133:15",className:"space-y-1",children:h.map(p=>u.jsx(I5,{"code-path":"src\\components\\apps\\AssetVault.tsx:135:19",asset:p,isLiDARView:r},p.id))})})]})]})})},F5=({asset:s,isLiDARView:o})=>{const[r,i]=y.useState(!1);return u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:159:5",className:"group relative glass-panel rounded-xl overflow-hidden cursor-pointer transition-all duration-300 hover:scale-[1.02]",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:[u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:165:7",className:"aspect-[4/3] relative overflow-hidden",children:[o?u.jsx(qg,{"code-path":"src\\components\\apps\\AssetVault.tsx:167:11"}):u.jsx(Vg,{"code-path":"src\\components\\apps\\AssetVault.tsx:169:11",type:s.type}),r&&u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:174:11",className:"absolute inset-0 bg-black/60 flex items-center justify-center animate-fade-in",children:u.jsx("button",{"code-path":"src\\components\\apps\\AssetVault.tsx:175:13",className:"px-4 py-2 rounded-lg bg-white/10 text-sm hover:bg-white/20 transition-colors",children:"Preview"})})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:183:7",className:"p-3",children:[u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:184:9",className:"text-sm font-medium truncate",children:s.name}),u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:185:9",className:"flex items-center justify-between mt-1",children:[u.jsx("span",{"code-path":"src\\components\\apps\\AssetVault.tsx:186:11",className:"text-[10px] opacity-50",children:s.date.toLocaleDateString()}),u.jsx("span",{"code-path":"src\\components\\apps\\AssetVault.tsx:189:11",className:"text-[10px] opacity-50",children:s.size})]})]})]})},I5=({asset:s,isLiDARView:o})=>u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:203:5",className:"flex items-center gap-4 p-3 rounded-lg hover:bg-white/5 transition-colors cursor-pointer",children:[u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:205:7",className:"w-12 h-12 rounded-lg overflow-hidden flex-shrink-0",children:o?u.jsx(qg,{"code-path":"src\\components\\apps\\AssetVault.tsx:207:11"}):u.jsx(Vg,{"code-path":"src\\components\\apps\\AssetVault.tsx:209:11",type:s.type})}),u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:214:7",className:"flex-1 min-w-0",children:[u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:215:9",className:"text-sm font-medium truncate",children:s.name}),u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:216:9",className:"text-[10px] opacity-50 capitalize",children:s.type})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:220:7",className:"text-right",children:[u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:221:9",className:"text-[10px] opacity-50",children:s.size}),u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:222:9",className:"text-[10px] opacity-50",children:s.date.toLocaleDateString()})]})]}),Vg=({type:s})=>{const o={project:"linear-gradient(135deg, rgba(123, 108, 255, 0.3), rgba(91, 50, 150, 0.2))",actor:"linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(21, 128, 61, 0.15))",product:"linear-gradient(135deg, rgba(255, 45, 85, 0.2), rgba(190, 24, 93, 0.15))",render:"linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(217, 119, 6, 0.15))"};return u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:239:5",className:"w-full h-full",style:{background:o[s]}})},qg=()=>u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:248:5",className:"w-full h-full relative",style:{background:`
linear-gradient(180deg,
rgba(0, 0, 0, 0.8) 0%,
rgba(50, 50, 50, 0.9) 100%
)
`},children:[u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:260:7",className:"absolute inset-0 opacity-60",style:{background:`
radial-gradient(ellipse at 40% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 20%),
radial-gradient(ellipse at 60% 50%, rgba(200, 200, 200, 0.6) 0%, transparent 25%),
radial-gradient(ellipse at 35% 60%, rgba(150, 150, 150, 0.5) 0%, transparent 20%),
radial-gradient(ellipse at 70% 40%, rgba(180, 180, 180, 0.4) 0%, transparent 15%)
`}}),u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:273:7",className:"absolute inset-0 opacity-20",style:{backgroundImage:`
linear-gradient(to right, rgba(123, 108, 255, 0.3) 1px, transparent 1px),
linear-gradient(to bottom, rgba(123, 108, 255, 0.3) 1px, transparent 1px)
`,backgroundSize:"20px 20px"}}),u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:285:7",className:"absolute bottom-1 right-1 text-[8px] px-1.5 py-0.5 rounded bg-black/50 text-white/60",children:"DEPTH"})]}),e3=[{id:"1",timestamp:new Date,level:"info",message:"LTX-2 model loaded on GPU A"},{id:"2",timestamp:new Date,level:"info",message:"ComfyUI queue: 2 pending tasks"},{id:"3",timestamp:new Date,level:"warn",message:"VRAM usage approaching threshold"}],t3=()=>{const{gpuStats:s}=sa(),[o]=y.useState(e3),[r,i]=y.useState(s);return y.useEffect(()=>{const d=setTimeout(()=>{i(s)},100);return()=>clearTimeout(d)},[s]),y.useEffect(()=>{const d=setInterval(()=>{i(m=>m.map(h=>({...h,vramUsed:Math.min(h.vramTotal,h.vramUsed+(Math.random()-.5)*2),temperature:Math.min(85,Math.max(45,h.temperature+(Math.random()-.5)*3)),utilization:Math.min(100,Math.max(0,h.utilization+(Math.random()-.5)*10))})))},2e3);return()=>clearInterval(d)},[]),u.jsx(Yu,{"code-path":"src\\components\\apps\\EngineRoom.tsx:40:5",id:"engine_room",title:"Engine Room",defaultPosition:{x:200,y:140},defaultSize:{width:620,height:500},children:u.jsxs("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:46:7",className:"h-full flex flex-col p-4",children:[u.jsx("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:48:9",className:"flex justify-center gap-6 mb-4",children:r.map(d=>u.jsx(n3,{"code-path":"src\\components\\apps\\EngineRoom.tsx:50:13",stats:d},d.id))}),u.jsxs("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:55:9",className:"flex-1 min-h-0",children:[u.jsx("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:56:11",className:"section-header mb-2",children:"System Log"}),u.jsx("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:57:11",className:"h-full rounded-lg p-3 overflow-hidden font-mono text-xs",style:{background:"rgba(0, 0, 0, 0.3)",border:"1px solid rgba(255, 255, 255, 0.05)"},children:o.map((d,m)=>u.jsx(a3,{"code-path":"src\\components\\apps\\EngineRoom.tsx:65:15",log:d,isNew:m===o.length-1},d.id))})]})]})})},n3=({stats:s})=>{const o=s.vramUsed/s.vramTotal*100,r=o>90,i=58,d=2*Math.PI*i,m=d-o/100*d*.75;return u.jsxs("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:88:5",className:"flex flex-col items-center",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:90:7",className:"relative w-[136px] h-[136px]",children:[u.jsxs("svg",{"code-path":"src\\components\\apps\\EngineRoom.tsx:92:9",width:"136",height:"136",viewBox:"0 0 136 136",className:"transform -rotate-[135deg]",children:[u.jsx("circle",{"code-path":"src\\components\\apps\\EngineRoom.tsx:99:11",cx:"68",cy:"68",r:i,className:"gauge-bg",strokeDasharray:`${d*.75} ${d}`}),u.jsx("circle",{"code-path":"src\\components\\apps\\EngineRoom.tsx:108:11",cx:"68",cy:"68",r:i,className:`gauge-fill ${r?"warning":""}`,strokeDasharray:`${d*.75} ${d}`,strokeDashoffset:m,style:{transition:"stroke-dashoffset 1s ease-out"}})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:122:9",className:"absolute inset-0 flex flex-col items-center justify-center",children:[u.jsxs("span",{"code-path":"src\\components\\apps\\EngineRoom.tsx:123:11",className:"text-2xl font-semibold",style:{color:r?"var(--astral-kill-red)":"white"},children:[Math.round(o),"%"]}),u.jsx("span",{"code-path":"src\\components\\apps\\EngineRoom.tsx:129:11",className:"text-[10px] opacity-50 mt-1",children:"VRAM"})]}),r&&u.jsx("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:134:11",className:"absolute top-0 right-0 w-4 h-4 rounded-full status-alert"})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:141:7",className:"mt-3 text-center",children:[u.jsx("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:142:9",className:"text-sm font-medium",children:s.name}),u.jsxs("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:143:9",className:"text-xs mt-1",style:{color:"var(--astral-text-muted)"},children:[Math.round(s.vramUsed)," / ",s.vramTotal," GB"]})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:152:7",className:"flex gap-4 mt-2 text-[10px] opacity-50",children:[u.jsxs("span",{"code-path":"src\\components\\apps\\EngineRoom.tsx:153:9",children:[s.temperature.toFixed(0),"°C"]}),u.jsxs("span",{"code-path":"src\\components\\apps\\EngineRoom.tsx:154:9",children:[s.utilization.toFixed(0),"% util"]})]})]})},a3=({log:s,isNew:o})=>{const r=s.timestamp.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),i={info:"text-blue-400",warn:"text-yellow-400",error:"text-red-400"};return u.jsxs("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:180:5",className:`flex gap-2 py-0.5 ${o?"animate-slide-up":""}`,children:[u.jsxs("span",{"code-path":"src\\components\\apps\\EngineRoom.tsx:183:7",className:"opacity-40 flex-shrink-0",children:["[",r,"]"]}),u.jsx("span",{"code-path":"src\\components\\apps\\EngineRoom.tsx:184:7",className:`flex-shrink-0 ${i[s.level]}`,children:s.level.toUpperCase()}),u.jsx("span",{"code-path":"src\\components\\apps\\EngineRoom.tsx:187:7",className:"opacity-80",children:s.message})]})},s3=[{id:"user_profile",label:"User Profile",sub:"Identity, role, and clearance data",icon:u.jsx(Fh,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:20:97",className:"w-4 h-4"})},{id:"socials_api",label:"Socials and API",sub:"Connect social channels and model APIs",icon:u.jsx(lx,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:21:103",className:"w-4 h-4"})},{id:"closed_model_access",label:"Closed-Model Access",sub:"Video and image provider credentials",icon:u.jsx(sx,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:22:113",className:"w-4 h-4"})},{id:"team_access",label:"Team Access",sub:"Permissions, invites, and handoff control",icon:u.jsx(Tu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:23:102",className:"w-4 h-4"})},{id:"security_consent",label:"Security and Consent",sub:"Contract checks and kill-switch settings",icon:u.jsx(cx,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:24:115",className:"w-4 h-4"})},{id:"storage_sync",label:"Storage and Sync",sub:"NAS mount targets and project mirrors",icon:u.jsx(Mu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:25:104",className:"w-4 h-4"})},{id:"preferences",label:"Preferences",sub:"Workspace behavior and defaults",icon:u.jsx(ix,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:26:92",className:"w-4 h-4"})}],l3=[{name:"Cine Bahini Red",color:"#FF2D55"},{name:"Astral Purple",color:"#7B6CFF"},{name:"OLED White",color:"#E4E4E7"},{name:"Cyber Yellow",color:"#FACC15"}],o3=()=>{const{isSystemPreferencesOpen:s,activeSection:o,closeSystemPreferences:r,setActiveSection:i,profile:d,setDisplayName:m,socials:h,setSocialConnected:p,apiVault:g,setApiKey:x,closedModels:b,setClosedModelValue:w,teamMembers:E,setTeamRole:A,revokeTeamMember:R,inviteTeamMember:S,security:C,setBiometricEnforcement:k,storage:z,setStorageMountPath:L,setArchiveDays:V,accentColor:Q,setAccentColor:I,glowIntensity:W,setGlowIntensity:J,interfaceDensity:ae,setInterfaceDensity:ue,reducedMotion:fe,setReducedMotion:te,notifications:ge,setNotification:re}=zu(),[me,D]=y.useState(""),[X,P]=y.useState(0),[se,pe]=y.useState(!1),[N,q]=y.useState({}),[F,ee]=y.useState(!1),[le,K]=y.useState(!1);y.useEffect(()=>{if(!s)return;const _=ne=>{ne.key==="Escape"&&r()};return window.addEventListener("keydown",_),()=>window.removeEventListener("keydown",_)},[s,r]),y.useEffect(()=>{if(!se)return;const _=Date.now(),ne=window.setInterval(()=>{const he=Date.now()-_,ye=Math.min(100,he/3e3*100);P(ye),ye>=100&&pe(!1)},40);return()=>window.clearInterval(ne)},[se]),y.useEffect(()=>{se||P(0)},[se]);const M=y.useMemo(()=>z.videoUsed+z.imagesUsed+z.cacheUsed+z.freeSpace,[z]);return s?F?u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:114:7",className:"fixed bottom-6 right-6 z-[130]",children:u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:115:9",type:"button",onClick:()=>ee(!1),className:"glass-pill px-4 py-2 text-sm text-white",children:"Restore System Preferences"})}):u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:127:5",className:"fixed inset-0 z-[130] flex items-center justify-center",children:[u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:128:7",type:"button",className:"absolute inset-0 bg-black/60",style:{backdropFilter:"blur(12px)"},onClick:r,"aria-label":"Close system preferences"}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:136:7",className:"relative overflow-hidden flex flex-col",style:{width:le?"calc(100vw - 16px)":"1140px",height:le?"calc(100vh - 16px)":"760px",borderRadius:le?"16px":"20px",background:"rgba(10, 10, 16, 0.9)",backdropFilter:"blur(40px) saturate(135%)",border:"1px solid var(--accent-edge)",boxShadow:"0 30px 100px rgba(0, 0, 0, 0.6), 0 0 42px var(--accent-glow-medium)"},children:[u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:148:9",className:"h-11 px-4 border-b border-white/10 flex items-center",children:[u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:149:11",className:"window-controls flex items-center gap-1",children:[u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:150:13",onClick:r,className:"w-6 h-6 rounded-full flex items-center justify-center hover:bg-white/10 transition-colors","aria-label":"Close",children:u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:151:15",className:"traffic-light traffic-light-close"})}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:153:13",onClick:()=>ee(!0),className:"w-6 h-6 rounded-full flex items-center justify-center hover:bg-white/10 transition-colors","aria-label":"Minimize",children:u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:154:15",className:"traffic-light traffic-light-minimize"})}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:156:13",onClick:()=>K(_=>!_),className:"w-6 h-6 rounded-full flex items-center justify-center hover:bg-white/10 transition-colors","aria-label":le?"Restore":"Fullscreen",children:u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:157:15",className:"traffic-light traffic-light-maximize"})})]}),u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:160:11",className:"flex-1 text-center text-xs tracking-wide text-white/60",children:"System Preferences"}),u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:161:11",className:"w-[66px]"})]}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:164:9",className:"flex-1 flex min-h-0",children:[u.jsxs("aside",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:165:9",className:"w-[38%] border-r border-white/10 p-4 overflow-y-auto",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:166:11",className:"text-xs tracking-[0.16em] uppercase px-2 pb-3 text-white/55",children:"System Preferences"}),u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:167:11",className:"space-y-1",children:s3.map(_=>u.jsxs("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:169:15",type:"button",onClick:()=>i(_.id),className:`w-full text-left rounded-xl px-3 py-2.5 flex gap-3 transition-colors ${o===_.id?"bg-white/10":"hover:bg-white/5"}`,children:[u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:177:17",className:"w-8 h-8 rounded-full bg-white/5 border border-white/10 flex items-center justify-center text-white/80",children:_.icon}),u.jsxs("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:180:17",className:"min-w-0",children:[u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:181:19",className:"block text-sm text-white",children:_.label}),u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:182:19",className:"block text-xs text-white/50",children:_.sub})]})]},_.id))})]}),u.jsxs("section",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:189:9",className:"w-[62%] p-5 overflow-y-auto",children:[o==="user_profile"&&u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:191:13",className:"space-y-4",children:[u.jsx(Ta,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:192:15",title:"User Profile",subtitle:"Identity management and visual persona"}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:193:15",className:"glass-panel rounded-xl p-4 flex items-center gap-4",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:194:17",className:"w-20 h-20 rounded-full border border-white/15 bg-white/5 flex items-center justify-center text-white/65",children:d.avatarUrl?u.jsx("img",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:195:40",src:d.avatarUrl,alt:"avatar",className:"w-full h-full rounded-full object-cover"}):"SC"}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:197:17",className:"flex-1",children:[u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:198:19",value:d.displayName,onChange:_=>m(_.target.value),className:"w-full bg-transparent text-xl font-semibold text-white outline-none"}),u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:199:19",className:"text-xs text-white/60 mt-1",children:d.roleLabel})]})]}),u.jsx(ea,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:202:15",label:"Email",children:u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:203:17",className:"glass-panel rounded-lg px-3 py-2.5 flex items-center justify-between w-full",children:[u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:204:19",className:"text-sm text-white/90",children:d.email}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:205:19",type:"button",className:"text-white/65 hover:text-white",children:u.jsx(ex,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:205:84",className:"w-4 h-4"})})]})}),u.jsx(ea,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:208:15",label:"Clearance Level",children:u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:209:17",className:"w-full",children:[u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:210:19",className:"text-xs text-white/65 mb-2",children:["Level ",d.clearanceLevel,": Full Model Access"]}),u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:211:19",className:"h-2 bg-white/10 rounded-full overflow-hidden",children:u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:212:21",className:"h-full rounded-full",style:{width:`${d.clearanceLevel/4*100}%`,background:"var(--primary-accent)"}})})]})})]}),o==="socials_api"&&u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:220:13",className:"space-y-4",children:[u.jsx(Ta,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:221:15",title:"Socials and API",subtitle:"Connect external platforms and manage developer keys"}),u.jsx(mu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:222:15",name:"YouTube",connected:h.youtubeConnected,onToggle:_=>p("youtubeConnected",_)}),u.jsx(mu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:223:15",name:"Instagram",connected:h.instagramConnected,onToggle:_=>p("instagramConnected",_)}),u.jsx(mu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:224:15",name:"Vimeo",connected:h.vimeoConnected,onToggle:_=>p("vimeoConnected",_)}),u.jsx(pu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:225:15",label:"OpenRouter API Key",value:g.openRouterKey,show:!!N.openRouterKey,onToggleShow:()=>q(_=>({..._,openRouterKey:!_.openRouterKey})),onChange:_=>x("openRouterKey",_)}),u.jsx(pu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:232:15",label:"Runway API Key",value:g.runwayKey,show:!!N.runwayKey,onToggleShow:()=>q(_=>({..._,runwayKey:!_.runwayKey})),onChange:_=>x("runwayKey",_)}),u.jsx(pu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:239:15",label:"Pika API Key",value:g.pikaKey,show:!!N.pikaKey,onToggleShow:()=>q(_=>({..._,pikaKey:!_.pikaKey})),onChange:_=>x("pikaKey",_)})]}),o==="closed_model_access"&&u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:250:13",className:"space-y-4",children:[u.jsx(Ta,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:251:15",title:"Closed-Model Access",subtitle:"Configure model paths, license keys, and VRAM limits"}),u.jsx(hu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:252:15",name:"LTX-2",mounted:b.ltx2Mounted,path:b.ltx2Path,license:b.ltx2License,onMountedChange:_=>w("ltx2Mounted",_),onPathChange:_=>w("ltx2Path",_),onLicenseChange:_=>w("ltx2License",_)}),u.jsx(hu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:261:15",name:"Flux",mounted:b.fluxMounted,path:b.fluxPath,license:b.fluxLicense,onMountedChange:_=>w("fluxMounted",_),onPathChange:_=>w("fluxPath",_),onLicenseChange:_=>w("fluxLicense",_)}),u.jsx(hu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:270:15",name:"Wan",mounted:b.wanMounted,path:b.wanPath,license:b.wanLicense,onMountedChange:_=>w("wanMounted",_),onPathChange:_=>w("wanPath",_),onLicenseChange:_=>w("wanLicense",_)}),u.jsx(ea,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:279:15",label:"VRAM Allocation Limit",children:u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:280:17",className:"w-full",children:[u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:281:19",type:"range",min:60,max:100,value:b.vramLimit,onChange:_=>w("vramLimit",Number(_.target.value)),className:"w-full"}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:289:19",className:"text-xs text-white/60",children:[b.vramLimit,"% of GPU memory"]})]})})]}),o==="team_access"&&u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:296:13",className:"space-y-4",children:[u.jsx(Ta,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:297:15",title:"Team Access",subtitle:"Role-based access and collaboration controls"}),u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:298:15",className:"glass-panel rounded-xl overflow-hidden",children:u.jsxs("table",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:299:17",className:"w-full text-sm",children:[u.jsx("thead",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:300:19",className:"text-white/55 text-xs uppercase tracking-[0.12em]",children:u.jsxs("tr",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:301:21",children:[u.jsx("th",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:302:23",className:"text-left px-3 py-2",children:"Member"}),u.jsx("th",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:303:23",className:"text-left px-3 py-2",children:"Email"}),u.jsx("th",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:304:23",className:"text-left px-3 py-2",children:"Role"}),u.jsx("th",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:305:23",className:"text-right px-3 py-2",children:"Action"})]})}),u.jsx("tbody",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:308:19",children:E.map(_=>u.jsxs("tr",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:310:23",className:"border-t border-white/10",children:[u.jsx("td",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:311:25",className:"px-3 py-2 text-white",children:_.name}),u.jsx("td",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:312:25",className:"px-3 py-2 text-white/70",children:_.email}),u.jsx("td",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:313:25",className:"px-3 py-2",children:u.jsxs(Hg,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:314:27",value:_.role,onValueChange:ne=>A(_.id,ne),children:[u.jsx(Lg,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:315:29",className:"h-8 bg-white/5 border-white/15 text-white",children:u.jsx(Ug,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:316:31"})}),u.jsxs(Bg,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:318:29",className:"rounded-lg border-white/15 text-white",style:{background:"rgba(14, 14, 20, 0.96)"},children:[u.jsx(za,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:319:31",value:"Admin",children:"Admin"}),u.jsx(za,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:320:31",value:"Editor",children:"Editor"}),u.jsx(za,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:321:31",value:"Viewer",children:"Viewer"})]})]})}),u.jsx("td",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:325:25",className:"px-3 py-2 text-right",children:u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:326:27",type:"button",onClick:()=>R(_.id),className:"text-red-300 hover:text-red-200",children:u.jsx(rx,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:327:29",className:"w-4 h-4 inline-block"})})})]},_.id))})]})}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:335:15",className:"glass-panel rounded-xl p-3 flex gap-2",children:[u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:336:17",value:me,onChange:_=>D(_.target.value),placeholder:"Invite user by email",className:"flex-1 bg-transparent text-white text-sm outline-none"}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:337:17",type:"button",onClick:()=>{S(me),D("")},className:"px-3 py-1.5 rounded-md text-sm text-white",style:{background:"var(--primary-accent)"},children:"Send Invite"})]})]}),o==="security_consent"&&u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:343:13",className:"space-y-4",children:[u.jsx(Ta,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:344:15",title:"Security and Consent",subtitle:"Critical controls for compliance and revocation"}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:345:15",className:"glass-panel rounded-xl p-4 border border-red-400/30",children:[u.jsx(Wh,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:346:17",label:"Biometric Enforcement",value:C.biometricEnforcement,onChange:k}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:347:17",className:"mt-4",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:348:19",className:"text-xs uppercase tracking-[0.14em] text-red-300 mb-2",children:"Kill Switch"}),u.jsxs("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:349:19",type:"button",onMouseDown:()=>pe(!0),onMouseUp:()=>pe(!1),onMouseLeave:()=>pe(!1),className:"w-full rounded-lg px-4 py-3 text-left border border-red-400/40 bg-red-500/10",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:356:21",className:"text-sm text-red-200",children:"Hold for 3 seconds to unmount LoRAs and revoke tokens"}),u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:357:21",className:"h-1 bg-white/10 rounded-full mt-3 overflow-hidden",children:u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:358:23",className:"h-full bg-red-400 transition-all",style:{width:`${X}%`}})})]})]}),u.jsxs("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:362:17",type:"button",className:"mt-4 px-3 py-2 rounded-lg text-sm text-white bg-white/10 hover:bg-white/15",children:[u.jsx($1,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:363:19",className:"w-4 h-4 inline-block mr-2"}),"Download Audit CSV"]})]})]}),o==="storage_sync"&&u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:371:13",className:"space-y-4",children:[u.jsx(Ta,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:372:15",title:"Storage and Sync",subtitle:"NAS connection, usage visualization, and archiving policies"}),u.jsx(ea,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:373:15",label:"NAS Mount Path",children:u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:374:17",value:z.nasMountPath,onChange:_=>L(_.target.value),className:"w-full glass-panel rounded-lg px-3 py-2.5 text-sm text-white bg-transparent outline-none"})}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:376:15",className:"glass-panel rounded-xl p-4",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:377:17",className:"text-xs uppercase tracking-[0.12em] text-white/55 mb-3",children:"Storage Breakdown"}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:378:17",className:"space-y-2",children:[u.jsx(rc,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:379:19",label:"Video",value:z.videoUsed,total:M,color:"#8B5CF6"}),u.jsx(rc,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:380:19",label:"Images",value:z.imagesUsed,total:M,color:"#22D3EE"}),u.jsx(rc,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:381:19",label:"Cache",value:z.cacheUsed,total:M,color:"#F59E0B"}),u.jsx(rc,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:382:19",label:"Free",value:z.freeSpace,total:M,color:"#22C55E"})]})]}),u.jsx(ea,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:385:15",label:"Auto Archive (days)",children:u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:386:17",type:"number",min:1,value:z.archiveDays,onChange:_=>V(Number(_.target.value)||1),className:"w-28 glass-panel rounded-lg px-3 py-2.5 text-sm text-white bg-transparent outline-none"})}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:388:15",type:"button",className:"px-3 py-2 rounded-lg text-sm text-white bg-white/10 hover:bg-white/15",children:"Purge Temp Files"})]}),o==="preferences"&&u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:393:13",className:"space-y-4",children:[u.jsx(Ta,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:394:15",title:"Preferences",subtitle:"Global UI behavior and accent engine controls"}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:395:15",className:"glass-panel rounded-xl p-4 space-y-4",children:[u.jsx(ea,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:396:17",label:"Global Accent Color",children:u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:397:19",className:"w-full space-y-3",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:398:21",className:"grid grid-cols-4 gap-2",children:l3.map(_=>u.jsxs("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:400:25",type:"button",onClick:()=>I(_.color),className:`rounded-lg p-2 text-xs text-white/85 border ${Q===_.color?"border-white/40":"border-white/15"} bg-white/5`,children:[u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:401:27",className:"block w-full h-5 rounded mb-1",style:{background:_.color}}),_.name]},_.name))}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:406:21",className:"flex items-center gap-2",children:[u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:407:23",type:"color",value:Q,onChange:_=>I(_.target.value),className:"w-10 h-10 p-0 border border-white/20 rounded"}),u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:408:23",value:Q,onChange:_=>I(_.target.value),className:"glass-panel rounded-lg px-3 py-2 text-sm text-white bg-transparent outline-none w-[140px]"})]})]})}),u.jsx(ea,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:412:17",label:"Interface Density",children:u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:413:19",className:"inline-flex rounded-lg overflow-hidden border border-white/15",children:[u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:414:21",type:"button",onClick:()=>ue("comfortable"),className:`px-3 py-2 text-sm ${ae==="comfortable"?"text-white":"text-white/65"} ${ae==="comfortable"?"bg-white/15":"bg-white/5"}`,children:"Comfortable"}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:415:21",type:"button",onClick:()=>ue("compact"),className:`px-3 py-2 text-sm ${ae==="compact"?"text-white":"text-white/65"} ${ae==="compact"?"bg-white/15":"bg-white/5"}`,children:"Compact"})]})}),u.jsx(ea,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:418:17",label:"Glow Strength",children:u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:419:19",className:"w-full",children:[u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:420:21",type:"range",min:20,max:140,value:Math.round(W*100),onChange:_=>J(Number(_.target.value)/100),className:"w-full"}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:428:21",className:"text-xs text-white/60 mt-1",children:[Math.round(W*100),"%"]})]})}),u.jsx(Wh,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:431:17",label:"Reduced Motion",value:fe,onChange:te}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:432:17",className:"pt-2 border-t border-white/10",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:433:19",className:"text-xs uppercase tracking-[0.12em] text-white/55 mb-2",children:"Notifications"}),u.jsx(fu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:434:19",label:"Render Complete",checked:ge.renderComplete,onChange:_=>re("renderComplete",_)}),u.jsx(fu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:435:19",label:"Training Finished",checked:ge.trainingFinished,onChange:_=>re("trainingFinished",_)}),u.jsx(fu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:436:19",label:"Security Alert",checked:ge.securityAlert,onChange:_=>re("securityAlert",_)})]})]})]})]})]})]})]}):null},Ta=({title:s,subtitle:o})=>u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:449:3",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:450:5",className:"text-lg font-semibold text-white",children:s}),u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:451:5",className:"text-sm text-white/55",children:o})]}),ea=({label:s,children:o})=>u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:456:3",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:457:5",className:"text-[11px] uppercase tracking-[0.12em] text-white/55 mb-2",children:s}),o]}),Wh=({label:s,value:o,onChange:r})=>u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:463:3",className:"flex items-center justify-between",children:[u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:464:5",className:"text-sm text-white",children:s}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:465:5",type:"button",onClick:()=>r(!o),className:`w-12 h-7 rounded-full p-1 transition-colors ${o?"bg-[var(--primary-accent)]":"bg-white/20"}`,children:u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:466:7",className:`block w-5 h-5 rounded-full bg-white transition-transform ${o?"translate-x-5":"translate-x-0"}`})})]}),fu=({label:s,checked:o,onChange:r})=>u.jsxs("label",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:472:3",className:"flex items-center gap-2 py-1.5 text-sm text-white/85 cursor-pointer",children:[u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:473:5",type:"checkbox",checked:o,onChange:i=>r(i.target.checked),className:"accent-[var(--primary-accent)]"}),s]}),mu=({name:s,connected:o,onToggle:r})=>u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:479:3",className:"glass-panel rounded-xl p-3 flex items-center justify-between",children:[u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:480:5",className:"text-sm text-white",children:s}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:481:5",type:"button",onClick:()=>r(!o),className:`px-3 py-1.5 rounded-md text-xs ${o?"bg-red-500/20 text-red-200":"bg-white/10 text-white"}`,children:o?"Disconnect":"Connect"})]}),pu=({label:s,value:o,show:r,onToggleShow:i,onChange:d})=>u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:494:3",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:495:5",className:"text-[11px] uppercase tracking-[0.12em] text-white/55 mb-2",children:s}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:496:5",className:"glass-panel rounded-lg px-3 py-2.5 flex items-center gap-2",children:[u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:497:7",type:r?"text":"password",value:o,onChange:m=>d(m.target.value),placeholder:"••••••••••••••••••••",className:"flex-1 bg-transparent text-sm text-white outline-none"}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:498:7",type:"button",onClick:i,className:"text-white/65 hover:text-white",children:r?u.jsx(ey,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:498:103",className:"w-4 h-4"}):u.jsx(ny,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:498:136",className:"w-4 h-4"})})]})]}),hu=({name:s,mounted:o,path:r,license:i,onMountedChange:d,onPathChange:m,onLicenseChange:h})=>u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:512:3",className:"glass-panel rounded-xl p-3 space-y-2",children:[u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:513:5",className:"flex items-center justify-between",children:[u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:514:7",className:"text-sm text-white flex items-center gap-2",children:[u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:515:9",className:`w-2 h-2 rounded-full ${o?"bg-green-400":"bg-red-400"}`}),s]}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:518:7",type:"button",onClick:()=>d(!o),className:"text-xs text-white/75 bg-white/10 px-2 py-1 rounded-md",children:o?"Mounted":"Offline"})]}),u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:522:5",value:r,onChange:p=>m(p.target.value),className:"w-full glass-panel rounded-lg px-3 py-2 text-xs text-white bg-transparent outline-none"}),u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:523:5",value:i,onChange:p=>h(p.target.value),placeholder:"License key",className:"w-full glass-panel rounded-lg px-3 py-2 text-xs text-white bg-transparent outline-none"})]}),rc=({label:s,value:o,total:r,color:i})=>u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:528:3",className:"flex items-center gap-3",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:529:5",className:"w-16 text-xs text-white/65",children:s}),u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:530:5",className:"flex-1 h-2 bg-white/10 rounded-full overflow-hidden",children:u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:531:7",className:"h-full",style:{width:`${o/r*100}%`,background:i}})}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:533:5",className:"text-xs text-white/70 w-10 text-right",children:[o,"%"]})]});function c3(){const{currentStage:s}=sa(),o=zu(i=>i.initializeSettings),r=y.useRef(null);return y.useEffect(()=>{const i=r.current;if(!i)return;const d=16;let m=0,h=0,p=0,g=0,x=0;const b=A=>{const R=A.clientX/window.innerWidth-.5,S=A.clientY/window.innerHeight-.5;m=R*d,h=S*d},w=()=>{m=0,h=0},E=()=>{p+=(m-p)*.08,g+=(h-g)*.08,i.style.setProperty("--parallax-x",`${p.toFixed(2)}px`),i.style.setProperty("--parallax-y",`${g.toFixed(2)}px`),x=requestAnimationFrame(E)};return window.addEventListener("mousemove",b),window.addEventListener("mouseleave",w),x=requestAnimationFrame(E),()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mouseleave",w),cancelAnimationFrame(x)}},[]),y.useEffect(()=>{o()},[o]),u.jsxs("div",{"code-path":"src\\App.tsx:66:5",ref:r,className:"relative w-screen h-screen overflow-hidden bg-black",children:[u.jsx(E1,{"code-path":"src\\App.tsx:68:7"}),u.jsx("div",{"code-path":"src\\App.tsx:71:7",className:"noise-overlay parallax-layer-foreground"}),s==="vault"&&u.jsx(z1,{"code-path":"src\\App.tsx:74:36"}),s==="nexus"&&u.jsx(O5,{"code-path":"src\\App.tsx:77:36"}),s==="workspace"&&u.jsx(i3,{"code-path":"src\\App.tsx:80:40"}),u.jsx(o3,{"code-path":"src\\App.tsx:83:7"})]})}const i3=()=>u.jsxs("div",{"code-path":"src\\App.tsx:91:5",className:"fixed inset-0 z-30",children:[u.jsx(r3,{"code-path":"src\\App.tsx:93:7"}),u.jsx(q5,{"code-path":"src\\App.tsx:96:7"}),u.jsx($5,{"code-path":"src\\App.tsx:97:7"}),u.jsx(t3,{"code-path":"src\\App.tsx:98:7"}),u.jsx(L5,{"code-path":"src\\App.tsx:101:7"})]}),r3=()=>{const{selectedProject:s,setStage:o}=sa();return u.jsxs("div",{"code-path":"src\\App.tsx:111:5",className:"fixed inset-x-0 top-0 z-[5] pointer-events-none",children:[u.jsxs("div",{"code-path":"src\\App.tsx:113:7",className:"absolute top-8 left-8 flex items-center gap-4 pointer-events-auto",children:[u.jsx("button",{"code-path":"src\\App.tsx:114:9",type:"button",onClick:()=>o("nexus"),className:"text-xs font-semibold tracking-[0.15em] uppercase opacity-60 hover:opacity-100 transition-opacity duration-300",children:"Astral Suite"}),s&&u.jsxs(u.Fragment,{children:[u.jsx("span",{"code-path":"src\\App.tsx:123:13",className:"text-xs opacity-30",children:"/"}),u.jsx("span",{"code-path":"src\\App.tsx:124:13",className:"text-xs font-medium",children:s.name})]})]}),u.jsx("div",{"code-path":"src\\App.tsx:130:7",className:"absolute top-6 right-8 pointer-events-auto",children:u.jsx(fx,{"code-path":"src\\App.tsx:131:9"})})]})};b1.createRoot(document.getElementById("root")).render(u.jsx(y.StrictMode,{"code-path":"src\\main.tsx:8:3",children:u.jsx(N1,{"code-path":"src\\main.tsx:9:5",children:u.jsx(c3,{"code-path":"src\\main.tsx:10:7"})})}));