@ssot-registry/lineage-graph 0.2.26-dev.1 → 0.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lineage-graph.cjs +17 -17
- package/dist/lineage-graph.css +1 -1
- package/dist/lineage-graph.js +4330 -4138
- package/dist/standalone/ssot-lineage-graph.css +1 -1
- package/dist/standalone/ssot-lineage-graph.js +21 -21
- package/dist/workspace/components/LineageGraphCanvas/LineageGraphCanvas.d.ts +42 -0
- package/dist/workspace/components/LineageGraphCanvas/constants.d.ts +6 -0
- package/dist/workspace/components/LineageGraphCanvas/helpers.d.ts +9 -0
- package/dist/workspace/components/LineageGraphCanvas/index.d.ts +3 -0
- package/dist/workspace/components/LineageGraphCanvas/useNodeDragging.d.ts +19 -0
- package/dist/workspace/components/LineageGraphCanvas/useViewport.d.ts +38 -0
- package/dist/workspace/components/LineageGraphCanvas.d.ts +3 -48
- package/dist/workspace/types.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
function mv(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Ac={exports:{}},ol={};var Om;function pv(){if(Om)return ol;Om=1;var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function o(r,c,m){var f=null;if(m!==void 0&&(f=""+m),c.key!==void 0&&(f=""+c.key),"key"in c){m={};for(var p in c)p!=="key"&&(m[p]=c[p])}else m=c;return c=m.ref,{$$typeof:a,type:r,key:f,ref:c!==void 0?c:null,props:m}}return ol.Fragment=s,ol.jsx=o,ol.jsxs=o,ol}var Vm;function gv(){return Vm||(Vm=1,Ac.exports=pv()),Ac.exports}var h=gv(),Mc={exports:{}},rl={},Ec={exports:{}},wc={};var _m;function yv(){return _m||(_m=1,(function(a){function s(N,nt){var et=N.length;N.push(nt);t:for(;0<et;){var pt=et-1>>>1,C=N[pt];if(0<c(C,nt))N[pt]=nt,N[et]=C,et=pt;else break t}}function o(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var nt=N[0],et=N.pop();if(et!==nt){N[0]=et;t:for(var pt=0,C=N.length,T=C>>>1;pt<T;){var L=2*(pt+1)-1,at=N[L],ot=L+1,Tt=N[ot];if(0>c(at,et))ot<C&&0>c(Tt,at)?(N[pt]=Tt,N[ot]=et,pt=ot):(N[pt]=at,N[L]=et,pt=L);else if(ot<C&&0>c(Tt,et))N[pt]=Tt,N[ot]=et,pt=ot;else break t}}return nt}function c(N,nt){var et=N.sortIndex-nt.sortIndex;return et!==0?et:N.id-nt.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;a.unstable_now=function(){return m.now()}}else{var f=Date,p=f.now();a.unstable_now=function(){return f.now()-p}}var v=[],g=[],b=1,x=null,A=3,E=!1,O=!1,_=!1,U=!1,Q=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function X(N){for(var nt=o(g);nt!==null;){if(nt.callback===null)r(g);else if(nt.startTime<=N)r(g),nt.sortIndex=nt.expirationTime,s(v,nt);else break;nt=o(g)}}function st(N){if(_=!1,X(N),!O)if(o(v)!==null)O=!0,Y||(Y=!0,ft());else{var nt=o(g);nt!==null&&jt(st,nt.startTime-N)}}var Y=!1,F=-1,K=5,W=-1;function I(){return U?!0:!(a.unstable_now()-W<K)}function lt(){if(U=!1,Y){var N=a.unstable_now();W=N;var nt=!0;try{t:{O=!1,_&&(_=!1,B(F),F=-1),E=!0;var et=A;try{e:{for(X(N),x=o(v);x!==null&&!(x.expirationTime>N&&I());){var pt=x.callback;if(typeof pt=="function"){x.callback=null,A=x.priorityLevel;var C=pt(x.expirationTime<=N);if(N=a.unstable_now(),typeof C=="function"){x.callback=C,X(N),nt=!0;break e}x===o(v)&&r(v),X(N)}else r(v);x=o(v)}if(x!==null)nt=!0;else{var T=o(g);T!==null&&jt(st,T.startTime-N),nt=!1}}break t}finally{x=null,A=et,E=!1}nt=void 0}}finally{nt?ft():Y=!1}}}var ft;if(typeof z=="function")ft=function(){z(lt)};else if(typeof MessageChannel<"u"){var Ot=new MessageChannel,Et=Ot.port2;Ot.port1.onmessage=lt,ft=function(){Et.postMessage(null)}}else ft=function(){Q(lt,0)};function jt(N,nt){F=Q(function(){N(a.unstable_now())},nt)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(N){N.callback=null},a.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<N?Math.floor(1e3/N):5},a.unstable_getCurrentPriorityLevel=function(){return A},a.unstable_next=function(N){switch(A){case 1:case 2:case 3:var nt=3;break;default:nt=A}var et=A;A=nt;try{return N()}finally{A=et}},a.unstable_requestPaint=function(){U=!0},a.unstable_runWithPriority=function(N,nt){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var et=A;A=N;try{return nt()}finally{A=et}},a.unstable_scheduleCallback=function(N,nt,et){var pt=a.unstable_now();switch(typeof et=="object"&&et!==null?(et=et.delay,et=typeof et=="number"&&0<et?pt+et:pt):et=pt,N){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=et+C,N={id:b++,callback:nt,priorityLevel:N,startTime:et,expirationTime:C,sortIndex:-1},et>pt?(N.sortIndex=et,s(g,N),o(v)===null&&N===o(g)&&(_?(B(F),F=-1):_=!0,jt(st,et-pt))):(N.sortIndex=C,s(v,N),O||E||(O=!0,Y||(Y=!0,ft()))),N},a.unstable_shouldYield=I,a.unstable_wrapCallback=function(N){var nt=A;return function(){var et=A;A=nt;try{return N.apply(this,arguments)}finally{A=et}}}})(wc)),wc}var km;function xv(){return km||(km=1,Ec.exports=yv()),Ec.exports}var jc={exports:{}},Ct={};var Lm;function vv(){if(Lm)return Ct;Lm=1;var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),A=Symbol.iterator;function E(T){return T===null||typeof T!="object"?null:(T=A&&T[A]||T["@@iterator"],typeof T=="function"?T:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,U={};function Q(T,L,at){this.props=T,this.context=L,this.refs=U,this.updater=at||O}Q.prototype.isReactComponent={},Q.prototype.setState=function(T,L){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,L,"setState")},Q.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function B(){}B.prototype=Q.prototype;function z(T,L,at){this.props=T,this.context=L,this.refs=U,this.updater=at||O}var X=z.prototype=new B;X.constructor=z,_(X,Q.prototype),X.isPureReactComponent=!0;var st=Array.isArray;function Y(){}var F={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function W(T,L,at){var ot=at.ref;return{$$typeof:a,type:T,key:L,ref:ot!==void 0?ot:null,props:at}}function I(T,L){return W(T.type,L,T.props)}function lt(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function ft(T){var L={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(at){return L[at]})}var Ot=/\/+/g;function Et(T,L){return typeof T=="object"&&T!==null&&T.key!=null?ft(""+T.key):L.toString(36)}function jt(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(Y,Y):(T.status="pending",T.then(function(L){T.status==="pending"&&(T.status="fulfilled",T.value=L)},function(L){T.status==="pending"&&(T.status="rejected",T.reason=L)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function N(T,L,at,ot,Tt){var dt=typeof T;(dt==="undefined"||dt==="boolean")&&(T=null);var Bt=!1;if(T===null)Bt=!0;else switch(dt){case"bigint":case"string":case"number":Bt=!0;break;case"object":switch(T.$$typeof){case a:case s:Bt=!0;break;case b:return Bt=T._init,N(Bt(T._payload),L,at,ot,Tt)}}if(Bt)return Tt=Tt(T),Bt=ot===""?"."+Et(T,0):ot,st(Tt)?(at="",Bt!=null&&(at=Bt.replace(Ot,"$&/")+"/"),N(Tt,L,at,"",function(qe){return qe})):Tt!=null&&(lt(Tt)&&(Tt=I(Tt,at+(Tt.key==null||T&&T.key===Tt.key?"":(""+Tt.key).replace(Ot,"$&/")+"/")+Bt)),L.push(Tt)),1;Bt=0;var Kt=ot===""?".":ot+":";if(st(T))for(var At=0;At<T.length;At++)ot=T[At],dt=Kt+Et(ot,At),Bt+=N(ot,L,at,dt,Tt);else if(At=E(T),typeof At=="function")for(T=At.call(T),At=0;!(ot=T.next()).done;)ot=ot.value,dt=Kt+Et(ot,At++),Bt+=N(ot,L,at,dt,Tt);else if(dt==="object"){if(typeof T.then=="function")return N(jt(T),L,at,ot,Tt);throw L=String(T),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return Bt}function nt(T,L,at){if(T==null)return T;var ot=[],Tt=0;return N(T,ot,"","",function(dt){return L.call(at,dt,Tt++)}),ot}function et(T){if(T._status===-1){var L=T._result;L=L(),L.then(function(at){(T._status===0||T._status===-1)&&(T._status=1,T._result=at)},function(at){(T._status===0||T._status===-1)&&(T._status=2,T._result=at)}),T._status===-1&&(T._status=0,T._result=L)}if(T._status===1)return T._result.default;throw T._result}var pt=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},C={map:nt,forEach:function(T,L,at){nt(T,function(){L.apply(this,arguments)},at)},count:function(T){var L=0;return nt(T,function(){L++}),L},toArray:function(T){return nt(T,function(L){return L})||[]},only:function(T){if(!lt(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return Ct.Activity=x,Ct.Children=C,Ct.Component=Q,Ct.Fragment=o,Ct.Profiler=c,Ct.PureComponent=z,Ct.StrictMode=r,Ct.Suspense=v,Ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,Ct.__COMPILER_RUNTIME={__proto__:null,c:function(T){return F.H.useMemoCache(T)}},Ct.cache=function(T){return function(){return T.apply(null,arguments)}},Ct.cacheSignal=function(){return null},Ct.cloneElement=function(T,L,at){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ot=_({},T.props),Tt=T.key;if(L!=null)for(dt in L.key!==void 0&&(Tt=""+L.key),L)!K.call(L,dt)||dt==="key"||dt==="__self"||dt==="__source"||dt==="ref"&&L.ref===void 0||(ot[dt]=L[dt]);var dt=arguments.length-2;if(dt===1)ot.children=at;else if(1<dt){for(var Bt=Array(dt),Kt=0;Kt<dt;Kt++)Bt[Kt]=arguments[Kt+2];ot.children=Bt}return W(T.type,Tt,ot)},Ct.createContext=function(T){return T={$$typeof:f,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:m,_context:T},T},Ct.createElement=function(T,L,at){var ot,Tt={},dt=null;if(L!=null)for(ot in L.key!==void 0&&(dt=""+L.key),L)K.call(L,ot)&&ot!=="key"&&ot!=="__self"&&ot!=="__source"&&(Tt[ot]=L[ot]);var Bt=arguments.length-2;if(Bt===1)Tt.children=at;else if(1<Bt){for(var Kt=Array(Bt),At=0;At<Bt;At++)Kt[At]=arguments[At+2];Tt.children=Kt}if(T&&T.defaultProps)for(ot in Bt=T.defaultProps,Bt)Tt[ot]===void 0&&(Tt[ot]=Bt[ot]);return W(T,dt,Tt)},Ct.createRef=function(){return{current:null}},Ct.forwardRef=function(T){return{$$typeof:p,render:T}},Ct.isValidElement=lt,Ct.lazy=function(T){return{$$typeof:b,_payload:{_status:-1,_result:T},_init:et}},Ct.memo=function(T,L){return{$$typeof:g,type:T,compare:L===void 0?null:L}},Ct.startTransition=function(T){var L=F.T,at={};F.T=at;try{var ot=T(),Tt=F.S;Tt!==null&&Tt(at,ot),typeof ot=="object"&&ot!==null&&typeof ot.then=="function"&&ot.then(Y,pt)}catch(dt){pt(dt)}finally{L!==null&&at.types!==null&&(L.types=at.types),F.T=L}},Ct.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},Ct.use=function(T){return F.H.use(T)},Ct.useActionState=function(T,L,at){return F.H.useActionState(T,L,at)},Ct.useCallback=function(T,L){return F.H.useCallback(T,L)},Ct.useContext=function(T){return F.H.useContext(T)},Ct.useDebugValue=function(){},Ct.useDeferredValue=function(T,L){return F.H.useDeferredValue(T,L)},Ct.useEffect=function(T,L){return F.H.useEffect(T,L)},Ct.useEffectEvent=function(T){return F.H.useEffectEvent(T)},Ct.useId=function(){return F.H.useId()},Ct.useImperativeHandle=function(T,L,at){return F.H.useImperativeHandle(T,L,at)},Ct.useInsertionEffect=function(T,L){return F.H.useInsertionEffect(T,L)},Ct.useLayoutEffect=function(T,L){return F.H.useLayoutEffect(T,L)},Ct.useMemo=function(T,L){return F.H.useMemo(T,L)},Ct.useOptimistic=function(T,L){return F.H.useOptimistic(T,L)},Ct.useReducer=function(T,L,at){return F.H.useReducer(T,L,at)},Ct.useRef=function(T){return F.H.useRef(T)},Ct.useState=function(T){return F.H.useState(T)},Ct.useSyncExternalStore=function(T,L,at){return F.H.useSyncExternalStore(T,L,at)},Ct.useTransition=function(){return F.H.useTransition()},Ct.version="19.2.6",Ct}var Bm;function bf(){return Bm||(Bm=1,jc.exports=vv()),jc.exports}var Cc={exports:{}},Ye={};var Um;function bv(){if(Um)return Ye;Um=1;var a=bf();function s(v){var g="https://react.dev/errors/"+v;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(s(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function m(v,g,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:x==null?null:""+x,children:v,containerInfo:g,implementation:b}}var f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(v,g){if(v==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Ye.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ye.createPortal=function(v,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(s(299));return m(v,g,null,b)},Ye.flushSync=function(v){var g=f.T,b=r.p;try{if(f.T=null,r.p=2,v)return v()}finally{f.T=g,r.p=b,r.d.f()}},Ye.preconnect=function(v,g){typeof v=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(v,g))},Ye.prefetchDNS=function(v){typeof v=="string"&&r.d.D(v)},Ye.preinit=function(v,g){if(typeof v=="string"&&g&&typeof g.as=="string"){var b=g.as,x=p(b,g.crossOrigin),A=typeof g.integrity=="string"?g.integrity:void 0,E=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?r.d.S(v,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:x,integrity:A,fetchPriority:E}):b==="script"&&r.d.X(v,{crossOrigin:x,integrity:A,fetchPriority:E,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Ye.preinitModule=function(v,g){if(typeof v=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=p(g.as,g.crossOrigin);r.d.M(v,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(v)},Ye.preload=function(v,g){if(typeof v=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,x=p(b,g.crossOrigin);r.d.L(v,b,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Ye.preloadModule=function(v,g){if(typeof v=="string")if(g){var b=p(g.as,g.crossOrigin);r.d.m(v,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(v)},Ye.requestFormReset=function(v){r.d.r(v)},Ye.unstable_batchedUpdates=function(v,g){return v(g)},Ye.useFormState=function(v,g,b){return f.H.useFormState(v,g,b)},Ye.useFormStatus=function(){return f.H.useHostTransitionStatus()},Ye.version="19.2.6",Ye}var Hm;function Sv(){if(Hm)return Cc.exports;Hm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(s){console.error(s)}}return a(),Cc.exports=bv(),Cc.exports}var qm;function Tv(){if(qm)return rl;qm=1;var a=xv(),s=bf(),o=Sv();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function m(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function f(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(t){if(m(t)!==t)throw Error(r(188))}function g(t){var e=t.alternate;if(!e){if(e=m(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,i=e;;){var l=n.return;if(l===null)break;var u=l.alternate;if(u===null){if(i=l.return,i!==null){n=i;continue}break}if(l.child===u.child){for(u=l.child;u;){if(u===n)return v(l),t;if(u===i)return v(l),e;u=u.sibling}throw Error(r(188))}if(n.return!==i.return)n=l,i=u;else{for(var d=!1,y=l.child;y;){if(y===n){d=!0,n=l,i=u;break}if(y===i){d=!0,i=l,n=u;break}y=y.sibling}if(!d){for(y=u.child;y;){if(y===n){d=!0,n=u,i=l;break}if(y===i){d=!0,i=u,n=l;break}y=y.sibling}if(!d)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?t:e}function b(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=b(t),e!==null)return e;t=t.sibling}return null}var x=Object.assign,A=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),z=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),st=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),lt=Symbol.iterator;function ft(t){return t===null||typeof t!="object"?null:(t=lt&&t[lt]||t["@@iterator"],typeof t=="function"?t:null)}var Ot=Symbol.for("react.client.reference");function Et(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ot?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case _:return"Fragment";case Q:return"Profiler";case U:return"StrictMode";case st:return"Suspense";case Y:return"SuspenseList";case W:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case O:return"Portal";case z:return t.displayName||"Context";case B:return(t._context.displayName||"Context")+".Consumer";case X:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case F:return e=t.displayName||null,e!==null?e:Et(t.type)||"Memo";case K:e=t._payload,t=t._init;try{return Et(t(e))}catch{}}return null}var jt=Array.isArray,N=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,et={pending:!1,data:null,method:null,action:null},pt=[],C=-1;function T(t){return{current:t}}function L(t){0>C||(t.current=pt[C],pt[C]=null,C--)}function at(t,e){C++,pt[C]=t.current,t.current=e}var ot=T(null),Tt=T(null),dt=T(null),Bt=T(null);function Kt(t,e){switch(at(dt,e),at(Tt,t),at(ot,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?nm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=nm(e),t=am(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}L(ot),at(ot,t)}function At(){L(ot),L(Tt),L(dt)}function qe(t){t.memoizedState!==null&&at(Bt,t);var e=ot.current,n=am(e,t.type);e!==n&&(at(Tt,t),at(ot,n))}function Ln(t){Tt.current===t&&(L(ot),L(Tt)),Bt.current===t&&(L(Bt),al._currentValue=et)}var Bn,je;function Nn(t){if(Bn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Bn=e&&e[1]||"",je=-1<n.stack.indexOf(`
|
|
1
|
+
function gv(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var bu={exports:{}},il={};var Dm;function yv(){if(Dm)return il;Dm=1;var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function l(r,u,h){var d=null;if(h!==void 0&&(d=""+h),u.key!==void 0&&(d=""+u.key),"key"in u){h={};for(var p in u)p!=="key"&&(h[p]=u[p])}else h=u;return u=h.ref,{$$typeof:a,type:r,key:d,ref:u!==void 0?u:null,props:h}}return il.Fragment=s,il.jsx=l,il.jsxs=l,il}var zm;function xv(){return zm||(zm=1,bu.exports=yv()),bu.exports}var f=xv(),Su={exports:{}},sl={},Tu={exports:{}},ju={};var Rm;function vv(){return Rm||(Rm=1,(function(a){function s(D,N){var q=D.length;D.push(N);t:for(;0<q;){var nt=q-1>>>1,yt=D[nt];if(0<u(yt,N))D[nt]=N,D[q]=yt,q=nt;else break t}}function l(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var N=D[0],q=D.pop();if(q!==N){D[0]=q;t:for(var nt=0,yt=D.length,A=yt>>>1;nt<A;){var Q=2*(nt+1)-1,et=D[Q],at=Q+1,St=D[at];if(0>u(et,q))at<yt&&0>u(St,et)?(D[nt]=St,D[at]=q,nt=at):(D[nt]=et,D[Q]=q,nt=Q);else if(at<yt&&0>u(St,q))D[nt]=St,D[at]=q,nt=at;else break t}}return N}function u(D,N){var q=D.sortIndex-N.sortIndex;return q!==0?q:D.id-N.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;a.unstable_now=function(){return h.now()}}else{var d=Date,p=d.now();a.unstable_now=function(){return d.now()-p}}var x=[],g=[],y=1,b=null,S=3,j=!1,M=!1,O=!1,B=!1,Y=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function X(D){for(var N=l(g);N!==null;){if(N.callback===null)r(g);else if(N.startTime<=D)r(g),N.sortIndex=N.expirationTime,s(x,N);else break;N=l(g)}}function I(D){if(O=!1,X(D),!M)if(l(x)!==null)M=!0,Z||(Z=!0,st());else{var N=l(g);N!==null&>(I,N.startTime-D)}}var Z=!1,L=-1,k=5,W=-1;function J(){return B?!0:!(a.unstable_now()-W<k)}function tt(){if(B=!1,Z){var D=a.unstable_now();W=D;var N=!0;try{t:{M=!1,O&&(O=!1,G(L),L=-1),j=!0;var q=S;try{e:{for(X(D),b=l(x);b!==null&&!(b.expirationTime>D&&J());){var nt=b.callback;if(typeof nt=="function"){b.callback=null,S=b.priorityLevel;var yt=nt(b.expirationTime<=D);if(D=a.unstable_now(),typeof yt=="function"){b.callback=yt,X(D),N=!0;break e}b===l(x)&&r(x),X(D)}else r(x);b=l(x)}if(b!==null)N=!0;else{var A=l(g);A!==null&>(I,A.startTime-D),N=!1}}break t}finally{b=null,S=q,j=!1}N=void 0}}finally{N?st():Z=!1}}}var st;if(typeof C=="function")st=function(){C(tt)};else if(typeof MessageChannel<"u"){var jt=new MessageChannel,dt=jt.port2;jt.port1.onmessage=tt,st=function(){dt.postMessage(null)}}else st=function(){Y(tt,0)};function gt(D,N){L=Y(function(){D(a.unstable_now())},N)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(D){D.callback=null},a.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"):k=0<D?Math.floor(1e3/D):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(D){switch(S){case 1:case 2:case 3:var N=3;break;default:N=S}var q=S;S=N;try{return D()}finally{S=q}},a.unstable_requestPaint=function(){B=!0},a.unstable_runWithPriority=function(D,N){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var q=S;S=D;try{return N()}finally{S=q}},a.unstable_scheduleCallback=function(D,N,q){var nt=a.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?nt+q:nt):q=nt,D){case 1:var yt=-1;break;case 2:yt=250;break;case 5:yt=1073741823;break;case 4:yt=1e4;break;default:yt=5e3}return yt=q+yt,D={id:y++,callback:N,priorityLevel:D,startTime:q,expirationTime:yt,sortIndex:-1},q>nt?(D.sortIndex=q,s(g,D),l(x)===null&&D===l(g)&&(O?(G(L),L=-1):O=!0,gt(I,q-nt))):(D.sortIndex=yt,s(x,D),M||j||(M=!0,Z||(Z=!0,st()))),D},a.unstable_shouldYield=J,a.unstable_wrapCallback=function(D){var N=S;return function(){var q=S;S=N;try{return D.apply(this,arguments)}finally{S=q}}}})(ju)),ju}var Om;function bv(){return Om||(Om=1,Tu.exports=vv()),Tu.exports}var Au={exports:{}},wt={};var Vm;function Sv(){if(Vm)return wt;Vm=1;var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),S=Symbol.iterator;function j(A){return A===null||typeof A!="object"?null:(A=S&&A[S]||A["@@iterator"],typeof A=="function"?A:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,B={};function Y(A,Q,et){this.props=A,this.context=Q,this.refs=B,this.updater=et||M}Y.prototype.isReactComponent={},Y.prototype.setState=function(A,Q){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,Q,"setState")},Y.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function G(){}G.prototype=Y.prototype;function C(A,Q,et){this.props=A,this.context=Q,this.refs=B,this.updater=et||M}var X=C.prototype=new G;X.constructor=C,O(X,Y.prototype),X.isPureReactComponent=!0;var I=Array.isArray;function Z(){}var L={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function W(A,Q,et){var at=et.ref;return{$$typeof:a,type:A,key:Q,ref:at!==void 0?at:null,props:et}}function J(A,Q){return W(A.type,Q,A.props)}function tt(A){return typeof A=="object"&&A!==null&&A.$$typeof===a}function st(A){var Q={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(et){return Q[et]})}var jt=/\/+/g;function dt(A,Q){return typeof A=="object"&&A!==null&&A.key!=null?st(""+A.key):Q.toString(36)}function gt(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(Z,Z):(A.status="pending",A.then(function(Q){A.status==="pending"&&(A.status="fulfilled",A.value=Q)},function(Q){A.status==="pending"&&(A.status="rejected",A.reason=Q)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function D(A,Q,et,at,St){var lt=typeof A;(lt==="undefined"||lt==="boolean")&&(A=null);var Bt=!1;if(A===null)Bt=!0;else switch(lt){case"bigint":case"string":case"number":Bt=!0;break;case"object":switch(A.$$typeof){case a:case s:Bt=!0;break;case y:return Bt=A._init,D(Bt(A._payload),Q,et,at,St)}}if(Bt)return St=St(A),Bt=at===""?"."+dt(A,0):at,I(St)?(et="",Bt!=null&&(et=Bt.replace(jt,"$&/")+"/"),D(St,Q,et,"",function(Ye){return Ye})):St!=null&&(tt(St)&&(St=J(St,et+(St.key==null||A&&A.key===St.key?"":(""+St.key).replace(jt,"$&/")+"/")+Bt)),Q.push(St)),1;Bt=0;var Ee=at===""?".":at+":";if(I(A))for(var Ft=0;Ft<A.length;Ft++)at=A[Ft],lt=Ee+dt(at,Ft),Bt+=D(at,Q,et,lt,St);else if(Ft=j(A),typeof Ft=="function")for(A=Ft.call(A),Ft=0;!(at=A.next()).done;)at=at.value,lt=Ee+dt(at,Ft++),Bt+=D(at,Q,et,lt,St);else if(lt==="object"){if(typeof A.then=="function")return D(gt(A),Q,et,at,St);throw Q=String(A),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Bt}function N(A,Q,et){if(A==null)return A;var at=[],St=0;return D(A,at,"","",function(lt){return Q.call(et,lt,St++)}),at}function q(A){if(A._status===-1){var Q=A._result;Q=Q(),Q.then(function(et){(A._status===0||A._status===-1)&&(A._status=1,A._result=et)},function(et){(A._status===0||A._status===-1)&&(A._status=2,A._result=et)}),A._status===-1&&(A._status=0,A._result=Q)}if(A._status===1)return A._result.default;throw A._result}var nt=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},yt={map:N,forEach:function(A,Q,et){N(A,function(){Q.apply(this,arguments)},et)},count:function(A){var Q=0;return N(A,function(){Q++}),Q},toArray:function(A){return N(A,function(Q){return Q})||[]},only:function(A){if(!tt(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return wt.Activity=b,wt.Children=yt,wt.Component=Y,wt.Fragment=l,wt.Profiler=u,wt.PureComponent=C,wt.StrictMode=r,wt.Suspense=x,wt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,wt.__COMPILER_RUNTIME={__proto__:null,c:function(A){return L.H.useMemoCache(A)}},wt.cache=function(A){return function(){return A.apply(null,arguments)}},wt.cacheSignal=function(){return null},wt.cloneElement=function(A,Q,et){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var at=O({},A.props),St=A.key;if(Q!=null)for(lt in Q.key!==void 0&&(St=""+Q.key),Q)!k.call(Q,lt)||lt==="key"||lt==="__self"||lt==="__source"||lt==="ref"&&Q.ref===void 0||(at[lt]=Q[lt]);var lt=arguments.length-2;if(lt===1)at.children=et;else if(1<lt){for(var Bt=Array(lt),Ee=0;Ee<lt;Ee++)Bt[Ee]=arguments[Ee+2];at.children=Bt}return W(A.type,St,at)},wt.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:h,_context:A},A},wt.createElement=function(A,Q,et){var at,St={},lt=null;if(Q!=null)for(at in Q.key!==void 0&&(lt=""+Q.key),Q)k.call(Q,at)&&at!=="key"&&at!=="__self"&&at!=="__source"&&(St[at]=Q[at]);var Bt=arguments.length-2;if(Bt===1)St.children=et;else if(1<Bt){for(var Ee=Array(Bt),Ft=0;Ft<Bt;Ft++)Ee[Ft]=arguments[Ft+2];St.children=Ee}if(A&&A.defaultProps)for(at in Bt=A.defaultProps,Bt)St[at]===void 0&&(St[at]=Bt[at]);return W(A,lt,St)},wt.createRef=function(){return{current:null}},wt.forwardRef=function(A){return{$$typeof:p,render:A}},wt.isValidElement=tt,wt.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:q}},wt.memo=function(A,Q){return{$$typeof:g,type:A,compare:Q===void 0?null:Q}},wt.startTransition=function(A){var Q=L.T,et={};L.T=et;try{var at=A(),St=L.S;St!==null&&St(et,at),typeof at=="object"&&at!==null&&typeof at.then=="function"&&at.then(Z,nt)}catch(lt){nt(lt)}finally{Q!==null&&et.types!==null&&(Q.types=et.types),L.T=Q}},wt.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},wt.use=function(A){return L.H.use(A)},wt.useActionState=function(A,Q,et){return L.H.useActionState(A,Q,et)},wt.useCallback=function(A,Q){return L.H.useCallback(A,Q)},wt.useContext=function(A){return L.H.useContext(A)},wt.useDebugValue=function(){},wt.useDeferredValue=function(A,Q){return L.H.useDeferredValue(A,Q)},wt.useEffect=function(A,Q){return L.H.useEffect(A,Q)},wt.useEffectEvent=function(A){return L.H.useEffectEvent(A)},wt.useId=function(){return L.H.useId()},wt.useImperativeHandle=function(A,Q,et){return L.H.useImperativeHandle(A,Q,et)},wt.useInsertionEffect=function(A,Q){return L.H.useInsertionEffect(A,Q)},wt.useLayoutEffect=function(A,Q){return L.H.useLayoutEffect(A,Q)},wt.useMemo=function(A,Q){return L.H.useMemo(A,Q)},wt.useOptimistic=function(A,Q){return L.H.useOptimistic(A,Q)},wt.useReducer=function(A,Q,et){return L.H.useReducer(A,Q,et)},wt.useRef=function(A){return L.H.useRef(A)},wt.useState=function(A){return L.H.useState(A)},wt.useSyncExternalStore=function(A,Q,et){return L.H.useSyncExternalStore(A,Q,et)},wt.useTransition=function(){return L.H.useTransition()},wt.version="19.2.6",wt}var _m;function yf(){return _m||(_m=1,Au.exports=Sv()),Au.exports}var wu={exports:{}},Ge={};var km;function Tv(){if(km)return Ge;km=1;var a=yf();function s(x){var g="https://react.dev/errors/"+x;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+x+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var r={d:{f:l,r:function(){throw Error(s(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},u=Symbol.for("react.portal");function h(x,g,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:x,containerInfo:g,implementation:y}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(x,g){if(x==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Ge.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ge.createPortal=function(x,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(s(299));return h(x,g,null,y)},Ge.flushSync=function(x){var g=d.T,y=r.p;try{if(d.T=null,r.p=2,x)return x()}finally{d.T=g,r.p=y,r.d.f()}},Ge.preconnect=function(x,g){typeof x=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(x,g))},Ge.prefetchDNS=function(x){typeof x=="string"&&r.d.D(x)},Ge.preinit=function(x,g){if(typeof x=="string"&&g&&typeof g.as=="string"){var y=g.as,b=p(y,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,j=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?r.d.S(x,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:j}):y==="script"&&r.d.X(x,{crossOrigin:b,integrity:S,fetchPriority:j,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Ge.preinitModule=function(x,g){if(typeof x=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=p(g.as,g.crossOrigin);r.d.M(x,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(x)},Ge.preload=function(x,g){if(typeof x=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,b=p(y,g.crossOrigin);r.d.L(x,y,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Ge.preloadModule=function(x,g){if(typeof x=="string")if(g){var y=p(g.as,g.crossOrigin);r.d.m(x,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(x)},Ge.requestFormReset=function(x){r.d.r(x)},Ge.unstable_batchedUpdates=function(x,g){return x(g)},Ge.useFormState=function(x,g,y){return d.H.useFormState(x,g,y)},Ge.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ge.version="19.2.6",Ge}var Lm;function jv(){if(Lm)return wu.exports;Lm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(s){console.error(s)}}return a(),wu.exports=Tv(),wu.exports}var Bm;function Av(){if(Bm)return sl;Bm=1;var a=bv(),s=yf(),l=jv();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function d(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function x(t){if(h(t)!==t)throw Error(r(188))}function g(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,i=e;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){n=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return x(o),t;if(c===i)return x(o),e;c=c.sibling}throw Error(r(188))}if(n.return!==i.return)n=o,i=c;else{for(var m=!1,v=o.child;v;){if(v===n){m=!0,n=o,i=c;break}if(v===i){m=!0,i=o,n=c;break}v=v.sibling}if(!m){for(v=c.child;v;){if(v===n){m=!0,n=c,i=o;break}if(v===i){m=!0,i=c,n=o;break}v=v.sibling}if(!m)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?t:e}function y(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=y(t),e!==null)return e;t=t.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),C=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),tt=Symbol.iterator;function st(t){return t===null||typeof t!="object"?null:(t=tt&&t[tt]||t["@@iterator"],typeof t=="function"?t:null)}var jt=Symbol.for("react.client.reference");function dt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===jt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case O:return"Fragment";case Y:return"Profiler";case B:return"StrictMode";case I:return"Suspense";case Z:return"SuspenseList";case W:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case M:return"Portal";case C:return t.displayName||"Context";case G:return(t._context.displayName||"Context")+".Consumer";case X:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case L:return e=t.displayName||null,e!==null?e:dt(t.type)||"Memo";case k:e=t._payload,t=t._init;try{return dt(t(e))}catch{}}return null}var gt=Array.isArray,D=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},nt=[],yt=-1;function A(t){return{current:t}}function Q(t){0>yt||(t.current=nt[yt],nt[yt]=null,yt--)}function et(t,e){yt++,nt[yt]=t.current,t.current=e}var at=A(null),St=A(null),lt=A(null),Bt=A(null);function Ee(t,e){switch(et(lt,e),et(St,t),et(at,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?I0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=I0(e),t=tm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(at),et(at,t)}function Ft(){Q(at),Q(St),Q(lt)}function Ye(t){t.memoizedState!==null&&et(Bt,t);var e=at.current,n=tm(e,t.type);e!==n&&(et(St,t),et(at,n))}function Un(t){St.current===t&&(Q(at),Q(St)),Bt.current===t&&(Q(Bt),tl._currentValue=q)}var Jn,Xt;function ln(t){if(Jn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Jn=e&&e[1]||"",Xt=-1<n.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+
|
|
4
|
-
`),R=
|
|
5
|
-
`);for(
|
|
6
|
-
`+
|
|
3
|
+
`+Jn+t+Xt}var Hn=!1;function yn(t,e){if(!t||Hn)return"";Hn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(U){var _=U}Reflect.construct(t,[],P)}else{try{P.call()}catch(U){_=U}t.call(P.prototype)}}else{try{throw Error()}catch(U){_=U}(P=t())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(U){if(U&&_&&typeof U.stack=="string")return[U.stack,_.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),m=c[0],v=c[1];if(m&&v){var T=m.split(`
|
|
4
|
+
`),R=v.split(`
|
|
5
|
+
`);for(o=i=0;i<T.length&&!T[i].includes("DetermineComponentFrameRoot");)i++;for(;o<R.length&&!R[o].includes("DetermineComponentFrameRoot");)o++;if(i===T.length||o===R.length)for(i=T.length-1,o=R.length-1;1<=i&&0<=o&&T[i]!==R[o];)o--;for(;1<=i&&0<=o;i--,o--)if(T[i]!==R[o]){if(i!==1||o!==1)do if(i--,o--,0>o||T[i]!==R[o]){var K=`
|
|
6
|
+
`+T[i].replace(" at new "," at ");return t.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",t.displayName)),K}while(1<=i&&0<=o);break}}}finally{Hn=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ln(n):""}function ms(t,e){switch(t.tag){case 26:case 27:case 5:return ln(t.type);case 16:return ln("Lazy");case 13:return t.child!==e&&e!==null?ln("Suspense Fallback"):ln("Suspense");case 19:return ln("SuspenseList");case 0:case 15:return yn(t.type,!1);case 11:return yn(t.type.render,!1);case 1:return yn(t.type,!0);case 31:return ln("Activity");default:return""}}function Xe(t){try{var e="",n=null;do e+=ms(t,n),n=t,t=t.return;while(t);return e}catch(i){return`
|
|
7
7
|
Error generating stack: `+i.message+`
|
|
8
|
-
`+i.stack}}var pn=Object.prototype.hasOwnProperty,Qa=a.unstable_scheduleCallback,gn=a.unstable_cancelCallback,Dn=a.unstable_shouldYield,Hn=a.unstable_requestPaint,Ce=a.unstable_now,ms=a.unstable_getCurrentPriorityLevel,$a=a.unstable_ImmediatePriority,Oe=a.unstable_UserBlockingPriority,yn=a.unstable_NormalPriority,tt=a.unstable_LowPriority,Mt=a.unstable_IdlePriority,yt=a.log,Zt=a.unstable_setDisableYieldValue,re=null,ae=null;function Ne(t){if(typeof yt=="function"&&Zt(t),ae&&typeof ae.setStrictMode=="function")try{ae.setStrictMode(re,t)}catch{}}var Qt=Math.clz32?Math.clz32:Fn,oe=Math.log,qn=Math.LN2;function Fn(t){return t>>>=0,t===0?32:31-(oe(t)/qn|0)|0}var en=256,nn=262144,an=4194304;function me(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Si(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var l=0,u=t.suspendedLanes,d=t.pingedLanes;t=t.warmLanes;var y=i&134217727;return y!==0?(i=y&~u,i!==0?l=me(i):(d&=y,d!==0?l=me(d):n||(n=y&~t,n!==0&&(l=me(n))))):(y=i&~u,y!==0?l=me(y):d!==0?l=me(d):n||(n=i&~t,n!==0&&(l=me(n)))),l===0?0:e!==0&&e!==l&&(e&u)===0&&(u=l&-l,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:l}function Pa(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function gr(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fa(){var t=an;return an<<=1,(an&62914560)===0&&(an=4194304),t}function Ti(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ga(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Al(t,e,n,i,l,u){var d=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var y=t.entanglements,M=t.expirationTimes,R=t.hiddenUpdates;for(n=d&~n;0<n;){var G=31-Qt(n),P=1<<G;y[G]=0,M[G]=-1;var V=R[G];if(V!==null)for(R[G]=null,G=0;G<V.length;G++){var k=V[G];k!==null&&(k.lane&=-536870913)}n&=~P}i!==0&&Ml(t,i,0),u!==0&&l===0&&t.tag!==0&&(t.suspendedLanes|=u&~(d&~e))}function Ml(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-Qt(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&261930}function El(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-Qt(n),l=1<<i;l&e|t[i]&e&&(t[i]|=e),n&=~l}}function ps(t,e){var n=e&-e;return n=(n&42)!==0?1:gs(n),(n&(t.suspendedLanes|e))!==0?0:n}function gs(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ys(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function wl(){var t=nt.p;return t!==0?t:(t=window.event,t===void 0?32:wm(t.type))}function jl(t,e){var n=nt.p;try{return nt.p=t,e()}finally{nt.p=n}}var S=Math.random().toString(36).slice(2),q="__reactFiber$"+S,$="__reactProps$"+S,J="__reactContainer$"+S,it="__reactEvents$"+S,vt="__reactListeners$"+S,St="__reactHandles$"+S,zt="__reactResources$"+S,wt="__reactMarker$"+S;function Xt(t){delete t[q],delete t[$],delete t[it],delete t[vt],delete t[St]}function Ht(t){var e=t[q];if(e)return e;for(var n=t.parentNode;n;){if(e=n[J]||n[q]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=cm(t);t!==null;){if(n=t[q])return n;t=cm(t)}return e}t=n,n=t.parentNode}return null}function $t(t){if(t=t[q]||t[J]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function It(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function mt(t){var e=t[zt];return e||(e=t[zt]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function gt(t){t[wt]=!0}var Pt=new Set,Ft={};function ct(t,e){fe(t,e),fe(t+"Capture",e)}function fe(t,e){for(Ft[t]=e,t=0;t<e.length;t++)Pt.add(e[t])}var De=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]*$"),Ve={},Ge={};function $e(t){return pn.call(Ge,t)?!0:pn.call(Ve,t)?!1:De.test(t)?Ge[t]=!0:(Ve[t]=!0,!1)}function he(t,e,n){if($e(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var i=e.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function ya(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function sn(t,e,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+i)}}function Xe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function xs(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Cl(t,e,n){var i=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var l=i.get,u=i.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return l.call(this)},set:function(d){n=""+d,u.call(this,d)}}),Object.defineProperty(t,e,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ai(t){if(!t._valueTracker){var e=xs(t)?"checked":"value";t._valueTracker=Cl(t,e,""+t[e])}}function vs(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=xs(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function Ja(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var ln=/[\n"\\]/g;function xn(t){return t.replace(ln,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function yr(t,e,n,i,l,u,d,y){t.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?t.type=d:t.removeAttribute("type"),e!=null?d==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Xe(e)):t.value!==""+Xe(e)&&(t.value=""+Xe(e)):d!=="submit"&&d!=="reset"||t.removeAttribute("value"),e!=null?xr(t,d,Xe(e)):n!=null?xr(t,d,Xe(n)):i!=null&&t.removeAttribute("value"),l==null&&u!=null&&(t.defaultChecked=!!u),l!=null&&(t.checked=l&&typeof l!="function"&&typeof l!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.name=""+Xe(y):t.removeAttribute("name")}function Ff(t,e,n,i,l,u,d,y){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Ai(t);return}n=n!=null?""+Xe(n):"",e=e!=null?""+Xe(e):n,y||e===t.value||(t.value=e),t.defaultValue=e}i=i??l,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=y?t.checked:!!i,t.defaultChecked=!!i,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(t.name=d),Ai(t)}function xr(t,e,n){e==="number"&&Ja(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Mi(t,e,n,i){if(t=t.options,e){e={};for(var l=0;l<n.length;l++)e["$"+n[l]]=!0;for(n=0;n<t.length;n++)l=e.hasOwnProperty("$"+t[n].value),t[n].selected!==l&&(t[n].selected=l),l&&i&&(t[n].defaultSelected=!0)}else{for(n=""+Xe(n),e=null,l=0;l<t.length;l++){if(t[l].value===n){t[l].selected=!0,i&&(t[l].defaultSelected=!0);return}e!==null||t[l].disabled||(e=t[l])}e!==null&&(e.selected=!0)}}function Jf(t,e,n){if(e!=null&&(e=""+Xe(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Xe(n):""}function Wf(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(r(92));if(jt(i)){if(1<i.length)throw Error(r(93));i=i[0]}n=i}n==null&&(n=""),e=n}n=Xe(e),t.defaultValue=n,i=t.textContent,i===n&&i!==""&&i!==null&&(t.value=i),Ai(t)}function Ei(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var u1=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 If(t,e,n){var i=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":i?t.setProperty(e,n):typeof n!="number"||n===0||u1.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function td(t,e,n){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="");for(var l in e)i=e[l],e.hasOwnProperty(l)&&n[l]!==i&&If(t,l,i)}else for(var u in e)e.hasOwnProperty(u)&&If(t,u,e[u])}function vr(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var c1=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"]]),f1=/^[\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 Nl(t){return f1.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Jn(){}var br=null;function Sr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var wi=null,ji=null;function ed(t){var e=$t(t);if(e&&(t=e.stateNode)){var n=t[$]||null;t:switch(t=e.stateNode,e.type){case"input":if(yr(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+xn(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var l=i[$]||null;if(!l)throw Error(r(90));yr(i,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(e=0;e<n.length;e++)i=n[e],i.form===t.form&&vs(i)}break t;case"textarea":Jf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Mi(t,!!n.multiple,e,!1)}}}var Tr=!1;function nd(t,e,n){if(Tr)return t(e,n);Tr=!0;try{var i=t(e);return i}finally{if(Tr=!1,(wi!==null||ji!==null)&&(yo(),wi&&(e=wi,t=ji,ji=wi=null,ed(e),t)))for(e=0;e<t.length;e++)ed(t[e])}}function bs(t,e){var n=t.stateNode;if(n===null)return null;var i=n[$]||null;if(i===null)return null;n=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(r(231,e,typeof n));return n}var Wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ar=!1;if(Wn)try{var Ss={};Object.defineProperty(Ss,"passive",{get:function(){Ar=!0}}),window.addEventListener("test",Ss,Ss),window.removeEventListener("test",Ss,Ss)}catch{Ar=!1}var xa=null,Mr=null,Dl=null;function ad(){if(Dl)return Dl;var t,e=Mr,n=e.length,i,l="value"in xa?xa.value:xa.textContent,u=l.length;for(t=0;t<n&&e[t]===l[t];t++);var d=n-t;for(i=1;i<=d&&e[n-i]===l[u-i];i++);return Dl=l.slice(t,1<i?1-i:void 0)}function zl(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Rl(){return!0}function id(){return!1}function Pe(t){function e(n,i,l,u,d){this._reactName=n,this._targetInst=l,this.type=i,this.nativeEvent=u,this.target=d,this.currentTarget=null;for(var y in t)t.hasOwnProperty(y)&&(n=t[y],this[y]=n?n(u):u[y]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Rl:id,this.isPropagationStopped=id,this}return x(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Rl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Rl)},persist:function(){},isPersistent:Rl}),e}var Wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ol=Pe(Wa),Ts=x({},Wa,{view:0,detail:0}),d1=Pe(Ts),Er,wr,As,Vl=x({},Ts,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cr,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==As&&(As&&t.type==="mousemove"?(Er=t.screenX-As.screenX,wr=t.screenY-As.screenY):wr=Er=0,As=t),Er)},movementY:function(t){return"movementY"in t?t.movementY:wr}}),sd=Pe(Vl),h1=x({},Vl,{dataTransfer:0}),m1=Pe(h1),p1=x({},Ts,{relatedTarget:0}),jr=Pe(p1),g1=x({},Wa,{animationName:0,elapsedTime:0,pseudoElement:0}),y1=Pe(g1),x1=x({},Wa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),v1=Pe(x1),b1=x({},Wa,{data:0}),ld=Pe(b1),S1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},T1={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"},A1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M1(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=A1[t])?!!e[t]:!1}function Cr(){return M1}var E1=x({},Ts,{key:function(t){if(t.key){var e=S1[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=zl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?T1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cr,charCode:function(t){return t.type==="keypress"?zl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?zl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),w1=Pe(E1),j1=x({},Vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),od=Pe(j1),C1=x({},Ts,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cr}),N1=Pe(C1),D1=x({},Wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),z1=Pe(D1),R1=x({},Vl,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),O1=Pe(R1),V1=x({},Wa,{newState:0,oldState:0}),_1=Pe(V1),k1=[9,13,27,32],Nr=Wn&&"CompositionEvent"in window,Ms=null;Wn&&"documentMode"in document&&(Ms=document.documentMode);var L1=Wn&&"TextEvent"in window&&!Ms,rd=Wn&&(!Nr||Ms&&8<Ms&&11>=Ms),ud=" ",cd=!1;function fd(t,e){switch(t){case"keyup":return k1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ci=!1;function B1(t,e){switch(t){case"compositionend":return dd(e);case"keypress":return e.which!==32?null:(cd=!0,ud);case"textInput":return t=e.data,t===ud&&cd?null:t;default:return null}}function U1(t,e){if(Ci)return t==="compositionend"||!Nr&&fd(t,e)?(t=ad(),Dl=Mr=xa=null,Ci=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return rd&&e.locale!=="ko"?null:e.data;default:return null}}var H1={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 hd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!H1[t.type]:e==="textarea"}function md(t,e,n,i){wi?ji?ji.push(i):ji=[i]:wi=i,e=Mo(e,"onChange"),0<e.length&&(n=new Ol("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var Es=null,ws=null;function q1(t){F0(t,0)}function _l(t){var e=It(t);if(vs(e))return t}function pd(t,e){if(t==="change")return e}var gd=!1;if(Wn){var Dr;if(Wn){var zr="oninput"in document;if(!zr){var yd=document.createElement("div");yd.setAttribute("oninput","return;"),zr=typeof yd.oninput=="function"}Dr=zr}else Dr=!1;gd=Dr&&(!document.documentMode||9<document.documentMode)}function xd(){Es&&(Es.detachEvent("onpropertychange",vd),ws=Es=null)}function vd(t){if(t.propertyName==="value"&&_l(ws)){var e=[];md(e,ws,t,Sr(t)),nd(q1,e)}}function Y1(t,e,n){t==="focusin"?(xd(),Es=e,ws=n,Es.attachEvent("onpropertychange",vd)):t==="focusout"&&xd()}function G1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return _l(ws)}function X1(t,e){if(t==="click")return _l(e)}function K1(t,e){if(t==="input"||t==="change")return _l(e)}function Z1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var on=typeof Object.is=="function"?Object.is:Z1;function js(t,e){if(on(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var l=n[i];if(!pn.call(e,l)||!on(t[l],e[l]))return!1}return!0}function bd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Sd(t,e){var n=bd(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=bd(n)}}function Td(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Td(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Ad(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ja(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Ja(t.document)}return e}function Rr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Q1=Wn&&"documentMode"in document&&11>=document.documentMode,Ni=null,Or=null,Cs=null,Vr=!1;function Md(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vr||Ni==null||Ni!==Ja(i)||(i=Ni,"selectionStart"in i&&Rr(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Cs&&js(Cs,i)||(Cs=i,i=Mo(Or,"onSelect"),0<i.length&&(e=new Ol("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=Ni)))}function Ia(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Di={animationend:Ia("Animation","AnimationEnd"),animationiteration:Ia("Animation","AnimationIteration"),animationstart:Ia("Animation","AnimationStart"),transitionrun:Ia("Transition","TransitionRun"),transitionstart:Ia("Transition","TransitionStart"),transitioncancel:Ia("Transition","TransitionCancel"),transitionend:Ia("Transition","TransitionEnd")},_r={},Ed={};Wn&&(Ed=document.createElement("div").style,"AnimationEvent"in window||(delete Di.animationend.animation,delete Di.animationiteration.animation,delete Di.animationstart.animation),"TransitionEvent"in window||delete Di.transitionend.transition);function ti(t){if(_r[t])return _r[t];if(!Di[t])return t;var e=Di[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Ed)return _r[t]=e[n];return t}var wd=ti("animationend"),jd=ti("animationiteration"),Cd=ti("animationstart"),$1=ti("transitionrun"),P1=ti("transitionstart"),F1=ti("transitioncancel"),Nd=ti("transitionend"),Dd=new Map,kr="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(" ");kr.push("scrollEnd");function zn(t,e){Dd.set(t,e),ct(e,[t])}var kl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},vn=[],zi=0,Lr=0;function Ll(){for(var t=zi,e=Lr=zi=0;e<t;){var n=vn[e];vn[e++]=null;var i=vn[e];vn[e++]=null;var l=vn[e];vn[e++]=null;var u=vn[e];if(vn[e++]=null,i!==null&&l!==null){var d=i.pending;d===null?l.next=l:(l.next=d.next,d.next=l),i.pending=l}u!==0&&zd(n,l,u)}}function Bl(t,e,n,i){vn[zi++]=t,vn[zi++]=e,vn[zi++]=n,vn[zi++]=i,Lr|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function Br(t,e,n,i){return Bl(t,e,n,i),Ul(t)}function ei(t,e){return Bl(t,null,null,e),Ul(t)}function zd(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var l=!1,u=t.return;u!==null;)u.childLanes|=n,i=u.alternate,i!==null&&(i.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(l=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,l&&e!==null&&(l=31-Qt(n),t=u.hiddenUpdates,i=t[l],i===null?t[l]=[e]:i.push(e),e.lane=n|536870912),u):null}function Ul(t){if(50<Fs)throw Fs=0,Qu=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ri={};function J1(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(t,e,n,i){return new J1(t,e,n,i)}function Ur(t){return t=t.prototype,!(!t||!t.isReactComponent)}function In(t,e){var n=t.alternate;return n===null?(n=rn(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Rd(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Hl(t,e,n,i,l,u){var d=0;if(i=t,typeof t=="function")Ur(t)&&(d=1);else if(typeof t=="string")d=nv(t,n,ot.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case W:return t=rn(31,n,e,l),t.elementType=W,t.lanes=u,t;case _:return ni(n.children,l,u,e);case U:d=8,l|=24;break;case Q:return t=rn(12,n,e,l|2),t.elementType=Q,t.lanes=u,t;case st:return t=rn(13,n,e,l),t.elementType=st,t.lanes=u,t;case Y:return t=rn(19,n,e,l),t.elementType=Y,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case z:d=10;break t;case B:d=9;break t;case X:d=11;break t;case F:d=14;break t;case K:d=16,i=null;break t}d=29,n=Error(r(130,t===null?"null":typeof t,"")),i=null}return e=rn(d,n,e,l),e.elementType=t,e.type=i,e.lanes=u,e}function ni(t,e,n,i){return t=rn(7,t,i,e),t.lanes=n,t}function Hr(t,e,n){return t=rn(6,t,null,e),t.lanes=n,t}function Od(t){var e=rn(18,null,null,0);return e.stateNode=t,e}function qr(t,e,n){return e=rn(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Vd=new WeakMap;function bn(t,e){if(typeof t=="object"&&t!==null){var n=Vd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Un(e)},Vd.set(t,e),e)}return{value:t,source:e,stack:Un(e)}}var Oi=[],Vi=0,ql=null,Ns=0,Sn=[],Tn=0,va=null,Yn=1,Gn="";function ta(t,e){Oi[Vi++]=Ns,Oi[Vi++]=ql,ql=t,Ns=e}function _d(t,e,n){Sn[Tn++]=Yn,Sn[Tn++]=Gn,Sn[Tn++]=va,va=t;var i=Yn;t=Gn;var l=32-Qt(i)-1;i&=~(1<<l),n+=1;var u=32-Qt(e)+l;if(30<u){var d=l-l%5;u=(i&(1<<d)-1).toString(32),i>>=d,l-=d,Yn=1<<32-Qt(e)+l|n<<l|i,Gn=u+t}else Yn=1<<u|n<<l|i,Gn=t}function Yr(t){t.return!==null&&(ta(t,1),_d(t,1,0))}function Gr(t){for(;t===ql;)ql=Oi[--Vi],Oi[Vi]=null,Ns=Oi[--Vi],Oi[Vi]=null;for(;t===va;)va=Sn[--Tn],Sn[Tn]=null,Gn=Sn[--Tn],Sn[Tn]=null,Yn=Sn[--Tn],Sn[Tn]=null}function kd(t,e){Sn[Tn++]=Yn,Sn[Tn++]=Gn,Sn[Tn++]=va,Yn=e.id,Gn=e.overflow,va=t}var _e=null,ue=null,Ut=!1,ba=null,An=!1,Xr=Error(r(519));function Sa(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ds(bn(e,t)),Xr}function Ld(t){var e=t.stateNode,n=t.type,i=t.memoizedProps;switch(e[q]=t,e[$]=i,n){case"dialog":_t("cancel",e),_t("close",e);break;case"iframe":case"object":case"embed":_t("load",e);break;case"video":case"audio":for(n=0;n<Ws.length;n++)_t(Ws[n],e);break;case"source":_t("error",e);break;case"img":case"image":case"link":_t("error",e),_t("load",e);break;case"details":_t("toggle",e);break;case"input":_t("invalid",e),Ff(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":_t("invalid",e);break;case"textarea":_t("invalid",e),Wf(e,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||i.suppressHydrationWarning===!0||tm(e.textContent,n)?(i.popover!=null&&(_t("beforetoggle",e),_t("toggle",e)),i.onScroll!=null&&_t("scroll",e),i.onScrollEnd!=null&&_t("scrollend",e),i.onClick!=null&&(e.onclick=Jn),e=!0):e=!1,e||Sa(t,!0)}function Bd(t){for(_e=t.return;_e;)switch(_e.tag){case 5:case 31:case 13:An=!1;return;case 27:case 3:An=!0;return;default:_e=_e.return}}function _i(t){if(t!==_e)return!1;if(!Ut)return Bd(t),Ut=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||rc(t.type,t.memoizedProps)),n=!n),n&&ue&&Sa(t),Bd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));ue=um(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));ue=um(t)}else e===27?(e=ue,_a(t.type)?(t=hc,hc=null,ue=t):ue=e):ue=_e?En(t.stateNode.nextSibling):null;return!0}function ai(){ue=_e=null,Ut=!1}function Kr(){var t=ba;return t!==null&&(Ie===null?Ie=t:Ie.push.apply(Ie,t),ba=null),t}function Ds(t){ba===null?ba=[t]:ba.push(t)}var Zr=T(null),ii=null,ea=null;function Ta(t,e,n){at(Zr,e._currentValue),e._currentValue=n}function na(t){t._currentValue=Zr.current,L(Zr)}function Qr(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function $r(t,e,n,i){var l=t.child;for(l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){var d=l.child;u=u.firstContext;t:for(;u!==null;){var y=u;u=l;for(var M=0;M<e.length;M++)if(y.context===e[M]){u.lanes|=n,y=u.alternate,y!==null&&(y.lanes|=n),Qr(u.return,n,t),i||(d=null);break t}u=y.next}}else if(l.tag===18){if(d=l.return,d===null)throw Error(r(341));d.lanes|=n,u=d.alternate,u!==null&&(u.lanes|=n),Qr(d,n,t),d=null}else d=l.child;if(d!==null)d.return=l;else for(d=l;d!==null;){if(d===t){d=null;break}if(l=d.sibling,l!==null){l.return=d.return,d=l;break}d=d.return}l=d}}function ki(t,e,n,i){t=null;for(var l=e,u=!1;l!==null;){if(!u){if((l.flags&524288)!==0)u=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var d=l.alternate;if(d===null)throw Error(r(387));if(d=d.memoizedProps,d!==null){var y=l.type;on(l.pendingProps.value,d.value)||(t!==null?t.push(y):t=[y])}}else if(l===Bt.current){if(d=l.alternate,d===null)throw Error(r(387));d.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(t!==null?t.push(al):t=[al])}l=l.return}t!==null&&$r(e,t,n,i),e.flags|=262144}function Yl(t){for(t=t.firstContext;t!==null;){if(!on(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function si(t){ii=t,ea=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ke(t){return Ud(ii,t)}function Gl(t,e){return ii===null&&si(t),Ud(t,e)}function Ud(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},ea===null){if(t===null)throw Error(r(308));ea=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ea=ea.next=e;return n}var W1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},I1=a.unstable_scheduleCallback,tx=a.unstable_NormalPriority,be={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pr(){return{controller:new W1,data:new Map,refCount:0}}function zs(t){t.refCount--,t.refCount===0&&I1(tx,function(){t.controller.abort()})}var Rs=null,Fr=0,Li=0,Bi=null;function ex(t,e){if(Rs===null){var n=Rs=[];Fr=0,Li=Iu(),Bi={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Fr++,e.then(Hd,Hd),e}function Hd(){if(--Fr===0&&Rs!==null){Bi!==null&&(Bi.status="fulfilled");var t=Rs;Rs=null,Li=0,Bi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function nx(t,e){var n=[],i={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return t.then(function(){i.status="fulfilled",i.value=e;for(var l=0;l<n.length;l++)(0,n[l])(e)},function(l){for(i.status="rejected",i.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),i}var qd=N.S;N.S=function(t,e){M0=Ce(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&ex(t,e),qd!==null&&qd(t,e)};var li=T(null);function Jr(){var t=li.current;return t!==null?t:ie.pooledCache}function Xl(t,e){e===null?at(li,li.current):at(li,e.pool)}function Yd(){var t=Jr();return t===null?null:{parent:be._currentValue,pool:t}}var Ui=Error(r(460)),Wr=Error(r(474)),Kl=Error(r(542)),Zl={then:function(){}};function Gd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Xd(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Jn,Jn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Zd(t),t;default:if(typeof e.status=="string")e.then(Jn,Jn);else{if(t=ie,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(i){if(e.status==="pending"){var l=e;l.status="fulfilled",l.value=i}},function(i){if(e.status==="pending"){var l=e;l.status="rejected",l.reason=i}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Zd(t),t}throw ri=e,Ui}}function oi(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ri=n,Ui):n}}var ri=null;function Kd(){if(ri===null)throw Error(r(459));var t=ri;return ri=null,t}function Zd(t){if(t===Ui||t===Kl)throw Error(r(483))}var Hi=null,Os=0;function Ql(t){var e=Os;return Os+=1,Hi===null&&(Hi=[]),Xd(Hi,t,e)}function Vs(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function $l(t,e){throw e.$$typeof===A?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Qd(t){function e(j,w){if(t){var D=j.deletions;D===null?(j.deletions=[w],j.flags|=16):D.push(w)}}function n(j,w){if(!t)return null;for(;w!==null;)e(j,w),w=w.sibling;return null}function i(j){for(var w=new Map;j!==null;)j.key!==null?w.set(j.key,j):w.set(j.index,j),j=j.sibling;return w}function l(j,w){return j=In(j,w),j.index=0,j.sibling=null,j}function u(j,w,D){return j.index=D,t?(D=j.alternate,D!==null?(D=D.index,D<w?(j.flags|=67108866,w):D):(j.flags|=67108866,w)):(j.flags|=1048576,w)}function d(j){return t&&j.alternate===null&&(j.flags|=67108866),j}function y(j,w,D,Z){return w===null||w.tag!==6?(w=Hr(D,j.mode,Z),w.return=j,w):(w=l(w,D),w.return=j,w)}function M(j,w,D,Z){var xt=D.type;return xt===_?G(j,w,D.props.children,Z,D.key):w!==null&&(w.elementType===xt||typeof xt=="object"&&xt!==null&&xt.$$typeof===K&&oi(xt)===w.type)?(w=l(w,D.props),Vs(w,D),w.return=j,w):(w=Hl(D.type,D.key,D.props,null,j.mode,Z),Vs(w,D),w.return=j,w)}function R(j,w,D,Z){return w===null||w.tag!==4||w.stateNode.containerInfo!==D.containerInfo||w.stateNode.implementation!==D.implementation?(w=qr(D,j.mode,Z),w.return=j,w):(w=l(w,D.children||[]),w.return=j,w)}function G(j,w,D,Z,xt){return w===null||w.tag!==7?(w=ni(D,j.mode,Z,xt),w.return=j,w):(w=l(w,D),w.return=j,w)}function P(j,w,D){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=Hr(""+w,j.mode,D),w.return=j,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case E:return D=Hl(w.type,w.key,w.props,null,j.mode,D),Vs(D,w),D.return=j,D;case O:return w=qr(w,j.mode,D),w.return=j,w;case K:return w=oi(w),P(j,w,D)}if(jt(w)||ft(w))return w=ni(w,j.mode,D,null),w.return=j,w;if(typeof w.then=="function")return P(j,Ql(w),D);if(w.$$typeof===z)return P(j,Gl(j,w),D);$l(j,w)}return null}function V(j,w,D,Z){var xt=w!==null?w.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return xt!==null?null:y(j,w,""+D,Z);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case E:return D.key===xt?M(j,w,D,Z):null;case O:return D.key===xt?R(j,w,D,Z):null;case K:return D=oi(D),V(j,w,D,Z)}if(jt(D)||ft(D))return xt!==null?null:G(j,w,D,Z,null);if(typeof D.then=="function")return V(j,w,Ql(D),Z);if(D.$$typeof===z)return V(j,w,Gl(j,D),Z);$l(j,D)}return null}function k(j,w,D,Z,xt){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return j=j.get(D)||null,y(w,j,""+Z,xt);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case E:return j=j.get(Z.key===null?D:Z.key)||null,M(w,j,Z,xt);case O:return j=j.get(Z.key===null?D:Z.key)||null,R(w,j,Z,xt);case K:return Z=oi(Z),k(j,w,D,Z,xt)}if(jt(Z)||ft(Z))return j=j.get(D)||null,G(w,j,Z,xt,null);if(typeof Z.then=="function")return k(j,w,D,Ql(Z),xt);if(Z.$$typeof===z)return k(j,w,D,Gl(w,Z),xt);$l(w,Z)}return null}function rt(j,w,D,Z){for(var xt=null,qt=null,ht=w,Dt=w=0,Lt=null;ht!==null&&Dt<D.length;Dt++){ht.index>Dt?(Lt=ht,ht=null):Lt=ht.sibling;var Yt=V(j,ht,D[Dt],Z);if(Yt===null){ht===null&&(ht=Lt);break}t&&ht&&Yt.alternate===null&&e(j,ht),w=u(Yt,w,Dt),qt===null?xt=Yt:qt.sibling=Yt,qt=Yt,ht=Lt}if(Dt===D.length)return n(j,ht),Ut&&ta(j,Dt),xt;if(ht===null){for(;Dt<D.length;Dt++)ht=P(j,D[Dt],Z),ht!==null&&(w=u(ht,w,Dt),qt===null?xt=ht:qt.sibling=ht,qt=ht);return Ut&&ta(j,Dt),xt}for(ht=i(ht);Dt<D.length;Dt++)Lt=k(ht,j,Dt,D[Dt],Z),Lt!==null&&(t&&Lt.alternate!==null&&ht.delete(Lt.key===null?Dt:Lt.key),w=u(Lt,w,Dt),qt===null?xt=Lt:qt.sibling=Lt,qt=Lt);return t&&ht.forEach(function(Ha){return e(j,Ha)}),Ut&&ta(j,Dt),xt}function bt(j,w,D,Z){if(D==null)throw Error(r(151));for(var xt=null,qt=null,ht=w,Dt=w=0,Lt=null,Yt=D.next();ht!==null&&!Yt.done;Dt++,Yt=D.next()){ht.index>Dt?(Lt=ht,ht=null):Lt=ht.sibling;var Ha=V(j,ht,Yt.value,Z);if(Ha===null){ht===null&&(ht=Lt);break}t&&ht&&Ha.alternate===null&&e(j,ht),w=u(Ha,w,Dt),qt===null?xt=Ha:qt.sibling=Ha,qt=Ha,ht=Lt}if(Yt.done)return n(j,ht),Ut&&ta(j,Dt),xt;if(ht===null){for(;!Yt.done;Dt++,Yt=D.next())Yt=P(j,Yt.value,Z),Yt!==null&&(w=u(Yt,w,Dt),qt===null?xt=Yt:qt.sibling=Yt,qt=Yt);return Ut&&ta(j,Dt),xt}for(ht=i(ht);!Yt.done;Dt++,Yt=D.next())Yt=k(ht,j,Dt,Yt.value,Z),Yt!==null&&(t&&Yt.alternate!==null&&ht.delete(Yt.key===null?Dt:Yt.key),w=u(Yt,w,Dt),qt===null?xt=Yt:qt.sibling=Yt,qt=Yt);return t&&ht.forEach(function(hv){return e(j,hv)}),Ut&&ta(j,Dt),xt}function ne(j,w,D,Z){if(typeof D=="object"&&D!==null&&D.type===_&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case E:t:{for(var xt=D.key;w!==null;){if(w.key===xt){if(xt=D.type,xt===_){if(w.tag===7){n(j,w.sibling),Z=l(w,D.props.children),Z.return=j,j=Z;break t}}else if(w.elementType===xt||typeof xt=="object"&&xt!==null&&xt.$$typeof===K&&oi(xt)===w.type){n(j,w.sibling),Z=l(w,D.props),Vs(Z,D),Z.return=j,j=Z;break t}n(j,w);break}else e(j,w);w=w.sibling}D.type===_?(Z=ni(D.props.children,j.mode,Z,D.key),Z.return=j,j=Z):(Z=Hl(D.type,D.key,D.props,null,j.mode,Z),Vs(Z,D),Z.return=j,j=Z)}return d(j);case O:t:{for(xt=D.key;w!==null;){if(w.key===xt)if(w.tag===4&&w.stateNode.containerInfo===D.containerInfo&&w.stateNode.implementation===D.implementation){n(j,w.sibling),Z=l(w,D.children||[]),Z.return=j,j=Z;break t}else{n(j,w);break}else e(j,w);w=w.sibling}Z=qr(D,j.mode,Z),Z.return=j,j=Z}return d(j);case K:return D=oi(D),ne(j,w,D,Z)}if(jt(D))return rt(j,w,D,Z);if(ft(D)){if(xt=ft(D),typeof xt!="function")throw Error(r(150));return D=xt.call(D),bt(j,w,D,Z)}if(typeof D.then=="function")return ne(j,w,Ql(D),Z);if(D.$$typeof===z)return ne(j,w,Gl(j,D),Z);$l(j,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,w!==null&&w.tag===6?(n(j,w.sibling),Z=l(w,D),Z.return=j,j=Z):(n(j,w),Z=Hr(D,j.mode,Z),Z.return=j,j=Z),d(j)):n(j,w)}return function(j,w,D,Z){try{Os=0;var xt=ne(j,w,D,Z);return Hi=null,xt}catch(ht){if(ht===Ui||ht===Kl)throw ht;var qt=rn(29,ht,null,j.mode);return qt.lanes=Z,qt.return=j,qt}}}var ui=Qd(!0),$d=Qd(!1),Aa=!1;function Ir(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tu(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Ma(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ea(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(Gt&2)!==0){var l=i.pending;return l===null?e.next=e:(e.next=l.next,l.next=e),i.pending=e,e=Ul(t),zd(t,null,n),e}return Bl(t,i,e,n),Ul(t)}function _s(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,El(t,n)}}function eu(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var l=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?l=u=d:u=u.next=d,n=n.next}while(n!==null);u===null?l=u=e:u=u.next=e}else l=u=e;n={baseState:i.baseState,firstBaseUpdate:l,lastBaseUpdate:u,shared:i.shared,callbacks:i.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var nu=!1;function ks(){if(nu){var t=Bi;if(t!==null)throw t}}function Ls(t,e,n,i){nu=!1;var l=t.updateQueue;Aa=!1;var u=l.firstBaseUpdate,d=l.lastBaseUpdate,y=l.shared.pending;if(y!==null){l.shared.pending=null;var M=y,R=M.next;M.next=null,d===null?u=R:d.next=R,d=M;var G=t.alternate;G!==null&&(G=G.updateQueue,y=G.lastBaseUpdate,y!==d&&(y===null?G.firstBaseUpdate=R:y.next=R,G.lastBaseUpdate=M))}if(u!==null){var P=l.baseState;d=0,G=R=M=null,y=u;do{var V=y.lane&-536870913,k=V!==y.lane;if(k?(kt&V)===V:(i&V)===V){V!==0&&V===Li&&(nu=!0),G!==null&&(G=G.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var rt=t,bt=y;V=e;var ne=n;switch(bt.tag){case 1:if(rt=bt.payload,typeof rt=="function"){P=rt.call(ne,P,V);break t}P=rt;break t;case 3:rt.flags=rt.flags&-65537|128;case 0:if(rt=bt.payload,V=typeof rt=="function"?rt.call(ne,P,V):rt,V==null)break t;P=x({},P,V);break t;case 2:Aa=!0}}V=y.callback,V!==null&&(t.flags|=64,k&&(t.flags|=8192),k=l.callbacks,k===null?l.callbacks=[V]:k.push(V))}else k={lane:V,tag:y.tag,payload:y.payload,callback:y.callback,next:null},G===null?(R=G=k,M=P):G=G.next=k,d|=V;if(y=y.next,y===null){if(y=l.shared.pending,y===null)break;k=y,y=k.next,k.next=null,l.lastBaseUpdate=k,l.shared.pending=null}}while(!0);G===null&&(M=P),l.baseState=M,l.firstBaseUpdate=R,l.lastBaseUpdate=G,u===null&&(l.shared.lanes=0),Da|=d,t.lanes=d,t.memoizedState=P}}function Pd(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Fd(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Pd(n[t],e)}var qi=T(null),Pl=T(0);function Jd(t,e){t=fa,at(Pl,t),at(qi,e),fa=t|e.baseLanes}function au(){at(Pl,fa),at(qi,qi.current)}function iu(){fa=Pl.current,L(qi),L(Pl)}var un=T(null),Mn=null;function wa(t){var e=t.alternate;at(xe,xe.current&1),at(un,t),Mn===null&&(e===null||qi.current!==null||e.memoizedState!==null)&&(Mn=t)}function su(t){at(xe,xe.current),at(un,t),Mn===null&&(Mn=t)}function Wd(t){t.tag===22?(at(xe,xe.current),at(un,t),Mn===null&&(Mn=t)):ja()}function ja(){at(xe,xe.current),at(un,un.current)}function cn(t){L(un),Mn===t&&(Mn=null),L(xe)}var xe=T(0);function Fl(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||fc(n)||dc(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var aa=0,Nt=null,te=null,Se=null,Jl=!1,Yi=!1,ci=!1,Wl=0,Bs=0,Gi=null,ax=0;function pe(){throw Error(r(321))}function lu(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!on(t[n],e[n]))return!1;return!0}function ou(t,e,n,i,l,u){return aa=u,Nt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,N.H=t===null||t.memoizedState===null?_h:Tu,ci=!1,u=n(i,l),ci=!1,Yi&&(u=th(e,n,i,l)),Id(t),u}function Id(t){N.H=qs;var e=te!==null&&te.next!==null;if(aa=0,Se=te=Nt=null,Jl=!1,Bs=0,Gi=null,e)throw Error(r(300));t===null||Te||(t=t.dependencies,t!==null&&Yl(t)&&(Te=!0))}function th(t,e,n,i){Nt=t;var l=0;do{if(Yi&&(Gi=null),Bs=0,Yi=!1,25<=l)throw Error(r(301));if(l+=1,Se=te=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}N.H=kh,u=e(n,i)}while(Yi);return u}function ix(){var t=N.H,e=t.useState()[0];return e=typeof e.then=="function"?Us(e):e,t=t.useState()[0],(te!==null?te.memoizedState:null)!==t&&(Nt.flags|=1024),e}function ru(){var t=Wl!==0;return Wl=0,t}function uu(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function cu(t){if(Jl){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Jl=!1}aa=0,Se=te=Nt=null,Yi=!1,Bs=Wl=0,Gi=null}function Ke(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Se===null?Nt.memoizedState=Se=t:Se=Se.next=t,Se}function ve(){if(te===null){var t=Nt.alternate;t=t!==null?t.memoizedState:null}else t=te.next;var e=Se===null?Nt.memoizedState:Se.next;if(e!==null)Se=e,te=t;else{if(t===null)throw Nt.alternate===null?Error(r(467)):Error(r(310));te=t,t={memoizedState:te.memoizedState,baseState:te.baseState,baseQueue:te.baseQueue,queue:te.queue,next:null},Se===null?Nt.memoizedState=Se=t:Se=Se.next=t}return Se}function Il(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Us(t){var e=Bs;return Bs+=1,Gi===null&&(Gi=[]),t=Xd(Gi,t,e),e=Nt,(Se===null?e.memoizedState:Se.next)===null&&(e=e.alternate,N.H=e===null||e.memoizedState===null?_h:Tu),t}function to(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Us(t);if(t.$$typeof===z)return ke(t)}throw Error(r(438,String(t)))}function fu(t){var e=null,n=Nt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=Nt.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(l){return l.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Il(),Nt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),i=0;i<t;i++)n[i]=I;return e.index++,n}function ia(t,e){return typeof e=="function"?e(t):e}function eo(t){var e=ve();return du(e,te,t)}function du(t,e,n){var i=t.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var l=t.baseQueue,u=i.pending;if(u!==null){if(l!==null){var d=l.next;l.next=u.next,u.next=d}e.baseQueue=l=u,i.pending=null}if(u=t.baseState,l===null)t.memoizedState=u;else{e=l.next;var y=d=null,M=null,R=e,G=!1;do{var P=R.lane&-536870913;if(P!==R.lane?(kt&P)===P:(aa&P)===P){var V=R.revertLane;if(V===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),P===Li&&(G=!0);else if((aa&V)===V){R=R.next,V===Li&&(G=!0);continue}else P={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},M===null?(y=M=P,d=u):M=M.next=P,Nt.lanes|=V,Da|=V;P=R.action,ci&&n(u,P),u=R.hasEagerState?R.eagerState:n(u,P)}else V={lane:P,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},M===null?(y=M=V,d=u):M=M.next=V,Nt.lanes|=P,Da|=P;R=R.next}while(R!==null&&R!==e);if(M===null?d=u:M.next=y,!on(u,t.memoizedState)&&(Te=!0,G&&(n=Bi,n!==null)))throw n;t.memoizedState=u,t.baseState=d,t.baseQueue=M,i.lastRenderedState=u}return l===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function hu(t){var e=ve(),n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=t;var i=n.dispatch,l=n.pending,u=e.memoizedState;if(l!==null){n.pending=null;var d=l=l.next;do u=t(u,d.action),d=d.next;while(d!==l);on(u,e.memoizedState)||(Te=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,i]}function eh(t,e,n){var i=Nt,l=ve(),u=Ut;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=e();var d=!on((te||l).memoizedState,n);if(d&&(l.memoizedState=n,Te=!0),l=l.queue,gu(ih.bind(null,i,l,t),[t]),l.getSnapshot!==e||d||Se!==null&&Se.memoizedState.tag&1){if(i.flags|=2048,Xi(9,{destroy:void 0},ah.bind(null,i,l,n,e),null),ie===null)throw Error(r(349));u||(aa&127)!==0||nh(i,e,n)}return n}function nh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Nt.updateQueue,e===null?(e=Il(),Nt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function ah(t,e,n,i){e.value=n,e.getSnapshot=i,sh(e)&&lh(t)}function ih(t,e,n){return n(function(){sh(e)&&lh(t)})}function sh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!on(t,n)}catch{return!0}}function lh(t){var e=ei(t,2);e!==null&&tn(e,t,2)}function mu(t){var e=Ke();if(typeof t=="function"){var n=t;if(t=n(),ci){Ne(!0);try{n()}finally{Ne(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:t},e}function oh(t,e,n,i){return t.baseState=n,du(t,te,typeof i=="function"?i:ia)}function sx(t,e,n,i,l){if(io(t))throw Error(r(485));if(t=e.action,t!==null){var u={payload:l,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){u.listeners.push(d)}};N.T!==null?n(!0):u.isTransition=!1,i(u),n=e.pending,n===null?(u.next=e.pending=u,rh(e,u)):(u.next=n.next,e.pending=n.next=u)}}function rh(t,e){var n=e.action,i=e.payload,l=t.state;if(e.isTransition){var u=N.T,d={};N.T=d;try{var y=n(l,i),M=N.S;M!==null&&M(d,y),uh(t,e,y)}catch(R){pu(t,e,R)}finally{u!==null&&d.types!==null&&(u.types=d.types),N.T=u}}else try{u=n(l,i),uh(t,e,u)}catch(R){pu(t,e,R)}}function uh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){ch(t,e,i)},function(i){return pu(t,e,i)}):ch(t,e,n)}function ch(t,e,n){e.status="fulfilled",e.value=n,fh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,rh(t,n)))}function pu(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=n,fh(e),e=e.next;while(e!==i)}t.action=null}function fh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function dh(t,e){return e}function hh(t,e){if(Ut){var n=ie.formState;if(n!==null){t:{var i=Nt;if(Ut){if(ue){e:{for(var l=ue,u=An;l.nodeType!==8;){if(!u){l=null;break e}if(l=En(l.nextSibling),l===null){l=null;break e}}u=l.data,l=u==="F!"||u==="F"?l:null}if(l){ue=En(l.nextSibling),i=l.data==="F!";break t}}Sa(i)}i=!1}i&&(e=n[0])}}return n=Ke(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dh,lastRenderedState:e},n.queue=i,n=Rh.bind(null,Nt,i),i.dispatch=n,i=mu(!1),u=Su.bind(null,Nt,!1,i.queue),i=Ke(),l={state:e,dispatch:null,action:t,pending:null},i.queue=l,n=sx.bind(null,Nt,l,u,n),l.dispatch=n,i.memoizedState=t,[e,n,!1]}function mh(t){var e=ve();return ph(e,te,t)}function ph(t,e,n){if(e=du(t,e,dh)[0],t=eo(ia)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=Us(e)}catch(d){throw d===Ui?Kl:d}else i=e;e=ve();var l=e.queue,u=l.dispatch;return n!==e.memoizedState&&(Nt.flags|=2048,Xi(9,{destroy:void 0},lx.bind(null,l,n),null)),[i,u,t]}function lx(t,e){t.action=e}function gh(t){var e=ve(),n=te;if(n!==null)return ph(e,n,t);ve(),e=e.memoizedState,n=ve();var i=n.queue.dispatch;return n.memoizedState=t,[e,i,!1]}function Xi(t,e,n,i){return t={tag:t,create:n,deps:i,inst:e,next:null},e=Nt.updateQueue,e===null&&(e=Il(),Nt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function yh(){return ve().memoizedState}function no(t,e,n,i){var l=Ke();Nt.flags|=t,l.memoizedState=Xi(1|e,{destroy:void 0},n,i===void 0?null:i)}function ao(t,e,n,i){var l=ve();i=i===void 0?null:i;var u=l.memoizedState.inst;te!==null&&i!==null&&lu(i,te.memoizedState.deps)?l.memoizedState=Xi(e,u,n,i):(Nt.flags|=t,l.memoizedState=Xi(1|e,u,n,i))}function xh(t,e){no(8390656,8,t,e)}function gu(t,e){ao(2048,8,t,e)}function ox(t){Nt.flags|=4;var e=Nt.updateQueue;if(e===null)e=Il(),Nt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function vh(t){var e=ve().memoizedState;return ox({ref:e,nextImpl:t}),function(){if((Gt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function bh(t,e){return ao(4,2,t,e)}function Sh(t,e){return ao(4,4,t,e)}function Th(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Ah(t,e,n){n=n!=null?n.concat([t]):null,ao(4,4,Th.bind(null,e,t),n)}function yu(){}function Mh(t,e){var n=ve();e=e===void 0?null:e;var i=n.memoizedState;return e!==null&&lu(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function Eh(t,e){var n=ve();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&lu(e,i[1]))return i[0];if(i=t(),ci){Ne(!0);try{t()}finally{Ne(!1)}}return n.memoizedState=[i,e],i}function xu(t,e,n){return n===void 0||(aa&1073741824)!==0&&(kt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=w0(),Nt.lanes|=t,Da|=t,n)}function wh(t,e,n,i){return on(n,e)?n:qi.current!==null?(t=xu(t,n,i),on(t,e)||(Te=!0),t):(aa&42)===0||(aa&1073741824)!==0&&(kt&261930)===0?(Te=!0,t.memoizedState=n):(t=w0(),Nt.lanes|=t,Da|=t,e)}function jh(t,e,n,i,l){var u=nt.p;nt.p=u!==0&&8>u?u:8;var d=N.T,y={};N.T=y,Su(t,!1,e,n);try{var M=l(),R=N.S;if(R!==null&&R(y,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var G=nx(M,i);Hs(t,e,G,hn(t))}else Hs(t,e,i,hn(t))}catch(P){Hs(t,e,{then:function(){},status:"rejected",reason:P},hn())}finally{nt.p=u,d!==null&&y.types!==null&&(d.types=y.types),N.T=d}}function rx(){}function vu(t,e,n,i){if(t.tag!==5)throw Error(r(476));var l=Ch(t).queue;jh(t,l,e,et,n===null?rx:function(){return Nh(t),n(i)})}function Ch(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:et,baseState:et,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:et},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Nh(t){var e=Ch(t);e.next===null&&(e=t.alternate.memoizedState),Hs(t,e.next.queue,{},hn())}function bu(){return ke(al)}function Dh(){return ve().memoizedState}function zh(){return ve().memoizedState}function ux(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=hn();t=Ma(n);var i=Ea(e,t,n);i!==null&&(tn(i,e,n),_s(i,e,n)),e={cache:Pr()},t.payload=e;return}e=e.return}}function cx(t,e,n){var i=hn();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},io(t)?Oh(e,n):(n=Br(t,e,n,i),n!==null&&(tn(n,t,i),Vh(n,e,i)))}function Rh(t,e,n){var i=hn();Hs(t,e,n,i)}function Hs(t,e,n,i){var l={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(io(t))Oh(e,l);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var d=e.lastRenderedState,y=u(d,n);if(l.hasEagerState=!0,l.eagerState=y,on(y,d))return Bl(t,e,l,0),ie===null&&Ll(),!1}catch{}if(n=Br(t,e,l,i),n!==null)return tn(n,t,i),Vh(n,e,i),!0}return!1}function Su(t,e,n,i){if(i={lane:2,revertLane:Iu(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},io(t)){if(e)throw Error(r(479))}else e=Br(t,n,i,2),e!==null&&tn(e,t,2)}function io(t){var e=t.alternate;return t===Nt||e!==null&&e===Nt}function Oh(t,e){Yi=Jl=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Vh(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,El(t,n)}}var qs={readContext:ke,use:to,useCallback:pe,useContext:pe,useEffect:pe,useImperativeHandle:pe,useLayoutEffect:pe,useInsertionEffect:pe,useMemo:pe,useReducer:pe,useRef:pe,useState:pe,useDebugValue:pe,useDeferredValue:pe,useTransition:pe,useSyncExternalStore:pe,useId:pe,useHostTransitionStatus:pe,useFormState:pe,useActionState:pe,useOptimistic:pe,useMemoCache:pe,useCacheRefresh:pe};qs.useEffectEvent=pe;var _h={readContext:ke,use:to,useCallback:function(t,e){return Ke().memoizedState=[t,e===void 0?null:e],t},useContext:ke,useEffect:xh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,no(4194308,4,Th.bind(null,e,t),n)},useLayoutEffect:function(t,e){return no(4194308,4,t,e)},useInsertionEffect:function(t,e){no(4,2,t,e)},useMemo:function(t,e){var n=Ke();e=e===void 0?null:e;var i=t();if(ci){Ne(!0);try{t()}finally{Ne(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=Ke();if(n!==void 0){var l=n(e);if(ci){Ne(!0);try{n(e)}finally{Ne(!1)}}}else l=e;return i.memoizedState=i.baseState=l,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:l},i.queue=t,t=t.dispatch=cx.bind(null,Nt,t),[i.memoizedState,t]},useRef:function(t){var e=Ke();return t={current:t},e.memoizedState=t},useState:function(t){t=mu(t);var e=t.queue,n=Rh.bind(null,Nt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:yu,useDeferredValue:function(t,e){var n=Ke();return xu(n,t,e)},useTransition:function(){var t=mu(!1);return t=jh.bind(null,Nt,t.queue,!0,!1),Ke().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=Nt,l=Ke();if(Ut){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),ie===null)throw Error(r(349));(kt&127)!==0||nh(i,e,n)}l.memoizedState=n;var u={value:n,getSnapshot:e};return l.queue=u,xh(ih.bind(null,i,u,t),[t]),i.flags|=2048,Xi(9,{destroy:void 0},ah.bind(null,i,u,n,e),null),n},useId:function(){var t=Ke(),e=ie.identifierPrefix;if(Ut){var n=Gn,i=Yn;n=(i&~(1<<32-Qt(i)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Wl++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=ax++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:bu,useFormState:hh,useActionState:hh,useOptimistic:function(t){var e=Ke();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Su.bind(null,Nt,!0,n),n.dispatch=e,[t,e]},useMemoCache:fu,useCacheRefresh:function(){return Ke().memoizedState=ux.bind(null,Nt)},useEffectEvent:function(t){var e=Ke(),n={impl:t};return e.memoizedState=n,function(){if((Gt&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Tu={readContext:ke,use:to,useCallback:Mh,useContext:ke,useEffect:gu,useImperativeHandle:Ah,useInsertionEffect:bh,useLayoutEffect:Sh,useMemo:Eh,useReducer:eo,useRef:yh,useState:function(){return eo(ia)},useDebugValue:yu,useDeferredValue:function(t,e){var n=ve();return wh(n,te.memoizedState,t,e)},useTransition:function(){var t=eo(ia)[0],e=ve().memoizedState;return[typeof t=="boolean"?t:Us(t),e]},useSyncExternalStore:eh,useId:Dh,useHostTransitionStatus:bu,useFormState:mh,useActionState:mh,useOptimistic:function(t,e){var n=ve();return oh(n,te,t,e)},useMemoCache:fu,useCacheRefresh:zh};Tu.useEffectEvent=vh;var kh={readContext:ke,use:to,useCallback:Mh,useContext:ke,useEffect:gu,useImperativeHandle:Ah,useInsertionEffect:bh,useLayoutEffect:Sh,useMemo:Eh,useReducer:hu,useRef:yh,useState:function(){return hu(ia)},useDebugValue:yu,useDeferredValue:function(t,e){var n=ve();return te===null?xu(n,t,e):wh(n,te.memoizedState,t,e)},useTransition:function(){var t=hu(ia)[0],e=ve().memoizedState;return[typeof t=="boolean"?t:Us(t),e]},useSyncExternalStore:eh,useId:Dh,useHostTransitionStatus:bu,useFormState:gh,useActionState:gh,useOptimistic:function(t,e){var n=ve();return te!==null?oh(n,te,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:fu,useCacheRefresh:zh};kh.useEffectEvent=vh;function Au(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:x({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Mu={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=hn(),l=Ma(i);l.payload=e,n!=null&&(l.callback=n),e=Ea(t,l,i),e!==null&&(tn(e,t,i),_s(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=hn(),l=Ma(i);l.tag=1,l.payload=e,n!=null&&(l.callback=n),e=Ea(t,l,i),e!==null&&(tn(e,t,i),_s(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=hn(),i=Ma(n);i.tag=2,e!=null&&(i.callback=e),e=Ea(t,i,n),e!==null&&(tn(e,t,n),_s(e,t,n))}};function Lh(t,e,n,i,l,u,d){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,u,d):e.prototype&&e.prototype.isPureReactComponent?!js(n,i)||!js(l,u):!0}function Bh(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&Mu.enqueueReplaceState(e,e.state,null)}function fi(t,e){var n=e;if("ref"in e){n={};for(var i in e)i!=="ref"&&(n[i]=e[i])}if(t=t.defaultProps){n===e&&(n=x({},n));for(var l in t)n[l]===void 0&&(n[l]=t[l])}return n}function Uh(t){kl(t)}function Hh(t){console.error(t)}function qh(t){kl(t)}function so(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function Yh(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Eu(t,e,n){return n=Ma(n),n.tag=3,n.payload={element:null},n.callback=function(){so(t,e)},n}function Gh(t){return t=Ma(t),t.tag=3,t}function Xh(t,e,n,i){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var u=i.value;t.payload=function(){return l(u)},t.callback=function(){Yh(e,n,i)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(t.callback=function(){Yh(e,n,i),typeof l!="function"&&(za===null?za=new Set([this]):za.add(this));var y=i.stack;this.componentDidCatch(i.value,{componentStack:y!==null?y:""})})}function fx(t,e,n,i,l){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=n.alternate,e!==null&&ki(e,n,l,!0),n=un.current,n!==null){switch(n.tag){case 31:case 13:return Mn===null?xo():n.alternate===null&&ge===0&&(ge=3),n.flags&=-257,n.flags|=65536,n.lanes=l,i===Zl?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),Fu(t,i,l)),!1;case 22:return n.flags|=65536,i===Zl?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([i]):n.add(i)),Fu(t,i,l)),!1}throw Error(r(435,n.tag))}return Fu(t,i,l),xo(),!1}if(Ut)return e=un.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=l,i!==Xr&&(t=Error(r(422),{cause:i}),Ds(bn(t,n)))):(i!==Xr&&(e=Error(r(423),{cause:i}),Ds(bn(e,n))),t=t.current.alternate,t.flags|=65536,l&=-l,t.lanes|=l,i=bn(i,n),l=Eu(t.stateNode,i,l),eu(t,l),ge!==4&&(ge=2)),!1;var u=Error(r(520),{cause:i});if(u=bn(u,n),Ps===null?Ps=[u]:Ps.push(u),ge!==4&&(ge=2),e===null)return!0;i=bn(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=l&-l,n.lanes|=t,t=Eu(n.stateNode,i,t),eu(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(za===null||!za.has(u))))return n.flags|=65536,l&=-l,n.lanes|=l,l=Gh(l),Xh(l,t,n,i),eu(n,l),!1}n=n.return}while(n!==null);return!1}var wu=Error(r(461)),Te=!1;function Le(t,e,n,i){e.child=t===null?$d(e,null,n,i):ui(e,t.child,n,i)}function Kh(t,e,n,i,l){n=n.render;var u=e.ref;if("ref"in i){var d={};for(var y in i)y!=="ref"&&(d[y]=i[y])}else d=i;return si(e),i=ou(t,e,n,d,u,l),y=ru(),t!==null&&!Te?(uu(t,e,l),sa(t,e,l)):(Ut&&y&&Yr(e),e.flags|=1,Le(t,e,i,l),e.child)}function Zh(t,e,n,i,l){if(t===null){var u=n.type;return typeof u=="function"&&!Ur(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,Qh(t,e,u,i,l)):(t=Hl(n.type,null,i,e,e.mode,l),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Vu(t,l)){var d=u.memoizedProps;if(n=n.compare,n=n!==null?n:js,n(d,i)&&t.ref===e.ref)return sa(t,e,l)}return e.flags|=1,t=In(u,i),t.ref=e.ref,t.return=e,e.child=t}function Qh(t,e,n,i,l){if(t!==null){var u=t.memoizedProps;if(js(u,i)&&t.ref===e.ref)if(Te=!1,e.pendingProps=i=u,Vu(t,l))(t.flags&131072)!==0&&(Te=!0);else return e.lanes=t.lanes,sa(t,e,l)}return ju(t,e,n,i,l)}function $h(t,e,n,i){var l=i.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,t!==null){for(i=e.child=t.child,l=0;i!==null;)l=l|i.lanes|i.childLanes,i=i.sibling;i=l&~u}else i=0,e.child=null;return Ph(t,e,u,n,i)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Xl(e,u!==null?u.cachePool:null),u!==null?Jd(e,u):au(),Wd(e);else return i=e.lanes=536870912,Ph(t,e,u!==null?u.baseLanes|n:n,n,i)}else u!==null?(Xl(e,u.cachePool),Jd(e,u),ja(),e.memoizedState=null):(t!==null&&Xl(e,null),au(),ja());return Le(t,e,l,n),e.child}function Ys(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Ph(t,e,n,i,l){var u=Jr();return u=u===null?null:{parent:be._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&Xl(e,null),au(),Wd(e),t!==null&&ki(t,e,i,!0),e.childLanes=l,null}function lo(t,e){return e=ro({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Fh(t,e,n){return ui(e,t.child,null,n),t=lo(e,e.pendingProps),t.flags|=2,cn(e),e.memoizedState=null,t}function dx(t,e,n){var i=e.pendingProps,l=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Ut){if(i.mode==="hidden")return t=lo(e,i),e.lanes=536870912,Ys(null,t);if(su(e),(t=ue)?(t=rm(t,An),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:va!==null?{id:Yn,overflow:Gn}:null,retryLane:536870912,hydrationErrors:null},n=Od(t),n.return=e,e.child=n,_e=e,ue=null)):t=null,t===null)throw Sa(e);return e.lanes=536870912,null}return lo(e,i)}var u=t.memoizedState;if(u!==null){var d=u.dehydrated;if(su(e),l)if(e.flags&256)e.flags&=-257,e=Fh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Te||ki(t,e,n,!1),l=(n&t.childLanes)!==0,Te||l){if(i=ie,i!==null&&(d=ps(i,n),d!==0&&d!==u.retryLane))throw u.retryLane=d,ei(t,d),tn(i,t,d),wu;xo(),e=Fh(t,e,n)}else t=u.treeContext,ue=En(d.nextSibling),_e=e,Ut=!0,ba=null,An=!1,t!==null&&kd(e,t),e=lo(e,i),e.flags|=4096;return e}return t=In(t.child,{mode:i.mode,children:i.children}),t.ref=e.ref,e.child=t,t.return=e,t}function oo(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function ju(t,e,n,i,l){return si(e),n=ou(t,e,n,i,void 0,l),i=ru(),t!==null&&!Te?(uu(t,e,l),sa(t,e,l)):(Ut&&i&&Yr(e),e.flags|=1,Le(t,e,n,l),e.child)}function Jh(t,e,n,i,l,u){return si(e),e.updateQueue=null,n=th(e,i,n,l),Id(t),i=ru(),t!==null&&!Te?(uu(t,e,u),sa(t,e,u)):(Ut&&i&&Yr(e),e.flags|=1,Le(t,e,n,u),e.child)}function Wh(t,e,n,i,l){if(si(e),e.stateNode===null){var u=Ri,d=n.contextType;typeof d=="object"&&d!==null&&(u=ke(d)),u=new n(i,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Mu,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=i,u.state=e.memoizedState,u.refs={},Ir(e),d=n.contextType,u.context=typeof d=="object"&&d!==null?ke(d):Ri,u.state=e.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Au(e,n,d,i),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(d=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),d!==u.state&&Mu.enqueueReplaceState(u,u.state,null),Ls(e,i,u,l),ks(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){u=e.stateNode;var y=e.memoizedProps,M=fi(n,y);u.props=M;var R=u.context,G=n.contextType;d=Ri,typeof G=="object"&&G!==null&&(d=ke(G));var P=n.getDerivedStateFromProps;G=typeof P=="function"||typeof u.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,G||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(y||R!==d)&&Bh(e,u,i,d),Aa=!1;var V=e.memoizedState;u.state=V,Ls(e,i,u,l),ks(),R=e.memoizedState,y||V!==R||Aa?(typeof P=="function"&&(Au(e,n,P,i),R=e.memoizedState),(M=Aa||Lh(e,n,M,i,V,R,d))?(G||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=R),u.props=i,u.state=R,u.context=d,i=M):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{u=e.stateNode,tu(t,e),d=e.memoizedProps,G=fi(n,d),u.props=G,P=e.pendingProps,V=u.context,R=n.contextType,M=Ri,typeof R=="object"&&R!==null&&(M=ke(R)),y=n.getDerivedStateFromProps,(R=typeof y=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d!==P||V!==M)&&Bh(e,u,i,M),Aa=!1,V=e.memoizedState,u.state=V,Ls(e,i,u,l),ks();var k=e.memoizedState;d!==P||V!==k||Aa||t!==null&&t.dependencies!==null&&Yl(t.dependencies)?(typeof y=="function"&&(Au(e,n,y,i),k=e.memoizedState),(G=Aa||Lh(e,n,G,i,V,k,M)||t!==null&&t.dependencies!==null&&Yl(t.dependencies))?(R||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(i,k,M),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(i,k,M)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||d===t.memoizedProps&&V===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&V===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=k),u.props=i,u.state=k,u.context=M,i=G):(typeof u.componentDidUpdate!="function"||d===t.memoizedProps&&V===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&V===t.memoizedState||(e.flags|=1024),i=!1)}return u=i,oo(t,e),i=(e.flags&128)!==0,u||i?(u=e.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&i?(e.child=ui(e,t.child,null,l),e.child=ui(e,null,n,l)):Le(t,e,n,l),e.memoizedState=u.state,t=e.child):t=sa(t,e,l),t}function Ih(t,e,n,i){return ai(),e.flags|=256,Le(t,e,n,i),e.child}var Cu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nu(t){return{baseLanes:t,cachePool:Yd()}}function Du(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=dn),t}function t0(t,e,n){var i=e.pendingProps,l=!1,u=(e.flags&128)!==0,d;if((d=u)||(d=t!==null&&t.memoizedState===null?!1:(xe.current&2)!==0),d&&(l=!0,e.flags&=-129),d=(e.flags&32)!==0,e.flags&=-33,t===null){if(Ut){if(l?wa(e):ja(),(t=ue)?(t=rm(t,An),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:va!==null?{id:Yn,overflow:Gn}:null,retryLane:536870912,hydrationErrors:null},n=Od(t),n.return=e,e.child=n,_e=e,ue=null)):t=null,t===null)throw Sa(e);return dc(t)?e.lanes=32:e.lanes=536870912,null}var y=i.children;return i=i.fallback,l?(ja(),l=e.mode,y=ro({mode:"hidden",children:y},l),i=ni(i,l,n,null),y.return=e,i.return=e,y.sibling=i,e.child=y,i=e.child,i.memoizedState=Nu(n),i.childLanes=Du(t,d,n),e.memoizedState=Cu,Ys(null,i)):(wa(e),zu(e,y))}var M=t.memoizedState;if(M!==null&&(y=M.dehydrated,y!==null)){if(u)e.flags&256?(wa(e),e.flags&=-257,e=Ru(t,e,n)):e.memoizedState!==null?(ja(),e.child=t.child,e.flags|=128,e=null):(ja(),y=i.fallback,l=e.mode,i=ro({mode:"visible",children:i.children},l),y=ni(y,l,n,null),y.flags|=2,i.return=e,y.return=e,i.sibling=y,e.child=i,ui(e,t.child,null,n),i=e.child,i.memoizedState=Nu(n),i.childLanes=Du(t,d,n),e.memoizedState=Cu,e=Ys(null,i));else if(wa(e),dc(y)){if(d=y.nextSibling&&y.nextSibling.dataset,d)var R=d.dgst;d=R,i=Error(r(419)),i.stack="",i.digest=d,Ds({value:i,source:null,stack:null}),e=Ru(t,e,n)}else if(Te||ki(t,e,n,!1),d=(n&t.childLanes)!==0,Te||d){if(d=ie,d!==null&&(i=ps(d,n),i!==0&&i!==M.retryLane))throw M.retryLane=i,ei(t,i),tn(d,t,i),wu;fc(y)||xo(),e=Ru(t,e,n)}else fc(y)?(e.flags|=192,e.child=t.child,e=null):(t=M.treeContext,ue=En(y.nextSibling),_e=e,Ut=!0,ba=null,An=!1,t!==null&&kd(e,t),e=zu(e,i.children),e.flags|=4096);return e}return l?(ja(),y=i.fallback,l=e.mode,M=t.child,R=M.sibling,i=In(M,{mode:"hidden",children:i.children}),i.subtreeFlags=M.subtreeFlags&65011712,R!==null?y=In(R,y):(y=ni(y,l,n,null),y.flags|=2),y.return=e,i.return=e,i.sibling=y,e.child=i,Ys(null,i),i=e.child,y=t.child.memoizedState,y===null?y=Nu(n):(l=y.cachePool,l!==null?(M=be._currentValue,l=l.parent!==M?{parent:M,pool:M}:l):l=Yd(),y={baseLanes:y.baseLanes|n,cachePool:l}),i.memoizedState=y,i.childLanes=Du(t,d,n),e.memoizedState=Cu,Ys(t.child,i)):(wa(e),n=t.child,t=n.sibling,n=In(n,{mode:"visible",children:i.children}),n.return=e,n.sibling=null,t!==null&&(d=e.deletions,d===null?(e.deletions=[t],e.flags|=16):d.push(t)),e.child=n,e.memoizedState=null,n)}function zu(t,e){return e=ro({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ro(t,e){return t=rn(22,t,null,e),t.lanes=0,t}function Ru(t,e,n){return ui(e,t.child,null,n),t=zu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function e0(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),Qr(t.return,e,n)}function Ou(t,e,n,i,l,u){var d=t.memoizedState;d===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:l,treeForkCount:u}:(d.isBackwards=e,d.rendering=null,d.renderingStartTime=0,d.last=i,d.tail=n,d.tailMode=l,d.treeForkCount=u)}function n0(t,e,n){var i=e.pendingProps,l=i.revealOrder,u=i.tail;i=i.children;var d=xe.current,y=(d&2)!==0;if(y?(d=d&1|2,e.flags|=128):d&=1,at(xe,d),Le(t,e,i,n),i=Ut?Ns:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&e0(t,n,e);else if(t.tag===19)e0(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(l){case"forwards":for(n=e.child,l=null;n!==null;)t=n.alternate,t!==null&&Fl(t)===null&&(l=n),n=n.sibling;n=l,n===null?(l=e.child,e.child=null):(l=n.sibling,n.sibling=null),Ou(e,!1,l,n,u,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,l=e.child,e.child=null;l!==null;){if(t=l.alternate,t!==null&&Fl(t)===null){e.child=l;break}t=l.sibling,l.sibling=n,n=l,l=t}Ou(e,!0,n,null,u,i);break;case"together":Ou(e,!1,null,null,void 0,i);break;default:e.memoizedState=null}return e.child}function sa(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Da|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(ki(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,n=In(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=In(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Vu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Yl(t)))}function hx(t,e,n){switch(e.tag){case 3:Kt(e,e.stateNode.containerInfo),Ta(e,be,t.memoizedState.cache),ai();break;case 27:case 5:qe(e);break;case 4:Kt(e,e.stateNode.containerInfo);break;case 10:Ta(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,su(e),null;break;case 13:var i=e.memoizedState;if(i!==null)return i.dehydrated!==null?(wa(e),e.flags|=128,null):(n&e.child.childLanes)!==0?t0(t,e,n):(wa(e),t=sa(t,e,n),t!==null?t.sibling:null);wa(e);break;case 19:var l=(t.flags&128)!==0;if(i=(n&e.childLanes)!==0,i||(ki(t,e,n,!1),i=(n&e.childLanes)!==0),l){if(i)return n0(t,e,n);e.flags|=128}if(l=e.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),at(xe,xe.current),i)break;return null;case 22:return e.lanes=0,$h(t,e,n,e.pendingProps);case 24:Ta(e,be,t.memoizedState.cache)}return sa(t,e,n)}function a0(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Te=!0;else{if(!Vu(t,n)&&(e.flags&128)===0)return Te=!1,hx(t,e,n);Te=(t.flags&131072)!==0}else Te=!1,Ut&&(e.flags&1048576)!==0&&_d(e,Ns,e.index);switch(e.lanes=0,e.tag){case 16:t:{var i=e.pendingProps;if(t=oi(e.elementType),e.type=t,typeof t=="function")Ur(t)?(i=fi(t,i),e.tag=1,e=Wh(null,e,t,i,n)):(e.tag=0,e=ju(null,e,t,i,n));else{if(t!=null){var l=t.$$typeof;if(l===X){e.tag=11,e=Kh(null,e,t,i,n);break t}else if(l===F){e.tag=14,e=Zh(null,e,t,i,n);break t}}throw e=Et(t)||t,Error(r(306,e,""))}}return e;case 0:return ju(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,l=fi(i,e.pendingProps),Wh(t,e,i,l,n);case 3:t:{if(Kt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));i=e.pendingProps;var u=e.memoizedState;l=u.element,tu(t,e),Ls(e,i,null,n);var d=e.memoizedState;if(i=d.cache,Ta(e,be,i),i!==u.cache&&$r(e,[be],n,!0),ks(),i=d.element,u.isDehydrated)if(u={element:i,isDehydrated:!1,cache:d.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Ih(t,e,i,n);break t}else if(i!==l){l=bn(Error(r(424)),e),Ds(l),e=Ih(t,e,i,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,ue=En(t.firstChild),_e=e,Ut=!0,ba=null,An=!0,n=$d(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ai(),i===l){e=sa(t,e,n);break t}Le(t,e,i,n)}e=e.child}return e;case 26:return oo(t,e),t===null?(n=mm(e.type,null,e.pendingProps,null))?e.memoizedState=n:Ut||(n=e.type,t=e.pendingProps,i=Eo(dt.current).createElement(n),i[q]=e,i[$]=t,Be(i,n,t),gt(i),e.stateNode=i):e.memoizedState=mm(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return qe(e),t===null&&Ut&&(i=e.stateNode=fm(e.type,e.pendingProps,dt.current),_e=e,An=!0,l=ue,_a(e.type)?(hc=l,ue=En(i.firstChild)):ue=l),Le(t,e,e.pendingProps.children,n),oo(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Ut&&((l=i=ue)&&(i=Gx(i,e.type,e.pendingProps,An),i!==null?(e.stateNode=i,_e=e,ue=En(i.firstChild),An=!1,l=!0):l=!1),l||Sa(e)),qe(e),l=e.type,u=e.pendingProps,d=t!==null?t.memoizedProps:null,i=u.children,rc(l,u)?i=null:d!==null&&rc(l,d)&&(e.flags|=32),e.memoizedState!==null&&(l=ou(t,e,ix,null,null,n),al._currentValue=l),oo(t,e),Le(t,e,i,n),e.child;case 6:return t===null&&Ut&&((t=n=ue)&&(n=Xx(n,e.pendingProps,An),n!==null?(e.stateNode=n,_e=e,ue=null,t=!0):t=!1),t||Sa(e)),null;case 13:return t0(t,e,n);case 4:return Kt(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=ui(e,null,i,n):Le(t,e,i,n),e.child;case 11:return Kh(t,e,e.type,e.pendingProps,n);case 7:return Le(t,e,e.pendingProps,n),e.child;case 8:return Le(t,e,e.pendingProps.children,n),e.child;case 12:return Le(t,e,e.pendingProps.children,n),e.child;case 10:return i=e.pendingProps,Ta(e,e.type,i.value),Le(t,e,i.children,n),e.child;case 9:return l=e.type._context,i=e.pendingProps.children,si(e),l=ke(l),i=i(l),e.flags|=1,Le(t,e,i,n),e.child;case 14:return Zh(t,e,e.type,e.pendingProps,n);case 15:return Qh(t,e,e.type,e.pendingProps,n);case 19:return n0(t,e,n);case 31:return dx(t,e,n);case 22:return $h(t,e,n,e.pendingProps);case 24:return si(e),i=ke(be),t===null?(l=Jr(),l===null&&(l=ie,u=Pr(),l.pooledCache=u,u.refCount++,u!==null&&(l.pooledCacheLanes|=n),l=u),e.memoizedState={parent:i,cache:l},Ir(e),Ta(e,be,l)):((t.lanes&n)!==0&&(tu(t,e),Ls(e,null,null,n),ks()),l=t.memoizedState,u=e.memoizedState,l.parent!==i?(l={parent:i,cache:i},e.memoizedState=l,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=l),Ta(e,be,i)):(i=u.cache,Ta(e,be,i),i!==l.cache&&$r(e,[be],n,!0))),Le(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function la(t){t.flags|=4}function _u(t,e,n,i,l){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(l&335544128)===l)if(t.stateNode.complete)t.flags|=8192;else if(D0())t.flags|=8192;else throw ri=Zl,Wr}else t.flags&=-16777217}function i0(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!vm(e))if(D0())t.flags|=8192;else throw ri=Zl,Wr}function uo(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Fa():536870912,t.lanes|=e,$i|=e)}function Gs(t,e){if(!Ut)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function ce(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var l=t.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags&65011712,i|=l.flags&65011712,l.return=t,l=l.sibling;else for(l=t.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags,i|=l.flags,l.return=t,l=l.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function mx(t,e,n){var i=e.pendingProps;switch(Gr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ce(e),null;case 1:return ce(e),null;case 3:return n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),na(be),At(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(_i(e)?la(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Kr())),ce(e),null;case 26:var l=e.type,u=e.memoizedState;return t===null?(la(e),u!==null?(ce(e),i0(e,u)):(ce(e),_u(e,l,null,i,n))):u?u!==t.memoizedState?(la(e),ce(e),i0(e,u)):(ce(e),e.flags&=-16777217):(t=t.memoizedProps,t!==i&&la(e),ce(e),_u(e,l,t,i,n)),null;case 27:if(Ln(e),n=dt.current,l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&la(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return ce(e),null}t=ot.current,_i(e)?Ld(e):(t=fm(l,i,n),e.stateNode=t,la(e))}return ce(e),null;case 5:if(Ln(e),l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&la(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return ce(e),null}if(u=ot.current,_i(e))Ld(e);else{var d=Eo(dt.current);switch(u){case 1:u=d.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:u=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":u=d.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":u=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":u=d.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof i.is=="string"?d.createElement("select",{is:i.is}):d.createElement("select"),i.multiple?u.multiple=!0:i.size&&(u.size=i.size);break;default:u=typeof i.is=="string"?d.createElement(l,{is:i.is}):d.createElement(l)}}u[q]=e,u[$]=i;t:for(d=e.child;d!==null;){if(d.tag===5||d.tag===6)u.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break t;for(;d.sibling===null;){if(d.return===null||d.return===e)break t;d=d.return}d.sibling.return=d.return,d=d.sibling}e.stateNode=u;t:switch(Be(u,l,i),l){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}i&&la(e)}}return ce(e),_u(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&la(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(r(166));if(t=dt.current,_i(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,l=_e,l!==null)switch(l.tag){case 27:case 5:i=l.memoizedProps}t[q]=e,t=!!(t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||tm(t.nodeValue,n)),t||Sa(e,!0)}else t=Eo(t).createTextNode(i),t[q]=e,e.stateNode=t}return ce(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(i=_i(e),n!==null){if(t===null){if(!i)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[q]=e}else ai(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;ce(e),t=!1}else n=Kr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(cn(e),e):(cn(e),null);if((e.flags&128)!==0)throw Error(r(558))}return ce(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(l=_i(e),i!==null&&i.dehydrated!==null){if(t===null){if(!l)throw Error(r(318));if(l=e.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));l[q]=e}else ai(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;ce(e),l=!1}else l=Kr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),l=!0;if(!l)return e.flags&256?(cn(e),e):(cn(e),null)}return cn(e),(e.flags&128)!==0?(e.lanes=n,e):(n=i!==null,t=t!==null&&t.memoizedState!==null,n&&(i=e.child,l=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(l=i.alternate.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==l&&(i.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),uo(e,e.updateQueue),ce(e),null);case 4:return At(),t===null&&ac(e.stateNode.containerInfo),ce(e),null;case 10:return na(e.type),ce(e),null;case 19:if(L(xe),i=e.memoizedState,i===null)return ce(e),null;if(l=(e.flags&128)!==0,u=i.rendering,u===null)if(l)Gs(i,!1);else{if(ge!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Fl(t),u!==null){for(e.flags|=128,Gs(i,!1),t=u.updateQueue,e.updateQueue=t,uo(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Rd(n,t),n=n.sibling;return at(xe,xe.current&1|2),Ut&&ta(e,i.treeForkCount),e.child}t=t.sibling}i.tail!==null&&Ce()>po&&(e.flags|=128,l=!0,Gs(i,!1),e.lanes=4194304)}else{if(!l)if(t=Fl(u),t!==null){if(e.flags|=128,l=!0,t=t.updateQueue,e.updateQueue=t,uo(e,t),Gs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!Ut)return ce(e),null}else 2*Ce()-i.renderingStartTime>po&&n!==536870912&&(e.flags|=128,l=!0,Gs(i,!1),e.lanes=4194304);i.isBackwards?(u.sibling=e.child,e.child=u):(t=i.last,t!==null?t.sibling=u:e.child=u,i.last=u)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ce(),t.sibling=null,n=xe.current,at(xe,l?n&1|2:n&1),Ut&&ta(e,i.treeForkCount),t):(ce(e),null);case 22:case 23:return cn(e),iu(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(n&536870912)!==0&&(e.flags&128)===0&&(ce(e),e.subtreeFlags&6&&(e.flags|=8192)):ce(e),n=e.updateQueue,n!==null&&uo(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==n&&(e.flags|=2048),t!==null&&L(li),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),na(be),ce(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function px(t,e){switch(Gr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return na(be),At(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Ln(e),null;case 31:if(e.memoizedState!==null){if(cn(e),e.alternate===null)throw Error(r(340));ai()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(cn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));ai()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return L(xe),null;case 4:return At(),null;case 10:return na(e.type),null;case 22:case 23:return cn(e),iu(),t!==null&&L(li),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return na(be),null;case 25:return null;default:return null}}function s0(t,e){switch(Gr(e),e.tag){case 3:na(be),At();break;case 26:case 27:case 5:Ln(e);break;case 4:At();break;case 31:e.memoizedState!==null&&cn(e);break;case 13:cn(e);break;case 19:L(xe);break;case 10:na(e.type);break;case 22:case 23:cn(e),iu(),t!==null&&L(li);break;case 24:na(be)}}function Xs(t,e){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var l=i.next;n=l;do{if((n.tag&t)===t){i=void 0;var u=n.create,d=n.inst;i=u(),d.destroy=i}n=n.next}while(n!==l)}}catch(y){Wt(e,e.return,y)}}function Ca(t,e,n){try{var i=e.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var u=l.next;i=u;do{if((i.tag&t)===t){var d=i.inst,y=d.destroy;if(y!==void 0){d.destroy=void 0,l=e;var M=n,R=y;try{R()}catch(G){Wt(l,M,G)}}}i=i.next}while(i!==u)}}catch(G){Wt(e,e.return,G)}}function l0(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Fd(e,n)}catch(i){Wt(t,t.return,i)}}}function o0(t,e,n){n.props=fi(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){Wt(t,e,i)}}function Ks(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:i=t.stateNode;break;default:i=t.stateNode}typeof n=="function"?t.refCleanup=n(i):n.current=i}}catch(l){Wt(t,e,l)}}function Xn(t,e){var n=t.ref,i=t.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(l){Wt(t,e,l)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){Wt(t,e,l)}else n.current=null}function r0(t){var e=t.type,n=t.memoizedProps,i=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break t;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(l){Wt(t,t.return,l)}}function ku(t,e,n){try{var i=t.stateNode;Lx(i,t.type,n,e),i[$]=e}catch(l){Wt(t,t.return,l)}}function u0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&_a(t.type)||t.tag===4}function Lu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||u0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&_a(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Bu(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Jn));else if(i!==4&&(i===27&&_a(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Bu(t,e,n),t=t.sibling;t!==null;)Bu(t,e,n),t=t.sibling}function co(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(i===27&&_a(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(co(t,e,n),t=t.sibling;t!==null;)co(t,e,n),t=t.sibling}function c0(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,l=e.attributes;l.length;)e.removeAttributeNode(l[0]);Be(e,i,n),e[q]=t,e[$]=n}catch(u){Wt(t,t.return,u)}}var oa=!1,Ae=!1,Uu=!1,f0=typeof WeakSet=="function"?WeakSet:Set,ze=null;function gx(t,e){if(t=t.containerInfo,lc=Ro,t=Ad(t),Rr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var l=i.anchorOffset,u=i.focusNode;i=i.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var d=0,y=-1,M=-1,R=0,G=0,P=t,V=null;e:for(;;){for(var k;P!==n||l!==0&&P.nodeType!==3||(y=d+l),P!==u||i!==0&&P.nodeType!==3||(M=d+i),P.nodeType===3&&(d+=P.nodeValue.length),(k=P.firstChild)!==null;)V=P,P=k;for(;;){if(P===t)break e;if(V===n&&++R===l&&(y=d),V===u&&++G===i&&(M=d),(k=P.nextSibling)!==null)break;P=V,V=P.parentNode}P=k}n=y===-1||M===-1?null:{start:y,end:M}}else n=null}n=n||{start:0,end:0}}else n=null;for(oc={focusedElem:t,selectionRange:n},Ro=!1,ze=e;ze!==null;)if(e=ze,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ze=t;else for(;ze!==null;){switch(e=ze,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)l=t[n],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,l=u.memoizedProps,u=u.memoizedState,i=n.stateNode;try{var rt=fi(n.type,l);t=i.getSnapshotBeforeUpdate(rt,u),i.__reactInternalSnapshotBeforeUpdate=t}catch(bt){Wt(n,n.return,bt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)cc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":cc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,ze=t;break}ze=e.return}}function d0(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:ua(t,n),i&4&&Xs(5,n);break;case 1:if(ua(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(d){Wt(n,n.return,d)}else{var l=fi(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(l,e,t.__reactInternalSnapshotBeforeUpdate)}catch(d){Wt(n,n.return,d)}}i&64&&l0(n),i&512&&Ks(n,n.return);break;case 3:if(ua(t,n),i&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Fd(t,e)}catch(d){Wt(n,n.return,d)}}break;case 27:e===null&&i&4&&c0(n);case 26:case 5:ua(t,n),e===null&&i&4&&r0(n),i&512&&Ks(n,n.return);break;case 12:ua(t,n);break;case 31:ua(t,n),i&4&&p0(t,n);break;case 13:ua(t,n),i&4&&g0(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Ex.bind(null,n),Kx(t,n))));break;case 22:if(i=n.memoizedState!==null||oa,!i){e=e!==null&&e.memoizedState!==null||Ae,l=oa;var u=Ae;oa=i,(Ae=e)&&!u?ca(t,n,(n.subtreeFlags&8772)!==0):ua(t,n),oa=l,Ae=u}break;case 30:break;default:ua(t,n)}}function h0(t){var e=t.alternate;e!==null&&(t.alternate=null,h0(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Xt(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var de=null,Fe=!1;function ra(t,e,n){for(n=n.child;n!==null;)m0(t,e,n),n=n.sibling}function m0(t,e,n){if(ae&&typeof ae.onCommitFiberUnmount=="function")try{ae.onCommitFiberUnmount(re,n)}catch{}switch(n.tag){case 26:Ae||Xn(n,e),ra(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ae||Xn(n,e);var i=de,l=Fe;_a(n.type)&&(de=n.stateNode,Fe=!1),ra(t,e,n),tl(n.stateNode),de=i,Fe=l;break;case 5:Ae||Xn(n,e);case 6:if(i=de,l=Fe,de=null,ra(t,e,n),de=i,Fe=l,de!==null)if(Fe)try{(de.nodeType===9?de.body:de.nodeName==="HTML"?de.ownerDocument.body:de).removeChild(n.stateNode)}catch(u){Wt(n,e,u)}else try{de.removeChild(n.stateNode)}catch(u){Wt(n,e,u)}break;case 18:de!==null&&(Fe?(t=de,lm(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ns(t)):lm(de,n.stateNode));break;case 4:i=de,l=Fe,de=n.stateNode.containerInfo,Fe=!0,ra(t,e,n),de=i,Fe=l;break;case 0:case 11:case 14:case 15:Ca(2,n,e),Ae||Ca(4,n,e),ra(t,e,n);break;case 1:Ae||(Xn(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"&&o0(n,e,i)),ra(t,e,n);break;case 21:ra(t,e,n);break;case 22:Ae=(i=Ae)||n.memoizedState!==null,ra(t,e,n),Ae=i;break;default:ra(t,e,n)}}function p0(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ns(t)}catch(n){Wt(e,e.return,n)}}}function g0(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ns(t)}catch(n){Wt(e,e.return,n)}}function yx(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new f0),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new f0),e;default:throw Error(r(435,t.tag))}}function fo(t,e){var n=yx(t);e.forEach(function(i){if(!n.has(i)){n.add(i);var l=wx.bind(null,t,i);i.then(l,l)}})}function Je(t,e){var n=e.deletions;if(n!==null)for(var i=0;i<n.length;i++){var l=n[i],u=t,d=e,y=d;t:for(;y!==null;){switch(y.tag){case 27:if(_a(y.type)){de=y.stateNode,Fe=!1;break t}break;case 5:de=y.stateNode,Fe=!1;break t;case 3:case 4:de=y.stateNode.containerInfo,Fe=!0;break t}y=y.return}if(de===null)throw Error(r(160));m0(u,d,l),de=null,Fe=!1,u=l.alternate,u!==null&&(u.return=null),l.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)y0(e,t),e=e.sibling}var Rn=null;function y0(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Je(e,t),We(t),i&4&&(Ca(3,t,t.return),Xs(3,t),Ca(5,t,t.return));break;case 1:Je(e,t),We(t),i&512&&(Ae||n===null||Xn(n,n.return)),i&64&&oa&&(t=t.updateQueue,t!==null&&(i=t.callbacks,i!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var l=Rn;if(Je(e,t),We(t),i&512&&(Ae||n===null||Xn(n,n.return)),i&4){var u=n!==null?n.memoizedState:null;if(i=t.memoizedState,n===null)if(i===null)if(t.stateNode===null){t:{i=t.type,n=t.memoizedProps,l=l.ownerDocument||l;e:switch(i){case"title":u=l.getElementsByTagName("title")[0],(!u||u[wt]||u[q]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=l.createElement(i),l.head.insertBefore(u,l.querySelector("head > title"))),Be(u,i,n),u[q]=t,gt(u),i=u;break t;case"link":var d=ym("link","href",l).get(i+(n.href||""));if(d){for(var y=0;y<d.length;y++)if(u=d[y],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(y,1);break e}}u=l.createElement(i),Be(u,i,n),l.head.appendChild(u);break;case"meta":if(d=ym("meta","content",l).get(i+(n.content||""))){for(y=0;y<d.length;y++)if(u=d[y],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(y,1);break e}}u=l.createElement(i),Be(u,i,n),l.head.appendChild(u);break;default:throw Error(r(468,i))}u[q]=t,gt(u),i=u}t.stateNode=i}else xm(l,t.type,t.stateNode);else t.stateNode=gm(l,i,t.memoizedProps);else u!==i?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,i===null?xm(l,t.type,t.stateNode):gm(l,i,t.memoizedProps)):i===null&&t.stateNode!==null&&ku(t,t.memoizedProps,n.memoizedProps)}break;case 27:Je(e,t),We(t),i&512&&(Ae||n===null||Xn(n,n.return)),n!==null&&i&4&&ku(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Je(e,t),We(t),i&512&&(Ae||n===null||Xn(n,n.return)),t.flags&32){l=t.stateNode;try{Ei(l,"")}catch(rt){Wt(t,t.return,rt)}}i&4&&t.stateNode!=null&&(l=t.memoizedProps,ku(t,l,n!==null?n.memoizedProps:l)),i&1024&&(Uu=!0);break;case 6:if(Je(e,t),We(t),i&4){if(t.stateNode===null)throw Error(r(162));i=t.memoizedProps,n=t.stateNode;try{n.nodeValue=i}catch(rt){Wt(t,t.return,rt)}}break;case 3:if(Co=null,l=Rn,Rn=wo(e.containerInfo),Je(e,t),Rn=l,We(t),i&4&&n!==null&&n.memoizedState.isDehydrated)try{ns(e.containerInfo)}catch(rt){Wt(t,t.return,rt)}Uu&&(Uu=!1,x0(t));break;case 4:i=Rn,Rn=wo(t.stateNode.containerInfo),Je(e,t),We(t),Rn=i;break;case 12:Je(e,t),We(t);break;case 31:Je(e,t),We(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,fo(t,i)));break;case 13:Je(e,t),We(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(mo=Ce()),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,fo(t,i)));break;case 22:l=t.memoizedState!==null;var M=n!==null&&n.memoizedState!==null,R=oa,G=Ae;if(oa=R||l,Ae=G||M,Je(e,t),Ae=G,oa=R,We(t),i&8192)t:for(e=t.stateNode,e._visibility=l?e._visibility&-2:e._visibility|1,l&&(n===null||M||oa||Ae||di(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){M=n=e;try{if(u=M.stateNode,l)d=u.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{y=M.stateNode;var P=M.memoizedProps.style,V=P!=null&&P.hasOwnProperty("display")?P.display:null;y.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(rt){Wt(M,M.return,rt)}}}else if(e.tag===6){if(n===null){M=e;try{M.stateNode.nodeValue=l?"":M.memoizedProps}catch(rt){Wt(M,M.return,rt)}}}else if(e.tag===18){if(n===null){M=e;try{var k=M.stateNode;l?om(k,!0):om(M.stateNode,!1)}catch(rt){Wt(M,M.return,rt)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}i&4&&(i=t.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,fo(t,n))));break;case 19:Je(e,t),We(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,fo(t,i)));break;case 30:break;case 21:break;default:Je(e,t),We(t)}}function We(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(u0(i)){n=i;break}i=i.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var l=n.stateNode,u=Lu(t);co(t,u,l);break;case 5:var d=n.stateNode;n.flags&32&&(Ei(d,""),n.flags&=-33);var y=Lu(t);co(t,y,d);break;case 3:case 4:var M=n.stateNode.containerInfo,R=Lu(t);Bu(t,R,M);break;default:throw Error(r(161))}}catch(G){Wt(t,t.return,G)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function x0(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;x0(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function ua(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)d0(t,e.alternate,e),e=e.sibling}function di(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Ca(4,e,e.return),di(e);break;case 1:Xn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&o0(e,e.return,n),di(e);break;case 27:tl(e.stateNode);case 26:case 5:Xn(e,e.return),di(e);break;case 22:e.memoizedState===null&&di(e);break;case 30:di(e);break;default:di(e)}t=t.sibling}}function ca(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var i=e.alternate,l=t,u=e,d=u.flags;switch(u.tag){case 0:case 11:case 15:ca(l,u,n),Xs(4,u);break;case 1:if(ca(l,u,n),i=u,l=i.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(R){Wt(i,i.return,R)}if(i=u,l=i.updateQueue,l!==null){var y=i.stateNode;try{var M=l.shared.hiddenCallbacks;if(M!==null)for(l.shared.hiddenCallbacks=null,l=0;l<M.length;l++)Pd(M[l],y)}catch(R){Wt(i,i.return,R)}}n&&d&64&&l0(u),Ks(u,u.return);break;case 27:c0(u);case 26:case 5:ca(l,u,n),n&&i===null&&d&4&&r0(u),Ks(u,u.return);break;case 12:ca(l,u,n);break;case 31:ca(l,u,n),n&&d&4&&p0(l,u);break;case 13:ca(l,u,n),n&&d&4&&g0(l,u);break;case 22:u.memoizedState===null&&ca(l,u,n),Ks(u,u.return);break;case 30:break;default:ca(l,u,n)}e=e.sibling}}function Hu(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&zs(n))}function qu(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&zs(t))}function On(t,e,n,i){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)v0(t,e,n,i),e=e.sibling}function v0(t,e,n,i){var l=e.flags;switch(e.tag){case 0:case 11:case 15:On(t,e,n,i),l&2048&&Xs(9,e);break;case 1:On(t,e,n,i);break;case 3:On(t,e,n,i),l&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&zs(t)));break;case 12:if(l&2048){On(t,e,n,i),t=e.stateNode;try{var u=e.memoizedProps,d=u.id,y=u.onPostCommit;typeof y=="function"&&y(d,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(M){Wt(e,e.return,M)}}else On(t,e,n,i);break;case 31:On(t,e,n,i);break;case 13:On(t,e,n,i);break;case 23:break;case 22:u=e.stateNode,d=e.alternate,e.memoizedState!==null?u._visibility&2?On(t,e,n,i):Zs(t,e):u._visibility&2?On(t,e,n,i):(u._visibility|=2,Ki(t,e,n,i,(e.subtreeFlags&10256)!==0||!1)),l&2048&&Hu(d,e);break;case 24:On(t,e,n,i),l&2048&&qu(e.alternate,e);break;default:On(t,e,n,i)}}function Ki(t,e,n,i,l){for(l=l&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,d=e,y=n,M=i,R=d.flags;switch(d.tag){case 0:case 11:case 15:Ki(u,d,y,M,l),Xs(8,d);break;case 23:break;case 22:var G=d.stateNode;d.memoizedState!==null?G._visibility&2?Ki(u,d,y,M,l):Zs(u,d):(G._visibility|=2,Ki(u,d,y,M,l)),l&&R&2048&&Hu(d.alternate,d);break;case 24:Ki(u,d,y,M,l),l&&R&2048&&qu(d.alternate,d);break;default:Ki(u,d,y,M,l)}e=e.sibling}}function Zs(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,i=e,l=i.flags;switch(i.tag){case 22:Zs(n,i),l&2048&&Hu(i.alternate,i);break;case 24:Zs(n,i),l&2048&&qu(i.alternate,i);break;default:Zs(n,i)}e=e.sibling}}var Qs=8192;function Zi(t,e,n){if(t.subtreeFlags&Qs)for(t=t.child;t!==null;)b0(t,e,n),t=t.sibling}function b0(t,e,n){switch(t.tag){case 26:Zi(t,e,n),t.flags&Qs&&t.memoizedState!==null&&av(n,Rn,t.memoizedState,t.memoizedProps);break;case 5:Zi(t,e,n);break;case 3:case 4:var i=Rn;Rn=wo(t.stateNode.containerInfo),Zi(t,e,n),Rn=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=Qs,Qs=16777216,Zi(t,e,n),Qs=i):Zi(t,e,n));break;default:Zi(t,e,n)}}function S0(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function $s(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];ze=i,A0(i,t)}S0(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)T0(t),t=t.sibling}function T0(t){switch(t.tag){case 0:case 11:case 15:$s(t),t.flags&2048&&Ca(9,t,t.return);break;case 3:$s(t);break;case 12:$s(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,ho(t)):$s(t);break;default:$s(t)}}function ho(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];ze=i,A0(i,t)}S0(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ca(8,e,e.return),ho(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,ho(e));break;default:ho(e)}t=t.sibling}}function A0(t,e){for(;ze!==null;){var n=ze;switch(n.tag){case 0:case 11:case 15:Ca(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:zs(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,ze=i;else t:for(n=t;ze!==null;){i=ze;var l=i.sibling,u=i.return;if(h0(i),i===n){ze=null;break t}if(l!==null){l.return=u,ze=l;break t}ze=u}}}var xx={getCacheForType:function(t){var e=ke(be),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ke(be).controller.signal}},vx=typeof WeakMap=="function"?WeakMap:Map,Gt=0,ie=null,Vt=null,kt=0,Jt=0,fn=null,Na=!1,Qi=!1,Yu=!1,fa=0,ge=0,Da=0,hi=0,Gu=0,dn=0,$i=0,Ps=null,Ie=null,Xu=!1,mo=0,M0=0,po=1/0,go=null,za=null,Ee=0,Ra=null,Pi=null,da=0,Ku=0,Zu=null,E0=null,Fs=0,Qu=null;function hn(){return(Gt&2)!==0&&kt!==0?kt&-kt:N.T!==null?Iu():wl()}function w0(){if(dn===0)if((kt&536870912)===0||Ut){var t=nn;nn<<=1,(nn&3932160)===0&&(nn=262144),dn=t}else dn=536870912;return t=un.current,t!==null&&(t.flags|=32),dn}function tn(t,e,n){(t===ie&&(Jt===2||Jt===9)||t.cancelPendingCommit!==null)&&(Fi(t,0),Oa(t,kt,dn,!1)),ga(t,n),((Gt&2)===0||t!==ie)&&(t===ie&&((Gt&2)===0&&(hi|=n),ge===4&&Oa(t,kt,dn,!1)),Kn(t))}function j0(t,e,n){if((Gt&6)!==0)throw Error(r(327));var i=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Pa(t,e),l=i?Tx(t,e):Pu(t,e,!0),u=i;do{if(l===0){Qi&&!i&&Oa(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!bx(n)){l=Pu(t,e,!1),u=!1;continue}if(l===2){if(u=e,t.errorRecoveryDisabledLanes&u)var d=0;else d=t.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){e=d;t:{var y=t;l=Ps;var M=y.current.memoizedState.isDehydrated;if(M&&(Fi(y,d).flags|=256),d=Pu(y,d,!1),d!==2){if(Yu&&!M){y.errorRecoveryDisabledLanes|=u,hi|=u,l=4;break t}u=Ie,Ie=l,u!==null&&(Ie===null?Ie=u:Ie.push.apply(Ie,u))}l=d}if(u=!1,l!==2)continue}}if(l===1){Fi(t,0),Oa(t,e,0,!0);break}t:{switch(i=t,u=l,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Oa(i,e,dn,!Na);break t;case 2:Ie=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(l=mo+300-Ce(),10<l)){if(Oa(i,e,dn,!Na),Si(i,0,!0)!==0)break t;da=e,i.timeoutHandle=im(C0.bind(null,i,n,Ie,go,Xu,e,dn,hi,$i,Na,u,"Throttled",-0,0),l);break t}C0(i,n,Ie,go,Xu,e,dn,hi,$i,Na,u,null,-0,0)}}break}while(!0);Kn(t)}function C0(t,e,n,i,l,u,d,y,M,R,G,P,V,k){if(t.timeoutHandle=-1,P=e.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jn},b0(e,u,P);var rt=(u&62914560)===u?mo-Ce():(u&4194048)===u?M0-Ce():0;if(rt=iv(P,rt),rt!==null){da=u,t.cancelPendingCommit=rt(k0.bind(null,t,e,u,n,i,l,d,y,M,G,P,null,V,k)),Oa(t,u,d,!R);return}}k0(t,e,u,n,i,l,d,y,M)}function bx(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var l=n[i],u=l.getSnapshot;l=l.value;try{if(!on(u(),l))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Oa(t,e,n,i){e&=~Gu,e&=~hi,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var l=e;0<l;){var u=31-Qt(l),d=1<<u;i[u]=-1,l&=~d}n!==0&&Ml(t,n,e)}function yo(){return(Gt&6)===0?(Js(0),!1):!0}function $u(){if(Vt!==null){if(Jt===0)var t=Vt.return;else t=Vt,ea=ii=null,cu(t),Hi=null,Os=0,t=Vt;for(;t!==null;)s0(t.alternate,t),t=t.return;Vt=null}}function Fi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Hx(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),da=0,$u(),ie=t,Vt=n=In(t.current,null),kt=e,Jt=0,fn=null,Na=!1,Qi=Pa(t,e),Yu=!1,$i=dn=Gu=hi=Da=ge=0,Ie=Ps=null,Xu=!1,(e&8)!==0&&(e|=e&32);var i=t.entangledLanes;if(i!==0)for(t=t.entanglements,i&=e;0<i;){var l=31-Qt(i),u=1<<l;e|=t[l],i&=~u}return fa=e,Ll(),n}function N0(t,e){Nt=null,N.H=qs,e===Ui||e===Kl?(e=Kd(),Jt=3):e===Wr?(e=Kd(),Jt=4):Jt=e===wu?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,fn=e,Vt===null&&(ge=1,so(t,bn(e,t.current)))}function D0(){var t=un.current;return t===null?!0:(kt&4194048)===kt?Mn===null:(kt&62914560)===kt||(kt&536870912)!==0?t===Mn:!1}function z0(){var t=N.H;return N.H=qs,t===null?qs:t}function R0(){var t=N.A;return N.A=xx,t}function xo(){ge=4,Na||(kt&4194048)!==kt&&un.current!==null||(Qi=!0),(Da&134217727)===0&&(hi&134217727)===0||ie===null||Oa(ie,kt,dn,!1)}function Pu(t,e,n){var i=Gt;Gt|=2;var l=z0(),u=R0();(ie!==t||kt!==e)&&(go=null,Fi(t,e)),e=!1;var d=ge;t:do try{if(Jt!==0&&Vt!==null){var y=Vt,M=fn;switch(Jt){case 8:$u(),d=6;break t;case 3:case 2:case 9:case 6:un.current===null&&(e=!0);var R=Jt;if(Jt=0,fn=null,Ji(t,y,M,R),n&&Qi){d=0;break t}break;default:R=Jt,Jt=0,fn=null,Ji(t,y,M,R)}}Sx(),d=ge;break}catch(G){N0(t,G)}while(!0);return e&&t.shellSuspendCounter++,ea=ii=null,Gt=i,N.H=l,N.A=u,Vt===null&&(ie=null,kt=0,Ll()),d}function Sx(){for(;Vt!==null;)O0(Vt)}function Tx(t,e){var n=Gt;Gt|=2;var i=z0(),l=R0();ie!==t||kt!==e?(go=null,po=Ce()+500,Fi(t,e)):Qi=Pa(t,e);t:do try{if(Jt!==0&&Vt!==null){e=Vt;var u=fn;e:switch(Jt){case 1:Jt=0,fn=null,Ji(t,e,u,1);break;case 2:case 9:if(Gd(u)){Jt=0,fn=null,V0(e);break}e=function(){Jt!==2&&Jt!==9||ie!==t||(Jt=7),Kn(t)},u.then(e,e);break t;case 3:Jt=7;break t;case 4:Jt=5;break t;case 7:Gd(u)?(Jt=0,fn=null,V0(e)):(Jt=0,fn=null,Ji(t,e,u,7));break;case 5:var d=null;switch(Vt.tag){case 26:d=Vt.memoizedState;case 5:case 27:var y=Vt;if(d?vm(d):y.stateNode.complete){Jt=0,fn=null;var M=y.sibling;if(M!==null)Vt=M;else{var R=y.return;R!==null?(Vt=R,vo(R)):Vt=null}break e}}Jt=0,fn=null,Ji(t,e,u,5);break;case 6:Jt=0,fn=null,Ji(t,e,u,6);break;case 8:$u(),ge=6;break t;default:throw Error(r(462))}}Ax();break}catch(G){N0(t,G)}while(!0);return ea=ii=null,N.H=i,N.A=l,Gt=n,Vt!==null?0:(ie=null,kt=0,Ll(),ge)}function Ax(){for(;Vt!==null&&!Dn();)O0(Vt)}function O0(t){var e=a0(t.alternate,t,fa);t.memoizedProps=t.pendingProps,e===null?vo(t):Vt=e}function V0(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Jh(n,e,e.pendingProps,e.type,void 0,kt);break;case 11:e=Jh(n,e,e.pendingProps,e.type.render,e.ref,kt);break;case 5:cu(e);default:s0(n,e),e=Vt=Rd(e,fa),e=a0(n,e,fa)}t.memoizedProps=t.pendingProps,e===null?vo(t):Vt=e}function Ji(t,e,n,i){ea=ii=null,cu(e),Hi=null,Os=0;var l=e.return;try{if(fx(t,l,e,n,kt)){ge=1,so(t,bn(n,t.current)),Vt=null;return}}catch(u){if(l!==null)throw Vt=l,u;ge=1,so(t,bn(n,t.current)),Vt=null;return}e.flags&32768?(Ut||i===1?t=!0:Qi||(kt&536870912)!==0?t=!1:(Na=t=!0,(i===2||i===9||i===3||i===6)&&(i=un.current,i!==null&&i.tag===13&&(i.flags|=16384))),_0(e,t)):vo(e)}function vo(t){var e=t;do{if((e.flags&32768)!==0){_0(e,Na);return}t=e.return;var n=mx(e.alternate,e,fa);if(n!==null){Vt=n;return}if(e=e.sibling,e!==null){Vt=e;return}Vt=e=t}while(e!==null);ge===0&&(ge=5)}function _0(t,e){do{var n=px(t.alternate,t);if(n!==null){n.flags&=32767,Vt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){Vt=t;return}Vt=t=n}while(t!==null);ge=6,Vt=null}function k0(t,e,n,i,l,u,d,y,M){t.cancelPendingCommit=null;do bo();while(Ee!==0);if((Gt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=Lr,Al(t,n,u,d,y,M),t===ie&&(Vt=ie=null,kt=0),Pi=e,Ra=t,da=n,Ku=u,Zu=l,E0=i,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,jx(yn,function(){return q0(),null})):(t.callbackNode=null,t.callbackPriority=0),i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=N.T,N.T=null,l=nt.p,nt.p=2,d=Gt,Gt|=4;try{gx(t,e,n)}finally{Gt=d,nt.p=l,N.T=i}}Ee=1,L0(),B0(),U0()}}function L0(){if(Ee===1){Ee=0;var t=Ra,e=Pi,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=N.T,N.T=null;var i=nt.p;nt.p=2;var l=Gt;Gt|=4;try{y0(e,t);var u=oc,d=Ad(t.containerInfo),y=u.focusedElem,M=u.selectionRange;if(d!==y&&y&&y.ownerDocument&&Td(y.ownerDocument.documentElement,y)){if(M!==null&&Rr(y)){var R=M.start,G=M.end;if(G===void 0&&(G=R),"selectionStart"in y)y.selectionStart=R,y.selectionEnd=Math.min(G,y.value.length);else{var P=y.ownerDocument||document,V=P&&P.defaultView||window;if(V.getSelection){var k=V.getSelection(),rt=y.textContent.length,bt=Math.min(M.start,rt),ne=M.end===void 0?bt:Math.min(M.end,rt);!k.extend&&bt>ne&&(d=ne,ne=bt,bt=d);var j=Sd(y,bt),w=Sd(y,ne);if(j&&w&&(k.rangeCount!==1||k.anchorNode!==j.node||k.anchorOffset!==j.offset||k.focusNode!==w.node||k.focusOffset!==w.offset)){var D=P.createRange();D.setStart(j.node,j.offset),k.removeAllRanges(),bt>ne?(k.addRange(D),k.extend(w.node,w.offset)):(D.setEnd(w.node,w.offset),k.addRange(D))}}}}for(P=[],k=y;k=k.parentNode;)k.nodeType===1&&P.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<P.length;y++){var Z=P[y];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Ro=!!lc,oc=lc=null}finally{Gt=l,nt.p=i,N.T=n}}t.current=e,Ee=2}}function B0(){if(Ee===2){Ee=0;var t=Ra,e=Pi,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=N.T,N.T=null;var i=nt.p;nt.p=2;var l=Gt;Gt|=4;try{d0(t,e.alternate,e)}finally{Gt=l,nt.p=i,N.T=n}}Ee=3}}function U0(){if(Ee===4||Ee===3){Ee=0,Hn();var t=Ra,e=Pi,n=da,i=E0;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Ee=5:(Ee=0,Pi=Ra=null,H0(t,t.pendingLanes));var l=t.pendingLanes;if(l===0&&(za=null),ys(n),e=e.stateNode,ae&&typeof ae.onCommitFiberRoot=="function")try{ae.onCommitFiberRoot(re,e,void 0,(e.current.flags&128)===128)}catch{}if(i!==null){e=N.T,l=nt.p,nt.p=2,N.T=null;try{for(var u=t.onRecoverableError,d=0;d<i.length;d++){var y=i[d];u(y.value,{componentStack:y.stack})}}finally{N.T=e,nt.p=l}}(da&3)!==0&&bo(),Kn(t),l=t.pendingLanes,(n&261930)!==0&&(l&42)!==0?t===Qu?Fs++:(Fs=0,Qu=t):Fs=0,Js(0)}}function H0(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,zs(e)))}function bo(){return L0(),B0(),U0(),q0()}function q0(){if(Ee!==5)return!1;var t=Ra,e=Ku;Ku=0;var n=ys(da),i=N.T,l=nt.p;try{nt.p=32>n?32:n,N.T=null,n=Zu,Zu=null;var u=Ra,d=da;if(Ee=0,Pi=Ra=null,da=0,(Gt&6)!==0)throw Error(r(331));var y=Gt;if(Gt|=4,T0(u.current),v0(u,u.current,d,n),Gt=y,Js(0,!1),ae&&typeof ae.onPostCommitFiberRoot=="function")try{ae.onPostCommitFiberRoot(re,u)}catch{}return!0}finally{nt.p=l,N.T=i,H0(t,e)}}function Y0(t,e,n){e=bn(n,e),e=Eu(t.stateNode,e,2),t=Ea(t,e,2),t!==null&&(ga(t,2),Kn(t))}function Wt(t,e,n){if(t.tag===3)Y0(t,t,n);else for(;e!==null;){if(e.tag===3){Y0(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(za===null||!za.has(i))){t=bn(n,t),n=Gh(2),i=Ea(e,n,2),i!==null&&(Xh(n,i,e,t),ga(i,2),Kn(i));break}}e=e.return}}function Fu(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new vx;var l=new Set;i.set(e,l)}else l=i.get(e),l===void 0&&(l=new Set,i.set(e,l));l.has(n)||(Yu=!0,l.add(n),t=Mx.bind(null,t,e,n),e.then(t,t))}function Mx(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,ie===t&&(kt&n)===n&&(ge===4||ge===3&&(kt&62914560)===kt&&300>Ce()-mo?(Gt&2)===0&&Fi(t,0):Gu|=n,$i===kt&&($i=0)),Kn(t)}function G0(t,e){e===0&&(e=Fa()),t=ei(t,e),t!==null&&(ga(t,e),Kn(t))}function Ex(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),G0(t,n)}function wx(t,e){var n=0;switch(t.tag){case 31:case 13:var i=t.stateNode,l=t.memoizedState;l!==null&&(n=l.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(e),G0(t,n)}function jx(t,e){return Qa(t,e)}var So=null,Wi=null,Ju=!1,To=!1,Wu=!1,Va=0;function Kn(t){t!==Wi&&t.next===null&&(Wi===null?So=Wi=t:Wi=Wi.next=t),To=!0,Ju||(Ju=!0,Nx())}function Js(t,e){if(!Wu&&To){Wu=!0;do for(var n=!1,i=So;i!==null;){if(t!==0){var l=i.pendingLanes;if(l===0)var u=0;else{var d=i.suspendedLanes,y=i.pingedLanes;u=(1<<31-Qt(42|t)+1)-1,u&=l&~(d&~y),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Q0(i,u))}else u=kt,u=Si(i,i===ie?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(u&3)===0||Pa(i,u)||(n=!0,Q0(i,u));i=i.next}while(n);Wu=!1}}function Cx(){X0()}function X0(){To=Ju=!1;var t=0;Va!==0&&Ux()&&(t=Va);for(var e=Ce(),n=null,i=So;i!==null;){var l=i.next,u=K0(i,e);u===0?(i.next=null,n===null?So=l:n.next=l,l===null&&(Wi=n)):(n=i,(t!==0||(u&3)!==0)&&(To=!0)),i=l}Ee!==0&&Ee!==5||Js(t),Va!==0&&(Va=0)}function K0(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,l=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var d=31-Qt(u),y=1<<d,M=l[d];M===-1?((y&n)===0||(y&i)!==0)&&(l[d]=gr(y,e)):M<=e&&(t.expiredLanes|=y),u&=~y}if(e=ie,n=kt,n=Si(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&(Jt===2||Jt===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&gn(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Pa(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&gn(i),ys(n)){case 2:case 8:n=Oe;break;case 32:n=yn;break;case 268435456:n=Mt;break;default:n=yn}return i=Z0.bind(null,t),n=Qa(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&gn(i),t.callbackPriority=2,t.callbackNode=null,2}function Z0(t,e){if(Ee!==0&&Ee!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(bo()&&t.callbackNode!==n)return null;var i=kt;return i=Si(t,t===ie?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(j0(t,i,e),K0(t,Ce()),t.callbackNode!=null&&t.callbackNode===n?Z0.bind(null,t):null)}function Q0(t,e){if(bo())return null;j0(t,e,!0)}function Nx(){qx(function(){(Gt&6)!==0?Qa($a,Cx):X0()})}function Iu(){if(Va===0){var t=Li;t===0&&(t=en,en<<=1,(en&261888)===0&&(en=256)),Va=t}return Va}function $0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Nl(""+t)}function P0(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function Dx(t,e,n,i,l){if(e==="submit"&&n&&n.stateNode===l){var u=$0((l[$]||null).action),d=i.submitter;d&&(e=(e=d[$]||null)?$0(e.formAction):d.getAttribute("formAction"),e!==null&&(u=e,d=null));var y=new Ol("action","action",null,i,l);t.push({event:y,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Va!==0){var M=d?P0(l,d):new FormData(l);vu(n,{pending:!0,data:M,method:l.method,action:u},null,M)}}else typeof u=="function"&&(y.preventDefault(),M=d?P0(l,d):new FormData(l),vu(n,{pending:!0,data:M,method:l.method,action:u},u,M))},currentTarget:l}]})}}for(var tc=0;tc<kr.length;tc++){var ec=kr[tc],zx=ec.toLowerCase(),Rx=ec[0].toUpperCase()+ec.slice(1);zn(zx,"on"+Rx)}zn(wd,"onAnimationEnd"),zn(jd,"onAnimationIteration"),zn(Cd,"onAnimationStart"),zn("dblclick","onDoubleClick"),zn("focusin","onFocus"),zn("focusout","onBlur"),zn($1,"onTransitionRun"),zn(P1,"onTransitionStart"),zn(F1,"onTransitionCancel"),zn(Nd,"onTransitionEnd"),fe("onMouseEnter",["mouseout","mouseover"]),fe("onMouseLeave",["mouseout","mouseover"]),fe("onPointerEnter",["pointerout","pointerover"]),fe("onPointerLeave",["pointerout","pointerover"]),ct("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ct("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ct("onBeforeInput",["compositionend","keypress","textInput","paste"]),ct("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ct("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ct("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ws="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(" "),Ox=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ws));function F0(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],l=i.event;i=i.listeners;t:{var u=void 0;if(e)for(var d=i.length-1;0<=d;d--){var y=i[d],M=y.instance,R=y.currentTarget;if(y=y.listener,M!==u&&l.isPropagationStopped())break t;u=y,l.currentTarget=R;try{u(l)}catch(G){kl(G)}l.currentTarget=null,u=M}else for(d=0;d<i.length;d++){if(y=i[d],M=y.instance,R=y.currentTarget,y=y.listener,M!==u&&l.isPropagationStopped())break t;u=y,l.currentTarget=R;try{u(l)}catch(G){kl(G)}l.currentTarget=null,u=M}}}}function _t(t,e){var n=e[it];n===void 0&&(n=e[it]=new Set);var i=t+"__bubble";n.has(i)||(J0(e,t,2,!1),n.add(i))}function nc(t,e,n){var i=0;e&&(i|=4),J0(n,t,i,e)}var Ao="_reactListening"+Math.random().toString(36).slice(2);function ac(t){if(!t[Ao]){t[Ao]=!0,Pt.forEach(function(n){n!=="selectionchange"&&(Ox.has(n)||nc(n,!1,t),nc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ao]||(e[Ao]=!0,nc("selectionchange",!1,e))}}function J0(t,e,n,i){switch(wm(e)){case 2:var l=ov;break;case 8:l=rv;break;default:l=xc}n=l.bind(null,e,n,t),l=void 0,!Ar||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(l=!0),i?l!==void 0?t.addEventListener(e,n,{capture:!0,passive:l}):t.addEventListener(e,n,!0):l!==void 0?t.addEventListener(e,n,{passive:l}):t.addEventListener(e,n,!1)}function ic(t,e,n,i,l){var u=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var d=i.tag;if(d===3||d===4){var y=i.stateNode.containerInfo;if(y===l)break;if(d===4)for(d=i.return;d!==null;){var M=d.tag;if((M===3||M===4)&&d.stateNode.containerInfo===l)return;d=d.return}for(;y!==null;){if(d=Ht(y),d===null)return;if(M=d.tag,M===5||M===6||M===26||M===27){i=u=d;continue t}y=y.parentNode}}i=i.return}nd(function(){var R=u,G=Sr(n),P=[];t:{var V=Dd.get(t);if(V!==void 0){var k=Ol,rt=t;switch(t){case"keypress":if(zl(n)===0)break t;case"keydown":case"keyup":k=w1;break;case"focusin":rt="focus",k=jr;break;case"focusout":rt="blur",k=jr;break;case"beforeblur":case"afterblur":k=jr;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=m1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=N1;break;case wd:case jd:case Cd:k=y1;break;case Nd:k=z1;break;case"scroll":case"scrollend":k=d1;break;case"wheel":k=O1;break;case"copy":case"cut":case"paste":k=v1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=od;break;case"toggle":case"beforetoggle":k=_1}var bt=(e&4)!==0,ne=!bt&&(t==="scroll"||t==="scrollend"),j=bt?V!==null?V+"Capture":null:V;bt=[];for(var w=R,D;w!==null;){var Z=w;if(D=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||D===null||j===null||(Z=bs(w,j),Z!=null&&bt.push(Is(w,Z,D))),ne)break;w=w.return}0<bt.length&&(V=new k(V,rt,null,n,G),P.push({event:V,listeners:bt}))}}if((e&7)===0){t:{if(V=t==="mouseover"||t==="pointerover",k=t==="mouseout"||t==="pointerout",V&&n!==br&&(rt=n.relatedTarget||n.fromElement)&&(Ht(rt)||rt[J]))break t;if((k||V)&&(V=G.window===G?G:(V=G.ownerDocument)?V.defaultView||V.parentWindow:window,k?(rt=n.relatedTarget||n.toElement,k=R,rt=rt?Ht(rt):null,rt!==null&&(ne=m(rt),bt=rt.tag,rt!==ne||bt!==5&&bt!==27&&bt!==6)&&(rt=null)):(k=null,rt=R),k!==rt)){if(bt=sd,Z="onMouseLeave",j="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(bt=od,Z="onPointerLeave",j="onPointerEnter",w="pointer"),ne=k==null?V:It(k),D=rt==null?V:It(rt),V=new bt(Z,w+"leave",k,n,G),V.target=ne,V.relatedTarget=D,Z=null,Ht(G)===R&&(bt=new bt(j,w+"enter",rt,n,G),bt.target=D,bt.relatedTarget=ne,Z=bt),ne=Z,k&&rt)e:{for(bt=Vx,j=k,w=rt,D=0,Z=j;Z;Z=bt(Z))D++;Z=0;for(var xt=w;xt;xt=bt(xt))Z++;for(;0<D-Z;)j=bt(j),D--;for(;0<Z-D;)w=bt(w),Z--;for(;D--;){if(j===w||w!==null&&j===w.alternate){bt=j;break e}j=bt(j),w=bt(w)}bt=null}else bt=null;k!==null&&W0(P,V,k,bt,!1),rt!==null&&ne!==null&&W0(P,ne,rt,bt,!0)}}t:{if(V=R?It(R):window,k=V.nodeName&&V.nodeName.toLowerCase(),k==="select"||k==="input"&&V.type==="file")var qt=pd;else if(hd(V))if(gd)qt=K1;else{qt=G1;var ht=Y1}else k=V.nodeName,!k||k.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?R&&vr(R.elementType)&&(qt=pd):qt=X1;if(qt&&(qt=qt(t,R))){md(P,qt,n,G);break t}ht&&ht(t,V,R),t==="focusout"&&R&&V.type==="number"&&R.memoizedProps.value!=null&&xr(V,"number",V.value)}switch(ht=R?It(R):window,t){case"focusin":(hd(ht)||ht.contentEditable==="true")&&(Ni=ht,Or=R,Cs=null);break;case"focusout":Cs=Or=Ni=null;break;case"mousedown":Vr=!0;break;case"contextmenu":case"mouseup":case"dragend":Vr=!1,Md(P,n,G);break;case"selectionchange":if(Q1)break;case"keydown":case"keyup":Md(P,n,G)}var Dt;if(Nr)t:{switch(t){case"compositionstart":var Lt="onCompositionStart";break t;case"compositionend":Lt="onCompositionEnd";break t;case"compositionupdate":Lt="onCompositionUpdate";break t}Lt=void 0}else Ci?fd(t,n)&&(Lt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(Lt="onCompositionStart");Lt&&(rd&&n.locale!=="ko"&&(Ci||Lt!=="onCompositionStart"?Lt==="onCompositionEnd"&&Ci&&(Dt=ad()):(xa=G,Mr="value"in xa?xa.value:xa.textContent,Ci=!0)),ht=Mo(R,Lt),0<ht.length&&(Lt=new ld(Lt,t,null,n,G),P.push({event:Lt,listeners:ht}),Dt?Lt.data=Dt:(Dt=dd(n),Dt!==null&&(Lt.data=Dt)))),(Dt=L1?B1(t,n):U1(t,n))&&(Lt=Mo(R,"onBeforeInput"),0<Lt.length&&(ht=new ld("onBeforeInput","beforeinput",null,n,G),P.push({event:ht,listeners:Lt}),ht.data=Dt)),Dx(P,t,R,n,G)}F0(P,e)})}function Is(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Mo(t,e){for(var n=e+"Capture",i=[];t!==null;){var l=t,u=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||u===null||(l=bs(t,n),l!=null&&i.unshift(Is(t,l,u)),l=bs(t,e),l!=null&&i.push(Is(t,l,u))),t.tag===3)return i;t=t.return}return[]}function Vx(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function W0(t,e,n,i,l){for(var u=e._reactName,d=[];n!==null&&n!==i;){var y=n,M=y.alternate,R=y.stateNode;if(y=y.tag,M!==null&&M===i)break;y!==5&&y!==26&&y!==27||R===null||(M=R,l?(R=bs(n,u),R!=null&&d.unshift(Is(n,R,M))):l||(R=bs(n,u),R!=null&&d.push(Is(n,R,M)))),n=n.return}d.length!==0&&t.push({event:e,listeners:d})}var _x=/\r\n?/g,kx=/\u0000|\uFFFD/g;function I0(t){return(typeof t=="string"?t:""+t).replace(_x,`
|
|
9
|
-
`).replace(kx,"")}function tm(t,e){return e=I0(e),I0(t)===e}function ee(t,e,n,i,l,u){switch(n){case"children":typeof i=="string"?e==="body"||e==="textarea"&&i===""||Ei(t,i):(typeof i=="number"||typeof i=="bigint")&&e!=="body"&&Ei(t,""+i);break;case"className":ya(t,"class",i);break;case"tabIndex":ya(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":ya(t,n,i);break;case"style":td(t,i,u);break;case"data":if(e!=="object"){ya(t,"data",i);break}case"src":case"href":if(i===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=Nl(""+i),t.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(e!=="input"&&ee(t,e,"name",l.name,l,null),ee(t,e,"formEncType",l.formEncType,l,null),ee(t,e,"formMethod",l.formMethod,l,null),ee(t,e,"formTarget",l.formTarget,l,null)):(ee(t,e,"encType",l.encType,l,null),ee(t,e,"method",l.method,l,null),ee(t,e,"target",l.target,l,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=Nl(""+i),t.setAttribute(n,i);break;case"onClick":i!=null&&(t.onclick=Jn);break;case"onScroll":i!=null&&_t("scroll",t);break;case"onScrollEnd":i!=null&&_t("scrollend",t);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(l.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":t.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){t.removeAttribute("xlink:href");break}n=Nl(""+i),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""+i):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":i===!0?t.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,i):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(n,i):t.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(n):t.setAttribute(n,i);break;case"popover":_t("beforetoggle",t),_t("toggle",t),he(t,"popover",i);break;case"xlinkActuate":sn(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":sn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":sn(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":sn(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":sn(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":sn(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":sn(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":sn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":sn(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":he(t,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=c1.get(n)||n,he(t,n,i))}}function sc(t,e,n,i,l,u){switch(n){case"style":td(t,i,u);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(l.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"children":typeof i=="string"?Ei(t,i):(typeof i=="number"||typeof i=="bigint")&&Ei(t,""+i);break;case"onScroll":i!=null&&_t("scroll",t);break;case"onScrollEnd":i!=null&&_t("scrollend",t);break;case"onClick":i!=null&&(t.onclick=Jn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ft.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),e=n.slice(2,l?n.length-7:void 0),u=t[$]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,l),typeof i=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,i,l);break t}n in t?t[n]=i:i===!0?t.setAttribute(n,""):he(t,n,i)}}}function Be(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_t("error",t),_t("load",t);var i=!1,l=!1,u;for(u in n)if(n.hasOwnProperty(u)){var d=n[u];if(d!=null)switch(u){case"src":i=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:ee(t,e,u,d,n,null)}}l&&ee(t,e,"srcSet",n.srcSet,n,null),i&&ee(t,e,"src",n.src,n,null);return;case"input":_t("invalid",t);var y=u=d=l=null,M=null,R=null;for(i in n)if(n.hasOwnProperty(i)){var G=n[i];if(G!=null)switch(i){case"name":l=G;break;case"type":d=G;break;case"checked":M=G;break;case"defaultChecked":R=G;break;case"value":u=G;break;case"defaultValue":y=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,e));break;default:ee(t,e,i,G,n,null)}}Ff(t,u,y,M,R,d,l,!1);return;case"select":_t("invalid",t),i=d=u=null;for(l in n)if(n.hasOwnProperty(l)&&(y=n[l],y!=null))switch(l){case"value":u=y;break;case"defaultValue":d=y;break;case"multiple":i=y;default:ee(t,e,l,y,n,null)}e=u,n=d,t.multiple=!!i,e!=null?Mi(t,!!i,e,!1):n!=null&&Mi(t,!!i,n,!0);return;case"textarea":_t("invalid",t),u=l=i=null;for(d in n)if(n.hasOwnProperty(d)&&(y=n[d],y!=null))switch(d){case"value":i=y;break;case"defaultValue":l=y;break;case"children":u=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:ee(t,e,d,y,n,null)}Wf(t,i,l,u);return;case"option":for(M in n)n.hasOwnProperty(M)&&(i=n[M],i!=null)&&(M==="selected"?t.selected=i&&typeof i!="function"&&typeof i!="symbol":ee(t,e,M,i,n,null));return;case"dialog":_t("beforetoggle",t),_t("toggle",t),_t("cancel",t),_t("close",t);break;case"iframe":case"object":_t("load",t);break;case"video":case"audio":for(i=0;i<Ws.length;i++)_t(Ws[i],t);break;case"image":_t("error",t),_t("load",t);break;case"details":_t("toggle",t);break;case"embed":case"source":case"link":_t("error",t),_t("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(R in n)if(n.hasOwnProperty(R)&&(i=n[R],i!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:ee(t,e,R,i,n,null)}return;default:if(vr(e)){for(G in n)n.hasOwnProperty(G)&&(i=n[G],i!==void 0&&sc(t,e,G,i,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(i=n[y],i!=null&&ee(t,e,y,i,n,null))}function Lx(t,e,n,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,u=null,d=null,y=null,M=null,R=null,G=null;for(k in n){var P=n[k];if(n.hasOwnProperty(k)&&P!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":M=P;default:i.hasOwnProperty(k)||ee(t,e,k,null,i,P)}}for(var V in i){var k=i[V];if(P=n[V],i.hasOwnProperty(V)&&(k!=null||P!=null))switch(V){case"type":u=k;break;case"name":l=k;break;case"checked":R=k;break;case"defaultChecked":G=k;break;case"value":d=k;break;case"defaultValue":y=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(137,e));break;default:k!==P&&ee(t,e,V,k,i,P)}}yr(t,d,y,M,R,G,u,l);return;case"select":k=d=y=V=null;for(u in n)if(M=n[u],n.hasOwnProperty(u)&&M!=null)switch(u){case"value":break;case"multiple":k=M;default:i.hasOwnProperty(u)||ee(t,e,u,null,i,M)}for(l in i)if(u=i[l],M=n[l],i.hasOwnProperty(l)&&(u!=null||M!=null))switch(l){case"value":V=u;break;case"defaultValue":y=u;break;case"multiple":d=u;default:u!==M&&ee(t,e,l,u,i,M)}e=y,n=d,i=k,V!=null?Mi(t,!!n,V,!1):!!i!=!!n&&(e!=null?Mi(t,!!n,e,!0):Mi(t,!!n,n?[]:"",!1));return;case"textarea":k=V=null;for(y in n)if(l=n[y],n.hasOwnProperty(y)&&l!=null&&!i.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:ee(t,e,y,null,i,l)}for(d in i)if(l=i[d],u=n[d],i.hasOwnProperty(d)&&(l!=null||u!=null))switch(d){case"value":V=l;break;case"defaultValue":k=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(r(91));break;default:l!==u&&ee(t,e,d,l,i,u)}Jf(t,V,k);return;case"option":for(var rt in n)V=n[rt],n.hasOwnProperty(rt)&&V!=null&&!i.hasOwnProperty(rt)&&(rt==="selected"?t.selected=!1:ee(t,e,rt,null,i,V));for(M in i)V=i[M],k=n[M],i.hasOwnProperty(M)&&V!==k&&(V!=null||k!=null)&&(M==="selected"?t.selected=V&&typeof V!="function"&&typeof V!="symbol":ee(t,e,M,V,i,k));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 bt in n)V=n[bt],n.hasOwnProperty(bt)&&V!=null&&!i.hasOwnProperty(bt)&&ee(t,e,bt,null,i,V);for(R in i)if(V=i[R],k=n[R],i.hasOwnProperty(R)&&V!==k&&(V!=null||k!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,e));break;default:ee(t,e,R,V,i,k)}return;default:if(vr(e)){for(var ne in n)V=n[ne],n.hasOwnProperty(ne)&&V!==void 0&&!i.hasOwnProperty(ne)&&sc(t,e,ne,void 0,i,V);for(G in i)V=i[G],k=n[G],!i.hasOwnProperty(G)||V===k||V===void 0&&k===void 0||sc(t,e,G,V,i,k);return}}for(var j in n)V=n[j],n.hasOwnProperty(j)&&V!=null&&!i.hasOwnProperty(j)&&ee(t,e,j,null,i,V);for(P in i)V=i[P],k=n[P],!i.hasOwnProperty(P)||V===k||V==null&&k==null||ee(t,e,P,V,i,k)}function em(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Bx(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var l=n[i],u=l.transferSize,d=l.initiatorType,y=l.duration;if(u&&y&&em(d)){for(d=0,y=l.responseEnd,i+=1;i<n.length;i++){var M=n[i],R=M.startTime;if(R>y)break;var G=M.transferSize,P=M.initiatorType;G&&em(P)&&(M=M.responseEnd,d+=G*(M<y?1:(y-R)/(M-R)))}if(--i,e+=8*(u+d)/(l.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var lc=null,oc=null;function Eo(t){return t.nodeType===9?t:t.ownerDocument}function nm(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function am(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function rc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var uc=null;function Ux(){var t=window.event;return t&&t.type==="popstate"?t===uc?!1:(uc=t,!0):(uc=null,!1)}var im=typeof setTimeout=="function"?setTimeout:void 0,Hx=typeof clearTimeout=="function"?clearTimeout:void 0,sm=typeof Promise=="function"?Promise:void 0,qx=typeof queueMicrotask=="function"?queueMicrotask:typeof sm<"u"?function(t){return sm.resolve(null).then(t).catch(Yx)}:im;function Yx(t){setTimeout(function(){throw t})}function _a(t){return t==="head"}function lm(t,e){var n=e,i=0;do{var l=n.nextSibling;if(t.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"||n==="/&"){if(i===0){t.removeChild(l),ns(e);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")tl(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,tl(n);for(var u=n.firstChild;u;){var d=u.nextSibling,y=u.nodeName;u[wt]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=d}}else n==="body"&&tl(t.ownerDocument.body);n=l}while(n);ns(e)}function om(t,e){var n=t;t=0;do{var i=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=i}while(n)}function cc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":cc(n),Xt(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Gx(t,e,n,i){for(;t.nodeType===1;){var l=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[wt])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==l.rel||t.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||t.getAttribute("title")!==(l.title==null?null:l.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(l.src==null?null:l.src)||t.getAttribute("type")!==(l.type==null?null:l.type)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=l.name==null?null:""+l.name;if(l.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=En(t.nextSibling),t===null)break}return null}function Xx(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=En(t.nextSibling),t===null))return null;return t}function rm(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=En(t.nextSibling),t===null))return null;return t}function fc(t){return t.data==="$?"||t.data==="$~"}function dc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Kx(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var i=function(){e(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),t._reactRetry=i}}function En(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var hc=null;function um(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return En(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function cm(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function fm(t,e,n){switch(e=Eo(n),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function tl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Xt(t)}var wn=new Map,dm=new Set;function wo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ha=nt.d;nt.d={f:Zx,r:Qx,D:$x,C:Px,L:Fx,m:Jx,X:Ix,S:Wx,M:tv};function Zx(){var t=ha.f(),e=yo();return t||e}function Qx(t){var e=$t(t);e!==null&&e.tag===5&&e.type==="form"?Nh(e):ha.r(t)}var Ii=typeof document>"u"?null:document;function hm(t,e,n){var i=Ii;if(i&&typeof e=="string"&&e){var l=xn(e);l='link[rel="'+t+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),dm.has(l)||(dm.add(l),t={rel:t,crossOrigin:n,href:e},i.querySelector(l)===null&&(e=i.createElement("link"),Be(e,"link",t),gt(e),i.head.appendChild(e)))}}function $x(t){ha.D(t),hm("dns-prefetch",t,null)}function Px(t,e){ha.C(t,e),hm("preconnect",t,e)}function Fx(t,e,n){ha.L(t,e,n);var i=Ii;if(i&&t&&e){var l='link[rel="preload"][as="'+xn(e)+'"]';e==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+xn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+xn(n.imageSizes)+'"]')):l+='[href="'+xn(t)+'"]';var u=l;switch(e){case"style":u=ts(t);break;case"script":u=es(t)}wn.has(u)||(t=x({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),wn.set(u,t),i.querySelector(l)!==null||e==="style"&&i.querySelector(el(u))||e==="script"&&i.querySelector(nl(u))||(e=i.createElement("link"),Be(e,"link",t),gt(e),i.head.appendChild(e)))}}function Jx(t,e){ha.m(t,e);var n=Ii;if(n&&t){var i=e&&typeof e.as=="string"?e.as:"script",l='link[rel="modulepreload"][as="'+xn(i)+'"][href="'+xn(t)+'"]',u=l;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=es(t)}if(!wn.has(u)&&(t=x({rel:"modulepreload",href:t},e),wn.set(u,t),n.querySelector(l)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(nl(u)))return}i=n.createElement("link"),Be(i,"link",t),gt(i),n.head.appendChild(i)}}}function Wx(t,e,n){ha.S(t,e,n);var i=Ii;if(i&&t){var l=mt(i).hoistableStyles,u=ts(t);e=e||"default";var d=l.get(u);if(!d){var y={loading:0,preload:null};if(d=i.querySelector(el(u)))y.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":e},n),(n=wn.get(u))&&mc(t,n);var M=d=i.createElement("link");gt(M),Be(M,"link",t),M._p=new Promise(function(R,G){M.onload=R,M.onerror=G}),M.addEventListener("load",function(){y.loading|=1}),M.addEventListener("error",function(){y.loading|=2}),y.loading|=4,jo(d,e,i)}d={type:"stylesheet",instance:d,count:1,state:y},l.set(u,d)}}}function Ix(t,e){ha.X(t,e);var n=Ii;if(n&&t){var i=mt(n).hoistableScripts,l=es(t),u=i.get(l);u||(u=n.querySelector(nl(l)),u||(t=x({src:t,async:!0},e),(e=wn.get(l))&&pc(t,e),u=n.createElement("script"),gt(u),Be(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(l,u))}}function tv(t,e){ha.M(t,e);var n=Ii;if(n&&t){var i=mt(n).hoistableScripts,l=es(t),u=i.get(l);u||(u=n.querySelector(nl(l)),u||(t=x({src:t,async:!0,type:"module"},e),(e=wn.get(l))&&pc(t,e),u=n.createElement("script"),gt(u),Be(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(l,u))}}function mm(t,e,n,i){var l=(l=dt.current)?wo(l):null;if(!l)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ts(n.href),n=mt(l).hoistableStyles,i=n.get(e),i||(i={type:"style",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ts(n.href);var u=mt(l).hoistableStyles,d=u.get(t);if(d||(l=l.ownerDocument||l,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,d),(u=l.querySelector(el(t)))&&!u._p&&(d.instance=u,d.state.loading=5),wn.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},wn.set(t,n),u||ev(l,t,n,d.state))),e&&i===null)throw Error(r(528,""));return d}if(e&&i!==null)throw Error(r(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=es(n),n=mt(l).hoistableScripts,i=n.get(e),i||(i={type:"script",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function ts(t){return'href="'+xn(t)+'"'}function el(t){return'link[rel="stylesheet"]['+t+"]"}function pm(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function ev(t,e,n,i){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?i.loading=1:(e=t.createElement("link"),i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2}),Be(e,"link",n),gt(e),t.head.appendChild(e))}function es(t){return'[src="'+xn(t)+'"]'}function nl(t){return"script[async]"+t}function gm(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+xn(n.href)+'"]');if(i)return e.instance=i,gt(i),i;var l=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),gt(i),Be(i,"style",l),jo(i,n.precedence,t),e.instance=i;case"stylesheet":l=ts(n.href);var u=t.querySelector(el(l));if(u)return e.state.loading|=4,e.instance=u,gt(u),u;i=pm(n),(l=wn.get(l))&&mc(i,l),u=(t.ownerDocument||t).createElement("link"),gt(u);var d=u;return d._p=new Promise(function(y,M){d.onload=y,d.onerror=M}),Be(u,"link",i),e.state.loading|=4,jo(u,n.precedence,t),e.instance=u;case"script":return u=es(n.src),(l=t.querySelector(nl(u)))?(e.instance=l,gt(l),l):(i=n,(l=wn.get(u))&&(i=x({},n),pc(i,l)),t=t.ownerDocument||t,l=t.createElement("script"),gt(l),Be(l,"link",i),t.head.appendChild(l),e.instance=l);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,jo(i,n.precedence,t));return e.instance}function jo(t,e,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=i.length?i[i.length-1]:null,u=l,d=0;d<i.length;d++){var y=i[d];if(y.dataset.precedence===e)u=y;else if(u!==l)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function mc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function pc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Co=null;function ym(t,e,n){if(Co===null){var i=new Map,l=Co=new Map;l.set(n,i)}else l=Co,i=l.get(n),i||(i=new Map,l.set(n,i));if(i.has(t))return i;for(i.set(t,null),n=n.getElementsByTagName(t),l=0;l<n.length;l++){var u=n[l];if(!(u[wt]||u[q]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var d=u.getAttribute(e)||"";d=t+d;var y=i.get(d);y?y.push(u):i.set(d,[u])}}return i}function xm(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function nv(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function vm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function av(t,e,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var l=ts(i.href),u=e.querySelector(el(l));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=No.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,gt(u);return}u=e.ownerDocument||e,i=pm(i),(l=wn.get(l))&&mc(i,l),u=u.createElement("link"),gt(u);var d=u;d._p=new Promise(function(y,M){d.onload=y,d.onerror=M}),Be(u,"link",i),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=No.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var gc=0;function iv(t,e){return t.stylesheets&&t.count===0&&zo(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var i=setTimeout(function(){if(t.stylesheets&&zo(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&gc===0&&(gc=62500*Bx());var l=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&zo(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>gc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(l)}}:null}function No(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)zo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Do=null;function zo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Do=new Map,e.forEach(sv,t),Do=null,No.call(t))}function sv(t,e){if(!(e.state.loading&4)){var n=Do.get(t);if(n)var i=n.get(null);else{n=new Map,Do.set(t,n);for(var l=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<l.length;u++){var d=l[u];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),i=d)}i&&n.set(null,i)}l=e.instance,d=l.getAttribute("data-precedence"),u=n.get(d)||i,u===i&&n.set(null,l),n.set(d,l),this.count++,i=No.bind(this),l.addEventListener("load",i),l.addEventListener("error",i),u?u.parentNode.insertBefore(l,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(l,t.firstChild)),e.state.loading|=4}}var al={$$typeof:z,Provider:null,Consumer:null,_currentValue:et,_currentValue2:et,_threadCount:0};function lv(t,e,n,i,l,u,d,y,M){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ti(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ti(0),this.hiddenUpdates=Ti(null),this.identifierPrefix=i,this.onUncaughtError=l,this.onCaughtError=u,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function bm(t,e,n,i,l,u,d,y,M,R,G,P){return t=new lv(t,e,n,d,M,R,G,P,y),e=1,u===!0&&(e|=24),u=rn(3,null,null,e),t.current=u,u.stateNode=t,e=Pr(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:i,isDehydrated:n,cache:e},Ir(u),t}function Sm(t){return t?(t=Ri,t):Ri}function Tm(t,e,n,i,l,u){l=Sm(l),i.context===null?i.context=l:i.pendingContext=l,i=Ma(e),i.payload={element:n},u=u===void 0?null:u,u!==null&&(i.callback=u),n=Ea(t,i,e),n!==null&&(tn(n,t,e),_s(n,t,e))}function Am(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function yc(t,e){Am(t,e),(t=t.alternate)&&Am(t,e)}function Mm(t){if(t.tag===13||t.tag===31){var e=ei(t,67108864);e!==null&&tn(e,t,67108864),yc(t,67108864)}}function Em(t){if(t.tag===13||t.tag===31){var e=hn();e=gs(e);var n=ei(t,e);n!==null&&tn(n,t,e),yc(t,e)}}var Ro=!0;function ov(t,e,n,i){var l=N.T;N.T=null;var u=nt.p;try{nt.p=2,xc(t,e,n,i)}finally{nt.p=u,N.T=l}}function rv(t,e,n,i){var l=N.T;N.T=null;var u=nt.p;try{nt.p=8,xc(t,e,n,i)}finally{nt.p=u,N.T=l}}function xc(t,e,n,i){if(Ro){var l=vc(i);if(l===null)ic(t,e,i,Oo,n),jm(t,i);else if(cv(l,t,e,n,i))i.stopPropagation();else if(jm(t,i),e&4&&-1<uv.indexOf(t)){for(;l!==null;){var u=$t(l);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var d=me(u.pendingLanes);if(d!==0){var y=u;for(y.pendingLanes|=2,y.entangledLanes|=2;d;){var M=1<<31-Qt(d);y.entanglements[1]|=M,d&=~M}Kn(u),(Gt&6)===0&&(po=Ce()+500,Js(0))}}break;case 31:case 13:y=ei(u,2),y!==null&&tn(y,u,2),yo(),yc(u,2)}if(u=vc(i),u===null&&ic(t,e,i,Oo,n),u===l)break;l=u}l!==null&&i.stopPropagation()}else ic(t,e,i,null,n)}}function vc(t){return t=Sr(t),bc(t)}var Oo=null;function bc(t){if(Oo=null,t=Ht(t),t!==null){var e=m(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=f(e),t!==null)return t;t=null}else if(n===31){if(t=p(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Oo=t,null}function wm(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ms()){case $a:return 2;case Oe:return 8;case yn:case tt:return 32;case Mt:return 268435456;default:return 32}default:return 32}}var Sc=!1,ka=null,La=null,Ba=null,il=new Map,sl=new Map,Ua=[],uv="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 jm(t,e){switch(t){case"focusin":case"focusout":ka=null;break;case"dragenter":case"dragleave":La=null;break;case"mouseover":case"mouseout":Ba=null;break;case"pointerover":case"pointerout":il.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":sl.delete(e.pointerId)}}function ll(t,e,n,i,l,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:u,targetContainers:[l]},e!==null&&(e=$t(e),e!==null&&Mm(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,l!==null&&e.indexOf(l)===-1&&e.push(l),t)}function cv(t,e,n,i,l){switch(e){case"focusin":return ka=ll(ka,t,e,n,i,l),!0;case"dragenter":return La=ll(La,t,e,n,i,l),!0;case"mouseover":return Ba=ll(Ba,t,e,n,i,l),!0;case"pointerover":var u=l.pointerId;return il.set(u,ll(il.get(u)||null,t,e,n,i,l)),!0;case"gotpointercapture":return u=l.pointerId,sl.set(u,ll(sl.get(u)||null,t,e,n,i,l)),!0}return!1}function Cm(t){var e=Ht(t.target);if(e!==null){var n=m(e);if(n!==null){if(e=n.tag,e===13){if(e=f(n),e!==null){t.blockedOn=e,jl(t.priority,function(){Em(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,jl(t.priority,function(){Em(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Vo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=vc(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);br=i,n.target.dispatchEvent(i),br=null}else return e=$t(n),e!==null&&Mm(e),t.blockedOn=n,!1;e.shift()}return!0}function Nm(t,e,n){Vo(t)&&n.delete(e)}function fv(){Sc=!1,ka!==null&&Vo(ka)&&(ka=null),La!==null&&Vo(La)&&(La=null),Ba!==null&&Vo(Ba)&&(Ba=null),il.forEach(Nm),sl.forEach(Nm)}function _o(t,e){t.blockedOn===e&&(t.blockedOn=null,Sc||(Sc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,fv)))}var ko=null;function Dm(t){ko!==t&&(ko=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){ko===t&&(ko=null);for(var e=0;e<t.length;e+=3){var n=t[e],i=t[e+1],l=t[e+2];if(typeof i!="function"){if(bc(i||n)===null)continue;break}var u=$t(n);u!==null&&(t.splice(e,3),e-=3,vu(u,{pending:!0,data:l,method:n.method,action:i},i,l))}}))}function ns(t){function e(M){return _o(M,t)}ka!==null&&_o(ka,t),La!==null&&_o(La,t),Ba!==null&&_o(Ba,t),il.forEach(e),sl.forEach(e);for(var n=0;n<Ua.length;n++){var i=Ua[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<Ua.length&&(n=Ua[0],n.blockedOn===null);)Cm(n),n.blockedOn===null&&Ua.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var l=n[i],u=n[i+1],d=l[$]||null;if(typeof u=="function")d||Dm(n);else if(d){var y=null;if(u&&u.hasAttribute("formAction")){if(l=u,d=u[$]||null)y=d.formAction;else if(bc(l)!==null)continue}else y=d.action;typeof y=="function"?n[i+1]=y:(n.splice(i,3),i-=3),Dm(n)}}}function zm(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(d){return l=d})},focusReset:"manual",scroll:"manual"})}function e(){l!==null&&(l(),l=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,l=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),l!==null&&(l(),l=null)}}}function Tc(t){this._internalRoot=t}Lo.prototype.render=Tc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var n=e.current,i=hn();Tm(n,i,t,e,null,null)},Lo.prototype.unmount=Tc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Tm(t.current,2,null,t,null,null),yo(),e[J]=null}};function Lo(t){this._internalRoot=t}Lo.prototype.unstable_scheduleHydration=function(t){if(t){var e=wl();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Ua.length&&e!==0&&e<Ua[n].priority;n++);Ua.splice(n,0,t),n===0&&Cm(t)}};var Rm=s.version;if(Rm!=="19.2.6")throw Error(r(527,Rm,"19.2.6"));nt.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=g(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var dv={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Bo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bo.isDisabled&&Bo.supportsFiber)try{re=Bo.inject(dv),ae=Bo}catch{}}return rl.createRoot=function(t,e){if(!c(t))throw Error(r(299));var n=!1,i="",l=Uh,u=Hh,d=qh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(l=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(d=e.onRecoverableError)),e=bm(t,1,!1,null,null,n,i,null,l,u,d,zm),t[J]=e.current,ac(t),new Tc(e)},rl.hydrateRoot=function(t,e,n){if(!c(t))throw Error(r(299));var i=!1,l="",u=Uh,d=Hh,y=qh,M=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(M=n.formState)),e=bm(t,1,!0,e,n??null,i,l,M,u,d,y,zm),e.context=Sm(null),n=e.current,i=hn(),i=gs(i),l=Ma(i),l.callback=null,Ea(n,l,i),n=i,e.current.lanes=n,ga(e,n),Kn(e),t[J]=e.current,ac(t),new Lo(e)},rl.version="19.2.6",rl}var Ym;function Av(){if(Ym)return Mc.exports;Ym=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(s){console.error(s)}}return a(),Mc.exports=Tv(),Mc.exports}var Mv=Av(),H=bf();const Re=mv(H);const Ev=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wv=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,o,r)=>r?r.toUpperCase():o.toLowerCase()),Gm=a=>{const s=wv(a);return s.charAt(0).toUpperCase()+s.slice(1)},xg=(...a)=>a.filter((s,o,r)=>!!s&&s.trim()!==""&&r.indexOf(s)===o).join(" ").trim(),jv=a=>{for(const s in a)if(s.startsWith("aria-")||s==="role"||s==="title")return!0};var Cv={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 Nv=H.forwardRef(({color:a="currentColor",size:s=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:c="",children:m,iconNode:f,...p},v)=>H.createElement("svg",{ref:v,...Cv,width:s,height:s,stroke:a,strokeWidth:r?Number(o)*24/Number(s):o,className:xg("lucide",c),...!m&&!jv(p)&&{"aria-hidden":"true"},...p},[...f.map(([g,b])=>H.createElement(g,b)),...Array.isArray(m)?m:[m]]));const Rt=(a,s)=>{const o=H.forwardRef(({className:r,...c},m)=>H.createElement(Nv,{ref:m,iconNode:s,className:xg(`lucide-${Ev(Gm(a))}`,`lucide-${a}`,r),...c}));return o.displayName=Gm(a),o};const Dv=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Io=Rt("activity",Dv);const zv=[["path",{d:"M12 22V8",key:"qkxhtm"}],["path",{d:"M5 12H2a10 10 0 0 0 20 0h-3",key:"1hv3nh"}],["circle",{cx:"12",cy:"5",r:"3",key:"rqqgnr"}]],Xm=Rt("anchor",zv);const Rv=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],vg=Rt("book-open",Rv);const Ov=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Km=Rt("check",Ov);const Vv=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],bg=Rt("chevron-left",Vv);const _v=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Zc=Rt("chevron-right",_v);const kv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Lv=Rt("circle-question-mark",kv);const Bv=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Uv=Rt("code",Bv);const Hv=[["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"}]],os=Rt("copy",Hv);const qv=[["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"}]],Yv=Rt("cpu",qv);const Gv=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Zm=Rt("database",Gv);const Xv=[["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"}]],Sg=Rt("eye-off",Xv);const Kv=[["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"}]],Zv=Rt("eye",Kv);const Qv=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],$v=Rt("file-down",Qv);const Pv=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Fv=Rt("file-text",Pv);const Jv=[["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"}]],Qm=Rt("folder",Jv);const Wv=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],tr=Rt("layers",Wv);const Iv=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],Tg=Rt("map",Iv);const tb=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],eb=Rt("maximize",tb);const nb=[["path",{d:"M5 12h14",key:"1ays0h"}]],ab=Rt("minus",nb);const ib=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],sb=Rt("network",ib);const lb=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 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.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],$m=Rt("package",lb);const ob=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],rb=Rt("pin-off",ob);const ub=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],cb=Rt("pin",ub);const fb=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],db=Rt("play",fb);const hb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],mb=Rt("plus",hb);const pb=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],Pm=Rt("refresh-ccw",pb);const gb=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],yb=Rt("refresh-cw",gb);const xb=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],Fm=Rt("rocket",xb);const vb=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],bb=Rt("search",vb);const Sb=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Tb=Rt("settings",Sb);const Ab=[["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:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],Mb=Rt("shield-alert",Ab);const Eb=[["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"}]],Jm=Rt("shield-check",Eb);const wb=[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],Qc=Rt("sliders-vertical",wb);const jb=[["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"}]],Cb=Rt("trash",jb);const Nb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xi=Rt("x",Nb);const Db=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Wm=Rt("zap",Db);const zb=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Rb=Rt("zoom-in",zb);const Ob=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Vb=Rt("zoom-out",Ob),Sf=H.createContext({});function Tf(a){const s=H.useRef(null);return s.current===null&&(s.current=a()),s.current}const _b=typeof window<"u",Ag=_b?H.useLayoutEffect:H.useEffect,fr=H.createContext(null);function Af(a,s){a.indexOf(s)===-1&&a.push(s)}function er(a,s){const o=a.indexOf(s);o>-1&&a.splice(o,1)}const Pn=(a,s,o)=>o>s?s:o<a?a:o;let Mf=()=>{};const Ya={},Mg=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a),Eg=a=>typeof a=="object"&&a!==null,wg=a=>/^0[^.\s]+$/u.test(a);function jg(a){let s;return()=>(s===void 0&&(s=a()),s)}const Cn=a=>a,vl=(...a)=>a.reduce((s,o)=>r=>o(s(r))),pl=(a,s,o)=>{const r=s-a;return r?(o-a)/r:1};class Ef{constructor(){this.subscriptions=[]}add(s){return Af(this.subscriptions,s),()=>er(this.subscriptions,s)}notify(s,o,r){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](s,o,r);else for(let m=0;m<c;m++){const f=this.subscriptions[m];f&&f(s,o,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const mn=a=>a*1e3,jn=a=>a/1e3,Cg=(a,s)=>s?a*(1e3/s):0,Ng=(a,s,o)=>(((1-3*o+3*s)*a+(3*o-6*s))*a+3*s)*a,kb=1e-7,Lb=12;function Bb(a,s,o,r,c){let m,f,p=0;do f=s+(o-s)/2,m=Ng(f,r,c)-a,m>0?o=f:s=f;while(Math.abs(m)>kb&&++p<Lb);return f}function bl(a,s,o,r){if(a===s&&o===r)return Cn;const c=m=>Bb(m,0,1,a,o);return m=>m===0||m===1?m:Ng(c(m),s,r)}const Dg=a=>s=>s<=.5?a(2*s)/2:(2-a(2*(1-s)))/2,zg=a=>s=>1-a(1-s),Rg=bl(.33,1.53,.69,.99),wf=zg(Rg),Og=Dg(wf),Vg=a=>a>=1?1:(a*=2)<1?.5*wf(a):.5*(2-Math.pow(2,-10*(a-1))),jf=a=>1-Math.sin(Math.acos(a)),_g=zg(jf),kg=Dg(jf),Ub=bl(.42,0,1,1),Hb=bl(0,0,.58,1),Lg=bl(.42,0,.58,1),qb=a=>Array.isArray(a)&&typeof a[0]!="number",Bg=a=>Array.isArray(a)&&typeof a[0]=="number",Yb={linear:Cn,easeIn:Ub,easeInOut:Lg,easeOut:Hb,circIn:jf,circInOut:kg,circOut:_g,backIn:wf,backInOut:Og,backOut:Rg,anticipate:Vg},Gb=a=>typeof a=="string",Im=a=>{if(Bg(a)){Mf(a.length===4);const[s,o,r,c]=a;return bl(s,o,r,c)}else if(Gb(a))return Yb[a];return a},Uo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Xb(a,s){let o=new Set,r=new Set,c=!1,m=!1;const f=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function v(b){f.has(b)&&(g.schedule(b),a()),b(p)}const g={schedule:(b,x=!1,A=!1)=>{const O=A&&c?o:r;return x&&f.add(b),O.add(b),b},cancel:b=>{r.delete(b),f.delete(b)},process:b=>{if(p=b,c){m=!0;return}c=!0;const x=o;o=r,r=x,o.forEach(v),o.clear(),c=!1,m&&(m=!1,g.process(b))}};return g}const Kb=40;function Ug(a,s){let o=!1,r=!0;const c={delta:0,timestamp:0,isProcessing:!1},m=()=>o=!0,f=Uo.reduce((z,X)=>(z[X]=Xb(m),z),{}),{setup:p,read:v,resolveKeyframes:g,preUpdate:b,update:x,preRender:A,render:E,postRender:O}=f,_=()=>{const z=Ya.useManualTiming,X=z?c.timestamp:performance.now();o=!1,z||(c.delta=r?1e3/60:Math.max(Math.min(X-c.timestamp,Kb),1)),c.timestamp=X,c.isProcessing=!0,p.process(c),v.process(c),g.process(c),b.process(c),x.process(c),A.process(c),E.process(c),O.process(c),c.isProcessing=!1,o&&s&&(r=!1,a(_))},U=()=>{o=!0,r=!0,c.isProcessing||a(_)};return{schedule:Uo.reduce((z,X)=>{const st=f[X];return z[X]=(Y,F=!1,K=!1)=>(o||U(),st.schedule(Y,F,K)),z},{}),cancel:z=>{for(let X=0;X<Uo.length;X++)f[Uo[X]].cancel(z)},state:c,steps:f}}const{schedule:le,cancel:Ga,state:Ue,steps:Nc}=Ug(typeof requestAnimationFrame<"u"?requestAnimationFrame:Cn,!0);let Xo;function Zb(){Xo=void 0}const Ze={now:()=>(Xo===void 0&&Ze.set(Ue.isProcessing||Ya.useManualTiming?Ue.timestamp:performance.now()),Xo),set:a=>{Xo=a,queueMicrotask(Zb)}},Hg=a=>s=>typeof s=="string"&&s.startsWith(a),qg=Hg("--"),Qb=Hg("var(--"),Cf=a=>Qb(a)?$b.test(a.split("/*")[0].trim()):!1,$b=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tp(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const cs={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},gl={...cs,transform:a=>Pn(0,1,a)},Ho={...cs,default:1},fl=a=>Math.round(a*1e5)/1e5,Nf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Pb(a){return a==null}const Fb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Df=(a,s)=>o=>!!(typeof o=="string"&&Fb.test(o)&&o.startsWith(a)||s&&!Pb(o)&&Object.prototype.hasOwnProperty.call(o,s)),Yg=(a,s,o)=>r=>{if(typeof r!="string")return r;const[c,m,f,p]=r.match(Nf);return{[a]:parseFloat(c),[s]:parseFloat(m),[o]:parseFloat(f),alpha:p!==void 0?parseFloat(p):1}},Jb=a=>Pn(0,255,a),Dc={...cs,transform:a=>Math.round(Jb(a))},gi={test:Df("rgb","red"),parse:Yg("red","green","blue"),transform:({red:a,green:s,blue:o,alpha:r=1})=>"rgba("+Dc.transform(a)+", "+Dc.transform(s)+", "+Dc.transform(o)+", "+fl(gl.transform(r))+")"};function Wb(a){let s="",o="",r="",c="";return a.length>5?(s=a.substring(1,3),o=a.substring(3,5),r=a.substring(5,7),c=a.substring(7,9)):(s=a.substring(1,2),o=a.substring(2,3),r=a.substring(3,4),c=a.substring(4,5),s+=s,o+=o,r+=r,c+=c),{red:parseInt(s,16),green:parseInt(o,16),blue:parseInt(r,16),alpha:c?parseInt(c,16)/255:1}}const $c={test:Df("#"),parse:Wb,transform:gi.transform},Sl=a=>({test:s=>typeof s=="string"&&s.endsWith(a)&&s.split(" ").length===1,parse:parseFloat,transform:s=>`${s}${a}`}),ma=Sl("deg"),$n=Sl("%"),ut=Sl("px"),Ib=Sl("vh"),t2=Sl("vw"),ep={...$n,parse:a=>$n.parse(a)/100,transform:a=>$n.transform(a*100)},is={test:Df("hsl","hue"),parse:Yg("hue","saturation","lightness"),transform:({hue:a,saturation:s,lightness:o,alpha:r=1})=>"hsla("+Math.round(a)+", "+$n.transform(fl(s))+", "+$n.transform(fl(o))+", "+fl(gl.transform(r))+")"},Me={test:a=>gi.test(a)||$c.test(a)||is.test(a),parse:a=>gi.test(a)?gi.parse(a):is.test(a)?is.parse(a):$c.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?gi.transform(a):is.transform(a),getAnimatableNone:a=>{const s=Me.parse(a);return s.alpha=0,Me.transform(s)}},e2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function n2(a){return isNaN(a)&&typeof a=="string"&&(a.match(Nf)?.length||0)+(a.match(e2)?.length||0)>0}const Gg="number",Xg="color",a2="var",i2="var(",np="${}",s2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function rs(a){const s=a.toString(),o=[],r={color:[],number:[],var:[]},c=[];let m=0;const p=s.replace(s2,v=>(Me.test(v)?(r.color.push(m),c.push(Xg),o.push(Me.parse(v))):v.startsWith(i2)?(r.var.push(m),c.push(a2),o.push(v)):(r.number.push(m),c.push(Gg),o.push(parseFloat(v))),++m,np)).split(np);return{values:o,split:p,indexes:r,types:c}}function l2(a){return rs(a).values}function Kg({split:a,types:s}){const o=a.length;return r=>{let c="";for(let m=0;m<o;m++)if(c+=a[m],r[m]!==void 0){const f=s[m];f===Gg?c+=fl(r[m]):f===Xg?c+=Me.transform(r[m]):c+=r[m]}return c}}function o2(a){return Kg(rs(a))}const r2=a=>typeof a=="number"?0:Me.test(a)?Me.getAnimatableNone(a):a,u2=(a,s)=>typeof a=="number"?s?.trim().endsWith("/")?a:0:r2(a);function c2(a){const s=rs(a);return Kg(s)(s.values.map((r,c)=>u2(r,s.split[c])))}const kn={test:n2,parse:l2,createTransformer:o2,getAnimatableNone:c2};function zc(a,s,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?a+(s-a)*6*o:o<1/2?s:o<2/3?a+(s-a)*(2/3-o)*6:a}function f2({hue:a,saturation:s,lightness:o,alpha:r}){a/=360,s/=100,o/=100;let c=0,m=0,f=0;if(!s)c=m=f=o;else{const p=o<.5?o*(1+s):o+s-o*s,v=2*o-p;c=zc(v,p,a+1/3),m=zc(v,p,a),f=zc(v,p,a-1/3)}return{red:Math.round(c*255),green:Math.round(m*255),blue:Math.round(f*255),alpha:r}}function nr(a,s){return o=>o>0?s:a}const se=(a,s,o)=>a+(s-a)*o,Rc=(a,s,o)=>{const r=a*a,c=o*(s*s-r)+r;return c<0?0:Math.sqrt(c)},d2=[$c,gi,is],h2=a=>d2.find(s=>s.test(a));function ap(a){const s=h2(a);if(!s)return!1;let o=s.parse(a);return s===is&&(o=f2(o)),o}const ip=(a,s)=>{const o=ap(a),r=ap(s);if(!o||!r)return nr(a,s);const c={...o};return m=>(c.red=Rc(o.red,r.red,m),c.green=Rc(o.green,r.green,m),c.blue=Rc(o.blue,r.blue,m),c.alpha=se(o.alpha,r.alpha,m),gi.transform(c))},Pc=new Set(["none","hidden"]);function m2(a,s){return Pc.has(a)?o=>o<=0?a:s:o=>o>=1?s:a}function p2(a,s){return o=>se(a,s,o)}function zf(a){return typeof a=="number"?p2:typeof a=="string"?Cf(a)?nr:Me.test(a)?ip:x2:Array.isArray(a)?Zg:typeof a=="object"?Me.test(a)?ip:g2:nr}function Zg(a,s){const o=[...a],r=o.length,c=a.map((m,f)=>zf(m)(m,s[f]));return m=>{for(let f=0;f<r;f++)o[f]=c[f](m);return o}}function g2(a,s){const o={...a,...s},r={};for(const c in o)a[c]!==void 0&&s[c]!==void 0&&(r[c]=zf(a[c])(a[c],s[c]));return c=>{for(const m in r)o[m]=r[m](c);return o}}function y2(a,s){const o=[],r={color:0,var:0,number:0};for(let c=0;c<s.values.length;c++){const m=s.types[c],f=a.indexes[m][r[m]],p=a.values[f]??0;o[c]=p,r[m]++}return o}const x2=(a,s)=>{const o=kn.createTransformer(s),r=rs(a),c=rs(s);return r.indexes.var.length===c.indexes.var.length&&r.indexes.color.length===c.indexes.color.length&&r.indexes.number.length>=c.indexes.number.length?Pc.has(a)&&!c.values.length||Pc.has(s)&&!r.values.length?m2(a,s):vl(Zg(y2(r,c),c.values),o):nr(a,s)};function Qg(a,s,o){return typeof a=="number"&&typeof s=="number"&&typeof o=="number"?se(a,s,o):zf(a)(a,s)}const v2=a=>{const s=({timestamp:o})=>a(o);return{start:(o=!0)=>le.update(s,o),stop:()=>Ga(s),now:()=>Ue.isProcessing?Ue.timestamp:Ze.now()}},$g=(a,s,o=10)=>{let r="";const c=Math.max(Math.round(s/o),2);for(let m=0;m<c;m++)r+=Math.round(a(m/(c-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},ar=2e4;function Rf(a){let s=0;const o=50;let r=a.next(s);for(;!r.done&&s<ar;)s+=o,r=a.next(s);return s>=ar?1/0:s}function b2(a,s=100,o){const r=o({...a,keyframes:[0,s]}),c=Math.min(Rf(r),ar);return{type:"keyframes",ease:m=>r.next(c*m).value/s,duration:jn(c)}}const ye={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Fc(a,s){return a*Math.sqrt(1-s*s)}const S2=12;function T2(a,s,o){let r=o;for(let c=1;c<S2;c++)r=r-a(r)/s(r);return r}const Oc=.001;function A2({duration:a=ye.duration,bounce:s=ye.bounce,velocity:o=ye.velocity,mass:r=ye.mass}){let c,m,f=1-s;f=Pn(ye.minDamping,ye.maxDamping,f),a=Pn(ye.minDuration,ye.maxDuration,jn(a)),f<1?(c=g=>{const b=g*f,x=b*a,A=b-o,E=Fc(g,f),O=Math.exp(-x);return Oc-A/E*O},m=g=>{const x=g*f*a,A=x*o+o,E=Math.pow(f,2)*Math.pow(g,2)*a,O=Math.exp(-x),_=Fc(Math.pow(g,2),f);return(-c(g)+Oc>0?-1:1)*((A-E)*O)/_}):(c=g=>{const b=Math.exp(-g*a),x=(g-o)*a+1;return-Oc+b*x},m=g=>{const b=Math.exp(-g*a),x=(o-g)*(a*a);return b*x});const p=5/a,v=T2(c,m,p);if(a=mn(a),isNaN(v))return{stiffness:ye.stiffness,damping:ye.damping,duration:a};{const g=Math.pow(v,2)*r;return{stiffness:g,damping:f*2*Math.sqrt(r*g),duration:a}}}const M2=["duration","bounce"],E2=["stiffness","damping","mass"];function sp(a,s){return s.some(o=>a[o]!==void 0)}function w2(a){let s={velocity:ye.velocity,stiffness:ye.stiffness,damping:ye.damping,mass:ye.mass,isResolvedFromDuration:!1,...a};if(!sp(a,E2)&&sp(a,M2))if(s.velocity=0,a.visualDuration){const o=a.visualDuration,r=2*Math.PI/(o*1.2),c=r*r,m=2*Pn(.05,1,1-(a.bounce||0))*Math.sqrt(c);s={...s,mass:ye.mass,stiffness:c,damping:m}}else{const o=A2({...a,velocity:0});s={...s,...o,mass:ye.mass},s.isResolvedFromDuration=!0}return s}function ir(a=ye.visualDuration,s=ye.bounce){const o=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:s}:a;let{restSpeed:r,restDelta:c}=o;const m=o.keyframes[0],f=o.keyframes[o.keyframes.length-1],p={done:!1,value:m},{stiffness:v,damping:g,mass:b,duration:x,velocity:A,isResolvedFromDuration:E}=w2({...o,velocity:-jn(o.velocity||0)}),O=A||0,_=g/(2*Math.sqrt(v*b)),U=f-m,Q=jn(Math.sqrt(v/b)),B=Math.abs(U)<5;r||(r=B?ye.restSpeed.granular:ye.restSpeed.default),c||(c=B?ye.restDelta.granular:ye.restDelta.default);let z,X,st,Y,F,K;if(_<1)st=Fc(Q,_),Y=(O+_*Q*U)/st,z=I=>{const lt=Math.exp(-_*Q*I);return f-lt*(Y*Math.sin(st*I)+U*Math.cos(st*I))},F=_*Q*Y+U*st,K=_*Q*U-Y*st,X=I=>Math.exp(-_*Q*I)*(F*Math.sin(st*I)+K*Math.cos(st*I));else if(_===1){z=lt=>f-Math.exp(-Q*lt)*(U+(O+Q*U)*lt);const I=O+Q*U;X=lt=>Math.exp(-Q*lt)*(Q*I*lt-O)}else{const I=Q*Math.sqrt(_*_-1);z=Et=>{const jt=Math.exp(-_*Q*Et),N=Math.min(I*Et,300);return f-jt*((O+_*Q*U)*Math.sinh(N)+I*U*Math.cosh(N))/I};const lt=(O+_*Q*U)/I,ft=_*Q*lt-U*I,Ot=_*Q*U-lt*I;X=Et=>{const jt=Math.exp(-_*Q*Et),N=Math.min(I*Et,300);return jt*(ft*Math.sinh(N)+Ot*Math.cosh(N))}}const W={calculatedDuration:E&&x||null,velocity:I=>mn(X(I)),next:I=>{if(!E&&_<1){const ft=Math.exp(-_*Q*I),Ot=Math.sin(st*I),Et=Math.cos(st*I),jt=f-ft*(Y*Ot+U*Et),N=mn(ft*(F*Ot+K*Et));return p.done=Math.abs(N)<=r&&Math.abs(f-jt)<=c,p.value=p.done?f:jt,p}const lt=z(I);if(E)p.done=I>=x;else{const ft=mn(X(I));p.done=Math.abs(ft)<=r&&Math.abs(f-lt)<=c}return p.value=p.done?f:lt,p},toString:()=>{const I=Math.min(Rf(W),ar),lt=$g(ft=>W.next(I*ft).value,I,30);return I+"ms "+lt},toTransition:()=>{}};return W}ir.applyToOptions=a=>{const s=b2(a,100,ir);return a.ease=s.ease,a.duration=mn(s.duration),a.type="keyframes",a};const j2=5;function Pg(a,s,o){const r=Math.max(s-j2,0);return Cg(o-a(r),s-r)}function Jc({keyframes:a,velocity:s=0,power:o=.8,timeConstant:r=325,bounceDamping:c=10,bounceStiffness:m=500,modifyTarget:f,min:p,max:v,restDelta:g=.5,restSpeed:b}){const x=a[0],A={done:!1,value:x},E=K=>p!==void 0&&K<p||v!==void 0&&K>v,O=K=>p===void 0?v:v===void 0||Math.abs(p-K)<Math.abs(v-K)?p:v;let _=o*s;const U=x+_,Q=f===void 0?U:f(U);Q!==U&&(_=Q-x);const B=K=>-_*Math.exp(-K/r),z=K=>Q+B(K),X=K=>{const W=B(K),I=z(K);A.done=Math.abs(W)<=g,A.value=A.done?Q:I};let st,Y;const F=K=>{E(A.value)&&(st=K,Y=ir({keyframes:[A.value,O(A.value)],velocity:Pg(z,K,A.value),damping:c,stiffness:m,restDelta:g,restSpeed:b}))};return F(0),{calculatedDuration:null,next:K=>{let W=!1;return!Y&&st===void 0&&(W=!0,X(K),F(K)),st!==void 0&&K>=st?Y.next(K-st):(!W&&X(K),A)}}}function C2(a,s,o){const r=[],c=o||Ya.mix||Qg,m=a.length-1;for(let f=0;f<m;f++){let p=c(a[f],a[f+1]);if(s){const v=Array.isArray(s)?s[f]||Cn:s;p=vl(v,p)}r.push(p)}return r}function N2(a,s,{clamp:o=!0,ease:r,mixer:c}={}){const m=a.length;if(Mf(m===s.length),m===1)return()=>s[0];if(m===2&&s[0]===s[1])return()=>s[1];const f=a[0]===a[1];a[0]>a[m-1]&&(a=[...a].reverse(),s=[...s].reverse());const p=C2(s,r,c),v=p.length,g=b=>{if(f&&b<a[0])return s[0];let x=0;if(v>1)for(;x<a.length-2&&!(b<a[x+1]);x++);const A=pl(a[x],a[x+1],b);return p[x](A)};return o?b=>g(Pn(a[0],a[m-1],b)):g}function D2(a,s){const o=a[a.length-1];for(let r=1;r<=s;r++){const c=pl(0,s,r);a.push(se(o,1,c))}}function z2(a){const s=[0];return D2(s,a.length-1),s}function R2(a,s){return a.map(o=>o*s)}function O2(a,s){return a.map(()=>s||Lg).splice(0,a.length-1)}function dl({duration:a=300,keyframes:s,times:o,ease:r="easeInOut"}){const c=qb(r)?r.map(Im):Im(r),m={done:!1,value:s[0]},f=R2(o&&o.length===s.length?o:z2(s),a),p=N2(f,s,{ease:Array.isArray(c)?c:O2(s,c)});return{calculatedDuration:a,next:v=>(m.value=p(v),m.done=v>=a,m)}}const V2=a=>a!==null;function dr(a,{repeat:s,repeatType:o="loop"},r,c=1){const m=a.filter(V2),p=c<0||s&&o!=="loop"&&s%2===1?0:m.length-1;return!p||r===void 0?m[p]:r}const _2={decay:Jc,inertia:Jc,tween:dl,keyframes:dl,spring:ir};function Fg(a){typeof a.type=="string"&&(a.type=_2[a.type])}class Of{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(s=>{this.resolve=s})}notifyFinished(){this.resolve()}then(s,o){return this.finished.then(s,o)}}const k2=a=>a/100;class sr extends Of{constructor(s){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:o}=this.options;o&&o.updatedAt!==Ze.now()&&this.tick(Ze.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=s,this.initAnimation(),this.play(),s.autoplay===!1&&this.pause()}initAnimation(){const{options:s}=this;Fg(s);const{type:o=dl,repeat:r=0,repeatDelay:c=0,repeatType:m,velocity:f=0}=s;let{keyframes:p}=s;const v=o||dl;v!==dl&&typeof p[0]!="number"&&(this.mixKeyframes=vl(k2,Qg(p[0],p[1])),p=[0,100]);const g=v({...s,keyframes:p});m==="mirror"&&(this.mirroredGenerator=v({...s,keyframes:[...p].reverse(),velocity:-f})),g.calculatedDuration===null&&(g.calculatedDuration=Rf(g));const{calculatedDuration:b}=g;this.calculatedDuration=b,this.resolvedDuration=b+c,this.totalDuration=this.resolvedDuration*(r+1)-c,this.generator=g}updateTime(s){const o=Math.round(s-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(s,o=!1){const{generator:r,totalDuration:c,mixKeyframes:m,mirroredGenerator:f,resolvedDuration:p,calculatedDuration:v}=this;if(this.startTime===null)return r.next(0);const{delay:g=0,keyframes:b,repeat:x,repeatType:A,repeatDelay:E,type:O,onUpdate:_,finalKeyframe:U}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,s):this.speed<0&&(this.startTime=Math.min(s-c/this.speed,this.startTime)),o?this.currentTime=s:this.updateTime(s);const Q=this.currentTime-g*(this.playbackSpeed>=0?1:-1),B=this.playbackSpeed>=0?Q<0:Q>c;this.currentTime=Math.max(Q,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let z=this.currentTime,X=r;if(x){const K=Math.min(this.currentTime,c)/p;let W=Math.floor(K),I=K%1;!I&&K>=1&&(I=1),I===1&&W--,W=Math.min(W,x+1),W%2&&(A==="reverse"?(I=1-I,E&&(I-=E/p)):A==="mirror"&&(X=f)),z=Pn(0,1,I)*p}let st;B?(this.delayState.value=b[0],st=this.delayState):st=X.next(z),m&&!B&&(st.value=m(st.value));let{done:Y}=st;!B&&v!==null&&(Y=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Y);return F&&O!==Jc&&(st.value=dr(b,this.options,U,this.speed)),_&&_(st.value),F&&this.finish(),st}then(s,o){return this.finished.then(s,o)}get duration(){return jn(this.calculatedDuration)}get iterationDuration(){const{delay:s=0}=this.options||{};return this.duration+jn(s)}get time(){return jn(this.currentTime)}set time(s){s=mn(s),this.currentTime=s,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=s:this.driver&&(this.startTime=this.driver.now()-s/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=s,this.tick(s))}getGeneratorVelocity(){const s=this.currentTime;if(s<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(s);const o=this.generator.next(s).value;return Pg(r=>this.generator.next(r).value,s,o)}get speed(){return this.playbackSpeed}set speed(s){const o=this.playbackSpeed!==s;o&&this.driver&&this.updateTime(Ze.now()),this.playbackSpeed=s,o&&this.driver&&(this.time=jn(this.currentTime))}play(){if(this.isStopped)return;const{driver:s=v2,startTime:o}=this.options;this.driver||(this.driver=s(c=>this.tick(c))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=o??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ze.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(s){return this.startTime=0,this.tick(s,!0)}attachTimeline(s){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),s.observe(this)}}function L2(a){for(let s=1;s<a.length;s++)a[s]??(a[s]=a[s-1])}const yi=a=>a*180/Math.PI,Wc=a=>{const s=yi(Math.atan2(a[1],a[0]));return Ic(s)},B2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Wc,rotateZ:Wc,skewX:a=>yi(Math.atan(a[1])),skewY:a=>yi(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Ic=a=>(a=a%360,a<0&&(a+=360),a),lp=Wc,op=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),rp=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),U2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:op,scaleY:rp,scale:a=>(op(a)+rp(a))/2,rotateX:a=>Ic(yi(Math.atan2(a[6],a[5]))),rotateY:a=>Ic(yi(Math.atan2(-a[2],a[0]))),rotateZ:lp,rotate:lp,skewX:a=>yi(Math.atan(a[4])),skewY:a=>yi(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function tf(a){return a.includes("scale")?1:0}function ef(a,s){if(!a||a==="none")return tf(s);const o=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,c;if(o)r=U2,c=o;else{const p=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=B2,c=p}if(!c)return tf(s);const m=r[s],f=c[1].split(",").map(q2);return typeof m=="function"?m(f):f[m]}const H2=(a,s)=>{const{transform:o="none"}=getComputedStyle(a);return ef(o,s)};function q2(a){return parseFloat(a.trim())}const fs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ds=new Set([...fs,"pathRotation"]),up=a=>a===cs||a===ut,Y2=new Set(["x","y","z"]),G2=fs.filter(a=>!Y2.has(a));function X2(a){const s=[];return G2.forEach(o=>{const r=a.getValue(o);r!==void 0&&(s.push([o,r.get()]),r.set(o.startsWith("scale")?1:0))}),s}const qa={width:({x:a},{paddingLeft:s="0",paddingRight:o="0",boxSizing:r})=>{const c=a.max-a.min;return r==="border-box"?c:c-parseFloat(s)-parseFloat(o)},height:({y:a},{paddingTop:s="0",paddingBottom:o="0",boxSizing:r})=>{const c=a.max-a.min;return r==="border-box"?c:c-parseFloat(s)-parseFloat(o)},top:(a,{top:s})=>parseFloat(s),left:(a,{left:s})=>parseFloat(s),bottom:({y:a},{top:s})=>parseFloat(s)+(a.max-a.min),right:({x:a},{left:s})=>parseFloat(s)+(a.max-a.min),x:(a,{transform:s})=>ef(s,"x"),y:(a,{transform:s})=>ef(s,"y")};qa.translateX=qa.x;qa.translateY=qa.y;const vi=new Set;let nf=!1,af=!1,sf=!1;function Jg(){if(af){const a=Array.from(vi).filter(r=>r.needsMeasurement),s=new Set(a.map(r=>r.element)),o=new Map;s.forEach(r=>{const c=X2(r);c.length&&(o.set(r,c),r.render())}),a.forEach(r=>r.measureInitialState()),s.forEach(r=>{r.render();const c=o.get(r);c&&c.forEach(([m,f])=>{r.getValue(m)?.set(f)})}),a.forEach(r=>r.measureEndState()),a.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}af=!1,nf=!1,vi.forEach(a=>a.complete(sf)),vi.clear()}function Wg(){vi.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(af=!0)})}function K2(){sf=!0,Wg(),Jg(),sf=!1}class Vf{constructor(s,o,r,c,m,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...s],this.onComplete=o,this.name=r,this.motionValue=c,this.element=m,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(vi.add(this),nf||(nf=!0,le.read(Wg),le.resolveKeyframes(Jg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:s,name:o,element:r,motionValue:c}=this;if(s[0]===null){const m=c?.get(),f=s[s.length-1];if(m!==void 0)s[0]=m;else if(r&&o){const p=r.readValue(o,f);p!=null&&(s[0]=p)}s[0]===void 0&&(s[0]=f),c&&m===void 0&&c.set(s[0])}L2(s)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(s=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,s),vi.delete(this)}cancel(){this.state==="scheduled"&&(vi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Z2=a=>a.startsWith("--");function Ig(a,s,o){Z2(s)?a.style.setProperty(s,o):a.style[s]=o}const Q2={};function ty(a,s){const o=jg(a);return()=>Q2[s]??o()}const $2=ty(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),ey=ty(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),cl=([a,s,o,r])=>`cubic-bezier(${a}, ${s}, ${o}, ${r})`,cp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cl([0,.65,.55,1]),circOut:cl([.55,0,1,.45]),backIn:cl([.31,.01,.66,-.59]),backOut:cl([.33,1.53,.69,.99])};function ny(a,s){if(a)return typeof a=="function"?ey()?$g(a,s):"ease-out":Bg(a)?cl(a):Array.isArray(a)?a.map(o=>ny(o,s)||cp.easeOut):cp[a]}function P2(a,s,o,{delay:r=0,duration:c=300,repeat:m=0,repeatType:f="loop",ease:p="easeOut",times:v}={},g=void 0){const b={[s]:o};v&&(b.offset=v);const x=ny(p,c);Array.isArray(x)&&(b.easing=x);const A={delay:r,duration:c,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:m+1,direction:f==="reverse"?"alternate":"normal"};return g&&(A.pseudoElement=g),a.animate(b,A)}function ay(a){return typeof a=="function"&&"applyToOptions"in a}function F2({type:a,...s}){return ay(a)&&ey()?a.applyToOptions(s):(s.duration??(s.duration=300),s.ease??(s.ease="easeOut"),s)}class iy extends Of{constructor(s){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!s)return;const{element:o,name:r,keyframes:c,pseudoElement:m,allowFlatten:f=!1,finalKeyframe:p,onComplete:v}=s;this.isPseudoElement=!!m,this.allowFlatten=f,this.options=s,Mf(typeof s.type!="string");const g=F2(s);this.animation=P2(o,r,c,g,m),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!m){const b=dr(c,this.options,p,this.speed);this.updateMotionValue&&this.updateMotionValue(b),Ig(o,r,b),this.animation.cancel()}v?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:s}=this;s==="idle"||s==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const s=this.options?.element;!this.isPseudoElement&&s?.isConnected&&this.animation.commitStyles?.()}get duration(){const s=this.animation.effect?.getComputedTiming?.().duration||0;return jn(Number(s))}get iterationDuration(){const{delay:s=0}=this.options||{};return this.duration+jn(s)}get time(){return jn(Number(this.animation.currentTime)||0)}set time(s){const o=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=mn(s),o&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(s){s<0&&(this.finishedTime=null),this.animation.playbackRate=s}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(s){this.manualStartTime=this.animation.startTime=s}attachTimeline({timeline:s,rangeStart:o,rangeEnd:r,observe:c}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,s&&$2()?(this.animation.timeline=s,o&&(this.animation.rangeStart=o),r&&(this.animation.rangeEnd=r),Cn):c(this)}}const sy={anticipate:Vg,backInOut:Og,circInOut:kg};function J2(a){return a in sy}function W2(a){typeof a.ease=="string"&&J2(a.ease)&&(a.ease=sy[a.ease])}const Vc=10;class I2 extends iy{constructor(s){W2(s),Fg(s),super(s),s.startTime!==void 0&&s.autoplay!==!1&&(this.startTime=s.startTime),this.options=s}updateMotionValue(s){const{motionValue:o,onUpdate:r,onComplete:c,element:m,...f}=this.options;if(!o)return;if(s!==void 0){o.set(s);return}const p=new sr({...f,autoplay:!1}),v=Math.max(Vc,Ze.now()-this.startTime),g=Pn(0,Vc,v-Vc),b=p.sample(v).value,{name:x}=this.options;m&&x&&Ig(m,x,b),o.setWithVelocity(p.sample(Math.max(0,v-g)).value,b,g),p.stop()}}const fp=(a,s)=>s==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(kn.test(a)||a==="0")&&!a.startsWith("url("));function tS(a){const s=a[0];if(a.length===1)return!0;for(let o=0;o<a.length;o++)if(a[o]!==s)return!0}function eS(a,s,o,r){const c=a[0];if(c===null)return!1;if(s==="display"||s==="visibility")return!0;const m=a[a.length-1],f=fp(c,s),p=fp(m,s);return!f||!p?!1:tS(a)||(o==="spring"||ay(o))&&r}function lf(a){a.duration=0,a.type="keyframes"}const ly=new Set(["opacity","clipPath","filter","transform"]),nS=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function aS(a){for(let s=0;s<a.length;s++)if(typeof a[s]=="string"&&nS.test(a[s]))return!0;return!1}const iS=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),sS=jg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function lS(a){const{motionValue:s,name:o,repeatDelay:r,repeatType:c,damping:m,type:f,keyframes:p}=a;if(!(s?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:b}=s.owner.getProps();return sS()&&o&&(ly.has(o)||iS.has(o)&&aS(p))&&(o!=="transform"||!b)&&!g&&!r&&c!=="mirror"&&m!==0&&f!=="inertia"}const oS=40;class rS extends Of{constructor({autoplay:s=!0,delay:o=0,type:r="keyframes",repeat:c=0,repeatDelay:m=0,repeatType:f="loop",keyframes:p,name:v,motionValue:g,element:b,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ze.now();const A={autoplay:s,delay:o,type:r,repeat:c,repeatDelay:m,repeatType:f,name:v,motionValue:g,element:b,...x},E=b?.KeyframeResolver||Vf;this.keyframeResolver=new E(p,(O,_,U)=>this.onKeyframesResolved(O,_,A,!U),v,g,b),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(s,o,r,c){this.keyframeResolver=void 0;const{name:m,type:f,velocity:p,delay:v,isHandoff:g,onUpdate:b}=r;this.resolvedAt=Ze.now();let x=!0;eS(s,m,f,p)||(x=!1,(Ya.instantAnimations||!v)&&b?.(dr(s,r,o)),s[0]=s[s.length-1],lf(r),r.repeat=0);const E={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>oS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...r,keyframes:s},O=x&&!g&&lS(E),_=E.motionValue?.owner?.current;let U;if(O)try{U=new I2({...E,element:_})}catch{U=new sr(E)}else U=new sr(E);U.finished.then(()=>{this.notifyFinished()}).catch(Cn),this.pendingTimeline&&(this.stopTimeline=U.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=U}get finished(){return this._animation?this.animation.finished:this._finished}then(s,o){return this.finished.finally(s).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),K2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(s){this.animation.time=s}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(s){this.animation.speed=s}get startTime(){return this.animation.startTime}attachTimeline(s){return this._animation?this.stopTimeline=this.animation.attachTimeline(s):this.pendingTimeline=s,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function oy(a,s,o,r=0,c=1){const m=Array.from(a).sort((g,b)=>g.sortNodePosition(b)).indexOf(s),f=a.size,p=(f-1)*r;return typeof o=="function"?o(m,f):c===1?m*r:p-m*r}const dp=30,uS=a=>!isNaN(parseFloat(a));class cS{constructor(s,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const c=Ze.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const m of this.dependents)m.dirty()},this.hasAnimated=!1,this.setCurrent(s),this.owner=o.owner}setCurrent(s){this.current=s,this.updatedAt=Ze.now(),this.canTrackVelocity===null&&s!==void 0&&(this.canTrackVelocity=uS(this.current))}setPrevFrameValue(s=this.current){this.prevFrameValue=s,this.prevUpdatedAt=this.updatedAt}onChange(s){return this.on("change",s)}on(s,o){this.events[s]||(this.events[s]=new Ef);const r=this.events[s].add(o);return s==="change"?()=>{r(),le.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const s in this.events)this.events[s].clear()}attach(s,o){this.passiveEffect=s,this.stopPassiveEffect=o}set(s){this.passiveEffect?this.passiveEffect(s,this.updateAndNotify):this.updateAndNotify(s)}setWithVelocity(s,o,r){this.set(o),this.prev=void 0,this.prevFrameValue=s,this.prevUpdatedAt=this.updatedAt-r}jump(s,o=!0){this.updateAndNotify(s),this.prev=s,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(s){this.dependents||(this.dependents=new Set),this.dependents.add(s)}removeDependent(s){this.dependents&&this.dependents.delete(s)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const s=Ze.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||s-this.updatedAt>dp)return 0;const o=Math.min(this.updatedAt-this.prevUpdatedAt,dp);return Cg(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(s){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=s(o),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function us(a,s){return new cS(a,s)}function ry(a,s){if(a?.inherit&&s){const{inherit:o,...r}=a;return{...s,...r}}return a}function _f(a,s){const o=a?.[s]??a?.default??a;return o!==a?ry(o,a):o}const fS={type:"spring",stiffness:500,damping:25,restSpeed:10},dS=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),hS={type:"keyframes",duration:.8},mS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pS=(a,{keyframes:s})=>s.length>2?hS:ds.has(a)?a.startsWith("scale")?dS(s[1]):fS:mS,gS=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function yS(a){for(const s in a)if(!gS.has(s))return!0;return!1}const kf=(a,s,o,r={},c,m)=>f=>{const p=_f(r,a)||{},v=p.delay||r.delay||0;let{elapsed:g=0}=r;g=g-mn(v);const b={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:s.getVelocity(),...p,delay:-g,onUpdate:A=>{s.set(A),p.onUpdate&&p.onUpdate(A)},onComplete:()=>{f(),p.onComplete&&p.onComplete()},name:a,motionValue:s,element:m?void 0:c};yS(p)||Object.assign(b,pS(a,b)),b.duration&&(b.duration=mn(b.duration)),b.repeatDelay&&(b.repeatDelay=mn(b.repeatDelay)),b.from!==void 0&&(b.keyframes[0]=b.from);let x=!1;if((b.type===!1||b.duration===0&&!b.repeatDelay)&&(lf(b),b.delay===0&&(x=!0)),(Ya.instantAnimations||Ya.skipAnimations||c?.shouldSkipAnimations||p.skipAnimations)&&(x=!0,lf(b),b.delay=0),b.allowFlatten=!p.type&&!p.ease,x&&!m&&s.get()!==void 0){const A=dr(b.keyframes,p);if(A!==void 0){le.update(()=>{b.onUpdate(A),b.onComplete()});return}}return p.isSync?new sr(b):new rS(b)},xS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vS(a){const s=xS.exec(a);if(!s)return[,];const[,o,r,c]=s;return[`--${o??r}`,c]}function uy(a,s,o=1){const[r,c]=vS(a);if(!r)return;const m=window.getComputedStyle(s).getPropertyValue(r);if(m){const f=m.trim();return Mg(f)?parseFloat(f):f}return Cf(c)?uy(c,s,o+1):c}function hp(a){const s=[{},{}];return a?.values.forEach((o,r)=>{s[0][r]=o.get(),s[1][r]=o.getVelocity()}),s}function Lf(a,s,o,r){if(typeof s=="function"){const[c,m]=hp(r);s=s(o!==void 0?o:a.custom,c,m)}if(typeof s=="string"&&(s=a.variants&&a.variants[s]),typeof s=="function"){const[c,m]=hp(r);s=s(o!==void 0?o:a.custom,c,m)}return s}function bi(a,s,o){const r=a.getProps();return Lf(r,s,o!==void 0?o:r.custom,a)}const cy=new Set(["width","height","top","left","right","bottom",...fs]),of=a=>Array.isArray(a);function bS(a,s,o){a.hasValue(s)?a.getValue(s).set(o):a.addValue(s,us(o))}function SS(a){return of(a)?a[a.length-1]||0:a}function TS(a,s){const o=bi(a,s);let{transitionEnd:r={},transition:c={},...m}=o||{};m={...m,...r};for(const f in m){const p=SS(m[f]);bS(a,f,p)}}const He=a=>!!(a&&a.getVelocity);function AS(a){return!!(He(a)&&a.add)}function rf(a,s){const o=a.getValue("willChange");if(AS(o))return o.add(s);if(!o&&Ya.WillChange){const r=new Ya.WillChange("auto");a.addValue("willChange",r),r.add(s)}}function Bf(a){return a.replace(/([A-Z])/g,s=>`-${s.toLowerCase()}`)}const MS="framerAppearId",fy="data-"+Bf(MS);function dy(a){return a.props[fy]}function ES({protectedKeys:a,needsAnimating:s},o){const r=a.hasOwnProperty(o)&&s[o]!==!0;return s[o]=!1,r}function hy(a,s,{delay:o=0,transitionOverride:r,type:c}={}){let{transition:m,transitionEnd:f,...p}=s;const v=a.getDefaultTransition();m=m?ry(m,v):v;const g=m?.reduceMotion,b=m?.skipAnimations;r&&(m=r);const x=[],A=c&&a.animationState&&a.animationState.getState()[c],E=m?.path;E&&E.animateVisualElement(a,p,m,o,x);for(const O in p){const _=a.getValue(O,a.latestValues[O]??null),U=p[O];if(U===void 0||A&&ES(A,O))continue;const Q={delay:o,..._f(m||{},O)};b&&(Q.skipAnimations=!0);const B=_.get();if(B!==void 0&&!_.isAnimating()&&!Array.isArray(U)&&U===B&&!Q.velocity){le.update(()=>_.set(U));continue}let z=!1;if(window.MotionHandoffAnimation){const Y=dy(a);if(Y){const F=window.MotionHandoffAnimation(Y,O,le);F!==null&&(Q.startTime=F,z=!0)}}rf(a,O);const X=g??a.shouldReduceMotion;_.start(kf(O,_,U,X&&cy.has(O)?{type:!1}:Q,a,z));const st=_.animation;st&&x.push(st)}if(f){const O=()=>le.update(()=>{f&&TS(a,f)});x.length?Promise.all(x).then(O):O()}return x}function uf(a,s,o={}){const r=bi(a,s,o.type==="exit"?a.presenceContext?.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=r||{};o.transitionOverride&&(c=o.transitionOverride);const m=r?()=>Promise.all(hy(a,r,o)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(v=0)=>{const{delayChildren:g=0,staggerChildren:b,staggerDirection:x}=c;return wS(a,s,v,g,b,x,o)}:()=>Promise.resolve(),{when:p}=c;if(p){const[v,g]=p==="beforeChildren"?[m,f]:[f,m];return v().then(()=>g())}else return Promise.all([m(),f(o.delay)])}function wS(a,s,o=0,r=0,c=0,m=1,f){const p=[];for(const v of a.variantChildren)v.notify("AnimationStart",s),p.push(uf(v,s,{...f,delay:o+(typeof r=="function"?0:r)+oy(a.variantChildren,v,r,c,m)}).then(()=>v.notify("AnimationComplete",s)));return Promise.all(p)}function jS(a,s,o={}){a.notify("AnimationStart",s);let r;if(Array.isArray(s)){const c=s.map(m=>uf(a,m,o));r=Promise.all(c)}else if(typeof s=="string")r=uf(a,s,o);else{const c=typeof s=="function"?bi(a,s,o.custom):s;r=Promise.all(hy(a,c,o))}return r.then(()=>{a.notify("AnimationComplete",s)})}const CS={test:a=>a==="auto",parse:a=>a},my=a=>s=>s.test(a),py=[cs,ut,$n,ma,t2,Ib,CS],mp=a=>py.find(my(a));function NS(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||wg(a):!0}const DS=new Set(["brightness","contrast","saturate","opacity"]);function zS(a){const[s,o]=a.slice(0,-1).split("(");if(s==="drop-shadow")return a;const[r]=o.match(Nf)||[];if(!r)return a;const c=o.replace(r,"");let m=DS.has(s)?1:0;return r!==o&&(m*=100),s+"("+m+c+")"}const RS=/\b([a-z-]*)\(.*?\)/gu,cf={...kn,getAnimatableNone:a=>{const s=a.match(RS);return s?s.map(zS).join(" "):a}},ff={...kn,getAnimatableNone:a=>{const s=kn.parse(a);return kn.createTransformer(a)(s.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},pp={...cs,transform:Math.round},OS={rotate:ma,pathRotation:ma,rotateX:ma,rotateY:ma,rotateZ:ma,scale:Ho,scaleX:Ho,scaleY:Ho,scaleZ:Ho,skew:ma,skewX:ma,skewY:ma,distance:ut,translateX:ut,translateY:ut,translateZ:ut,x:ut,y:ut,z:ut,perspective:ut,transformPerspective:ut,opacity:gl,originX:ep,originY:ep,originZ:ut},lr={borderWidth:ut,borderTopWidth:ut,borderRightWidth:ut,borderBottomWidth:ut,borderLeftWidth:ut,borderRadius:ut,borderTopLeftRadius:ut,borderTopRightRadius:ut,borderBottomRightRadius:ut,borderBottomLeftRadius:ut,width:ut,maxWidth:ut,height:ut,maxHeight:ut,top:ut,right:ut,bottom:ut,left:ut,inset:ut,insetBlock:ut,insetBlockStart:ut,insetBlockEnd:ut,insetInline:ut,insetInlineStart:ut,insetInlineEnd:ut,padding:ut,paddingTop:ut,paddingRight:ut,paddingBottom:ut,paddingLeft:ut,paddingBlock:ut,paddingBlockStart:ut,paddingBlockEnd:ut,paddingInline:ut,paddingInlineStart:ut,paddingInlineEnd:ut,margin:ut,marginTop:ut,marginRight:ut,marginBottom:ut,marginLeft:ut,marginBlock:ut,marginBlockStart:ut,marginBlockEnd:ut,marginInline:ut,marginInlineStart:ut,marginInlineEnd:ut,fontSize:ut,backgroundPositionX:ut,backgroundPositionY:ut,...OS,zIndex:pp,fillOpacity:gl,strokeOpacity:gl,numOctaves:pp},VS={...lr,color:Me,backgroundColor:Me,outlineColor:Me,fill:Me,stroke:Me,borderColor:Me,borderTopColor:Me,borderRightColor:Me,borderBottomColor:Me,borderLeftColor:Me,filter:cf,WebkitFilter:cf,mask:ff,WebkitMask:ff},gy=a=>VS[a],_S=new Set([cf,ff]);function yy(a,s){let o=gy(a);return _S.has(o)||(o=kn),o.getAnimatableNone?o.getAnimatableNone(s):void 0}const kS=new Set(["auto","none","0"]);function LS(a,s,o){let r=0,c;for(;r<a.length&&!c;){const m=a[r];typeof m=="string"&&!kS.has(m)&&rs(m).values.length&&(c=a[r]),r++}if(c&&o)for(const m of s)a[m]=yy(o,c)}class BS extends Vf{constructor(s,o,r,c,m){super(s,o,r,c,m,!0)}readKeyframes(){const{unresolvedKeyframes:s,element:o,name:r}=this;if(!o||!o.current)return;super.readKeyframes();for(let b=0;b<s.length;b++){let x=s[b];if(typeof x=="string"&&(x=x.trim(),Cf(x))){const A=uy(x,o.current);A!==void 0&&(s[b]=A),b===s.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!cy.has(r)||s.length!==2)return;const[c,m]=s,f=mp(c),p=mp(m),v=tp(c),g=tp(m);if(v!==g&&qa[r]){this.needsMeasurement=!0;return}if(f!==p)if(up(f)&&up(p))for(let b=0;b<s.length;b++){const x=s[b];typeof x=="string"&&(s[b]=parseFloat(x))}else qa[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:s,name:o}=this,r=[];for(let c=0;c<s.length;c++)(s[c]===null||NS(s[c]))&&r.push(c);r.length&&LS(s,r,o)}measureInitialState(){const{element:s,unresolvedKeyframes:o,name:r}=this;if(!s||!s.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=qa[r](s.measureViewportBox(),window.getComputedStyle(s.current)),o[0]=this.measuredOrigin;const c=o[o.length-1];c!==void 0&&s.getValue(r,c).jump(c,!1)}measureEndState(){const{element:s,name:o,unresolvedKeyframes:r}=this;if(!s||!s.current)return;const c=s.getValue(o);c&&c.jump(this.measuredOrigin,!1);const m=r.length-1,f=r[m];r[m]=qa[o](s.measureViewportBox(),window.getComputedStyle(s.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([p,v])=>{s.getValue(p).set(v)}),this.resolveNoneKeyframes()}}function xy(a,s,o){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let r=document;const c=o?.[a]??r.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a).filter(r=>r!=null)}const df=(a,s)=>s&&typeof a=="number"?s.transform(a):a;function Ko(a){return Eg(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)}const{schedule:Uf}=Ug(queueMicrotask,!1),_n={x:!1,y:!1};function vy(){return _n.x||_n.y}function US(a){return a==="x"||a==="y"?_n[a]?null:(_n[a]=!0,()=>{_n[a]=!1}):_n.x||_n.y?null:(_n.x=_n.y=!0,()=>{_n.x=_n.y=!1})}function by(a,s){const o=xy(a),r=new AbortController,c={passive:!0,...s,signal:r.signal};return[o,c,()=>r.abort()]}function HS(a){return!(a.pointerType==="touch"||vy())}function qS(a,s,o={}){const[r,c,m]=by(a,o);return r.forEach(f=>{let p=!1,v=!1,g;const b=()=>{f.removeEventListener("pointerleave",O)},x=U=>{g&&(g(U),g=void 0),b()},A=U=>{p=!1,window.removeEventListener("pointerup",A),window.removeEventListener("pointercancel",A),v&&(v=!1,x(U))},E=()=>{p=!0,window.addEventListener("pointerup",A,c),window.addEventListener("pointercancel",A,c)},O=U=>{if(U.pointerType!=="touch"){if(p){v=!0;return}x(U)}},_=U=>{if(!HS(U))return;v=!1;const Q=s(f,U);typeof Q=="function"&&(g=Q,f.addEventListener("pointerleave",O,c))};f.addEventListener("pointerenter",_,c),f.addEventListener("pointerdown",E,c)}),m}const Sy=(a,s)=>s?a===s?!0:Sy(a,s.parentElement):!1,Hf=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,YS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function GS(a){return YS.has(a.tagName)||a.isContentEditable===!0}const XS=new Set(["INPUT","SELECT","TEXTAREA"]);function KS(a){return XS.has(a.tagName)||a.isContentEditable===!0}const Zo=new WeakSet;function gp(a){return s=>{s.key==="Enter"&&a(s)}}function _c(a,s){a.dispatchEvent(new PointerEvent("pointer"+s,{isPrimary:!0,bubbles:!0}))}const ZS=(a,s)=>{const o=a.currentTarget;if(!o)return;const r=gp(()=>{if(Zo.has(o))return;_c(o,"down");const c=gp(()=>{_c(o,"up")}),m=()=>_c(o,"cancel");o.addEventListener("keyup",c,s),o.addEventListener("blur",m,s)});o.addEventListener("keydown",r,s),o.addEventListener("blur",()=>o.removeEventListener("keydown",r),s)};function yp(a){return Hf(a)&&!vy()}const xp=new WeakSet;function QS(a,s,o={}){const[r,c,m]=by(a,o),f=p=>{const v=p.currentTarget;if(!yp(p)||xp.has(p))return;Zo.add(v),o.stopPropagation&&xp.add(p);const g=s(v,p),b=(E,O)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",A),Zo.has(v)&&Zo.delete(v),yp(E)&&typeof g=="function"&&g(E,{success:O})},x=E=>{b(E,v===window||v===document||o.useGlobalTarget||Sy(v,E.target))},A=E=>{b(E,!1)};window.addEventListener("pointerup",x,c),window.addEventListener("pointercancel",A,c)};return r.forEach(p=>{(o.useGlobalTarget?window:p).addEventListener("pointerdown",f,c),Ko(p)&&(p.addEventListener("focus",g=>ZS(g,c)),!GS(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),m}function qf(a){return Eg(a)&&"ownerSVGElement"in a}const Qo=new WeakMap;let $o;const Ty=(a,s,o)=>(r,c)=>c&&c[0]?c[0][a+"Size"]:qf(r)&&"getBBox"in r?r.getBBox()[s]:r[o],$S=Ty("inline","width","offsetWidth"),PS=Ty("block","height","offsetHeight");function FS({target:a,borderBoxSize:s}){Qo.get(a)?.forEach(o=>{o(a,{get width(){return $S(a,s)},get height(){return PS(a,s)}})})}function JS(a){a.forEach(FS)}function WS(){typeof ResizeObserver>"u"||($o=new ResizeObserver(JS))}function IS(a,s){$o||WS();const o=xy(a);return o.forEach(r=>{let c=Qo.get(r);c||(c=new Set,Qo.set(r,c)),c.add(s),$o?.observe(r)}),()=>{o.forEach(r=>{const c=Qo.get(r);c?.delete(s),c?.size||$o?.unobserve(r)})}}const Po=new Set;let ss;function t5(){ss=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};Po.forEach(s=>s(a))},window.addEventListener("resize",ss)}function e5(a){return Po.add(a),ss||t5(),()=>{Po.delete(a),!Po.size&&typeof ss=="function"&&(window.removeEventListener("resize",ss),ss=void 0)}}function vp(a,s){return typeof a=="function"?e5(a):IS(a,s)}function n5(a){return qf(a)&&a.tagName==="svg"}const a5=[...py,Me,kn],i5=a=>a5.find(my(a)),bp=()=>({translate:0,scale:1,origin:0,originPoint:0}),ls=()=>({x:bp(),y:bp()}),Sp=()=>({min:0,max:0}),we=()=>({x:Sp(),y:Sp()}),s5=new WeakMap;function hr(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function yl(a){return typeof a=="string"||Array.isArray(a)}const Yf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Gf=["initial",...Yf];function mr(a){return hr(a.animate)||Gf.some(s=>yl(a[s]))}function Ay(a){return!!(mr(a)||a.variants)}function l5(a,s,o){for(const r in s){const c=s[r],m=o[r];if(He(c))a.addValue(r,c);else if(He(m))a.addValue(r,us(c,{owner:a}));else if(m!==c)if(a.hasValue(r)){const f=a.getValue(r);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=a.getStaticValue(r);a.addValue(r,us(f!==void 0?f:c,{owner:a}))}}for(const r in o)s[r]===void 0&&a.removeValue(r);return s}const hf={current:null},My={current:!1},o5=typeof window<"u";function r5(){if(My.current=!0,!!o5)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),s=()=>hf.current=a.matches;a.addEventListener("change",s),s()}else hf.current=!1}const Tp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let or={};function Ey(a){or=a}function u5(){return or}class c5{scrapeMotionValuesFromProps(s,o,r){return{}}constructor({parent:s,props:o,presenceContext:r,reducedMotionConfig:c,skipAnimations:m,blockInitialAnimation:f,visualState:p},v={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Vf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const E=Ze.now();this.renderScheduledAt<E&&(this.renderScheduledAt=E,le.render(this.render,!1,!0))};const{latestValues:g,renderState:b}=p;this.latestValues=g,this.baseTarget={...g},this.initialValues=o.initial?{...g}:{},this.renderState=b,this.parent=s,this.props=o,this.presenceContext=r,this.depth=s?s.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=m,this.options=v,this.blockInitialAnimation=!!f,this.isControllingVariants=mr(o),this.isVariantNode=Ay(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(s&&s.current);const{willChange:x,...A}=this.scrapeMotionValuesFromProps(o,{},this);for(const E in A){const O=A[E];g[E]!==void 0&&He(O)&&O.set(g[E])}}mount(s){if(this.hasBeenMounted)for(const o in this.initialValues)this.values.get(o)?.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=s,s5.set(s,this),this.projection&&!this.projection.instance&&this.projection.mount(s),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,r)=>this.bindToMotionValue(r,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(My.current||r5(),this.shouldReduceMotion=hf.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Ga(this.notifyUpdate),Ga(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const o=this.features[s];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(s){this.children.add(s),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(s)}removeChild(s){this.children.delete(s),this.enteringChildren&&this.enteringChildren.delete(s)}bindToMotionValue(s,o){if(this.valueSubscriptions.has(s)&&this.valueSubscriptions.get(s)(),o.accelerate&&ly.has(s)&&this.current instanceof HTMLElement){const{factory:f,keyframes:p,times:v,ease:g,duration:b}=o.accelerate,x=new iy({element:this.current,name:s,keyframes:p,times:v,ease:g,duration:mn(b)}),A=f(x);this.valueSubscriptions.set(s,()=>{A(),x.cancel()});return}const r=ds.has(s);r&&this.onBindTransform&&this.onBindTransform();const c=o.on("change",f=>{this.latestValues[s]=f,this.props.onUpdate&&le.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let m;typeof window<"u"&&window.MotionCheckAppearSync&&(m=window.MotionCheckAppearSync(this,s,o)),this.valueSubscriptions.set(s,()=>{c(),m&&m()})}sortNodePosition(s){return!this.current||!this.sortInstanceNodePosition||this.type!==s.type?0:this.sortInstanceNodePosition(this.current,s.current)}updateFeatures(){let s="animation";for(s in or){const o=or[s];if(!o)continue;const{isEnabled:r,Feature:c}=o;if(!this.features[s]&&c&&r(this.props)&&(this.features[s]=new c(this)),this.features[s]){const m=this.features[s];m.isMounted?m.update():(m.mount(),m.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):we()}getStaticValue(s){return this.latestValues[s]}setStaticValue(s,o){this.latestValues[s]=o}update(s,o){(s.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=s,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let r=0;r<Tp.length;r++){const c=Tp[r];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const m="on"+c,f=s[m];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=l5(this,this.scrapeMotionValuesFromProps(s,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(s){return this.props.variants?this.props.variants[s]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(s){const o=this.getClosestVariantNode();if(o)return o.variantChildren&&o.variantChildren.add(s),()=>o.variantChildren.delete(s)}addValue(s,o){const r=this.values.get(s);o!==r&&(r&&this.removeValue(s),this.bindToMotionValue(s,o),this.values.set(s,o),this.latestValues[s]=o.get())}removeValue(s){this.values.delete(s);const o=this.valueSubscriptions.get(s);o&&(o(),this.valueSubscriptions.delete(s)),delete this.latestValues[s],this.removeValueFromRenderState(s,this.renderState)}hasValue(s){return this.values.has(s)}getValue(s,o){if(this.props.values&&this.props.values[s])return this.props.values[s];let r=this.values.get(s);return r===void 0&&o!==void 0&&(r=us(o===null?void 0:o,{owner:this}),this.addValue(s,r)),r}readValue(s,o){let r=this.latestValues[s]!==void 0||!this.current?this.latestValues[s]:this.getBaseTargetFromProps(this.props,s)??this.readValueFromInstance(this.current,s,this.options);return r!=null&&(typeof r=="string"&&(Mg(r)||wg(r))?r=parseFloat(r):!i5(r)&&kn.test(o)&&(r=yy(s,o)),this.setBaseTarget(s,He(r)?r.get():r)),He(r)?r.get():r}setBaseTarget(s,o){this.baseTarget[s]=o}getBaseTarget(s){const{initial:o}=this.props;let r;if(typeof o=="string"||typeof o=="object"){const m=Lf(this.props,o,this.presenceContext?.custom);m&&(r=m[s])}if(o&&r!==void 0)return r;const c=this.getBaseTargetFromProps(this.props,s);return c!==void 0&&!He(c)?c:this.initialValues[s]!==void 0&&r===void 0?void 0:this.baseTarget[s]}on(s,o){return this.events[s]||(this.events[s]=new Ef),this.events[s].add(o)}notify(s,...o){this.events[s]&&this.events[s].notify(...o)}scheduleRenderMicrotask(){Uf.render(this.render)}}class wy extends c5{constructor(){super(...arguments),this.KeyframeResolver=BS}sortInstanceNodePosition(s,o){return s.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(s,o){const r=s.style;return r?r[o]:void 0}removeValueFromRenderState(s,{vars:o,style:r}){delete o[s],delete r[s]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:s}=this.props;He(s)&&(this.childSubscription=s.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}}class Xa{constructor(s){this.isMounted=!1,this.node=s}update(){}}function jy({top:a,left:s,right:o,bottom:r}){return{x:{min:s,max:o},y:{min:a,max:r}}}function f5({x:a,y:s}){return{top:s.min,right:a.max,bottom:s.max,left:a.min}}function d5(a,s){if(!s)return a;const o=s({x:a.left,y:a.top}),r=s({x:a.right,y:a.bottom});return{top:o.y,left:o.x,bottom:r.y,right:r.x}}function kc(a){return a===void 0||a===1}function mf({scale:a,scaleX:s,scaleY:o}){return!kc(a)||!kc(s)||!kc(o)}function pi(a){return mf(a)||Cy(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Cy(a){return Ap(a.x)||Ap(a.y)}function Ap(a){return a&&a!=="0%"}function rr(a,s,o){const r=a-o,c=s*r;return o+c}function Mp(a,s,o,r,c){return c!==void 0&&(a=rr(a,c,r)),rr(a,o,r)+s}function pf(a,s=0,o=1,r,c){a.min=Mp(a.min,s,o,r,c),a.max=Mp(a.max,s,o,r,c)}function Ny(a,{x:s,y:o}){pf(a.x,s.translate,s.scale,s.originPoint),pf(a.y,o.translate,o.scale,o.originPoint)}const Ep=.999999999999,wp=1.0000000000001;function h5(a,s,o,r=!1){const c=o.length;if(!c)return;s.x=s.y=1;let m,f;for(let p=0;p<c;p++){m=o[p],f=m.projectionDelta;const{visualElement:v}=m.options;v&&v.props.style&&v.props.style.display==="contents"||(r&&m.options.layoutScroll&&m.scroll&&m!==m.root&&(Qn(a.x,-m.scroll.offset.x),Qn(a.y,-m.scroll.offset.y)),f&&(s.x*=f.x.scale,s.y*=f.y.scale,Ny(a,f)),r&&pi(m.latestValues)&&Fo(a,m.latestValues,m.layout?.layoutBox))}s.x<wp&&s.x>Ep&&(s.x=1),s.y<wp&&s.y>Ep&&(s.y=1)}function Qn(a,s){a.min+=s,a.max+=s}function jp(a,s,o,r,c=.5){const m=se(a.min,a.max,c);pf(a,s,o,m,r)}function Cp(a,s){return typeof a=="string"?parseFloat(a)/100*(s.max-s.min):a}function Fo(a,s,o){const r=o??a;jp(a.x,Cp(s.x,r.x),s.scaleX,s.scale,s.originX),jp(a.y,Cp(s.y,r.y),s.scaleY,s.scale,s.originY)}function Dy(a,s){return jy(d5(a.getBoundingClientRect(),s))}function m5(a,s,o){const r=Dy(a,o),{scroll:c}=s;return c&&(Qn(r.x,c.offset.x),Qn(r.y,c.offset.y)),r}const p5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},g5=fs.length;function y5(a,s,o){let r="",c=!0;for(let f=0;f<g5;f++){const p=fs[f],v=a[p];if(v===void 0)continue;let g=!0;if(typeof v=="number")g=v===(p.startsWith("scale")?1:0);else{const b=parseFloat(v);g=p.startsWith("scale")?b===1:b===0}if(!g||o){const b=df(v,lr[p]);if(!g){c=!1;const x=p5[p]||p;r+=`${x}(${b}) `}o&&(s[p]=b)}}const m=a.pathRotation;return m&&(c=!1,r+=`rotate(${df(m,lr.pathRotation)}) `),r=r.trim(),o?r=o(s,c?"":r):c&&(r="none"),r}function Xf(a,s,o){const{style:r,vars:c,transformOrigin:m}=a;let f=!1,p=!1;for(const v in s){const g=s[v];if(ds.has(v)){f=!0;continue}else if(qg(v)){c[v]=g;continue}else{const b=df(g,lr[v]);v.startsWith("origin")?(p=!0,m[v]=b):r[v]=b}}if(s.transform||(f||o?r.transform=y5(s,a.transform,o):r.transform&&(r.transform="none")),p){const{originX:v="50%",originY:g="50%",originZ:b=0}=m;r.transformOrigin=`${v} ${g} ${b}`}}function zy(a,{style:s,vars:o},r,c){const m=a.style;let f;for(f in s)m[f]=s[f];c?.applyProjectionStyles(m,r);for(f in o)m.setProperty(f,o[f])}function Np(a,s){return s.max===s.min?0:a/(s.max-s.min)*100}const ul={correct:(a,s)=>{if(!s.target)return a;if(typeof a=="string")if(ut.test(a))a=parseFloat(a);else return a;const o=Np(a,s.target.x),r=Np(a,s.target.y);return`${o}% ${r}%`}},x5={correct:(a,{treeScale:s,projectionDelta:o})=>{const r=a,c=kn.parse(a);if(c.length>5)return r;const m=kn.createTransformer(a),f=typeof c[0]!="number"?1:0,p=o.x.scale*s.x,v=o.y.scale*s.y;c[0+f]/=p,c[1+f]/=v;const g=se(p,v,.5);return typeof c[2+f]=="number"&&(c[2+f]/=g),typeof c[3+f]=="number"&&(c[3+f]/=g),m(c)}},gf={borderRadius:{...ul,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ul,borderTopRightRadius:ul,borderBottomLeftRadius:ul,borderBottomRightRadius:ul,boxShadow:x5};function Ry(a,{layout:s,layoutId:o}){return ds.has(a)||a.startsWith("origin")||(s||o!==void 0)&&(!!gf[a]||a==="opacity")}function Kf(a,s,o){const r=a.style,c=s?.style,m={};if(!r)return m;for(const f in r)(He(r[f])||c&&He(c[f])||Ry(f,a)||o?.getValue(f)?.liveStyle!==void 0)&&(m[f]=r[f]);return m}function v5(a){return window.getComputedStyle(a)}class b5 extends wy{constructor(){super(...arguments),this.type="html",this.renderInstance=zy}readValueFromInstance(s,o){if(ds.has(o))return this.projection?.isProjecting?tf(o):H2(s,o);{const r=v5(s),c=(qg(o)?r.getPropertyValue(o):r[o])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(s,{transformPagePoint:o}){return Dy(s,o)}build(s,o,r){Xf(s,o,r.transformTemplate)}scrapeMotionValuesFromProps(s,o,r){return Kf(s,o,r)}}const S5={offset:"stroke-dashoffset",array:"stroke-dasharray"},T5={offset:"strokeDashoffset",array:"strokeDasharray"};function A5(a,s,o=1,r=0,c=!0){a.pathLength=1;const m=c?S5:T5;a[m.offset]=`${-r}`,a[m.array]=`${s} ${o}`}const M5=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Oy(a,{attrX:s,attrY:o,attrScale:r,pathLength:c,pathSpacing:m=1,pathOffset:f=0,...p},v,g,b){if(Xf(a,p,g),v){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:x,style:A}=a;x.transform&&(A.transform=x.transform,delete x.transform),(A.transform||x.transformOrigin)&&(A.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),A.transform&&(A.transformBox=b?.transformBox??"fill-box",delete x.transformBox);for(const E of M5)x[E]!==void 0&&(A[E]=x[E],delete x[E]);s!==void 0&&(x.x=s),o!==void 0&&(x.y=o),r!==void 0&&(x.scale=r),c!==void 0&&A5(x,c,m,f,!1)}const Vy=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),_y=a=>typeof a=="string"&&a.toLowerCase()==="svg";function E5(a,s,o,r){zy(a,s,void 0,r);for(const c in s.attrs)a.setAttribute(Vy.has(c)?c:Bf(c),s.attrs[c])}function ky(a,s,o){const r=Kf(a,s,o);for(const c in a)if(He(a[c])||He(s[c])){const m=fs.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;r[m]=a[c]}return r}class w5 extends wy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=we}getBaseTargetFromProps(s,o){return s[o]}readValueFromInstance(s,o){if(ds.has(o)){const r=gy(o);return r&&r.default||0}return o=Vy.has(o)?o:Bf(o),s.getAttribute(o)}scrapeMotionValuesFromProps(s,o,r){return ky(s,o,r)}build(s,o,r){Oy(s,o,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(s,o,r,c){E5(s,o,r,c)}mount(s){this.isSVGTag=_y(s.tagName),super.mount(s)}}const j5=Gf.length;function Ly(a){if(!a)return;if(!a.isControllingVariants){const o=a.parent?Ly(a.parent)||{}:{};return a.props.initial!==void 0&&(o.initial=a.props.initial),o}const s={};for(let o=0;o<j5;o++){const r=Gf[o],c=a.props[r];(yl(c)||c===!1)&&(s[r]=c)}return s}function By(a,s){if(!Array.isArray(s))return!1;const o=s.length;if(o!==a.length)return!1;for(let r=0;r<o;r++)if(s[r]!==a[r])return!1;return!0}const C5=[...Yf].reverse(),N5=Yf.length;function D5(a){return s=>Promise.all(s.map(({animation:o,options:r})=>jS(a,o,r)))}function z5(a){let s=D5(a),o=Dp(),r=!0,c=!1;const m=g=>(b,x)=>{const A=bi(a,x,g==="exit"?a.presenceContext?.custom:void 0);if(A){const{transition:E,transitionEnd:O,..._}=A;b={...b,..._,...O}}return b};function f(g){s=g(a)}function p(g){const{props:b}=a,x=Ly(a.parent)||{},A=[],E=new Set;let O={},_=1/0;for(let Q=0;Q<N5;Q++){const B=C5[Q],z=o[B],X=b[B]!==void 0?b[B]:x[B],st=yl(X),Y=B===g?z.isActive:null;Y===!1&&(_=Q);let F=X===x[B]&&X!==b[B]&&st;if(F&&(r||c)&&a.manuallyAnimateOnMount&&(F=!1),z.protectedKeys={...O},!z.isActive&&Y===null||!X&&!z.prevProp||hr(X)||typeof X=="boolean")continue;if(B==="exit"&&z.isActive&&Y!==!0){z.prevResolvedValues&&(O={...O,...z.prevResolvedValues});continue}const K=R5(z.prevProp,X);let W=K||B===g&&z.isActive&&!F&&st||Q>_&&st,I=!1;const lt=Array.isArray(X)?X:[X];let ft=lt.reduce(m(B),{});Y===!1&&(ft={});const{prevResolvedValues:Ot={}}=z,Et={...Ot,...ft},jt=et=>{W=!0,E.has(et)&&(I=!0,E.delete(et)),z.needsAnimating[et]=!0;const pt=a.getValue(et);pt&&(pt.liveStyle=!1)};for(const et in Et){const pt=ft[et],C=Ot[et];if(O.hasOwnProperty(et))continue;let T=!1;of(pt)&&of(C)?T=!By(pt,C)||K:T=pt!==C,T?pt!=null?jt(et):E.add(et):pt!==void 0&&E.has(et)?jt(et):z.protectedKeys[et]=!0}z.prevProp=X,z.prevResolvedValues=ft,z.isActive&&(O={...O,...ft}),(r||c)&&a.blockInitialAnimation&&(W=!1);const N=F&&K;W&&(!N||I)&&A.push(...lt.map(et=>{const pt={type:B};if(typeof et=="string"&&(r||c)&&!N&&a.manuallyAnimateOnMount&&a.parent){const{parent:C}=a,T=bi(C,et);if(C.enteringChildren&&T){const{delayChildren:L}=T.transition||{};pt.delay=oy(C.enteringChildren,a,L)}}return{animation:et,options:pt}}))}if(E.size){const Q={};if(typeof b.initial!="boolean"){const B=bi(a,Array.isArray(b.initial)?b.initial[0]:b.initial);B&&B.transition&&(Q.transition=B.transition)}E.forEach(B=>{const z=a.getBaseTarget(B),X=a.getValue(B);X&&(X.liveStyle=!0),Q[B]=z??null}),A.push({animation:Q})}let U=!!A.length;return r&&(b.initial===!1||b.initial===b.animate)&&!a.manuallyAnimateOnMount&&(U=!1),r=!1,c=!1,U?s(A):Promise.resolve()}function v(g,b){if(o[g].isActive===b)return Promise.resolve();a.variantChildren?.forEach(A=>A.animationState?.setActive(g,b)),o[g].isActive=b;const x=p(g);for(const A in o)o[A].protectedKeys={};return x}return{animateChanges:p,setActive:v,setAnimateFunction:f,getState:()=>o,reset:()=>{o=Dp(),c=!0}}}function R5(a,s){return typeof s=="string"?s!==a:Array.isArray(s)?!By(s,a):!1}function mi(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dp(){return{animate:mi(!0),whileInView:mi(),whileHover:mi(),whileTap:mi(),whileDrag:mi(),whileFocus:mi(),exit:mi()}}function yf(a,s){a.min=s.min,a.max=s.max}function Vn(a,s){yf(a.x,s.x),yf(a.y,s.y)}function zp(a,s){a.translate=s.translate,a.scale=s.scale,a.originPoint=s.originPoint,a.origin=s.origin}const Uy=1e-4,O5=1-Uy,V5=1+Uy,Hy=.01,_5=0-Hy,k5=0+Hy;function Qe(a){return a.max-a.min}function L5(a,s,o){return Math.abs(a-s)<=o}function Rp(a,s,o,r=.5){a.origin=r,a.originPoint=se(s.min,s.max,a.origin),a.scale=Qe(o)/Qe(s),a.translate=se(o.min,o.max,a.origin)-a.originPoint,(a.scale>=O5&&a.scale<=V5||isNaN(a.scale))&&(a.scale=1),(a.translate>=_5&&a.translate<=k5||isNaN(a.translate))&&(a.translate=0)}function hl(a,s,o,r){Rp(a.x,s.x,o.x,r?r.originX:void 0),Rp(a.y,s.y,o.y,r?r.originY:void 0)}function Op(a,s,o,r=0){const c=r?se(o.min,o.max,r):o.min;a.min=c+s.min,a.max=a.min+Qe(s)}function B5(a,s,o,r){Op(a.x,s.x,o.x,r?.x),Op(a.y,s.y,o.y,r?.y)}function Vp(a,s,o,r=0){const c=r?se(o.min,o.max,r):o.min;a.min=s.min-c,a.max=a.min+Qe(s)}function ur(a,s,o,r){Vp(a.x,s.x,o.x,r?.x),Vp(a.y,s.y,o.y,r?.y)}function _p(a,s,o,r,c){return a-=s,a=rr(a,1/o,r),c!==void 0&&(a=rr(a,1/c,r)),a}function U5(a,s=0,o=1,r=.5,c,m=a,f=a){if($n.test(s)&&(s=parseFloat(s),s=se(f.min,f.max,s/100)-f.min),typeof s!="number")return;let p=se(m.min,m.max,r);a===m&&(p-=s),a.min=_p(a.min,s,o,p,c),a.max=_p(a.max,s,o,p,c)}function kp(a,s,[o,r,c],m,f){U5(a,s[o],s[r],s[c],s.scale,m,f)}const H5=["x","scaleX","originX"],q5=["y","scaleY","originY"];function Lp(a,s,o,r){kp(a.x,s,H5,o?o.x:void 0,r?r.x:void 0),kp(a.y,s,q5,o?o.y:void 0,r?r.y:void 0)}function Bp(a){return a.translate===0&&a.scale===1}function qy(a){return Bp(a.x)&&Bp(a.y)}function Up(a,s){return a.min===s.min&&a.max===s.max}function Y5(a,s){return Up(a.x,s.x)&&Up(a.y,s.y)}function Hp(a,s){return Math.round(a.min)===Math.round(s.min)&&Math.round(a.max)===Math.round(s.max)}function Yy(a,s){return Hp(a.x,s.x)&&Hp(a.y,s.y)}function qp(a){return Qe(a.x)/Qe(a.y)}function Yp(a,s){return a.translate===s.translate&&a.scale===s.scale&&a.originPoint===s.originPoint}function Zn(a){return[a("x"),a("y")]}function G5(a,s,o){let r="";const c=a.x.translate/s.x,m=a.y.translate/s.y,f=o?.z||0;if((c||m||f)&&(r=`translate3d(${c}px, ${m}px, ${f}px) `),(s.x!==1||s.y!==1)&&(r+=`scale(${1/s.x}, ${1/s.y}) `),o){const{transformPerspective:g,rotate:b,pathRotation:x,rotateX:A,rotateY:E,skewX:O,skewY:_}=o;g&&(r=`perspective(${g}px) ${r}`),b&&(r+=`rotate(${b}deg) `),x&&(r+=`rotate(${x}deg) `),A&&(r+=`rotateX(${A}deg) `),E&&(r+=`rotateY(${E}deg) `),O&&(r+=`skewX(${O}deg) `),_&&(r+=`skewY(${_}deg) `)}const p=a.x.scale*s.x,v=a.y.scale*s.y;return(p!==1||v!==1)&&(r+=`scale(${p}, ${v})`),r||"none"}const Gy=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],X5=Gy.length,Gp=a=>typeof a=="string"?parseFloat(a):a,Xp=a=>typeof a=="number"||ut.test(a);function K5(a,s,o,r,c,m){c?(a.opacity=se(0,o.opacity??1,Z5(r)),a.opacityExit=se(s.opacity??1,0,Q5(r))):m&&(a.opacity=se(s.opacity??1,o.opacity??1,r));for(let f=0;f<X5;f++){const p=Gy[f];let v=Kp(s,p),g=Kp(o,p);if(v===void 0&&g===void 0)continue;v||(v=0),g||(g=0),v===0||g===0||Xp(v)===Xp(g)?(a[p]=Math.max(se(Gp(v),Gp(g),r),0),($n.test(g)||$n.test(v))&&(a[p]+="%")):a[p]=g}(s.rotate||o.rotate)&&(a.rotate=se(s.rotate||0,o.rotate||0,r))}function Kp(a,s){return a[s]!==void 0?a[s]:a.borderRadius}const Z5=Xy(0,.5,_g),Q5=Xy(.5,.95,Cn);function Xy(a,s,o){return r=>r<a?0:r>s?1:o(pl(a,s,r))}function $5(a,s,o){const r=He(a)?a:us(a);return r.start(kf("",r,s,o)),r.animation}function xl(a,s,o,r={passive:!0}){return a.addEventListener(s,o,r),()=>a.removeEventListener(s,o)}const P5=(a,s)=>a.depth-s.depth;class F5{constructor(){this.children=[],this.isDirty=!1}add(s){Af(this.children,s),this.isDirty=!0}remove(s){er(this.children,s),this.isDirty=!0}forEach(s){this.isDirty&&this.children.sort(P5),this.isDirty=!1,this.children.forEach(s)}}function J5(a,s){const o=Ze.now(),r=({timestamp:c})=>{const m=c-o;m>=s&&(Ga(r),a(m-s))};return le.setup(r,!0),()=>Ga(r)}function Jo(a){return He(a)?a.get():a}class W5{constructor(){this.members=[]}add(s){Af(this.members,s);for(let o=this.members.length-1;o>=0;o--){const r=this.members[o];if(r===s||r===this.lead||r===this.prevLead)continue;const c=r.instance;(!c||c.isConnected===!1)&&!r.snapshot&&(er(this.members,r),r.unmount())}s.scheduleRender()}remove(s){if(er(this.members,s),s===this.prevLead&&(this.prevLead=void 0),s===this.lead){const o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(s){for(let o=this.members.indexOf(s)-1;o>=0;o--){const r=this.members[o];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(s,o){const r=this.lead;if(s!==r&&(this.prevLead=r,this.lead=s,s.show(),r)){r.updateSnapshot(),s.scheduleRender();const{layoutDependency:c}=r.options,{layoutDependency:m}=s.options;(c===void 0||c!==m)&&(s.resumeFrom=r,o&&(r.preserveOpacity=!0),r.snapshot&&(s.snapshot=r.snapshot,s.snapshot.latestValues=r.animationValues||r.latestValues),s.root?.isUpdating&&(s.isLayoutDirty=!0)),s.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(s=>{s.options.onExitComplete?.(),s.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(s=>s.instance&&s.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Wo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Lc=["","X","Y","Z"],I5=1e3;let tT=0;function Bc(a,s,o,r){const{latestValues:c}=s;c[a]&&(o[a]=c[a],s.setStaticValue(a,0),r&&(r[a]=0))}function Ky(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:s}=a.options;if(!s)return;const o=dy(s);if(window.MotionHasOptimisedAnimation(o,"transform")){const{layout:c,layoutId:m}=a.options;window.MotionCancelOptimisedAnimation(o,"transform",le,!(c||m))}const{parent:r}=a;r&&!r.hasCheckedOptimisedAppear&&Ky(r)}function Zy({attachResizeListener:a,defaultParent:s,measureScroll:o,checkIsScrollRoot:r,resetTransform:c}){return class{constructor(f={},p=s?.()){this.id=tT++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(aT),this.nodes.forEach(uT),this.nodes.forEach(cT),this.nodes.forEach(iT)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let v=0;v<this.path.length;v++)this.path[v].shouldResetTransform=!0;this.root===this&&(this.nodes=new F5)}addEventListener(f,p){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Ef),this.eventHandlers.get(f).add(p)}notifyListeners(f,...p){const v=this.eventHandlers.get(f);v&&v.notify(...p)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=qf(f)&&!n5(f),this.instance=f;const{layoutId:p,layout:v,visualElement:g}=this.options;if(g&&!g.current&&g.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(v||p)&&(this.isLayoutDirty=!0),a){let b,x=0;const A=()=>this.root.updateBlockedByResize=!1;le.read(()=>{x=window.innerWidth}),a(f,()=>{const E=window.innerWidth;E!==x&&(x=E,this.root.updateBlockedByResize=!0,b&&b(),b=J5(A,250),Wo.hasAnimatedSinceResize&&(Wo.hasAnimatedSinceResize=!1,this.nodes.forEach($p)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&g&&(p||v)&&this.addEventListener("didUpdate",({delta:b,hasLayoutChanged:x,hasRelativeLayoutChanged:A,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const O=this.options.transition||g.getDefaultTransition()||pT,{onLayoutAnimationStart:_,onLayoutAnimationComplete:U}=g.getProps(),Q=!this.targetLayout||!Yy(this.targetLayout,E),B=!x&&A;if(this.options.layoutRoot||this.resumeFrom||B||x&&(Q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const z={..._f(O,"layout"),onPlay:_,onComplete:U};(g.shouldReduceMotion||this.options.layoutRoot)&&(z.delay=0,z.type=!1),this.startAnimation(z),this.setAnimationOrigin(b,B,z.path)}else x||$p(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ga(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(fT),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ky(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let b=0;b<this.path.length;b++){const x=this.path[b];x.shouldResetTransform=!0,(typeof x.latestValues.x=="string"||typeof x.latestValues.y=="string")&&(x.isLayoutDirty=!0),x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:p,layout:v}=this.options;if(p===void 0&&!v)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const v=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),v&&this.nodes.forEach(lT),this.nodes.forEach(Zp);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Qp);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(oT),this.nodes.forEach(rT),this.nodes.forEach(eT),this.nodes.forEach(nT)):this.nodes.forEach(Qp),this.clearAllSnapshots();const p=Ze.now();Ue.delta=Pn(0,1e3/60,p-Ue.timestamp),Ue.timestamp=p,Ue.isProcessing=!0,Nc.update.process(Ue),Nc.preRender.process(Ue),Nc.render.process(Ue),Ue.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Uf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sT),this.sharedNodes.forEach(dT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,le.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){le.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Qe(this.snapshot.measuredBox.x)&&!Qe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let v=0;v<this.path.length;v++)this.path[v].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=we()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(p=!1),p&&this.instance){const v=r(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:v,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:v}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!qy(this.projectionDelta),v=this.getTransformTemplate(),g=v?v(this.latestValues,""):void 0,b=g!==this.prevTransformTemplateValue;f&&this.instance&&(p||pi(this.latestValues)||b)&&(c(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const p=this.measurePageBox();let v=this.removeElementScroll(p);return f&&(v=this.removeTransform(v)),gT(v),{animationId:this.root.animationId,measuredBox:p,layoutBox:v,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:f}=this.options;if(!f)return we();const p=f.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(yT))){const{scroll:g}=this.root;g&&(Qn(p.x,g.offset.x),Qn(p.y,g.offset.y))}return p}removeElementScroll(f){const p=we();if(Vn(p,f),this.scroll?.wasRoot)return p;for(let v=0;v<this.path.length;v++){const g=this.path[v],{scroll:b,options:x}=g;g!==this.root&&b&&x.layoutScroll&&(b.wasRoot&&Vn(p,f),Qn(p.x,b.offset.x),Qn(p.y,b.offset.y))}return p}applyTransform(f,p=!1,v){const g=v||we();Vn(g,f);for(let b=0;b<this.path.length;b++){const x=this.path[b];!p&&x.options.layoutScroll&&x.scroll&&x!==x.root&&(Qn(g.x,-x.scroll.offset.x),Qn(g.y,-x.scroll.offset.y)),pi(x.latestValues)&&Fo(g,x.latestValues,x.layout?.layoutBox)}return pi(this.latestValues)&&Fo(g,this.latestValues,this.layout?.layoutBox),g}removeTransform(f){const p=we();Vn(p,f);for(let v=0;v<this.path.length;v++){const g=this.path[v];if(!pi(g.latestValues))continue;let b;g.instance&&(mf(g.latestValues)&&g.updateSnapshot(),b=we(),Vn(b,g.measurePageBox())),Lp(p,g.latestValues,g.snapshot?.layoutBox,b)}return pi(this.latestValues)&&Lp(p,this.latestValues),p}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ue.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const v=!!this.resumingFrom||this!==p;if(!(f||v&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:b,layoutId:x}=this.options;if(!this.layout||!(b||x))return;this.resolvedRelativeTargetAt=Ue.timestamp;const A=this.getClosestProjectingParent();A&&this.linkedParentVersion!==A.layoutVersion&&!A.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&A&&A.layout?this.createRelativeTarget(A,this.layout.layoutBox,A.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=we(),this.targetWithTransforms=we()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),B5(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Vn(this.target,this.layout.layoutBox),Ny(this.target,this.targetDelta)):Vn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&A&&!!A.resumingFrom==!!this.resumingFrom&&!A.options.layoutScroll&&A.target&&this.animationProgress!==1?this.createRelativeTarget(A,this.target,A.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||mf(this.parent.latestValues)||Cy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,p,v){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=we(),this.relativeTargetOrigin=we(),ur(this.relativeTargetOrigin,p,v,this.options.layoutAnchor||void 0),Vn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const f=this.getLead(),p=!!this.resumingFrom||this!==f;let v=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(v=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(v=!1),this.resolvedRelativeTargetAt===Ue.timestamp&&(v=!1),v)return;const{layout:g,layoutId:b}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||b))return;Vn(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,A=this.treeScale.y;h5(this.layoutCorrected,this.treeScale,this.path,p),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=we());const{target:E}=f;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(zp(this.prevProjectionDelta.x,this.projectionDelta.x),zp(this.prevProjectionDelta.y,this.projectionDelta.y)),hl(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==A||!Yp(this.projectionDelta.x,this.prevProjectionDelta.x)||!Yp(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){if(this.options.visualElement?.scheduleRender(),f){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ls(),this.projectionDelta=ls(),this.projectionDeltaWithTransform=ls()}setAnimationOrigin(f,p=!1,v){const g=this.snapshot,b=g?g.latestValues:{},x={...this.latestValues},A=ls();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const E=we(),O=g?g.source:void 0,_=this.layout?this.layout.source:void 0,U=O!==_,Q=this.getStack(),B=!Q||Q.members.length<=1,z=!!(U&&!B&&this.options.crossfade===!0&&!this.path.some(mT));this.animationProgress=0;let X;const st=v?.interpolateProjection(f);this.mixTargetDelta=Y=>{const F=Y/1e3,K=st?.(F);K?(A.x.translate=K.x,A.x.scale=se(f.x.scale,1,F),A.x.origin=f.x.origin,A.x.originPoint=f.x.originPoint,A.y.translate=K.y,A.y.scale=se(f.y.scale,1,F),A.y.origin=f.y.origin,A.y.originPoint=f.y.originPoint):(Pp(A.x,f.x,F),Pp(A.y,f.y,F)),this.setTargetDelta(A),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ur(E,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),hT(this.relativeTarget,this.relativeTargetOrigin,E,F),X&&Y5(this.relativeTarget,X)&&(this.isProjectionDirty=!1),X||(X=we()),Vn(X,this.relativeTarget)),U&&(this.animationValues=x,K5(x,b,this.latestValues,F,z,B)),K&&K.rotate!==void 0&&(this.animationValues||(this.animationValues=x),this.animationValues.pathRotation=K.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=F},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ga(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=le.update(()=>{Wo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=us(0)),this.motionValue.jump(0,!1),this.currentAnimation=$5(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),f.onUpdate&&f.onUpdate(p)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(I5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:p,target:v,layout:g,latestValues:b}=f;if(!(!p||!v||!g)){if(this!==f&&this.layout&&g&&Qy(this.options.animationType,this.layout.layoutBox,g.layoutBox)){v=this.target||we();const x=Qe(this.layout.layoutBox.x);v.x.min=f.target.x.min,v.x.max=v.x.min+x;const A=Qe(this.layout.layoutBox.y);v.y.min=f.target.y.min,v.y.max=v.y.min+A}Vn(p,v),Fo(p,b),hl(this.projectionDeltaWithTransform,this.layoutCorrected,p,b)}}registerSharedNode(f,p){this.sharedNodes.has(f)||this.sharedNodes.set(f,new W5),this.sharedNodes.get(f).add(p);const g=p.options.initialPromotionConfig;p.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(p):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){const{layoutId:f}=this.options;return f?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:f}=this.options;return f?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:p,preserveFollowOpacity:v}={}){const g=this.getStack();g&&g.promote(this,v),f&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let p=!1;const{latestValues:v}=f;if((v.z||v.rotate||v.rotateX||v.rotateY||v.rotateZ||v.skewX||v.skewY)&&(p=!0),!p)return;const g={};v.z&&Bc("z",f,g,this.animationValues);for(let b=0;b<Lc.length;b++)Bc(`rotate${Lc[b]}`,f,g,this.animationValues),Bc(`skew${Lc[b]}`,f,g,this.animationValues);f.render();for(const b in g)f.setStaticValue(b,g[b]),this.animationValues&&(this.animationValues[b]=g[b]);f.scheduleRender()}applyProjectionStyles(f,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const v=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=Jo(p?.pointerEvents)||"",f.transform=v?v(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Jo(p?.pointerEvents)||""),this.hasProjected&&!pi(this.latestValues)&&(f.transform=v?v({},""):"none",this.hasProjected=!1);return}f.visibility="";const b=g.animationValues||g.latestValues;this.applyTransformsToTarget();let x=G5(this.projectionDeltaWithTransform,this.treeScale,b);v&&(x=v(b,x)),f.transform=x;const{x:A,y:E}=this.projectionDelta;f.transformOrigin=`${A.origin*100}% ${E.origin*100}% 0`,g.animationValues?f.opacity=g===this?b.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:b.opacityExit:f.opacity=g===this?b.opacity!==void 0?b.opacity:"":b.opacityExit!==void 0?b.opacityExit:0;for(const O in gf){if(b[O]===void 0)continue;const{correct:_,applyTo:U,isCSSVariable:Q}=gf[O],B=x==="none"?b[O]:_(b[O],g);if(U){const z=U.length;for(let X=0;X<z;X++)f[U[X]]=B}else Q?this.options.visualElement.renderState.vars[O]=B:f[O]=B}this.options.layoutId&&(f.pointerEvents=g===this?Jo(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>f.currentAnimation?.stop()),this.root.nodes.forEach(Zp),this.root.sharedNodes.clear()}}}function eT(a){a.updateLayout()}function nT(a){const s=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&s&&a.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:r}=a.layout,{animationType:c}=a.options,m=s.source!==a.layout.source;if(c==="size")Zn(b=>{const x=m?s.measuredBox[b]:s.layoutBox[b],A=Qe(x);x.min=o[b].min,x.max=x.min+A});else if(c==="x"||c==="y"){const b=c==="x"?"y":"x";yf(m?s.measuredBox[b]:s.layoutBox[b],o[b])}else Qy(c,s.layoutBox,o)&&Zn(b=>{const x=m?s.measuredBox[b]:s.layoutBox[b],A=Qe(o[b]);x.max=x.min+A,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[b].max=a.relativeTarget[b].min+A)});const f=ls();hl(f,o,s.layoutBox);const p=ls();m?hl(p,a.applyTransform(r,!0),s.measuredBox):hl(p,o,s.layoutBox);const v=!qy(f);let g=!1;if(!a.resumeFrom){const b=a.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:x,layout:A}=b;if(x&&A){const E=a.options.layoutAnchor||void 0,O=we();ur(O,s.layoutBox,x.layoutBox,E);const _=we();ur(_,o,A.layoutBox,E),Yy(O,_)||(g=!0),b.options.layoutRoot&&(a.relativeTarget=_,a.relativeTargetOrigin=O,a.relativeParent=b)}}}a.notifyListeners("didUpdate",{layout:o,snapshot:s,delta:p,layoutDelta:f,hasLayoutChanged:v,hasRelativeLayoutChanged:g})}else if(a.isLead()){const{onExitComplete:o}=a.options;o&&o()}a.options.transition=void 0}function aT(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function iT(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function sT(a){a.clearSnapshot()}function Zp(a){a.clearMeasurements()}function lT(a){a.isLayoutDirty=!0,a.updateLayout()}function Qp(a){a.isLayoutDirty=!1}function oT(a){a.isAnimationBlocked&&a.layout&&!a.isLayoutDirty&&(a.snapshot=a.layout,a.isLayoutDirty=!0)}function rT(a){const{visualElement:s}=a.options;s&&s.getProps().onBeforeLayoutMeasure&&s.notify("BeforeLayoutMeasure"),a.resetTransform()}function $p(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function uT(a){a.resolveTargetDelta()}function cT(a){a.calcProjection()}function fT(a){a.resetSkewAndRotation()}function dT(a){a.removeLeadSnapshot()}function Pp(a,s,o){a.translate=se(s.translate,0,o),a.scale=se(s.scale,1,o),a.origin=s.origin,a.originPoint=s.originPoint}function Fp(a,s,o,r){a.min=se(s.min,o.min,r),a.max=se(s.max,o.max,r)}function hT(a,s,o,r){Fp(a.x,s.x,o.x,r),Fp(a.y,s.y,o.y,r)}function mT(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const pT={duration:.45,ease:[.4,0,.1,1]},Jp=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Wp=Jp("applewebkit/")&&!Jp("chrome/")?Math.round:Cn;function Ip(a){a.min=Wp(a.min),a.max=Wp(a.max)}function gT(a){Ip(a.x),Ip(a.y)}function Qy(a,s,o){return a==="position"||a==="preserve-aspect"&&!L5(qp(s),qp(o),.2)}function yT(a){return a!==a.root&&a.scroll?.wasRoot}const xT=Zy({attachResizeListener:(a,s)=>xl(a,"resize",s),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Uc={current:void 0},$y=Zy({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Uc.current){const a=new xT({});a.mount(window),a.setOptions({layoutScroll:!0}),Uc.current=a}return Uc.current},resetTransform:(a,s)=>{a.style.transform=s!==void 0?s:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Zf=H.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function tg(a,s){if(typeof a=="function")return a(s);a!=null&&(a.current=s)}function vT(...a){return s=>{let o=!1;const r=a.map(c=>{const m=tg(c,s);return!o&&typeof m=="function"&&(o=!0),m});if(o)return()=>{for(let c=0;c<r.length;c++){const m=r[c];typeof m=="function"?m():tg(a[c],null)}}}}function bT(...a){return H.useCallback(vT(...a),a)}class ST extends H.Component{getSnapshotBeforeUpdate(s){const o=this.props.childRef.current;if(Ko(o)&&s.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=o.offsetParent,c=Ko(r)&&r.offsetWidth||0,m=Ko(r)&&r.offsetHeight||0,f=getComputedStyle(o),p=this.props.sizeRef.current;p.height=parseFloat(f.height),p.width=parseFloat(f.width),p.top=o.offsetTop,p.left=o.offsetLeft,p.right=c-p.width-p.left,p.bottom=m-p.height-p.top,p.direction=f.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function TT({children:a,isPresent:s,anchorX:o,anchorY:r,root:c,pop:m}){const f=H.useId(),p=H.useRef(null),v=H.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:g}=H.useContext(Zf),b=a.props?.ref??a?.ref,x=bT(p,b);return H.useInsertionEffect(()=>{const{width:A,height:E,top:O,left:_,right:U,bottom:Q,direction:B}=v.current;if(s||m===!1||!p.current||!A||!E)return;const z=B==="rtl",X=o==="left"?z?`right: ${U}`:`left: ${_}`:z?`left: ${_}`:`right: ${U}`,st=r==="bottom"?`bottom: ${Q}`:`top: ${O}`;p.current.dataset.motionPopId=f;const Y=document.createElement("style");g&&(Y.nonce=g);const F=c??document.head;return F.appendChild(Y),Y.sheet&&Y.sheet.insertRule(`
|
|
10
|
-
[data-motion-pop-id="${
|
|
8
|
+
`+i.stack}}var ye=Object.prototype.hasOwnProperty,xn=a.unstable_scheduleCallback,Si=a.unstable_cancelCallback,$a=a.unstable_shouldYield,ps=a.unstable_requestPaint,be=a.unstable_now,Ti=a.unstable_getCurrentPriorityLevel,Pa=a.unstable_ImmediatePriority,Ke=a.unstable_UserBlockingPriority,F=a.unstable_NormalPriority,ht=a.unstable_LowPriority,rt=a.unstable_IdlePriority,Kt=a.log,se=a.unstable_setDisableYieldValue,ce=null,de=null;function Ce(t){if(typeof Kt=="function"&&se(t),de&&typeof de.setStrictMode=="function")try{de.setStrictMode(ce,t)}catch{}}var ue=Math.clz32?Math.clz32:ji,zn=Math.log,qn=Math.LN2;function ji(t){return t>>>=0,t===0?32:31-(zn(t)/qn|0)|0}var ya=256,xa=262144,Rn=4194304;function De(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Fa(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var o=0,c=t.suspendedLanes,m=t.pingedLanes;t=t.warmLanes;var v=i&134217727;return v!==0?(i=v&~c,i!==0?o=De(i):(m&=v,m!==0?o=De(m):n||(n=v&~t,n!==0&&(o=De(n))))):(v=i&~c,v!==0?o=De(v):m!==0?o=De(m):n||(n=i&~t,n!==0&&(o=De(n)))),o===0?0:e!==0&&e!==o&&(e&c)===0&&(c=o&-o,n=e&-e,c>=n||c===32&&(n&4194048)!==0)?e:o}function va(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function fr(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bl(){var t=Rn;return Rn<<=1,(Rn&62914560)===0&&(Rn=4194304),t}function Ai(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ja(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function dr(t,e,n,i,o,c){var m=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var v=t.entanglements,T=t.expirationTimes,R=t.hiddenUpdates;for(n=m&~n;0<n;){var K=31-ue(n),P=1<<K;v[K]=0,T[K]=-1;var _=R[K];if(_!==null)for(R[K]=null,K=0;K<_.length;K++){var U=_[K];U!==null&&(U.lane&=-536870913)}n&=~P}i!==0&&Sl(t,i,0),c!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=c&~(m&~e))}function Sl(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-ue(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&261930}function V(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-ue(n),o=1<<i;o&e|t[i]&e&&(t[i]|=e),n&=~o}}function ft(t,e){var n=e&-e;return n=(n&42)!==0?1:ut(n),(n&(t.suspendedLanes|e))!==0?0:n}function ut(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function mt(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Mt(){var t=N.p;return t!==0?t:(t=window.event,t===void 0?32:jm(t.type))}function zt(t,e){var n=N.p;try{return N.p=t,e()}finally{N.p=n}}var bt=Math.random().toString(36).slice(2),Tt="__reactFiber$"+bt,Rt="__reactProps$"+bt,te="__reactContainer$"+bt,Nt="__reactEvents$"+bt,qt="__reactListeners$"+bt,Qt="__reactHandles$"+bt,he="__reactResources$"+bt,ee="__reactMarker$"+bt;function ze(t){delete t[Tt],delete t[Rt],delete t[Nt],delete t[qt],delete t[Qt]}function Ut(t){var e=t[Tt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[te]||n[Tt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=om(t);t!==null;){if(n=t[Tt])return n;t=om(t)}return e}t=n,n=t.parentNode}return null}function _t(t){if(t=t[Tt]||t[te]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function le(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function xt(t){var e=t[he];return e||(e=t[he]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function At(t){t[ee]=!0}var Ze=new Set,on={};function Se(t,e){Te(t,e),Te(t+"Capture",e)}function Te(t,e){for(on[t]=e,t=0;t<e.length;t++)Ze.add(e[t])}var We=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]*$"),_e={},Qe={};function ba(t){return ye.call(Qe,t)?!0:ye.call(_e,t)?!1:We.test(t)?Qe[t]=!0:(_e[t]=!0,!1)}function rn(t,e,n){if(ba(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var i=e.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Yn(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function vn(t,e,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+i)}}function $e(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function gs(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function cx(t,e,n){var i=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(m){n=""+m,c.call(this,m)}}),Object.defineProperty(t,e,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function hr(t){if(!t._valueTracker){var e=gs(t)?"checked":"value";t._valueTracker=cx(t,e,""+t[e])}}function Zf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=gs(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function Tl(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var ux=/[\n"\\]/g;function bn(t){return t.replace(ux,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function mr(t,e,n,i,o,c,m,v){t.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.type=m:t.removeAttribute("type"),e!=null?m==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+$e(e)):t.value!==""+$e(e)&&(t.value=""+$e(e)):m!=="submit"&&m!=="reset"||t.removeAttribute("value"),e!=null?pr(t,m,$e(e)):n!=null?pr(t,m,$e(n)):i!=null&&t.removeAttribute("value"),o==null&&c!=null&&(t.defaultChecked=!!c),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+$e(v):t.removeAttribute("name")}function Qf(t,e,n,i,o,c,m,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){hr(t);return}n=n!=null?""+$e(n):"",e=e!=null?""+$e(e):n,v||e===t.value||(t.value=e),t.defaultValue=e}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=v?t.checked:!!i,t.defaultChecked=!!i,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.name=m),hr(t)}function pr(t,e,n){e==="number"&&Tl(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function wi(t,e,n,i){if(t=t.options,e){e={};for(var o=0;o<n.length;o++)e["$"+n[o]]=!0;for(n=0;n<t.length;n++)o=e.hasOwnProperty("$"+t[n].value),t[n].selected!==o&&(t[n].selected=o),o&&i&&(t[n].defaultSelected=!0)}else{for(n=""+$e(n),e=null,o=0;o<t.length;o++){if(t[o].value===n){t[o].selected=!0,i&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function $f(t,e,n){if(e!=null&&(e=""+$e(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+$e(n):""}function Pf(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(r(92));if(gt(i)){if(1<i.length)throw Error(r(93));i=i[0]}n=i}n==null&&(n=""),e=n}n=$e(e),t.defaultValue=n,i=t.textContent,i===n&&i!==""&&i!==null&&(t.value=i),hr(t)}function Mi(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var fx=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 Ff(t,e,n){var i=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":i?t.setProperty(e,n):typeof n!="number"||n===0||fx.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Jf(t,e,n){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="");for(var o in e)i=e[o],e.hasOwnProperty(o)&&n[o]!==i&&Ff(t,o,i)}else for(var c in e)e.hasOwnProperty(c)&&Ff(t,c,e[c])}function gr(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dx=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"]]),hx=/^[\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 jl(t){return hx.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Wn(){}var yr=null;function xr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ni=null,Ei=null;function Wf(t){var e=_t(t);if(e&&(t=e.stateNode)){var n=t[Rt]||null;t:switch(t=e.stateNode,e.type){case"input":if(mr(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+bn(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var o=i[Rt]||null;if(!o)throw Error(r(90));mr(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<n.length;e++)i=n[e],i.form===t.form&&Zf(i)}break t;case"textarea":$f(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&wi(t,!!n.multiple,e,!1)}}}var vr=!1;function If(t,e,n){if(vr)return t(e,n);vr=!0;try{var i=t(e);return i}finally{if(vr=!1,(Ni!==null||Ei!==null)&&(uo(),Ni&&(e=Ni,t=Ei,Ei=Ni=null,Wf(e),t)))for(e=0;e<t.length;e++)Wf(t[e])}}function ys(t,e){var n=t.stateNode;if(n===null)return null;var i=n[Rt]||null;if(i===null)return null;n=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(r(231,e,typeof n));return n}var In=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),br=!1;if(In)try{var xs={};Object.defineProperty(xs,"passive",{get:function(){br=!0}}),window.addEventListener("test",xs,xs),window.removeEventListener("test",xs,xs)}catch{br=!1}var Sa=null,Sr=null,Al=null;function td(){if(Al)return Al;var t,e=Sr,n=e.length,i,o="value"in Sa?Sa.value:Sa.textContent,c=o.length;for(t=0;t<n&&e[t]===o[t];t++);var m=n-t;for(i=1;i<=m&&e[n-i]===o[c-i];i++);return Al=o.slice(t,1<i?1-i:void 0)}function wl(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Ml(){return!0}function ed(){return!1}function Ie(t){function e(n,i,o,c,m){this._reactName=n,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var v in t)t.hasOwnProperty(v)&&(n=t[v],this[v]=n?n(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ml:ed,this.isPropagationStopped=ed,this}return b(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ml)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ml)},persist:function(){},isPersistent:Ml}),e}var Wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nl=Ie(Wa),vs=b({},Wa,{view:0,detail:0}),mx=Ie(vs),Tr,jr,bs,El=b({},vs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wr,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==bs&&(bs&&t.type==="mousemove"?(Tr=t.screenX-bs.screenX,jr=t.screenY-bs.screenY):jr=Tr=0,bs=t),Tr)},movementY:function(t){return"movementY"in t?t.movementY:jr}}),nd=Ie(El),px=b({},El,{dataTransfer:0}),gx=Ie(px),yx=b({},vs,{relatedTarget:0}),Ar=Ie(yx),xx=b({},Wa,{animationName:0,elapsedTime:0,pseudoElement:0}),vx=Ie(xx),bx=b({},Wa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Sx=Ie(bx),Tx=b({},Wa,{data:0}),ad=Ie(Tx),jx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ax={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"},wx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mx(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=wx[t])?!!e[t]:!1}function wr(){return Mx}var Nx=b({},vs,{key:function(t){if(t.key){var e=jx[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=wl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Ax[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wr,charCode:function(t){return t.type==="keypress"?wl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?wl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Ex=Ie(Nx),Cx=b({},El,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),id=Ie(Cx),Dx=b({},vs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wr}),zx=Ie(Dx),Rx=b({},Wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ox=Ie(Rx),Vx=b({},El,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),_x=Ie(Vx),kx=b({},Wa,{newState:0,oldState:0}),Lx=Ie(kx),Bx=[9,13,27,32],Mr=In&&"CompositionEvent"in window,Ss=null;In&&"documentMode"in document&&(Ss=document.documentMode);var Ux=In&&"TextEvent"in window&&!Ss,sd=In&&(!Mr||Ss&&8<Ss&&11>=Ss),ld=" ",od=!1;function rd(t,e){switch(t){case"keyup":return Bx.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ci=!1;function Hx(t,e){switch(t){case"compositionend":return cd(e);case"keypress":return e.which!==32?null:(od=!0,ld);case"textInput":return t=e.data,t===ld&&od?null:t;default:return null}}function qx(t,e){if(Ci)return t==="compositionend"||!Mr&&rd(t,e)?(t=td(),Al=Sr=Sa=null,Ci=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return sd&&e.locale!=="ko"?null:e.data;default:return null}}var Yx={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 ud(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Yx[t.type]:e==="textarea"}function fd(t,e,n,i){Ni?Ei?Ei.push(i):Ei=[i]:Ni=i,e=xo(e,"onChange"),0<e.length&&(n=new Nl("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var Ts=null,js=null;function Gx(t){Q0(t,0)}function Cl(t){var e=le(t);if(Zf(e))return t}function dd(t,e){if(t==="change")return e}var hd=!1;if(In){var Nr;if(In){var Er="oninput"in document;if(!Er){var md=document.createElement("div");md.setAttribute("oninput","return;"),Er=typeof md.oninput=="function"}Nr=Er}else Nr=!1;hd=Nr&&(!document.documentMode||9<document.documentMode)}function pd(){Ts&&(Ts.detachEvent("onpropertychange",gd),js=Ts=null)}function gd(t){if(t.propertyName==="value"&&Cl(js)){var e=[];fd(e,js,t,xr(t)),If(Gx,e)}}function Xx(t,e,n){t==="focusin"?(pd(),Ts=e,js=n,Ts.attachEvent("onpropertychange",gd)):t==="focusout"&&pd()}function Kx(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Cl(js)}function Zx(t,e){if(t==="click")return Cl(e)}function Qx(t,e){if(t==="input"||t==="change")return Cl(e)}function $x(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var cn=typeof Object.is=="function"?Object.is:$x;function As(t,e){if(cn(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var o=n[i];if(!ye.call(e,o)||!cn(t[o],e[o]))return!1}return!0}function yd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function xd(t,e){var n=yd(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=yd(n)}}function vd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?vd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function bd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Tl(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Tl(t.document)}return e}function Cr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Px=In&&"documentMode"in document&&11>=document.documentMode,Di=null,Dr=null,ws=null,zr=!1;function Sd(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zr||Di==null||Di!==Tl(i)||(i=Di,"selectionStart"in i&&Cr(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ws&&As(ws,i)||(ws=i,i=xo(Dr,"onSelect"),0<i.length&&(e=new Nl("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=Di)))}function Ia(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var zi={animationend:Ia("Animation","AnimationEnd"),animationiteration:Ia("Animation","AnimationIteration"),animationstart:Ia("Animation","AnimationStart"),transitionrun:Ia("Transition","TransitionRun"),transitionstart:Ia("Transition","TransitionStart"),transitioncancel:Ia("Transition","TransitionCancel"),transitionend:Ia("Transition","TransitionEnd")},Rr={},Td={};In&&(Td=document.createElement("div").style,"AnimationEvent"in window||(delete zi.animationend.animation,delete zi.animationiteration.animation,delete zi.animationstart.animation),"TransitionEvent"in window||delete zi.transitionend.transition);function ti(t){if(Rr[t])return Rr[t];if(!zi[t])return t;var e=zi[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Td)return Rr[t]=e[n];return t}var jd=ti("animationend"),Ad=ti("animationiteration"),wd=ti("animationstart"),Fx=ti("transitionrun"),Jx=ti("transitionstart"),Wx=ti("transitioncancel"),Md=ti("transitionend"),Nd=new Map,Or="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(" ");Or.push("scrollEnd");function On(t,e){Nd.set(t,e),Se(e,[t])}var Dl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Sn=[],Ri=0,Vr=0;function zl(){for(var t=Ri,e=Vr=Ri=0;e<t;){var n=Sn[e];Sn[e++]=null;var i=Sn[e];Sn[e++]=null;var o=Sn[e];Sn[e++]=null;var c=Sn[e];if(Sn[e++]=null,i!==null&&o!==null){var m=i.pending;m===null?o.next=o:(o.next=m.next,m.next=o),i.pending=o}c!==0&&Ed(n,o,c)}}function Rl(t,e,n,i){Sn[Ri++]=t,Sn[Ri++]=e,Sn[Ri++]=n,Sn[Ri++]=i,Vr|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function _r(t,e,n,i){return Rl(t,e,n,i),Ol(t)}function ei(t,e){return Rl(t,null,null,e),Ol(t)}function Ed(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var o=!1,c=t.return;c!==null;)c.childLanes|=n,i=c.alternate,i!==null&&(i.childLanes|=n),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(o=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,o&&e!==null&&(o=31-ue(n),t=c.hiddenUpdates,i=t[o],i===null?t[o]=[e]:i.push(e),e.lane=n|536870912),c):null}function Ol(t){if(50<Qs)throw Qs=0,Xc=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Oi={};function Ix(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function un(t,e,n,i){return new Ix(t,e,n,i)}function kr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ta(t,e){var n=t.alternate;return n===null?(n=un(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Cd(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Vl(t,e,n,i,o,c){var m=0;if(i=t,typeof t=="function")kr(t)&&(m=1);else if(typeof t=="string")m=iv(t,n,at.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case W:return t=un(31,n,e,o),t.elementType=W,t.lanes=c,t;case O:return ni(n.children,o,c,e);case B:m=8,o|=24;break;case Y:return t=un(12,n,e,o|2),t.elementType=Y,t.lanes=c,t;case I:return t=un(13,n,e,o),t.elementType=I,t.lanes=c,t;case Z:return t=un(19,n,e,o),t.elementType=Z,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case C:m=10;break t;case G:m=9;break t;case X:m=11;break t;case L:m=14;break t;case k:m=16,i=null;break t}m=29,n=Error(r(130,t===null?"null":typeof t,"")),i=null}return e=un(m,n,e,o),e.elementType=t,e.type=i,e.lanes=c,e}function ni(t,e,n,i){return t=un(7,t,i,e),t.lanes=n,t}function Lr(t,e,n){return t=un(6,t,null,e),t.lanes=n,t}function Dd(t){var e=un(18,null,null,0);return e.stateNode=t,e}function Br(t,e,n){return e=un(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var zd=new WeakMap;function Tn(t,e){if(typeof t=="object"&&t!==null){var n=zd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Xe(e)},zd.set(t,e),e)}return{value:t,source:e,stack:Xe(e)}}var Vi=[],_i=0,_l=null,Ms=0,jn=[],An=0,Ta=null,Gn=1,Xn="";function ea(t,e){Vi[_i++]=Ms,Vi[_i++]=_l,_l=t,Ms=e}function Rd(t,e,n){jn[An++]=Gn,jn[An++]=Xn,jn[An++]=Ta,Ta=t;var i=Gn;t=Xn;var o=32-ue(i)-1;i&=~(1<<o),n+=1;var c=32-ue(e)+o;if(30<c){var m=o-o%5;c=(i&(1<<m)-1).toString(32),i>>=m,o-=m,Gn=1<<32-ue(e)+o|n<<o|i,Xn=c+t}else Gn=1<<c|n<<o|i,Xn=t}function Ur(t){t.return!==null&&(ea(t,1),Rd(t,1,0))}function Hr(t){for(;t===_l;)_l=Vi[--_i],Vi[_i]=null,Ms=Vi[--_i],Vi[_i]=null;for(;t===Ta;)Ta=jn[--An],jn[An]=null,Xn=jn[--An],jn[An]=null,Gn=jn[--An],jn[An]=null}function Od(t,e){jn[An++]=Gn,jn[An++]=Xn,jn[An++]=Ta,Gn=e.id,Xn=e.overflow,Ta=t}var ke=null,oe=null,Ht=!1,ja=null,wn=!1,qr=Error(r(519));function Aa(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ns(Tn(e,t)),qr}function Vd(t){var e=t.stateNode,n=t.type,i=t.memoizedProps;switch(e[Tt]=t,e[Rt]=i,n){case"dialog":Vt("cancel",e),Vt("close",e);break;case"iframe":case"object":case"embed":Vt("load",e);break;case"video":case"audio":for(n=0;n<Ps.length;n++)Vt(Ps[n],e);break;case"source":Vt("error",e);break;case"img":case"image":case"link":Vt("error",e),Vt("load",e);break;case"details":Vt("toggle",e);break;case"input":Vt("invalid",e),Qf(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Vt("invalid",e);break;case"textarea":Vt("invalid",e),Pf(e,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||i.suppressHydrationWarning===!0||J0(e.textContent,n)?(i.popover!=null&&(Vt("beforetoggle",e),Vt("toggle",e)),i.onScroll!=null&&Vt("scroll",e),i.onScrollEnd!=null&&Vt("scrollend",e),i.onClick!=null&&(e.onclick=Wn),e=!0):e=!1,e||Aa(t,!0)}function _d(t){for(ke=t.return;ke;)switch(ke.tag){case 5:case 31:case 13:wn=!1;return;case 27:case 3:wn=!0;return;default:ke=ke.return}}function ki(t){if(t!==ke)return!1;if(!Ht)return _d(t),Ht=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||su(t.type,t.memoizedProps)),n=!n),n&&oe&&Aa(t),_d(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));oe=lm(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));oe=lm(t)}else e===27?(e=oe,Ba(t.type)?(t=uu,uu=null,oe=t):oe=e):oe=ke?Nn(t.stateNode.nextSibling):null;return!0}function ai(){oe=ke=null,Ht=!1}function Yr(){var t=ja;return t!==null&&(an===null?an=t:an.push.apply(an,t),ja=null),t}function Ns(t){ja===null?ja=[t]:ja.push(t)}var Gr=A(null),ii=null,na=null;function wa(t,e,n){et(Gr,e._currentValue),e._currentValue=n}function aa(t){t._currentValue=Gr.current,Q(Gr)}function Xr(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Kr(t,e,n,i){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){var m=o.child;c=c.firstContext;t:for(;c!==null;){var v=c;c=o;for(var T=0;T<e.length;T++)if(v.context===e[T]){c.lanes|=n,v=c.alternate,v!==null&&(v.lanes|=n),Xr(c.return,n,t),i||(m=null);break t}c=v.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(r(341));m.lanes|=n,c=m.alternate,c!==null&&(c.lanes|=n),Xr(m,n,t),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===t){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function Li(t,e,n,i){t=null;for(var o=e,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var v=o.type;cn(o.pendingProps.value,m.value)||(t!==null?t.push(v):t=[v])}}else if(o===Bt.current){if(m=o.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(tl):t=[tl])}o=o.return}t!==null&&Kr(e,t,n,i),e.flags|=262144}function kl(t){for(t=t.firstContext;t!==null;){if(!cn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function si(t){ii=t,na=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Le(t){return kd(ii,t)}function Ll(t,e){return ii===null&&si(t),kd(t,e)}function kd(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},na===null){if(t===null)throw Error(r(308));na=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else na=na.next=e;return n}var t1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},e1=a.unstable_scheduleCallback,n1=a.unstable_NormalPriority,je={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zr(){return{controller:new t1,data:new Map,refCount:0}}function Es(t){t.refCount--,t.refCount===0&&e1(n1,function(){t.controller.abort()})}var Cs=null,Qr=0,Bi=0,Ui=null;function a1(t,e){if(Cs===null){var n=Cs=[];Qr=0,Bi=Fc(),Ui={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Qr++,e.then(Ld,Ld),e}function Ld(){if(--Qr===0&&Cs!==null){Ui!==null&&(Ui.status="fulfilled");var t=Cs;Cs=null,Bi=0,Ui=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function i1(t,e){var n=[],i={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return t.then(function(){i.status="fulfilled",i.value=e;for(var o=0;o<n.length;o++)(0,n[o])(e)},function(o){for(i.status="rejected",i.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),i}var Bd=D.S;D.S=function(t,e){S0=be(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&a1(t,e),Bd!==null&&Bd(t,e)};var li=A(null);function $r(){var t=li.current;return t!==null?t:ne.pooledCache}function Bl(t,e){e===null?et(li,li.current):et(li,e.pool)}function Ud(){var t=$r();return t===null?null:{parent:je._currentValue,pool:t}}var Hi=Error(r(460)),Pr=Error(r(474)),Ul=Error(r(542)),Hl={then:function(){}};function Hd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function qd(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Wn,Wn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Gd(t),t;default:if(typeof e.status=="string")e.then(Wn,Wn);else{if(t=ne,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(i){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=i}},function(i){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=i}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Gd(t),t}throw ri=e,Hi}}function oi(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ri=n,Hi):n}}var ri=null;function Yd(){if(ri===null)throw Error(r(459));var t=ri;return ri=null,t}function Gd(t){if(t===Hi||t===Ul)throw Error(r(483))}var qi=null,Ds=0;function ql(t){var e=Ds;return Ds+=1,qi===null&&(qi=[]),qd(qi,t,e)}function zs(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Yl(t,e){throw e.$$typeof===S?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Xd(t){function e(E,w){if(t){var z=E.deletions;z===null?(E.deletions=[w],E.flags|=16):z.push(w)}}function n(E,w){if(!t)return null;for(;w!==null;)e(E,w),w=w.sibling;return null}function i(E){for(var w=new Map;E!==null;)E.key!==null?w.set(E.key,E):w.set(E.index,E),E=E.sibling;return w}function o(E,w){return E=ta(E,w),E.index=0,E.sibling=null,E}function c(E,w,z){return E.index=z,t?(z=E.alternate,z!==null?(z=z.index,z<w?(E.flags|=67108866,w):z):(E.flags|=67108866,w)):(E.flags|=1048576,w)}function m(E){return t&&E.alternate===null&&(E.flags|=67108866),E}function v(E,w,z,$){return w===null||w.tag!==6?(w=Lr(z,E.mode,$),w.return=E,w):(w=o(w,z),w.return=E,w)}function T(E,w,z,$){var pt=z.type;return pt===O?K(E,w,z.props.children,$,z.key):w!==null&&(w.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===k&&oi(pt)===w.type)?(w=o(w,z.props),zs(w,z),w.return=E,w):(w=Vl(z.type,z.key,z.props,null,E.mode,$),zs(w,z),w.return=E,w)}function R(E,w,z,$){return w===null||w.tag!==4||w.stateNode.containerInfo!==z.containerInfo||w.stateNode.implementation!==z.implementation?(w=Br(z,E.mode,$),w.return=E,w):(w=o(w,z.children||[]),w.return=E,w)}function K(E,w,z,$,pt){return w===null||w.tag!==7?(w=ni(z,E.mode,$,pt),w.return=E,w):(w=o(w,z),w.return=E,w)}function P(E,w,z){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=Lr(""+w,E.mode,z),w.return=E,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case j:return z=Vl(w.type,w.key,w.props,null,E.mode,z),zs(z,w),z.return=E,z;case M:return w=Br(w,E.mode,z),w.return=E,w;case k:return w=oi(w),P(E,w,z)}if(gt(w)||st(w))return w=ni(w,E.mode,z,null),w.return=E,w;if(typeof w.then=="function")return P(E,ql(w),z);if(w.$$typeof===C)return P(E,Ll(E,w),z);Yl(E,w)}return null}function _(E,w,z,$){var pt=w!==null?w.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return pt!==null?null:v(E,w,""+z,$);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case j:return z.key===pt?T(E,w,z,$):null;case M:return z.key===pt?R(E,w,z,$):null;case k:return z=oi(z),_(E,w,z,$)}if(gt(z)||st(z))return pt!==null?null:K(E,w,z,$,null);if(typeof z.then=="function")return _(E,w,ql(z),$);if(z.$$typeof===C)return _(E,w,Ll(E,z),$);Yl(E,z)}return null}function U(E,w,z,$,pt){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return E=E.get(z)||null,v(w,E,""+$,pt);if(typeof $=="object"&&$!==null){switch($.$$typeof){case j:return E=E.get($.key===null?z:$.key)||null,T(w,E,$,pt);case M:return E=E.get($.key===null?z:$.key)||null,R(w,E,$,pt);case k:return $=oi($),U(E,w,z,$,pt)}if(gt($)||st($))return E=E.get(z)||null,K(w,E,$,pt,null);if(typeof $.then=="function")return U(E,w,z,ql($),pt);if($.$$typeof===C)return U(E,w,z,Ll(w,$),pt);Yl(w,$)}return null}function it(E,w,z,$){for(var pt=null,Yt=null,ct=w,Ct=w=0,Lt=null;ct!==null&&Ct<z.length;Ct++){ct.index>Ct?(Lt=ct,ct=null):Lt=ct.sibling;var Gt=_(E,ct,z[Ct],$);if(Gt===null){ct===null&&(ct=Lt);break}t&&ct&&Gt.alternate===null&&e(E,ct),w=c(Gt,w,Ct),Yt===null?pt=Gt:Yt.sibling=Gt,Yt=Gt,ct=Lt}if(Ct===z.length)return n(E,ct),Ht&&ea(E,Ct),pt;if(ct===null){for(;Ct<z.length;Ct++)ct=P(E,z[Ct],$),ct!==null&&(w=c(ct,w,Ct),Yt===null?pt=ct:Yt.sibling=ct,Yt=ct);return Ht&&ea(E,Ct),pt}for(ct=i(ct);Ct<z.length;Ct++)Lt=U(ct,E,Ct,z[Ct],$),Lt!==null&&(t&&Lt.alternate!==null&&ct.delete(Lt.key===null?Ct:Lt.key),w=c(Lt,w,Ct),Yt===null?pt=Lt:Yt.sibling=Lt,Yt=Lt);return t&&ct.forEach(function(Ga){return e(E,Ga)}),Ht&&ea(E,Ct),pt}function vt(E,w,z,$){if(z==null)throw Error(r(151));for(var pt=null,Yt=null,ct=w,Ct=w=0,Lt=null,Gt=z.next();ct!==null&&!Gt.done;Ct++,Gt=z.next()){ct.index>Ct?(Lt=ct,ct=null):Lt=ct.sibling;var Ga=_(E,ct,Gt.value,$);if(Ga===null){ct===null&&(ct=Lt);break}t&&ct&&Ga.alternate===null&&e(E,ct),w=c(Ga,w,Ct),Yt===null?pt=Ga:Yt.sibling=Ga,Yt=Ga,ct=Lt}if(Gt.done)return n(E,ct),Ht&&ea(E,Ct),pt;if(ct===null){for(;!Gt.done;Ct++,Gt=z.next())Gt=P(E,Gt.value,$),Gt!==null&&(w=c(Gt,w,Ct),Yt===null?pt=Gt:Yt.sibling=Gt,Yt=Gt);return Ht&&ea(E,Ct),pt}for(ct=i(ct);!Gt.done;Ct++,Gt=z.next())Gt=U(ct,E,Ct,Gt.value,$),Gt!==null&&(t&&Gt.alternate!==null&&ct.delete(Gt.key===null?Ct:Gt.key),w=c(Gt,w,Ct),Yt===null?pt=Gt:Yt.sibling=Gt,Yt=Gt);return t&&ct.forEach(function(pv){return e(E,pv)}),Ht&&ea(E,Ct),pt}function It(E,w,z,$){if(typeof z=="object"&&z!==null&&z.type===O&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case j:t:{for(var pt=z.key;w!==null;){if(w.key===pt){if(pt=z.type,pt===O){if(w.tag===7){n(E,w.sibling),$=o(w,z.props.children),$.return=E,E=$;break t}}else if(w.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===k&&oi(pt)===w.type){n(E,w.sibling),$=o(w,z.props),zs($,z),$.return=E,E=$;break t}n(E,w);break}else e(E,w);w=w.sibling}z.type===O?($=ni(z.props.children,E.mode,$,z.key),$.return=E,E=$):($=Vl(z.type,z.key,z.props,null,E.mode,$),zs($,z),$.return=E,E=$)}return m(E);case M:t:{for(pt=z.key;w!==null;){if(w.key===pt)if(w.tag===4&&w.stateNode.containerInfo===z.containerInfo&&w.stateNode.implementation===z.implementation){n(E,w.sibling),$=o(w,z.children||[]),$.return=E,E=$;break t}else{n(E,w);break}else e(E,w);w=w.sibling}$=Br(z,E.mode,$),$.return=E,E=$}return m(E);case k:return z=oi(z),It(E,w,z,$)}if(gt(z))return it(E,w,z,$);if(st(z)){if(pt=st(z),typeof pt!="function")throw Error(r(150));return z=pt.call(z),vt(E,w,z,$)}if(typeof z.then=="function")return It(E,w,ql(z),$);if(z.$$typeof===C)return It(E,w,Ll(E,z),$);Yl(E,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,w!==null&&w.tag===6?(n(E,w.sibling),$=o(w,z),$.return=E,E=$):(n(E,w),$=Lr(z,E.mode,$),$.return=E,E=$),m(E)):n(E,w)}return function(E,w,z,$){try{Ds=0;var pt=It(E,w,z,$);return qi=null,pt}catch(ct){if(ct===Hi||ct===Ul)throw ct;var Yt=un(29,ct,null,E.mode);return Yt.lanes=$,Yt.return=E,Yt}}}var ci=Xd(!0),Kd=Xd(!1),Ma=!1;function Fr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jr(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Na(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ea(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(Zt&2)!==0){var o=i.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),i.pending=e,e=Ol(t),Ed(t,null,n),e}return Rl(t,i,e,n),Ol(t)}function Rs(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,V(t,n)}}function Wr(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=m:c=c.next=m,n=n.next}while(n!==null);c===null?o=c=e:c=c.next=e}else o=c=e;n={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Ir=!1;function Os(){if(Ir){var t=Ui;if(t!==null)throw t}}function Vs(t,e,n,i){Ir=!1;var o=t.updateQueue;Ma=!1;var c=o.firstBaseUpdate,m=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var T=v,R=T.next;T.next=null,m===null?c=R:m.next=R,m=T;var K=t.alternate;K!==null&&(K=K.updateQueue,v=K.lastBaseUpdate,v!==m&&(v===null?K.firstBaseUpdate=R:v.next=R,K.lastBaseUpdate=T))}if(c!==null){var P=o.baseState;m=0,K=R=T=null,v=c;do{var _=v.lane&-536870913,U=_!==v.lane;if(U?(kt&_)===_:(i&_)===_){_!==0&&_===Bi&&(Ir=!0),K!==null&&(K=K.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var it=t,vt=v;_=e;var It=n;switch(vt.tag){case 1:if(it=vt.payload,typeof it=="function"){P=it.call(It,P,_);break t}P=it;break t;case 3:it.flags=it.flags&-65537|128;case 0:if(it=vt.payload,_=typeof it=="function"?it.call(It,P,_):it,_==null)break t;P=b({},P,_);break t;case 2:Ma=!0}}_=v.callback,_!==null&&(t.flags|=64,U&&(t.flags|=8192),U=o.callbacks,U===null?o.callbacks=[_]:U.push(_))}else U={lane:_,tag:v.tag,payload:v.payload,callback:v.callback,next:null},K===null?(R=K=U,T=P):K=K.next=U,m|=_;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;U=v,v=U.next,U.next=null,o.lastBaseUpdate=U,o.shared.pending=null}}while(!0);K===null&&(T=P),o.baseState=T,o.firstBaseUpdate=R,o.lastBaseUpdate=K,c===null&&(o.shared.lanes=0),Oa|=m,t.lanes=m,t.memoizedState=P}}function Zd(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Qd(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Zd(n[t],e)}var Yi=A(null),Gl=A(0);function $d(t,e){t=da,et(Gl,t),et(Yi,e),da=t|e.baseLanes}function tc(){et(Gl,da),et(Yi,Yi.current)}function ec(){da=Gl.current,Q(Yi),Q(Gl)}var fn=A(null),Mn=null;function Ca(t){var e=t.alternate;et(xe,xe.current&1),et(fn,t),Mn===null&&(e===null||Yi.current!==null||e.memoizedState!==null)&&(Mn=t)}function nc(t){et(xe,xe.current),et(fn,t),Mn===null&&(Mn=t)}function Pd(t){t.tag===22?(et(xe,xe.current),et(fn,t),Mn===null&&(Mn=t)):Da()}function Da(){et(xe,xe.current),et(fn,fn.current)}function dn(t){Q(fn),Mn===t&&(Mn=null),Q(xe)}var xe=A(0);function Xl(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ru(n)||cu(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ia=0,Et=null,Jt=null,Ae=null,Kl=!1,Gi=!1,ui=!1,Zl=0,_s=0,Xi=null,s1=0;function me(){throw Error(r(321))}function ac(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!cn(t[n],e[n]))return!1;return!0}function ic(t,e,n,i,o,c){return ia=c,Et=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,D.H=t===null||t.memoizedState===null?Rh:vc,ui=!1,c=n(i,o),ui=!1,Gi&&(c=Jd(e,n,i,o)),Fd(t),c}function Fd(t){D.H=Bs;var e=Jt!==null&&Jt.next!==null;if(ia=0,Ae=Jt=Et=null,Kl=!1,_s=0,Xi=null,e)throw Error(r(300));t===null||we||(t=t.dependencies,t!==null&&kl(t)&&(we=!0))}function Jd(t,e,n,i){Et=t;var o=0;do{if(Gi&&(Xi=null),_s=0,Gi=!1,25<=o)throw Error(r(301));if(o+=1,Ae=Jt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}D.H=Oh,c=e(n,i)}while(Gi);return c}function l1(){var t=D.H,e=t.useState()[0];return e=typeof e.then=="function"?ks(e):e,t=t.useState()[0],(Jt!==null?Jt.memoizedState:null)!==t&&(Et.flags|=1024),e}function sc(){var t=Zl!==0;return Zl=0,t}function lc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function oc(t){if(Kl){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Kl=!1}ia=0,Ae=Jt=Et=null,Gi=!1,_s=Zl=0,Xi=null}function Pe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ae===null?Et.memoizedState=Ae=t:Ae=Ae.next=t,Ae}function ve(){if(Jt===null){var t=Et.alternate;t=t!==null?t.memoizedState:null}else t=Jt.next;var e=Ae===null?Et.memoizedState:Ae.next;if(e!==null)Ae=e,Jt=t;else{if(t===null)throw Et.alternate===null?Error(r(467)):Error(r(310));Jt=t,t={memoizedState:Jt.memoizedState,baseState:Jt.baseState,baseQueue:Jt.baseQueue,queue:Jt.queue,next:null},Ae===null?Et.memoizedState=Ae=t:Ae=Ae.next=t}return Ae}function Ql(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ks(t){var e=_s;return _s+=1,Xi===null&&(Xi=[]),t=qd(Xi,t,e),e=Et,(Ae===null?e.memoizedState:Ae.next)===null&&(e=e.alternate,D.H=e===null||e.memoizedState===null?Rh:vc),t}function $l(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ks(t);if(t.$$typeof===C)return Le(t)}throw Error(r(438,String(t)))}function rc(t){var e=null,n=Et.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=Et.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Ql(),Et.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),i=0;i<t;i++)n[i]=J;return e.index++,n}function sa(t,e){return typeof e=="function"?e(t):e}function Pl(t){var e=ve();return cc(e,Jt,t)}function cc(t,e,n){var i=t.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var o=t.baseQueue,c=i.pending;if(c!==null){if(o!==null){var m=o.next;o.next=c.next,c.next=m}e.baseQueue=o=c,i.pending=null}if(c=t.baseState,o===null)t.memoizedState=c;else{e=o.next;var v=m=null,T=null,R=e,K=!1;do{var P=R.lane&-536870913;if(P!==R.lane?(kt&P)===P:(ia&P)===P){var _=R.revertLane;if(_===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),P===Bi&&(K=!0);else if((ia&_)===_){R=R.next,_===Bi&&(K=!0);continue}else P={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},T===null?(v=T=P,m=c):T=T.next=P,Et.lanes|=_,Oa|=_;P=R.action,ui&&n(c,P),c=R.hasEagerState?R.eagerState:n(c,P)}else _={lane:P,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},T===null?(v=T=_,m=c):T=T.next=_,Et.lanes|=P,Oa|=P;R=R.next}while(R!==null&&R!==e);if(T===null?m=c:T.next=v,!cn(c,t.memoizedState)&&(we=!0,K&&(n=Ui,n!==null)))throw n;t.memoizedState=c,t.baseState=m,t.baseQueue=T,i.lastRenderedState=c}return o===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function uc(t){var e=ve(),n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=t;var i=n.dispatch,o=n.pending,c=e.memoizedState;if(o!==null){n.pending=null;var m=o=o.next;do c=t(c,m.action),m=m.next;while(m!==o);cn(c,e.memoizedState)||(we=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),n.lastRenderedState=c}return[c,i]}function Wd(t,e,n){var i=Et,o=ve(),c=Ht;if(c){if(n===void 0)throw Error(r(407));n=n()}else n=e();var m=!cn((Jt||o).memoizedState,n);if(m&&(o.memoizedState=n,we=!0),o=o.queue,hc(eh.bind(null,i,o,t),[t]),o.getSnapshot!==e||m||Ae!==null&&Ae.memoizedState.tag&1){if(i.flags|=2048,Ki(9,{destroy:void 0},th.bind(null,i,o,n,e),null),ne===null)throw Error(r(349));c||(ia&127)!==0||Id(i,e,n)}return n}function Id(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Et.updateQueue,e===null?(e=Ql(),Et.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function th(t,e,n,i){e.value=n,e.getSnapshot=i,nh(e)&&ah(t)}function eh(t,e,n){return n(function(){nh(e)&&ah(t)})}function nh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!cn(t,n)}catch{return!0}}function ah(t){var e=ei(t,2);e!==null&&sn(e,t,2)}function fc(t){var e=Pe();if(typeof t=="function"){var n=t;if(t=n(),ui){Ce(!0);try{n()}finally{Ce(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:t},e}function ih(t,e,n,i){return t.baseState=n,cc(t,Jt,typeof i=="function"?i:sa)}function o1(t,e,n,i,o){if(Wl(t))throw Error(r(485));if(t=e.action,t!==null){var c={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};D.T!==null?n(!0):c.isTransition=!1,i(c),n=e.pending,n===null?(c.next=e.pending=c,sh(e,c)):(c.next=n.next,e.pending=n.next=c)}}function sh(t,e){var n=e.action,i=e.payload,o=t.state;if(e.isTransition){var c=D.T,m={};D.T=m;try{var v=n(o,i),T=D.S;T!==null&&T(m,v),lh(t,e,v)}catch(R){dc(t,e,R)}finally{c!==null&&m.types!==null&&(c.types=m.types),D.T=c}}else try{c=n(o,i),lh(t,e,c)}catch(R){dc(t,e,R)}}function lh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){oh(t,e,i)},function(i){return dc(t,e,i)}):oh(t,e,n)}function oh(t,e,n){e.status="fulfilled",e.value=n,rh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,sh(t,n)))}function dc(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=n,rh(e),e=e.next;while(e!==i)}t.action=null}function rh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function ch(t,e){return e}function uh(t,e){if(Ht){var n=ne.formState;if(n!==null){t:{var i=Et;if(Ht){if(oe){e:{for(var o=oe,c=wn;o.nodeType!==8;){if(!c){o=null;break e}if(o=Nn(o.nextSibling),o===null){o=null;break e}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){oe=Nn(o.nextSibling),i=o.data==="F!";break t}}Aa(i)}i=!1}i&&(e=n[0])}}return n=Pe(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ch,lastRenderedState:e},n.queue=i,n=Ch.bind(null,Et,i),i.dispatch=n,i=fc(!1),c=xc.bind(null,Et,!1,i.queue),i=Pe(),o={state:e,dispatch:null,action:t,pending:null},i.queue=o,n=o1.bind(null,Et,o,c,n),o.dispatch=n,i.memoizedState=t,[e,n,!1]}function fh(t){var e=ve();return dh(e,Jt,t)}function dh(t,e,n){if(e=cc(t,e,ch)[0],t=Pl(sa)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=ks(e)}catch(m){throw m===Hi?Ul:m}else i=e;e=ve();var o=e.queue,c=o.dispatch;return n!==e.memoizedState&&(Et.flags|=2048,Ki(9,{destroy:void 0},r1.bind(null,o,n),null)),[i,c,t]}function r1(t,e){t.action=e}function hh(t){var e=ve(),n=Jt;if(n!==null)return dh(e,n,t);ve(),e=e.memoizedState,n=ve();var i=n.queue.dispatch;return n.memoizedState=t,[e,i,!1]}function Ki(t,e,n,i){return t={tag:t,create:n,deps:i,inst:e,next:null},e=Et.updateQueue,e===null&&(e=Ql(),Et.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function mh(){return ve().memoizedState}function Fl(t,e,n,i){var o=Pe();Et.flags|=t,o.memoizedState=Ki(1|e,{destroy:void 0},n,i===void 0?null:i)}function Jl(t,e,n,i){var o=ve();i=i===void 0?null:i;var c=o.memoizedState.inst;Jt!==null&&i!==null&&ac(i,Jt.memoizedState.deps)?o.memoizedState=Ki(e,c,n,i):(Et.flags|=t,o.memoizedState=Ki(1|e,c,n,i))}function ph(t,e){Fl(8390656,8,t,e)}function hc(t,e){Jl(2048,8,t,e)}function c1(t){Et.flags|=4;var e=Et.updateQueue;if(e===null)e=Ql(),Et.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function gh(t){var e=ve().memoizedState;return c1({ref:e,nextImpl:t}),function(){if((Zt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function yh(t,e){return Jl(4,2,t,e)}function xh(t,e){return Jl(4,4,t,e)}function vh(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function bh(t,e,n){n=n!=null?n.concat([t]):null,Jl(4,4,vh.bind(null,e,t),n)}function mc(){}function Sh(t,e){var n=ve();e=e===void 0?null:e;var i=n.memoizedState;return e!==null&&ac(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function Th(t,e){var n=ve();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&ac(e,i[1]))return i[0];if(i=t(),ui){Ce(!0);try{t()}finally{Ce(!1)}}return n.memoizedState=[i,e],i}function pc(t,e,n){return n===void 0||(ia&1073741824)!==0&&(kt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=j0(),Et.lanes|=t,Oa|=t,n)}function jh(t,e,n,i){return cn(n,e)?n:Yi.current!==null?(t=pc(t,n,i),cn(t,e)||(we=!0),t):(ia&42)===0||(ia&1073741824)!==0&&(kt&261930)===0?(we=!0,t.memoizedState=n):(t=j0(),Et.lanes|=t,Oa|=t,e)}function Ah(t,e,n,i,o){var c=N.p;N.p=c!==0&&8>c?c:8;var m=D.T,v={};D.T=v,xc(t,!1,e,n);try{var T=o(),R=D.S;if(R!==null&&R(v,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var K=i1(T,i);Ls(t,e,K,pn(t))}else Ls(t,e,i,pn(t))}catch(P){Ls(t,e,{then:function(){},status:"rejected",reason:P},pn())}finally{N.p=c,m!==null&&v.types!==null&&(m.types=v.types),D.T=m}}function u1(){}function gc(t,e,n,i){if(t.tag!==5)throw Error(r(476));var o=wh(t).queue;Ah(t,o,e,q,n===null?u1:function(){return Mh(t),n(i)})}function wh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:q},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Mh(t){var e=wh(t);e.next===null&&(e=t.alternate.memoizedState),Ls(t,e.next.queue,{},pn())}function yc(){return Le(tl)}function Nh(){return ve().memoizedState}function Eh(){return ve().memoizedState}function f1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=pn();t=Na(n);var i=Ea(e,t,n);i!==null&&(sn(i,e,n),Rs(i,e,n)),e={cache:Zr()},t.payload=e;return}e=e.return}}function d1(t,e,n){var i=pn();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Wl(t)?Dh(e,n):(n=_r(t,e,n,i),n!==null&&(sn(n,t,i),zh(n,e,i)))}function Ch(t,e,n){var i=pn();Ls(t,e,n,i)}function Ls(t,e,n,i){var o={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wl(t))Dh(e,o);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var m=e.lastRenderedState,v=c(m,n);if(o.hasEagerState=!0,o.eagerState=v,cn(v,m))return Rl(t,e,o,0),ne===null&&zl(),!1}catch{}if(n=_r(t,e,o,i),n!==null)return sn(n,t,i),zh(n,e,i),!0}return!1}function xc(t,e,n,i){if(i={lane:2,revertLane:Fc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Wl(t)){if(e)throw Error(r(479))}else e=_r(t,n,i,2),e!==null&&sn(e,t,2)}function Wl(t){var e=t.alternate;return t===Et||e!==null&&e===Et}function Dh(t,e){Gi=Kl=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function zh(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,V(t,n)}}var Bs={readContext:Le,use:$l,useCallback:me,useContext:me,useEffect:me,useImperativeHandle:me,useLayoutEffect:me,useInsertionEffect:me,useMemo:me,useReducer:me,useRef:me,useState:me,useDebugValue:me,useDeferredValue:me,useTransition:me,useSyncExternalStore:me,useId:me,useHostTransitionStatus:me,useFormState:me,useActionState:me,useOptimistic:me,useMemoCache:me,useCacheRefresh:me};Bs.useEffectEvent=me;var Rh={readContext:Le,use:$l,useCallback:function(t,e){return Pe().memoizedState=[t,e===void 0?null:e],t},useContext:Le,useEffect:ph,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Fl(4194308,4,vh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Fl(4194308,4,t,e)},useInsertionEffect:function(t,e){Fl(4,2,t,e)},useMemo:function(t,e){var n=Pe();e=e===void 0?null:e;var i=t();if(ui){Ce(!0);try{t()}finally{Ce(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=Pe();if(n!==void 0){var o=n(e);if(ui){Ce(!0);try{n(e)}finally{Ce(!1)}}}else o=e;return i.memoizedState=i.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},i.queue=t,t=t.dispatch=d1.bind(null,Et,t),[i.memoizedState,t]},useRef:function(t){var e=Pe();return t={current:t},e.memoizedState=t},useState:function(t){t=fc(t);var e=t.queue,n=Ch.bind(null,Et,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:mc,useDeferredValue:function(t,e){var n=Pe();return pc(n,t,e)},useTransition:function(){var t=fc(!1);return t=Ah.bind(null,Et,t.queue,!0,!1),Pe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=Et,o=Pe();if(Ht){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),ne===null)throw Error(r(349));(kt&127)!==0||Id(i,e,n)}o.memoizedState=n;var c={value:n,getSnapshot:e};return o.queue=c,ph(eh.bind(null,i,c,t),[t]),i.flags|=2048,Ki(9,{destroy:void 0},th.bind(null,i,c,n,e),null),n},useId:function(){var t=Pe(),e=ne.identifierPrefix;if(Ht){var n=Xn,i=Gn;n=(i&~(1<<32-ue(i)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Zl++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=s1++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:yc,useFormState:uh,useActionState:uh,useOptimistic:function(t){var e=Pe();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=xc.bind(null,Et,!0,n),n.dispatch=e,[t,e]},useMemoCache:rc,useCacheRefresh:function(){return Pe().memoizedState=f1.bind(null,Et)},useEffectEvent:function(t){var e=Pe(),n={impl:t};return e.memoizedState=n,function(){if((Zt&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},vc={readContext:Le,use:$l,useCallback:Sh,useContext:Le,useEffect:hc,useImperativeHandle:bh,useInsertionEffect:yh,useLayoutEffect:xh,useMemo:Th,useReducer:Pl,useRef:mh,useState:function(){return Pl(sa)},useDebugValue:mc,useDeferredValue:function(t,e){var n=ve();return jh(n,Jt.memoizedState,t,e)},useTransition:function(){var t=Pl(sa)[0],e=ve().memoizedState;return[typeof t=="boolean"?t:ks(t),e]},useSyncExternalStore:Wd,useId:Nh,useHostTransitionStatus:yc,useFormState:fh,useActionState:fh,useOptimistic:function(t,e){var n=ve();return ih(n,Jt,t,e)},useMemoCache:rc,useCacheRefresh:Eh};vc.useEffectEvent=gh;var Oh={readContext:Le,use:$l,useCallback:Sh,useContext:Le,useEffect:hc,useImperativeHandle:bh,useInsertionEffect:yh,useLayoutEffect:xh,useMemo:Th,useReducer:uc,useRef:mh,useState:function(){return uc(sa)},useDebugValue:mc,useDeferredValue:function(t,e){var n=ve();return Jt===null?pc(n,t,e):jh(n,Jt.memoizedState,t,e)},useTransition:function(){var t=uc(sa)[0],e=ve().memoizedState;return[typeof t=="boolean"?t:ks(t),e]},useSyncExternalStore:Wd,useId:Nh,useHostTransitionStatus:yc,useFormState:hh,useActionState:hh,useOptimistic:function(t,e){var n=ve();return Jt!==null?ih(n,Jt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:rc,useCacheRefresh:Eh};Oh.useEffectEvent=gh;function bc(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:b({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Sc={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=pn(),o=Na(i);o.payload=e,n!=null&&(o.callback=n),e=Ea(t,o,i),e!==null&&(sn(e,t,i),Rs(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=pn(),o=Na(i);o.tag=1,o.payload=e,n!=null&&(o.callback=n),e=Ea(t,o,i),e!==null&&(sn(e,t,i),Rs(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=pn(),i=Na(n);i.tag=2,e!=null&&(i.callback=e),e=Ea(t,i,n),e!==null&&(sn(e,t,n),Rs(e,t,n))}};function Vh(t,e,n,i,o,c,m){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,c,m):e.prototype&&e.prototype.isPureReactComponent?!As(n,i)||!As(o,c):!0}function _h(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&Sc.enqueueReplaceState(e,e.state,null)}function fi(t,e){var n=e;if("ref"in e){n={};for(var i in e)i!=="ref"&&(n[i]=e[i])}if(t=t.defaultProps){n===e&&(n=b({},n));for(var o in t)n[o]===void 0&&(n[o]=t[o])}return n}function kh(t){Dl(t)}function Lh(t){console.error(t)}function Bh(t){Dl(t)}function Il(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function Uh(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Tc(t,e,n){return n=Na(n),n.tag=3,n.payload={element:null},n.callback=function(){Il(t,e)},n}function Hh(t){return t=Na(t),t.tag=3,t}function qh(t,e,n,i){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;t.payload=function(){return o(c)},t.callback=function(){Uh(e,n,i)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(t.callback=function(){Uh(e,n,i),typeof o!="function"&&(Va===null?Va=new Set([this]):Va.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function h1(t,e,n,i,o){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=n.alternate,e!==null&&Li(e,n,o,!0),n=fn.current,n!==null){switch(n.tag){case 31:case 13:return Mn===null?fo():n.alternate===null&&pe===0&&(pe=3),n.flags&=-257,n.flags|=65536,n.lanes=o,i===Hl?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),Qc(t,i,o)),!1;case 22:return n.flags|=65536,i===Hl?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([i]):n.add(i)),Qc(t,i,o)),!1}throw Error(r(435,n.tag))}return Qc(t,i,o),fo(),!1}if(Ht)return e=fn.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,i!==qr&&(t=Error(r(422),{cause:i}),Ns(Tn(t,n)))):(i!==qr&&(e=Error(r(423),{cause:i}),Ns(Tn(e,n))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,i=Tn(i,n),o=Tc(t.stateNode,i,o),Wr(t,o),pe!==4&&(pe=2)),!1;var c=Error(r(520),{cause:i});if(c=Tn(c,n),Zs===null?Zs=[c]:Zs.push(c),pe!==4&&(pe=2),e===null)return!0;i=Tn(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=o&-o,n.lanes|=t,t=Tc(n.stateNode,i,t),Wr(n,t),!1;case 1:if(e=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Va===null||!Va.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Hh(o),qh(o,t,n,i),Wr(n,o),!1}n=n.return}while(n!==null);return!1}var jc=Error(r(461)),we=!1;function Be(t,e,n,i){e.child=t===null?Kd(e,null,n,i):ci(e,t.child,n,i)}function Yh(t,e,n,i,o){n=n.render;var c=e.ref;if("ref"in i){var m={};for(var v in i)v!=="ref"&&(m[v]=i[v])}else m=i;return si(e),i=ic(t,e,n,m,c,o),v=sc(),t!==null&&!we?(lc(t,e,o),la(t,e,o)):(Ht&&v&&Ur(e),e.flags|=1,Be(t,e,i,o),e.child)}function Gh(t,e,n,i,o){if(t===null){var c=n.type;return typeof c=="function"&&!kr(c)&&c.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=c,Xh(t,e,c,i,o)):(t=Vl(n.type,null,i,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!zc(t,o)){var m=c.memoizedProps;if(n=n.compare,n=n!==null?n:As,n(m,i)&&t.ref===e.ref)return la(t,e,o)}return e.flags|=1,t=ta(c,i),t.ref=e.ref,t.return=e,e.child=t}function Xh(t,e,n,i,o){if(t!==null){var c=t.memoizedProps;if(As(c,i)&&t.ref===e.ref)if(we=!1,e.pendingProps=i=c,zc(t,o))(t.flags&131072)!==0&&(we=!0);else return e.lanes=t.lanes,la(t,e,o)}return Ac(t,e,n,i,o)}function Kh(t,e,n,i){var o=i.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,t!==null){for(i=e.child=t.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,e.child=null;return Zh(t,e,c,n,i)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Bl(e,c!==null?c.cachePool:null),c!==null?$d(e,c):tc(),Pd(e);else return i=e.lanes=536870912,Zh(t,e,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(Bl(e,c.cachePool),$d(e,c),Da(),e.memoizedState=null):(t!==null&&Bl(e,null),tc(),Da());return Be(t,e,o,n),e.child}function Us(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Zh(t,e,n,i,o){var c=$r();return c=c===null?null:{parent:je._currentValue,pool:c},e.memoizedState={baseLanes:n,cachePool:c},t!==null&&Bl(e,null),tc(),Pd(e),t!==null&&Li(t,e,i,!0),e.childLanes=o,null}function to(t,e){return e=no({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Qh(t,e,n){return ci(e,t.child,null,n),t=to(e,e.pendingProps),t.flags|=2,dn(e),e.memoizedState=null,t}function m1(t,e,n){var i=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Ht){if(i.mode==="hidden")return t=to(e,i),e.lanes=536870912,Us(null,t);if(nc(e),(t=oe)?(t=sm(t,wn),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ta!==null?{id:Gn,overflow:Xn}:null,retryLane:536870912,hydrationErrors:null},n=Dd(t),n.return=e,e.child=n,ke=e,oe=null)):t=null,t===null)throw Aa(e);return e.lanes=536870912,null}return to(e,i)}var c=t.memoizedState;if(c!==null){var m=c.dehydrated;if(nc(e),o)if(e.flags&256)e.flags&=-257,e=Qh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(we||Li(t,e,n,!1),o=(n&t.childLanes)!==0,we||o){if(i=ne,i!==null&&(m=ft(i,n),m!==0&&m!==c.retryLane))throw c.retryLane=m,ei(t,m),sn(i,t,m),jc;fo(),e=Qh(t,e,n)}else t=c.treeContext,oe=Nn(m.nextSibling),ke=e,Ht=!0,ja=null,wn=!1,t!==null&&Od(e,t),e=to(e,i),e.flags|=4096;return e}return t=ta(t.child,{mode:i.mode,children:i.children}),t.ref=e.ref,e.child=t,t.return=e,t}function eo(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Ac(t,e,n,i,o){return si(e),n=ic(t,e,n,i,void 0,o),i=sc(),t!==null&&!we?(lc(t,e,o),la(t,e,o)):(Ht&&i&&Ur(e),e.flags|=1,Be(t,e,n,o),e.child)}function $h(t,e,n,i,o,c){return si(e),e.updateQueue=null,n=Jd(e,i,n,o),Fd(t),i=sc(),t!==null&&!we?(lc(t,e,c),la(t,e,c)):(Ht&&i&&Ur(e),e.flags|=1,Be(t,e,n,c),e.child)}function Ph(t,e,n,i,o){if(si(e),e.stateNode===null){var c=Oi,m=n.contextType;typeof m=="object"&&m!==null&&(c=Le(m)),c=new n(i,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Sc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=i,c.state=e.memoizedState,c.refs={},Fr(e),m=n.contextType,c.context=typeof m=="object"&&m!==null?Le(m):Oi,c.state=e.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(bc(e,n,m,i),c.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&Sc.enqueueReplaceState(c,c.state,null),Vs(e,i,c,o),Os(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){c=e.stateNode;var v=e.memoizedProps,T=fi(n,v);c.props=T;var R=c.context,K=n.contextType;m=Oi,typeof K=="object"&&K!==null&&(m=Le(K));var P=n.getDerivedStateFromProps;K=typeof P=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,K||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||R!==m)&&_h(e,c,i,m),Ma=!1;var _=e.memoizedState;c.state=_,Vs(e,i,c,o),Os(),R=e.memoizedState,v||_!==R||Ma?(typeof P=="function"&&(bc(e,n,P,i),R=e.memoizedState),(T=Ma||Vh(e,n,T,i,_,R,m))?(K||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"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=R),c.props=i,c.state=R,c.context=m,i=T):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{c=e.stateNode,Jr(t,e),m=e.memoizedProps,K=fi(n,m),c.props=K,P=e.pendingProps,_=c.context,R=n.contextType,T=Oi,typeof R=="object"&&R!==null&&(T=Le(R)),v=n.getDerivedStateFromProps,(R=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==P||_!==T)&&_h(e,c,i,T),Ma=!1,_=e.memoizedState,c.state=_,Vs(e,i,c,o),Os();var U=e.memoizedState;m!==P||_!==U||Ma||t!==null&&t.dependencies!==null&&kl(t.dependencies)?(typeof v=="function"&&(bc(e,n,v,i),U=e.memoizedState),(K=Ma||Vh(e,n,K,i,_,U,T)||t!==null&&t.dependencies!==null&&kl(t.dependencies))?(R||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,U,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,U,T)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=U),c.props=i,c.state=U,c.context=T,i=K):(typeof c.componentDidUpdate!="function"||m===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),i=!1)}return c=i,eo(t,e),i=(e.flags&128)!==0,c||i?(c=e.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&i?(e.child=ci(e,t.child,null,o),e.child=ci(e,null,n,o)):Be(t,e,n,o),e.memoizedState=c.state,t=e.child):t=la(t,e,o),t}function Fh(t,e,n,i){return ai(),e.flags|=256,Be(t,e,n,i),e.child}var wc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Mc(t){return{baseLanes:t,cachePool:Ud()}}function Nc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=mn),t}function Jh(t,e,n){var i=e.pendingProps,o=!1,c=(e.flags&128)!==0,m;if((m=c)||(m=t!==null&&t.memoizedState===null?!1:(xe.current&2)!==0),m&&(o=!0,e.flags&=-129),m=(e.flags&32)!==0,e.flags&=-33,t===null){if(Ht){if(o?Ca(e):Da(),(t=oe)?(t=sm(t,wn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ta!==null?{id:Gn,overflow:Xn}:null,retryLane:536870912,hydrationErrors:null},n=Dd(t),n.return=e,e.child=n,ke=e,oe=null)):t=null,t===null)throw Aa(e);return cu(t)?e.lanes=32:e.lanes=536870912,null}var v=i.children;return i=i.fallback,o?(Da(),o=e.mode,v=no({mode:"hidden",children:v},o),i=ni(i,o,n,null),v.return=e,i.return=e,v.sibling=i,e.child=v,i=e.child,i.memoizedState=Mc(n),i.childLanes=Nc(t,m,n),e.memoizedState=wc,Us(null,i)):(Ca(e),Ec(e,v))}var T=t.memoizedState;if(T!==null&&(v=T.dehydrated,v!==null)){if(c)e.flags&256?(Ca(e),e.flags&=-257,e=Cc(t,e,n)):e.memoizedState!==null?(Da(),e.child=t.child,e.flags|=128,e=null):(Da(),v=i.fallback,o=e.mode,i=no({mode:"visible",children:i.children},o),v=ni(v,o,n,null),v.flags|=2,i.return=e,v.return=e,i.sibling=v,e.child=i,ci(e,t.child,null,n),i=e.child,i.memoizedState=Mc(n),i.childLanes=Nc(t,m,n),e.memoizedState=wc,e=Us(null,i));else if(Ca(e),cu(v)){if(m=v.nextSibling&&v.nextSibling.dataset,m)var R=m.dgst;m=R,i=Error(r(419)),i.stack="",i.digest=m,Ns({value:i,source:null,stack:null}),e=Cc(t,e,n)}else if(we||Li(t,e,n,!1),m=(n&t.childLanes)!==0,we||m){if(m=ne,m!==null&&(i=ft(m,n),i!==0&&i!==T.retryLane))throw T.retryLane=i,ei(t,i),sn(m,t,i),jc;ru(v)||fo(),e=Cc(t,e,n)}else ru(v)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,oe=Nn(v.nextSibling),ke=e,Ht=!0,ja=null,wn=!1,t!==null&&Od(e,t),e=Ec(e,i.children),e.flags|=4096);return e}return o?(Da(),v=i.fallback,o=e.mode,T=t.child,R=T.sibling,i=ta(T,{mode:"hidden",children:i.children}),i.subtreeFlags=T.subtreeFlags&65011712,R!==null?v=ta(R,v):(v=ni(v,o,n,null),v.flags|=2),v.return=e,i.return=e,i.sibling=v,e.child=i,Us(null,i),i=e.child,v=t.child.memoizedState,v===null?v=Mc(n):(o=v.cachePool,o!==null?(T=je._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=Ud(),v={baseLanes:v.baseLanes|n,cachePool:o}),i.memoizedState=v,i.childLanes=Nc(t,m,n),e.memoizedState=wc,Us(t.child,i)):(Ca(e),n=t.child,t=n.sibling,n=ta(n,{mode:"visible",children:i.children}),n.return=e,n.sibling=null,t!==null&&(m=e.deletions,m===null?(e.deletions=[t],e.flags|=16):m.push(t)),e.child=n,e.memoizedState=null,n)}function Ec(t,e){return e=no({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function no(t,e){return t=un(22,t,null,e),t.lanes=0,t}function Cc(t,e,n){return ci(e,t.child,null,n),t=Ec(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Wh(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),Xr(t.return,e,n)}function Dc(t,e,n,i,o,c){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:o,treeForkCount:c}:(m.isBackwards=e,m.rendering=null,m.renderingStartTime=0,m.last=i,m.tail=n,m.tailMode=o,m.treeForkCount=c)}function Ih(t,e,n){var i=e.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var m=xe.current,v=(m&2)!==0;if(v?(m=m&1|2,e.flags|=128):m&=1,et(xe,m),Be(t,e,i,n),i=Ht?Ms:0,!v&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Wh(t,n,e);else if(t.tag===19)Wh(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(o){case"forwards":for(n=e.child,o=null;n!==null;)t=n.alternate,t!==null&&Xl(t)===null&&(o=n),n=n.sibling;n=o,n===null?(o=e.child,e.child=null):(o=n.sibling,n.sibling=null),Dc(e,!1,o,n,c,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&Xl(t)===null){e.child=o;break}t=o.sibling,o.sibling=n,n=o,o=t}Dc(e,!0,n,null,c,i);break;case"together":Dc(e,!1,null,null,void 0,i);break;default:e.memoizedState=null}return e.child}function la(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Oa|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Li(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,n=ta(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=ta(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function zc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&kl(t)))}function p1(t,e,n){switch(e.tag){case 3:Ee(e,e.stateNode.containerInfo),wa(e,je,t.memoizedState.cache),ai();break;case 27:case 5:Ye(e);break;case 4:Ee(e,e.stateNode.containerInfo);break;case 10:wa(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,nc(e),null;break;case 13:var i=e.memoizedState;if(i!==null)return i.dehydrated!==null?(Ca(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Jh(t,e,n):(Ca(e),t=la(t,e,n),t!==null?t.sibling:null);Ca(e);break;case 19:var o=(t.flags&128)!==0;if(i=(n&e.childLanes)!==0,i||(Li(t,e,n,!1),i=(n&e.childLanes)!==0),o){if(i)return Ih(t,e,n);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),et(xe,xe.current),i)break;return null;case 22:return e.lanes=0,Kh(t,e,n,e.pendingProps);case 24:wa(e,je,t.memoizedState.cache)}return la(t,e,n)}function t0(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)we=!0;else{if(!zc(t,n)&&(e.flags&128)===0)return we=!1,p1(t,e,n);we=(t.flags&131072)!==0}else we=!1,Ht&&(e.flags&1048576)!==0&&Rd(e,Ms,e.index);switch(e.lanes=0,e.tag){case 16:t:{var i=e.pendingProps;if(t=oi(e.elementType),e.type=t,typeof t=="function")kr(t)?(i=fi(t,i),e.tag=1,e=Ph(null,e,t,i,n)):(e.tag=0,e=Ac(null,e,t,i,n));else{if(t!=null){var o=t.$$typeof;if(o===X){e.tag=11,e=Yh(null,e,t,i,n);break t}else if(o===L){e.tag=14,e=Gh(null,e,t,i,n);break t}}throw e=dt(t)||t,Error(r(306,e,""))}}return e;case 0:return Ac(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,o=fi(i,e.pendingProps),Ph(t,e,i,o,n);case 3:t:{if(Ee(e,e.stateNode.containerInfo),t===null)throw Error(r(387));i=e.pendingProps;var c=e.memoizedState;o=c.element,Jr(t,e),Vs(e,i,null,n);var m=e.memoizedState;if(i=m.cache,wa(e,je,i),i!==c.cache&&Kr(e,[je],n,!0),Os(),i=m.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:m.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=Fh(t,e,i,n);break t}else if(i!==o){o=Tn(Error(r(424)),e),Ns(o),e=Fh(t,e,i,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,oe=Nn(t.firstChild),ke=e,Ht=!0,ja=null,wn=!0,n=Kd(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ai(),i===o){e=la(t,e,n);break t}Be(t,e,i,n)}e=e.child}return e;case 26:return eo(t,e),t===null?(n=fm(e.type,null,e.pendingProps,null))?e.memoizedState=n:Ht||(n=e.type,t=e.pendingProps,i=vo(lt.current).createElement(n),i[Tt]=e,i[Rt]=t,Ue(i,n,t),At(i),e.stateNode=i):e.memoizedState=fm(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Ye(e),t===null&&Ht&&(i=e.stateNode=rm(e.type,e.pendingProps,lt.current),ke=e,wn=!0,o=oe,Ba(e.type)?(uu=o,oe=Nn(i.firstChild)):oe=o),Be(t,e,e.pendingProps.children,n),eo(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Ht&&((o=i=oe)&&(i=K1(i,e.type,e.pendingProps,wn),i!==null?(e.stateNode=i,ke=e,oe=Nn(i.firstChild),wn=!1,o=!0):o=!1),o||Aa(e)),Ye(e),o=e.type,c=e.pendingProps,m=t!==null?t.memoizedProps:null,i=c.children,su(o,c)?i=null:m!==null&&su(o,m)&&(e.flags|=32),e.memoizedState!==null&&(o=ic(t,e,l1,null,null,n),tl._currentValue=o),eo(t,e),Be(t,e,i,n),e.child;case 6:return t===null&&Ht&&((t=n=oe)&&(n=Z1(n,e.pendingProps,wn),n!==null?(e.stateNode=n,ke=e,oe=null,t=!0):t=!1),t||Aa(e)),null;case 13:return Jh(t,e,n);case 4:return Ee(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=ci(e,null,i,n):Be(t,e,i,n),e.child;case 11:return Yh(t,e,e.type,e.pendingProps,n);case 7:return Be(t,e,e.pendingProps,n),e.child;case 8:return Be(t,e,e.pendingProps.children,n),e.child;case 12:return Be(t,e,e.pendingProps.children,n),e.child;case 10:return i=e.pendingProps,wa(e,e.type,i.value),Be(t,e,i.children,n),e.child;case 9:return o=e.type._context,i=e.pendingProps.children,si(e),o=Le(o),i=i(o),e.flags|=1,Be(t,e,i,n),e.child;case 14:return Gh(t,e,e.type,e.pendingProps,n);case 15:return Xh(t,e,e.type,e.pendingProps,n);case 19:return Ih(t,e,n);case 31:return m1(t,e,n);case 22:return Kh(t,e,n,e.pendingProps);case 24:return si(e),i=Le(je),t===null?(o=$r(),o===null&&(o=ne,c=Zr(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),e.memoizedState={parent:i,cache:o},Fr(e),wa(e,je,o)):((t.lanes&n)!==0&&(Jr(t,e),Vs(e,null,null,n),Os()),o=t.memoizedState,c=e.memoizedState,o.parent!==i?(o={parent:i,cache:i},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),wa(e,je,i)):(i=c.cache,wa(e,je,i),i!==o.cache&&Kr(e,[je],n,!0))),Be(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function oa(t){t.flags|=4}function Rc(t,e,n,i,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(N0())t.flags|=8192;else throw ri=Hl,Pr}else t.flags&=-16777217}function e0(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!gm(e))if(N0())t.flags|=8192;else throw ri=Hl,Pr}function ao(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?bl():536870912,t.lanes|=e,Pi|=e)}function Hs(t,e){if(!Ht)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function re(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var o=t.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function g1(t,e,n){var i=e.pendingProps;switch(Hr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return re(e),null;case 1:return re(e),null;case 3:return n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),aa(je),Ft(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ki(e)?oa(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Yr())),re(e),null;case 26:var o=e.type,c=e.memoizedState;return t===null?(oa(e),c!==null?(re(e),e0(e,c)):(re(e),Rc(e,o,null,i,n))):c?c!==t.memoizedState?(oa(e),re(e),e0(e,c)):(re(e),e.flags&=-16777217):(t=t.memoizedProps,t!==i&&oa(e),re(e),Rc(e,o,t,i,n)),null;case 27:if(Un(e),n=lt.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&oa(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return re(e),null}t=at.current,ki(e)?Vd(e):(t=rm(o,i,n),e.stateNode=t,oa(e))}return re(e),null;case 5:if(Un(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&oa(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return re(e),null}if(c=at.current,ki(e))Vd(e);else{var m=vo(lt.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?m.createElement("select",{is:i.is}):m.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?m.createElement(o,{is:i.is}):m.createElement(o)}}c[Tt]=e,c[Rt]=i;t:for(m=e.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break t;for(;m.sibling===null;){if(m.return===null||m.return===e)break t;m=m.return}m.sibling.return=m.return,m=m.sibling}e.stateNode=c;t:switch(Ue(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}i&&oa(e)}}return re(e),Rc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&oa(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(r(166));if(t=lt.current,ki(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,o=ke,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}t[Tt]=e,t=!!(t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||J0(t.nodeValue,n)),t||Aa(e,!0)}else t=vo(t).createTextNode(i),t[Tt]=e,e.stateNode=t}return re(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(i=ki(e),n!==null){if(t===null){if(!i)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[Tt]=e}else ai(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;re(e),t=!1}else n=Yr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(dn(e),e):(dn(e),null);if((e.flags&128)!==0)throw Error(r(558))}return re(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=ki(e),i!==null&&i.dehydrated!==null){if(t===null){if(!o)throw Error(r(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[Tt]=e}else ai(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;re(e),o=!1}else o=Yr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(dn(e),e):(dn(e),null)}return dn(e),(e.flags&128)!==0?(e.lanes=n,e):(n=i!==null,t=t!==null&&t.memoizedState!==null,n&&(i=e.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),ao(e,e.updateQueue),re(e),null);case 4:return Ft(),t===null&&tu(e.stateNode.containerInfo),re(e),null;case 10:return aa(e.type),re(e),null;case 19:if(Q(xe),i=e.memoizedState,i===null)return re(e),null;if(o=(e.flags&128)!==0,c=i.rendering,c===null)if(o)Hs(i,!1);else{if(pe!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=Xl(t),c!==null){for(e.flags|=128,Hs(i,!1),t=c.updateQueue,e.updateQueue=t,ao(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Cd(n,t),n=n.sibling;return et(xe,xe.current&1|2),Ht&&ea(e,i.treeForkCount),e.child}t=t.sibling}i.tail!==null&&be()>ro&&(e.flags|=128,o=!0,Hs(i,!1),e.lanes=4194304)}else{if(!o)if(t=Xl(c),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,ao(e,t),Hs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!Ht)return re(e),null}else 2*be()-i.renderingStartTime>ro&&n!==536870912&&(e.flags|=128,o=!0,Hs(i,!1),e.lanes=4194304);i.isBackwards?(c.sibling=e.child,e.child=c):(t=i.last,t!==null?t.sibling=c:e.child=c,i.last=c)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=be(),t.sibling=null,n=xe.current,et(xe,o?n&1|2:n&1),Ht&&ea(e,i.treeForkCount),t):(re(e),null);case 22:case 23:return dn(e),ec(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(n&536870912)!==0&&(e.flags&128)===0&&(re(e),e.subtreeFlags&6&&(e.flags|=8192)):re(e),n=e.updateQueue,n!==null&&ao(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==n&&(e.flags|=2048),t!==null&&Q(li),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),aa(je),re(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function y1(t,e){switch(Hr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return aa(je),Ft(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Un(e),null;case 31:if(e.memoizedState!==null){if(dn(e),e.alternate===null)throw Error(r(340));ai()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(dn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));ai()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Q(xe),null;case 4:return Ft(),null;case 10:return aa(e.type),null;case 22:case 23:return dn(e),ec(),t!==null&&Q(li),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return aa(je),null;case 25:return null;default:return null}}function n0(t,e){switch(Hr(e),e.tag){case 3:aa(je),Ft();break;case 26:case 27:case 5:Un(e);break;case 4:Ft();break;case 31:e.memoizedState!==null&&dn(e);break;case 13:dn(e);break;case 19:Q(xe);break;case 10:aa(e.type);break;case 22:case 23:dn(e),ec(),t!==null&&Q(li);break;case 24:aa(je)}}function qs(t,e){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var o=i.next;n=o;do{if((n.tag&t)===t){i=void 0;var c=n.create,m=n.inst;i=c(),m.destroy=i}n=n.next}while(n!==o)}}catch(v){Pt(e,e.return,v)}}function za(t,e,n){try{var i=e.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&t)===t){var m=i.inst,v=m.destroy;if(v!==void 0){m.destroy=void 0,o=e;var T=n,R=v;try{R()}catch(K){Pt(o,T,K)}}}i=i.next}while(i!==c)}}catch(K){Pt(e,e.return,K)}}function a0(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Qd(e,n)}catch(i){Pt(t,t.return,i)}}}function i0(t,e,n){n.props=fi(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){Pt(t,e,i)}}function Ys(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:i=t.stateNode;break;default:i=t.stateNode}typeof n=="function"?t.refCleanup=n(i):n.current=i}}catch(o){Pt(t,e,o)}}function Kn(t,e){var n=t.ref,i=t.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(o){Pt(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Pt(t,e,o)}else n.current=null}function s0(t){var e=t.type,n=t.memoizedProps,i=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break t;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(o){Pt(t,t.return,o)}}function Oc(t,e,n){try{var i=t.stateNode;U1(i,t.type,n,e),i[Rt]=e}catch(o){Pt(t,t.return,o)}}function l0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ba(t.type)||t.tag===4}function Vc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||l0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Ba(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function _c(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Wn));else if(i!==4&&(i===27&&Ba(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(_c(t,e,n),t=t.sibling;t!==null;)_c(t,e,n),t=t.sibling}function io(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(i===27&&Ba(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(io(t,e,n),t=t.sibling;t!==null;)io(t,e,n),t=t.sibling}function o0(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);Ue(e,i,n),e[Tt]=t,e[Rt]=n}catch(c){Pt(t,t.return,c)}}var ra=!1,Me=!1,kc=!1,r0=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function x1(t,e){if(t=t.containerInfo,au=Mo,t=bd(t),Cr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break t}var m=0,v=-1,T=-1,R=0,K=0,P=t,_=null;e:for(;;){for(var U;P!==n||o!==0&&P.nodeType!==3||(v=m+o),P!==c||i!==0&&P.nodeType!==3||(T=m+i),P.nodeType===3&&(m+=P.nodeValue.length),(U=P.firstChild)!==null;)_=P,P=U;for(;;){if(P===t)break e;if(_===n&&++R===o&&(v=m),_===c&&++K===i&&(T=m),(U=P.nextSibling)!==null)break;P=_,_=P.parentNode}P=U}n=v===-1||T===-1?null:{start:v,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(iu={focusedElem:t,selectionRange:n},Mo=!1,Ve=e;Ve!==null;)if(e=Ve,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ve=t;else for(;Ve!==null;){switch(e=Ve,c=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)o=t[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,n=e,o=c.memoizedProps,c=c.memoizedState,i=n.stateNode;try{var it=fi(n.type,o);t=i.getSnapshotBeforeUpdate(it,c),i.__reactInternalSnapshotBeforeUpdate=t}catch(vt){Pt(n,n.return,vt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)ou(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":ou(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,Ve=t;break}Ve=e.return}}function c0(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:ua(t,n),i&4&&qs(5,n);break;case 1:if(ua(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(m){Pt(n,n.return,m)}else{var o=fi(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(m){Pt(n,n.return,m)}}i&64&&a0(n),i&512&&Ys(n,n.return);break;case 3:if(ua(t,n),i&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Qd(t,e)}catch(m){Pt(n,n.return,m)}}break;case 27:e===null&&i&4&&o0(n);case 26:case 5:ua(t,n),e===null&&i&4&&s0(n),i&512&&Ys(n,n.return);break;case 12:ua(t,n);break;case 31:ua(t,n),i&4&&d0(t,n);break;case 13:ua(t,n),i&4&&h0(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=N1.bind(null,n),Q1(t,n))));break;case 22:if(i=n.memoizedState!==null||ra,!i){e=e!==null&&e.memoizedState!==null||Me,o=ra;var c=Me;ra=i,(Me=e)&&!c?fa(t,n,(n.subtreeFlags&8772)!==0):ua(t,n),ra=o,Me=c}break;case 30:break;default:ua(t,n)}}function u0(t){var e=t.alternate;e!==null&&(t.alternate=null,u0(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ze(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var fe=null,tn=!1;function ca(t,e,n){for(n=n.child;n!==null;)f0(t,e,n),n=n.sibling}function f0(t,e,n){if(de&&typeof de.onCommitFiberUnmount=="function")try{de.onCommitFiberUnmount(ce,n)}catch{}switch(n.tag){case 26:Me||Kn(n,e),ca(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Me||Kn(n,e);var i=fe,o=tn;Ba(n.type)&&(fe=n.stateNode,tn=!1),ca(t,e,n),Js(n.stateNode),fe=i,tn=o;break;case 5:Me||Kn(n,e);case 6:if(i=fe,o=tn,fe=null,ca(t,e,n),fe=i,tn=o,fe!==null)if(tn)try{(fe.nodeType===9?fe.body:fe.nodeName==="HTML"?fe.ownerDocument.body:fe).removeChild(n.stateNode)}catch(c){Pt(n,e,c)}else try{fe.removeChild(n.stateNode)}catch(c){Pt(n,e,c)}break;case 18:fe!==null&&(tn?(t=fe,am(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),as(t)):am(fe,n.stateNode));break;case 4:i=fe,o=tn,fe=n.stateNode.containerInfo,tn=!0,ca(t,e,n),fe=i,tn=o;break;case 0:case 11:case 14:case 15:za(2,n,e),Me||za(4,n,e),ca(t,e,n);break;case 1:Me||(Kn(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"&&i0(n,e,i)),ca(t,e,n);break;case 21:ca(t,e,n);break;case 22:Me=(i=Me)||n.memoizedState!==null,ca(t,e,n),Me=i;break;default:ca(t,e,n)}}function d0(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{as(t)}catch(n){Pt(e,e.return,n)}}}function h0(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{as(t)}catch(n){Pt(e,e.return,n)}}function v1(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new r0),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new r0),e;default:throw Error(r(435,t.tag))}}function so(t,e){var n=v1(t);e.forEach(function(i){if(!n.has(i)){n.add(i);var o=E1.bind(null,t,i);i.then(o,o)}})}function en(t,e){var n=e.deletions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i],c=t,m=e,v=m;t:for(;v!==null;){switch(v.tag){case 27:if(Ba(v.type)){fe=v.stateNode,tn=!1;break t}break;case 5:fe=v.stateNode,tn=!1;break t;case 3:case 4:fe=v.stateNode.containerInfo,tn=!0;break t}v=v.return}if(fe===null)throw Error(r(160));f0(c,m,o),fe=null,tn=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)m0(e,t),e=e.sibling}var Vn=null;function m0(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:en(e,t),nn(t),i&4&&(za(3,t,t.return),qs(3,t),za(5,t,t.return));break;case 1:en(e,t),nn(t),i&512&&(Me||n===null||Kn(n,n.return)),i&64&&ra&&(t=t.updateQueue,t!==null&&(i=t.callbacks,i!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var o=Vn;if(en(e,t),nn(t),i&512&&(Me||n===null||Kn(n,n.return)),i&4){var c=n!==null?n.memoizedState:null;if(i=t.memoizedState,n===null)if(i===null)if(t.stateNode===null){t:{i=t.type,n=t.memoizedProps,o=o.ownerDocument||o;e:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[ee]||c[Tt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),Ue(c,i,n),c[Tt]=t,At(c),i=c;break t;case"link":var m=mm("link","href",o).get(i+(n.href||""));if(m){for(var v=0;v<m.length;v++)if(c=m[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)){m.splice(v,1);break e}}c=o.createElement(i),Ue(c,i,n),o.head.appendChild(c);break;case"meta":if(m=mm("meta","content",o).get(i+(n.content||""))){for(v=0;v<m.length;v++)if(c=m[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)){m.splice(v,1);break e}}c=o.createElement(i),Ue(c,i,n),o.head.appendChild(c);break;default:throw Error(r(468,i))}c[Tt]=t,At(c),i=c}t.stateNode=i}else pm(o,t.type,t.stateNode);else t.stateNode=hm(o,i,t.memoizedProps);else c!==i?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,i===null?pm(o,t.type,t.stateNode):hm(o,i,t.memoizedProps)):i===null&&t.stateNode!==null&&Oc(t,t.memoizedProps,n.memoizedProps)}break;case 27:en(e,t),nn(t),i&512&&(Me||n===null||Kn(n,n.return)),n!==null&&i&4&&Oc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(en(e,t),nn(t),i&512&&(Me||n===null||Kn(n,n.return)),t.flags&32){o=t.stateNode;try{Mi(o,"")}catch(it){Pt(t,t.return,it)}}i&4&&t.stateNode!=null&&(o=t.memoizedProps,Oc(t,o,n!==null?n.memoizedProps:o)),i&1024&&(kc=!0);break;case 6:if(en(e,t),nn(t),i&4){if(t.stateNode===null)throw Error(r(162));i=t.memoizedProps,n=t.stateNode;try{n.nodeValue=i}catch(it){Pt(t,t.return,it)}}break;case 3:if(To=null,o=Vn,Vn=bo(e.containerInfo),en(e,t),Vn=o,nn(t),i&4&&n!==null&&n.memoizedState.isDehydrated)try{as(e.containerInfo)}catch(it){Pt(t,t.return,it)}kc&&(kc=!1,p0(t));break;case 4:i=Vn,Vn=bo(t.stateNode.containerInfo),en(e,t),nn(t),Vn=i;break;case 12:en(e,t),nn(t);break;case 31:en(e,t),nn(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,so(t,i)));break;case 13:en(e,t),nn(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(oo=be()),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,so(t,i)));break;case 22:o=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,R=ra,K=Me;if(ra=R||o,Me=K||T,en(e,t),Me=K,ra=R,nn(t),i&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(n===null||T||ra||Me||di(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(c=T.stateNode,o)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{v=T.stateNode;var P=T.memoizedProps.style,_=P!=null&&P.hasOwnProperty("display")?P.display:null;v.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch(it){Pt(T,T.return,it)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(it){Pt(T,T.return,it)}}}else if(e.tag===18){if(n===null){T=e;try{var U=T.stateNode;o?im(U,!0):im(T.stateNode,!1)}catch(it){Pt(T,T.return,it)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}i&4&&(i=t.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,so(t,n))));break;case 19:en(e,t),nn(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,so(t,i)));break;case 30:break;case 21:break;default:en(e,t),nn(t)}}function nn(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(l0(i)){n=i;break}i=i.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode,c=Vc(t);io(t,c,o);break;case 5:var m=n.stateNode;n.flags&32&&(Mi(m,""),n.flags&=-33);var v=Vc(t);io(t,v,m);break;case 3:case 4:var T=n.stateNode.containerInfo,R=Vc(t);_c(t,R,T);break;default:throw Error(r(161))}}catch(K){Pt(t,t.return,K)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function p0(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;p0(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function ua(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)c0(t,e.alternate,e),e=e.sibling}function di(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:za(4,e,e.return),di(e);break;case 1:Kn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&i0(e,e.return,n),di(e);break;case 27:Js(e.stateNode);case 26:case 5:Kn(e,e.return),di(e);break;case 22:e.memoizedState===null&&di(e);break;case 30:di(e);break;default:di(e)}t=t.sibling}}function fa(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var i=e.alternate,o=t,c=e,m=c.flags;switch(c.tag){case 0:case 11:case 15:fa(o,c,n),qs(4,c);break;case 1:if(fa(o,c,n),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(R){Pt(i,i.return,R)}if(i=c,o=i.updateQueue,o!==null){var v=i.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)Zd(T[o],v)}catch(R){Pt(i,i.return,R)}}n&&m&64&&a0(c),Ys(c,c.return);break;case 27:o0(c);case 26:case 5:fa(o,c,n),n&&i===null&&m&4&&s0(c),Ys(c,c.return);break;case 12:fa(o,c,n);break;case 31:fa(o,c,n),n&&m&4&&d0(o,c);break;case 13:fa(o,c,n),n&&m&4&&h0(o,c);break;case 22:c.memoizedState===null&&fa(o,c,n),Ys(c,c.return);break;case 30:break;default:fa(o,c,n)}e=e.sibling}}function Lc(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Es(n))}function Bc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Es(t))}function _n(t,e,n,i){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)g0(t,e,n,i),e=e.sibling}function g0(t,e,n,i){var o=e.flags;switch(e.tag){case 0:case 11:case 15:_n(t,e,n,i),o&2048&&qs(9,e);break;case 1:_n(t,e,n,i);break;case 3:_n(t,e,n,i),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Es(t)));break;case 12:if(o&2048){_n(t,e,n,i),t=e.stateNode;try{var c=e.memoizedProps,m=c.id,v=c.onPostCommit;typeof v=="function"&&v(m,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Pt(e,e.return,T)}}else _n(t,e,n,i);break;case 31:_n(t,e,n,i);break;case 13:_n(t,e,n,i);break;case 23:break;case 22:c=e.stateNode,m=e.alternate,e.memoizedState!==null?c._visibility&2?_n(t,e,n,i):Gs(t,e):c._visibility&2?_n(t,e,n,i):(c._visibility|=2,Zi(t,e,n,i,(e.subtreeFlags&10256)!==0||!1)),o&2048&&Lc(m,e);break;case 24:_n(t,e,n,i),o&2048&&Bc(e.alternate,e);break;default:_n(t,e,n,i)}}function Zi(t,e,n,i,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,m=e,v=n,T=i,R=m.flags;switch(m.tag){case 0:case 11:case 15:Zi(c,m,v,T,o),qs(8,m);break;case 23:break;case 22:var K=m.stateNode;m.memoizedState!==null?K._visibility&2?Zi(c,m,v,T,o):Gs(c,m):(K._visibility|=2,Zi(c,m,v,T,o)),o&&R&2048&&Lc(m.alternate,m);break;case 24:Zi(c,m,v,T,o),o&&R&2048&&Bc(m.alternate,m);break;default:Zi(c,m,v,T,o)}e=e.sibling}}function Gs(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,i=e,o=i.flags;switch(i.tag){case 22:Gs(n,i),o&2048&&Lc(i.alternate,i);break;case 24:Gs(n,i),o&2048&&Bc(i.alternate,i);break;default:Gs(n,i)}e=e.sibling}}var Xs=8192;function Qi(t,e,n){if(t.subtreeFlags&Xs)for(t=t.child;t!==null;)y0(t,e,n),t=t.sibling}function y0(t,e,n){switch(t.tag){case 26:Qi(t,e,n),t.flags&Xs&&t.memoizedState!==null&&sv(n,Vn,t.memoizedState,t.memoizedProps);break;case 5:Qi(t,e,n);break;case 3:case 4:var i=Vn;Vn=bo(t.stateNode.containerInfo),Qi(t,e,n),Vn=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=Xs,Xs=16777216,Qi(t,e,n),Xs=i):Qi(t,e,n));break;default:Qi(t,e,n)}}function x0(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Ks(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];Ve=i,b0(i,t)}x0(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)v0(t),t=t.sibling}function v0(t){switch(t.tag){case 0:case 11:case 15:Ks(t),t.flags&2048&&za(9,t,t.return);break;case 3:Ks(t);break;case 12:Ks(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,lo(t)):Ks(t);break;default:Ks(t)}}function lo(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];Ve=i,b0(i,t)}x0(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:za(8,e,e.return),lo(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,lo(e));break;default:lo(e)}t=t.sibling}}function b0(t,e){for(;Ve!==null;){var n=Ve;switch(n.tag){case 0:case 11:case 15:za(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Es(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Ve=i;else t:for(n=t;Ve!==null;){i=Ve;var o=i.sibling,c=i.return;if(u0(i),i===n){Ve=null;break t}if(o!==null){o.return=c,Ve=o;break t}Ve=c}}}var b1={getCacheForType:function(t){var e=Le(je),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return Le(je).controller.signal}},S1=typeof WeakMap=="function"?WeakMap:Map,Zt=0,ne=null,Ot=null,kt=0,$t=0,hn=null,Ra=!1,$i=!1,Uc=!1,da=0,pe=0,Oa=0,hi=0,Hc=0,mn=0,Pi=0,Zs=null,an=null,qc=!1,oo=0,S0=0,ro=1/0,co=null,Va=null,Re=0,_a=null,Fi=null,ha=0,Yc=0,Gc=null,T0=null,Qs=0,Xc=null;function pn(){return(Zt&2)!==0&&kt!==0?kt&-kt:D.T!==null?Fc():Mt()}function j0(){if(mn===0)if((kt&536870912)===0||Ht){var t=xa;xa<<=1,(xa&3932160)===0&&(xa=262144),mn=t}else mn=536870912;return t=fn.current,t!==null&&(t.flags|=32),mn}function sn(t,e,n){(t===ne&&($t===2||$t===9)||t.cancelPendingCommit!==null)&&(Ji(t,0),ka(t,kt,mn,!1)),Ja(t,n),((Zt&2)===0||t!==ne)&&(t===ne&&((Zt&2)===0&&(hi|=n),pe===4&&ka(t,kt,mn,!1)),Zn(t))}function A0(t,e,n){if((Zt&6)!==0)throw Error(r(327));var i=!n&&(e&127)===0&&(e&t.expiredLanes)===0||va(t,e),o=i?A1(t,e):Zc(t,e,!0),c=i;do{if(o===0){$i&&!i&&ka(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!T1(n)){o=Zc(t,e,!1),c=!1;continue}if(o===2){if(c=e,t.errorRecoveryDisabledLanes&c)var m=0;else m=t.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){e=m;t:{var v=t;o=Zs;var T=v.current.memoizedState.isDehydrated;if(T&&(Ji(v,m).flags|=256),m=Zc(v,m,!1),m!==2){if(Uc&&!T){v.errorRecoveryDisabledLanes|=c,hi|=c,o=4;break t}c=an,an=o,c!==null&&(an===null?an=c:an.push.apply(an,c))}o=m}if(c=!1,o!==2)continue}}if(o===1){Ji(t,0),ka(t,e,0,!0);break}t:{switch(i=t,c=o,c){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:ka(i,e,mn,!Ra);break t;case 2:an=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(o=oo+300-be(),10<o)){if(ka(i,e,mn,!Ra),Fa(i,0,!0)!==0)break t;ha=e,i.timeoutHandle=em(w0.bind(null,i,n,an,co,qc,e,mn,hi,Pi,Ra,c,"Throttled",-0,0),o);break t}w0(i,n,an,co,qc,e,mn,hi,Pi,Ra,c,null,-0,0)}}break}while(!0);Zn(t)}function w0(t,e,n,i,o,c,m,v,T,R,K,P,_,U){if(t.timeoutHandle=-1,P=e.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Wn},y0(e,c,P);var it=(c&62914560)===c?oo-be():(c&4194048)===c?S0-be():0;if(it=lv(P,it),it!==null){ha=c,t.cancelPendingCommit=it(O0.bind(null,t,e,c,n,i,o,m,v,T,K,P,null,_,U)),ka(t,c,m,!R);return}}O0(t,e,c,n,i,o,m,v,T)}function T1(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var o=n[i],c=o.getSnapshot;o=o.value;try{if(!cn(c(),o))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ka(t,e,n,i){e&=~Hc,e&=~hi,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var o=e;0<o;){var c=31-ue(o),m=1<<c;i[c]=-1,o&=~m}n!==0&&Sl(t,n,e)}function uo(){return(Zt&6)===0?($s(0),!1):!0}function Kc(){if(Ot!==null){if($t===0)var t=Ot.return;else t=Ot,na=ii=null,oc(t),qi=null,Ds=0,t=Ot;for(;t!==null;)n0(t.alternate,t),t=t.return;Ot=null}}function Ji(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Y1(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),ha=0,Kc(),ne=t,Ot=n=ta(t.current,null),kt=e,$t=0,hn=null,Ra=!1,$i=va(t,e),Uc=!1,Pi=mn=Hc=hi=Oa=pe=0,an=Zs=null,qc=!1,(e&8)!==0&&(e|=e&32);var i=t.entangledLanes;if(i!==0)for(t=t.entanglements,i&=e;0<i;){var o=31-ue(i),c=1<<o;e|=t[o],i&=~c}return da=e,zl(),n}function M0(t,e){Et=null,D.H=Bs,e===Hi||e===Ul?(e=Yd(),$t=3):e===Pr?(e=Yd(),$t=4):$t=e===jc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,hn=e,Ot===null&&(pe=1,Il(t,Tn(e,t.current)))}function N0(){var t=fn.current;return t===null?!0:(kt&4194048)===kt?Mn===null:(kt&62914560)===kt||(kt&536870912)!==0?t===Mn:!1}function E0(){var t=D.H;return D.H=Bs,t===null?Bs:t}function C0(){var t=D.A;return D.A=b1,t}function fo(){pe=4,Ra||(kt&4194048)!==kt&&fn.current!==null||($i=!0),(Oa&134217727)===0&&(hi&134217727)===0||ne===null||ka(ne,kt,mn,!1)}function Zc(t,e,n){var i=Zt;Zt|=2;var o=E0(),c=C0();(ne!==t||kt!==e)&&(co=null,Ji(t,e)),e=!1;var m=pe;t:do try{if($t!==0&&Ot!==null){var v=Ot,T=hn;switch($t){case 8:Kc(),m=6;break t;case 3:case 2:case 9:case 6:fn.current===null&&(e=!0);var R=$t;if($t=0,hn=null,Wi(t,v,T,R),n&&$i){m=0;break t}break;default:R=$t,$t=0,hn=null,Wi(t,v,T,R)}}j1(),m=pe;break}catch(K){M0(t,K)}while(!0);return e&&t.shellSuspendCounter++,na=ii=null,Zt=i,D.H=o,D.A=c,Ot===null&&(ne=null,kt=0,zl()),m}function j1(){for(;Ot!==null;)D0(Ot)}function A1(t,e){var n=Zt;Zt|=2;var i=E0(),o=C0();ne!==t||kt!==e?(co=null,ro=be()+500,Ji(t,e)):$i=va(t,e);t:do try{if($t!==0&&Ot!==null){e=Ot;var c=hn;e:switch($t){case 1:$t=0,hn=null,Wi(t,e,c,1);break;case 2:case 9:if(Hd(c)){$t=0,hn=null,z0(e);break}e=function(){$t!==2&&$t!==9||ne!==t||($t=7),Zn(t)},c.then(e,e);break t;case 3:$t=7;break t;case 4:$t=5;break t;case 7:Hd(c)?($t=0,hn=null,z0(e)):($t=0,hn=null,Wi(t,e,c,7));break;case 5:var m=null;switch(Ot.tag){case 26:m=Ot.memoizedState;case 5:case 27:var v=Ot;if(m?gm(m):v.stateNode.complete){$t=0,hn=null;var T=v.sibling;if(T!==null)Ot=T;else{var R=v.return;R!==null?(Ot=R,ho(R)):Ot=null}break e}}$t=0,hn=null,Wi(t,e,c,5);break;case 6:$t=0,hn=null,Wi(t,e,c,6);break;case 8:Kc(),pe=6;break t;default:throw Error(r(462))}}w1();break}catch(K){M0(t,K)}while(!0);return na=ii=null,D.H=i,D.A=o,Zt=n,Ot!==null?0:(ne=null,kt=0,zl(),pe)}function w1(){for(;Ot!==null&&!$a();)D0(Ot)}function D0(t){var e=t0(t.alternate,t,da);t.memoizedProps=t.pendingProps,e===null?ho(t):Ot=e}function z0(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=$h(n,e,e.pendingProps,e.type,void 0,kt);break;case 11:e=$h(n,e,e.pendingProps,e.type.render,e.ref,kt);break;case 5:oc(e);default:n0(n,e),e=Ot=Cd(e,da),e=t0(n,e,da)}t.memoizedProps=t.pendingProps,e===null?ho(t):Ot=e}function Wi(t,e,n,i){na=ii=null,oc(e),qi=null,Ds=0;var o=e.return;try{if(h1(t,o,e,n,kt)){pe=1,Il(t,Tn(n,t.current)),Ot=null;return}}catch(c){if(o!==null)throw Ot=o,c;pe=1,Il(t,Tn(n,t.current)),Ot=null;return}e.flags&32768?(Ht||i===1?t=!0:$i||(kt&536870912)!==0?t=!1:(Ra=t=!0,(i===2||i===9||i===3||i===6)&&(i=fn.current,i!==null&&i.tag===13&&(i.flags|=16384))),R0(e,t)):ho(e)}function ho(t){var e=t;do{if((e.flags&32768)!==0){R0(e,Ra);return}t=e.return;var n=g1(e.alternate,e,da);if(n!==null){Ot=n;return}if(e=e.sibling,e!==null){Ot=e;return}Ot=e=t}while(e!==null);pe===0&&(pe=5)}function R0(t,e){do{var n=y1(t.alternate,t);if(n!==null){n.flags&=32767,Ot=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){Ot=t;return}Ot=t=n}while(t!==null);pe=6,Ot=null}function O0(t,e,n,i,o,c,m,v,T){t.cancelPendingCommit=null;do mo();while(Re!==0);if((Zt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(c=e.lanes|e.childLanes,c|=Vr,dr(t,n,c,m,v,T),t===ne&&(Ot=ne=null,kt=0),Fi=e,_a=t,ha=n,Yc=c,Gc=o,T0=i,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,C1(F,function(){return B0(),null})):(t.callbackNode=null,t.callbackPriority=0),i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=D.T,D.T=null,o=N.p,N.p=2,m=Zt,Zt|=4;try{x1(t,e,n)}finally{Zt=m,N.p=o,D.T=i}}Re=1,V0(),_0(),k0()}}function V0(){if(Re===1){Re=0;var t=_a,e=Fi,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var i=N.p;N.p=2;var o=Zt;Zt|=4;try{m0(e,t);var c=iu,m=bd(t.containerInfo),v=c.focusedElem,T=c.selectionRange;if(m!==v&&v&&v.ownerDocument&&vd(v.ownerDocument.documentElement,v)){if(T!==null&&Cr(v)){var R=T.start,K=T.end;if(K===void 0&&(K=R),"selectionStart"in v)v.selectionStart=R,v.selectionEnd=Math.min(K,v.value.length);else{var P=v.ownerDocument||document,_=P&&P.defaultView||window;if(_.getSelection){var U=_.getSelection(),it=v.textContent.length,vt=Math.min(T.start,it),It=T.end===void 0?vt:Math.min(T.end,it);!U.extend&&vt>It&&(m=It,It=vt,vt=m);var E=xd(v,vt),w=xd(v,It);if(E&&w&&(U.rangeCount!==1||U.anchorNode!==E.node||U.anchorOffset!==E.offset||U.focusNode!==w.node||U.focusOffset!==w.offset)){var z=P.createRange();z.setStart(E.node,E.offset),U.removeAllRanges(),vt>It?(U.addRange(z),U.extend(w.node,w.offset)):(z.setEnd(w.node,w.offset),U.addRange(z))}}}}for(P=[],U=v;U=U.parentNode;)U.nodeType===1&&P.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<P.length;v++){var $=P[v];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}Mo=!!au,iu=au=null}finally{Zt=o,N.p=i,D.T=n}}t.current=e,Re=2}}function _0(){if(Re===2){Re=0;var t=_a,e=Fi,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var i=N.p;N.p=2;var o=Zt;Zt|=4;try{c0(t,e.alternate,e)}finally{Zt=o,N.p=i,D.T=n}}Re=3}}function k0(){if(Re===4||Re===3){Re=0,ps();var t=_a,e=Fi,n=ha,i=T0;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Re=5:(Re=0,Fi=_a=null,L0(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(Va=null),mt(n),e=e.stateNode,de&&typeof de.onCommitFiberRoot=="function")try{de.onCommitFiberRoot(ce,e,void 0,(e.current.flags&128)===128)}catch{}if(i!==null){e=D.T,o=N.p,N.p=2,D.T=null;try{for(var c=t.onRecoverableError,m=0;m<i.length;m++){var v=i[m];c(v.value,{componentStack:v.stack})}}finally{D.T=e,N.p=o}}(ha&3)!==0&&mo(),Zn(t),o=t.pendingLanes,(n&261930)!==0&&(o&42)!==0?t===Xc?Qs++:(Qs=0,Xc=t):Qs=0,$s(0)}}function L0(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Es(e)))}function mo(){return V0(),_0(),k0(),B0()}function B0(){if(Re!==5)return!1;var t=_a,e=Yc;Yc=0;var n=mt(ha),i=D.T,o=N.p;try{N.p=32>n?32:n,D.T=null,n=Gc,Gc=null;var c=_a,m=ha;if(Re=0,Fi=_a=null,ha=0,(Zt&6)!==0)throw Error(r(331));var v=Zt;if(Zt|=4,v0(c.current),g0(c,c.current,m,n),Zt=v,$s(0,!1),de&&typeof de.onPostCommitFiberRoot=="function")try{de.onPostCommitFiberRoot(ce,c)}catch{}return!0}finally{N.p=o,D.T=i,L0(t,e)}}function U0(t,e,n){e=Tn(n,e),e=Tc(t.stateNode,e,2),t=Ea(t,e,2),t!==null&&(Ja(t,2),Zn(t))}function Pt(t,e,n){if(t.tag===3)U0(t,t,n);else for(;e!==null;){if(e.tag===3){U0(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Va===null||!Va.has(i))){t=Tn(n,t),n=Hh(2),i=Ea(e,n,2),i!==null&&(qh(n,i,e,t),Ja(i,2),Zn(i));break}}e=e.return}}function Qc(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new S1;var o=new Set;i.set(e,o)}else o=i.get(e),o===void 0&&(o=new Set,i.set(e,o));o.has(n)||(Uc=!0,o.add(n),t=M1.bind(null,t,e,n),e.then(t,t))}function M1(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,ne===t&&(kt&n)===n&&(pe===4||pe===3&&(kt&62914560)===kt&&300>be()-oo?(Zt&2)===0&&Ji(t,0):Hc|=n,Pi===kt&&(Pi=0)),Zn(t)}function H0(t,e){e===0&&(e=bl()),t=ei(t,e),t!==null&&(Ja(t,e),Zn(t))}function N1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),H0(t,n)}function E1(t,e){var n=0;switch(t.tag){case 31:case 13:var i=t.stateNode,o=t.memoizedState;o!==null&&(n=o.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(e),H0(t,n)}function C1(t,e){return xn(t,e)}var po=null,Ii=null,$c=!1,go=!1,Pc=!1,La=0;function Zn(t){t!==Ii&&t.next===null&&(Ii===null?po=Ii=t:Ii=Ii.next=t),go=!0,$c||($c=!0,z1())}function $s(t,e){if(!Pc&&go){Pc=!0;do for(var n=!1,i=po;i!==null;){if(t!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var m=i.suspendedLanes,v=i.pingedLanes;c=(1<<31-ue(42|t)+1)-1,c&=o&~(m&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,X0(i,c))}else c=kt,c=Fa(i,i===ne?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||va(i,c)||(n=!0,X0(i,c));i=i.next}while(n);Pc=!1}}function D1(){q0()}function q0(){go=$c=!1;var t=0;La!==0&&q1()&&(t=La);for(var e=be(),n=null,i=po;i!==null;){var o=i.next,c=Y0(i,e);c===0?(i.next=null,n===null?po=o:n.next=o,o===null&&(Ii=n)):(n=i,(t!==0||(c&3)!==0)&&(go=!0)),i=o}Re!==0&&Re!==5||$s(t),La!==0&&(La=0)}function Y0(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,o=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var m=31-ue(c),v=1<<m,T=o[m];T===-1?((v&n)===0||(v&i)!==0)&&(o[m]=fr(v,e)):T<=e&&(t.expiredLanes|=v),c&=~v}if(e=ne,n=kt,n=Fa(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&($t===2||$t===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&Si(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||va(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&Si(i),mt(n)){case 2:case 8:n=Ke;break;case 32:n=F;break;case 268435456:n=rt;break;default:n=F}return i=G0.bind(null,t),n=xn(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&Si(i),t.callbackPriority=2,t.callbackNode=null,2}function G0(t,e){if(Re!==0&&Re!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(mo()&&t.callbackNode!==n)return null;var i=kt;return i=Fa(t,t===ne?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(A0(t,i,e),Y0(t,be()),t.callbackNode!=null&&t.callbackNode===n?G0.bind(null,t):null)}function X0(t,e){if(mo())return null;A0(t,e,!0)}function z1(){G1(function(){(Zt&6)!==0?xn(Pa,D1):q0()})}function Fc(){if(La===0){var t=Bi;t===0&&(t=ya,ya<<=1,(ya&261888)===0&&(ya=256)),La=t}return La}function K0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:jl(""+t)}function Z0(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function R1(t,e,n,i,o){if(e==="submit"&&n&&n.stateNode===o){var c=K0((o[Rt]||null).action),m=i.submitter;m&&(e=(e=m[Rt]||null)?K0(e.formAction):m.getAttribute("formAction"),e!==null&&(c=e,m=null));var v=new Nl("action","action",null,i,o);t.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(La!==0){var T=m?Z0(o,m):new FormData(o);gc(n,{pending:!0,data:T,method:o.method,action:c},null,T)}}else typeof c=="function"&&(v.preventDefault(),T=m?Z0(o,m):new FormData(o),gc(n,{pending:!0,data:T,method:o.method,action:c},c,T))},currentTarget:o}]})}}for(var Jc=0;Jc<Or.length;Jc++){var Wc=Or[Jc],O1=Wc.toLowerCase(),V1=Wc[0].toUpperCase()+Wc.slice(1);On(O1,"on"+V1)}On(jd,"onAnimationEnd"),On(Ad,"onAnimationIteration"),On(wd,"onAnimationStart"),On("dblclick","onDoubleClick"),On("focusin","onFocus"),On("focusout","onBlur"),On(Fx,"onTransitionRun"),On(Jx,"onTransitionStart"),On(Wx,"onTransitionCancel"),On(Md,"onTransitionEnd"),Te("onMouseEnter",["mouseout","mouseover"]),Te("onMouseLeave",["mouseout","mouseover"]),Te("onPointerEnter",["pointerout","pointerover"]),Te("onPointerLeave",["pointerout","pointerover"]),Se("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Se("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Se("onBeforeInput",["compositionend","keypress","textInput","paste"]),Se("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Se("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Se("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ps="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(" "),_1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ps));function Q0(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],o=i.event;i=i.listeners;t:{var c=void 0;if(e)for(var m=i.length-1;0<=m;m--){var v=i[m],T=v.instance,R=v.currentTarget;if(v=v.listener,T!==c&&o.isPropagationStopped())break t;c=v,o.currentTarget=R;try{c(o)}catch(K){Dl(K)}o.currentTarget=null,c=T}else for(m=0;m<i.length;m++){if(v=i[m],T=v.instance,R=v.currentTarget,v=v.listener,T!==c&&o.isPropagationStopped())break t;c=v,o.currentTarget=R;try{c(o)}catch(K){Dl(K)}o.currentTarget=null,c=T}}}}function Vt(t,e){var n=e[Nt];n===void 0&&(n=e[Nt]=new Set);var i=t+"__bubble";n.has(i)||($0(e,t,2,!1),n.add(i))}function Ic(t,e,n){var i=0;e&&(i|=4),$0(n,t,i,e)}var yo="_reactListening"+Math.random().toString(36).slice(2);function tu(t){if(!t[yo]){t[yo]=!0,Ze.forEach(function(n){n!=="selectionchange"&&(_1.has(n)||Ic(n,!1,t),Ic(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[yo]||(e[yo]=!0,Ic("selectionchange",!1,e))}}function $0(t,e,n,i){switch(jm(e)){case 2:var o=cv;break;case 8:o=uv;break;default:o=pu}n=o.bind(null,e,n,t),o=void 0,!br||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),i?o!==void 0?t.addEventListener(e,n,{capture:!0,passive:o}):t.addEventListener(e,n,!0):o!==void 0?t.addEventListener(e,n,{passive:o}):t.addEventListener(e,n,!1)}function eu(t,e,n,i,o){var c=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var v=i.stateNode.containerInfo;if(v===o)break;if(m===4)for(m=i.return;m!==null;){var T=m.tag;if((T===3||T===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;v!==null;){if(m=Ut(v),m===null)return;if(T=m.tag,T===5||T===6||T===26||T===27){i=c=m;continue t}v=v.parentNode}}i=i.return}If(function(){var R=c,K=xr(n),P=[];t:{var _=Nd.get(t);if(_!==void 0){var U=Nl,it=t;switch(t){case"keypress":if(wl(n)===0)break t;case"keydown":case"keyup":U=Ex;break;case"focusin":it="focus",U=Ar;break;case"focusout":it="blur",U=Ar;break;case"beforeblur":case"afterblur":U=Ar;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=nd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=gx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=zx;break;case jd:case Ad:case wd:U=vx;break;case Md:U=Ox;break;case"scroll":case"scrollend":U=mx;break;case"wheel":U=_x;break;case"copy":case"cut":case"paste":U=Sx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=id;break;case"toggle":case"beforetoggle":U=Lx}var vt=(e&4)!==0,It=!vt&&(t==="scroll"||t==="scrollend"),E=vt?_!==null?_+"Capture":null:_;vt=[];for(var w=R,z;w!==null;){var $=w;if(z=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||z===null||E===null||($=ys(w,E),$!=null&&vt.push(Fs(w,$,z))),It)break;w=w.return}0<vt.length&&(_=new U(_,it,null,n,K),P.push({event:_,listeners:vt}))}}if((e&7)===0){t:{if(_=t==="mouseover"||t==="pointerover",U=t==="mouseout"||t==="pointerout",_&&n!==yr&&(it=n.relatedTarget||n.fromElement)&&(Ut(it)||it[te]))break t;if((U||_)&&(_=K.window===K?K:(_=K.ownerDocument)?_.defaultView||_.parentWindow:window,U?(it=n.relatedTarget||n.toElement,U=R,it=it?Ut(it):null,it!==null&&(It=h(it),vt=it.tag,it!==It||vt!==5&&vt!==27&&vt!==6)&&(it=null)):(U=null,it=R),U!==it)){if(vt=nd,$="onMouseLeave",E="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(vt=id,$="onPointerLeave",E="onPointerEnter",w="pointer"),It=U==null?_:le(U),z=it==null?_:le(it),_=new vt($,w+"leave",U,n,K),_.target=It,_.relatedTarget=z,$=null,Ut(K)===R&&(vt=new vt(E,w+"enter",it,n,K),vt.target=z,vt.relatedTarget=It,$=vt),It=$,U&&it)e:{for(vt=k1,E=U,w=it,z=0,$=E;$;$=vt($))z++;$=0;for(var pt=w;pt;pt=vt(pt))$++;for(;0<z-$;)E=vt(E),z--;for(;0<$-z;)w=vt(w),$--;for(;z--;){if(E===w||w!==null&&E===w.alternate){vt=E;break e}E=vt(E),w=vt(w)}vt=null}else vt=null;U!==null&&P0(P,_,U,vt,!1),it!==null&&It!==null&&P0(P,It,it,vt,!0)}}t:{if(_=R?le(R):window,U=_.nodeName&&_.nodeName.toLowerCase(),U==="select"||U==="input"&&_.type==="file")var Yt=dd;else if(ud(_))if(hd)Yt=Qx;else{Yt=Kx;var ct=Xx}else U=_.nodeName,!U||U.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?R&&gr(R.elementType)&&(Yt=dd):Yt=Zx;if(Yt&&(Yt=Yt(t,R))){fd(P,Yt,n,K);break t}ct&&ct(t,_,R),t==="focusout"&&R&&_.type==="number"&&R.memoizedProps.value!=null&&pr(_,"number",_.value)}switch(ct=R?le(R):window,t){case"focusin":(ud(ct)||ct.contentEditable==="true")&&(Di=ct,Dr=R,ws=null);break;case"focusout":ws=Dr=Di=null;break;case"mousedown":zr=!0;break;case"contextmenu":case"mouseup":case"dragend":zr=!1,Sd(P,n,K);break;case"selectionchange":if(Px)break;case"keydown":case"keyup":Sd(P,n,K)}var Ct;if(Mr)t:{switch(t){case"compositionstart":var Lt="onCompositionStart";break t;case"compositionend":Lt="onCompositionEnd";break t;case"compositionupdate":Lt="onCompositionUpdate";break t}Lt=void 0}else Ci?rd(t,n)&&(Lt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(Lt="onCompositionStart");Lt&&(sd&&n.locale!=="ko"&&(Ci||Lt!=="onCompositionStart"?Lt==="onCompositionEnd"&&Ci&&(Ct=td()):(Sa=K,Sr="value"in Sa?Sa.value:Sa.textContent,Ci=!0)),ct=xo(R,Lt),0<ct.length&&(Lt=new ad(Lt,t,null,n,K),P.push({event:Lt,listeners:ct}),Ct?Lt.data=Ct:(Ct=cd(n),Ct!==null&&(Lt.data=Ct)))),(Ct=Ux?Hx(t,n):qx(t,n))&&(Lt=xo(R,"onBeforeInput"),0<Lt.length&&(ct=new ad("onBeforeInput","beforeinput",null,n,K),P.push({event:ct,listeners:Lt}),ct.data=Ct)),R1(P,t,R,n,K)}Q0(P,e)})}function Fs(t,e,n){return{instance:t,listener:e,currentTarget:n}}function xo(t,e){for(var n=e+"Capture",i=[];t!==null;){var o=t,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=ys(t,n),o!=null&&i.unshift(Fs(t,o,c)),o=ys(t,e),o!=null&&i.push(Fs(t,o,c))),t.tag===3)return i;t=t.return}return[]}function k1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function P0(t,e,n,i,o){for(var c=e._reactName,m=[];n!==null&&n!==i;){var v=n,T=v.alternate,R=v.stateNode;if(v=v.tag,T!==null&&T===i)break;v!==5&&v!==26&&v!==27||R===null||(T=R,o?(R=ys(n,c),R!=null&&m.unshift(Fs(n,R,T))):o||(R=ys(n,c),R!=null&&m.push(Fs(n,R,T)))),n=n.return}m.length!==0&&t.push({event:e,listeners:m})}var L1=/\r\n?/g,B1=/\u0000|\uFFFD/g;function F0(t){return(typeof t=="string"?t:""+t).replace(L1,`
|
|
9
|
+
`).replace(B1,"")}function J0(t,e){return e=F0(e),F0(t)===e}function Wt(t,e,n,i,o,c){switch(n){case"children":typeof i=="string"?e==="body"||e==="textarea"&&i===""||Mi(t,i):(typeof i=="number"||typeof i=="bigint")&&e!=="body"&&Mi(t,""+i);break;case"className":Yn(t,"class",i);break;case"tabIndex":Yn(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Yn(t,n,i);break;case"style":Jf(t,i,c);break;case"data":if(e!=="object"){Yn(t,"data",i);break}case"src":case"href":if(i===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=jl(""+i),t.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(e!=="input"&&Wt(t,e,"name",o.name,o,null),Wt(t,e,"formEncType",o.formEncType,o,null),Wt(t,e,"formMethod",o.formMethod,o,null),Wt(t,e,"formTarget",o.formTarget,o,null)):(Wt(t,e,"encType",o.encType,o,null),Wt(t,e,"method",o.method,o,null),Wt(t,e,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=jl(""+i),t.setAttribute(n,i);break;case"onClick":i!=null&&(t.onclick=Wn);break;case"onScroll":i!=null&&Vt("scroll",t);break;case"onScrollEnd":i!=null&&Vt("scrollend",t);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":t.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){t.removeAttribute("xlink:href");break}n=jl(""+i),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""+i):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":i===!0?t.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,i):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(n,i):t.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(n):t.setAttribute(n,i);break;case"popover":Vt("beforetoggle",t),Vt("toggle",t),rn(t,"popover",i);break;case"xlinkActuate":vn(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":vn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":vn(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":vn(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":vn(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":vn(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":vn(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":vn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":vn(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":rn(t,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=dx.get(n)||n,rn(t,n,i))}}function nu(t,e,n,i,o,c){switch(n){case"style":Jf(t,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"children":typeof i=="string"?Mi(t,i):(typeof i=="number"||typeof i=="bigint")&&Mi(t,""+i);break;case"onScroll":i!=null&&Vt("scroll",t);break;case"onScrollEnd":i!=null&&Vt("scrollend",t);break;case"onClick":i!=null&&(t.onclick=Wn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!on.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),e=n.slice(2,o?n.length-7:void 0),c=t[Rt]||null,c=c!=null?c[n]:null,typeof c=="function"&&t.removeEventListener(e,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,i,o);break t}n in t?t[n]=i:i===!0?t.setAttribute(n,""):rn(t,n,i)}}}function Ue(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Vt("error",t),Vt("load",t);var i=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var m=n[c];if(m!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Wt(t,e,c,m,n,null)}}o&&Wt(t,e,"srcSet",n.srcSet,n,null),i&&Wt(t,e,"src",n.src,n,null);return;case"input":Vt("invalid",t);var v=c=m=o=null,T=null,R=null;for(i in n)if(n.hasOwnProperty(i)){var K=n[i];if(K!=null)switch(i){case"name":o=K;break;case"type":m=K;break;case"checked":T=K;break;case"defaultChecked":R=K;break;case"value":c=K;break;case"defaultValue":v=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(r(137,e));break;default:Wt(t,e,i,K,n,null)}}Qf(t,c,v,T,R,m,o,!1);return;case"select":Vt("invalid",t),i=m=c=null;for(o in n)if(n.hasOwnProperty(o)&&(v=n[o],v!=null))switch(o){case"value":c=v;break;case"defaultValue":m=v;break;case"multiple":i=v;default:Wt(t,e,o,v,n,null)}e=c,n=m,t.multiple=!!i,e!=null?wi(t,!!i,e,!1):n!=null&&wi(t,!!i,n,!0);return;case"textarea":Vt("invalid",t),c=o=i=null;for(m in n)if(n.hasOwnProperty(m)&&(v=n[m],v!=null))switch(m){case"value":i=v;break;case"defaultValue":o=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:Wt(t,e,m,v,n,null)}Pf(t,i,o,c);return;case"option":for(T in n)n.hasOwnProperty(T)&&(i=n[T],i!=null)&&(T==="selected"?t.selected=i&&typeof i!="function"&&typeof i!="symbol":Wt(t,e,T,i,n,null));return;case"dialog":Vt("beforetoggle",t),Vt("toggle",t),Vt("cancel",t),Vt("close",t);break;case"iframe":case"object":Vt("load",t);break;case"video":case"audio":for(i=0;i<Ps.length;i++)Vt(Ps[i],t);break;case"image":Vt("error",t),Vt("load",t);break;case"details":Vt("toggle",t);break;case"embed":case"source":case"link":Vt("error",t),Vt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(R in n)if(n.hasOwnProperty(R)&&(i=n[R],i!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Wt(t,e,R,i,n,null)}return;default:if(gr(e)){for(K in n)n.hasOwnProperty(K)&&(i=n[K],i!==void 0&&nu(t,e,K,i,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(i=n[v],i!=null&&Wt(t,e,v,i,n,null))}function U1(t,e,n,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,m=null,v=null,T=null,R=null,K=null;for(U in n){var P=n[U];if(n.hasOwnProperty(U)&&P!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":T=P;default:i.hasOwnProperty(U)||Wt(t,e,U,null,i,P)}}for(var _ in i){var U=i[_];if(P=n[_],i.hasOwnProperty(_)&&(U!=null||P!=null))switch(_){case"type":c=U;break;case"name":o=U;break;case"checked":R=U;break;case"defaultChecked":K=U;break;case"value":m=U;break;case"defaultValue":v=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,e));break;default:U!==P&&Wt(t,e,_,U,i,P)}}mr(t,m,v,T,R,K,c,o);return;case"select":U=m=v=_=null;for(c in n)if(T=n[c],n.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":U=T;default:i.hasOwnProperty(c)||Wt(t,e,c,null,i,T)}for(o in i)if(c=i[o],T=n[o],i.hasOwnProperty(o)&&(c!=null||T!=null))switch(o){case"value":_=c;break;case"defaultValue":v=c;break;case"multiple":m=c;default:c!==T&&Wt(t,e,o,c,i,T)}e=v,n=m,i=U,_!=null?wi(t,!!n,_,!1):!!i!=!!n&&(e!=null?wi(t,!!n,e,!0):wi(t,!!n,n?[]:"",!1));return;case"textarea":U=_=null;for(v in n)if(o=n[v],n.hasOwnProperty(v)&&o!=null&&!i.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Wt(t,e,v,null,i,o)}for(m in i)if(o=i[m],c=n[m],i.hasOwnProperty(m)&&(o!=null||c!=null))switch(m){case"value":_=o;break;case"defaultValue":U=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==c&&Wt(t,e,m,o,i,c)}$f(t,_,U);return;case"option":for(var it in n)_=n[it],n.hasOwnProperty(it)&&_!=null&&!i.hasOwnProperty(it)&&(it==="selected"?t.selected=!1:Wt(t,e,it,null,i,_));for(T in i)_=i[T],U=n[T],i.hasOwnProperty(T)&&_!==U&&(_!=null||U!=null)&&(T==="selected"?t.selected=_&&typeof _!="function"&&typeof _!="symbol":Wt(t,e,T,_,i,U));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var vt in n)_=n[vt],n.hasOwnProperty(vt)&&_!=null&&!i.hasOwnProperty(vt)&&Wt(t,e,vt,null,i,_);for(R in i)if(_=i[R],U=n[R],i.hasOwnProperty(R)&&_!==U&&(_!=null||U!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,e));break;default:Wt(t,e,R,_,i,U)}return;default:if(gr(e)){for(var It in n)_=n[It],n.hasOwnProperty(It)&&_!==void 0&&!i.hasOwnProperty(It)&&nu(t,e,It,void 0,i,_);for(K in i)_=i[K],U=n[K],!i.hasOwnProperty(K)||_===U||_===void 0&&U===void 0||nu(t,e,K,_,i,U);return}}for(var E in n)_=n[E],n.hasOwnProperty(E)&&_!=null&&!i.hasOwnProperty(E)&&Wt(t,e,E,null,i,_);for(P in i)_=i[P],U=n[P],!i.hasOwnProperty(P)||_===U||_==null&&U==null||Wt(t,e,P,_,i,U)}function W0(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function H1(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var o=n[i],c=o.transferSize,m=o.initiatorType,v=o.duration;if(c&&v&&W0(m)){for(m=0,v=o.responseEnd,i+=1;i<n.length;i++){var T=n[i],R=T.startTime;if(R>v)break;var K=T.transferSize,P=T.initiatorType;K&&W0(P)&&(T=T.responseEnd,m+=K*(T<v?1:(v-R)/(T-R)))}if(--i,e+=8*(c+m)/(o.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var au=null,iu=null;function vo(t){return t.nodeType===9?t:t.ownerDocument}function I0(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function tm(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function su(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var lu=null;function q1(){var t=window.event;return t&&t.type==="popstate"?t===lu?!1:(lu=t,!0):(lu=null,!1)}var em=typeof setTimeout=="function"?setTimeout:void 0,Y1=typeof clearTimeout=="function"?clearTimeout:void 0,nm=typeof Promise=="function"?Promise:void 0,G1=typeof queueMicrotask=="function"?queueMicrotask:typeof nm<"u"?function(t){return nm.resolve(null).then(t).catch(X1)}:em;function X1(t){setTimeout(function(){throw t})}function Ba(t){return t==="head"}function am(t,e){var n=e,i=0;do{var o=n.nextSibling;if(t.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(i===0){t.removeChild(o),as(e);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Js(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Js(n);for(var c=n.firstChild;c;){var m=c.nextSibling,v=c.nodeName;c[ee]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=m}}else n==="body"&&Js(t.ownerDocument.body);n=o}while(n);as(e)}function im(t,e){var n=t;t=0;do{var i=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=i}while(n)}function ou(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ou(n),ze(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function K1(t,e,n,i){for(;t.nodeType===1;){var o=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[ee])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Nn(t.nextSibling),t===null)break}return null}function Z1(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Nn(t.nextSibling),t===null))return null;return t}function sm(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Nn(t.nextSibling),t===null))return null;return t}function ru(t){return t.data==="$?"||t.data==="$~"}function cu(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Q1(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var i=function(){e(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),t._reactRetry=i}}function Nn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var uu=null;function lm(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Nn(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function om(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function rm(t,e,n){switch(e=vo(n),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Js(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ze(t)}var En=new Map,cm=new Set;function bo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ma=N.d;N.d={f:$1,r:P1,D:F1,C:J1,L:W1,m:I1,X:ev,S:tv,M:nv};function $1(){var t=ma.f(),e=uo();return t||e}function P1(t){var e=_t(t);e!==null&&e.tag===5&&e.type==="form"?Mh(e):ma.r(t)}var ts=typeof document>"u"?null:document;function um(t,e,n){var i=ts;if(i&&typeof e=="string"&&e){var o=bn(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),cm.has(o)||(cm.add(o),t={rel:t,crossOrigin:n,href:e},i.querySelector(o)===null&&(e=i.createElement("link"),Ue(e,"link",t),At(e),i.head.appendChild(e)))}}function F1(t){ma.D(t),um("dns-prefetch",t,null)}function J1(t,e){ma.C(t,e),um("preconnect",t,e)}function W1(t,e,n){ma.L(t,e,n);var i=ts;if(i&&t&&e){var o='link[rel="preload"][as="'+bn(e)+'"]';e==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+bn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+bn(n.imageSizes)+'"]')):o+='[href="'+bn(t)+'"]';var c=o;switch(e){case"style":c=es(t);break;case"script":c=ns(t)}En.has(c)||(t=b({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),En.set(c,t),i.querySelector(o)!==null||e==="style"&&i.querySelector(Ws(c))||e==="script"&&i.querySelector(Is(c))||(e=i.createElement("link"),Ue(e,"link",t),At(e),i.head.appendChild(e)))}}function I1(t,e){ma.m(t,e);var n=ts;if(n&&t){var i=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+bn(i)+'"][href="'+bn(t)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=ns(t)}if(!En.has(c)&&(t=b({rel:"modulepreload",href:t},e),En.set(c,t),n.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Is(c)))return}i=n.createElement("link"),Ue(i,"link",t),At(i),n.head.appendChild(i)}}}function tv(t,e,n){ma.S(t,e,n);var i=ts;if(i&&t){var o=xt(i).hoistableStyles,c=es(t);e=e||"default";var m=o.get(c);if(!m){var v={loading:0,preload:null};if(m=i.querySelector(Ws(c)))v.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},n),(n=En.get(c))&&fu(t,n);var T=m=i.createElement("link");At(T),Ue(T,"link",t),T._p=new Promise(function(R,K){T.onload=R,T.onerror=K}),T.addEventListener("load",function(){v.loading|=1}),T.addEventListener("error",function(){v.loading|=2}),v.loading|=4,So(m,e,i)}m={type:"stylesheet",instance:m,count:1,state:v},o.set(c,m)}}}function ev(t,e){ma.X(t,e);var n=ts;if(n&&t){var i=xt(n).hoistableScripts,o=ns(t),c=i.get(o);c||(c=n.querySelector(Is(o)),c||(t=b({src:t,async:!0},e),(e=En.get(o))&&du(t,e),c=n.createElement("script"),At(c),Ue(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function nv(t,e){ma.M(t,e);var n=ts;if(n&&t){var i=xt(n).hoistableScripts,o=ns(t),c=i.get(o);c||(c=n.querySelector(Is(o)),c||(t=b({src:t,async:!0,type:"module"},e),(e=En.get(o))&&du(t,e),c=n.createElement("script"),At(c),Ue(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function fm(t,e,n,i){var o=(o=lt.current)?bo(o):null;if(!o)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=es(n.href),n=xt(o).hoistableStyles,i=n.get(e),i||(i={type:"style",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=es(n.href);var c=xt(o).hoistableStyles,m=c.get(t);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,m),(c=o.querySelector(Ws(t)))&&!c._p&&(m.instance=c,m.state.loading=5),En.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},En.set(t,n),c||av(o,t,n,m.state))),e&&i===null)throw Error(r(528,""));return m}if(e&&i!==null)throw Error(r(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ns(n),n=xt(o).hoistableScripts,i=n.get(e),i||(i={type:"script",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function es(t){return'href="'+bn(t)+'"'}function Ws(t){return'link[rel="stylesheet"]['+t+"]"}function dm(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function av(t,e,n,i){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?i.loading=1:(e=t.createElement("link"),i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2}),Ue(e,"link",n),At(e),t.head.appendChild(e))}function ns(t){return'[src="'+bn(t)+'"]'}function Is(t){return"script[async]"+t}function hm(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+bn(n.href)+'"]');if(i)return e.instance=i,At(i),i;var o=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),At(i),Ue(i,"style",o),So(i,n.precedence,t),e.instance=i;case"stylesheet":o=es(n.href);var c=t.querySelector(Ws(o));if(c)return e.state.loading|=4,e.instance=c,At(c),c;i=dm(n),(o=En.get(o))&&fu(i,o),c=(t.ownerDocument||t).createElement("link"),At(c);var m=c;return m._p=new Promise(function(v,T){m.onload=v,m.onerror=T}),Ue(c,"link",i),e.state.loading|=4,So(c,n.precedence,t),e.instance=c;case"script":return c=ns(n.src),(o=t.querySelector(Is(c)))?(e.instance=o,At(o),o):(i=n,(o=En.get(c))&&(i=b({},n),du(i,o)),t=t.ownerDocument||t,o=t.createElement("script"),At(o),Ue(o,"link",i),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,So(i,n.precedence,t));return e.instance}function So(t,e,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,m=0;m<i.length;m++){var v=i[m];if(v.dataset.precedence===e)c=v;else if(c!==o)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function fu(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function du(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var To=null;function mm(t,e,n){if(To===null){var i=new Map,o=To=new Map;o.set(n,i)}else o=To,i=o.get(n),i||(i=new Map,o.set(n,i));if(i.has(t))return i;for(i.set(t,null),n=n.getElementsByTagName(t),o=0;o<n.length;o++){var c=n[o];if(!(c[ee]||c[Tt]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(e)||"";m=t+m;var v=i.get(m);v?v.push(c):i.set(m,[c])}}return i}function pm(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function iv(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function gm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function sv(t,e,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=es(i.href),c=e.querySelector(Ws(o));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=jo.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,At(c);return}c=e.ownerDocument||e,i=dm(i),(o=En.get(o))&&fu(i,o),c=c.createElement("link"),At(c);var m=c;m._p=new Promise(function(v,T){m.onload=v,m.onerror=T}),Ue(c,"link",i),n.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=jo.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var hu=0;function lv(t,e){return t.stylesheets&&t.count===0&&wo(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var i=setTimeout(function(){if(t.stylesheets&&wo(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&hu===0&&(hu=62500*H1());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&wo(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>hu?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function jo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ao=null;function wo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ao=new Map,e.forEach(ov,t),Ao=null,jo.call(t))}function ov(t,e){if(!(e.state.loading&4)){var n=Ao.get(t);if(n)var i=n.get(null);else{n=new Map,Ao.set(t,n);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var m=o[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),i=m)}i&&n.set(null,i)}o=e.instance,m=o.getAttribute("data-precedence"),c=n.get(m)||i,c===i&&n.set(null,o),n.set(m,o),this.count++,i=jo.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var tl={$$typeof:C,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function rv(t,e,n,i,o,c,m,v,T){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ai(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ai(0),this.hiddenUpdates=Ai(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function ym(t,e,n,i,o,c,m,v,T,R,K,P){return t=new rv(t,e,n,m,T,R,K,P,v),e=1,c===!0&&(e|=24),c=un(3,null,null,e),t.current=c,c.stateNode=t,e=Zr(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:i,isDehydrated:n,cache:e},Fr(c),t}function xm(t){return t?(t=Oi,t):Oi}function vm(t,e,n,i,o,c){o=xm(o),i.context===null?i.context=o:i.pendingContext=o,i=Na(e),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=Ea(t,i,e),n!==null&&(sn(n,t,e),Rs(n,t,e))}function bm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function mu(t,e){bm(t,e),(t=t.alternate)&&bm(t,e)}function Sm(t){if(t.tag===13||t.tag===31){var e=ei(t,67108864);e!==null&&sn(e,t,67108864),mu(t,67108864)}}function Tm(t){if(t.tag===13||t.tag===31){var e=pn();e=ut(e);var n=ei(t,e);n!==null&&sn(n,t,e),mu(t,e)}}var Mo=!0;function cv(t,e,n,i){var o=D.T;D.T=null;var c=N.p;try{N.p=2,pu(t,e,n,i)}finally{N.p=c,D.T=o}}function uv(t,e,n,i){var o=D.T;D.T=null;var c=N.p;try{N.p=8,pu(t,e,n,i)}finally{N.p=c,D.T=o}}function pu(t,e,n,i){if(Mo){var o=gu(i);if(o===null)eu(t,e,i,No,n),Am(t,i);else if(dv(o,t,e,n,i))i.stopPropagation();else if(Am(t,i),e&4&&-1<fv.indexOf(t)){for(;o!==null;){var c=_t(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=De(c.pendingLanes);if(m!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;m;){var T=1<<31-ue(m);v.entanglements[1]|=T,m&=~T}Zn(c),(Zt&6)===0&&(ro=be()+500,$s(0))}}break;case 31:case 13:v=ei(c,2),v!==null&&sn(v,c,2),uo(),mu(c,2)}if(c=gu(i),c===null&&eu(t,e,i,No,n),c===o)break;o=c}o!==null&&i.stopPropagation()}else eu(t,e,i,null,n)}}function gu(t){return t=xr(t),yu(t)}var No=null;function yu(t){if(No=null,t=Ut(t),t!==null){var e=h(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=d(e),t!==null)return t;t=null}else if(n===31){if(t=p(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return No=t,null}function jm(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ti()){case Pa:return 2;case Ke:return 8;case F:case ht:return 32;case rt:return 268435456;default:return 32}default:return 32}}var xu=!1,Ua=null,Ha=null,qa=null,el=new Map,nl=new Map,Ya=[],fv="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 Am(t,e){switch(t){case"focusin":case"focusout":Ua=null;break;case"dragenter":case"dragleave":Ha=null;break;case"mouseover":case"mouseout":qa=null;break;case"pointerover":case"pointerout":el.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":nl.delete(e.pointerId)}}function al(t,e,n,i,o,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},e!==null&&(e=_t(e),e!==null&&Sm(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function dv(t,e,n,i,o){switch(e){case"focusin":return Ua=al(Ua,t,e,n,i,o),!0;case"dragenter":return Ha=al(Ha,t,e,n,i,o),!0;case"mouseover":return qa=al(qa,t,e,n,i,o),!0;case"pointerover":var c=o.pointerId;return el.set(c,al(el.get(c)||null,t,e,n,i,o)),!0;case"gotpointercapture":return c=o.pointerId,nl.set(c,al(nl.get(c)||null,t,e,n,i,o)),!0}return!1}function wm(t){var e=Ut(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=d(n),e!==null){t.blockedOn=e,zt(t.priority,function(){Tm(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,zt(t.priority,function(){Tm(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Eo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=gu(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);yr=i,n.target.dispatchEvent(i),yr=null}else return e=_t(n),e!==null&&Sm(e),t.blockedOn=n,!1;e.shift()}return!0}function Mm(t,e,n){Eo(t)&&n.delete(e)}function hv(){xu=!1,Ua!==null&&Eo(Ua)&&(Ua=null),Ha!==null&&Eo(Ha)&&(Ha=null),qa!==null&&Eo(qa)&&(qa=null),el.forEach(Mm),nl.forEach(Mm)}function Co(t,e){t.blockedOn===e&&(t.blockedOn=null,xu||(xu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,hv)))}var Do=null;function Nm(t){Do!==t&&(Do=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Do===t&&(Do=null);for(var e=0;e<t.length;e+=3){var n=t[e],i=t[e+1],o=t[e+2];if(typeof i!="function"){if(yu(i||n)===null)continue;break}var c=_t(n);c!==null&&(t.splice(e,3),e-=3,gc(c,{pending:!0,data:o,method:n.method,action:i},i,o))}}))}function as(t){function e(T){return Co(T,t)}Ua!==null&&Co(Ua,t),Ha!==null&&Co(Ha,t),qa!==null&&Co(qa,t),el.forEach(e),nl.forEach(e);for(var n=0;n<Ya.length;n++){var i=Ya[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<Ya.length&&(n=Ya[0],n.blockedOn===null);)wm(n),n.blockedOn===null&&Ya.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var o=n[i],c=n[i+1],m=o[Rt]||null;if(typeof c=="function")m||Nm(n);else if(m){var v=null;if(c&&c.hasAttribute("formAction")){if(o=c,m=c[Rt]||null)v=m.formAction;else if(yu(o)!==null)continue}else v=m.action;typeof v=="function"?n[i+1]=v:(n.splice(i,3),i-=3),Nm(n)}}}function Em(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),i||setTimeout(n,20)}function n(){if(!i&&!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 i=!1,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function vu(t){this._internalRoot=t}zo.prototype.render=vu.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var n=e.current,i=pn();vm(n,i,t,e,null,null)},zo.prototype.unmount=vu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;vm(t.current,2,null,t,null,null),uo(),e[te]=null}};function zo(t){this._internalRoot=t}zo.prototype.unstable_scheduleHydration=function(t){if(t){var e=Mt();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Ya.length&&e!==0&&e<Ya[n].priority;n++);Ya.splice(n,0,t),n===0&&wm(t)}};var Cm=s.version;if(Cm!=="19.2.6")throw Error(r(527,Cm,"19.2.6"));N.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=g(e),t=t!==null?y(t):null,t=t===null?null:t.stateNode,t};var mv={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ro=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ro.isDisabled&&Ro.supportsFiber)try{ce=Ro.inject(mv),de=Ro}catch{}}return sl.createRoot=function(t,e){if(!u(t))throw Error(r(299));var n=!1,i="",o=kh,c=Lh,m=Bh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(m=e.onRecoverableError)),e=ym(t,1,!1,null,null,n,i,null,o,c,m,Em),t[te]=e.current,tu(t),new vu(e)},sl.hydrateRoot=function(t,e,n){if(!u(t))throw Error(r(299));var i=!1,o="",c=kh,m=Lh,v=Bh,T=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=ym(t,1,!0,e,n??null,i,o,T,c,m,v,Em),e.context=xm(null),n=e.current,i=pn(),i=ut(i),o=Na(i),o.callback=null,Ea(n,o,i),n=i,e.current.lanes=n,Ja(e,n),Zn(e),t[te]=e.current,tu(t),new zo(e)},sl.version="19.2.6",sl}var Um;function wv(){if(Um)return Su.exports;Um=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(s){console.error(s)}}return a(),Su.exports=Av(),Su.exports}var Mv=wv(),H=yf();const Bo=gv(H);const Nv=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ev=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,l,r)=>r?r.toUpperCase():l.toLowerCase()),Hm=a=>{const s=Ev(a);return s.charAt(0).toUpperCase()+s.slice(1)},gg=(...a)=>a.filter((s,l,r)=>!!s&&s.trim()!==""&&r.indexOf(s)===l).join(" ").trim(),Cv=a=>{for(const s in a)if(s.startsWith("aria-")||s==="role"||s==="title")return!0};var Dv={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 zv=H.forwardRef(({color:a="currentColor",size:s=24,strokeWidth:l=2,absoluteStrokeWidth:r,className:u="",children:h,iconNode:d,...p},x)=>H.createElement("svg",{ref:x,...Dv,width:s,height:s,stroke:a,strokeWidth:r?Number(l)*24/Number(s):l,className:gg("lucide",u),...!h&&!Cv(p)&&{"aria-hidden":"true"},...p},[...d.map(([g,y])=>H.createElement(g,y)),...Array.isArray(h)?h:[h]]));const Dt=(a,s)=>{const l=H.forwardRef(({className:r,...u},h)=>H.createElement(zv,{ref:h,iconNode:s,className:gg(`lucide-${Nv(Hm(a))}`,`lucide-${a}`,r),...u}));return l.displayName=Hm(a),l};const Rv=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],$o=Dt("activity",Rv);const Ov=[["path",{d:"M12 22V8",key:"qkxhtm"}],["path",{d:"M5 12H2a10 10 0 0 0 20 0h-3",key:"1hv3nh"}],["circle",{cx:"12",cy:"5",r:"3",key:"rqqgnr"}]],qm=Dt("anchor",Ov);const Vv=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],yg=Dt("book-open",Vv);const _v=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ym=Dt("check",_v);const kv=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],xg=Dt("chevron-left",kv);const Lv=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Gu=Dt("chevron-right",Lv);const Bv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Uv=Dt("circle-question-mark",Bv);const Hv=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],qv=Dt("code",Hv);const Yv=[["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"}]],rs=Dt("copy",Yv);const Gv=[["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"}]],Xv=Dt("cpu",Gv);const Kv=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Gm=Dt("database",Kv);const Zv=[["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"}]],vg=Dt("eye-off",Zv);const Qv=[["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"}]],bg=Dt("eye",Qv);const $v=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],Pv=Dt("file-down",$v);const Fv=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Jv=Dt("file-text",Fv);const Wv=[["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"}]],Xm=Dt("folder",Wv);const Iv=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Po=Dt("layers",Iv);const tb=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],Sg=Dt("map",tb);const eb=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],nb=Dt("maximize",eb);const ab=[["path",{d:"M5 12h14",key:"1ays0h"}]],ib=Dt("minus",ab);const sb=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],lb=Dt("network",sb);const ob=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 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.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Km=Dt("package",ob);const rb=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],cb=Dt("pin-off",rb);const ub=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],fb=Dt("pin",ub);const db=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],hb=Dt("play",db);const mb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],pb=Dt("plus",mb);const gb=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],Zm=Dt("refresh-ccw",gb);const yb=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],xb=Dt("refresh-cw",yb);const vb=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],Qm=Dt("rocket",vb);const bb=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Sb=Dt("search",bb);const Tb=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],jb=Dt("settings",Tb);const Ab=[["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:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],wb=Dt("shield-alert",Ab);const Mb=[["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"}]],$m=Dt("shield-check",Mb);const Nb=[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],Xu=Dt("sliders-vertical",Nb);const Eb=[["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"}]],Cb=Dt("trash",Eb);const Db=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xi=Dt("x",Db);const zb=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Pm=Dt("zap",zb);const Rb=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Ob=Dt("zoom-in",Rb);const Vb=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],_b=Dt("zoom-out",Vb),xf=H.createContext({});function vf(a){const s=H.useRef(null);return s.current===null&&(s.current=a()),s.current}const kb=typeof window<"u",Tg=kb?H.useLayoutEffect:H.useEffect,lr=H.createContext(null);function bf(a,s){a.indexOf(s)===-1&&a.push(s)}function Fo(a,s){const l=a.indexOf(s);l>-1&&a.splice(l,1)}const Fn=(a,s,l)=>l>s?s:l<a?a:l;let Sf=()=>{};const Ka={},jg=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a),Ag=a=>typeof a=="object"&&a!==null,wg=a=>/^0[^.\s]+$/u.test(a);function Mg(a){let s;return()=>(s===void 0&&(s=a()),s)}const Dn=a=>a,gl=(...a)=>a.reduce((s,l)=>r=>l(s(r))),dl=(a,s,l)=>{const r=s-a;return r?(l-a)/r:1};class Tf{constructor(){this.subscriptions=[]}add(s){return bf(this.subscriptions,s),()=>Fo(this.subscriptions,s)}notify(s,l,r){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](s,l,r);else for(let h=0;h<u;h++){const d=this.subscriptions[h];d&&d(s,l,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const gn=a=>a*1e3,Cn=a=>a/1e3,Ng=(a,s)=>s?a*(1e3/s):0,Eg=(a,s,l)=>(((1-3*l+3*s)*a+(3*l-6*s))*a+3*s)*a,Lb=1e-7,Bb=12;function Ub(a,s,l,r,u){let h,d,p=0;do d=s+(l-s)/2,h=Eg(d,r,u)-a,h>0?l=d:s=d;while(Math.abs(h)>Lb&&++p<Bb);return d}function yl(a,s,l,r){if(a===s&&l===r)return Dn;const u=h=>Ub(h,0,1,a,l);return h=>h===0||h===1?h:Eg(u(h),s,r)}const Cg=a=>s=>s<=.5?a(2*s)/2:(2-a(2*(1-s)))/2,Dg=a=>s=>1-a(1-s),zg=yl(.33,1.53,.69,.99),jf=Dg(zg),Rg=Cg(jf),Og=a=>a>=1?1:(a*=2)<1?.5*jf(a):.5*(2-Math.pow(2,-10*(a-1))),Af=a=>1-Math.sin(Math.acos(a)),Vg=Dg(Af),_g=Cg(Af),Hb=yl(.42,0,1,1),qb=yl(0,0,.58,1),kg=yl(.42,0,.58,1),Yb=a=>Array.isArray(a)&&typeof a[0]!="number",Lg=a=>Array.isArray(a)&&typeof a[0]=="number",Gb={linear:Dn,easeIn:Hb,easeInOut:kg,easeOut:qb,circIn:Af,circInOut:_g,circOut:Vg,backIn:jf,backInOut:Rg,backOut:zg,anticipate:Og},Xb=a=>typeof a=="string",Fm=a=>{if(Lg(a)){Sf(a.length===4);const[s,l,r,u]=a;return yl(s,l,r,u)}else if(Xb(a))return Gb[a];return a},Oo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Kb(a,s){let l=new Set,r=new Set,u=!1,h=!1;const d=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function x(y){d.has(y)&&(g.schedule(y),a()),y(p)}const g={schedule:(y,b=!1,S=!1)=>{const M=S&&u?l:r;return b&&d.add(y),M.add(y),y},cancel:y=>{r.delete(y),d.delete(y)},process:y=>{if(p=y,u){h=!0;return}u=!0;const b=l;l=r,r=b,l.forEach(x),l.clear(),u=!1,h&&(h=!1,g.process(y))}};return g}const Zb=40;function Bg(a,s){let l=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},h=()=>l=!0,d=Oo.reduce((C,X)=>(C[X]=Kb(h),C),{}),{setup:p,read:x,resolveKeyframes:g,preUpdate:y,update:b,preRender:S,render:j,postRender:M}=d,O=()=>{const C=Ka.useManualTiming,X=C?u.timestamp:performance.now();l=!1,C||(u.delta=r?1e3/60:Math.max(Math.min(X-u.timestamp,Zb),1)),u.timestamp=X,u.isProcessing=!0,p.process(u),x.process(u),g.process(u),y.process(u),b.process(u),S.process(u),j.process(u),M.process(u),u.isProcessing=!1,l&&s&&(r=!1,a(O))},B=()=>{l=!0,r=!0,u.isProcessing||a(O)};return{schedule:Oo.reduce((C,X)=>{const I=d[X];return C[X]=(Z,L=!1,k=!1)=>(l||B(),I.schedule(Z,L,k)),C},{}),cancel:C=>{for(let X=0;X<Oo.length;X++)d[Oo[X]].cancel(C)},state:u,steps:d}}const{schedule:ie,cancel:Za,state:He,steps:Mu}=Bg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Dn,!0);let Uo;function Qb(){Uo=void 0}const Fe={now:()=>(Uo===void 0&&Fe.set(He.isProcessing||Ka.useManualTiming?He.timestamp:performance.now()),Uo),set:a=>{Uo=a,queueMicrotask(Qb)}},Ug=a=>s=>typeof s=="string"&&s.startsWith(a),Hg=Ug("--"),$b=Ug("var(--"),wf=a=>$b(a)?Pb.test(a.split("/*")[0].trim()):!1,Pb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Jm(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const fs={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},hl={...fs,transform:a=>Fn(0,1,a)},Vo={...fs,default:1},rl=a=>Math.round(a*1e5)/1e5,Mf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Fb(a){return a==null}const Jb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nf=(a,s)=>l=>!!(typeof l=="string"&&Jb.test(l)&&l.startsWith(a)||s&&!Fb(l)&&Object.prototype.hasOwnProperty.call(l,s)),qg=(a,s,l)=>r=>{if(typeof r!="string")return r;const[u,h,d,p]=r.match(Mf);return{[a]:parseFloat(u),[s]:parseFloat(h),[l]:parseFloat(d),alpha:p!==void 0?parseFloat(p):1}},Wb=a=>Fn(0,255,a),Nu={...fs,transform:a=>Math.round(Wb(a))},gi={test:Nf("rgb","red"),parse:qg("red","green","blue"),transform:({red:a,green:s,blue:l,alpha:r=1})=>"rgba("+Nu.transform(a)+", "+Nu.transform(s)+", "+Nu.transform(l)+", "+rl(hl.transform(r))+")"};function Ib(a){let s="",l="",r="",u="";return a.length>5?(s=a.substring(1,3),l=a.substring(3,5),r=a.substring(5,7),u=a.substring(7,9)):(s=a.substring(1,2),l=a.substring(2,3),r=a.substring(3,4),u=a.substring(4,5),s+=s,l+=l,r+=r,u+=u),{red:parseInt(s,16),green:parseInt(l,16),blue:parseInt(r,16),alpha:u?parseInt(u,16)/255:1}}const Ku={test:Nf("#"),parse:Ib,transform:gi.transform},xl=a=>({test:s=>typeof s=="string"&&s.endsWith(a)&&s.split(" ").length===1,parse:parseFloat,transform:s=>`${s}${a}`}),pa=xl("deg"),Pn=xl("%"),ot=xl("px"),t2=xl("vh"),e2=xl("vw"),Wm={...Pn,parse:a=>Pn.parse(a)/100,transform:a=>Pn.transform(a*100)},ss={test:Nf("hsl","hue"),parse:qg("hue","saturation","lightness"),transform:({hue:a,saturation:s,lightness:l,alpha:r=1})=>"hsla("+Math.round(a)+", "+Pn.transform(rl(s))+", "+Pn.transform(rl(l))+", "+rl(hl.transform(r))+")"},Ne={test:a=>gi.test(a)||Ku.test(a)||ss.test(a),parse:a=>gi.test(a)?gi.parse(a):ss.test(a)?ss.parse(a):Ku.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?gi.transform(a):ss.transform(a),getAnimatableNone:a=>{const s=Ne.parse(a);return s.alpha=0,Ne.transform(s)}},n2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function a2(a){return isNaN(a)&&typeof a=="string"&&(a.match(Mf)?.length||0)+(a.match(n2)?.length||0)>0}const Yg="number",Gg="color",i2="var",s2="var(",Im="${}",l2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function cs(a){const s=a.toString(),l=[],r={color:[],number:[],var:[]},u=[];let h=0;const p=s.replace(l2,x=>(Ne.test(x)?(r.color.push(h),u.push(Gg),l.push(Ne.parse(x))):x.startsWith(s2)?(r.var.push(h),u.push(i2),l.push(x)):(r.number.push(h),u.push(Yg),l.push(parseFloat(x))),++h,Im)).split(Im);return{values:l,split:p,indexes:r,types:u}}function o2(a){return cs(a).values}function Xg({split:a,types:s}){const l=a.length;return r=>{let u="";for(let h=0;h<l;h++)if(u+=a[h],r[h]!==void 0){const d=s[h];d===Yg?u+=rl(r[h]):d===Gg?u+=Ne.transform(r[h]):u+=r[h]}return u}}function r2(a){return Xg(cs(a))}const c2=a=>typeof a=="number"?0:Ne.test(a)?Ne.getAnimatableNone(a):a,u2=(a,s)=>typeof a=="number"?s?.trim().endsWith("/")?a:0:c2(a);function f2(a){const s=cs(a);return Xg(s)(s.values.map((r,u)=>u2(r,s.split[u])))}const Bn={test:a2,parse:o2,createTransformer:r2,getAnimatableNone:f2};function Eu(a,s,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?a+(s-a)*6*l:l<1/2?s:l<2/3?a+(s-a)*(2/3-l)*6:a}function d2({hue:a,saturation:s,lightness:l,alpha:r}){a/=360,s/=100,l/=100;let u=0,h=0,d=0;if(!s)u=h=d=l;else{const p=l<.5?l*(1+s):l+s-l*s,x=2*l-p;u=Eu(x,p,a+1/3),h=Eu(x,p,a),d=Eu(x,p,a-1/3)}return{red:Math.round(u*255),green:Math.round(h*255),blue:Math.round(d*255),alpha:r}}function Jo(a,s){return l=>l>0?s:a}const ae=(a,s,l)=>a+(s-a)*l,Cu=(a,s,l)=>{const r=a*a,u=l*(s*s-r)+r;return u<0?0:Math.sqrt(u)},h2=[Ku,gi,ss],m2=a=>h2.find(s=>s.test(a));function tp(a){const s=m2(a);if(!s)return!1;let l=s.parse(a);return s===ss&&(l=d2(l)),l}const ep=(a,s)=>{const l=tp(a),r=tp(s);if(!l||!r)return Jo(a,s);const u={...l};return h=>(u.red=Cu(l.red,r.red,h),u.green=Cu(l.green,r.green,h),u.blue=Cu(l.blue,r.blue,h),u.alpha=ae(l.alpha,r.alpha,h),gi.transform(u))},Zu=new Set(["none","hidden"]);function p2(a,s){return Zu.has(a)?l=>l<=0?a:s:l=>l>=1?s:a}function g2(a,s){return l=>ae(a,s,l)}function Ef(a){return typeof a=="number"?g2:typeof a=="string"?wf(a)?Jo:Ne.test(a)?ep:v2:Array.isArray(a)?Kg:typeof a=="object"?Ne.test(a)?ep:y2:Jo}function Kg(a,s){const l=[...a],r=l.length,u=a.map((h,d)=>Ef(h)(h,s[d]));return h=>{for(let d=0;d<r;d++)l[d]=u[d](h);return l}}function y2(a,s){const l={...a,...s},r={};for(const u in l)a[u]!==void 0&&s[u]!==void 0&&(r[u]=Ef(a[u])(a[u],s[u]));return u=>{for(const h in r)l[h]=r[h](u);return l}}function x2(a,s){const l=[],r={color:0,var:0,number:0};for(let u=0;u<s.values.length;u++){const h=s.types[u],d=a.indexes[h][r[h]],p=a.values[d]??0;l[u]=p,r[h]++}return l}const v2=(a,s)=>{const l=Bn.createTransformer(s),r=cs(a),u=cs(s);return r.indexes.var.length===u.indexes.var.length&&r.indexes.color.length===u.indexes.color.length&&r.indexes.number.length>=u.indexes.number.length?Zu.has(a)&&!u.values.length||Zu.has(s)&&!r.values.length?p2(a,s):gl(Kg(x2(r,u),u.values),l):Jo(a,s)};function Zg(a,s,l){return typeof a=="number"&&typeof s=="number"&&typeof l=="number"?ae(a,s,l):Ef(a)(a,s)}const b2=a=>{const s=({timestamp:l})=>a(l);return{start:(l=!0)=>ie.update(s,l),stop:()=>Za(s),now:()=>He.isProcessing?He.timestamp:Fe.now()}},Qg=(a,s,l=10)=>{let r="";const u=Math.max(Math.round(s/l),2);for(let h=0;h<u;h++)r+=Math.round(a(h/(u-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Wo=2e4;function Cf(a){let s=0;const l=50;let r=a.next(s);for(;!r.done&&s<Wo;)s+=l,r=a.next(s);return s>=Wo?1/0:s}function S2(a,s=100,l){const r=l({...a,keyframes:[0,s]}),u=Math.min(Cf(r),Wo);return{type:"keyframes",ease:h=>r.next(u*h).value/s,duration:Cn(u)}}const ge={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Qu(a,s){return a*Math.sqrt(1-s*s)}const T2=12;function j2(a,s,l){let r=l;for(let u=1;u<T2;u++)r=r-a(r)/s(r);return r}const Du=.001;function A2({duration:a=ge.duration,bounce:s=ge.bounce,velocity:l=ge.velocity,mass:r=ge.mass}){let u,h,d=1-s;d=Fn(ge.minDamping,ge.maxDamping,d),a=Fn(ge.minDuration,ge.maxDuration,Cn(a)),d<1?(u=g=>{const y=g*d,b=y*a,S=y-l,j=Qu(g,d),M=Math.exp(-b);return Du-S/j*M},h=g=>{const b=g*d*a,S=b*l+l,j=Math.pow(d,2)*Math.pow(g,2)*a,M=Math.exp(-b),O=Qu(Math.pow(g,2),d);return(-u(g)+Du>0?-1:1)*((S-j)*M)/O}):(u=g=>{const y=Math.exp(-g*a),b=(g-l)*a+1;return-Du+y*b},h=g=>{const y=Math.exp(-g*a),b=(l-g)*(a*a);return y*b});const p=5/a,x=j2(u,h,p);if(a=gn(a),isNaN(x))return{stiffness:ge.stiffness,damping:ge.damping,duration:a};{const g=Math.pow(x,2)*r;return{stiffness:g,damping:d*2*Math.sqrt(r*g),duration:a}}}const w2=["duration","bounce"],M2=["stiffness","damping","mass"];function np(a,s){return s.some(l=>a[l]!==void 0)}function N2(a){let s={velocity:ge.velocity,stiffness:ge.stiffness,damping:ge.damping,mass:ge.mass,isResolvedFromDuration:!1,...a};if(!np(a,M2)&&np(a,w2))if(s.velocity=0,a.visualDuration){const l=a.visualDuration,r=2*Math.PI/(l*1.2),u=r*r,h=2*Fn(.05,1,1-(a.bounce||0))*Math.sqrt(u);s={...s,mass:ge.mass,stiffness:u,damping:h}}else{const l=A2({...a,velocity:0});s={...s,...l,mass:ge.mass},s.isResolvedFromDuration=!0}return s}function Io(a=ge.visualDuration,s=ge.bounce){const l=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:s}:a;let{restSpeed:r,restDelta:u}=l;const h=l.keyframes[0],d=l.keyframes[l.keyframes.length-1],p={done:!1,value:h},{stiffness:x,damping:g,mass:y,duration:b,velocity:S,isResolvedFromDuration:j}=N2({...l,velocity:-Cn(l.velocity||0)}),M=S||0,O=g/(2*Math.sqrt(x*y)),B=d-h,Y=Cn(Math.sqrt(x/y)),G=Math.abs(B)<5;r||(r=G?ge.restSpeed.granular:ge.restSpeed.default),u||(u=G?ge.restDelta.granular:ge.restDelta.default);let C,X,I,Z,L,k;if(O<1)I=Qu(Y,O),Z=(M+O*Y*B)/I,C=J=>{const tt=Math.exp(-O*Y*J);return d-tt*(Z*Math.sin(I*J)+B*Math.cos(I*J))},L=O*Y*Z+B*I,k=O*Y*B-Z*I,X=J=>Math.exp(-O*Y*J)*(L*Math.sin(I*J)+k*Math.cos(I*J));else if(O===1){C=tt=>d-Math.exp(-Y*tt)*(B+(M+Y*B)*tt);const J=M+Y*B;X=tt=>Math.exp(-Y*tt)*(Y*J*tt-M)}else{const J=Y*Math.sqrt(O*O-1);C=dt=>{const gt=Math.exp(-O*Y*dt),D=Math.min(J*dt,300);return d-gt*((M+O*Y*B)*Math.sinh(D)+J*B*Math.cosh(D))/J};const tt=(M+O*Y*B)/J,st=O*Y*tt-B*J,jt=O*Y*B-tt*J;X=dt=>{const gt=Math.exp(-O*Y*dt),D=Math.min(J*dt,300);return gt*(st*Math.sinh(D)+jt*Math.cosh(D))}}const W={calculatedDuration:j&&b||null,velocity:J=>gn(X(J)),next:J=>{if(!j&&O<1){const st=Math.exp(-O*Y*J),jt=Math.sin(I*J),dt=Math.cos(I*J),gt=d-st*(Z*jt+B*dt),D=gn(st*(L*jt+k*dt));return p.done=Math.abs(D)<=r&&Math.abs(d-gt)<=u,p.value=p.done?d:gt,p}const tt=C(J);if(j)p.done=J>=b;else{const st=gn(X(J));p.done=Math.abs(st)<=r&&Math.abs(d-tt)<=u}return p.value=p.done?d:tt,p},toString:()=>{const J=Math.min(Cf(W),Wo),tt=Qg(st=>W.next(J*st).value,J,30);return J+"ms "+tt},toTransition:()=>{}};return W}Io.applyToOptions=a=>{const s=S2(a,100,Io);return a.ease=s.ease,a.duration=gn(s.duration),a.type="keyframes",a};const E2=5;function $g(a,s,l){const r=Math.max(s-E2,0);return Ng(l-a(r),s-r)}function $u({keyframes:a,velocity:s=0,power:l=.8,timeConstant:r=325,bounceDamping:u=10,bounceStiffness:h=500,modifyTarget:d,min:p,max:x,restDelta:g=.5,restSpeed:y}){const b=a[0],S={done:!1,value:b},j=k=>p!==void 0&&k<p||x!==void 0&&k>x,M=k=>p===void 0?x:x===void 0||Math.abs(p-k)<Math.abs(x-k)?p:x;let O=l*s;const B=b+O,Y=d===void 0?B:d(B);Y!==B&&(O=Y-b);const G=k=>-O*Math.exp(-k/r),C=k=>Y+G(k),X=k=>{const W=G(k),J=C(k);S.done=Math.abs(W)<=g,S.value=S.done?Y:J};let I,Z;const L=k=>{j(S.value)&&(I=k,Z=Io({keyframes:[S.value,M(S.value)],velocity:$g(C,k,S.value),damping:u,stiffness:h,restDelta:g,restSpeed:y}))};return L(0),{calculatedDuration:null,next:k=>{let W=!1;return!Z&&I===void 0&&(W=!0,X(k),L(k)),I!==void 0&&k>=I?Z.next(k-I):(!W&&X(k),S)}}}function C2(a,s,l){const r=[],u=l||Ka.mix||Zg,h=a.length-1;for(let d=0;d<h;d++){let p=u(a[d],a[d+1]);if(s){const x=Array.isArray(s)?s[d]||Dn:s;p=gl(x,p)}r.push(p)}return r}function D2(a,s,{clamp:l=!0,ease:r,mixer:u}={}){const h=a.length;if(Sf(h===s.length),h===1)return()=>s[0];if(h===2&&s[0]===s[1])return()=>s[1];const d=a[0]===a[1];a[0]>a[h-1]&&(a=[...a].reverse(),s=[...s].reverse());const p=C2(s,r,u),x=p.length,g=y=>{if(d&&y<a[0])return s[0];let b=0;if(x>1)for(;b<a.length-2&&!(y<a[b+1]);b++);const S=dl(a[b],a[b+1],y);return p[b](S)};return l?y=>g(Fn(a[0],a[h-1],y)):g}function z2(a,s){const l=a[a.length-1];for(let r=1;r<=s;r++){const u=dl(0,s,r);a.push(ae(l,1,u))}}function R2(a){const s=[0];return z2(s,a.length-1),s}function O2(a,s){return a.map(l=>l*s)}function V2(a,s){return a.map(()=>s||kg).splice(0,a.length-1)}function cl({duration:a=300,keyframes:s,times:l,ease:r="easeInOut"}){const u=Yb(r)?r.map(Fm):Fm(r),h={done:!1,value:s[0]},d=O2(l&&l.length===s.length?l:R2(s),a),p=D2(d,s,{ease:Array.isArray(u)?u:V2(s,u)});return{calculatedDuration:a,next:x=>(h.value=p(x),h.done=x>=a,h)}}const _2=a=>a!==null;function or(a,{repeat:s,repeatType:l="loop"},r,u=1){const h=a.filter(_2),p=u<0||s&&l!=="loop"&&s%2===1?0:h.length-1;return!p||r===void 0?h[p]:r}const k2={decay:$u,inertia:$u,tween:cl,keyframes:cl,spring:Io};function Pg(a){typeof a.type=="string"&&(a.type=k2[a.type])}class Df{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(s=>{this.resolve=s})}notifyFinished(){this.resolve()}then(s,l){return this.finished.then(s,l)}}const L2=a=>a/100;class tr extends Df{constructor(s){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:l}=this.options;l&&l.updatedAt!==Fe.now()&&this.tick(Fe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=s,this.initAnimation(),this.play(),s.autoplay===!1&&this.pause()}initAnimation(){const{options:s}=this;Pg(s);const{type:l=cl,repeat:r=0,repeatDelay:u=0,repeatType:h,velocity:d=0}=s;let{keyframes:p}=s;const x=l||cl;x!==cl&&typeof p[0]!="number"&&(this.mixKeyframes=gl(L2,Zg(p[0],p[1])),p=[0,100]);const g=x({...s,keyframes:p});h==="mirror"&&(this.mirroredGenerator=x({...s,keyframes:[...p].reverse(),velocity:-d})),g.calculatedDuration===null&&(g.calculatedDuration=Cf(g));const{calculatedDuration:y}=g;this.calculatedDuration=y,this.resolvedDuration=y+u,this.totalDuration=this.resolvedDuration*(r+1)-u,this.generator=g}updateTime(s){const l=Math.round(s-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(s,l=!1){const{generator:r,totalDuration:u,mixKeyframes:h,mirroredGenerator:d,resolvedDuration:p,calculatedDuration:x}=this;if(this.startTime===null)return r.next(0);const{delay:g=0,keyframes:y,repeat:b,repeatType:S,repeatDelay:j,type:M,onUpdate:O,finalKeyframe:B}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,s):this.speed<0&&(this.startTime=Math.min(s-u/this.speed,this.startTime)),l?this.currentTime=s:this.updateTime(s);const Y=this.currentTime-g*(this.playbackSpeed>=0?1:-1),G=this.playbackSpeed>=0?Y<0:Y>u;this.currentTime=Math.max(Y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let C=this.currentTime,X=r;if(b){const k=Math.min(this.currentTime,u)/p;let W=Math.floor(k),J=k%1;!J&&k>=1&&(J=1),J===1&&W--,W=Math.min(W,b+1),W%2&&(S==="reverse"?(J=1-J,j&&(J-=j/p)):S==="mirror"&&(X=d)),C=Fn(0,1,J)*p}let I;G?(this.delayState.value=y[0],I=this.delayState):I=X.next(C),h&&!G&&(I.value=h(I.value));let{done:Z}=I;!G&&x!==null&&(Z=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Z);return L&&M!==$u&&(I.value=or(y,this.options,B,this.speed)),O&&O(I.value),L&&this.finish(),I}then(s,l){return this.finished.then(s,l)}get duration(){return Cn(this.calculatedDuration)}get iterationDuration(){const{delay:s=0}=this.options||{};return this.duration+Cn(s)}get time(){return Cn(this.currentTime)}set time(s){s=gn(s),this.currentTime=s,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=s:this.driver&&(this.startTime=this.driver.now()-s/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=s,this.tick(s))}getGeneratorVelocity(){const s=this.currentTime;if(s<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(s);const l=this.generator.next(s).value;return $g(r=>this.generator.next(r).value,s,l)}get speed(){return this.playbackSpeed}set speed(s){const l=this.playbackSpeed!==s;l&&this.driver&&this.updateTime(Fe.now()),this.playbackSpeed=s,l&&this.driver&&(this.time=Cn(this.currentTime))}play(){if(this.isStopped)return;const{driver:s=b2,startTime:l}=this.options;this.driver||(this.driver=s(u=>this.tick(u))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=l??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Fe.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(s){return this.startTime=0,this.tick(s,!0)}attachTimeline(s){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),s.observe(this)}}function B2(a){for(let s=1;s<a.length;s++)a[s]??(a[s]=a[s-1])}const yi=a=>a*180/Math.PI,Pu=a=>{const s=yi(Math.atan2(a[1],a[0]));return Fu(s)},U2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Pu,rotateZ:Pu,skewX:a=>yi(Math.atan(a[1])),skewY:a=>yi(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Fu=a=>(a=a%360,a<0&&(a+=360),a),ap=Pu,ip=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),sp=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),H2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ip,scaleY:sp,scale:a=>(ip(a)+sp(a))/2,rotateX:a=>Fu(yi(Math.atan2(a[6],a[5]))),rotateY:a=>Fu(yi(Math.atan2(-a[2],a[0]))),rotateZ:ap,rotate:ap,skewX:a=>yi(Math.atan(a[4])),skewY:a=>yi(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Ju(a){return a.includes("scale")?1:0}function Wu(a,s){if(!a||a==="none")return Ju(s);const l=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,u;if(l)r=H2,u=l;else{const p=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=U2,u=p}if(!u)return Ju(s);const h=r[s],d=u[1].split(",").map(Y2);return typeof h=="function"?h(d):d[h]}const q2=(a,s)=>{const{transform:l="none"}=getComputedStyle(a);return Wu(l,s)};function Y2(a){return parseFloat(a.trim())}const ds=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],hs=new Set([...ds,"pathRotation"]),lp=a=>a===fs||a===ot,G2=new Set(["x","y","z"]),X2=ds.filter(a=>!G2.has(a));function K2(a){const s=[];return X2.forEach(l=>{const r=a.getValue(l);r!==void 0&&(s.push([l,r.get()]),r.set(l.startsWith("scale")?1:0))}),s}const Xa={width:({x:a},{paddingLeft:s="0",paddingRight:l="0",boxSizing:r})=>{const u=a.max-a.min;return r==="border-box"?u:u-parseFloat(s)-parseFloat(l)},height:({y:a},{paddingTop:s="0",paddingBottom:l="0",boxSizing:r})=>{const u=a.max-a.min;return r==="border-box"?u:u-parseFloat(s)-parseFloat(l)},top:(a,{top:s})=>parseFloat(s),left:(a,{left:s})=>parseFloat(s),bottom:({y:a},{top:s})=>parseFloat(s)+(a.max-a.min),right:({x:a},{left:s})=>parseFloat(s)+(a.max-a.min),x:(a,{transform:s})=>Wu(s,"x"),y:(a,{transform:s})=>Wu(s,"y")};Xa.translateX=Xa.x;Xa.translateY=Xa.y;const vi=new Set;let Iu=!1,tf=!1,ef=!1;function Fg(){if(tf){const a=Array.from(vi).filter(r=>r.needsMeasurement),s=new Set(a.map(r=>r.element)),l=new Map;s.forEach(r=>{const u=K2(r);u.length&&(l.set(r,u),r.render())}),a.forEach(r=>r.measureInitialState()),s.forEach(r=>{r.render();const u=l.get(r);u&&u.forEach(([h,d])=>{r.getValue(h)?.set(d)})}),a.forEach(r=>r.measureEndState()),a.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}tf=!1,Iu=!1,vi.forEach(a=>a.complete(ef)),vi.clear()}function Jg(){vi.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(tf=!0)})}function Z2(){ef=!0,Jg(),Fg(),ef=!1}class zf{constructor(s,l,r,u,h,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...s],this.onComplete=l,this.name=r,this.motionValue=u,this.element=h,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(vi.add(this),Iu||(Iu=!0,ie.read(Jg),ie.resolveKeyframes(Fg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:s,name:l,element:r,motionValue:u}=this;if(s[0]===null){const h=u?.get(),d=s[s.length-1];if(h!==void 0)s[0]=h;else if(r&&l){const p=r.readValue(l,d);p!=null&&(s[0]=p)}s[0]===void 0&&(s[0]=d),u&&h===void 0&&u.set(s[0])}B2(s)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(s=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,s),vi.delete(this)}cancel(){this.state==="scheduled"&&(vi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Q2=a=>a.startsWith("--");function Wg(a,s,l){Q2(s)?a.style.setProperty(s,l):a.style[s]=l}const $2={};function Ig(a,s){const l=Mg(a);return()=>$2[s]??l()}const P2=Ig(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),ty=Ig(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ol=([a,s,l,r])=>`cubic-bezier(${a}, ${s}, ${l}, ${r})`,op={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ol([0,.65,.55,1]),circOut:ol([.55,0,1,.45]),backIn:ol([.31,.01,.66,-.59]),backOut:ol([.33,1.53,.69,.99])};function ey(a,s){if(a)return typeof a=="function"?ty()?Qg(a,s):"ease-out":Lg(a)?ol(a):Array.isArray(a)?a.map(l=>ey(l,s)||op.easeOut):op[a]}function F2(a,s,l,{delay:r=0,duration:u=300,repeat:h=0,repeatType:d="loop",ease:p="easeOut",times:x}={},g=void 0){const y={[s]:l};x&&(y.offset=x);const b=ey(p,u);Array.isArray(b)&&(y.easing=b);const S={delay:r,duration:u,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:h+1,direction:d==="reverse"?"alternate":"normal"};return g&&(S.pseudoElement=g),a.animate(y,S)}function ny(a){return typeof a=="function"&&"applyToOptions"in a}function J2({type:a,...s}){return ny(a)&&ty()?a.applyToOptions(s):(s.duration??(s.duration=300),s.ease??(s.ease="easeOut"),s)}class ay extends Df{constructor(s){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!s)return;const{element:l,name:r,keyframes:u,pseudoElement:h,allowFlatten:d=!1,finalKeyframe:p,onComplete:x}=s;this.isPseudoElement=!!h,this.allowFlatten=d,this.options=s,Sf(typeof s.type!="string");const g=J2(s);this.animation=F2(l,r,u,g,h),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const y=or(u,this.options,p,this.speed);this.updateMotionValue&&this.updateMotionValue(y),Wg(l,r,y),this.animation.cancel()}x?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:s}=this;s==="idle"||s==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const s=this.options?.element;!this.isPseudoElement&&s?.isConnected&&this.animation.commitStyles?.()}get duration(){const s=this.animation.effect?.getComputedTiming?.().duration||0;return Cn(Number(s))}get iterationDuration(){const{delay:s=0}=this.options||{};return this.duration+Cn(s)}get time(){return Cn(Number(this.animation.currentTime)||0)}set time(s){const l=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=gn(s),l&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(s){s<0&&(this.finishedTime=null),this.animation.playbackRate=s}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(s){this.manualStartTime=this.animation.startTime=s}attachTimeline({timeline:s,rangeStart:l,rangeEnd:r,observe:u}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,s&&P2()?(this.animation.timeline=s,l&&(this.animation.rangeStart=l),r&&(this.animation.rangeEnd=r),Dn):u(this)}}const iy={anticipate:Og,backInOut:Rg,circInOut:_g};function W2(a){return a in iy}function I2(a){typeof a.ease=="string"&&W2(a.ease)&&(a.ease=iy[a.ease])}const zu=10;class tS extends ay{constructor(s){I2(s),Pg(s),super(s),s.startTime!==void 0&&s.autoplay!==!1&&(this.startTime=s.startTime),this.options=s}updateMotionValue(s){const{motionValue:l,onUpdate:r,onComplete:u,element:h,...d}=this.options;if(!l)return;if(s!==void 0){l.set(s);return}const p=new tr({...d,autoplay:!1}),x=Math.max(zu,Fe.now()-this.startTime),g=Fn(0,zu,x-zu),y=p.sample(x).value,{name:b}=this.options;h&&b&&Wg(h,b,y),l.setWithVelocity(p.sample(Math.max(0,x-g)).value,y,g),p.stop()}}const rp=(a,s)=>s==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(Bn.test(a)||a==="0")&&!a.startsWith("url("));function eS(a){const s=a[0];if(a.length===1)return!0;for(let l=0;l<a.length;l++)if(a[l]!==s)return!0}function nS(a,s,l,r){const u=a[0];if(u===null)return!1;if(s==="display"||s==="visibility")return!0;const h=a[a.length-1],d=rp(u,s),p=rp(h,s);return!d||!p?!1:eS(a)||(l==="spring"||ny(l))&&r}function nf(a){a.duration=0,a.type="keyframes"}const sy=new Set(["opacity","clipPath","filter","transform"]),aS=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function iS(a){for(let s=0;s<a.length;s++)if(typeof a[s]=="string"&&aS.test(a[s]))return!0;return!1}const sS=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),lS=Mg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function oS(a){const{motionValue:s,name:l,repeatDelay:r,repeatType:u,damping:h,type:d,keyframes:p}=a;if(!(s?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:y}=s.owner.getProps();return lS()&&l&&(sy.has(l)||sS.has(l)&&iS(p))&&(l!=="transform"||!y)&&!g&&!r&&u!=="mirror"&&h!==0&&d!=="inertia"}const rS=40;class cS extends Df{constructor({autoplay:s=!0,delay:l=0,type:r="keyframes",repeat:u=0,repeatDelay:h=0,repeatType:d="loop",keyframes:p,name:x,motionValue:g,element:y,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Fe.now();const S={autoplay:s,delay:l,type:r,repeat:u,repeatDelay:h,repeatType:d,name:x,motionValue:g,element:y,...b},j=y?.KeyframeResolver||zf;this.keyframeResolver=new j(p,(M,O,B)=>this.onKeyframesResolved(M,O,S,!B),x,g,y),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(s,l,r,u){this.keyframeResolver=void 0;const{name:h,type:d,velocity:p,delay:x,isHandoff:g,onUpdate:y}=r;this.resolvedAt=Fe.now();let b=!0;nS(s,h,d,p)||(b=!1,(Ka.instantAnimations||!x)&&y?.(or(s,r,l)),s[0]=s[s.length-1],nf(r),r.repeat=0);const j={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>rS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...r,keyframes:s},M=b&&!g&&oS(j),O=j.motionValue?.owner?.current;let B;if(M)try{B=new tS({...j,element:O})}catch{B=new tr(j)}else B=new tr(j);B.finished.then(()=>{this.notifyFinished()}).catch(Dn),this.pendingTimeline&&(this.stopTimeline=B.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=B}get finished(){return this._animation?this.animation.finished:this._finished}then(s,l){return this.finished.finally(s).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Z2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(s){this.animation.time=s}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(s){this.animation.speed=s}get startTime(){return this.animation.startTime}attachTimeline(s){return this._animation?this.stopTimeline=this.animation.attachTimeline(s):this.pendingTimeline=s,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function ly(a,s,l,r=0,u=1){const h=Array.from(a).sort((g,y)=>g.sortNodePosition(y)).indexOf(s),d=a.size,p=(d-1)*r;return typeof l=="function"?l(h,d):u===1?h*r:p-h*r}const cp=30,uS=a=>!isNaN(parseFloat(a));class fS{constructor(s,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const u=Fe.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(s),this.owner=l.owner}setCurrent(s){this.current=s,this.updatedAt=Fe.now(),this.canTrackVelocity===null&&s!==void 0&&(this.canTrackVelocity=uS(this.current))}setPrevFrameValue(s=this.current){this.prevFrameValue=s,this.prevUpdatedAt=this.updatedAt}onChange(s){return this.on("change",s)}on(s,l){this.events[s]||(this.events[s]=new Tf);const r=this.events[s].add(l);return s==="change"?()=>{r(),ie.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const s in this.events)this.events[s].clear()}attach(s,l){this.passiveEffect=s,this.stopPassiveEffect=l}set(s){this.passiveEffect?this.passiveEffect(s,this.updateAndNotify):this.updateAndNotify(s)}setWithVelocity(s,l,r){this.set(l),this.prev=void 0,this.prevFrameValue=s,this.prevUpdatedAt=this.updatedAt-r}jump(s,l=!0){this.updateAndNotify(s),this.prev=s,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(s){this.dependents||(this.dependents=new Set),this.dependents.add(s)}removeDependent(s){this.dependents&&this.dependents.delete(s)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const s=Fe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||s-this.updatedAt>cp)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,cp);return Ng(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(s){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=s(l),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function us(a,s){return new fS(a,s)}function oy(a,s){if(a?.inherit&&s){const{inherit:l,...r}=a;return{...s,...r}}return a}function Rf(a,s){const l=a?.[s]??a?.default??a;return l!==a?oy(l,a):l}const dS={type:"spring",stiffness:500,damping:25,restSpeed:10},hS=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),mS={type:"keyframes",duration:.8},pS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},gS=(a,{keyframes:s})=>s.length>2?mS:hs.has(a)?a.startsWith("scale")?hS(s[1]):dS:pS,yS=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function xS(a){for(const s in a)if(!yS.has(s))return!0;return!1}const Of=(a,s,l,r={},u,h)=>d=>{const p=Rf(r,a)||{},x=p.delay||r.delay||0;let{elapsed:g=0}=r;g=g-gn(x);const y={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:s.getVelocity(),...p,delay:-g,onUpdate:S=>{s.set(S),p.onUpdate&&p.onUpdate(S)},onComplete:()=>{d(),p.onComplete&&p.onComplete()},name:a,motionValue:s,element:h?void 0:u};xS(p)||Object.assign(y,gS(a,y)),y.duration&&(y.duration=gn(y.duration)),y.repeatDelay&&(y.repeatDelay=gn(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let b=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(nf(y),y.delay===0&&(b=!0)),(Ka.instantAnimations||Ka.skipAnimations||u?.shouldSkipAnimations||p.skipAnimations)&&(b=!0,nf(y),y.delay=0),y.allowFlatten=!p.type&&!p.ease,b&&!h&&s.get()!==void 0){const S=or(y.keyframes,p);if(S!==void 0){ie.update(()=>{y.onUpdate(S),y.onComplete()});return}}return p.isSync?new tr(y):new cS(y)},vS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function bS(a){const s=vS.exec(a);if(!s)return[,];const[,l,r,u]=s;return[`--${l??r}`,u]}function ry(a,s,l=1){const[r,u]=bS(a);if(!r)return;const h=window.getComputedStyle(s).getPropertyValue(r);if(h){const d=h.trim();return jg(d)?parseFloat(d):d}return wf(u)?ry(u,s,l+1):u}function up(a){const s=[{},{}];return a?.values.forEach((l,r)=>{s[0][r]=l.get(),s[1][r]=l.getVelocity()}),s}function Vf(a,s,l,r){if(typeof s=="function"){const[u,h]=up(r);s=s(l!==void 0?l:a.custom,u,h)}if(typeof s=="string"&&(s=a.variants&&a.variants[s]),typeof s=="function"){const[u,h]=up(r);s=s(l!==void 0?l:a.custom,u,h)}return s}function bi(a,s,l){const r=a.getProps();return Vf(r,s,l!==void 0?l:r.custom,a)}const cy=new Set(["width","height","top","left","right","bottom",...ds]),af=a=>Array.isArray(a);function SS(a,s,l){a.hasValue(s)?a.getValue(s).set(l):a.addValue(s,us(l))}function TS(a){return af(a)?a[a.length-1]||0:a}function jS(a,s){const l=bi(a,s);let{transitionEnd:r={},transition:u={},...h}=l||{};h={...h,...r};for(const d in h){const p=TS(h[d]);SS(a,d,p)}}const qe=a=>!!(a&&a.getVelocity);function AS(a){return!!(qe(a)&&a.add)}function sf(a,s){const l=a.getValue("willChange");if(AS(l))return l.add(s);if(!l&&Ka.WillChange){const r=new Ka.WillChange("auto");a.addValue("willChange",r),r.add(s)}}function _f(a){return a.replace(/([A-Z])/g,s=>`-${s.toLowerCase()}`)}const wS="framerAppearId",uy="data-"+_f(wS);function fy(a){return a.props[uy]}function MS({protectedKeys:a,needsAnimating:s},l){const r=a.hasOwnProperty(l)&&s[l]!==!0;return s[l]=!1,r}function dy(a,s,{delay:l=0,transitionOverride:r,type:u}={}){let{transition:h,transitionEnd:d,...p}=s;const x=a.getDefaultTransition();h=h?oy(h,x):x;const g=h?.reduceMotion,y=h?.skipAnimations;r&&(h=r);const b=[],S=u&&a.animationState&&a.animationState.getState()[u],j=h?.path;j&&j.animateVisualElement(a,p,h,l,b);for(const M in p){const O=a.getValue(M,a.latestValues[M]??null),B=p[M];if(B===void 0||S&&MS(S,M))continue;const Y={delay:l,...Rf(h||{},M)};y&&(Y.skipAnimations=!0);const G=O.get();if(G!==void 0&&!O.isAnimating()&&!Array.isArray(B)&&B===G&&!Y.velocity){ie.update(()=>O.set(B));continue}let C=!1;if(window.MotionHandoffAnimation){const Z=fy(a);if(Z){const L=window.MotionHandoffAnimation(Z,M,ie);L!==null&&(Y.startTime=L,C=!0)}}sf(a,M);const X=g??a.shouldReduceMotion;O.start(Of(M,O,B,X&&cy.has(M)?{type:!1}:Y,a,C));const I=O.animation;I&&b.push(I)}if(d){const M=()=>ie.update(()=>{d&&jS(a,d)});b.length?Promise.all(b).then(M):M()}return b}function lf(a,s,l={}){const r=bi(a,s,l.type==="exit"?a.presenceContext?.custom:void 0);let{transition:u=a.getDefaultTransition()||{}}=r||{};l.transitionOverride&&(u=l.transitionOverride);const h=r?()=>Promise.all(dy(a,r,l)):()=>Promise.resolve(),d=a.variantChildren&&a.variantChildren.size?(x=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:b}=u;return NS(a,s,x,g,y,b,l)}:()=>Promise.resolve(),{when:p}=u;if(p){const[x,g]=p==="beforeChildren"?[h,d]:[d,h];return x().then(()=>g())}else return Promise.all([h(),d(l.delay)])}function NS(a,s,l=0,r=0,u=0,h=1,d){const p=[];for(const x of a.variantChildren)x.notify("AnimationStart",s),p.push(lf(x,s,{...d,delay:l+(typeof r=="function"?0:r)+ly(a.variantChildren,x,r,u,h)}).then(()=>x.notify("AnimationComplete",s)));return Promise.all(p)}function ES(a,s,l={}){a.notify("AnimationStart",s);let r;if(Array.isArray(s)){const u=s.map(h=>lf(a,h,l));r=Promise.all(u)}else if(typeof s=="string")r=lf(a,s,l);else{const u=typeof s=="function"?bi(a,s,l.custom):s;r=Promise.all(dy(a,u,l))}return r.then(()=>{a.notify("AnimationComplete",s)})}const CS={test:a=>a==="auto",parse:a=>a},hy=a=>s=>s.test(a),my=[fs,ot,Pn,pa,e2,t2,CS],fp=a=>my.find(hy(a));function DS(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||wg(a):!0}const zS=new Set(["brightness","contrast","saturate","opacity"]);function RS(a){const[s,l]=a.slice(0,-1).split("(");if(s==="drop-shadow")return a;const[r]=l.match(Mf)||[];if(!r)return a;const u=l.replace(r,"");let h=zS.has(s)?1:0;return r!==l&&(h*=100),s+"("+h+u+")"}const OS=/\b([a-z-]*)\(.*?\)/gu,of={...Bn,getAnimatableNone:a=>{const s=a.match(OS);return s?s.map(RS).join(" "):a}},rf={...Bn,getAnimatableNone:a=>{const s=Bn.parse(a);return Bn.createTransformer(a)(s.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},dp={...fs,transform:Math.round},VS={rotate:pa,pathRotation:pa,rotateX:pa,rotateY:pa,rotateZ:pa,scale:Vo,scaleX:Vo,scaleY:Vo,scaleZ:Vo,skew:pa,skewX:pa,skewY:pa,distance:ot,translateX:ot,translateY:ot,translateZ:ot,x:ot,y:ot,z:ot,perspective:ot,transformPerspective:ot,opacity:hl,originX:Wm,originY:Wm,originZ:ot},er={borderWidth:ot,borderTopWidth:ot,borderRightWidth:ot,borderBottomWidth:ot,borderLeftWidth:ot,borderRadius:ot,borderTopLeftRadius:ot,borderTopRightRadius:ot,borderBottomRightRadius:ot,borderBottomLeftRadius:ot,width:ot,maxWidth:ot,height:ot,maxHeight:ot,top:ot,right:ot,bottom:ot,left:ot,inset:ot,insetBlock:ot,insetBlockStart:ot,insetBlockEnd:ot,insetInline:ot,insetInlineStart:ot,insetInlineEnd:ot,padding:ot,paddingTop:ot,paddingRight:ot,paddingBottom:ot,paddingLeft:ot,paddingBlock:ot,paddingBlockStart:ot,paddingBlockEnd:ot,paddingInline:ot,paddingInlineStart:ot,paddingInlineEnd:ot,margin:ot,marginTop:ot,marginRight:ot,marginBottom:ot,marginLeft:ot,marginBlock:ot,marginBlockStart:ot,marginBlockEnd:ot,marginInline:ot,marginInlineStart:ot,marginInlineEnd:ot,fontSize:ot,backgroundPositionX:ot,backgroundPositionY:ot,...VS,zIndex:dp,fillOpacity:hl,strokeOpacity:hl,numOctaves:dp},_S={...er,color:Ne,backgroundColor:Ne,outlineColor:Ne,fill:Ne,stroke:Ne,borderColor:Ne,borderTopColor:Ne,borderRightColor:Ne,borderBottomColor:Ne,borderLeftColor:Ne,filter:of,WebkitFilter:of,mask:rf,WebkitMask:rf},py=a=>_S[a],kS=new Set([of,rf]);function gy(a,s){let l=py(a);return kS.has(l)||(l=Bn),l.getAnimatableNone?l.getAnimatableNone(s):void 0}const LS=new Set(["auto","none","0"]);function BS(a,s,l){let r=0,u;for(;r<a.length&&!u;){const h=a[r];typeof h=="string"&&!LS.has(h)&&cs(h).values.length&&(u=a[r]),r++}if(u&&l)for(const h of s)a[h]=gy(l,u)}class US extends zf{constructor(s,l,r,u,h){super(s,l,r,u,h,!0)}readKeyframes(){const{unresolvedKeyframes:s,element:l,name:r}=this;if(!l||!l.current)return;super.readKeyframes();for(let y=0;y<s.length;y++){let b=s[y];if(typeof b=="string"&&(b=b.trim(),wf(b))){const S=ry(b,l.current);S!==void 0&&(s[y]=S),y===s.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!cy.has(r)||s.length!==2)return;const[u,h]=s,d=fp(u),p=fp(h),x=Jm(u),g=Jm(h);if(x!==g&&Xa[r]){this.needsMeasurement=!0;return}if(d!==p)if(lp(d)&&lp(p))for(let y=0;y<s.length;y++){const b=s[y];typeof b=="string"&&(s[y]=parseFloat(b))}else Xa[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:s,name:l}=this,r=[];for(let u=0;u<s.length;u++)(s[u]===null||DS(s[u]))&&r.push(u);r.length&&BS(s,r,l)}measureInitialState(){const{element:s,unresolvedKeyframes:l,name:r}=this;if(!s||!s.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Xa[r](s.measureViewportBox(),window.getComputedStyle(s.current)),l[0]=this.measuredOrigin;const u=l[l.length-1];u!==void 0&&s.getValue(r,u).jump(u,!1)}measureEndState(){const{element:s,name:l,unresolvedKeyframes:r}=this;if(!s||!s.current)return;const u=s.getValue(l);u&&u.jump(this.measuredOrigin,!1);const h=r.length-1,d=r[h];r[h]=Xa[l](s.measureViewportBox(),window.getComputedStyle(s.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([p,x])=>{s.getValue(p).set(x)}),this.resolveNoneKeyframes()}}function yy(a,s,l){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let r=document;const u=l?.[a]??r.querySelectorAll(a);return u?Array.from(u):[]}return Array.from(a).filter(r=>r!=null)}const cf=(a,s)=>s&&typeof a=="number"?s.transform(a):a;function Ho(a){return Ag(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)}const{schedule:kf}=Bg(queueMicrotask,!1),Ln={x:!1,y:!1};function xy(){return Ln.x||Ln.y}function HS(a){return a==="x"||a==="y"?Ln[a]?null:(Ln[a]=!0,()=>{Ln[a]=!1}):Ln.x||Ln.y?null:(Ln.x=Ln.y=!0,()=>{Ln.x=Ln.y=!1})}function vy(a,s){const l=yy(a),r=new AbortController,u={passive:!0,...s,signal:r.signal};return[l,u,()=>r.abort()]}function qS(a){return!(a.pointerType==="touch"||xy())}function YS(a,s,l={}){const[r,u,h]=vy(a,l);return r.forEach(d=>{let p=!1,x=!1,g;const y=()=>{d.removeEventListener("pointerleave",M)},b=B=>{g&&(g(B),g=void 0),y()},S=B=>{p=!1,window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),x&&(x=!1,b(B))},j=()=>{p=!0,window.addEventListener("pointerup",S,u),window.addEventListener("pointercancel",S,u)},M=B=>{if(B.pointerType!=="touch"){if(p){x=!0;return}b(B)}},O=B=>{if(!qS(B))return;x=!1;const Y=s(d,B);typeof Y=="function"&&(g=Y,d.addEventListener("pointerleave",M,u))};d.addEventListener("pointerenter",O,u),d.addEventListener("pointerdown",j,u)}),h}const by=(a,s)=>s?a===s?!0:by(a,s.parentElement):!1,Lf=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,GS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function XS(a){return GS.has(a.tagName)||a.isContentEditable===!0}const KS=new Set(["INPUT","SELECT","TEXTAREA"]);function ZS(a){return KS.has(a.tagName)||a.isContentEditable===!0}const qo=new WeakSet;function hp(a){return s=>{s.key==="Enter"&&a(s)}}function Ru(a,s){a.dispatchEvent(new PointerEvent("pointer"+s,{isPrimary:!0,bubbles:!0}))}const QS=(a,s)=>{const l=a.currentTarget;if(!l)return;const r=hp(()=>{if(qo.has(l))return;Ru(l,"down");const u=hp(()=>{Ru(l,"up")}),h=()=>Ru(l,"cancel");l.addEventListener("keyup",u,s),l.addEventListener("blur",h,s)});l.addEventListener("keydown",r,s),l.addEventListener("blur",()=>l.removeEventListener("keydown",r),s)};function mp(a){return Lf(a)&&!xy()}const pp=new WeakSet;function $S(a,s,l={}){const[r,u,h]=vy(a,l),d=p=>{const x=p.currentTarget;if(!mp(p)||pp.has(p))return;qo.add(x),l.stopPropagation&&pp.add(p);const g=s(x,p),y=(j,M)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",S),qo.has(x)&&qo.delete(x),mp(j)&&typeof g=="function"&&g(j,{success:M})},b=j=>{y(j,x===window||x===document||l.useGlobalTarget||by(x,j.target))},S=j=>{y(j,!1)};window.addEventListener("pointerup",b,u),window.addEventListener("pointercancel",S,u)};return r.forEach(p=>{(l.useGlobalTarget?window:p).addEventListener("pointerdown",d,u),Ho(p)&&(p.addEventListener("focus",g=>QS(g,u)),!XS(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),h}function Bf(a){return Ag(a)&&"ownerSVGElement"in a}const Yo=new WeakMap;let Go;const Sy=(a,s,l)=>(r,u)=>u&&u[0]?u[0][a+"Size"]:Bf(r)&&"getBBox"in r?r.getBBox()[s]:r[l],PS=Sy("inline","width","offsetWidth"),FS=Sy("block","height","offsetHeight");function JS({target:a,borderBoxSize:s}){Yo.get(a)?.forEach(l=>{l(a,{get width(){return PS(a,s)},get height(){return FS(a,s)}})})}function WS(a){a.forEach(JS)}function IS(){typeof ResizeObserver>"u"||(Go=new ResizeObserver(WS))}function t5(a,s){Go||IS();const l=yy(a);return l.forEach(r=>{let u=Yo.get(r);u||(u=new Set,Yo.set(r,u)),u.add(s),Go?.observe(r)}),()=>{l.forEach(r=>{const u=Yo.get(r);u?.delete(s),u?.size||Go?.unobserve(r)})}}const Xo=new Set;let ls;function e5(){ls=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};Xo.forEach(s=>s(a))},window.addEventListener("resize",ls)}function n5(a){return Xo.add(a),ls||e5(),()=>{Xo.delete(a),!Xo.size&&typeof ls=="function"&&(window.removeEventListener("resize",ls),ls=void 0)}}function gp(a,s){return typeof a=="function"?n5(a):t5(a,s)}function a5(a){return Bf(a)&&a.tagName==="svg"}const i5=[...my,Ne,Bn],s5=a=>i5.find(hy(a)),yp=()=>({translate:0,scale:1,origin:0,originPoint:0}),os=()=>({x:yp(),y:yp()}),xp=()=>({min:0,max:0}),Oe=()=>({x:xp(),y:xp()}),l5=new WeakMap;function rr(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function ml(a){return typeof a=="string"||Array.isArray(a)}const Uf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Hf=["initial",...Uf];function cr(a){return rr(a.animate)||Hf.some(s=>ml(a[s]))}function Ty(a){return!!(cr(a)||a.variants)}function o5(a,s,l){for(const r in s){const u=s[r],h=l[r];if(qe(u))a.addValue(r,u);else if(qe(h))a.addValue(r,us(u,{owner:a}));else if(h!==u)if(a.hasValue(r)){const d=a.getValue(r);d.liveStyle===!0?d.jump(u):d.hasAnimated||d.set(u)}else{const d=a.getStaticValue(r);a.addValue(r,us(d!==void 0?d:u,{owner:a}))}}for(const r in l)s[r]===void 0&&a.removeValue(r);return s}const uf={current:null},jy={current:!1},r5=typeof window<"u";function c5(){if(jy.current=!0,!!r5)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),s=()=>uf.current=a.matches;a.addEventListener("change",s),s()}else uf.current=!1}const vp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let nr={};function Ay(a){nr=a}function u5(){return nr}class f5{scrapeMotionValuesFromProps(s,l,r){return{}}constructor({parent:s,props:l,presenceContext:r,reducedMotionConfig:u,skipAnimations:h,blockInitialAnimation:d,visualState:p},x={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=zf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const j=Fe.now();this.renderScheduledAt<j&&(this.renderScheduledAt=j,ie.render(this.render,!1,!0))};const{latestValues:g,renderState:y}=p;this.latestValues=g,this.baseTarget={...g},this.initialValues=l.initial?{...g}:{},this.renderState=y,this.parent=s,this.props=l,this.presenceContext=r,this.depth=s?s.depth+1:0,this.reducedMotionConfig=u,this.skipAnimationsConfig=h,this.options=x,this.blockInitialAnimation=!!d,this.isControllingVariants=cr(l),this.isVariantNode=Ty(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(s&&s.current);const{willChange:b,...S}=this.scrapeMotionValuesFromProps(l,{},this);for(const j in S){const M=S[j];g[j]!==void 0&&qe(M)&&M.set(g[j])}}mount(s){if(this.hasBeenMounted)for(const l in this.initialValues)this.values.get(l)?.jump(this.initialValues[l]),this.latestValues[l]=this.initialValues[l];this.current=s,l5.set(s,this),this.projection&&!this.projection.instance&&this.projection.mount(s),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((l,r)=>this.bindToMotionValue(r,l)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(jy.current||c5(),this.shouldReduceMotion=uf.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Za(this.notifyUpdate),Za(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const l=this.features[s];l&&(l.unmount(),l.isMounted=!1)}this.current=null}addChild(s){this.children.add(s),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(s)}removeChild(s){this.children.delete(s),this.enteringChildren&&this.enteringChildren.delete(s)}bindToMotionValue(s,l){if(this.valueSubscriptions.has(s)&&this.valueSubscriptions.get(s)(),l.accelerate&&sy.has(s)&&this.current instanceof HTMLElement){const{factory:d,keyframes:p,times:x,ease:g,duration:y}=l.accelerate,b=new ay({element:this.current,name:s,keyframes:p,times:x,ease:g,duration:gn(y)}),S=d(b);this.valueSubscriptions.set(s,()=>{S(),b.cancel()});return}const r=hs.has(s);r&&this.onBindTransform&&this.onBindTransform();const u=l.on("change",d=>{this.latestValues[s]=d,this.props.onUpdate&&ie.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let h;typeof window<"u"&&window.MotionCheckAppearSync&&(h=window.MotionCheckAppearSync(this,s,l)),this.valueSubscriptions.set(s,()=>{u(),h&&h()})}sortNodePosition(s){return!this.current||!this.sortInstanceNodePosition||this.type!==s.type?0:this.sortInstanceNodePosition(this.current,s.current)}updateFeatures(){let s="animation";for(s in nr){const l=nr[s];if(!l)continue;const{isEnabled:r,Feature:u}=l;if(!this.features[s]&&u&&r(this.props)&&(this.features[s]=new u(this)),this.features[s]){const h=this.features[s];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Oe()}getStaticValue(s){return this.latestValues[s]}setStaticValue(s,l){this.latestValues[s]=l}update(s,l){(s.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=s,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let r=0;r<vp.length;r++){const u=vp[r];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const h="on"+u,d=s[h];d&&(this.propEventSubscriptions[u]=this.on(u,d))}this.prevMotionValues=o5(this,this.scrapeMotionValuesFromProps(s,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(s){return this.props.variants?this.props.variants[s]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(s){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(s),()=>l.variantChildren.delete(s)}addValue(s,l){const r=this.values.get(s);l!==r&&(r&&this.removeValue(s),this.bindToMotionValue(s,l),this.values.set(s,l),this.latestValues[s]=l.get())}removeValue(s){this.values.delete(s);const l=this.valueSubscriptions.get(s);l&&(l(),this.valueSubscriptions.delete(s)),delete this.latestValues[s],this.removeValueFromRenderState(s,this.renderState)}hasValue(s){return this.values.has(s)}getValue(s,l){if(this.props.values&&this.props.values[s])return this.props.values[s];let r=this.values.get(s);return r===void 0&&l!==void 0&&(r=us(l===null?void 0:l,{owner:this}),this.addValue(s,r)),r}readValue(s,l){let r=this.latestValues[s]!==void 0||!this.current?this.latestValues[s]:this.getBaseTargetFromProps(this.props,s)??this.readValueFromInstance(this.current,s,this.options);return r!=null&&(typeof r=="string"&&(jg(r)||wg(r))?r=parseFloat(r):!s5(r)&&Bn.test(l)&&(r=gy(s,l)),this.setBaseTarget(s,qe(r)?r.get():r)),qe(r)?r.get():r}setBaseTarget(s,l){this.baseTarget[s]=l}getBaseTarget(s){const{initial:l}=this.props;let r;if(typeof l=="string"||typeof l=="object"){const h=Vf(this.props,l,this.presenceContext?.custom);h&&(r=h[s])}if(l&&r!==void 0)return r;const u=this.getBaseTargetFromProps(this.props,s);return u!==void 0&&!qe(u)?u:this.initialValues[s]!==void 0&&r===void 0?void 0:this.baseTarget[s]}on(s,l){return this.events[s]||(this.events[s]=new Tf),this.events[s].add(l)}notify(s,...l){this.events[s]&&this.events[s].notify(...l)}scheduleRenderMicrotask(){kf.render(this.render)}}class wy extends f5{constructor(){super(...arguments),this.KeyframeResolver=US}sortInstanceNodePosition(s,l){return s.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(s,l){const r=s.style;return r?r[l]:void 0}removeValueFromRenderState(s,{vars:l,style:r}){delete l[s],delete r[s]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:s}=this.props;qe(s)&&(this.childSubscription=s.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}class Qa{constructor(s){this.isMounted=!1,this.node=s}update(){}}function My({top:a,left:s,right:l,bottom:r}){return{x:{min:s,max:l},y:{min:a,max:r}}}function d5({x:a,y:s}){return{top:s.min,right:a.max,bottom:s.max,left:a.min}}function h5(a,s){if(!s)return a;const l=s({x:a.left,y:a.top}),r=s({x:a.right,y:a.bottom});return{top:l.y,left:l.x,bottom:r.y,right:r.x}}function Ou(a){return a===void 0||a===1}function ff({scale:a,scaleX:s,scaleY:l}){return!Ou(a)||!Ou(s)||!Ou(l)}function pi(a){return ff(a)||Ny(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Ny(a){return bp(a.x)||bp(a.y)}function bp(a){return a&&a!=="0%"}function ar(a,s,l){const r=a-l,u=s*r;return l+u}function Sp(a,s,l,r,u){return u!==void 0&&(a=ar(a,u,r)),ar(a,l,r)+s}function df(a,s=0,l=1,r,u){a.min=Sp(a.min,s,l,r,u),a.max=Sp(a.max,s,l,r,u)}function Ey(a,{x:s,y:l}){df(a.x,s.translate,s.scale,s.originPoint),df(a.y,l.translate,l.scale,l.originPoint)}const Tp=.999999999999,jp=1.0000000000001;function m5(a,s,l,r=!1){const u=l.length;if(!u)return;s.x=s.y=1;let h,d;for(let p=0;p<u;p++){h=l[p],d=h.projectionDelta;const{visualElement:x}=h.options;x&&x.props.style&&x.props.style.display==="contents"||(r&&h.options.layoutScroll&&h.scroll&&h!==h.root&&($n(a.x,-h.scroll.offset.x),$n(a.y,-h.scroll.offset.y)),d&&(s.x*=d.x.scale,s.y*=d.y.scale,Ey(a,d)),r&&pi(h.latestValues)&&Ko(a,h.latestValues,h.layout?.layoutBox))}s.x<jp&&s.x>Tp&&(s.x=1),s.y<jp&&s.y>Tp&&(s.y=1)}function $n(a,s){a.min+=s,a.max+=s}function Ap(a,s,l,r,u=.5){const h=ae(a.min,a.max,u);df(a,s,l,h,r)}function wp(a,s){return typeof a=="string"?parseFloat(a)/100*(s.max-s.min):a}function Ko(a,s,l){const r=l??a;Ap(a.x,wp(s.x,r.x),s.scaleX,s.scale,s.originX),Ap(a.y,wp(s.y,r.y),s.scaleY,s.scale,s.originY)}function Cy(a,s){return My(h5(a.getBoundingClientRect(),s))}function p5(a,s,l){const r=Cy(a,l),{scroll:u}=s;return u&&($n(r.x,u.offset.x),$n(r.y,u.offset.y)),r}const g5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},y5=ds.length;function x5(a,s,l){let r="",u=!0;for(let d=0;d<y5;d++){const p=ds[d],x=a[p];if(x===void 0)continue;let g=!0;if(typeof x=="number")g=x===(p.startsWith("scale")?1:0);else{const y=parseFloat(x);g=p.startsWith("scale")?y===1:y===0}if(!g||l){const y=cf(x,er[p]);if(!g){u=!1;const b=g5[p]||p;r+=`${b}(${y}) `}l&&(s[p]=y)}}const h=a.pathRotation;return h&&(u=!1,r+=`rotate(${cf(h,er.pathRotation)}) `),r=r.trim(),l?r=l(s,u?"":r):u&&(r="none"),r}function qf(a,s,l){const{style:r,vars:u,transformOrigin:h}=a;let d=!1,p=!1;for(const x in s){const g=s[x];if(hs.has(x)){d=!0;continue}else if(Hg(x)){u[x]=g;continue}else{const y=cf(g,er[x]);x.startsWith("origin")?(p=!0,h[x]=y):r[x]=y}}if(s.transform||(d||l?r.transform=x5(s,a.transform,l):r.transform&&(r.transform="none")),p){const{originX:x="50%",originY:g="50%",originZ:y=0}=h;r.transformOrigin=`${x} ${g} ${y}`}}function Dy(a,{style:s,vars:l},r,u){const h=a.style;let d;for(d in s)h[d]=s[d];u?.applyProjectionStyles(h,r);for(d in l)h.setProperty(d,l[d])}function Mp(a,s){return s.max===s.min?0:a/(s.max-s.min)*100}const ll={correct:(a,s)=>{if(!s.target)return a;if(typeof a=="string")if(ot.test(a))a=parseFloat(a);else return a;const l=Mp(a,s.target.x),r=Mp(a,s.target.y);return`${l}% ${r}%`}},v5={correct:(a,{treeScale:s,projectionDelta:l})=>{const r=a,u=Bn.parse(a);if(u.length>5)return r;const h=Bn.createTransformer(a),d=typeof u[0]!="number"?1:0,p=l.x.scale*s.x,x=l.y.scale*s.y;u[0+d]/=p,u[1+d]/=x;const g=ae(p,x,.5);return typeof u[2+d]=="number"&&(u[2+d]/=g),typeof u[3+d]=="number"&&(u[3+d]/=g),h(u)}},hf={borderRadius:{...ll,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ll,borderTopRightRadius:ll,borderBottomLeftRadius:ll,borderBottomRightRadius:ll,boxShadow:v5};function zy(a,{layout:s,layoutId:l}){return hs.has(a)||a.startsWith("origin")||(s||l!==void 0)&&(!!hf[a]||a==="opacity")}function Yf(a,s,l){const r=a.style,u=s?.style,h={};if(!r)return h;for(const d in r)(qe(r[d])||u&&qe(u[d])||zy(d,a)||l?.getValue(d)?.liveStyle!==void 0)&&(h[d]=r[d]);return h}function b5(a){return window.getComputedStyle(a)}class S5 extends wy{constructor(){super(...arguments),this.type="html",this.renderInstance=Dy}readValueFromInstance(s,l){if(hs.has(l))return this.projection?.isProjecting?Ju(l):q2(s,l);{const r=b5(s),u=(Hg(l)?r.getPropertyValue(l):r[l])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(s,{transformPagePoint:l}){return Cy(s,l)}build(s,l,r){qf(s,l,r.transformTemplate)}scrapeMotionValuesFromProps(s,l,r){return Yf(s,l,r)}}const T5={offset:"stroke-dashoffset",array:"stroke-dasharray"},j5={offset:"strokeDashoffset",array:"strokeDasharray"};function A5(a,s,l=1,r=0,u=!0){a.pathLength=1;const h=u?T5:j5;a[h.offset]=`${-r}`,a[h.array]=`${s} ${l}`}const w5=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Ry(a,{attrX:s,attrY:l,attrScale:r,pathLength:u,pathSpacing:h=1,pathOffset:d=0,...p},x,g,y){if(qf(a,p,g),x){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:b,style:S}=a;b.transform&&(S.transform=b.transform,delete b.transform),(S.transform||b.transformOrigin)&&(S.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),S.transform&&(S.transformBox=y?.transformBox??"fill-box",delete b.transformBox);for(const j of w5)b[j]!==void 0&&(S[j]=b[j],delete b[j]);s!==void 0&&(b.x=s),l!==void 0&&(b.y=l),r!==void 0&&(b.scale=r),u!==void 0&&A5(b,u,h,d,!1)}const Oy=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Vy=a=>typeof a=="string"&&a.toLowerCase()==="svg";function M5(a,s,l,r){Dy(a,s,void 0,r);for(const u in s.attrs)a.setAttribute(Oy.has(u)?u:_f(u),s.attrs[u])}function _y(a,s,l){const r=Yf(a,s,l);for(const u in a)if(qe(a[u])||qe(s[u])){const h=ds.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[h]=a[u]}return r}class N5 extends wy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Oe}getBaseTargetFromProps(s,l){return s[l]}readValueFromInstance(s,l){if(hs.has(l)){const r=py(l);return r&&r.default||0}return l=Oy.has(l)?l:_f(l),s.getAttribute(l)}scrapeMotionValuesFromProps(s,l,r){return _y(s,l,r)}build(s,l,r){Ry(s,l,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(s,l,r,u){M5(s,l,r,u)}mount(s){this.isSVGTag=Vy(s.tagName),super.mount(s)}}const E5=Hf.length;function ky(a){if(!a)return;if(!a.isControllingVariants){const l=a.parent?ky(a.parent)||{}:{};return a.props.initial!==void 0&&(l.initial=a.props.initial),l}const s={};for(let l=0;l<E5;l++){const r=Hf[l],u=a.props[r];(ml(u)||u===!1)&&(s[r]=u)}return s}function Ly(a,s){if(!Array.isArray(s))return!1;const l=s.length;if(l!==a.length)return!1;for(let r=0;r<l;r++)if(s[r]!==a[r])return!1;return!0}const C5=[...Uf].reverse(),D5=Uf.length;function z5(a){return s=>Promise.all(s.map(({animation:l,options:r})=>ES(a,l,r)))}function R5(a){let s=z5(a),l=Np(),r=!0,u=!1;const h=g=>(y,b)=>{const S=bi(a,b,g==="exit"?a.presenceContext?.custom:void 0);if(S){const{transition:j,transitionEnd:M,...O}=S;y={...y,...O,...M}}return y};function d(g){s=g(a)}function p(g){const{props:y}=a,b=ky(a.parent)||{},S=[],j=new Set;let M={},O=1/0;for(let Y=0;Y<D5;Y++){const G=C5[Y],C=l[G],X=y[G]!==void 0?y[G]:b[G],I=ml(X),Z=G===g?C.isActive:null;Z===!1&&(O=Y);let L=X===b[G]&&X!==y[G]&&I;if(L&&(r||u)&&a.manuallyAnimateOnMount&&(L=!1),C.protectedKeys={...M},!C.isActive&&Z===null||!X&&!C.prevProp||rr(X)||typeof X=="boolean")continue;if(G==="exit"&&C.isActive&&Z!==!0){C.prevResolvedValues&&(M={...M,...C.prevResolvedValues});continue}const k=O5(C.prevProp,X);let W=k||G===g&&C.isActive&&!L&&I||Y>O&&I,J=!1;const tt=Array.isArray(X)?X:[X];let st=tt.reduce(h(G),{});Z===!1&&(st={});const{prevResolvedValues:jt={}}=C,dt={...jt,...st},gt=q=>{W=!0,j.has(q)&&(J=!0,j.delete(q)),C.needsAnimating[q]=!0;const nt=a.getValue(q);nt&&(nt.liveStyle=!1)};for(const q in dt){const nt=st[q],yt=jt[q];if(M.hasOwnProperty(q))continue;let A=!1;af(nt)&&af(yt)?A=!Ly(nt,yt)||k:A=nt!==yt,A?nt!=null?gt(q):j.add(q):nt!==void 0&&j.has(q)?gt(q):C.protectedKeys[q]=!0}C.prevProp=X,C.prevResolvedValues=st,C.isActive&&(M={...M,...st}),(r||u)&&a.blockInitialAnimation&&(W=!1);const D=L&&k;W&&(!D||J)&&S.push(...tt.map(q=>{const nt={type:G};if(typeof q=="string"&&(r||u)&&!D&&a.manuallyAnimateOnMount&&a.parent){const{parent:yt}=a,A=bi(yt,q);if(yt.enteringChildren&&A){const{delayChildren:Q}=A.transition||{};nt.delay=ly(yt.enteringChildren,a,Q)}}return{animation:q,options:nt}}))}if(j.size){const Y={};if(typeof y.initial!="boolean"){const G=bi(a,Array.isArray(y.initial)?y.initial[0]:y.initial);G&&G.transition&&(Y.transition=G.transition)}j.forEach(G=>{const C=a.getBaseTarget(G),X=a.getValue(G);X&&(X.liveStyle=!0),Y[G]=C??null}),S.push({animation:Y})}let B=!!S.length;return r&&(y.initial===!1||y.initial===y.animate)&&!a.manuallyAnimateOnMount&&(B=!1),r=!1,u=!1,B?s(S):Promise.resolve()}function x(g,y){if(l[g].isActive===y)return Promise.resolve();a.variantChildren?.forEach(S=>S.animationState?.setActive(g,y)),l[g].isActive=y;const b=p(g);for(const S in l)l[S].protectedKeys={};return b}return{animateChanges:p,setActive:x,setAnimateFunction:d,getState:()=>l,reset:()=>{l=Np(),u=!0}}}function O5(a,s){return typeof s=="string"?s!==a:Array.isArray(s)?!Ly(s,a):!1}function mi(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Np(){return{animate:mi(!0),whileInView:mi(),whileHover:mi(),whileTap:mi(),whileDrag:mi(),whileFocus:mi(),exit:mi()}}function mf(a,s){a.min=s.min,a.max=s.max}function kn(a,s){mf(a.x,s.x),mf(a.y,s.y)}function Ep(a,s){a.translate=s.translate,a.scale=s.scale,a.originPoint=s.originPoint,a.origin=s.origin}const By=1e-4,V5=1-By,_5=1+By,Uy=.01,k5=0-Uy,L5=0+Uy;function Je(a){return a.max-a.min}function B5(a,s,l){return Math.abs(a-s)<=l}function Cp(a,s,l,r=.5){a.origin=r,a.originPoint=ae(s.min,s.max,a.origin),a.scale=Je(l)/Je(s),a.translate=ae(l.min,l.max,a.origin)-a.originPoint,(a.scale>=V5&&a.scale<=_5||isNaN(a.scale))&&(a.scale=1),(a.translate>=k5&&a.translate<=L5||isNaN(a.translate))&&(a.translate=0)}function ul(a,s,l,r){Cp(a.x,s.x,l.x,r?r.originX:void 0),Cp(a.y,s.y,l.y,r?r.originY:void 0)}function Dp(a,s,l,r=0){const u=r?ae(l.min,l.max,r):l.min;a.min=u+s.min,a.max=a.min+Je(s)}function U5(a,s,l,r){Dp(a.x,s.x,l.x,r?.x),Dp(a.y,s.y,l.y,r?.y)}function zp(a,s,l,r=0){const u=r?ae(l.min,l.max,r):l.min;a.min=s.min-u,a.max=a.min+Je(s)}function ir(a,s,l,r){zp(a.x,s.x,l.x,r?.x),zp(a.y,s.y,l.y,r?.y)}function Rp(a,s,l,r,u){return a-=s,a=ar(a,1/l,r),u!==void 0&&(a=ar(a,1/u,r)),a}function H5(a,s=0,l=1,r=.5,u,h=a,d=a){if(Pn.test(s)&&(s=parseFloat(s),s=ae(d.min,d.max,s/100)-d.min),typeof s!="number")return;let p=ae(h.min,h.max,r);a===h&&(p-=s),a.min=Rp(a.min,s,l,p,u),a.max=Rp(a.max,s,l,p,u)}function Op(a,s,[l,r,u],h,d){H5(a,s[l],s[r],s[u],s.scale,h,d)}const q5=["x","scaleX","originX"],Y5=["y","scaleY","originY"];function Vp(a,s,l,r){Op(a.x,s,q5,l?l.x:void 0,r?r.x:void 0),Op(a.y,s,Y5,l?l.y:void 0,r?r.y:void 0)}function _p(a){return a.translate===0&&a.scale===1}function Hy(a){return _p(a.x)&&_p(a.y)}function kp(a,s){return a.min===s.min&&a.max===s.max}function G5(a,s){return kp(a.x,s.x)&&kp(a.y,s.y)}function Lp(a,s){return Math.round(a.min)===Math.round(s.min)&&Math.round(a.max)===Math.round(s.max)}function qy(a,s){return Lp(a.x,s.x)&&Lp(a.y,s.y)}function Bp(a){return Je(a.x)/Je(a.y)}function Up(a,s){return a.translate===s.translate&&a.scale===s.scale&&a.originPoint===s.originPoint}function Qn(a){return[a("x"),a("y")]}function X5(a,s,l){let r="";const u=a.x.translate/s.x,h=a.y.translate/s.y,d=l?.z||0;if((u||h||d)&&(r=`translate3d(${u}px, ${h}px, ${d}px) `),(s.x!==1||s.y!==1)&&(r+=`scale(${1/s.x}, ${1/s.y}) `),l){const{transformPerspective:g,rotate:y,pathRotation:b,rotateX:S,rotateY:j,skewX:M,skewY:O}=l;g&&(r=`perspective(${g}px) ${r}`),y&&(r+=`rotate(${y}deg) `),b&&(r+=`rotate(${b}deg) `),S&&(r+=`rotateX(${S}deg) `),j&&(r+=`rotateY(${j}deg) `),M&&(r+=`skewX(${M}deg) `),O&&(r+=`skewY(${O}deg) `)}const p=a.x.scale*s.x,x=a.y.scale*s.y;return(p!==1||x!==1)&&(r+=`scale(${p}, ${x})`),r||"none"}const Yy=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],K5=Yy.length,Hp=a=>typeof a=="string"?parseFloat(a):a,qp=a=>typeof a=="number"||ot.test(a);function Z5(a,s,l,r,u,h){u?(a.opacity=ae(0,l.opacity??1,Q5(r)),a.opacityExit=ae(s.opacity??1,0,$5(r))):h&&(a.opacity=ae(s.opacity??1,l.opacity??1,r));for(let d=0;d<K5;d++){const p=Yy[d];let x=Yp(s,p),g=Yp(l,p);if(x===void 0&&g===void 0)continue;x||(x=0),g||(g=0),x===0||g===0||qp(x)===qp(g)?(a[p]=Math.max(ae(Hp(x),Hp(g),r),0),(Pn.test(g)||Pn.test(x))&&(a[p]+="%")):a[p]=g}(s.rotate||l.rotate)&&(a.rotate=ae(s.rotate||0,l.rotate||0,r))}function Yp(a,s){return a[s]!==void 0?a[s]:a.borderRadius}const Q5=Gy(0,.5,Vg),$5=Gy(.5,.95,Dn);function Gy(a,s,l){return r=>r<a?0:r>s?1:l(dl(a,s,r))}function P5(a,s,l){const r=qe(a)?a:us(a);return r.start(Of("",r,s,l)),r.animation}function pl(a,s,l,r={passive:!0}){return a.addEventListener(s,l,r),()=>a.removeEventListener(s,l)}const F5=(a,s)=>a.depth-s.depth;class J5{constructor(){this.children=[],this.isDirty=!1}add(s){bf(this.children,s),this.isDirty=!0}remove(s){Fo(this.children,s),this.isDirty=!0}forEach(s){this.isDirty&&this.children.sort(F5),this.isDirty=!1,this.children.forEach(s)}}function W5(a,s){const l=Fe.now(),r=({timestamp:u})=>{const h=u-l;h>=s&&(Za(r),a(h-s))};return ie.setup(r,!0),()=>Za(r)}function Zo(a){return qe(a)?a.get():a}class I5{constructor(){this.members=[]}add(s){bf(this.members,s);for(let l=this.members.length-1;l>=0;l--){const r=this.members[l];if(r===s||r===this.lead||r===this.prevLead)continue;const u=r.instance;(!u||u.isConnected===!1)&&!r.snapshot&&(Fo(this.members,r),r.unmount())}s.scheduleRender()}remove(s){if(Fo(this.members,s),s===this.prevLead&&(this.prevLead=void 0),s===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(s){for(let l=this.members.indexOf(s)-1;l>=0;l--){const r=this.members[l];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(s,l){const r=this.lead;if(s!==r&&(this.prevLead=r,this.lead=s,s.show(),r)){r.updateSnapshot(),s.scheduleRender();const{layoutDependency:u}=r.options,{layoutDependency:h}=s.options;(u===void 0||u!==h)&&(s.resumeFrom=r,l&&(r.preserveOpacity=!0),r.snapshot&&(s.snapshot=r.snapshot,s.snapshot.latestValues=r.animationValues||r.latestValues),s.root?.isUpdating&&(s.isLayoutDirty=!0)),s.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(s=>{s.options.onExitComplete?.(),s.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(s=>s.instance&&s.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Qo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Vu=["","X","Y","Z"],tT=1e3;let eT=0;function _u(a,s,l,r){const{latestValues:u}=s;u[a]&&(l[a]=u[a],s.setStaticValue(a,0),r&&(r[a]=0))}function Xy(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:s}=a.options;if(!s)return;const l=fy(s);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:u,layoutId:h}=a.options;window.MotionCancelOptimisedAnimation(l,"transform",ie,!(u||h))}const{parent:r}=a;r&&!r.hasCheckedOptimisedAppear&&Xy(r)}function Ky({attachResizeListener:a,defaultParent:s,measureScroll:l,checkIsScrollRoot:r,resetTransform:u}){return class{constructor(d={},p=s?.()){this.id=eT++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(iT),this.nodes.forEach(uT),this.nodes.forEach(fT),this.nodes.forEach(sT)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let x=0;x<this.path.length;x++)this.path[x].shouldResetTransform=!0;this.root===this&&(this.nodes=new J5)}addEventListener(d,p){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new Tf),this.eventHandlers.get(d).add(p)}notifyListeners(d,...p){const x=this.eventHandlers.get(d);x&&x.notify(...p)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Bf(d)&&!a5(d),this.instance=d;const{layoutId:p,layout:x,visualElement:g}=this.options;if(g&&!g.current&&g.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(x||p)&&(this.isLayoutDirty=!0),a){let y,b=0;const S=()=>this.root.updateBlockedByResize=!1;ie.read(()=>{b=window.innerWidth}),a(d,()=>{const j=window.innerWidth;j!==b&&(b=j,this.root.updateBlockedByResize=!0,y&&y(),y=W5(S,250),Qo.hasAnimatedSinceResize&&(Qo.hasAnimatedSinceResize=!1,this.nodes.forEach(Kp)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&g&&(p||x)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:b,hasRelativeLayoutChanged:S,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const M=this.options.transition||g.getDefaultTransition()||gT,{onLayoutAnimationStart:O,onLayoutAnimationComplete:B}=g.getProps(),Y=!this.targetLayout||!qy(this.targetLayout,j),G=!b&&S;if(this.options.layoutRoot||this.resumeFrom||G||b&&(Y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...Rf(M,"layout"),onPlay:O,onComplete:B};(g.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(y,G,C.path)}else b||Kp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Za(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(dT),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Xy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const b=this.path[y];b.shouldResetTransform=!0,(typeof b.latestValues.x=="string"||typeof b.latestValues.y=="string")&&(b.isLayoutDirty=!0),b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:p,layout:x}=this.options;if(p===void 0&&!x)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const x=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),x&&this.nodes.forEach(oT),this.nodes.forEach(Gp);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Xp);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rT),this.nodes.forEach(cT),this.nodes.forEach(nT),this.nodes.forEach(aT)):this.nodes.forEach(Xp),this.clearAllSnapshots();const p=Fe.now();He.delta=Fn(0,1e3/60,p-He.timestamp),He.timestamp=p,He.isProcessing=!0,Mu.update.process(He),Mu.preRender.process(He),Mu.render.process(He),He.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,kf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(lT),this.sharedNodes.forEach(hT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ie.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ie.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Je(this.snapshot.measuredBox.x)&&!Je(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let x=0;x<this.path.length;x++)this.path[x].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Oe()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(p=!1),p&&this.instance){const x=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:x,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:x}}}resetTransform(){if(!u)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!Hy(this.projectionDelta),x=this.getTransformTemplate(),g=x?x(this.latestValues,""):void 0,y=g!==this.prevTransformTemplateValue;d&&this.instance&&(p||pi(this.latestValues)||y)&&(u(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const p=this.measurePageBox();let x=this.removeElementScroll(p);return d&&(x=this.removeTransform(x)),yT(x),{animationId:this.root.animationId,measuredBox:p,layoutBox:x,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return Oe();const p=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(xT))){const{scroll:g}=this.root;g&&($n(p.x,g.offset.x),$n(p.y,g.offset.y))}return p}removeElementScroll(d){const p=Oe();if(kn(p,d),this.scroll?.wasRoot)return p;for(let x=0;x<this.path.length;x++){const g=this.path[x],{scroll:y,options:b}=g;g!==this.root&&y&&b.layoutScroll&&(y.wasRoot&&kn(p,d),$n(p.x,y.offset.x),$n(p.y,y.offset.y))}return p}applyTransform(d,p=!1,x){const g=x||Oe();kn(g,d);for(let y=0;y<this.path.length;y++){const b=this.path[y];!p&&b.options.layoutScroll&&b.scroll&&b!==b.root&&($n(g.x,-b.scroll.offset.x),$n(g.y,-b.scroll.offset.y)),pi(b.latestValues)&&Ko(g,b.latestValues,b.layout?.layoutBox)}return pi(this.latestValues)&&Ko(g,this.latestValues,this.layout?.layoutBox),g}removeTransform(d){const p=Oe();kn(p,d);for(let x=0;x<this.path.length;x++){const g=this.path[x];if(!pi(g.latestValues))continue;let y;g.instance&&(ff(g.latestValues)&&g.updateSnapshot(),y=Oe(),kn(y,g.measurePageBox())),Vp(p,g.latestValues,g.snapshot?.layoutBox,y)}return pi(this.latestValues)&&Vp(p,this.latestValues),p}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==He.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const x=!!this.resumingFrom||this!==p;if(!(d||x&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:b}=this.options;if(!this.layout||!(y||b))return;this.resolvedRelativeTargetAt=He.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Oe(),this.targetWithTransforms=Oe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),U5(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):kn(this.target,this.layout.layoutBox),Ey(this.target,this.targetDelta)):kn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||ff(this.parent.latestValues)||Ny(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,p,x){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Oe(),this.relativeTargetOrigin=Oe(),ir(this.relativeTargetOrigin,p,x,this.options.layoutAnchor||void 0),kn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),p=!!this.resumingFrom||this!==d;let x=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(x=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(x=!1),this.resolvedRelativeTargetAt===He.timestamp&&(x=!1),x)return;const{layout:g,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||y))return;kn(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,S=this.treeScale.y;m5(this.layoutCorrected,this.treeScale,this.path,p),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Oe());const{target:j}=d;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ep(this.prevProjectionDelta.x,this.projectionDelta.x),Ep(this.prevProjectionDelta.y,this.projectionDelta.y)),ul(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==S||!Up(this.projectionDelta.x,this.prevProjectionDelta.x)||!Up(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=os(),this.projectionDelta=os(),this.projectionDeltaWithTransform=os()}setAnimationOrigin(d,p=!1,x){const g=this.snapshot,y=g?g.latestValues:{},b={...this.latestValues},S=os();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const j=Oe(),M=g?g.source:void 0,O=this.layout?this.layout.source:void 0,B=M!==O,Y=this.getStack(),G=!Y||Y.members.length<=1,C=!!(B&&!G&&this.options.crossfade===!0&&!this.path.some(pT));this.animationProgress=0;let X;const I=x?.interpolateProjection(d);this.mixTargetDelta=Z=>{const L=Z/1e3,k=I?.(L);k?(S.x.translate=k.x,S.x.scale=ae(d.x.scale,1,L),S.x.origin=d.x.origin,S.x.originPoint=d.x.originPoint,S.y.translate=k.y,S.y.scale=ae(d.y.scale,1,L),S.y.origin=d.y.origin,S.y.originPoint=d.y.originPoint):(Zp(S.x,d.x,L),Zp(S.y,d.y,L)),this.setTargetDelta(S),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ir(j,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),mT(this.relativeTarget,this.relativeTargetOrigin,j,L),X&&G5(this.relativeTarget,X)&&(this.isProjectionDirty=!1),X||(X=Oe()),kn(X,this.relativeTarget)),B&&(this.animationValues=b,Z5(b,y,this.latestValues,L,C,G)),k&&k.rotate!==void 0&&(this.animationValues||(this.animationValues=b),this.animationValues.pathRotation=k.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Za(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ie.update(()=>{Qo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=us(0)),this.motionValue.jump(0,!1),this.currentAnimation=P5(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),d.onUpdate&&d.onUpdate(p)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(tT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:p,target:x,layout:g,latestValues:y}=d;if(!(!p||!x||!g)){if(this!==d&&this.layout&&g&&Zy(this.options.animationType,this.layout.layoutBox,g.layoutBox)){x=this.target||Oe();const b=Je(this.layout.layoutBox.x);x.x.min=d.target.x.min,x.x.max=x.x.min+b;const S=Je(this.layout.layoutBox.y);x.y.min=d.target.y.min,x.y.max=x.y.min+S}kn(p,x),Ko(p,y),ul(this.projectionDeltaWithTransform,this.layoutCorrected,p,y)}}registerSharedNode(d,p){this.sharedNodes.has(d)||this.sharedNodes.set(d,new I5),this.sharedNodes.get(d).add(p);const g=p.options.initialPromotionConfig;p.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(p):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:p,preserveFollowOpacity:x}={}){const g=this.getStack();g&&g.promote(this,x),d&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let p=!1;const{latestValues:x}=d;if((x.z||x.rotate||x.rotateX||x.rotateY||x.rotateZ||x.skewX||x.skewY)&&(p=!0),!p)return;const g={};x.z&&_u("z",d,g,this.animationValues);for(let y=0;y<Vu.length;y++)_u(`rotate${Vu[y]}`,d,g,this.animationValues),_u(`skew${Vu[y]}`,d,g,this.animationValues);d.render();for(const y in g)d.setStaticValue(y,g[y]),this.animationValues&&(this.animationValues[y]=g[y]);d.scheduleRender()}applyProjectionStyles(d,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const x=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=Zo(p?.pointerEvents)||"",d.transform=x?x(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=Zo(p?.pointerEvents)||""),this.hasProjected&&!pi(this.latestValues)&&(d.transform=x?x({},""):"none",this.hasProjected=!1);return}d.visibility="";const y=g.animationValues||g.latestValues;this.applyTransformsToTarget();let b=X5(this.projectionDeltaWithTransform,this.treeScale,y);x&&(b=x(y,b)),d.transform=b;const{x:S,y:j}=this.projectionDelta;d.transformOrigin=`${S.origin*100}% ${j.origin*100}% 0`,g.animationValues?d.opacity=g===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:d.opacity=g===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const M in hf){if(y[M]===void 0)continue;const{correct:O,applyTo:B,isCSSVariable:Y}=hf[M],G=b==="none"?y[M]:O(y[M],g);if(B){const C=B.length;for(let X=0;X<C;X++)d[B[X]]=G}else Y?this.options.visualElement.renderState.vars[M]=G:d[M]=G}this.options.layoutId&&(d.pointerEvents=g===this?Zo(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(Gp),this.root.sharedNodes.clear()}}}function nT(a){a.updateLayout()}function aT(a){const s=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&s&&a.hasListeners("didUpdate")){const{layoutBox:l,measuredBox:r}=a.layout,{animationType:u}=a.options,h=s.source!==a.layout.source;if(u==="size")Qn(y=>{const b=h?s.measuredBox[y]:s.layoutBox[y],S=Je(b);b.min=l[y].min,b.max=b.min+S});else if(u==="x"||u==="y"){const y=u==="x"?"y":"x";mf(h?s.measuredBox[y]:s.layoutBox[y],l[y])}else Zy(u,s.layoutBox,l)&&Qn(y=>{const b=h?s.measuredBox[y]:s.layoutBox[y],S=Je(l[y]);b.max=b.min+S,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[y].max=a.relativeTarget[y].min+S)});const d=os();ul(d,l,s.layoutBox);const p=os();h?ul(p,a.applyTransform(r,!0),s.measuredBox):ul(p,l,s.layoutBox);const x=!Hy(d);let g=!1;if(!a.resumeFrom){const y=a.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:b,layout:S}=y;if(b&&S){const j=a.options.layoutAnchor||void 0,M=Oe();ir(M,s.layoutBox,b.layoutBox,j);const O=Oe();ir(O,l,S.layoutBox,j),qy(M,O)||(g=!0),y.options.layoutRoot&&(a.relativeTarget=O,a.relativeTargetOrigin=M,a.relativeParent=y)}}}a.notifyListeners("didUpdate",{layout:l,snapshot:s,delta:p,layoutDelta:d,hasLayoutChanged:x,hasRelativeLayoutChanged:g})}else if(a.isLead()){const{onExitComplete:l}=a.options;l&&l()}a.options.transition=void 0}function iT(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function sT(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function lT(a){a.clearSnapshot()}function Gp(a){a.clearMeasurements()}function oT(a){a.isLayoutDirty=!0,a.updateLayout()}function Xp(a){a.isLayoutDirty=!1}function rT(a){a.isAnimationBlocked&&a.layout&&!a.isLayoutDirty&&(a.snapshot=a.layout,a.isLayoutDirty=!0)}function cT(a){const{visualElement:s}=a.options;s&&s.getProps().onBeforeLayoutMeasure&&s.notify("BeforeLayoutMeasure"),a.resetTransform()}function Kp(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function uT(a){a.resolveTargetDelta()}function fT(a){a.calcProjection()}function dT(a){a.resetSkewAndRotation()}function hT(a){a.removeLeadSnapshot()}function Zp(a,s,l){a.translate=ae(s.translate,0,l),a.scale=ae(s.scale,1,l),a.origin=s.origin,a.originPoint=s.originPoint}function Qp(a,s,l,r){a.min=ae(s.min,l.min,r),a.max=ae(s.max,l.max,r)}function mT(a,s,l,r){Qp(a.x,s.x,l.x,r),Qp(a.y,s.y,l.y,r)}function pT(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const gT={duration:.45,ease:[.4,0,.1,1]},$p=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Pp=$p("applewebkit/")&&!$p("chrome/")?Math.round:Dn;function Fp(a){a.min=Pp(a.min),a.max=Pp(a.max)}function yT(a){Fp(a.x),Fp(a.y)}function Zy(a,s,l){return a==="position"||a==="preserve-aspect"&&!B5(Bp(s),Bp(l),.2)}function xT(a){return a!==a.root&&a.scroll?.wasRoot}const vT=Ky({attachResizeListener:(a,s)=>pl(a,"resize",s),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ku={current:void 0},Qy=Ky({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!ku.current){const a=new vT({});a.mount(window),a.setOptions({layoutScroll:!0}),ku.current=a}return ku.current},resetTransform:(a,s)=>{a.style.transform=s!==void 0?s:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Gf=H.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function Jp(a,s){if(typeof a=="function")return a(s);a!=null&&(a.current=s)}function bT(...a){return s=>{let l=!1;const r=a.map(u=>{const h=Jp(u,s);return!l&&typeof h=="function"&&(l=!0),h});if(l)return()=>{for(let u=0;u<r.length;u++){const h=r[u];typeof h=="function"?h():Jp(a[u],null)}}}}function ST(...a){return H.useCallback(bT(...a),a)}class TT extends H.Component{getSnapshotBeforeUpdate(s){const l=this.props.childRef.current;if(Ho(l)&&s.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=l.offsetParent,u=Ho(r)&&r.offsetWidth||0,h=Ho(r)&&r.offsetHeight||0,d=getComputedStyle(l),p=this.props.sizeRef.current;p.height=parseFloat(d.height),p.width=parseFloat(d.width),p.top=l.offsetTop,p.left=l.offsetLeft,p.right=u-p.width-p.left,p.bottom=h-p.height-p.top,p.direction=d.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function jT({children:a,isPresent:s,anchorX:l,anchorY:r,root:u,pop:h}){const d=H.useId(),p=H.useRef(null),x=H.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:g}=H.useContext(Gf),y=a.props?.ref??a?.ref,b=ST(p,y);return H.useInsertionEffect(()=>{const{width:S,height:j,top:M,left:O,right:B,bottom:Y,direction:G}=x.current;if(s||h===!1||!p.current||!S||!j)return;const C=G==="rtl",X=l==="left"?C?`right: ${B}`:`left: ${O}`:C?`left: ${O}`:`right: ${B}`,I=r==="bottom"?`bottom: ${Y}`:`top: ${M}`;p.current.dataset.motionPopId=d;const Z=document.createElement("style");g&&(Z.nonce=g);const L=u??document.head;return L.appendChild(Z),Z.sheet&&Z.sheet.insertRule(`
|
|
10
|
+
[data-motion-pop-id="${d}"] {
|
|
11
11
|
position: absolute !important;
|
|
12
|
-
width: ${
|
|
13
|
-
height: ${
|
|
12
|
+
width: ${S}px !important;
|
|
13
|
+
height: ${j}px !important;
|
|
14
14
|
${X}px !important;
|
|
15
|
-
${
|
|
15
|
+
${I}px !important;
|
|
16
16
|
}
|
|
17
|
-
`),()=>{p.current?.removeAttribute("data-motion-pop-id"),F.contains(Y)&&F.removeChild(Y)}},[s]),h.jsx(ST,{isPresent:s,childRef:p,sizeRef:v,pop:m,children:m===!1?a:H.cloneElement(a,{ref:x})})}const AT=({children:a,initial:s,isPresent:o,onExitComplete:r,custom:c,presenceAffectsLayout:m,mode:f,anchorX:p,anchorY:v,root:g})=>{const b=Tf(MT),x=H.useId();let A=!0,E=H.useMemo(()=>(A=!1,{id:x,initial:s,isPresent:o,custom:c,onExitComplete:O=>{b.set(O,!0);for(const _ of b.values())if(!_)return;r&&r()},register:O=>(b.set(O,!1),()=>b.delete(O))}),[o,b,r]);return m&&A&&(E={...E}),H.useMemo(()=>{b.forEach((O,_)=>b.set(_,!1))},[o]),H.useEffect(()=>{!o&&!b.size&&r&&r()},[o]),a=h.jsx(TT,{pop:f==="popLayout",isPresent:o,anchorX:p,anchorY:v,root:g,children:a}),h.jsx(fr.Provider,{value:E,children:a})};function MT(){return new Map}function Py(a=!0){const s=H.useContext(fr);if(s===null)return[!0,null];const{isPresent:o,onExitComplete:r,register:c}=s,m=H.useId();H.useEffect(()=>{if(a)return c(m)},[a]);const f=H.useCallback(()=>a&&r&&r(m),[m,r,a]);return!o&&r?[!1,f]:[!0]}const qo=a=>a.key||"";function eg(a){const s=[];return H.Children.forEach(a,o=>{H.isValidElement(o)&&s.push(o)}),s}const ET=({children:a,custom:s,initial:o=!0,onExitComplete:r,presenceAffectsLayout:c=!0,mode:m="sync",propagate:f=!1,anchorX:p="left",anchorY:v="top",root:g})=>{const[b,x]=Py(f),A=H.useMemo(()=>eg(a),[a]),E=f&&!b?[]:A.map(qo),O=H.useRef(!0),_=H.useRef(A),U=Tf(()=>new Map),Q=H.useRef(new Set),[B,z]=H.useState(A),[X,st]=H.useState(A);Ag(()=>{O.current=!1,_.current=A;for(let K=0;K<X.length;K++){const W=qo(X[K]);E.includes(W)?(U.delete(W),Q.current.delete(W)):U.get(W)!==!0&&U.set(W,!1)}},[X,E.length,E.join("-")]);const Y=[];if(A!==B){let K=[...A];for(let W=0;W<X.length;W++){const I=X[W],lt=qo(I);E.includes(lt)||(K.splice(W,0,I),Y.push(I))}return m==="wait"&&Y.length&&(K=Y),st(eg(K)),z(A),null}const{forceRender:F}=H.useContext(Sf);return h.jsx(h.Fragment,{children:X.map(K=>{const W=qo(K),I=f&&!b?!1:A===X||E.includes(W),lt=()=>{if(Q.current.has(W))return;if(U.has(W))Q.current.add(W),U.set(W,!0);else return;let ft=!0;U.forEach(Ot=>{Ot||(ft=!1)}),ft&&(F?.(),st(_.current),f&&x?.(),r&&r())};return h.jsx(AT,{isPresent:I,initial:!O.current||o?void 0:!1,custom:s,presenceAffectsLayout:c,mode:m,root:g,onExitComplete:I?void 0:lt,anchorX:p,anchorY:v,children:K},W)})})},Fy=H.createContext({strict:!1}),ng={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let ag=!1;function wT(){if(ag)return;const a={};for(const s in ng)a[s]={isEnabled:o=>ng[s].some(r=>!!o[r])};Ey(a),ag=!0}function Jy(){return wT(),u5()}function jT(a){const s=Jy();for(const o in a)s[o]={...s[o],...a[o]};Ey(s)}const CT=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function cr(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||CT.has(a)}let Wy=a=>!cr(a);function NT(a){typeof a=="function"&&(Wy=s=>s.startsWith("on")?!cr(s):a(s))}try{NT(require("@emotion/is-prop-valid").default)}catch{}function DT(a,s,o){const r={};for(const c in a)c==="values"&&typeof a.values=="object"||He(a[c])||(Wy(c)||o===!0&&cr(c)||!s&&!cr(c)||a.draggable&&c.startsWith("onDrag"))&&(r[c]=a[c]);return r}const pr=H.createContext({});function zT(a,s){if(mr(a)){const{initial:o,animate:r}=a;return{initial:o===!1||yl(o)?o:void 0,animate:yl(r)?r:void 0}}return a.inherit!==!1?s:{}}function RT(a){const{initial:s,animate:o}=zT(a,H.useContext(pr));return H.useMemo(()=>({initial:s,animate:o}),[ig(s),ig(o)])}function ig(a){return Array.isArray(a)?a.join(" "):a}const Qf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Iy(a,s,o){for(const r in s)!He(s[r])&&!Ry(r,o)&&(a[r]=s[r])}function OT({transformTemplate:a},s){return H.useMemo(()=>{const o=Qf();return Xf(o,s,a),Object.assign({},o.vars,o.style)},[s])}function VT(a,s){const o=a.style||{},r={};return Iy(r,o,a),Object.assign(r,OT(a,s)),r}function _T(a,s){const o={},r=VT(a,s);return a.drag&&a.dragListener!==!1&&(o.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(o.tabIndex=0),o.style=r,o}const t1=()=>({...Qf(),attrs:{}});function kT(a,s,o,r){const c=H.useMemo(()=>{const m=t1();return Oy(m,s,_y(r),a.transformTemplate,a.style),{...m.attrs,style:{...m.style}}},[s]);if(a.style){const m={};Iy(m,a.style,a),c.style={...m,...c.style}}return c}const LT=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function $f(a){return typeof a!="string"||a.includes("-")?!1:!!(LT.indexOf(a)>-1||/[A-Z]/u.test(a))}function BT(a,s,o,{latestValues:r},c,m=!1,f){const v=(f??$f(a)?kT:_T)(s,r,c,a),g=DT(s,typeof a=="string",m),b=a!==H.Fragment?{...g,...v,ref:o}:{},{children:x}=s,A=H.useMemo(()=>He(x)?x.get():x,[x]);return H.createElement(a,{...b,children:A})}function UT({scrapeMotionValuesFromProps:a,createRenderState:s},o,r,c){return{latestValues:HT(o,r,c,a),renderState:s()}}function HT(a,s,o,r){const c={},m=r(a,{});for(const A in m)c[A]=Jo(m[A]);let{initial:f,animate:p}=a;const v=mr(a),g=Ay(a);s&&g&&!v&&a.inherit!==!1&&(f===void 0&&(f=s.initial),p===void 0&&(p=s.animate));let b=o?o.initial===!1:!1;b=b||f===!1;const x=b?p:f;if(x&&typeof x!="boolean"&&!hr(x)){const A=Array.isArray(x)?x:[x];for(let E=0;E<A.length;E++){const O=Lf(a,A[E]);if(O){const{transitionEnd:_,transition:U,...Q}=O;for(const B in Q){let z=Q[B];if(Array.isArray(z)){const X=b?z.length-1:0;z=z[X]}z!==null&&(c[B]=z)}for(const B in _)c[B]=_[B]}}}return c}const e1=a=>(s,o)=>{const r=H.useContext(pr),c=H.useContext(fr),m=()=>UT(a,s,r,c);return o?m():Tf(m)},qT=e1({scrapeMotionValuesFromProps:Kf,createRenderState:Qf}),YT=e1({scrapeMotionValuesFromProps:ky,createRenderState:t1}),GT=Symbol.for("motionComponentSymbol");function XT(a,s,o){const r=H.useRef(o);H.useInsertionEffect(()=>{r.current=o});const c=H.useRef(null);return H.useCallback(m=>{m&&a.onMount?.(m),s&&(m?s.mount(m):s.unmount());const f=r.current;if(typeof f=="function")if(m){const p=f(m);typeof p=="function"&&(c.current=p)}else c.current?(c.current(),c.current=null):f(m);else f&&(f.current=m)},[s])}const n1=H.createContext({});function as(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function KT(a,s,o,r,c,m){const{visualElement:f}=H.useContext(pr),p=H.useContext(Fy),v=H.useContext(fr),g=H.useContext(Zf),b=g.reducedMotion,x=g.skipAnimations,A=H.useRef(null),E=H.useRef(!1);r=r||p.renderer,!A.current&&r&&(A.current=r(a,{visualState:s,parent:f,props:o,presenceContext:v,blockInitialAnimation:v?v.initial===!1:!1,reducedMotionConfig:b,skipAnimations:x,isSVG:m}),E.current&&A.current&&(A.current.manuallyAnimateOnMount=!0));const O=A.current,_=H.useContext(n1);O&&!O.projection&&c&&(O.type==="html"||O.type==="svg")&&ZT(A.current,o,c,_);const U=H.useRef(!1);H.useInsertionEffect(()=>{O&&U.current&&O.update(o,v)});const Q=o[fy],B=H.useRef(!!Q&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(Q)&&window.MotionHasOptimisedAnimation?.(Q));return Ag(()=>{E.current=!0,O&&(U.current=!0,window.MotionIsMounted=!0,O.updateFeatures(),O.scheduleRenderMicrotask(),B.current&&O.animationState&&O.animationState.animateChanges())}),H.useEffect(()=>{O&&(!B.current&&O.animationState&&O.animationState.animateChanges(),B.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(Q)}),B.current=!1),O.enteringChildren=void 0)}),O}function ZT(a,s,o,r){const{layoutId:c,layout:m,drag:f,dragConstraints:p,layoutScroll:v,layoutRoot:g,layoutAnchor:b,layoutCrossfade:x}=s;a.projection=new o(a.latestValues,s["data-framer-portal-id"]?void 0:a1(a.parent)),a.projection.setOptions({layoutId:c,layout:m,alwaysMeasureLayout:!!f||p&&as(p),visualElement:a,animationType:typeof m=="string"?m:"both",initialPromotionConfig:r,crossfade:x,layoutScroll:v,layoutRoot:g,layoutAnchor:b})}function a1(a){if(a)return a.options.allowProjection!==!1?a.projection:a1(a.parent)}function Hc(a,{forwardMotionProps:s=!1,type:o}={},r,c){r&&jT(r);const m=o?o==="svg":$f(a),f=m?YT:qT;function p(g,b){let x;const A={...H.useContext(Zf),...g,layoutId:QT(g)},{isStatic:E}=A,O=RT(g),_=f(g,E);if(!E&&typeof window<"u"){$T();const U=PT(A);x=U.MeasureLayout,O.visualElement=KT(a,_,A,c,U.ProjectionNode,m)}return h.jsxs(pr.Provider,{value:O,children:[x&&O.visualElement?h.jsx(x,{visualElement:O.visualElement,...A}):null,BT(a,g,XT(_,O.visualElement,b),_,E,s,m)]})}p.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const v=H.forwardRef(p);return v[GT]=a,v}function QT({layoutId:a}){const s=H.useContext(Sf).id;return s&&a!==void 0?s+"-"+a:a}function $T(a,s){H.useContext(Fy).strict}function PT(a){const s=Jy(),{drag:o,layout:r}=s;if(!o&&!r)return{};const c={...o,...r};return{MeasureLayout:o?.isEnabled(a)||r?.isEnabled(a)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function FT(a,s){if(typeof Proxy>"u")return Hc;const o=new Map,r=(m,f)=>Hc(m,f,a,s),c=(m,f)=>r(m,f);return new Proxy(c,{get:(m,f)=>f==="create"?r:(o.has(f)||o.set(f,Hc(f,void 0,a,s)),o.get(f))})}const JT=(a,s)=>s.isSVG??$f(a)?new w5(s):new b5(s,{allowProjection:a!==H.Fragment});class WT extends Xa{constructor(s){super(s),s.animationState||(s.animationState=z5(s))}updateAnimationControlsSubscription(){const{animate:s}=this.node.getProps();hr(s)&&(this.unmountControls=s.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:s}=this.node.getProps(),{animate:o}=this.node.prevProps||{};s!==o&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let IT=0;class t3 extends Xa{constructor(){super(...arguments),this.id=IT++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:s,onExitComplete:o}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||s===r)return;if(s&&r===!1){if(this.isExitComplete){const{initial:m,custom:f}=this.node.getProps();if(typeof m=="string"||typeof m=="object"&&m!==null&&!Array.isArray(m)){const p=bi(this.node,m,f);if(p){const{transition:v,transitionEnd:g,...b}=p;for(const x in b)this.node.getValue(x)?.jump(b[x])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const c=this.node.animationState.setActive("exit",!s);o&&!s&&c.then(()=>{this.isExitComplete=!0,o(this.id)})}mount(){const{register:s,onExitComplete:o}=this.node.presenceContext||{};o&&o(this.id),s&&(this.unmount=s(this.id))}unmount(){}}const e3={animation:{Feature:WT},exit:{Feature:t3}};function Tl(a){return{point:{x:a.pageX,y:a.pageY}}}const n3=a=>s=>Hf(s)&&a(s,Tl(s));function ml(a,s,o,r){return xl(a,s,n3(o),r)}const i1=({current:a})=>a?a.ownerDocument.defaultView:null,sg=(a,s)=>Math.abs(a-s);function a3(a,s){const o=sg(a.x,s.x),r=sg(a.y,s.y);return Math.sqrt(o**2+r**2)}const lg=new Set(["auto","scroll"]);class s1{constructor(s,o,{transformPagePoint:r,contextWindow:c=window,dragSnapToOrigin:m=!1,distanceThreshold:f=3,element:p}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=E=>{this.handleScroll(E.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Yo(this.lastRawMoveEventInfo,this.transformPagePoint));const E=qc(this.lastMoveEventInfo,this.history),O=this.startEvent!==null,_=a3(E.offset,{x:0,y:0})>=this.distanceThreshold;if(!O&&!_)return;const{point:U}=E,{timestamp:Q}=Ue;this.history.push({...U,timestamp:Q});const{onStart:B,onMove:z}=this.handlers;O||(B&&B(this.lastMoveEvent,E),this.startEvent=this.lastMoveEvent),z&&z(this.lastMoveEvent,E)},this.handlePointerMove=(E,O)=>{this.lastMoveEvent=E,this.lastRawMoveEventInfo=O,this.lastMoveEventInfo=Yo(O,this.transformPagePoint),le.update(this.updatePoint,!0)},this.handlePointerUp=(E,O)=>{this.end();const{onEnd:_,onSessionEnd:U,resumeAnimation:Q}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&Q&&Q(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const B=qc(E.type==="pointercancel"?this.lastMoveEventInfo:Yo(O,this.transformPagePoint),this.history);this.startEvent&&_&&_(E,B),U&&U(E,B)},!Hf(s))return;this.dragSnapToOrigin=m,this.handlers=o,this.transformPagePoint=r,this.distanceThreshold=f,this.contextWindow=c||window;const v=Tl(s),g=Yo(v,this.transformPagePoint),{point:b}=g,{timestamp:x}=Ue;this.history=[{...b,timestamp:x}];const{onSessionStart:A}=o;A&&A(s,qc(g,this.history)),this.removeListeners=vl(ml(this.contextWindow,"pointermove",this.handlePointerMove),ml(this.contextWindow,"pointerup",this.handlePointerUp),ml(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(s){let o=s.parentElement;for(;o;){const r=getComputedStyle(o);(lg.has(r.overflowX)||lg.has(r.overflowY))&&this.scrollPositions.set(o,{x:o.scrollLeft,y:o.scrollTop}),o=o.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(s){const o=this.scrollPositions.get(s);if(!o)return;const r=s===window,c=r?{x:window.scrollX,y:window.scrollY}:{x:s.scrollLeft,y:s.scrollTop},m={x:c.x-o.x,y:c.y-o.y};m.x===0&&m.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=m.x,this.lastMoveEventInfo.point.y+=m.y):this.history.length>0&&(this.history[0].x-=m.x,this.history[0].y-=m.y),this.scrollPositions.set(s,c),le.update(this.updatePoint,!0))}updateHandlers(s){this.handlers=s}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ga(this.updatePoint)}}function Yo(a,s){return s?{point:s(a.point)}:a}function og(a,s){return{x:a.x-s.x,y:a.y-s.y}}function qc({point:a},s){return{point:a,delta:og(a,l1(s)),offset:og(a,i3(s)),velocity:s3(s,.1)}}function i3(a){return a[0]}function l1(a){return a[a.length-1]}function s3(a,s){if(a.length<2)return{x:0,y:0};let o=a.length-1,r=null;const c=l1(a);for(;o>=0&&(r=a[o],!(c.timestamp-r.timestamp>mn(s)));)o--;if(!r)return{x:0,y:0};r===a[0]&&a.length>2&&c.timestamp-r.timestamp>mn(s)*2&&(r=a[1]);const m=jn(c.timestamp-r.timestamp);if(m===0)return{x:0,y:0};const f={x:(c.x-r.x)/m,y:(c.y-r.y)/m};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function l3(a,{min:s,max:o},r){return s!==void 0&&a<s?a=r?se(s,a,r.min):Math.max(a,s):o!==void 0&&a>o&&(a=r?se(o,a,r.max):Math.min(a,o)),a}function rg(a,s,o){return{min:s!==void 0?a.min+s:void 0,max:o!==void 0?a.max+o-(a.max-a.min):void 0}}function o3(a,{top:s,left:o,bottom:r,right:c}){return{x:rg(a.x,o,c),y:rg(a.y,s,r)}}function ug(a,s){let o=s.min-a.min,r=s.max-a.max;return s.max-s.min<a.max-a.min&&([o,r]=[r,o]),{min:o,max:r}}function r3(a,s){return{x:ug(a.x,s.x),y:ug(a.y,s.y)}}function u3(a,s){let o=.5;const r=Qe(a),c=Qe(s);return c>r?o=pl(s.min,s.max-r,a.min):r>c&&(o=pl(a.min,a.max-c,s.min)),Pn(0,1,o)}function c3(a,s){const o={};return s.min!==void 0&&(o.min=s.min-a.min),s.max!==void 0&&(o.max=s.max-a.min),o}const xf=.35;function f3(a=xf){return a===!1?a=0:a===!0&&(a=xf),{x:cg(a,"left","right"),y:cg(a,"top","bottom")}}function cg(a,s,o){return{min:fg(a,s),max:fg(a,o)}}function fg(a,s){return typeof a=="number"?a:a[s]||0}const d3=new WeakMap;class h3{constructor(s){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=we(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=s}start(s,{snapToCursor:o=!1,distanceThreshold:r}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const m=x=>{o&&this.snapToCursor(Tl(x).point),this.stopAnimation()},f=(x,A)=>{const{drag:E,dragPropagation:O,onDragStart:_}=this.getProps();if(E&&!O&&(this.openDragLock&&this.openDragLock(),this.openDragLock=US(E),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=A,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Zn(Q=>{let B=this.getAxisMotionValue(Q).get()||0;if($n.test(B)){const{projection:z}=this.visualElement;if(z&&z.layout){const X=z.layout.layoutBox[Q];X&&(B=Qe(X)*(parseFloat(B)/100))}}this.originPoint[Q]=B}),_&&le.update(()=>_(x,A),!1,!0),rf(this.visualElement,"transform");const{animationState:U}=this.visualElement;U&&U.setActive("whileDrag",!0)},p=(x,A)=>{this.latestPointerEvent=x,this.latestPanInfo=A;const{dragPropagation:E,dragDirectionLock:O,onDirectionLock:_,onDrag:U}=this.getProps();if(!E&&!this.openDragLock)return;const{offset:Q}=A;if(O&&this.currentDirection===null){this.currentDirection=p3(Q),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",A.point,Q),this.updateAxis("y",A.point,Q),this.visualElement.render(),U&&le.update(()=>U(x,A),!1,!0)},v=(x,A)=>{this.latestPointerEvent=x,this.latestPanInfo=A,this.stop(x,A),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:b}=this.getProps();this.panSession=new s1(s,{onSessionStart:m,onStart:f,onMove:p,onSessionEnd:v,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:b,distanceThreshold:r,contextWindow:i1(this.visualElement),element:this.visualElement.current})}stop(s,o){const r=s||this.latestPointerEvent,c=o||this.latestPanInfo,m=this.isDragging;if(this.cancel(),!m||!c||!r)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:p}=this.getProps();p&&le.postRender(()=>p(r,c))}cancel(){this.isDragging=!1;const{projection:s,animationState:o}=this.visualElement;s&&(s.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(s,o,r){const{drag:c}=this.getProps();if(!r||!Go(s,c,this.currentDirection))return;const m=this.getAxisMotionValue(s);let f=this.originPoint[s]+r[s];this.constraints&&this.constraints[s]&&(f=l3(f,this.constraints[s],this.elastic[s])),m.set(f)}resolveConstraints(){const{dragConstraints:s,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;s&&as(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&r?this.constraints=o3(r.layoutBox,s):this.constraints=!1,this.elastic=f3(o),c!==this.constraints&&!as(s)&&r&&this.constraints&&!this.hasMutatedConstraints&&Zn(m=>{this.constraints!==!1&&this.getAxisMotionValue(m)&&(this.constraints[m]=c3(r.layoutBox[m],this.constraints[m]))})}resolveRefConstraints(){const{dragConstraints:s,onMeasureDragConstraints:o}=this.getProps();if(!s||!as(s))return!1;const r=s.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;c.root&&(c.root.scroll=void 0,c.root.updateScroll());const m=m5(r,c.root,this.visualElement.getTransformPagePoint());let f=r3(c.layout.layoutBox,m);if(o){const p=o(f5(f));this.hasMutatedConstraints=!!p,p&&(f=jy(p))}return f}startAnimation(s){const{drag:o,dragMomentum:r,dragElastic:c,dragTransition:m,dragSnapToOrigin:f,onDragTransitionEnd:p}=this.getProps(),v=this.constraints||{},g=Zn(b=>{if(!Go(b,o,this.currentDirection))return;let x=v&&v[b]||{};(f===!0||f===b)&&(x={min:0,max:0});const A=c?200:1e6,E=c?40:1e7,O={type:"inertia",velocity:r?s[b]:0,bounceStiffness:A,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...m,...x};return this.startAxisValueAnimation(b,O)});return Promise.all(g).then(p)}startAxisValueAnimation(s,o){const r=this.getAxisMotionValue(s);return rf(this.visualElement,s),r.start(kf(s,r,0,o,this.visualElement,!1))}stopAnimation(){Zn(s=>this.getAxisMotionValue(s).stop())}getAxisMotionValue(s){const o=`_drag${s.toUpperCase()}`,c=this.visualElement.getProps()[o];return c||this.visualElement.getValue(s,this.visualElement.latestValues[s]??0)}snapToCursor(s){Zn(o=>{const{drag:r}=this.getProps();if(!Go(o,r,this.currentDirection))return;const{projection:c}=this.visualElement,m=this.getAxisMotionValue(o);if(c&&c.layout){const{min:f,max:p}=c.layout.layoutBox[o],v=m.get()||0;m.set(s[o]-se(f,p,.5)+v)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:s,dragConstraints:o}=this.getProps(),{projection:r}=this.visualElement;if(!as(o)||!r||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Zn(f=>{const p=this.getAxisMotionValue(f);if(p&&this.constraints!==!1){const v=p.get();c[f]=u3({min:v,max:v},this.constraints[f])}});const{transformTemplate:m}=this.visualElement.getProps();this.visualElement.current.style.transform=m?m({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Zn(f=>{if(!Go(f,s,null))return;const p=this.getAxisMotionValue(f),{min:v,max:g}=this.constraints[f];p.set(se(v,g,c[f]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;d3.set(this.visualElement,this);const s=this.visualElement.current,o=ml(s,"pointerdown",g=>{const{drag:b,dragListener:x=!0}=this.getProps(),A=g.target,E=A!==s&&KS(A);b&&x&&!E&&this.start(g)});let r;const c=()=>{const{dragConstraints:g}=this.getProps();as(g)&&g.current&&(this.constraints=this.resolveRefConstraints(),r||(r=m3(s,g.current,()=>this.scalePositionWithinConstraints())))},{projection:m}=this.visualElement,f=m.addEventListener("measure",c);m&&!m.layout&&(m.root&&m.root.updateScroll(),m.updateLayout()),le.read(c);const p=xl(window,"resize",()=>this.scalePositionWithinConstraints()),v=m.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:b})=>{this.isDragging&&b&&(Zn(x=>{const A=this.getAxisMotionValue(x);A&&(this.originPoint[x]+=g[x].translate,A.set(A.get()+g[x].translate))}),this.visualElement.render())}));return()=>{p(),o(),f(),v&&v(),r&&r()}}getProps(){const s=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:r=!1,dragPropagation:c=!1,dragConstraints:m=!1,dragElastic:f=xf,dragMomentum:p=!0}=s;return{...s,drag:o,dragDirectionLock:r,dragPropagation:c,dragConstraints:m,dragElastic:f,dragMomentum:p}}}function dg(a){let s=!0;return()=>{if(s){s=!1;return}a()}}function m3(a,s,o){const r=vp(a,dg(o)),c=vp(s,dg(o));return()=>{r(),c()}}function Go(a,s,o){return(s===!0||s===a)&&(o===null||o===a)}function p3(a,s=10){let o=null;return Math.abs(a.y)>s?o="y":Math.abs(a.x)>s&&(o="x"),o}class g3 extends Xa{constructor(s){super(s),this.removeGroupControls=Cn,this.removeListeners=Cn,this.controls=new h3(s)}mount(){const{dragControls:s}=this.node.getProps();s&&(this.removeGroupControls=s.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Cn}update(){const{dragControls:s}=this.node.getProps(),{dragControls:o}=this.node.prevProps||{};s!==o&&(this.removeGroupControls(),s&&(this.removeGroupControls=s.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Yc=a=>(s,o)=>{a&&le.update(()=>a(s,o),!1,!0)};class y3 extends Xa{constructor(){super(...arguments),this.removePointerDownListener=Cn}onPointerDown(s){this.session=new s1(s,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:i1(this.node)})}createPanHandlers(){const{onPanSessionStart:s,onPanStart:o,onPan:r,onPanEnd:c}=this.node.getProps();return{onSessionStart:Yc(s),onStart:Yc(o),onMove:Yc(r),onEnd:(m,f)=>{delete this.session,c&&le.postRender(()=>c(m,f))}}}mount(){this.removePointerDownListener=ml(this.node.current,"pointerdown",s=>this.onPointerDown(s))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Gc=!1;class x3 extends H.Component{componentDidMount(){const{visualElement:s,layoutGroup:o,switchLayoutGroup:r,layoutId:c}=this.props,{projection:m}=s;m&&(o.group&&o.group.add(m),r&&r.register&&c&&r.register(m),Gc&&m.root.didUpdate(),m.addEventListener("animationComplete",()=>{this.safeToRemove()}),m.setOptions({...m.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Wo.hasEverUpdated=!0}getSnapshotBeforeUpdate(s){const{layoutDependency:o,visualElement:r,drag:c,isPresent:m}=this.props,{projection:f}=r;return f&&(f.isPresent=m,s.layoutDependency!==o&&f.setOptions({...f.options,layoutDependency:o}),Gc=!0,c||s.layoutDependency!==o||o===void 0||s.isPresent!==m?f.willUpdate():this.safeToRemove(),s.isPresent!==m&&(m?f.promote():f.relegate()||le.postRender(()=>{const p=f.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:s,layoutAnchor:o}=this.props,{projection:r}=s;r&&(r.options.layoutAnchor=o,r.root.didUpdate(),Uf.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:s,layoutGroup:o,switchLayoutGroup:r}=this.props,{projection:c}=s;Gc=!0,c&&(c.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(c),r&&r.deregister&&r.deregister(c))}safeToRemove(){const{safeToRemove:s}=this.props;s&&s()}render(){return null}}function o1(a){const[s,o]=Py(),r=H.useContext(Sf);return h.jsx(x3,{...a,layoutGroup:r,switchLayoutGroup:H.useContext(n1),isPresent:s,safeToRemove:o})}const v3={pan:{Feature:y3},drag:{Feature:g3,ProjectionNode:$y,MeasureLayout:o1}};function hg(a,s,o){const{props:r}=a;a.animationState&&r.whileHover&&a.animationState.setActive("whileHover",o==="Start");const c="onHover"+o,m=r[c];m&&le.postRender(()=>m(s,Tl(s)))}class b3 extends Xa{mount(){const{current:s}=this.node;s&&(this.unmount=qS(s,(o,r)=>(hg(this.node,r,"Start"),c=>hg(this.node,c,"End"))))}unmount(){}}class S3 extends Xa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let s=!1;try{s=this.node.current.matches(":focus-visible")}catch{s=!0}!s||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=vl(xl(this.node.current,"focus",()=>this.onFocus()),xl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function mg(a,s,o){const{props:r}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&r.whileTap&&a.animationState.setActive("whileTap",o==="Start");const c="onTap"+(o==="End"?"":o),m=r[c];m&&le.postRender(()=>m(s,Tl(s)))}class T3 extends Xa{mount(){const{current:s}=this.node;if(!s)return;const{globalTapTarget:o,propagate:r}=this.node.props;this.unmount=QS(s,(c,m)=>(mg(this.node,m,"Start"),(f,{success:p})=>mg(this.node,f,p?"End":"Cancel")),{useGlobalTarget:o,stopPropagation:r?.tap===!1})}unmount(){}}const vf=new WeakMap,Xc=new WeakMap,A3=a=>{const s=vf.get(a.target);s&&s(a)},M3=a=>{a.forEach(A3)};function E3({root:a,...s}){const o=a||document;Xc.has(o)||Xc.set(o,{});const r=Xc.get(o),c=JSON.stringify(s);return r[c]||(r[c]=new IntersectionObserver(M3,{root:a,...s})),r[c]}function w3(a,s,o){const r=E3(s);return vf.set(a,o),r.observe(a),()=>{vf.delete(a),r.unobserve(a)}}const j3={some:0,all:1};class C3 extends Xa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:s={}}=this.node.getProps(),{root:o,margin:r,amount:c="some",once:m}=s,f={root:o?o.current:void 0,rootMargin:r,threshold:typeof c=="number"?c:j3[c]},p=v=>{const{isIntersecting:g}=v;if(this.isInView===g||(this.isInView=g,m&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:b,onViewportLeave:x}=this.node.getProps(),A=g?b:x;A&&A(v)};this.stopObserver=w3(this.node.current,f,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:s,prevProps:o}=this.node;["amount","margin","root"].some(N3(s,o))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function N3({viewport:a={}},{viewport:s={}}={}){return o=>a[o]!==s[o]}const D3={inView:{Feature:C3},tap:{Feature:T3},focus:{Feature:S3},hover:{Feature:b3}},z3={layout:{ProjectionNode:$y,MeasureLayout:o1}},R3={...e3,...D3,...v3,...z3},pg=FT(R3,JT),O3={ADR:0,Spec:1,SPEC:1,Feature:2,Claim:3,Test:4,Evidence:5,Release:6,Boundary:1,Profile:1,Risk:3,Issue:4};function Pf(a,s){let o=O3[a.family]??3;if(s==="packs"){const r=a.governancePacks&&a.governancePacks.length>0||a.packs&&a.packs.some(f=>f.includes("governance")||f.includes("core")),c=a.contractPacks&&a.contractPacks.length>0||a.packs&&a.packs.some(f=>f.includes("contract")),m=a.packs&&a.packs.length>0;r?o=1:c?o=2:m?o=3:o=0}else if(s==="validation"){const r=a.validation?.status||(a.status==="certified"?"pass":"unknown");r==="pass"?o=0:r==="warn"?o=1:r==="fail"?o=2:o=3}else if(s==="release"){const r=a.family==="Release",c=a.status||"active";r?o=3:c==="certified"?o=2:c==="active"?o=1:o=0}else if(s==="origins"){const r=a.originKind||"unknown";r==="ssot-core"?o=0:r==="ssot-origin"?o=1:r==="repo-local"?o=2:r==="extension-pack"||r==="generated"?o=3:o=4}else s==="proof"&&(a.family==="ADR"||a.family==="Spec"||a.family==="SPEC"?o=0:a.family==="Feature"?o=1:a.family==="Claim"?o=2:a.family==="Test"||a.family==="Evidence"?o=3:o=4);return o}function r1(a){const s=new Map;a.nodes.forEach(m=>s.set(m.id,m));const o=new Map,r=new Map,c=new Map;return a.edges.forEach(m=>{const f=r.get(m.from)||[];f.push(m.to),r.set(m.from,f);const p=o.get(m.to)||[];p.push(m.from),o.set(m.to,p);const v=c.get(m.from)||[];v.push(m),c.set(m.from,v);const g=c.get(m.to)||[];g.push(m),c.set(m.to,g)}),{nodeMap:s,incoming:o,outgoing:r,edgeMap:c}}function Kc(a,s,o){let r=a;const c=new Set;for(;r;){if(c.has(r))return!1;c.add(r);const m=s.get(r);if(!m||m.length===0)return!1;const f=m[0];if(o.has(f))return!0;r=f}return!1}function gg(a,s,o,r,c=220,m=90,f=1e3,p=600,v,g){const b={},x={};for(let Y=0;Y<=6;Y++)x[Y]=[];const A=new Set;g&&g.forEach(Y=>A.add(Y));const E=Array.from(r),O=new Set;for(;E.length>0;){const Y=E.shift();if(O.has(Y))continue;O.add(Y);const F=o.get(Y)||[];for(const K of F)A.add(K),O.has(K)||E.push(K)}const _=a.length>5e3;a.forEach((Y,F)=>{if(_){const W=Y.id.match(/-(\d+)$/),I=W?parseInt(W[1],10):-1;if(I!==-1){if(I>150&&I%500!==0)return}else if(F%50!==0)return}if(A.has(Y.id))return;const K=Pf(Y,v);x[K]||(x[K]=[]),x[K].push(Y.id)});const U=60,Q=120,B=200,z=52,X=32;let st=U;return Object.entries(x).forEach(([,Y])=>{const F=Y.length;if(F===0)return;let K=Math.min(4,Math.ceil(F/15));if(F>60){const Et=Math.max(12,Math.ceil(Math.sqrt(F)*1.5));K=Math.min(X,Math.max(4,Math.ceil(F/Et)))}const I=(Math.ceil(F/K)-1)*m,lt=Math.max(90,(p-I)/2),ft=Math.max(B,(K-1)*z+120),Ot=st+ft/2;Y.forEach((Et,jt)=>{const N=jt%K,nt=Math.floor(jt/K),et=(N-(K-1)/2)*z;b[Et]={x:Ot+et,y:lt+nt*m}}),st+=ft+Q}),b}function V3(a,s,o,r,c=1e3,m=600,f=.05,p=3200,v=.06,g=130,b){const x={...o};a.forEach(B=>{r.has(B.id)||(x[B.id]?(x[B.id].vx===void 0&&(x[B.id].vx=0),x[B.id].vy===void 0&&(x[B.id].vy=0)):x[B.id]={x:c/2+(Math.random()-.5)*200,y:m/2+(Math.random()-.5)*200,vx:0,vy:0})});const A=a.filter(B=>!r.has(B.id)).map(B=>B.id),E=A.length;if(E>100){const z=new Map;A.forEach(st=>{const Y=x[st];if(!Y)return;const F=Math.floor(Y.x/250),K=Math.floor(Y.y/250),W=`${F},${K}`;z.has(W)||z.set(W,[]),z.get(W).push(st)});const X=new Set;A.forEach(st=>{const Y=x[st];if(!Y)return;const F=Math.floor(Y.x/250),K=Math.floor(Y.y/250);for(let W=-1;W<=1;W++)for(let I=-1;I<=1;I++){const lt=`${F+W},${K+I}`,ft=z.get(lt);if(ft)for(const Ot of ft){if(st===Ot)continue;const Et=st<Ot?`${st}:${Ot}`:`${Ot}:${st}`;if(X.has(Et))continue;X.add(Et);const jt=x[Ot];if(!jt)continue;const N=Y.x-jt.x,nt=Y.y-jt.y,et=N*N+nt*nt+.1,pt=Math.sqrt(et);if(pt<450){const C=Math.min(8,p/(et+400)),T=N/pt*C,L=nt/pt*C;(Y.fx===void 0||Y.fx===null)&&(Y.vx=(Y.vx||0)+T,Y.vy=(Y.vy||0)+L),(jt.fx===void 0||jt.fx===null)&&(jt.vx=(jt.vx||0)-T,jt.vy=(jt.vy||0)-L)}}}})}else for(let B=0;B<E;B++){const z=A[B],X=x[z];if(X)for(let st=B+1;st<E;st++){const Y=A[st],F=x[Y];if(!F)continue;const K=X.x-F.x,W=X.y-F.y,I=K*K+W*W+.1,lt=Math.sqrt(I);if(lt<450){const ft=Math.min(8,p/(I+400)),Ot=K/lt*ft,Et=W/lt*ft;(X.fx===void 0||X.fx===null)&&(X.vx=(X.vx||0)+Ot,X.vy=(X.vy||0)+Et),(F.fx===void 0||F.fx===null)&&(F.vx=(F.vx||0)-Ot,F.vy=(F.vy||0)-Et)}}}s.forEach(B=>{if(r.has(B.from)||r.has(B.to))return;const z=x[B.from],X=x[B.to];if(!z||!X)return;const st=X.x-z.x,Y=X.y-z.y,F=Math.sqrt(st*st+Y*Y)||1,K=F-g,W=Math.max(-12,Math.min(12,v*K)),I=st/F*W,lt=Y/F*W;(z.fx===void 0||z.fx===null)&&(z.vx=(z.vx||0)+I,z.vy=(z.vy||0)+lt),(X.fx===void 0||X.fx===null)&&(X.vx=(X.vx||0)-I,X.vy=(X.vy||0)-lt)});const O=c/2,_=m/2,U=b==="flow-force"?.72:.62,Q=new Map;return a.forEach(B=>Q.set(B.id,B)),A.forEach(B=>{const z=x[B];if(!z)return;if(z.fx!==void 0&&z.fx!==null&&z.fy!==void 0&&z.fy!==null){z.x=z.fx,z.y=z.fy,z.vx=0,z.vy=0;return}if(b==="flow-force"){const st=Q.get(B),Y=st?Pf(st):3,F=60+Y*220;let K=.28;(Y===0||Y===6)&&(K=.85);const W=(F-z.x)*K;z.vx=(z.vx||0)+W;const I=(_-z.y)*.075;z.vy=(z.vy||0)+I}else{const st=O-z.x,Y=_-z.y;z.vx=(z.vx||0)+st*f,z.vy=(z.vy||0)+Y*f}z.x+=(z.vx||0)*U,z.y+=(z.vy||0)*U,z.vx*=U,z.vy*=U;const X=40;z.x<X&&(z.x=X,z.vx=0),z.x>c-X&&(z.x=c-X,z.vx=0),z.y<X&&(z.y=X,z.vy=0),z.y>m-X&&(z.y=m-X,z.vy=0)}),x}function _3(a,s,o,r,c){if(c==="lineage"||c==="proof"||c==="packs"){const x=(a+o)/2;return`M ${a} ${s} C ${x} ${s}, ${x} ${r}, ${o} ${r}`}const m=o-a,f=r-s,p=Math.sqrt(m*m+f*f);if(p<40)return`M ${a} ${s} L ${o} ${r}`;const v=25,g=(a+o)/2-f/p*v,b=(s+r)/2+m/p*v;return`M ${a} ${s} Q ${g} ${b}, ${o} ${r}`}const pa={ADR:{bg:"bg-amber-100",text:"text-amber-800",border:"border-amber-300",glow:"shadow-amber-200"},Spec:{bg:"bg-blue-100",text:"text-blue-800",border:"border-blue-300",glow:"shadow-blue-200"},SPEC:{bg:"bg-blue-100",text:"text-blue-800",border:"border-blue-300",glow:"shadow-blue-200"},Feature:{bg:"bg-indigo-100",text:"text-indigo-800",border:"border-indigo-300",glow:"shadow-indigo-200"},Claim:{bg:"bg-purple-100",text:"text-purple-800",border:"border-purple-300",glow:"shadow-purple-200"},Test:{bg:"bg-rose-100",text:"text-rose-800",border:"border-rose-300",glow:"shadow-rose-200"},Evidence:{bg:"bg-emerald-100",text:"text-emerald-800",border:"border-emerald-300",glow:"shadow-emerald-200"},Release:{bg:"bg-teal-100",text:"text-teal-800",border:"border-teal-300",glow:"shadow-teal-200"},Boundary:{bg:"bg-slate-100",text:"text-slate-800",border:"border-slate-300",glow:"shadow-slate-200"},Profile:{bg:"bg-gray-100",text:"text-gray-800",border:"border-gray-300",glow:"shadow-gray-200"},Risk:{bg:"bg-orange-100",text:"text-orange-800",border:"border-orange-300",glow:"shadow-orange-200"},Issue:{bg:"bg-red-100",text:"text-red-800",border:"border-red-300",glow:"shadow-red-200"}};function yg(a,s,o,r,c,m){if(c==="lineage"||c==="proof"||c==="packs"){const E=(a+o)/2;return`M ${a} ${s+m} C ${E} ${s+m}, ${E} ${r+m}, ${o} ${r+m}`}const f=o-a,p=r-s,v=Math.sqrt(f*f+p*p)||1,g=-p/v,b=f/v,x=g*m,A=b*m;return`M ${a+x} ${s+A} L ${o+x} ${r+A}`}const k3=({payload:a,positions:s,mode:o,selectedNodeId:r,selectedNodeIds:c=new Set,focusNodeId:m,collapsedNodeIds:f,hiddenNodeIds:p,onSelectNode:v,onToggleCollapse:g,onToggleHideNode:b,onClearHiddenNodes:x,onUpdatePositions:A,viewSettings:E,precomputedIndices:O,egoHops:_=1,onAddGroup:U,onBulkHideNodes:Q,onBulkHighlightNodes:B,highlightedNodeIds:z=new Set,customGroups:X=[],isolateEgo:st=!1})=>{const Y=H.useRef(null),K=o==="network"||o==="flow-force"?"":"transition-all duration-300",[W,I]=H.useState({x:50,y:50}),[lt,ft]=H.useState(.85),[Ot,Et]=H.useState(!1),jt=H.useRef({x:0,y:0}),[N,nt]=H.useState(!1),[et,pt]=H.useState(null),[C,T]=H.useState(null),L=H.useRef({x:0,y:0}),at=H.useRef({x:0,y:0}),ot=H.useRef(!1),Tt=H.useRef(null);H.useEffect(()=>{const S=q=>{const $=q.target;if($&&($.tagName==="INPUT"||$.tagName==="TEXTAREA"||$.isContentEditable))return;const J=35/lt;q.key==="ArrowUp"?(q.preventDefault(),I(it=>({...it,y:it.y+J}))):q.key==="ArrowDown"?(q.preventDefault(),I(it=>({...it,y:it.y-J}))):q.key==="ArrowLeft"?(q.preventDefault(),I(it=>({...it,x:it.x+J}))):q.key==="ArrowRight"?(q.preventDefault(),I(it=>({...it,x:it.x-J}))):q.key==="+"||q.key==="="?(q.preventDefault(),ft(it=>Math.min(it*1.15,3))):q.key==="-"&&(q.preventDefault(),ft(it=>Math.max(it/1.15,.15)))};return window.addEventListener("keydown",S),()=>{window.removeEventListener("keydown",S)}},[lt]);const[dt,Bt]=H.useState(()=>{const S=-58.82352941176471,q=-50/.85,$=1050/.85,J=570/.85;return{left:S,right:$,top:q,bottom:J,zoom:.85}});H.useEffect(()=>{const $=setTimeout(()=>{const J=Y.current?.clientWidth||1100,it=Y.current?.clientHeight||620,vt=(0-W.x)/(lt||1),St=(0-W.y)/(lt||1),zt=(J-W.x)/(lt||1),wt=(it-W.y)/(lt||1);Bt({left:vt,right:zt,top:St,bottom:wt,zoom:lt})},Ot||C!==null?55:0);return()=>{clearTimeout($)}},[W.x,W.y,lt,Ot,C]);const Kt=Re.useMemo(()=>O||r1(a),[a,O]),At=et||r;H.useEffect(()=>{if(m&&s[m]&&Y.current){const S=s[m],q=Y.current,{width:$,height:J}=q.getBoundingClientRect(),it=Math.max(lt,1);ft(it),I({x:$/2-S.x*it,y:J/2-S.y*it})}},[m]),H.useEffect(()=>{if(Object.keys(s).length>0&&a!==Tt.current){if(Tt.current=a,a.nodes.length>1500)return;setTimeout(()=>{pn()},50)}},[a,s]);const qe=S=>{const q=S.target;q.closest(".graph-node-avatar")||q.closest(".canvas-button")||(Et(!0),S.currentTarget.setPointerCapture(S.pointerId),jt.current={x:S.clientX-W.x,y:S.clientY-W.y})},Ln=S=>{Ot&&I({x:S.clientX-jt.current.x,y:S.clientY-jt.current.y})},Bn=S=>{Ot&&(S.currentTarget.releasePointerCapture(S.pointerId),Et(!1))},je=(S,q)=>{q.stopPropagation(),q.currentTarget.setPointerCapture(q.pointerId),T(S),ot.current=!1;const $=s[S]||{x:0,y:0};L.current={x:q.clientX,y:q.clientY},at.current={x:$.x,y:$.y}},Nn=(S,q)=>{if(C!==S)return;q.stopPropagation();const $=q.clientX-L.current.x,J=q.clientY-L.current.y;(Math.abs($)>3||Math.abs(J)>3)&&(ot.current=!0);const it=$/lt,vt=J/lt,St={...s};if(St[S]){const zt=at.current.x+it,wt=at.current.y+vt;St[S]={...St[S],fx:zt,fy:wt,x:zt,y:wt},A(St)}},Ka=(S,q)=>{if(C!==S)return;q.stopPropagation(),q.currentTarget.releasePointerCapture(q.pointerId);const $=q.clientX-L.current.x,J=q.clientY-L.current.y,it=$/lt,vt=J/lt,St=at.current.x+it,zt=at.current.y+vt,wt={...s};wt[S]&&(o==="network"?wt[S]={...wt[S],fx:St,fy:zt,x:St,y:zt}:wt[S]={...wt[S],fx:null,fy:null,x:St,y:zt},A(wt)),T(null)},Za=(S,q)=>{if(q.stopPropagation(),o!=="network")return;const $={...s};$[S]&&($[S]={...$[S],fx:null,fy:null},A($))},hs=(S,q)=>{q.stopPropagation();const $={...s},J=$[S];if(J){const it=J.fx!==null&&J.fx!==void 0;$[S]={...J,fx:it?null:J.x,fy:it?null:J.y},A($)}},Un=S=>{S.preventDefault();const q=1.1,$=Y.current;if(!$)return;const J=$.getBoundingClientRect(),it=S.clientX-J.left,vt=S.clientY-J.top,St=(it-W.x)/lt,zt=(vt-W.y)/lt;let wt=lt;S.deltaY<0?wt=Math.min(lt*q,3):wt=Math.max(lt/q,.15),ft(wt),I({x:it-St*wt,y:vt-zt*wt})},pn=()=>{const S=Object.values(s);if(S.length===0)return;const q=S.map(mt=>mt.x),$=S.map(mt=>mt.y),J=Math.min(...q),it=Math.max(...q),vt=Math.min(...$),St=Math.max(...$),zt=it-J+200,wt=St-vt+200,Xt=Y.current;if(!Xt)return;const{width:Ht,height:$t}=Xt.getBoundingClientRect(),It=Math.min(Ht/zt,$t/wt,1.2);ft(It),I({x:(Ht-(it+J)*It)/2,y:($t-(St+vt)*It)/2})},Qa=()=>{ft(.85),I({x:80,y:70})},gn=Re.useMemo(()=>{const S=new Set;if(f.size===0)return S;const q=Array.from(f),$=new Set;for(;q.length>0;){const J=q.shift();if($.has(J))continue;$.add(J);const it=Kt.outgoing.get(J)||[];for(const vt of it)S.add(vt),$.has(vt)||q.push(vt)}return S},[f,Kt.outgoing]),Dn=Re.useCallback(S=>gn.has(S),[gn]),Hn=Re.useCallback(S=>f.has(S.from)||f.has(S.to)?!0:gn.has(S.from)||gn.has(S.to),[f,gn]),Ce=S=>{if(o==="validation")switch(S.validation?.status){case"fail":return{className:"bg-rose-500 text-white animate-pulse",icon:"fail",label:"ValidationError"};case"warn":return{className:"bg-amber-500 text-white",icon:"warn",label:"Warning"};default:return{className:"bg-emerald-500 text-white",icon:"verified",label:"Verified Proof"}}if(o==="proof"){if(S.proof?.testStatus==="failed")return{className:"bg-rose-500 text-white animate-pulse",icon:"fail",label:"ValidationError"};if(S.proof?.testStatus==="passed")return{className:"bg-indigo-500 text-white",icon:"pass",label:"Active Layer Node"}}return S.validation?.status==="fail"||S.proof?.testStatus==="failed"?{className:"bg-rose-500 text-white animate-pulse",icon:"fail",label:"ValidationError"}:S.proof?.testStatus==="passed"?{className:"bg-indigo-500 text-white",icon:"pass",label:"Active Layer Node"}:S.validation?.status==="pass"||S.status==="certified"?{className:"bg-emerald-500 text-white",icon:"verified",label:"Verified Proof"}:S.validation?.status==="warn"?{className:"bg-amber-500 text-white",icon:"warn",label:"Warning"}:null},ms=Re.useMemo(()=>{switch(o){case"lineage":case"flow-force":return[{col:0,title:"ADR Setup"},{col:1,title:"Specification"},{col:2,title:"Core Features"},{col:3,title:"Claims"},{col:4,title:"Verifications"},{col:5,title:"Certificates"},{col:6,title:"Releases"}];case"proof":return[{col:0,title:"Specifications"},{col:1,title:"Implementations"},{col:2,title:"Claims assertions"},{col:3,title:"Verification Tests"},{col:4,title:"Target Releases/Risks"}];case"origins":return[{col:0,title:"Core Rules"},{col:1,title:"Specification Registry"},{col:2,title:"Local Repo Implementations"},{col:3,title:"Custom Extensions"},{col:4,title:"External Dependencies"}];case"packs":return[{col:0,title:"Core Registry (General)"},{col:1,title:"Governance Standards"},{col:2,title:"Contract Packs"},{col:3,title:"Extension Packs"}];case"validation":return[{col:0,title:"Passing (No Drift)"},{col:1,title:"Warnings (Drift Risk)"},{col:2,title:"Failures (Blockers)"},{col:3,title:"Draft / Unknown"}];case"release":return[{col:0,title:"Planned Backlog"},{col:1,title:"Active Development"},{col:2,title:"Certified Checked"},{col:3,title:"Official Release checkpoints"}];default:return[]}},[o]),$a=Re.useMemo(()=>{const S=new Map;return a.nodes.forEach(q=>{if(p.has(q.id)||Dn(q.id))return;const $=s[q.id];if(!$)return;const J=Pf(q,o),it=S.get(J);it?(it.left=Math.min(it.left,$.x),it.width=Math.max(it.width,$.x)):S.set(J,{left:$.x,center:$.x,width:$.x})}),S.forEach((q,$)=>{const J=q.left,it=q.width;S.set($,{left:J-70,center:(J+it)/2,width:Math.max(200,it-J+140)})}),S},[a.nodes,s,o,p,Dn]),Oe=180,yn=110,{minX:tt,maxX:Mt,minY:yt,maxY:Zt,mapScale:re,offsetX:ae,offsetY:Ne,visibleNodes:Qt}=Re.useMemo(()=>{const q=a.nodes.length>5e3?a.nodes.filter((Ft,ct)=>{if(p.has(Ft.id)||Dn(Ft.id))return!1;const fe=Ft.id.match(/-(\d+)$/),De=fe?parseInt(fe[1],10):-1;return De!==-1?De<=150||De%500===0:ct%50===0}):a.nodes.filter(Ft=>!p.has(Ft.id)&&!Dn(Ft.id)),$=new Set,J=q.filter(Ft=>$.has(Ft.id)?!1:($.add(Ft.id),!0));let it=1/0,vt=-1/0,St=1/0,zt=-1/0;J.forEach(Ft=>{const ct=s[Ft.id];ct&&(ct.x<it&&(it=ct.x),ct.x>vt&&(vt=ct.x),ct.y<St&&(St=ct.y),ct.y>zt&&(zt=ct.y))}),(it===1/0||vt===-1/0)&&(it=0,vt=1100),(St===1/0||zt===-1/0)&&(St=0,zt=620);const wt=100;it-=wt,vt+=wt,St-=wt,zt+=wt;const Xt=Math.max(1,vt-it),Ht=Math.max(1,zt-St),$t=(Oe-12)/Xt,It=(yn-12)/Ht,mt=Math.max(.001,Math.min($t,It)),gt=(Oe-Xt*mt)/2,Pt=(yn-Ht*mt)/2;return{minX:it,maxX:vt,minY:St,maxY:zt,mapScale:mt,offsetX:gt,offsetY:Pt,visibleNodes:J}},[a.nodes,s,p,f]),oe=Re.useMemo(()=>{if(!At)return null;const S=new Set([At]),q=new Set(Qt.map(it=>it.id));let $=new Set([At]);const J=_||1;for(let it=0;it<J;it++){const vt=new Set;$.forEach(St=>{const zt=new Set([St]),wt=[{id:St,d:0}];for(;wt.length>0;){const{id:Xt,d:Ht}=wt.shift(),$t=Kt.incoming.get(Xt)||[],It=Kt.outgoing.get(Xt)||[],mt=[...$t,...It];for(const gt of mt)zt.has(gt)||(zt.add(gt),q.has(gt)?S.has(gt)||(S.add(gt),vt.add(gt)):Ht<3&&wt.push({id:gt,d:Ht+1}))}}),$=vt}return S},[At,Kt,_,Qt]),qn=(S,q)=>({x:(S-tt)*re+ae,y:(q-yt)*re+Ne}),Fn=Re.useMemo(()=>{if(a.nodes.length>5e3){const q=new Set(Qt.map($=>$.id));return a.edges.filter($=>q.has($.from)&&q.has($.to)&&!Hn($))}return a.edges.filter(q=>!Hn(q))},[a.edges,Qt,Hn]);Y.current?.clientWidth,Y.current?.clientHeight;const en=dt.left,nn=dt.top,an=dt.right,me=dt.bottom,{renderedNodes:Si,renderedEdges:Pa}=Re.useMemo(()=>{const S=250/Math.max(.1,dt.zoom),q=en-S,$=an+S,J=nn-S,it=me+S,vt=[],St=new Set;Qt.forEach(mt=>{const gt=s[mt.id];gt&>.x>=q&>.x<=$&>.y>=J&>.y<=it&&(St.has(mt.id)||(vt.push(mt),St.add(mt.id)))});const zt=[r,m,C].filter(mt=>!!mt);zt.forEach(mt=>{if(!St.has(mt)){const gt=Kt.nodeMap.get(mt);gt&&!p.has(mt)&&!Dn(mt)&&(vt.push(gt),St.add(mt))}});const wt=[],Xt=new Set,Ht=new Set(vt.map(mt=>mt.id)),$t=new Set(zt),It=a.edges.length>2e3?900:2e3;for(const mt of Fn){const gt=$t.has(mt.from)||$t.has(mt.to);if(wt.length>=It&&!gt)continue;const Pt=`${mt.from}->${mt.to}:${mt.type||""}`;if(Xt.has(Pt)||p.has(mt.from)||p.has(mt.to)||Hn(mt)||(!Ht.has(mt.from)||!Ht.has(mt.to))&&!gt)continue;const Ft=s[mt.from],ct=s[mt.to];if(!Ft||!ct)continue;const fe=180/Math.max(.05,dt.zoom),De=Math.min(Ft.x,ct.x)-fe,Ve=Math.max(Ft.x,ct.x)+fe,Ge=Math.min(Ft.y,ct.y)-fe,$e=Math.max(Ft.y,ct.y)+fe;!(Ve>=en&&De<=an&&$e>=nn&&Ge<=me)&&!gt||(wt.push(mt),Xt.add(Pt))}return{renderedNodes:vt,renderedEdges:wt}},[Qt,Fn,s,en,an,nn,me,dt.zoom,r,m,C,Kt.nodeMap,p,f,Hn]),gr=Re.useMemo(()=>{const S=[],q=new Set,$=new Set(Qt.map(J=>J.id));return Qt.forEach(J=>{const it=(vt,St,zt)=>{(Kt.edgeMap.get(vt)||[]).forEach(Xt=>{if(Xt.from!==vt)return;const Ht=Xt.to;if(Ht!==J.id)if($.has(Ht)){if(St.length>0){const $t=`${J.id}->${Ht}`;q.has($t)||(q.add($t),S.push({from:J.id,to:Ht,type:[...zt,Xt].map(It=>It.type||It.label||"link").join(" -> "),originalEdges:[...zt,Xt],ghostNodeIds:St,isGhost:!0}))}}else St.length<3&&!St.includes(Ht)&&it(Ht,[...St,Ht],[...zt,Xt])})};it(J.id,[],[])}),S},[Qt,Kt.edgeMap]),Fa=qn(en,nn),Ti=qn(an,me),ga=Math.max(0,Math.min(Oe,Fa.x)),Al=Math.max(0,Math.min(yn,Fa.y)),Ml=Math.max(4,Math.min(Oe-ga,Ti.x-Fa.x)),El=Math.max(4,Math.min(yn-Al,Ti.y-Fa.y)),ps=S=>{if(!Y.current)return;const q=S.currentTarget.getBoundingClientRect(),$=S.clientX-q.left,J=S.clientY-q.top,it=($-ae)/(re||1)+tt,vt=(J-Ne)/(re||1)+yt,St=Y.current.clientWidth,zt=Y.current.clientHeight;I({x:St/2-it*lt,y:zt/2-vt*lt})},gs=S=>{S.stopPropagation(),S.preventDefault(),nt(!0),S.currentTarget.setPointerCapture(S.pointerId),ps(S)},ys=S=>{N&&(S.stopPropagation(),ps(S))},wl=S=>{N&&(S.stopPropagation(),nt(!1),S.currentTarget.releasePointerCapture(S.pointerId))},jl=S=>{switch(S){case"ADR":return"#d97706";case"SPEC":return"#2563eb";case"Feature":return"#4f46e5";case"Claim":return"#9333ea";case"Test":return"#e11d48";case"Evidence":return"#059669";case"Release":return"#0d9488";case"Boundary":return"#475569";case"Risk":return"#ea580c";case"Issue":return"#dc2626";default:return"#4b5563"}};return h.jsxs("div",{ref:Y,id:"lineage-graph-viewport",className:`relative w-full h-full overflow-hidden select-none cursor-grab active:cursor-grabbing transition-colors duration-300 ${E.theme==="steel-dark"?"bg-slate-900 border border-slate-800":"bg-slate-50/50 border border-slate-200"}`,onPointerDown:qe,onPointerMove:Ln,onPointerUp:Bn,onPointerLeave:Bn,onWheel:Un,children:[h.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-40",style:{backgroundImage:`radial-gradient(${E.theme==="steel-dark"?"#ffffff33":"#00000018"} 1px, transparent 1px)`,backgroundSize:"24px 24px",transform:`translate(${W.x}px, ${W.y}px)`}}),h.jsx("div",{className:"absolute top-4 left-4 pointer-events-none z-10 hidden sm:block",children:h.jsxs("span",{className:"text-[10px] font-mono tracking-wider text-slate-400 uppercase bg-slate-800/80 px-2 py-0.5 rounded border border-slate-700/80",children:[o.slice(0,1).toUpperCase()+o.slice(1)," Mode"]})}),h.jsxs("div",{className:`absolute w-0 h-0 origin-top-left ${Ot||C!==null?"":"transition-transform duration-300 ease-out"}`,style:{transform:`translate(${W.x}px, ${W.y}px) scale(${lt})`},children:[o!=="network"&&ms.map(S=>{const q=$a.get(S.col),$=q?.center??60+S.col*210;return h.jsxs("div",{className:"absolute pointer-events-none flex flex-col items-center",style:{left:q?.left??$-100,top:-30,width:q?.width??200,height:1200},children:[h.jsx("div",{className:`w-0 h-[850px] border-l border-dashed my-8 opacity-20 ${E.theme==="steel-dark"?"border-slate-500":"border-indigo-400"}`}),h.jsx("div",{className:`absolute top-0 px-2.5 py-1 rounded-full text-[9px] font-bold font-mono tracking-wider uppercase border shadow-sm backdrop-blur-md transition-colors ${E.theme==="steel-dark"?"bg-slate-800/90 text-slate-300 border-slate-700/80":"bg-white/95 text-indigo-800 border-indigo-100"}`,children:S.title})]},S.col)}),h.jsxs("svg",{className:"absolute overflow-visible pointer-events-none z-0",style:{width:1,height:1},children:[h.jsx("style",{children:`
|
|
17
|
+
`),()=>{p.current?.removeAttribute("data-motion-pop-id"),L.contains(Z)&&L.removeChild(Z)}},[s]),f.jsx(TT,{isPresent:s,childRef:p,sizeRef:x,pop:h,children:h===!1?a:H.cloneElement(a,{ref:b})})}const AT=({children:a,initial:s,isPresent:l,onExitComplete:r,custom:u,presenceAffectsLayout:h,mode:d,anchorX:p,anchorY:x,root:g})=>{const y=vf(wT),b=H.useId();let S=!0,j=H.useMemo(()=>(S=!1,{id:b,initial:s,isPresent:l,custom:u,onExitComplete:M=>{y.set(M,!0);for(const O of y.values())if(!O)return;r&&r()},register:M=>(y.set(M,!1),()=>y.delete(M))}),[l,y,r]);return h&&S&&(j={...j}),H.useMemo(()=>{y.forEach((M,O)=>y.set(O,!1))},[l]),H.useEffect(()=>{!l&&!y.size&&r&&r()},[l]),a=f.jsx(jT,{pop:d==="popLayout",isPresent:l,anchorX:p,anchorY:x,root:g,children:a}),f.jsx(lr.Provider,{value:j,children:a})};function wT(){return new Map}function $y(a=!0){const s=H.useContext(lr);if(s===null)return[!0,null];const{isPresent:l,onExitComplete:r,register:u}=s,h=H.useId();H.useEffect(()=>{if(a)return u(h)},[a]);const d=H.useCallback(()=>a&&r&&r(h),[h,r,a]);return!l&&r?[!1,d]:[!0]}const _o=a=>a.key||"";function Wp(a){const s=[];return H.Children.forEach(a,l=>{H.isValidElement(l)&&s.push(l)}),s}const MT=({children:a,custom:s,initial:l=!0,onExitComplete:r,presenceAffectsLayout:u=!0,mode:h="sync",propagate:d=!1,anchorX:p="left",anchorY:x="top",root:g})=>{const[y,b]=$y(d),S=H.useMemo(()=>Wp(a),[a]),j=d&&!y?[]:S.map(_o),M=H.useRef(!0),O=H.useRef(S),B=vf(()=>new Map),Y=H.useRef(new Set),[G,C]=H.useState(S),[X,I]=H.useState(S);Tg(()=>{M.current=!1,O.current=S;for(let k=0;k<X.length;k++){const W=_o(X[k]);j.includes(W)?(B.delete(W),Y.current.delete(W)):B.get(W)!==!0&&B.set(W,!1)}},[X,j.length,j.join("-")]);const Z=[];if(S!==G){let k=[...S];for(let W=0;W<X.length;W++){const J=X[W],tt=_o(J);j.includes(tt)||(k.splice(W,0,J),Z.push(J))}return h==="wait"&&Z.length&&(k=Z),I(Wp(k)),C(S),null}const{forceRender:L}=H.useContext(xf);return f.jsx(f.Fragment,{children:X.map(k=>{const W=_o(k),J=d&&!y?!1:S===X||j.includes(W),tt=()=>{if(Y.current.has(W))return;if(B.has(W))Y.current.add(W),B.set(W,!0);else return;let st=!0;B.forEach(jt=>{jt||(st=!1)}),st&&(L?.(),I(O.current),d&&b?.(),r&&r())};return f.jsx(AT,{isPresent:J,initial:!M.current||l?void 0:!1,custom:s,presenceAffectsLayout:u,mode:h,root:g,onExitComplete:J?void 0:tt,anchorX:p,anchorY:x,children:k},W)})})},Py=H.createContext({strict:!1}),Ip={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let tg=!1;function NT(){if(tg)return;const a={};for(const s in Ip)a[s]={isEnabled:l=>Ip[s].some(r=>!!l[r])};Ay(a),tg=!0}function Fy(){return NT(),u5()}function ET(a){const s=Fy();for(const l in a)s[l]={...s[l],...a[l]};Ay(s)}const CT=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function sr(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||CT.has(a)}let Jy=a=>!sr(a);function DT(a){typeof a=="function"&&(Jy=s=>s.startsWith("on")?!sr(s):a(s))}try{DT(require("@emotion/is-prop-valid").default)}catch{}function zT(a,s,l){const r={};for(const u in a)u==="values"&&typeof a.values=="object"||qe(a[u])||(Jy(u)||l===!0&&sr(u)||!s&&!sr(u)||a.draggable&&u.startsWith("onDrag"))&&(r[u]=a[u]);return r}const ur=H.createContext({});function RT(a,s){if(cr(a)){const{initial:l,animate:r}=a;return{initial:l===!1||ml(l)?l:void 0,animate:ml(r)?r:void 0}}return a.inherit!==!1?s:{}}function OT(a){const{initial:s,animate:l}=RT(a,H.useContext(ur));return H.useMemo(()=>({initial:s,animate:l}),[eg(s),eg(l)])}function eg(a){return Array.isArray(a)?a.join(" "):a}const Xf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wy(a,s,l){for(const r in s)!qe(s[r])&&!zy(r,l)&&(a[r]=s[r])}function VT({transformTemplate:a},s){return H.useMemo(()=>{const l=Xf();return qf(l,s,a),Object.assign({},l.vars,l.style)},[s])}function _T(a,s){const l=a.style||{},r={};return Wy(r,l,a),Object.assign(r,VT(a,s)),r}function kT(a,s){const l={},r=_T(a,s);return a.drag&&a.dragListener!==!1&&(l.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(l.tabIndex=0),l.style=r,l}const Iy=()=>({...Xf(),attrs:{}});function LT(a,s,l,r){const u=H.useMemo(()=>{const h=Iy();return Ry(h,s,Vy(r),a.transformTemplate,a.style),{...h.attrs,style:{...h.style}}},[s]);if(a.style){const h={};Wy(h,a.style,a),u.style={...h,...u.style}}return u}const BT=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Kf(a){return typeof a!="string"||a.includes("-")?!1:!!(BT.indexOf(a)>-1||/[A-Z]/u.test(a))}function UT(a,s,l,{latestValues:r},u,h=!1,d){const x=(d??Kf(a)?LT:kT)(s,r,u,a),g=zT(s,typeof a=="string",h),y=a!==H.Fragment?{...g,...x,ref:l}:{},{children:b}=s,S=H.useMemo(()=>qe(b)?b.get():b,[b]);return H.createElement(a,{...y,children:S})}function HT({scrapeMotionValuesFromProps:a,createRenderState:s},l,r,u){return{latestValues:qT(l,r,u,a),renderState:s()}}function qT(a,s,l,r){const u={},h=r(a,{});for(const S in h)u[S]=Zo(h[S]);let{initial:d,animate:p}=a;const x=cr(a),g=Ty(a);s&&g&&!x&&a.inherit!==!1&&(d===void 0&&(d=s.initial),p===void 0&&(p=s.animate));let y=l?l.initial===!1:!1;y=y||d===!1;const b=y?p:d;if(b&&typeof b!="boolean"&&!rr(b)){const S=Array.isArray(b)?b:[b];for(let j=0;j<S.length;j++){const M=Vf(a,S[j]);if(M){const{transitionEnd:O,transition:B,...Y}=M;for(const G in Y){let C=Y[G];if(Array.isArray(C)){const X=y?C.length-1:0;C=C[X]}C!==null&&(u[G]=C)}for(const G in O)u[G]=O[G]}}}return u}const tx=a=>(s,l)=>{const r=H.useContext(ur),u=H.useContext(lr),h=()=>HT(a,s,r,u);return l?h():vf(h)},YT=tx({scrapeMotionValuesFromProps:Yf,createRenderState:Xf}),GT=tx({scrapeMotionValuesFromProps:_y,createRenderState:Iy}),XT=Symbol.for("motionComponentSymbol");function KT(a,s,l){const r=H.useRef(l);H.useInsertionEffect(()=>{r.current=l});const u=H.useRef(null);return H.useCallback(h=>{h&&a.onMount?.(h),s&&(h?s.mount(h):s.unmount());const d=r.current;if(typeof d=="function")if(h){const p=d(h);typeof p=="function"&&(u.current=p)}else u.current?(u.current(),u.current=null):d(h);else d&&(d.current=h)},[s])}const ex=H.createContext({});function is(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function ZT(a,s,l,r,u,h){const{visualElement:d}=H.useContext(ur),p=H.useContext(Py),x=H.useContext(lr),g=H.useContext(Gf),y=g.reducedMotion,b=g.skipAnimations,S=H.useRef(null),j=H.useRef(!1);r=r||p.renderer,!S.current&&r&&(S.current=r(a,{visualState:s,parent:d,props:l,presenceContext:x,blockInitialAnimation:x?x.initial===!1:!1,reducedMotionConfig:y,skipAnimations:b,isSVG:h}),j.current&&S.current&&(S.current.manuallyAnimateOnMount=!0));const M=S.current,O=H.useContext(ex);M&&!M.projection&&u&&(M.type==="html"||M.type==="svg")&&QT(S.current,l,u,O);const B=H.useRef(!1);H.useInsertionEffect(()=>{M&&B.current&&M.update(l,x)});const Y=l[uy],G=H.useRef(!!Y&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(Y)&&window.MotionHasOptimisedAnimation?.(Y));return Tg(()=>{j.current=!0,M&&(B.current=!0,window.MotionIsMounted=!0,M.updateFeatures(),M.scheduleRenderMicrotask(),G.current&&M.animationState&&M.animationState.animateChanges())}),H.useEffect(()=>{M&&(!G.current&&M.animationState&&M.animationState.animateChanges(),G.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(Y)}),G.current=!1),M.enteringChildren=void 0)}),M}function QT(a,s,l,r){const{layoutId:u,layout:h,drag:d,dragConstraints:p,layoutScroll:x,layoutRoot:g,layoutAnchor:y,layoutCrossfade:b}=s;a.projection=new l(a.latestValues,s["data-framer-portal-id"]?void 0:nx(a.parent)),a.projection.setOptions({layoutId:u,layout:h,alwaysMeasureLayout:!!d||p&&is(p),visualElement:a,animationType:typeof h=="string"?h:"both",initialPromotionConfig:r,crossfade:b,layoutScroll:x,layoutRoot:g,layoutAnchor:y})}function nx(a){if(a)return a.options.allowProjection!==!1?a.projection:nx(a.parent)}function Lu(a,{forwardMotionProps:s=!1,type:l}={},r,u){r&&ET(r);const h=l?l==="svg":Kf(a),d=h?GT:YT;function p(g,y){let b;const S={...H.useContext(Gf),...g,layoutId:$T(g)},{isStatic:j}=S,M=OT(g),O=d(g,j);if(!j&&typeof window<"u"){PT();const B=FT(S);b=B.MeasureLayout,M.visualElement=ZT(a,O,S,u,B.ProjectionNode,h)}return f.jsxs(ur.Provider,{value:M,children:[b&&M.visualElement?f.jsx(b,{visualElement:M.visualElement,...S}):null,UT(a,g,KT(O,M.visualElement,y),O,j,s,h)]})}p.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const x=H.forwardRef(p);return x[XT]=a,x}function $T({layoutId:a}){const s=H.useContext(xf).id;return s&&a!==void 0?s+"-"+a:a}function PT(a,s){H.useContext(Py).strict}function FT(a){const s=Fy(),{drag:l,layout:r}=s;if(!l&&!r)return{};const u={...l,...r};return{MeasureLayout:l?.isEnabled(a)||r?.isEnabled(a)?u.MeasureLayout:void 0,ProjectionNode:u.ProjectionNode}}function JT(a,s){if(typeof Proxy>"u")return Lu;const l=new Map,r=(h,d)=>Lu(h,d,a,s),u=(h,d)=>r(h,d);return new Proxy(u,{get:(h,d)=>d==="create"?r:(l.has(d)||l.set(d,Lu(d,void 0,a,s)),l.get(d))})}const WT=(a,s)=>s.isSVG??Kf(a)?new N5(s):new S5(s,{allowProjection:a!==H.Fragment});class IT extends Qa{constructor(s){super(s),s.animationState||(s.animationState=R5(s))}updateAnimationControlsSubscription(){const{animate:s}=this.node.getProps();rr(s)&&(this.unmountControls=s.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:s}=this.node.getProps(),{animate:l}=this.node.prevProps||{};s!==l&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let t3=0;class e3 extends Qa{constructor(){super(...arguments),this.id=t3++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:s,onExitComplete:l}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||s===r)return;if(s&&r===!1){if(this.isExitComplete){const{initial:h,custom:d}=this.node.getProps();if(typeof h=="string"||typeof h=="object"&&h!==null&&!Array.isArray(h)){const p=bi(this.node,h,d);if(p){const{transition:x,transitionEnd:g,...y}=p;for(const b in y)this.node.getValue(b)?.jump(y[b])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const u=this.node.animationState.setActive("exit",!s);l&&!s&&u.then(()=>{this.isExitComplete=!0,l(this.id)})}mount(){const{register:s,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),s&&(this.unmount=s(this.id))}unmount(){}}const n3={animation:{Feature:IT},exit:{Feature:e3}};function vl(a){return{point:{x:a.pageX,y:a.pageY}}}const a3=a=>s=>Lf(s)&&a(s,vl(s));function fl(a,s,l,r){return pl(a,s,a3(l),r)}const ax=({current:a})=>a?a.ownerDocument.defaultView:null,ng=(a,s)=>Math.abs(a-s);function i3(a,s){const l=ng(a.x,s.x),r=ng(a.y,s.y);return Math.sqrt(l**2+r**2)}const ag=new Set(["auto","scroll"]);class ix{constructor(s,l,{transformPagePoint:r,contextWindow:u=window,dragSnapToOrigin:h=!1,distanceThreshold:d=3,element:p}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=j=>{this.handleScroll(j.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ko(this.lastRawMoveEventInfo,this.transformPagePoint));const j=Bu(this.lastMoveEventInfo,this.history),M=this.startEvent!==null,O=i3(j.offset,{x:0,y:0})>=this.distanceThreshold;if(!M&&!O)return;const{point:B}=j,{timestamp:Y}=He;this.history.push({...B,timestamp:Y});const{onStart:G,onMove:C}=this.handlers;M||(G&&G(this.lastMoveEvent,j),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,j)},this.handlePointerMove=(j,M)=>{this.lastMoveEvent=j,this.lastRawMoveEventInfo=M,this.lastMoveEventInfo=ko(M,this.transformPagePoint),ie.update(this.updatePoint,!0)},this.handlePointerUp=(j,M)=>{this.end();const{onEnd:O,onSessionEnd:B,resumeAnimation:Y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&Y&&Y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const G=Bu(j.type==="pointercancel"?this.lastMoveEventInfo:ko(M,this.transformPagePoint),this.history);this.startEvent&&O&&O(j,G),B&&B(j,G)},!Lf(s))return;this.dragSnapToOrigin=h,this.handlers=l,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=u||window;const x=vl(s),g=ko(x,this.transformPagePoint),{point:y}=g,{timestamp:b}=He;this.history=[{...y,timestamp:b}];const{onSessionStart:S}=l;S&&S(s,Bu(g,this.history)),this.removeListeners=gl(fl(this.contextWindow,"pointermove",this.handlePointerMove),fl(this.contextWindow,"pointerup",this.handlePointerUp),fl(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(s){let l=s.parentElement;for(;l;){const r=getComputedStyle(l);(ag.has(r.overflowX)||ag.has(r.overflowY))&&this.scrollPositions.set(l,{x:l.scrollLeft,y:l.scrollTop}),l=l.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(s){const l=this.scrollPositions.get(s);if(!l)return;const r=s===window,u=r?{x:window.scrollX,y:window.scrollY}:{x:s.scrollLeft,y:s.scrollTop},h={x:u.x-l.x,y:u.y-l.y};h.x===0&&h.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=h.x,this.lastMoveEventInfo.point.y+=h.y):this.history.length>0&&(this.history[0].x-=h.x,this.history[0].y-=h.y),this.scrollPositions.set(s,u),ie.update(this.updatePoint,!0))}updateHandlers(s){this.handlers=s}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Za(this.updatePoint)}}function ko(a,s){return s?{point:s(a.point)}:a}function ig(a,s){return{x:a.x-s.x,y:a.y-s.y}}function Bu({point:a},s){return{point:a,delta:ig(a,sx(s)),offset:ig(a,s3(s)),velocity:l3(s,.1)}}function s3(a){return a[0]}function sx(a){return a[a.length-1]}function l3(a,s){if(a.length<2)return{x:0,y:0};let l=a.length-1,r=null;const u=sx(a);for(;l>=0&&(r=a[l],!(u.timestamp-r.timestamp>gn(s)));)l--;if(!r)return{x:0,y:0};r===a[0]&&a.length>2&&u.timestamp-r.timestamp>gn(s)*2&&(r=a[1]);const h=Cn(u.timestamp-r.timestamp);if(h===0)return{x:0,y:0};const d={x:(u.x-r.x)/h,y:(u.y-r.y)/h};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function o3(a,{min:s,max:l},r){return s!==void 0&&a<s?a=r?ae(s,a,r.min):Math.max(a,s):l!==void 0&&a>l&&(a=r?ae(l,a,r.max):Math.min(a,l)),a}function sg(a,s,l){return{min:s!==void 0?a.min+s:void 0,max:l!==void 0?a.max+l-(a.max-a.min):void 0}}function r3(a,{top:s,left:l,bottom:r,right:u}){return{x:sg(a.x,l,u),y:sg(a.y,s,r)}}function lg(a,s){let l=s.min-a.min,r=s.max-a.max;return s.max-s.min<a.max-a.min&&([l,r]=[r,l]),{min:l,max:r}}function c3(a,s){return{x:lg(a.x,s.x),y:lg(a.y,s.y)}}function u3(a,s){let l=.5;const r=Je(a),u=Je(s);return u>r?l=dl(s.min,s.max-r,a.min):r>u&&(l=dl(a.min,a.max-u,s.min)),Fn(0,1,l)}function f3(a,s){const l={};return s.min!==void 0&&(l.min=s.min-a.min),s.max!==void 0&&(l.max=s.max-a.min),l}const pf=.35;function d3(a=pf){return a===!1?a=0:a===!0&&(a=pf),{x:og(a,"left","right"),y:og(a,"top","bottom")}}function og(a,s,l){return{min:rg(a,s),max:rg(a,l)}}function rg(a,s){return typeof a=="number"?a:a[s]||0}const h3=new WeakMap;class m3{constructor(s){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Oe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=s}start(s,{snapToCursor:l=!1,distanceThreshold:r}={}){const{presenceContext:u}=this.visualElement;if(u&&u.isPresent===!1)return;const h=b=>{l&&this.snapToCursor(vl(b).point),this.stopAnimation()},d=(b,S)=>{const{drag:j,dragPropagation:M,onDragStart:O}=this.getProps();if(j&&!M&&(this.openDragLock&&this.openDragLock(),this.openDragLock=HS(j),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qn(Y=>{let G=this.getAxisMotionValue(Y).get()||0;if(Pn.test(G)){const{projection:C}=this.visualElement;if(C&&C.layout){const X=C.layout.layoutBox[Y];X&&(G=Je(X)*(parseFloat(G)/100))}}this.originPoint[Y]=G}),O&&ie.update(()=>O(b,S),!1,!0),sf(this.visualElement,"transform");const{animationState:B}=this.visualElement;B&&B.setActive("whileDrag",!0)},p=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S;const{dragPropagation:j,dragDirectionLock:M,onDirectionLock:O,onDrag:B}=this.getProps();if(!j&&!this.openDragLock)return;const{offset:Y}=S;if(M&&this.currentDirection===null){this.currentDirection=g3(Y),this.currentDirection!==null&&O&&O(this.currentDirection);return}this.updateAxis("x",S.point,Y),this.updateAxis("y",S.point,Y),this.visualElement.render(),B&&ie.update(()=>B(b,S),!1,!0)},x=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S,this.stop(b,S),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new ix(s,{onSessionStart:h,onStart:d,onMove:p,onSessionEnd:x,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:r,contextWindow:ax(this.visualElement),element:this.visualElement.current})}stop(s,l){const r=s||this.latestPointerEvent,u=l||this.latestPanInfo,h=this.isDragging;if(this.cancel(),!h||!u||!r)return;const{velocity:d}=u;this.startAnimation(d);const{onDragEnd:p}=this.getProps();p&&ie.postRender(()=>p(r,u))}cancel(){this.isDragging=!1;const{projection:s,animationState:l}=this.visualElement;s&&(s.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(s,l,r){const{drag:u}=this.getProps();if(!r||!Lo(s,u,this.currentDirection))return;const h=this.getAxisMotionValue(s);let d=this.originPoint[s]+r[s];this.constraints&&this.constraints[s]&&(d=o3(d,this.constraints[s],this.elastic[s])),h.set(d)}resolveConstraints(){const{dragConstraints:s,dragElastic:l}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,u=this.constraints;s&&is(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&r?this.constraints=r3(r.layoutBox,s):this.constraints=!1,this.elastic=d3(l),u!==this.constraints&&!is(s)&&r&&this.constraints&&!this.hasMutatedConstraints&&Qn(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=f3(r.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:s,onMeasureDragConstraints:l}=this.getProps();if(!s||!is(s))return!1;const r=s.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;u.root&&(u.root.scroll=void 0,u.root.updateScroll());const h=p5(r,u.root,this.visualElement.getTransformPagePoint());let d=c3(u.layout.layoutBox,h);if(l){const p=l(d5(d));this.hasMutatedConstraints=!!p,p&&(d=My(p))}return d}startAnimation(s){const{drag:l,dragMomentum:r,dragElastic:u,dragTransition:h,dragSnapToOrigin:d,onDragTransitionEnd:p}=this.getProps(),x=this.constraints||{},g=Qn(y=>{if(!Lo(y,l,this.currentDirection))return;let b=x&&x[y]||{};(d===!0||d===y)&&(b={min:0,max:0});const S=u?200:1e6,j=u?40:1e7,M={type:"inertia",velocity:r?s[y]:0,bounceStiffness:S,bounceDamping:j,timeConstant:750,restDelta:1,restSpeed:10,...h,...b};return this.startAxisValueAnimation(y,M)});return Promise.all(g).then(p)}startAxisValueAnimation(s,l){const r=this.getAxisMotionValue(s);return sf(this.visualElement,s),r.start(Of(s,r,0,l,this.visualElement,!1))}stopAnimation(){Qn(s=>this.getAxisMotionValue(s).stop())}getAxisMotionValue(s){const l=`_drag${s.toUpperCase()}`,u=this.visualElement.getProps()[l];return u||this.visualElement.getValue(s,this.visualElement.latestValues[s]??0)}snapToCursor(s){Qn(l=>{const{drag:r}=this.getProps();if(!Lo(l,r,this.currentDirection))return;const{projection:u}=this.visualElement,h=this.getAxisMotionValue(l);if(u&&u.layout){const{min:d,max:p}=u.layout.layoutBox[l],x=h.get()||0;h.set(s[l]-ae(d,p,.5)+x)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:s,dragConstraints:l}=this.getProps(),{projection:r}=this.visualElement;if(!is(l)||!r||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};Qn(d=>{const p=this.getAxisMotionValue(d);if(p&&this.constraints!==!1){const x=p.get();u[d]=u3({min:x,max:x},this.constraints[d])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Qn(d=>{if(!Lo(d,s,null))return;const p=this.getAxisMotionValue(d),{min:x,max:g}=this.constraints[d];p.set(ae(x,g,u[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;h3.set(this.visualElement,this);const s=this.visualElement.current,l=fl(s,"pointerdown",g=>{const{drag:y,dragListener:b=!0}=this.getProps(),S=g.target,j=S!==s&&ZS(S);y&&b&&!j&&this.start(g)});let r;const u=()=>{const{dragConstraints:g}=this.getProps();is(g)&&g.current&&(this.constraints=this.resolveRefConstraints(),r||(r=p3(s,g.current,()=>this.scalePositionWithinConstraints())))},{projection:h}=this.visualElement,d=h.addEventListener("measure",u);h&&!h.layout&&(h.root&&h.root.updateScroll(),h.updateLayout()),ie.read(u);const p=pl(window,"resize",()=>this.scalePositionWithinConstraints()),x=h.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:y})=>{this.isDragging&&y&&(Qn(b=>{const S=this.getAxisMotionValue(b);S&&(this.originPoint[b]+=g[b].translate,S.set(S.get()+g[b].translate))}),this.visualElement.render())}));return()=>{p(),l(),d(),x&&x(),r&&r()}}getProps(){const s=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:r=!1,dragPropagation:u=!1,dragConstraints:h=!1,dragElastic:d=pf,dragMomentum:p=!0}=s;return{...s,drag:l,dragDirectionLock:r,dragPropagation:u,dragConstraints:h,dragElastic:d,dragMomentum:p}}}function cg(a){let s=!0;return()=>{if(s){s=!1;return}a()}}function p3(a,s,l){const r=gp(a,cg(l)),u=gp(s,cg(l));return()=>{r(),u()}}function Lo(a,s,l){return(s===!0||s===a)&&(l===null||l===a)}function g3(a,s=10){let l=null;return Math.abs(a.y)>s?l="y":Math.abs(a.x)>s&&(l="x"),l}class y3 extends Qa{constructor(s){super(s),this.removeGroupControls=Dn,this.removeListeners=Dn,this.controls=new m3(s)}mount(){const{dragControls:s}=this.node.getProps();s&&(this.removeGroupControls=s.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Dn}update(){const{dragControls:s}=this.node.getProps(),{dragControls:l}=this.node.prevProps||{};s!==l&&(this.removeGroupControls(),s&&(this.removeGroupControls=s.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Uu=a=>(s,l)=>{a&&ie.update(()=>a(s,l),!1,!0)};class x3 extends Qa{constructor(){super(...arguments),this.removePointerDownListener=Dn}onPointerDown(s){this.session=new ix(s,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ax(this.node)})}createPanHandlers(){const{onPanSessionStart:s,onPanStart:l,onPan:r,onPanEnd:u}=this.node.getProps();return{onSessionStart:Uu(s),onStart:Uu(l),onMove:Uu(r),onEnd:(h,d)=>{delete this.session,u&&ie.postRender(()=>u(h,d))}}}mount(){this.removePointerDownListener=fl(this.node.current,"pointerdown",s=>this.onPointerDown(s))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Hu=!1;class v3 extends H.Component{componentDidMount(){const{visualElement:s,layoutGroup:l,switchLayoutGroup:r,layoutId:u}=this.props,{projection:h}=s;h&&(l.group&&l.group.add(h),r&&r.register&&u&&r.register(h),Hu&&h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Qo.hasEverUpdated=!0}getSnapshotBeforeUpdate(s){const{layoutDependency:l,visualElement:r,drag:u,isPresent:h}=this.props,{projection:d}=r;return d&&(d.isPresent=h,s.layoutDependency!==l&&d.setOptions({...d.options,layoutDependency:l}),Hu=!0,u||s.layoutDependency!==l||l===void 0||s.isPresent!==h?d.willUpdate():this.safeToRemove(),s.isPresent!==h&&(h?d.promote():d.relegate()||ie.postRender(()=>{const p=d.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:s,layoutAnchor:l}=this.props,{projection:r}=s;r&&(r.options.layoutAnchor=l,r.root.didUpdate(),kf.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:s,layoutGroup:l,switchLayoutGroup:r}=this.props,{projection:u}=s;Hu=!0,u&&(u.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(u),r&&r.deregister&&r.deregister(u))}safeToRemove(){const{safeToRemove:s}=this.props;s&&s()}render(){return null}}function lx(a){const[s,l]=$y(),r=H.useContext(xf);return f.jsx(v3,{...a,layoutGroup:r,switchLayoutGroup:H.useContext(ex),isPresent:s,safeToRemove:l})}const b3={pan:{Feature:x3},drag:{Feature:y3,ProjectionNode:Qy,MeasureLayout:lx}};function ug(a,s,l){const{props:r}=a;a.animationState&&r.whileHover&&a.animationState.setActive("whileHover",l==="Start");const u="onHover"+l,h=r[u];h&&ie.postRender(()=>h(s,vl(s)))}class S3 extends Qa{mount(){const{current:s}=this.node;s&&(this.unmount=YS(s,(l,r)=>(ug(this.node,r,"Start"),u=>ug(this.node,u,"End"))))}unmount(){}}class T3 extends Qa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let s=!1;try{s=this.node.current.matches(":focus-visible")}catch{s=!0}!s||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=gl(pl(this.node.current,"focus",()=>this.onFocus()),pl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function fg(a,s,l){const{props:r}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&r.whileTap&&a.animationState.setActive("whileTap",l==="Start");const u="onTap"+(l==="End"?"":l),h=r[u];h&&ie.postRender(()=>h(s,vl(s)))}class j3 extends Qa{mount(){const{current:s}=this.node;if(!s)return;const{globalTapTarget:l,propagate:r}=this.node.props;this.unmount=$S(s,(u,h)=>(fg(this.node,h,"Start"),(d,{success:p})=>fg(this.node,d,p?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:r?.tap===!1})}unmount(){}}const gf=new WeakMap,qu=new WeakMap,A3=a=>{const s=gf.get(a.target);s&&s(a)},w3=a=>{a.forEach(A3)};function M3({root:a,...s}){const l=a||document;qu.has(l)||qu.set(l,{});const r=qu.get(l),u=JSON.stringify(s);return r[u]||(r[u]=new IntersectionObserver(w3,{root:a,...s})),r[u]}function N3(a,s,l){const r=M3(s);return gf.set(a,l),r.observe(a),()=>{gf.delete(a),r.unobserve(a)}}const E3={some:0,all:1};class C3 extends Qa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:s={}}=this.node.getProps(),{root:l,margin:r,amount:u="some",once:h}=s,d={root:l?l.current:void 0,rootMargin:r,threshold:typeof u=="number"?u:E3[u]},p=x=>{const{isIntersecting:g}=x;if(this.isInView===g||(this.isInView=g,h&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:y,onViewportLeave:b}=this.node.getProps(),S=g?y:b;S&&S(x)};this.stopObserver=N3(this.node.current,d,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:s,prevProps:l}=this.node;["amount","margin","root"].some(D3(s,l))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function D3({viewport:a={}},{viewport:s={}}={}){return l=>a[l]!==s[l]}const z3={inView:{Feature:C3},tap:{Feature:j3},focus:{Feature:T3},hover:{Feature:S3}},R3={layout:{ProjectionNode:Qy,MeasureLayout:lx}},O3={...n3,...z3,...b3,...R3},dg=JT(O3,WT),V3={ADR:0,Spec:1,SPEC:1,Feature:2,Claim:3,Test:4,Evidence:5,Release:6,Boundary:1,Profile:1,Risk:3,Issue:4};function ox(a,s){let l=V3[a.family]??3;if(s==="packs"){const r=a.governancePacks&&a.governancePacks.length>0||a.packs&&a.packs.some(d=>d.includes("governance")||d.includes("core")),u=a.contractPacks&&a.contractPacks.length>0||a.packs&&a.packs.some(d=>d.includes("contract")),h=a.packs&&a.packs.length>0;r?l=1:u?l=2:h?l=3:l=0}else if(s==="validation"){const r=a.validation?.status||(a.status==="certified"?"pass":"unknown");r==="pass"?l=0:r==="warn"?l=1:r==="fail"?l=2:l=3}else if(s==="release"){const r=a.family==="Release",u=a.status||"active";r?l=3:u==="certified"?l=2:u==="active"?l=1:l=0}else if(s==="origins"){const r=a.originKind||"unknown";r==="ssot-core"?l=0:r==="ssot-origin"?l=1:r==="repo-local"?l=2:r==="extension-pack"||r==="generated"?l=3:l=4}else s==="proof"&&(a.family==="ADR"||a.family==="Spec"||a.family==="SPEC"?l=0:a.family==="Feature"?l=1:a.family==="Claim"?l=2:a.family==="Test"||a.family==="Evidence"?l=3:l=4);return l}function rx(a){const s=new Map;a.nodes.forEach(h=>s.set(h.id,h));const l=new Map,r=new Map,u=new Map;return a.edges.forEach(h=>{const d=r.get(h.from)||[];d.push(h.to),r.set(h.from,d);const p=l.get(h.to)||[];p.push(h.from),l.set(h.to,p);const x=u.get(h.from)||[];x.push(h),u.set(h.from,x);const g=u.get(h.to)||[];g.push(h),u.set(h.to,g)}),{nodeMap:s,incoming:l,outgoing:r,edgeMap:u}}function Yu(a,s,l){let r=a;const u=new Set;for(;r;){if(u.has(r))return!1;u.add(r);const h=s.get(r);if(!h||h.length===0)return!1;const d=h[0];if(l.has(d))return!0;r=d}return!1}function hg(a,s,l,r,u=220,h=90,d=1e3,p=600,x,g){const y={},b={};for(let Z=0;Z<=6;Z++)b[Z]=[];const S=new Set;g&&g.forEach(Z=>S.add(Z));const j=Array.from(r),M=new Set;for(;j.length>0;){const Z=j.shift();if(M.has(Z))continue;M.add(Z);const L=l.get(Z)||[];for(const k of L)S.add(k),M.has(k)||j.push(k)}const O=a.length>5e3;a.forEach((Z,L)=>{if(O){const W=Z.id.match(/-(\d+)$/),J=W?parseInt(W[1],10):-1;if(J!==-1){if(J>150&&J%500!==0)return}else if(L%50!==0)return}if(S.has(Z.id))return;const k=ox(Z,x);b[k]||(b[k]=[]),b[k].push(Z.id)});const B=60,Y=120,G=200,C=52,X=32;let I=B;return Object.entries(b).forEach(([,Z])=>{const L=Z.length;if(L===0)return;let k=Math.min(4,Math.ceil(L/15));if(L>60){const dt=Math.max(12,Math.ceil(Math.sqrt(L)*1.5));k=Math.min(X,Math.max(4,Math.ceil(L/dt)))}const J=(Math.ceil(L/k)-1)*h,tt=Math.max(90,(p-J)/2),st=Math.max(G,(k-1)*C+120),jt=I+st/2;Z.forEach((dt,gt)=>{const D=gt%k,N=Math.floor(gt/k),q=(D-(k-1)/2)*C;y[dt]={x:jt+q,y:tt+N*h,iy:tt+N*h}}),I+=st+Y}),y}function _3(a,s,l,r,u=1e3,h=600,d=.05,p=3200,x=.06,g=130,y){const b={...l};a.forEach(G=>{r.has(G.id)||(b[G.id]?(b[G.id].vx===void 0&&(b[G.id].vx=0),b[G.id].vy===void 0&&(b[G.id].vy=0)):b[G.id]={x:u/2+(Math.random()-.5)*200,y:h/2+(Math.random()-.5)*200,vx:0,vy:0})});const S=a.filter(G=>!r.has(G.id)).map(G=>G.id),j=S.length;if(j>100){const C=new Map;S.forEach(I=>{const Z=b[I];if(!Z)return;const L=Math.floor(Z.x/250),k=Math.floor(Z.y/250),W=`${L},${k}`;C.has(W)||C.set(W,[]),C.get(W).push(I)});const X=new Set;S.forEach(I=>{const Z=b[I];if(!Z)return;const L=Math.floor(Z.x/250),k=Math.floor(Z.y/250);for(let W=-1;W<=1;W++)for(let J=-1;J<=1;J++){const tt=`${L+W},${k+J}`,st=C.get(tt);if(st)for(const jt of st){if(I===jt)continue;const dt=I<jt?`${I}:${jt}`:`${jt}:${I}`;if(X.has(dt))continue;X.add(dt);const gt=b[jt];if(!gt)continue;const D=Z.x-gt.x,N=Z.y-gt.y,q=D*D+N*N+.1,nt=Math.sqrt(q);if(nt<450){const yt=Math.min(8,p/(q+400)),A=D/nt*yt,Q=N/nt*yt;(Z.fx===void 0||Z.fx===null)&&(Z.vx=(Z.vx||0)+A,Z.vy=(Z.vy||0)+Q),(gt.fx===void 0||gt.fx===null)&&(gt.vx=(gt.vx||0)-A,gt.vy=(gt.vy||0)-Q)}}}})}else for(let G=0;G<j;G++){const C=S[G],X=b[C];if(X)for(let I=G+1;I<j;I++){const Z=S[I],L=b[Z];if(!L)continue;const k=X.x-L.x,W=X.y-L.y,J=k*k+W*W+.1,tt=Math.sqrt(J);if(tt<450){const st=Math.min(8,p/(J+400)),jt=k/tt*st,dt=W/tt*st;(X.fx===void 0||X.fx===null)&&(X.vx=(X.vx||0)+jt,X.vy=(X.vy||0)+dt),(L.fx===void 0||L.fx===null)&&(L.vx=(L.vx||0)-jt,L.vy=(L.vy||0)-dt)}}}s.forEach(G=>{if(r.has(G.from)||r.has(G.to))return;const C=b[G.from],X=b[G.to];if(!C||!X)return;const I=X.x-C.x,Z=X.y-C.y,L=Math.sqrt(I*I+Z*Z)||1,k=L-g,W=Math.max(-12,Math.min(12,x*k)),J=I/L*W,tt=Z/L*W;(C.fx===void 0||C.fx===null)&&(C.vx=(C.vx||0)+J,C.vy=(C.vy||0)+tt),(X.fx===void 0||X.fx===null)&&(X.vx=(X.vx||0)-J,X.vy=(X.vy||0)-tt)});const M=u/2,O=h/2,B=y==="flow-force"?.72:.62,Y=new Map;return a.forEach(G=>Y.set(G.id,G)),S.forEach(G=>{const C=b[G];if(!C)return;if(C.fx!==void 0&&C.fx!==null&&C.fy!==void 0&&C.fy!==null){C.x=C.fx,C.y=C.fy,C.vx=0,C.vy=0;return}if(y==="flow-force"){const Z=Y.get(G),L=Z?ox(Z):3,k=60+L*210;if(L===0||L===6){C.x=C.x*.05+k*.95,C.vx=0;const W=C.iy!==void 0?C.iy:O;C.y=C.y*.05+W*.95,C.vy=0}else{const W=(k-C.x)*.28;C.vx=(C.vx||0)+W;const J=(O-C.y)*.075;C.vy=(C.vy||0)+J}}else{const Z=M-C.x,L=O-C.y;C.vx=(C.vx||0)+Z*d,C.vy=(C.vy||0)+L*d}C.x+=(C.vx||0)*B,C.y+=(C.vy||0)*B,C.vx*=B,C.vy*=B;const X=40,I=y==="flow-force"?1600:u-X;C.x<X&&(C.x=X,C.vx=0),C.x>I&&(C.x=I,C.vx=0),C.y<X&&(C.y=X,C.vy=0),C.y>h-X&&(C.y=h-X,C.vy=0)}),b}function k3(a,s,l,r,u){if(u==="lineage"||u==="proof"||u==="packs"){const b=(a+l)/2;return`M ${a} ${s} C ${b} ${s}, ${b} ${r}, ${l} ${r}`}const h=l-a,d=r-s,p=Math.sqrt(h*h+d*d);if(p<40)return`M ${a} ${s} L ${l} ${r}`;const x=25,g=(a+l)/2-d/p*x,y=(s+r)/2+h/p*x;return`M ${a} ${s} Q ${g} ${y}, ${l} ${r}`}const ga={ADR:{bg:"bg-amber-100",text:"text-amber-800",border:"border-amber-300",glow:"shadow-amber-200"},Spec:{bg:"bg-blue-100",text:"text-blue-800",border:"border-blue-300",glow:"shadow-blue-200"},SPEC:{bg:"bg-blue-100",text:"text-blue-800",border:"border-blue-300",glow:"shadow-blue-200"},Feature:{bg:"bg-indigo-100",text:"text-indigo-800",border:"border-indigo-300",glow:"shadow-indigo-200"},Claim:{bg:"bg-purple-100",text:"text-purple-800",border:"border-purple-300",glow:"shadow-purple-200"},Test:{bg:"bg-rose-100",text:"text-rose-800",border:"border-rose-300",glow:"shadow-rose-200"},Evidence:{bg:"bg-emerald-100",text:"text-emerald-800",border:"border-emerald-300",glow:"shadow-emerald-200"},Release:{bg:"bg-teal-100",text:"text-teal-800",border:"border-teal-300",glow:"shadow-teal-200"},Boundary:{bg:"bg-slate-100",text:"text-slate-800",border:"border-slate-300",glow:"shadow-slate-200"},Profile:{bg:"bg-gray-100",text:"text-gray-800",border:"border-gray-300",glow:"shadow-gray-200"},Risk:{bg:"bg-orange-100",text:"text-orange-800",border:"border-orange-300",glow:"shadow-orange-200"},Issue:{bg:"bg-red-100",text:"text-red-800",border:"border-red-300",glow:"shadow-red-200"}};function mg(a,s,l,r,u,h){if(u==="lineage"||u==="proof"||u==="packs"){const j=(a+l)/2;return`M ${a} ${s+h} C ${j} ${s+h}, ${j} ${r+h}, ${l} ${r+h}`}const d=l-a,p=r-s,x=Math.sqrt(d*d+p*p)||1,g=-p/x,y=d/x,b=g*h,S=y*h;return`M ${a+b} ${s+S} L ${l+b} ${r+S}`}const pg=(a,s)=>{if(s==="validation")switch(a.validation?.status){case"fail":return{className:"bg-rose-500 text-white animate-pulse",icon:"fail",label:"ValidationError"};case"warn":return{className:"bg-amber-500 text-white",icon:"warn",label:"Warning"};default:return{className:"bg-emerald-500 text-white",icon:"verified",label:"Verified Proof"}}if(s==="proof"){if(a.proof?.testStatus==="failed")return{className:"bg-rose-500 text-white animate-pulse",icon:"fail",label:"ValidationError"};if(a.proof?.testStatus==="passed")return{className:"bg-indigo-500 text-white",icon:"pass",label:"Active Layer Node"}}return a.validation?.status==="fail"||a.proof?.testStatus==="failed"?{className:"bg-rose-500 text-white animate-pulse",icon:"fail",label:"ValidationError"}:a.proof?.testStatus==="passed"?{className:"bg-indigo-500 text-white",icon:"pass",label:"Active Layer Node"}:a.validation?.status==="pass"||a.status==="certified"?{className:"bg-emerald-500 text-white",icon:"verified",label:"Verified Proof"}:a.validation?.status==="warn"?{className:"bg-amber-500 text-white",icon:"warn",label:"Warning"}:null},L3=a=>{switch(a){case"ADR":return"#d97706";case"Spec":return"#2563eb";case"SPEC":return"#2563eb";case"Feature":return"#4f46e5";case"Claim":return"#9333ea";case"Test":return"#e11d48";case"Evidence":return"#059669";case"Release":return"#0d9488";case"Boundary":return"#475569";case"Risk":return"#ea580c";case"Issue":return"#dc2626";default:return"#4b5563"}};function B3({positions:a,payload:s,focusNodeId:l,draggedNodeId:r,onClickBackground:u}){const h=H.useRef(null),[d,p]=H.useState({x:50,y:50}),[x,g]=H.useState(.85),[y,b]=H.useState(!1),S=H.useRef({x:0,y:0}),j=H.useRef(null),M=H.useRef(null),[O,B]=H.useState(()=>{const L=-58.82352941176471,k=-50/.85,W=1050/.85,J=570/.85;return{left:L,right:W,top:k,bottom:J,zoom:.85}});H.useEffect(()=>{const L=k=>{const W=k.target;if(W&&(W.tagName==="INPUT"||W.tagName==="TEXTAREA"||W.isContentEditable))return;const J=35/x;k.key==="ArrowUp"?(k.preventDefault(),p(tt=>({...tt,y:tt.y+J}))):k.key==="ArrowDown"?(k.preventDefault(),p(tt=>({...tt,y:tt.y-J}))):k.key==="ArrowLeft"?(k.preventDefault(),p(tt=>({...tt,x:tt.x+J}))):k.key==="ArrowRight"?(k.preventDefault(),p(tt=>({...tt,x:tt.x-J}))):k.key==="+"||k.key==="="?(k.preventDefault(),g(tt=>Math.min(tt*1.15,3))):k.key==="-"&&(k.preventDefault(),g(tt=>Math.max(tt/1.15,.15)))};return window.addEventListener("keydown",L),()=>{window.removeEventListener("keydown",L)}},[x]),H.useEffect(()=>{const W=setTimeout(()=>{const J=h.current?.clientWidth||1100,tt=h.current?.clientHeight||620,st=(0-d.x)/(x||1),jt=(0-d.y)/(x||1),dt=(J-d.x)/(x||1),gt=(tt-d.y)/(x||1);B({left:st,right:dt,top:jt,bottom:gt,zoom:x})},y||r!==null?55:0);return()=>{clearTimeout(W)}},[d.x,d.y,x,y,r]);const Y=()=>{const L=Object.values(a);if(L.length===0)return;const k=L.map(yt=>yt.x),W=L.map(yt=>yt.y),J=Math.min(...k),tt=Math.max(...k),st=Math.min(...W),jt=Math.max(...W),dt=tt-J+200,gt=jt-st+200,D=h.current;if(!D)return;const{width:N,height:q}=D.getBoundingClientRect(),nt=Math.min(N/dt,q/gt,1.2);g(nt),p({x:(N-(tt+J)*nt)/2,y:(q-(jt+st)*nt)/2})},G=()=>{g(.85),p({x:80,y:70})};return H.useEffect(()=>{if(l&&a[l]&&h.current){const L=a[l],k=h.current,{width:W,height:J}=k.getBoundingClientRect(),tt=Math.max(x,1);g(tt),p({x:W/2-L.x*tt,y:J/2-L.y*tt})}},[l]),H.useEffect(()=>{Object.keys(a).length>0&&s!==M.current&&(M.current=s,setTimeout(()=>{Y()},50))},[s,a]),{containerRef:h,pan:d,setPan:p,zoom:x,setZoom:g,isPanning:y,setIsPanning:b,debouncedBounds:O,handleWorkspacePointerDown:L=>{const k=L.target;k.closest(".graph-node-avatar")||k.closest(".canvas-button")||(b(!0),L.currentTarget.setPointerCapture(L.pointerId),S.current={x:L.clientX-d.x,y:L.clientY-d.y},j.current={x:L.clientX,y:L.clientY})},handleWorkspacePointerMove:L=>{y&&p({x:L.clientX-S.current.x,y:L.clientY-S.current.y})},handleWorkspacePointerUp:L=>{if(y&&(L.currentTarget.releasePointerCapture(L.pointerId),b(!1),j.current&&u)){const k=L.clientX-j.current.x,W=L.clientY-j.current.y;Math.sqrt(k*k+W*W)<5&&u()}},handleWheel:L=>{L.preventDefault();const k=1.1,W=h.current;if(!W)return;const J=W.getBoundingClientRect(),tt=L.clientX-J.left,st=L.clientY-J.top,jt=(tt-d.x)/x,dt=(st-d.y)/x;let gt=x;L.deltaY<0?gt=Math.min(x*k,3):gt=Math.max(x/k,.15),g(gt),p({x:tt-jt*gt,y:st-dt*gt})},handleFitView:Y,handleResetZoom:G}}function U3({positions:a,zoom:s,mode:l,onUpdatePositions:r}){const[u,h]=H.useState(null),d=H.useRef({x:0,y:0}),p=H.useRef({x:0,y:0}),x=H.useRef(!1),g=(M,O)=>{O.stopPropagation(),O.currentTarget.setPointerCapture(O.pointerId),h(M),x.current=!1;const B=a[M]||{x:0,y:0};d.current={x:O.clientX,y:O.clientY},p.current={x:B.x,y:B.y}},y=(M,O)=>{if(u!==M)return;O.stopPropagation();const B=O.clientX-d.current.x,Y=O.clientY-d.current.y;(Math.abs(B)>3||Math.abs(Y)>3)&&(x.current=!0);const G=B/s,C=Y/s,X={...a};if(X[M]){const I=p.current.x+G,Z=p.current.y+C;X[M]={...X[M],fx:I,fy:Z,x:I,y:Z},r(X)}},b=(M,O)=>{if(u!==M)return;O.stopPropagation(),O.currentTarget.releasePointerCapture(O.pointerId);const B=O.clientX-d.current.x,Y=O.clientY-d.current.y,G=B/s,C=Y/s,X=p.current.x+G,I=p.current.y+C,Z={...a};Z[M]&&(l==="network"?Z[M]={...Z[M],fx:X,fy:I,x:X,y:I}:Z[M]={...Z[M],fx:null,fy:null,x:X,y:I},r(Z)),h(null)},S=(M,O)=>{if(O.stopPropagation(),l!=="network")return;const B={...a};B[M]&&(B[M]={...B[M],fx:null,fy:null},r(B))},j=(M,O)=>{O.stopPropagation();const B={...a},Y=B[M];if(Y){const G=Y.fx!==null&&Y.fx!==void 0;B[M]={...Y,fx:G?null:Y.x,fy:G?null:Y.y},r(B)}};return{draggedNodeId:u,setDraggedNodeId:h,hasDragged:x.current,handleNodePointerDown:g,handleNodePointerMove:y,handleNodePointerUp:b,handleNodeDoubleClick:S,handleTogglePinNode:j}}const H3=({payload:a,positions:s,mode:l,selectedNodeId:r,selectedNodeIds:u=new Set,focusNodeId:h,collapsedNodeIds:d,hiddenNodeIds:p,onSelectNode:x,onToggleCollapse:g,onToggleHideNode:y,onClearHiddenNodes:b,onUpdatePositions:S,viewSettings:j,precomputedIndices:M,egoHops:O=1,onAddGroup:B,onBulkHideNodes:Y,onBulkHighlightNodes:G,highlightedNodeIds:C=new Set,customGroups:X=[],isolateEgo:I=!1,filters:Z})=>{const k=l==="network"||l==="flow-force"?"":"transition-all duration-300",[W,J]=H.useState(!1),[tt,st]=H.useState(null),{containerRef:jt,pan:dt,setPan:gt,zoom:D,setZoom:N,isPanning:q,debouncedBounds:nt,handleWorkspacePointerDown:yt,handleWorkspacePointerMove:A,handleWorkspacePointerUp:Q,handleWheel:et,handleFitView:at,handleResetZoom:St}=B3({positions:s,payload:a,focusNodeId:h,draggedNodeId:null,onClickBackground:()=>x(null)}),{draggedNodeId:lt,hasDragged:Bt,handleNodePointerDown:Ee,handleNodePointerMove:Ft,handleNodePointerUp:Ye,handleNodeDoubleClick:Un,handleTogglePinNode:Jn}=U3({positions:s,zoom:D,mode:l,onUpdatePositions:S});H.useEffect(()=>{},[lt]);const Xt=H.useMemo(()=>M||rx(a),[a,M]),ln=H.useMemo(()=>{const V=new Set;if(d.size===0)return V;const ft=Array.from(d),ut=new Set;for(;ft.length>0;){const mt=ft.shift();if(ut.has(mt))continue;ut.add(mt);const Mt=Xt.outgoing.get(mt)||[];for(const zt of Mt)V.add(zt),ut.has(zt)||ft.push(zt)}return V},[d,Xt.outgoing]),Hn=V=>ln.has(V),yn=V=>d.has(V.from)||d.has(V.to)?!0:ln.has(V.from)||ln.has(V.to),ms=H.useMemo(()=>{switch(l){case"lineage":case"flow-force":return[{col:0,title:"ADR Setup"},{col:1,title:"Specification"},{col:2,title:"Core Features"},{col:3,title:"Claims"},{col:4,title:"Verifications"},{col:5,title:"Certificates"},{col:6,title:"Releases"}];case"proof":return[{col:0,title:"Specifications"},{col:1,title:"Implementations"},{col:2,title:"Claims assertions"},{col:3,title:"Verification Tests"},{col:4,title:"Target Releases/Risks"}];case"origins":return[{col:0,title:"Core Rules"},{col:1,title:"Specification Registry"},{col:2,title:"Local Repo Implementations"},{col:3,title:"Custom Extensions"},{col:4,title:"External Dependencies"}];case"packs":return[{col:0,title:"Core Registry (General)"},{col:1,title:"Governance Standards"},{col:2,title:"Contract Packs"},{col:3,title:"Extension Packs"}];case"validation":return[{col:0,title:"Passing (No Drift)"},{col:1,title:"Warnings (Drift Risk)"},{col:2,title:"Failures (Blockers)"},{col:3,title:"Draft / Unknown"}];case"release":return[{col:0,title:"Planned Backlog"},{col:1,title:"Active Development"},{col:2,title:"Certified Checked"},{col:3,title:"Official Release checkpoints"}];default:return[]}},[l]),Xe=180,ye=110,{minX:xn,maxX:Si,minY:$a,maxY:ps,mapScale:be,offsetX:Ti,offsetY:Pa,visibleNodes:Ke}=H.useMemo(()=>{const ft=a.nodes.length>5e3?a.nodes.filter((Ut,_t)=>{if(p.has(Ut.id)||Hn(Ut.id))return!1;const le=Ut.id.match(/-(\d+)$/),xt=le?parseInt(le[1],10):-1;return xt!==-1?xt<=150||xt%500===0:_t%50===0}):a.nodes.filter(Ut=>!p.has(Ut.id)&&!Hn(Ut.id)),ut=new Set,mt=ft.filter(Ut=>ut.has(Ut.id)?!1:(ut.add(Ut.id),!0));let Mt=1/0,zt=-1/0,bt=1/0,Tt=-1/0;mt.forEach(Ut=>{const _t=s[Ut.id];_t&&(_t.x<Mt&&(Mt=_t.x),_t.x>zt&&(zt=_t.x),_t.y<bt&&(bt=_t.y),_t.y>Tt&&(Tt=_t.y))}),(Mt===1/0||zt===-1/0)&&(Mt=0,zt=1100),(bt===1/0||Tt===-1/0)&&(bt=0,Tt=620);const Rt=100;Mt-=Rt,zt+=Rt,bt-=Rt,Tt+=Rt;const te=Math.max(1,zt-Mt),Nt=Math.max(1,Tt-bt),qt=(Xe-12)/te,Qt=(ye-12)/Nt,he=Math.max(.001,Math.min(qt,Qt)),ee=(Xe-te*he)/2,ze=(ye-Nt*he)/2;return{minX:Mt,maxX:zt,minY:bt,maxY:Tt,mapScale:he,offsetX:ee,offsetY:ze,visibleNodes:mt}},[a.nodes,s,p,d]),{hoveredEgo:F,selectedEgo:ht,focusedEgo:rt,anyEgoActive:Kt,egoNeighborhood:se}=H.useMemo(()=>{const V=new Set(Ke.map(bt=>bt.id)),ft=bt=>{if(!bt)return null;const Tt=new Set([bt]);let Rt=new Set([bt]);const te=O||1;for(let Nt=0;Nt<te;Nt++){const qt=new Set;Rt.forEach(Qt=>{const he=new Set([Qt]),ee=[{id:Qt,d:0}];for(;ee.length>0;){const{id:ze,d:Ut}=ee.shift(),_t=Xt.incoming.get(ze)||[],le=Xt.outgoing.get(ze)||[],xt=[..._t,...le];for(const At of xt)he.has(At)||(he.add(At),V.has(At)?Tt.has(At)||(Tt.add(At),qt.add(At)):Ut<3&&ee.push({id:At,d:Ut+1}))}}),Rt=qt}return Tt},ut=ft(tt),mt=ft(h);let Mt=ft(r);if(u&&u.size>0){const bt=new Set;u.forEach(Tt=>{const Rt=ft(Tt);Rt&&Rt.forEach(te=>bt.add(te))}),Mt=bt.size>0?bt:null}return{hoveredEgo:ut,selectedEgo:Mt,focusedEgo:mt,anyEgoActive:!!(ut||mt||Mt),egoNeighborhood:mt||Mt||ut}},[tt,r,u,h,Xt,O,Ke]),ce=(V,ft)=>({x:(V-xn)*be+Ti,y:(ft-$a)*be+Pa}),de=H.useMemo(()=>{if(a.nodes.length>5e3){const ft=new Set(Ke.map(ut=>ut.id));return a.edges.filter(ut=>ft.has(ut.from)&&ft.has(ut.to)&&!yn(ut))}return a.edges.length>2e3?[]:a.edges.filter(ft=>!yn(ft))},[a.edges,Ke,yn]),Ce=nt.left,ue=nt.top,zn=nt.right,qn=nt.bottom,{renderedNodes:ji,renderedEdges:ya}=H.useMemo(()=>{const V=250/Math.max(.1,nt.zoom),ft=Ce-V,ut=zn+V,mt=ue-V,Mt=qn+V,zt=[],bt=new Set;Ke.forEach(Nt=>{const qt=s[Nt.id];qt&&qt.x>=ft&&qt.x<=ut&&qt.y>=mt&&qt.y<=Mt&&(bt.has(Nt.id)||(zt.push(Nt),bt.add(Nt.id)))}),[r,h,lt].filter(Nt=>!!Nt).forEach(Nt=>{if(!bt.has(Nt)){const qt=Xt.nodeMap.get(Nt);qt&&!p.has(Nt)&&!Hn(Nt)&&(zt.push(qt),bt.add(Nt))}});const Rt=[],te=new Set;return zt.forEach(Nt=>{const qt=Xt.edgeMap.get(Nt.id);qt&&qt.forEach(Qt=>{const he=`${Qt.from}->${Qt.to}`;if(te.has(he)||p.has(Qt.from)||p.has(Qt.to)||yn(Qt))return;const ee=s[Qt.from],ze=s[Qt.to];!ee||!ze||(Rt.push(Qt),te.add(he))})}),{renderedNodes:zt,renderedEdges:Rt}},[Ke,s,Ce,zn,ue,qn,nt.zoom,r,h,lt,Xt.nodeMap,Xt.edgeMap,p,d,yn]),xa=H.useMemo(()=>{const V=[],ft=new Set,ut=new Set(Ke.map(mt=>mt.id));return Ke.forEach(mt=>{const Mt=(zt,bt,Tt)=>{(Xt.edgeMap.get(zt)||[]).forEach(te=>{if(te.from!==zt)return;const Nt=te.to;if(Nt!==mt.id)if(ut.has(Nt)){if(bt.length>0){const qt=`${mt.id}->${Nt}`;ft.has(qt)||(ft.add(qt),V.push({from:mt.id,to:Nt,type:[...Tt,te].map(Qt=>Qt.type||Qt.label||"link").join(" -> "),originalEdges:[...Tt,te],ghostNodeIds:bt,isGhost:!0}))}}else{const qt=Xt.nodeMap.get(Nt);qt&&Z&&!Z.families.has(qt.family)&&bt.length<3&&!bt.includes(Nt)&&Mt(Nt,[...bt,Nt],[...Tt,te])}})};Mt(mt.id,[],[])}),V},[Ke,Xt.edgeMap,Z,Xt.nodeMap]),Rn=ce(Ce,ue),De=ce(zn,qn),Fa=Math.max(0,Math.min(Xe,Rn.x)),va=Math.max(0,Math.min(ye,Rn.y)),fr=Math.max(4,Math.min(Xe-Fa,De.x-Rn.x)),bl=Math.max(4,Math.min(ye-va,De.y-Rn.y)),Ai=V=>{if(!jt.current)return;const ft=V.currentTarget.getBoundingClientRect(),ut=V.clientX-ft.left,mt=V.clientY-ft.top,Mt=(ut-Ti)/(be||1)+xn,zt=(mt-Pa)/(be||1)+$a,bt=jt.current.clientWidth,Tt=jt.current.clientHeight;gt({x:bt/2-Mt*D,y:Tt/2-zt*D})},Ja=V=>{V.stopPropagation(),V.preventDefault(),J(!0),V.currentTarget.setPointerCapture(V.pointerId),Ai(V)},dr=V=>{W&&(V.stopPropagation(),Ai(V))},Sl=V=>{W&&(V.stopPropagation(),J(!1),V.currentTarget.releasePointerCapture(V.pointerId))};return f.jsxs("div",{ref:jt,id:"lineage-graph-viewport",className:`relative w-full h-full overflow-hidden select-none cursor-grab active:cursor-grabbing transition-colors duration-300 ${j.theme==="steel-dark"?"bg-slate-900 border border-slate-800":"bg-slate-50/50 border border-slate-200"}`,onPointerDown:yt,onPointerMove:A,onPointerUp:Q,onPointerLeave:Q,onWheel:et,children:[f.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-40",style:{backgroundImage:`radial-gradient(${j.theme==="steel-dark"?"#ffffff33":"#00000018"} 1px, transparent 1px)`,backgroundSize:"24px 24px",transform:`translate(${dt.x}px, ${dt.y}px)`}}),f.jsx("div",{className:"absolute top-4 left-4 pointer-events-none z-10 hidden sm:block",children:f.jsxs("span",{className:"text-[10px] font-mono tracking-wider text-slate-400 uppercase bg-slate-800/80 px-2 py-0.5 rounded border border-slate-700/80",children:[l.slice(0,1).toUpperCase()+l.slice(1)," Mode"]})}),f.jsxs("div",{className:`absolute w-0 h-0 origin-top-left ${q||lt!==null?"":"transition-transform duration-300 ease-out"}`,style:{transform:`translate(${dt.x}px, ${dt.y}px) scale(${D})`},children:[l!=="network"&&ms.map(V=>{const ft=60+V.col*210;return f.jsxs("div",{className:"absolute pointer-events-none flex flex-col items-center",style:{left:ft-100,top:-30,width:200,height:1200},children:[f.jsx("div",{className:`w-0 h-[850px] border-l border-dashed my-8 opacity-20 ${j.theme==="steel-dark"?"border-slate-500":"border-indigo-400"}`}),f.jsx("div",{className:`absolute top-0 px-2.5 py-1 rounded-full text-[9px] font-bold font-mono tracking-wider uppercase border shadow-sm backdrop-blur-md transition-colors ${j.theme==="steel-dark"?"bg-slate-800/90 text-slate-300 border-slate-700/80":"bg-white/95 text-indigo-800 border-indigo-100"}`,children:V.title})]},V.col)}),f.jsxs("svg",{className:"absolute overflow-visible pointer-events-none z-0",style:{width:1,height:1},children:[f.jsx("style",{children:`
|
|
18
18
|
@keyframes line-flow-active {
|
|
19
19
|
to {
|
|
20
20
|
stroke-dashoffset: -20;
|
|
@@ -23,7 +23,7 @@ Error generating stack: `+i.message+`
|
|
|
23
23
|
.flow-active-dash {
|
|
24
24
|
animation: line-flow-active 0.85s linear infinite;
|
|
25
25
|
}
|
|
26
|
-
`}),h.jsxs("defs",{children:[h.jsx("marker",{id:"arrow",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto-start-reverse",children:h.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#94a3b8"})}),h.jsx("marker",{id:"arrow-selected",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:h.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#6366f1"})}),h.jsx("marker",{id:"arrow-error",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:h.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#ef4444"})}),h.jsx("marker",{id:"arrow-success",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:h.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#10b981"})}),h.jsx("marker",{id:"arrow-incoming",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:h.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#06b6d4"})}),h.jsx("marker",{id:"arrow-outgoing",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:h.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#ec4899"})})]}),Pa.map((S,q)=>{const $=s[S.from],J=s[S.to];if(!$||!J||p.has(S.from)||p.has(S.to)||Hn(S)||st&&oe&&(!oe.has(S.from)||!oe.has(S.to)))return null;const it=180/Math.max(.05,lt),vt=Math.min($.x,J.x)-it,St=Math.max($.x,J.x)+it,zt=Math.min($.y,J.y)-it,wt=Math.max($.y,J.y)+it,Xt=St>=en&&vt<=an&&wt>=nn&&zt<=me,Ht=r===S.from||r===S.to,$t=m===S.from||m===S.to,It=C===S.from||C===S.to;if(!Xt&&!Ht&&!$t&&!It)return null;const mt=et===S.from||et===S.to,gt=$t,Pt=At===S.to,Ft=At===S.from,ct=Pt||Ft,fe=!!(At&&oe&&oe.has(S.from)&&oe.has(S.to));let De="#94a3b8",Ve=E.edgeWidth,Ge=E.edgeOpacity,$e="url(#arrow)";o==="validation"&&(S.status==="stale"||S.status==="missing"||S.proof?.blocker)?(De="#ef4444",Ve=E.edgeWidth+1.2,$e="url(#arrow-error)"):o==="proof"&&(S.status==="active"?(De="#10b981",$e="url(#arrow-success)"):(De="#f59e0b",$e="url(#arrow-error)")),(Ht||gt||It)&&(De="#6366f1",Ve=E.edgeWidth+2.5,Ge=1,$e="url(#arrow-selected)"),At?ct?(Ge=1,Ve=E.edgeWidth+2,De=Pt?"#06b6d4":"#ec4899",$e=Pt?"url(#arrow-incoming)":"url(#arrow-outgoing)"):fe?(Ge=1,Ve=E.edgeWidth+1.2,De="#818cf8",$e="url(#arrow-selected)"):(Ge=.1,Ve=Math.max(1,E.edgeWidth-.5)):et&&(mt?(Ge=1,Ve=E.edgeWidth+1.5):Ge=.12);const he=_3($.x,$.y,J.x,J.y,o);return h.jsxs("g",{className:K,children:[h.jsx("path",{d:he,fill:"none",stroke:"transparent",strokeWidth:14,className:"cursor-pointer pointer-events-auto"}),At&&(ct||fe)&&h.jsx("path",{d:he,fill:"none",stroke:ct?Pt?"#06b6d4":"#ec4899":"#818cf8",strokeWidth:Ve+5,opacity:.16,className:`${K} blur-[2px]`}),At&&(ct||fe)&&h.jsx("path",{d:he,fill:"none",stroke:ct?Pt?"#06b6d4":"#ec4899":"#818cf8",strokeWidth:Ve,strokeDasharray:"6,6",opacity:.8,className:`flow-active-dash ${K}`}),h.jsx("path",{d:he,fill:"none",stroke:De,strokeWidth:Ve,strokeDasharray:At&&(ct||fe)?void 0:S.status==="planned"||S.status==="stale"?"5,5":void 0,opacity:Ge,markerEnd:$e,className:K}),E.showLabels&&S.type&&h.jsx("text",{x:($.x+J.x)/2,y:($.y+J.y)/2-4,fill:E.theme==="steel-dark"?"#94a3b8":"#475569",fontSize:9,fontFamily:"monospace",textAnchor:"middle",opacity:Ge,children:S.type})]},`${S.from}-${S.to}-${q}`)}),gr.map((S,q)=>{const $=s[S.from],J=s[S.to];if(!$||!J||st&&oe&&(!oe.has(S.from)||!oe.has(S.to)))return null;const it=r===S.from||r===S.to,vt=m===S.from||m===S.to,St=C===S.from||C===S.to,zt=et===S.from||et===S.to,wt=vt,Xt=At===S.to,Ht=At===S.from,$t=Xt||Ht,It=!!(At&&oe&&oe.has(S.from)&&oe.has(S.to));let mt=E.theme==="steel-dark"?"#a78bfa":"#8b5cf6",gt=E.edgeWidth||2,Pt=(E.edgeOpacity||.6)*.95,Ft="url(#arrow-selected)";(it||wt||St)&&(mt="#7c3aed",gt=(E.edgeWidth||2)+2,Pt=1),At?$t?(Pt=1,gt=(E.edgeWidth||2)+1.5,mt=Xt?"#06b6d4":"#ec4899",Ft=Xt?"url(#arrow-incoming)":"url(#arrow-outgoing)"):It?(Pt=1,gt=(E.edgeWidth||2)+1,mt="#818cf8"):Pt=.1:et&&(zt?(Pt=1,gt=(E.edgeWidth||2)+1.2):Pt=.12);const ct=($.x+J.x)/2,fe=($.y+J.y)/2,De=4,Ve=yg($.x,$.y,J.x,J.y,o,-De),Ge=yg($.x,$.y,J.x,J.y,o,De),$e=Kt.nodeMap.get(S.ghostNodeIds[0]);let he="G";if($e){const ln=($e.family||"").toUpperCase();ln.startsWith("SPEC")?he="S":ln.startsWith("ADR")?he="A":ln.startsWith("FEAT")?he="F":ln.startsWith("CLAIM")?he="C":ln.startsWith("TEST")?he="T":ln.startsWith("EVID")?he="E":ln.startsWith("RELE")||ln.startsWith("RISK")?he="R":ln.startsWith("BOU")?he="B":ln.startsWith("ISS")?he="I":he=ln.charAt(0)||"G"}const ya=S.originalEdges[0]?.type||S.originalEdges[0]?.label||"link",sn=S.originalEdges[S.originalEdges.length-1]?.type||S.originalEdges[S.originalEdges.length-1]?.label||"link",Xe=($.x+ct)/2,xs=($.y+fe)/2-8,Cl=(ct+J.x)/2,Ai=(fe+J.y)/2-8,vs=ya.length*5.2,Ja=sn.length*5.2;return h.jsxs("g",{className:K,children:[h.jsx("path",{d:Ve,fill:"none",stroke:mt,strokeWidth:gt-.5,strokeDasharray:"4,4",opacity:Pt,markerEnd:Ft,className:K}),h.jsx("path",{d:Ge,fill:"none",stroke:mt,strokeWidth:gt-.5,strokeDasharray:"4,4",opacity:Pt,markerEnd:Ft,className:K}),At&&($t||It)&&h.jsx("path",{d:Ve,fill:"none",stroke:$t?Xt?"#06b6d4":"#ec4899":"#818cf8",strokeWidth:gt+4,opacity:.14,className:`${K} blur-[2px]`}),h.jsx("circle",{cx:ct,cy:fe,r:12,fill:E.theme==="steel-dark"?"#1e293b":"#f8fafc",stroke:mt,strokeWidth:2,strokeDasharray:"3,2",opacity:Pt}),h.jsx("text",{x:ct,y:fe+3.5,fill:mt,fontSize:10,fontWeight:"bold",fontFamily:"monospace",textAnchor:"middle",opacity:Pt,children:he}),E.showLabels&&ya&&h.jsxs("g",{opacity:Pt,children:[h.jsx("rect",{x:Xe-vs/2-2,y:xs-7,width:vs+4,height:11,rx:2,fill:E.theme==="steel-dark"?"#111827":"#ffffff",stroke:mt,strokeWidth:.5,strokeOpacity:.4,opacity:.9}),h.jsx("text",{x:Xe,y:xs+1,fill:E.theme==="steel-dark"?"#cbd5e1":"#1e293b",fontSize:8,fontFamily:"monospace",textAnchor:"middle",children:ya})]}),E.showLabels&&sn&&h.jsxs("g",{opacity:Pt,children:[h.jsx("rect",{x:Cl-Ja/2-2,y:Ai-7,width:Ja+4,height:11,rx:2,fill:E.theme==="steel-dark"?"#111827":"#ffffff",stroke:mt,strokeWidth:.5,strokeOpacity:.4,opacity:.9}),h.jsx("text",{x:Cl,y:Ai+1,fill:E.theme==="steel-dark"?"#cbd5e1":"#1e293b",fontSize:8,fontFamily:"monospace",textAnchor:"middle",children:sn})]})]},`ghost-${S.from}-${S.to}-${q}`)})]}),Si.map(S=>{if(p.has(S.id))return null;const q=s[S.id];if(!q||Dn(S.id))return null;const $=150/Math.max(.05,lt),J=q.x>=en-$&&q.x<=an+$&&q.y>=nn-$&&q.y<=me+$,it=r===S.id||c&&c.has(S.id),vt=m===S.id,St=z&&z.has(S.id),wt=z&&z.size>0&&!St?"opacity-35 grayscale":"opacity-100";if(!J&&!it&&!vt&&C!==S.id&&!St)return null;const Xt=oe===null||oe.has(S.id);if(st&&oe&&!oe.has(S.id))return null;const Ht=(Kt.outgoing.get(S.id)||[]).length>0,$t=f.has(S.id),It=!!(At&&oe&&oe.has(S.id)&&S.id!==At),mt=At===S.id;let gt=pa[S.family]||pa.Profile;It&&(gt={bg:S.family==="ADR"?"bg-amber-200/95":S.family==="SPEC"?"bg-blue-200/95":S.family==="Feature"?"bg-indigo-200/95":S.family==="Claim"?"bg-purple-200/95":S.family==="Test"?"bg-rose-200/95":S.family==="Evidence"?"bg-emerald-200/95":S.family==="Release"?"bg-teal-200/95":S.family==="Boundary"?"bg-slate-200/95":S.family==="Risk"?"bg-orange-200/95":S.family==="Issue"?"bg-red-200/95":"bg-slate-300",text:S.family==="ADR"?"text-amber-950 font-extrabold":S.family==="SPEC"?"text-blue-950 font-extrabold":S.family==="Feature"?"text-indigo-950 font-extrabold":S.family==="Claim"?"text-purple-950 font-extrabold":S.family==="Test"?"text-rose-950 font-extrabold":S.family==="Evidence"?"text-emerald-950 font-extrabold":S.family==="Release"?"text-teal-950 font-extrabold":S.family==="Boundary"?"text-slate-950 font-extrabold":S.family==="Risk"?"text-orange-950 font-extrabold":S.family==="Issue"?"text-red-950 font-extrabold":"text-black",border:S.family==="ADR"?"border-amber-600":S.family==="SPEC"?"border-blue-600":S.family==="Feature"?"border-indigo-600":S.family==="Claim"?"border-purple-600":S.family==="Test"?"border-rose-600":S.family==="Evidence"?"border-emerald-600":S.family==="Release"?"border-teal-600":S.family==="Boundary"?"border-slate-700":S.family==="Risk"?"border-orange-600":S.family==="Issue"?"border-red-600":"border-slate-800",glow:"shadow-lg shadow-slate-350/50"});let Pt=it?"ring-4 ring-offset-2 ring-indigo-500 scale-105 z-40 shadow-indigo-400":vt?"ring-4 ring-offset-2 ring-teal-500 scale-105 z-40 shadow-teal-300":mt?"ring-4 ring-offset-2 ring-indigo-600 scale-110 z-50 shadow-indigo-500 shadow-2xl font-black":It?`${gt.border} border-[3.5px] scale-105 z-30 shadow-xl`:St?"ring-4 ring-offset-1 ring-amber-500 shadow-amber-300 scale-105 animate-pulse z-35":"border-slate-300 border-2";E.theme==="steel-dark"&&!it&&!vt&&!mt&&!It&&!St&&(Pt="border-slate-600 border");const Ft=X?.find(ct=>ct.nodeIds.includes(S.id));return h.jsxs(pg.div,{id:`node-${S.id}`,className:`absolute graph-node-avatar group flex flex-col items-center justify-center ${K} ${Xt?"scale-100":"opacity-25 scale-90 blur-[1px]"} ${wt}`,style:{left:q.x-30,top:q.y-30,width:60,height:60},onMouseEnter:()=>pt(S.id),onMouseLeave:()=>pt(null),onClick:ct=>{ct.stopPropagation(),!ot.current&&v(S.id,ct.shiftKey)},onPointerDown:ct=>je(S.id,ct),onPointerMove:ct=>Nn(S.id,ct),onPointerUp:ct=>Ka(S.id,ct),onDoubleClick:ct=>Za(S.id,ct),title:o==="network"?"Drag to place - Double-click to unpin":"Drag to reposition",children:[Ft&&h.jsxs("span",{className:"absolute -top-3 bg-slate-900 border border-slate-700 text-amber-300 font-extrabold px-1.5 py-0.2 rounded text-[7.5px] font-mono tracking-wider shadow z-50 whitespace-nowrap uppercase select-none",children:["* ",Ft.label]}),h.jsxs("div",{className:`w-12 h-12 rounded-full flex items-center justify-center font-bold text-xs shadow-md transition-transform duration-200 relative ${C===S.id?"cursor-grabbing scale-110 shadow-2xl ring-4 ring-indigo-500":"cursor-grab hover:cursor-grab active:cursor-grabbing hover:scale-115 active:scale-95"} ${gt.bg} ${gt.text} ${Pt} ${gt.glow}`,children:[h.jsx("span",{className:"text-[10px] font-mono select-none pointer-events-none",children:S.family.substring(0,3).toUpperCase()}),Ht&&h.jsx("button",{className:"absolute -bottom-1 -right-1 w-5 h-5 rounded-full bg-slate-800 text-white flex items-center justify-center border border-slate-600 hover:bg-slate-700 pointer-events-auto shadow-sm transition-colors z-20",onClick:ct=>{ct.stopPropagation(),g(S.id)},title:$t?"Expand Subtree":"Collapse Subtree",children:$t?h.jsx(mb,{size:10,className:"stroke-[3] text-emerald-400"}):h.jsx(ab,{size:10,className:"stroke-[3] text-slate-300"})}),h.jsx("button",{className:`absolute -top-1.5 -left-1.5 rounded-full w-5 h-5 flex items-center justify-center border shadow-sm transition-all pointer-events-auto z-30 ${q.fx!==null&&q.fx!==void 0?"bg-indigo-600 border-indigo-500 text-white hover:bg-indigo-700 scale-100 opacity-100":"bg-white border-slate-300 text-slate-400 opacity-0 group-hover:opacity-100 hover:text-slate-600 hover:bg-slate-50 scale-90 group-hover:scale-100"}`,onClick:ct=>hs(S.id,ct),title:q.fx!==null&&q.fx!==void 0?"Click to unpin node (Release physics)":"Click to pin node in current position",children:h.jsx(cb,{size:9,className:q.fx!==null&&q.fx!==void 0?"rotate-45 fill-white":"rotate-45"})}),Ce(S)&&(()=>{const ct=Ce(S);return h.jsxs("div",{className:`absolute -top-1.5 -right-1.5 rounded-full w-5 h-5 flex items-center justify-center border border-white shadow-md z-30 pointer-events-none ${ct.className}`,title:ct.label,children:[ct.icon==="fail"&&h.jsx(xi,{size:10,className:"stroke-[4] text-white"}),ct.icon==="warn"&&h.jsx(Lv,{size:10,className:"stroke-[3] text-white"}),ct.icon==="verified"&&h.jsx(Km,{size:10,className:"stroke-[4] text-white"}),ct.icon==="pass"&&h.jsx(Km,{size:10,className:"stroke-[4] text-white"})]})})(),h.jsx("button",{className:"absolute -bottom-1.5 -left-1.5 rounded-full w-5 h-5 bg-white border border-slate-300 text-slate-400 hover:text-rose-500 hover:border-rose-300 flex items-center justify-center shadow-sm transition-all pointer-events-auto z-30 scale-90 group-hover:scale-100 opacity-0 group-hover:opacity-100 hover:bg-rose-50 cursor-pointer",onClick:ct=>{ct.stopPropagation(),b(S.id)},title:"Hide this node from view",children:h.jsx(Sg,{size:9,className:"stroke-[2.5]"})})]}),E.showLabels&&h.jsx("div",{className:`absolute top-13 pointer-events-none text-[10px] font-medium tracking-tight truncate max-w-[120px] text-center px-1.5 py-0.5 rounded shadow-sm border ${E.theme==="steel-dark"?"bg-slate-800 text-slate-200 border-slate-700":"bg-white text-slate-700 border-slate-200"}`,children:S.label||S.id})]},S.id)})]}),h.jsxs("div",{className:"absolute bottom-4 right-4 flex items-center gap-1.5 bg-slate-900/90 border border-slate-700/80 rounded-lg p-1.5 shadow-xl backdrop-blur-md z-10",children:[h.jsx("button",{onClick:()=>ft(S=>Math.max(S/1.25,.15)),className:"canvas-button p-2 text-slate-300 hover:text-white rounded hover:bg-slate-800 transition",title:"Zoom Out",children:h.jsx(Vb,{size:16})}),h.jsx("button",{onClick:()=>ft(S=>Math.min(S*1.25,3)),className:"canvas-button p-2 text-slate-300 hover:text-white rounded hover:bg-slate-800 transition",title:"Zoom In",children:h.jsx(Rb,{size:16})}),h.jsx("button",{onClick:pn,className:"canvas-button p-2 text-slate-300 hover:text-white rounded hover:bg-slate-800 transition",title:"Fit Viewport on Nodes",children:h.jsx(eb,{size:16})}),h.jsx("button",{onClick:Qa,className:"canvas-button p-2 text-slate-300 hover:text-white rounded hover:bg-slate-850 transition",title:"Reset Zoom to 100%",children:h.jsx(yb,{size:16})}),o==="network"&&h.jsx("button",{onClick:()=>{const S={...s};Object.keys(S).forEach(q=>{S[q]={...S[q],fx:null,fy:null}}),A(S)},className:"canvas-button p-2 text-slate-300 hover:text-indigo-400 rounded hover:bg-slate-800 transition border-l border-slate-700 pl-2",title:"Unpin All Anchors (Release Physics)",children:h.jsx(rb,{size:16})}),p.size>0&&h.jsxs("button",{onClick:x,className:"canvas-button p-2 text-rose-400 hover:text-white rounded hover:bg-slate-800 transition border-l border-slate-700 pl-2 flex items-center gap-1 text-xs font-bold",title:`Reveal all ${p.size} hidden nodes`,children:[h.jsx(Zv,{size:15}),h.jsxs("span",{children:["Show All (",p.size,")"]})]})]}),h.jsxs("div",{className:`absolute bottom-4 left-4 pointer-events-none hidden lg:flex items-center gap-4 px-3 py-2 rounded-lg border shadow-lg z-10 font-sans backdrop-blur-md ${E.theme==="steel-dark"?"bg-slate-900/90 border-slate-700/80 text-slate-300":"bg-white/95 border-slate-200 text-slate-600"}`,children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-indigo-500 shadow-sm"}),h.jsx("span",{className:"text-[10px] font-semibold",children:"Active Layer Node"})]}),h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-emerald-500 shadow-sm"}),h.jsx("span",{className:"text-[10px] font-semibold",children:"Verified Proof"})]}),h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-rose-500 animate-pulse"}),h.jsx("span",{className:"text-[10px] font-semibold",children:"ValidationError"})]})]}),h.jsx(ET,{children:E.showMinimap&&h.jsxs(pg.div,{initial:{opacity:0,scale:.95,y:-10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-10},transition:{duration:.18,ease:"easeOut"},className:`absolute top-4 right-4 rounded-xl border overflow-hidden shadow-2xl backdrop-blur-md z-30 transition-shadow duration-300 ${E.theme==="steel-dark"?"bg-slate-900/90 border-slate-800 shadow-indigo-950/25":"bg-white/95 border-slate-200/90 shadow-slate-200/40"}`,children:[h.jsxs("div",{className:`px-2.5 py-1.5 border-b flex items-center justify-between text-[9px] font-bold tracking-wider uppercase select-none ${E.theme==="steel-dark"?"border-slate-800 text-slate-400 bg-slate-950/40":"border-slate-100 text-slate-500 bg-slate-50/50"}`,children:[h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx(Tg,{size:10,className:"text-indigo-500"}),h.jsx("span",{children:"Navigation Overview"})]}),h.jsxs("span",{className:"font-mono text-[8px] opacity-75",children:[Math.round(lt*100),"%"]})]}),h.jsxs("div",{className:"relative cursor-crosshair overflow-hidden",style:{width:Oe,height:yn},onPointerDown:gs,onPointerMove:ys,onPointerUp:wl,children:[h.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-[0.12]",style:{backgroundImage:`radial-gradient(${E.theme==="steel-dark"?"#ffffff":"#000000"} 1px, transparent 1px)`,backgroundSize:"12px 12px"}}),h.jsxs("svg",{width:"100%",height:"100%",className:"absolute inset-0 pointer-events-none",children:[Fn.length<=400&&Fn.map((S,q)=>{const $=s[S.from],J=s[S.to];if(!$||!J)return null;const it=qn($.x,$.y),vt=qn(J.x,J.y);return h.jsx("line",{x1:it.x,y1:it.y,x2:vt.x,y2:vt.y,stroke:E.theme==="steel-dark"?"rgba(100, 116, 139, 0.3)":"rgba(148, 163, 184, 0.45)",strokeWidth:1},`mini-edge-${q}`)}),Qt.map(S=>{const q=s[S.id];if(!q)return null;const $=qn(q.x,q.y),J=r===S.id,it=m===S.id,vt=jl(S.family);return h.jsxs("g",{children:[(J||it)&&h.jsx("circle",{cx:$.x,cy:$.y,r:J?5.5:4.5,fill:"none",stroke:J?"#6366f1":"#14b8a6",strokeWidth:1.5}),h.jsx("circle",{cx:$.x,cy:$.y,r:J?3.2:it?2.5:2,fill:vt,opacity:J||it?1:.8})]},`mini-node-${S.id}`)})]}),h.jsx("div",{className:"absolute border border-indigo-500 bg-indigo-500/10 pointer-events-none transition-all duration-75",style:{left:ga,top:Al,width:Ml,height:El,boxShadow:"0 0 8px rgba(99, 102, 241, 0.25)"}})]})]})})]})},L3=["ADR","Spec","SPEC","Feature","Claim","Test","Evidence","Release","Boundary","Profile","Risk","Issue"],B3=["ssot-core","ssot-origin","repo-local","extension-pack","generated","unknown"],U3=({payload:a,filters:s,onUpdateFilters:o,viewMode:r,onChangeViewMode:c,selectedRegistryKey:m,onChangeRegistry:f,registryOptions:p=[],allPacks:v,allTiers:g,allOriginKinds:b,filteredNodes:x,isCollapsed:A,onToggleCollapse:E,onSelectNode:O,onFocusNode:_,nodeLimit:U=300,onUpdateNodeLimit:Q,egoHops:B=1,onUpdateEgoHops:z,isolateEgo:X=!1,onUpdateIsolateEgo:st})=>{const[Y,F]=H.useState("search"),K=Re.useMemo(()=>Array.from(new Set([...L3,...a.nodes.map(C=>C.family)])),[a.nodes]),W=Re.useMemo(()=>Array.from(new Set([...B3,...b])),[b]),I=p.find(C=>C.key===m)?.label||a.package?.name||m,lt=()=>{o({search:"",families:new Set(K),statuses:new Set,originKinds:new Set(W),tiers:new Set,packs:new Set,validationStatuses:new Set,edgeTypes:new Set})},ft=()=>{o({search:"",families:new Set,statuses:new Set,originKinds:new Set,tiers:new Set,packs:new Set,validationStatuses:new Set,edgeTypes:new Set})},Ot=C=>{const T=new Set(s.families);T.has(C)?T.delete(C):T.add(C),o({...s,families:T})},Et=C=>{const T=new Set(s.originKinds);T.has(C)?T.delete(C):T.add(C),o({...s,originKinds:T})},jt=C=>{const T=new Set(s.tiers);T.has(C)?T.delete(C):T.add(C),o({...s,tiers:T})},N=C=>{const T=new Set(s.packs);T.has(C)?T.delete(C):T.add(C),o({...s,packs:T})},nt=C=>{const T=new Set(s.validationStatuses);T.has(C)?T.delete(C):T.add(C),o({...s,validationStatuses:T})},et=C=>{const T=new Set(s.statuses);T.has(C)?T.delete(C):T.add(C),o({...s,statuses:T})},pt=Re.useMemo(()=>{let C=0;return s.search&&C++,s.families.size<K.length&&(C+=K.length-s.families.size),s.originKinds.size<W.length&&(C+=W.length-s.originKinds.size),s.tiers.size>0&&(C+=s.tiers.size),s.packs.size>0&&(C+=s.packs.size),s.validationStatuses.size>0&&(C+=s.validationStatuses.size),s.statuses.size>0&&(C+=s.statuses.size),C},[s,K,W]);return A?h.jsxs("div",{className:"w-12 h-full border-r border-slate-200 bg-white flex flex-col items-center py-4 gap-4 shrink-0 overflow-hidden font-sans select-none shadow-[1px_0_6px_-2px_rgba(0,0,0,0.05)] z-10 animate-fadeIn",children:[h.jsx("button",{onClick:E,className:"p-1.5 hover:bg-slate-100 rounded-lg text-slate-500 hover:text-slate-800 transition",title:"Expand left sidebar",children:h.jsx(Zc,{size:18})}),h.jsx("div",{className:"w-6 border-b border-slate-100 my-1"}),h.jsxs("div",{className:"p-2 text-indigo-600 rounded-lg hover:bg-indigo-50/50 cursor-pointer transition relative group",onClick:E,title:`Active registry: ${I}. Click to expand and change.`,children:[h.jsx(Zm,{size:16}),h.jsxs("div",{className:"absolute left-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2 py-1 rounded shadow opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:["Active Registry: ",I]})]}),h.jsx("div",{className:"w-6 border-b border-slate-100 my-1"}),h.jsx("div",{className:"flex flex-col items-center gap-1",children:[{mode:"lineage",label:"Lineage Flow",icon:tr},{mode:"proof",label:"Proof Chain",icon:Jm},{mode:"origins",label:"Origins Mode",icon:Qm},{mode:"packs",label:"Packs Lineage",icon:$m},{mode:"release",label:"Release Board",icon:Fm},{mode:"validation",label:"Validation",icon:Io}].map(C=>{const T=C.icon,L=r===C.mode;return h.jsxs("button",{onClick:()=>c(C.mode),className:`p-2 rounded-lg transition relative group ${L?"bg-indigo-50 text-indigo-600":"text-slate-400 hover:text-slate-600 hover:bg-slate-50"}`,children:[h.jsx(T,{size:16}),h.jsx("div",{className:"absolute left-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2 py-1 rounded shadow opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:C.label})]},C.mode)})}),h.jsx("div",{className:"flex-1"}),pt>0&&h.jsxs("button",{onClick:lt,className:"p-2 bg-amber-50 hover:bg-amber-100 text-amber-600 rounded-lg transition relative group",title:"Reset active filters",children:[h.jsx(Pm,{size:14,className:"animate-spin-hover"}),h.jsx("span",{className:"absolute -top-1 -right-1 bg-amber-600 text-white text-[8px] font-bold w-4 h-4 rounded-full flex items-center justify-center border border-white",children:pt}),h.jsxs("div",{className:"absolute left-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2 py-1 rounded shadow opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:["Reset ",pt," filters"]})]})]}):h.jsxs("div",{className:"w-80 h-full border-r border-slate-200 bg-white flex flex-col shrink-0 overflow-hidden font-sans select-none shadow-[2px_0_12px_-4px_rgba(0,0,0,0.06)] z-10",children:[h.jsxs("div",{className:"p-4 border-b border-slate-100 bg-slate-50/70",children:[h.jsxs("div",{className:"flex items-center justify-between mb-2",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Zm,{size:18,className:"text-indigo-600"}),h.jsx("h2",{className:"text-sm font-bold tracking-tight text-slate-800",children:"SSOT Registry Scope"})]}),h.jsx("button",{onClick:E,className:"p-1 hover:bg-slate-200/60 rounded text-slate-400 hover:text-slate-600 transition",title:"Collapse left sidebar",children:h.jsx(bg,{size:16})})]}),h.jsx("select",{value:m,onChange:C=>f(C.target.value),className:"w-full bg-white border border-slate-200 rounded-md py-1.5 px-2.5 text-xs text-slate-700 font-medium focus:ring-1 focus:ring-indigo-500 focus:outline-none",children:p.length>0?p.map(C=>h.jsx("option",{value:C.key,children:C.label},C.key)):h.jsx("option",{value:m,children:I})})]}),h.jsxs("div",{className:"flex border-b border-slate-100 text-xs font-semibold text-slate-500 bg-white",children:[h.jsx("button",{onClick:()=>F("search"),className:`flex-1 py-3 text-center border-b-2 transition ${Y==="search"?"border-indigo-600 text-indigo-600 bg-slate-50/20 font-bold":"border-transparent hover:text-slate-800"}`,children:"Index & Search"}),h.jsxs("button",{onClick:()=>F("filters"),className:`flex-1 py-3 text-center border-b-2 transition flex items-center justify-center gap-1.5 ${Y==="filters"?"border-indigo-600 text-indigo-600 bg-slate-50/20 font-bold":"border-transparent hover:text-slate-800"}`,children:["Filters",pt>0&&h.jsx("span",{className:"bg-indigo-100 text-indigo-700 text-[10px] px-1.5 py-0.2 rounded-full font-bold",children:pt})]}),h.jsx("button",{onClick:()=>F("limits"),className:`flex-1 py-3 text-center border-b-2 transition flex items-center justify-center gap-1.5 ${Y==="limits"?"border-indigo-600 text-indigo-600 bg-slate-50/20 font-bold":"border-transparent hover:text-slate-800"}`,children:"Limits"})]}),h.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[Y==="search"&&h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"relative",children:[h.jsx("span",{className:"absolute inset-y-0 left-3 flex items-center pointer-events-none text-slate-400",children:h.jsx(bb,{size:14})}),h.jsx("input",{type:"text",placeholder:"Search IDs, labels, files, summaries...",value:s.search,onChange:C=>o({...s,search:C.target.value}),className:"w-full bg-slate-50 border border-slate-200 rounded-lg py-2 pl-9 pr-8 text-xs text-slate-700 focus:bg-white focus:outline-none focus:ring-1 focus:ring-indigo-500 transition-all font-mono"}),s.search&&h.jsx("button",{onClick:()=>o({...s,search:""}),className:"absolute inset-y-0 right-2.5 flex items-center text-slate-400 hover:text-slate-600",children:h.jsx(xi,{size:14})})]}),h.jsxs("div",{children:[h.jsx("h3",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 mb-2 font-mono",children:"Lineage View Modes"}),h.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:[{mode:"network",label:"Network Force",icon:sb},{mode:"lineage",label:"Lineage Flow",icon:tr},{mode:"flow-force",label:"Flow Force",icon:Pm},{mode:"proof",label:"Proof Chain",icon:Jm},{mode:"origins",label:"Origins Mode",icon:Qm},{mode:"packs",label:"Packs Lineage",icon:$m},{mode:"release",label:"Release Board",icon:Fm},{mode:"validation",label:"Validation",icon:Io}].map(C=>{const T=C.icon,L=r===C.mode;return h.jsxs("button",{onClick:()=>c(C.mode),className:`flex items-center gap-1.5 px-2.5 py-2 rounded-md text-left text-xs transition border ${L?"bg-indigo-50 text-indigo-700 border-indigo-200 font-semibold":"bg-white text-slate-600 border-slate-100 hover:bg-slate-50"}`,children:[h.jsx(T,{size:12,className:L?"text-indigo-600":"text-slate-400"}),h.jsx("span",{children:C.label})]},C.mode)})})]}),h.jsxs("div",{children:[h.jsx("div",{className:"flex items-center justify-between mb-2",children:h.jsxs("h3",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:["Registry Index (",x.length,")"]})}),x.length===0?h.jsx("div",{className:"text-center py-6 bg-slate-50 rounded-lg border border-slate-100",children:h.jsx("span",{className:"text-[11px] text-slate-500 font-mono",children:"No registry nodes match filters."})}):h.jsxs("div",{className:"space-y-1.5 max-h-[280px] overflow-y-auto pr-1",children:[x.slice(0,250).map((C,T)=>{const L=pa[C.family];return h.jsxs("div",{onClick:()=>{O&&O(C.id),_&&_(C.id);const at=document.getElementById(`node-${C.id}`);at&&(at.click(),at.scrollIntoView({behavior:"smooth",block:"center"}))},className:"p-2 border border-slate-100 rounded-md hover:bg-slate-50 hover:border-slate-200 cursor-pointer transition flex items-center justify-between",children:[h.jsxs("div",{className:"truncate pr-2",children:[h.jsxs("div",{className:"flex items-center gap-1.5 mb-0.5",children:[h.jsx("span",{className:`text-[8px] font-mono font-bold px-1 rounded-sm uppercase ${L?.bg||"bg-slate-100"} ${L?.text||"text-slate-700"}`,children:C.family}),h.jsx("span",{className:"text-[10px] font-bold text-slate-700 font-mono truncate",children:C.id})]}),h.jsx("p",{className:"text-[10px] text-slate-500 truncate max-w-[200px]",children:C.label||C.title})]}),h.jsxs("span",{className:"text-[9px] text-slate-400 font-mono shrink-0 font-bold bg-slate-50 px-1 py-0.5 rounded border border-slate-100",children:["dg:",C.degree||0]})]},`${C.id}-${T}`)}),x.length>250&&h.jsxs("div",{className:"text-center py-2 bg-indigo-50/40 rounded border border-dashed border-indigo-100/50 mt-1",children:[h.jsxs("p",{className:"text-[9px] text-indigo-700 font-mono font-medium",children:["Showing first 250 of ",x.length," matches."]}),h.jsx("p",{className:"text-[8px] text-slate-400",children:"Type in search box to filter details further."})]})]})]})]}),Y==="filters"&&h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 pb-2",children:[h.jsxs("span",{className:"text-xs font-bold text-slate-700 flex items-center gap-1",children:[h.jsx(Qc,{size:12,className:"text-indigo-600"}),"Active Filters"]}),h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("button",{onClick:ft,className:"text-[10px] text-slate-400 hover:text-rose-600 font-mono font-bold flex items-center gap-0.5 transition cursor-pointer",title:"Uncheck all checkboxes",children:"Clear"}),h.jsx("span",{className:"text-[10px] text-slate-300 font-mono font-bold select-none",children:"|"}),h.jsx("button",{onClick:lt,className:"text-[10px] text-slate-400 hover:text-indigo-600 font-mono font-bold flex items-center gap-0.5 transition cursor-pointer",title:"Default checkboxes state",children:"Reset"})]})]}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"Entity Family Filters"}),h.jsx("div",{className:"flex flex-wrap gap-1.5",children:K.map(C=>{const T=s.families.has(C),L=pa[C];return h.jsxs("button",{onClick:()=>Ot(C),className:`text-[10px] font-medium px-2 py-1 rounded transition border flex items-center gap-1 ${T?`${L?.bg||"bg-slate-100"} ${L?.text||"text-slate-700"} ${L?.border||"border-slate-300"} border-2 font-bold`:"bg-white text-slate-500 border-slate-200 hover:bg-slate-50"}`,children:[h.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${L?.bg||"bg-slate-400"}`}),C]},C)})})]}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"Provenance Origin Kind"}),h.jsx("div",{className:"space-y-1",children:W.map(C=>{const T=s.originKinds.has(C);return h.jsxs("label",{className:"flex items-center gap-2 text-xs text-slate-600 cursor-pointer hover:text-slate-800",children:[h.jsx("input",{type:"checkbox",checked:T,onChange:()=>Et(C),className:"rounded text-indigo-600 focus:ring-indigo-500 w-3.5 h-3.5 border-slate-300"}),h.jsx("span",{className:"font-mono text-[11px] truncate capitalize",children:C.replace("-"," ")})]},C)})})]}),g.length>0&&h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"SLA Compliance Tiers"}),h.jsx("div",{className:"space-y-1",children:g.map(C=>{const T=s.tiers.has(C);return h.jsxs("label",{className:"flex items-center gap-2 text-xs text-slate-600 cursor-pointer hover:text-slate-800",children:[h.jsx("input",{type:"checkbox",checked:T,onChange:()=>jt(C),className:"rounded text-indigo-600 focus:ring-indigo-500 w-3.5 h-3.5 border-slate-300"}),h.jsx("span",{className:"font-mono text-[11px]",children:C})]},C)})})]}),v.length>0&&h.jsxs("div",{className:"space-y-1.5 border-t border-slate-100 pt-3",children:[h.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"Governance Registry Packs"}),h.jsx("div",{className:"space-y-1 max-h-[140px] overflow-y-auto pr-1",children:v.map(C=>{const T=s.packs.has(C);return h.jsxs("label",{className:"flex items-center gap-2 text-xs text-slate-600 cursor-pointer hover:text-slate-800",children:[h.jsx("input",{type:"checkbox",checked:T,onChange:()=>N(C),className:"rounded text-indigo-600 focus:ring-indigo-500 w-3.5 h-3.5 border-slate-300"}),h.jsx("span",{className:"font-mono text-[11px] truncate flex-1",title:C,children:C})]},C)})})]}),h.jsxs("div",{className:"space-y-1.5 border-t border-slate-100 pt-3",children:[h.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"Validation Outcome Filters"}),h.jsx("div",{className:"space-y-1",children:[{key:"pass",label:"Pass (Certified No Drift)",color:"text-emerald-600 bg-emerald-50"},{key:"warn",label:"Warn (Minor Compliance Gaps)",color:"text-amber-600 bg-amber-50"},{key:"fail",label:"Fail (Critical Blockers)",color:"text-red-600 bg-red-50"},{key:"unknown",label:"Unvalidated Entries",color:"text-slate-500 bg-slate-50"}].map(C=>{const T=s.validationStatuses.has(C.key);return h.jsxs("label",{className:"flex items-center gap-2 text-xs text-slate-600 cursor-pointer hover:text-slate-800",children:[h.jsx("input",{type:"checkbox",checked:T,onChange:()=>nt(C.key),className:"rounded text-indigo-600 focus:ring-indigo-500 w-3.5 h-3.5 border-slate-300"}),h.jsxs("span",{className:"font-mono text-[11px] flex-1 flex items-center justify-between",children:[h.jsx("span",{children:C.key.toUpperCase()}),h.jsx("span",{className:`text-[9px] px-1 py-0.2 rounded scale-90 ${C.color}`,children:C.label})]})]},C.key)})})]}),h.jsxs("div",{className:"space-y-1.5 border-t border-slate-100 pt-3",children:[h.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"Lifecycle Compliance Status"}),h.jsx("div",{className:"space-y-1",children:["active","certified","deprecated","experimental"].map(C=>{const T=s.statuses.has(C);return h.jsxs("label",{className:"flex items-center gap-2 text-xs text-slate-600 cursor-pointer hover:text-slate-800",children:[h.jsx("input",{type:"checkbox",checked:T,onChange:()=>et(C),className:"rounded text-indigo-600 focus:ring-indigo-500 w-3.5 h-3.5 border-slate-300"}),h.jsx("span",{className:"font-mono text-[11px] capitalize",children:C})]},C)})})]})]}),Y==="limits"&&h.jsxs("div",{className:"space-y-4",children:[h.jsx("div",{className:"flex items-center justify-between border-b border-slate-100 pb-2",children:h.jsxs("span",{className:"text-xs font-bold text-slate-700 flex items-center gap-1",children:[h.jsx(Qc,{size:12,className:"text-indigo-600"}),"Workspace Limits"]})}),h.jsxs("div",{className:"bg-slate-50 rounded-lg p-3 border border-slate-150 space-y-4",children:[h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[h.jsx("span",{className:"text-slate-600 font-medium",children:"Render Node Limit"}),h.jsx("span",{className:"font-mono text-indigo-600 font-bold whitespace-nowrap",children:U>5e3?"Unlimited":`${U} Nodes`})]}),h.jsx("input",{type:"range",min:"50",max:"500",step:"50",value:U>5e3?500:U,onChange:C=>{const T=parseInt(C.target.value);Q?.(T===500?999999:T)},className:"w-full accent-indigo-600 cursor-pointer h-1 bg-slate-200 rounded-lg focus:outline-none"}),h.jsxs("div",{className:"flex justify-between text-[8px] text-slate-400 font-mono",children:[h.jsx("span",{children:"50"}),h.jsx("span",{children:"150"}),h.jsx("span",{children:"300"}),h.jsx("span",{children:"Unlimited"})]})]}),h.jsxs("div",{className:"space-y-1.5 pt-3 border-t border-slate-200/50",children:[h.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[h.jsx("span",{className:"text-slate-600 font-medium",children:"Ego-Focus Hops Limit"}),h.jsxs("span",{className:"font-mono text-indigo-600 font-bold",children:[B," ",B===1?"Hop":"Hops"]})]}),h.jsx("div",{className:"flex gap-1.5",children:[1,2,3,4].map(C=>h.jsx("button",{onClick:()=>z?.(C),className:`flex-1 py-1 rounded text-xs font-mono transition font-bold border cursor-pointer ${B===C?"bg-indigo-600 border-indigo-750 text-white":"bg-white border-slate-200 text-slate-600 hover:bg-slate-50"}`,children:C},C))}),h.jsx("p",{className:"text-[10px] text-slate-400 mt-1 leading-relaxed",children:"Deepens or constrains the neighbor-traversal range (hops) when filtering the central active ego node."})]}),h.jsxs("div",{className:"space-y-1.5 pt-3 border-t border-slate-200/50",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"text-[11px] text-slate-600 font-medium",children:"Isolate Active Focus"}),h.jsx("button",{onClick:()=>st?.(!X),className:`relative inline-flex h-5 w-9 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none ${X?"bg-indigo-600":"bg-slate-200"}`,children:h.jsx("span",{"aria-hidden":"true",className:`pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out ${X?"translate-x-4":"translate-x-0"}`})})]}),h.jsx("p",{className:"text-[10px] text-slate-400 leading-relaxed",children:"When enabled, completely hides any nodes and ribbons outside of the active focus neighborhood."})]})]})]})]}),h.jsxs("div",{className:"p-4 border-t border-slate-100 bg-slate-50",children:[h.jsxs("div",{className:"flex items-center justify-between text-[11px] text-slate-500 font-mono mb-2",children:[h.jsxs("span",{children:["Schema: v",a.schemaVersion||"2.4.0"]}),h.jsxs("span",{children:["Edges: ",a.edges.length||0]})]}),h.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-slate-500 font-mono",children:[h.jsx("div",{className:"w-2 h-2 rounded-full bg-green-500 animate-pulse"}),h.jsx("span",{children:"Registry Status: 100% VALIDATED"})]})]})]})},H3=({payload:a,selectedNodeId:s,focusNodeId:o,onSelectNode:r,onSetFocusNode:c,onClearFocusNode:m,isCollapsed:f,onToggleCollapse:p})=>{const[v,g]=Re.useState(null),b=Re.useMemo(()=>{const _=new Map;return a.nodes.forEach(U=>_.set(U.id,U)),_},[a.nodes]),x=Re.useMemo(()=>s&&b.get(s)||null,[s,b]),A=Re.useMemo(()=>{if(!s)return{incoming:[],outgoing:[]};const _=[],U=[];return a.edges.forEach(Q=>{if(Q.to===s){const B=b.get(Q.from);B&&_.push({node:B,edge:Q})}if(Q.from===s){const B=b.get(Q.to);B&&U.push({node:B,edge:Q})}}),{incoming:_,outgoing:U}},[s,b,a.edges]),E=(_,U)=>{navigator.clipboard.writeText(_),g(U),setTimeout(()=>g(null),2e3)};if(f)return h.jsxs("div",{className:"w-12 h-full border-l border-slate-200 bg-slate-50 flex flex-col items-center py-4 gap-4 shrink-0 overflow-hidden font-sans select-none shadow-[-1px_0_6px_-2px_rgba(0,0,0,0.05)] z-10 animate-fadeIn",children:[h.jsx("button",{onClick:p,className:"p-1.5 hover:bg-slate-200 rounded-lg text-slate-500 hover:text-slate-800 transition",title:"Expand inspector panel",children:h.jsx(bg,{size:18})}),h.jsx("div",{className:"w-6 border-b border-slate-200/60 my-1"}),x?h.jsxs("div",{className:"flex flex-col items-center gap-4 flex-1 w-full relative",children:[h.jsx("div",{className:`w-3.5 h-3.5 rounded-full relative group cursor-pointer shadow-sm border border-slate-200 ${pa[x.family]?.bg||"bg-indigo-400"}`,onClick:p,children:h.jsxs("div",{className:"absolute right-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2.5 py-1 rounded-md shadow-lg opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans font-medium",children:[x.family,": ",x.id]})}),h.jsxs("button",{onClick:()=>E(x.id,"ID"),className:"p-2 text-slate-400 hover:text-slate-600 hover:bg-slate-200/50 rounded-lg transition relative group",children:[h.jsx(os,{size:14}),h.jsx("div",{className:"absolute right-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2.5 py-1 rounded-md shadow-lg opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:v==="ID"?"Copied!":"Copy Node ID"})]}),x.id!==o?h.jsxs("button",{onClick:()=>c(x.id),className:"p-2 text-teal-600 hover:text-teal-800 hover:bg-teal-50 rounded-lg transition relative group",children:[h.jsx(Xm,{size:14}),h.jsx("div",{className:"absolute right-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2.5 py-1 rounded-md shadow-lg opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:"Focus Node"})]}):h.jsxs("button",{onClick:m,className:"p-2 text-amber-600 hover:text-amber-800 hover:bg-amber-50 rounded-lg transition relative group",children:[h.jsx(xi,{size:14}),h.jsx("div",{className:"absolute right-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2.5 py-1 rounded-md shadow-lg opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:"Unfocus"})]}),h.jsx("div",{className:"flex-1"}),h.jsxs("button",{onClick:()=>r(null),className:"p-2 text-slate-400 hover:text-rose-600 hover:bg-rose-50 rounded-lg transition relative group",children:[h.jsx(Cb,{size:14}),h.jsx("div",{className:"absolute right-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2.5 py-1 rounded-md shadow-lg opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:"Deselect Node"})]})]}):h.jsxs("div",{className:"flex flex-col items-center gap-4 flex-1 justify-center opacity-45",children:[h.jsx(Io,{size:16,className:"text-slate-400 animate-pulse"}),h.jsx("span",{className:"text-[9px] text-slate-400 font-extrabold tracking-widest uppercase pointer-events-none select-none [writing-mode:vertical-lr] my-auto rotate-180",children:"Inspector Empty"})]})]});if(!x)return h.jsxs("div",{className:"w-80 h-full border-l border-slate-200 bg-slate-50 flex flex-col items-center justify-center p-6 text-center select-none shrink-0 shadow-[-2px_0_12px_-4px_rgba(0,0,0,0.04)] relative",children:[h.jsx("button",{onClick:p,className:"absolute top-4 right-4 p-1.5 hover:bg-slate-200/60 text-slate-400 hover:text-slate-600 rounded-lg transition",title:"Collapse inspector",children:h.jsx(Zc,{size:16})}),h.jsx(Io,{size:32,className:"text-slate-300 mb-2 animate-pulse"}),h.jsx("p",{className:"text-xs font-semibold text-slate-500",children:"No Element Selected"}),h.jsx("p",{className:"text-[10px] text-slate-400 max-w-[200px] mt-1",children:"Click any circular node in the lineage graph to view source provenance, tests, claims, and relations."})]});const O=pa[x.family]||pa.Profile;return h.jsxs("div",{className:"w-80 h-full border-l border-slate-200 bg-white flex flex-col shrink-0 overflow-hidden font-sans shadow-[-2px_0_12px_-4px_rgba(0,0,0,0.06)] z-10 animate-slideIn",children:[h.jsxs("div",{className:"p-4 border-b border-slate-100 flex items-center justify-between bg-slate-50/40",children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("span",{className:`text-[9px] font-mono font-extrabold px-1.5 py-0.5 rounded uppercase ${O.bg} ${O.text} border ${O.border}`,children:x.family}),h.jsx("span",{className:"text-xs font-bold text-slate-800 font-mono truncate max-w-[125px]",children:x.id})]}),h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx("button",{onClick:p,className:"text-slate-400 hover:text-slate-600 p-1 hover:bg-slate-100 rounded-lg transition",title:"Collapse inspector",children:h.jsx(Zc,{size:15})}),h.jsx("button",{onClick:()=>r(null),className:"text-slate-400 hover:text-slate-600 p-1 hover:bg-slate-100 rounded-full transition",title:"Close Inspector",children:h.jsx(xi,{size:15})})]})]}),h.jsxs("div",{className:"px-4 py-2 bg-slate-50 border-b border-slate-100 flex items-center gap-1.5",children:[h.jsxs("button",{onClick:()=>E(x.id,"ID"),className:"flex-1 py-1 px-2.5 text-[9px] font-mono font-bold text-slate-600 bg-white border border-slate-200 rounded hover:bg-slate-100 hover:text-slate-800 transition flex items-center justify-center gap-1",title:"Copy node ID to clipboard",children:[h.jsx(os,{size:10}),h.jsx("span",{children:v==="ID"?"Copied!":"Copy Node ID"})]}),x.id!==o?h.jsxs("button",{onClick:()=>c(x.id),className:"flex-1 py-1 px-2.5 text-[9px] font-bold text-teal-700 bg-teal-50/60 border border-teal-200 rounded hover:bg-teal-100 hover:text-teal-900 transition flex items-center justify-center gap-1",title:"Focus graph layout center around this node",children:[h.jsx(Xm,{size:11}),h.jsx("span",{children:"Focus Node"})]}):h.jsxs("button",{onClick:m,className:"flex-1 py-1 px-2.5 text-[9px] font-bold text-amber-700 bg-amber-50/60 border border-amber-200 rounded hover:bg-amber-100 hover:text-amber-900 transition flex items-center justify-center gap-1",title:"Clear manual layout focus center",children:[h.jsx(xi,{size:10}),h.jsx("span",{children:"Unfocus"})]})]}),h.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("h1",{className:"text-xs font-bold text-slate-800",children:x.title||x.label||x.id}),x.body?h.jsx("div",{className:"bg-slate-50/80 border border-slate-200/60 rounded-lg p-3 text-[10.5px] leading-relaxed text-slate-600 font-mono whitespace-pre-wrap max-h-48 overflow-y-auto shadow-inner",children:x.body}):h.jsx("p",{className:"text-[11px] leading-relaxed text-slate-500",children:x.description||x.summary||"No description document supplied in registry payload definition."})]}),h.jsxs("div",{className:"bg-slate-50/70 border border-slate-100 rounded-lg p-2.5 space-y-1.5",children:[h.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[h.jsx("span",{className:"text-slate-400 font-medium",children:"Compliance status"}),h.jsx("span",{className:"font-mono uppercase font-bold text-indigo-600 bg-indigo-50 px-1.5 py-0.5 rounded text-[9px]",children:x.status||"active"})]}),x.tier&&h.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[h.jsx("span",{className:"text-slate-400 font-medium",children:"SLA Tier level"}),h.jsx("span",{className:"font-mono text-[9px] text-slate-600 font-semibold",children:x.tier})]}),x.proof?.completeness!==void 0&&h.jsxs("div",{className:"space-y-1 pt-1.5 border-t border-slate-200/50",children:[h.jsxs("div",{className:"flex items-center justify-between text-[10px] font-mono",children:[h.jsx("span",{className:"text-slate-500 font-bold",children:"Proof Progress"}),h.jsxs("span",{className:"text-slate-700 font-black",children:[x.proof.completeness,"%"]})]}),h.jsx("div",{className:"w-full bg-slate-200 h-1 rounded-full overflow-hidden",children:h.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${x.proof.completeness===100?"bg-emerald-500":"bg-indigo-500"}`,style:{width:`${x.proof.completeness}%`}})})]})]}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("h3",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"Origin Provenance"}),h.jsxs("div",{className:"text-xs border border-slate-100 rounded-lg p-2.5 space-y-1 bg-white",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"text-slate-400 text-[10px]",children:"Registry package:"}),h.jsx("span",{className:"font-mono text-[10px] text-slate-600 capitalize",children:x.originKind||"Local"})]}),x.path&&h.jsxs("div",{className:"space-y-1 pt-1",children:[h.jsx("div",{className:"text-slate-400 text-[10px]",children:"File path:"}),h.jsxs("div",{className:"flex items-center gap-1 bg-slate-50 hover:bg-slate-100 p-1 rounded border border-slate-200/50",children:[h.jsx(Fv,{size:10,className:"text-slate-400"}),h.jsx("span",{className:"font-mono text-[10px] text-slate-700 truncate select-all flex-1",children:x.path}),h.jsx("button",{onClick:()=>E(x.path||"","FilePath"),className:"p-0.5 text-slate-400 hover:text-slate-700",title:"Copy relative file coordinate path",children:h.jsx(os,{size:9})})]})]})]})]}),x.validation&&x.validation.status!=="pass"&&h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("h3",{className:"text-[10px] font-bold uppercase tracking-wider text-red-500 font-mono flex items-center gap-1",children:[h.jsx(Mb,{size:12}),"Validation Warnings"]}),h.jsx("div",{className:"bg-red-50/50 border border-red-100 rounded-lg p-2.5 space-y-1.5 max-h-[140px] overflow-y-auto",children:(x.validation.issues||[]).map((_,U)=>h.jsxs("div",{className:"text-[10px] text-red-700 leading-relaxed font-mono flex items-start gap-1",children:[h.jsx("span",{children:"-"}),h.jsx("span",{children:_})]},U))})]}),h.jsxs("div",{className:"space-y-3 pt-1 border-t border-slate-100",children:[h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("h3",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:["Upstream Ancestors (",A.incoming.length,")"]}),A.incoming.length===0?h.jsx("p",{className:"text-[10px] text-slate-400 italic",children:"No incoming connections."}):h.jsx("div",{className:"space-y-1",children:A.incoming.map(({node:_,edge:U},Q)=>{const B=pa[_.family];return h.jsxs("div",{onClick:()=>r(_.id),className:"p-1 px-2 border border-slate-100 rounded hover:bg-slate-50 cursor-pointer flex items-center justify-between text-[11px] transition",children:[h.jsxs("div",{className:"flex items-center gap-1.5 truncate max-w-[160px]",children:[h.jsx("span",{className:`text-[8px] font-mono px-1 rounded uppercase ${B?.bg} ${B?.text}`,children:_.family.substring(0,3)}),h.jsx("span",{className:"font-mono text-[10px] font-semibold text-slate-700 truncate",children:_.id})]}),h.jsx("span",{className:"text-[9px] text-indigo-500 font-mono font-bold lowercase",children:U.type||"drives"})]},`${_.id}-${U.type||"incoming"}-${Q}`)})})]}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("h3",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:["Downstream Relations (",A.outgoing.length,")"]}),A.outgoing.length===0?h.jsx("p",{className:"text-[10px] text-slate-400 italic",children:"No outgoing connections."}):h.jsx("div",{className:"space-y-1",children:A.outgoing.map(({node:_,edge:U},Q)=>{const B=pa[_.family];return h.jsxs("div",{onClick:()=>r(_.id),className:"p-1 px-2 border border-slate-100 rounded hover:bg-slate-50 cursor-pointer flex items-center justify-between text-[11px] transition",children:[h.jsxs("div",{className:"flex items-center gap-1.5 truncate max-w-[160px]",children:[h.jsx("span",{className:`text-[8px] font-mono px-1 rounded uppercase ${B?.bg} ${B?.text}`,children:_.family.substring(0,3)}),h.jsx("span",{className:"font-mono text-[10px] font-semibold text-slate-700 truncate",children:_.id})]}),h.jsx("span",{className:"text-[9px] text-slate-400 font-mono font-bold lowercase",children:U.type||"triggers"})]},`${_.id}-${U.type||"outgoing"}-${Q}`)})})]})]})]})]})},q3=()=>{const[a,s]=H.useState("api"),[o,r]=H.useState(null),c=(v,g)=>{navigator.clipboard.writeText(v),r(g),setTimeout(()=>r(null),2e3)},m=`import { LineageGraphApp } from "@ssot-registry/lineage-graph";
|
|
26
|
+
`}),f.jsxs("defs",{children:[f.jsx("marker",{id:"arrow",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto-start-reverse",children:f.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#94a3b8"})}),f.jsx("marker",{id:"arrow-selected",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:f.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#6366f1"})}),f.jsx("marker",{id:"arrow-error",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:f.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#ef4444"})}),f.jsx("marker",{id:"arrow-success",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:f.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#10b981"})}),f.jsx("marker",{id:"arrow-incoming",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:f.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#06b6d4"})}),f.jsx("marker",{id:"arrow-outgoing",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:f.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#ec4899"})}),f.jsx("marker",{id:"arrow-hover",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:f.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#f59e0b"})})]}),ya.map((V,ft)=>{const ut=s[V.from],mt=s[V.to];if(!ut||!mt||p.has(V.from)||p.has(V.to)||yn(V)||I&&se&&(!se.has(V.from)||!se.has(V.to)))return null;const Mt=180/Math.max(.05,D),zt=Math.min(ut.x,mt.x)-Mt,bt=Math.max(ut.x,mt.x)+Mt,Tt=Math.min(ut.y,mt.y)-Mt,Rt=Math.max(ut.y,mt.y)+Mt;if(!(zt<=zn&&bt>=Ce&&Tt<=qn&&Rt>=ue))return null;const Nt=!!(tt&&V.to===tt),qt=!!(tt&&V.from===tt),Qt=Nt||qt,he=!!(F&&F.has(V.from)&&F.has(V.to)&&!Qt),ee=!!(h&&V.to===h),ze=!!(h&&V.from===h),Ut=ee||ze,_t=!!(rt&&rt.has(V.from)&&rt.has(V.to)&&!Ut),le=!!(r&&V.to===r||u&&u.has(V.to)),xt=!!(r&&V.from===r||u&&u.has(V.from)),At=le||xt,Ze=!!(ht&&ht.has(V.from)&&ht.has(V.to)&&!At),on=Qt||he||Ut||_t||At||Ze;let Se="#94a3b8",Te=j.edgeWidth||2,We=j.edgeOpacity||.65,_e="url(#arrow)",Qe="#818cf8";if(Qt?Qe="#f59e0b":he?Qe="#fbbf24":Ut?Qe=ee?"#06b6d4":"#ec4899":_t?Qe="#2dd4bf":At?Qe="#6366f1":Ze&&(Qe="#818cf8"),Kt)Qt?(We=1,Te=(j.edgeWidth||2)+2,Se="#f59e0b",_e="url(#arrow-hover)"):he?(We=1,Te=(j.edgeWidth||2)+1.2,Se="#fbbf24",_e="url(#arrow-hover)"):Ut?(We=1,Te=(j.edgeWidth||2)+2,Se=ee?"#06b6d4":"#ec4899",_e=ee?"url(#arrow-incoming)":"url(#arrow-outgoing)"):_t?(We=1,Te=(j.edgeWidth||2)+1.2,Se="#2dd4bf",_e="url(#arrow-incoming)"):At?(We=1,Te=(j.edgeWidth||2)+2,Se="#6366f1",_e="url(#arrow-selected)"):Ze?(We=1,Te=(j.edgeWidth||2)+1.2,Se="#818cf8",_e="url(#arrow-selected)"):(We=.08,Te=Math.max(1,(j.edgeWidth||2)-.5));else if(l==="validation"){const rn=V.status==="failed",Yn=V.status==="warning";Se=rn?"#ef4444":Yn?"#f59e0b":"#10b981",_e=rn?"url(#arrow-error)":Yn?"url(#arrow-hover)":"url(#arrow-success)",We=.75}else if(l==="proof"){const rn=V.status==="failed";Se=rn?"#ef4444":"#6366f1",_e=rn?"url(#arrow-error)":"url(#arrow-selected)",We=.75}const ba=k3(ut.x,ut.y,mt.x,mt.y,l);return f.jsxs("g",{className:k,children:[on&&f.jsx("path",{d:ba,fill:"none",stroke:Qe,strokeWidth:Te+5,opacity:.16,className:`${k} blur-[2px]`}),f.jsx("path",{d:ba,fill:"none",stroke:Se,strokeWidth:Te,opacity:We,markerEnd:_e,className:k}),on&&f.jsx("path",{d:ba,fill:"none",stroke:Qe,strokeWidth:Te,strokeDasharray:"6,6",opacity:.8,className:"flow-active-dash"})]},`edge-${V.from}-${V.to}-${ft}`)}),xa.map((V,ft)=>{const ut=s[V.from],mt=s[V.to];if(!ut||!mt||p.has(V.from)||p.has(V.to)||I&&se&&(!se.has(V.from)||!se.has(V.to)))return null;const Mt=!!(tt&&V.to===tt),zt=!!(tt&&V.from===tt),bt=Mt||zt,Tt=!!(F&&F.has(V.from)&&F.has(V.to)&&!bt),Rt=!!(h&&V.to===h),te=!!(h&&V.from===h),Nt=Rt||te,qt=!!(rt&&rt.has(V.from)&&rt.has(V.to)&&!Nt),Qt=!!(r&&V.to===r||u&&u.has(V.to)),he=!!(r&&V.from===r||u&&u.has(V.from)),ee=Qt||he,ze=!!(ht&&ht.has(V.from)&&ht.has(V.to)&&!ee),Ut=bt||Tt||Nt||qt||ee||ze,_t=lt===V.from||lt===V.to;let le=j.theme==="steel-dark"?"#a78bfa":"#8b5cf6",xt=j.edgeWidth||2,At=.55,Ze="url(#arrow-selected)";_t&&(At=1);let on="#818cf8";bt?on="#f59e0b":Tt?on="#fbbf24":Nt?on=Rt?"#06b6d4":"#ec4899":qt?on="#2dd4bf":ee?on="#6366f1":ze&&(on="#818cf8"),Kt&&(bt?(At=1,xt=(j.edgeWidth||2)+1.5,le="#f59e0b",Ze="url(#arrow-hover)"):Tt?(At=1,xt=(j.edgeWidth||2)+1,le="#fbbf24",Ze="url(#arrow-hover)"):Nt?(At=1,xt=(j.edgeWidth||2)+1.5,le=Rt?"#06b6d4":"#ec4899",Ze=Rt?"url(#arrow-incoming)":"url(#arrow-outgoing)"):qt?(At=1,xt=(j.edgeWidth||2)+1,le="#2dd4bf",Ze="url(#arrow-incoming)"):ee?(At=1,xt=(j.edgeWidth||2)+1.5,le="#6366f1",Ze="url(#arrow-selected)"):ze?(At=1,xt=(j.edgeWidth||2)+1,le="#818cf8",Ze="url(#arrow-selected)"):(At=.08,xt=Math.max(1,(j.edgeWidth||2)-.5)));const Se=8,Te=mg(ut.x,ut.y,mt.x,mt.y,l,-Se),We=mg(ut.x,ut.y,mt.x,mt.y,l,Se),_e=V.type,Qe="Bypassed Drift",ba=(ut.x+mt.x)/2,rn=(ut.y+mt.y)/2-12,Yn=(ut.x+mt.x)/2,vn=(ut.y+mt.y)/2+10,$e=_e?_e.length*4.5+4:0,gs=Qe.length*4.5+4;return f.jsxs("g",{className:k,children:[Ut&&f.jsx("path",{d:Te,fill:"none",stroke:on,strokeWidth:xt+4,opacity:.14,className:`${k} blur-[2px]`}),f.jsx("path",{d:Te,fill:"none",stroke:le,strokeWidth:xt,opacity:At,strokeDasharray:"4,4",markerEnd:Ze,className:k}),f.jsx("path",{d:We,fill:"none",stroke:le,strokeWidth:xt,opacity:At,strokeDasharray:"4,4",markerEnd:Ze,className:k}),j.showLabels&&_e&&f.jsxs("g",{opacity:At,children:[f.jsx("rect",{x:ba-$e/2-2,y:rn-7,width:$e+4,height:11,rx:2,fill:j.theme==="steel-dark"?"#111827":"#ffffff",stroke:le,strokeWidth:.5,strokeOpacity:.4,opacity:.9}),f.jsx("text",{x:ba,y:rn+1,fill:j.theme==="steel-dark"?"#818cf8":"#4f46e5",fontSize:8,fontWeight:"bold",fontFamily:"monospace",textAnchor:"middle",children:_e})]}),j.showLabels&&Qe&&f.jsxs("g",{opacity:At,children:[f.jsx("rect",{x:Yn-gs/2-2,y:vn-7,width:gs+4,height:11,rx:2,fill:j.theme==="steel-dark"?"#111827":"#ffffff",stroke:le,strokeWidth:.5,strokeOpacity:.4,opacity:.9}),f.jsx("text",{x:Yn,y:vn+1,fill:j.theme==="steel-dark"?"#cbd5e1":"#1e293b",fontSize:8,fontFamily:"monospace",textAnchor:"middle",children:Qe})]})]},`ghost-edge-${V.from}-${V.to}-${ft}`)})]}),ji.map(V=>{if(p.has(V.id))return null;const ft=s[V.id];if(!ft||Hn(V.id))return null;const ut=150/Math.max(.05,D),mt=ft.x>=Ce-ut&&ft.x<=zn+ut&&ft.y>=ue-ut&&ft.y<=qn+ut,Mt=r===V.id||u&&u.has(V.id),zt=h===V.id,bt=tt===V.id,Tt=C&&C.has(V.id),te=C&&C.size>0&&!Tt?"opacity-35 grayscale":"opacity-100";if(!mt&&!Mt&&!zt&<!==V.id&&!Tt)return null;const Nt=se===null||se.has(V.id);if(I&&se&&!se.has(V.id))return null;const qt=(Xt.outgoing.get(V.id)||[]).length>0,Qt=d.has(V.id),he=!!(F&&F.has(V.id)&&!bt),ee=!!(ht&&ht.has(V.id)&&!Mt&&!he),ze=!!(rt&&rt.has(V.id)&&!zt&&!ee&&!he);let Ut=ga[V.family]||ga.Profile;he?Ut={bg:"bg-amber-100/95 dark:bg-amber-950/90",text:"text-amber-950 dark:text-amber-200 font-extrabold",border:"border-amber-500",glow:"shadow-lg shadow-amber-300/40"}:ee?Ut={bg:"bg-indigo-100/95 dark:bg-indigo-950/90",text:"text-indigo-950 dark:text-indigo-200 font-extrabold",border:"border-indigo-500",glow:"shadow-lg shadow-indigo-300/40"}:ze&&(Ut={bg:"bg-teal-100/95 dark:bg-teal-950/90",text:"text-teal-950 dark:text-teal-200 font-extrabold",border:"border-teal-500",glow:"shadow-lg shadow-teal-300/40"});let _t="border-slate-300 border-2";bt?_t="ring-4 ring-offset-2 ring-amber-500 scale-110 z-50 shadow-amber-300 shadow-2xl":Mt?_t="ring-4 ring-offset-2 ring-indigo-500 scale-105 z-45 shadow-indigo-400":zt?_t="ring-4 ring-offset-2 ring-teal-500 scale-105 z-40 shadow-teal-300":he?_t="ring-2 ring-amber-400 border-amber-500 border-[3px] scale-102 z-30 shadow-md shadow-amber-200/50":ee?_t="border-indigo-500 border-[3.5px] scale-102 z-25 shadow-md shadow-indigo-150/50":ze?_t="border-teal-500 border-[3.5px] scale-102 z-20 shadow-md shadow-teal-150/50":Tt?_t="ring-4 ring-offset-1 ring-amber-500 shadow-amber-300 scale-105 animate-pulse z-35":j.theme==="steel-dark"&&(_t="border-slate-600 border");const le=X?.find(xt=>xt.nodeIds.includes(V.id));return f.jsxs(dg.div,{id:`node-${V.id}`,className:`absolute graph-node-avatar group flex flex-col items-center justify-center ${k} ${Nt?"scale-100":"opacity-25 scale-90 blur-[1px]"} ${te}`,style:{left:ft.x-30,top:ft.y-30,width:60,height:60},onMouseEnter:()=>st(V.id),onMouseLeave:()=>st(null),onClick:xt=>{xt.stopPropagation(),!Bt&&x(V.id,xt.shiftKey)},onPointerDown:xt=>Ee(V.id,xt),onPointerMove:xt=>Ft(V.id,xt),onPointerUp:xt=>Ye(V.id,xt),onDoubleClick:xt=>Un(V.id,xt),title:l==="network"?"Drag to place - Double-click to unpin":"Drag to reposition",children:[le&&f.jsxs("span",{className:"absolute -top-3 bg-slate-900 border border-slate-700 text-amber-300 font-extrabold px-1.5 py-0.2 rounded text-[7.5px] font-mono tracking-wider shadow z-50 whitespace-nowrap uppercase select-none",children:["* ",le.label]}),f.jsxs("div",{className:`w-12 h-12 rounded-full flex items-center justify-center font-bold text-xs shadow-md transition-transform duration-200 relative ${lt===V.id?"cursor-grabbing scale-110 shadow-2xl ring-4 ring-indigo-500":"cursor-grab hover:cursor-grab active:cursor-grabbing hover:scale-115 active:scale-95"} ${Ut.bg} ${Ut.text} ${_t} ${Ut.glow}`,children:[f.jsx("span",{className:"text-[10px] font-mono select-none pointer-events-none",children:V.family.substring(0,3).toUpperCase()}),qt&&f.jsx("button",{className:"absolute -bottom-1 -right-1 w-5 h-5 rounded-full bg-slate-800 text-white flex items-center justify-center border border-slate-600 hover:bg-slate-700 pointer-events-auto shadow-sm transition-colors z-20",onClick:xt=>{xt.stopPropagation(),g(V.id)},title:Qt?"Expand Subtree":"Collapse Subtree",children:Qt?f.jsx(pb,{size:10,className:"stroke-[3] text-emerald-400"}):f.jsx(ib,{size:10,className:"stroke-[3] text-slate-300"})}),f.jsx("button",{className:`absolute -top-1.5 -left-1.5 rounded-full w-5 h-5 flex items-center justify-center border shadow-sm transition-all pointer-events-auto z-30 ${ft.fx!==null&&ft.fx!==void 0?"bg-indigo-600 border-indigo-500 text-white hover:bg-indigo-700 scale-100 opacity-100":"bg-white border-slate-300 text-slate-400 opacity-0 group-hover:opacity-100 hover:text-slate-600 hover:bg-slate-50 scale-90 group-hover:scale-100"}`,onClick:xt=>Jn(V.id,xt),title:ft.fx!==null&&ft.fx!==void 0?"Click to unpin node (Release physics)":"Click to pin node in current position",children:f.jsx(fb,{size:9,className:ft.fx!==null&&ft.fx!==void 0?"rotate-45 fill-white":"rotate-45"})}),pg(V,l)&&(()=>{const xt=pg(V,l);return f.jsxs("div",{className:`absolute -top-1.5 -right-1.5 rounded-full w-5 h-5 flex items-center justify-center border border-white shadow-md z-30 pointer-events-none ${xt.className}`,title:xt.label,children:[xt.icon==="fail"&&f.jsx(xi,{size:10,className:"stroke-[4] text-white"}),xt.icon==="warn"&&f.jsx(Uv,{size:10,className:"stroke-[3] text-white"}),xt.icon==="verified"&&f.jsx(Ym,{size:10,className:"stroke-[4] text-white"}),xt.icon==="pass"&&f.jsx(Ym,{size:10,className:"stroke-[4] text-white"})]})})(),f.jsx("button",{className:"absolute -bottom-1.5 -left-1.5 rounded-full w-5 h-5 bg-white border border-slate-300 text-slate-400 hover:text-rose-500 hover:border-rose-300 flex items-center justify-center shadow-sm transition-all pointer-events-auto z-30 scale-90 group-hover:scale-100 opacity-0 group-hover:opacity-100 hover:bg-rose-50 cursor-pointer",onClick:xt=>{xt.stopPropagation(),y(V.id)},title:"Hide this node from view",children:f.jsx(vg,{size:9,className:"stroke-[2.5]"})})]}),j.showLabels&&f.jsx("div",{className:`absolute top-13 pointer-events-none text-[10px] font-medium tracking-tight truncate max-w-[120px] text-center px-1.5 py-0.5 rounded shadow-sm border ${j.theme==="steel-dark"?"bg-slate-800 text-slate-200 border-slate-700":"bg-white text-slate-700 border-slate-200"}`,children:V.label||V.id})]},V.id)})]}),f.jsxs("div",{className:"absolute bottom-4 right-4 flex items-center gap-1.5 bg-slate-900/90 border border-slate-700/80 rounded-lg p-1.5 shadow-xl backdrop-blur-md z-10",children:[f.jsx("button",{onClick:()=>N(V=>Math.max(V/1.25,.15)),className:"canvas-button p-2 text-slate-300 hover:text-white rounded hover:bg-slate-800 transition",title:"Zoom Out",children:f.jsx(_b,{size:16})}),f.jsx("button",{onClick:()=>N(V=>Math.min(V*1.25,3)),className:"canvas-button p-2 text-slate-300 hover:text-white rounded hover:bg-slate-800 transition",title:"Zoom In",children:f.jsx(Ob,{size:16})}),f.jsx("button",{onClick:at,className:"canvas-button p-2 text-slate-300 hover:text-white rounded hover:bg-slate-800 transition",title:"Fit Viewport on Nodes",children:f.jsx(nb,{size:16})}),f.jsx("button",{onClick:St,className:"canvas-button p-2 text-slate-300 hover:text-white rounded hover:bg-slate-850 transition",title:"Reset Zoom to 100%",children:f.jsx(xb,{size:16})}),l==="network"&&f.jsx("button",{onClick:()=>{const V={...s};Object.keys(V).forEach(ft=>{V[ft]={...V[ft],fx:null,fy:null}}),S(V)},className:"canvas-button p-2 text-slate-300 hover:text-indigo-400 rounded hover:bg-slate-800 transition border-l border-slate-700 pl-2",title:"Unpin All Anchors (Release Physics)",children:f.jsx(cb,{size:16})}),p.size>0&&f.jsxs("button",{onClick:b,className:"canvas-button p-2 text-rose-400 hover:text-white rounded hover:bg-slate-800 transition border-l border-slate-700 pl-2 flex items-center gap-1 text-xs font-bold",title:`Reveal all ${p.size} hidden nodes`,children:[f.jsx(bg,{size:15}),f.jsxs("span",{children:["Show All (",p.size,")"]})]})]}),f.jsxs("div",{className:`absolute bottom-4 left-4 pointer-events-none hidden lg:flex items-center gap-4 px-3 py-2 rounded-lg border shadow-lg z-10 font-sans backdrop-blur-md ${j.theme==="steel-dark"?"bg-slate-900/90 border-slate-700/80 text-slate-300":"bg-white/95 border-slate-200 text-slate-600"}`,children:[f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-indigo-500 shadow-sm"}),f.jsx("span",{className:"text-[10px] font-semibold",children:"Active Layer Node"})]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-emerald-500 shadow-sm"}),f.jsx("span",{className:"text-[10px] font-semibold",children:"Verified Proof"})]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-rose-500 animate-pulse"}),f.jsx("span",{className:"text-[10px] font-semibold",children:"ValidationError"})]})]}),f.jsx(MT,{children:j.showMinimap&&f.jsxs(dg.div,{initial:{opacity:0,scale:.95,y:-10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-10},transition:{duration:.18,ease:"easeOut"},className:`absolute top-4 right-4 rounded-xl border overflow-hidden shadow-2xl backdrop-blur-md z-30 transition-shadow duration-300 ${j.theme==="steel-dark"?"bg-slate-900/90 border-slate-800 shadow-indigo-950/25":"bg-white/95 border-slate-200/90 shadow-slate-200/40"}`,children:[f.jsxs("div",{className:`px-2.5 py-1.5 border-b flex items-center justify-between text-[9px] font-bold tracking-wider uppercase select-none ${j.theme==="steel-dark"?"border-slate-800 text-slate-400 bg-slate-950/40":"border-slate-100 text-slate-500 bg-slate-50/50"}`,children:[f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(Sg,{size:10,className:"text-indigo-500"}),f.jsx("span",{children:"Navigation Overview"})]}),f.jsxs("span",{className:"font-mono text-[8px] opacity-75",children:[Math.round(D*100),"%"]})]}),f.jsxs("div",{className:"relative cursor-crosshair overflow-hidden",style:{width:Xe,height:ye},onPointerDown:Ja,onPointerMove:dr,onPointerUp:Sl,children:[f.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-[0.12]",style:{backgroundImage:`radial-gradient(${j.theme==="steel-dark"?"#ffffff":"#000000"} 1px, transparent 1px)`,backgroundSize:"12px 12px"}}),f.jsxs("svg",{width:"100%",height:"100%",className:"absolute inset-0 pointer-events-none",children:[de.length<=400&&de.map((V,ft)=>{const ut=s[V.from],mt=s[V.to];if(!ut||!mt)return null;const Mt=ce(ut.x,ut.y),zt=ce(mt.x,mt.y);return f.jsx("line",{x1:Mt.x,y1:Mt.y,x2:zt.x,y2:zt.y,stroke:j.theme==="steel-dark"?"rgba(100, 116, 139, 0.3)":"rgba(148, 163, 184, 0.45)",strokeWidth:1},`mini-edge-${ft}`)}),Ke.map(V=>{const ft=s[V.id];if(!ft)return null;const ut=ce(ft.x,ft.y),mt=r===V.id,Mt=h===V.id,zt=L3(V.family);return f.jsxs("g",{children:[(mt||Mt)&&f.jsx("circle",{cx:ut.x,cy:ut.y,r:mt?5.5:4.5,fill:"none",stroke:mt?"#6366f1":"#14b8a6",strokeWidth:1.5}),f.jsx("circle",{cx:ut.x,cy:ut.y,r:mt?3.2:Mt?2.5:2,fill:zt,opacity:mt||Mt?1:.8})]},`mini-node-${V.id}`)})]}),f.jsx("div",{className:"absolute border border-indigo-500 bg-indigo-500/10 pointer-events-none transition-all duration-75",style:{left:Fa,top:va,width:fr,height:bl,boxShadow:"0 0 8px rgba(99, 102, 241, 0.25)"}})]})]})})]})},q3=({payload:a,filters:s,onUpdateFilters:l,viewMode:r,onChangeViewMode:u,selectedRegistryKey:h,onChangeRegistry:d,registryOptions:p=[],allPacks:x,allTiers:g,allOriginKinds:y,filteredNodes:b,isCollapsed:S,onToggleCollapse:j,onSelectNode:M,onFocusNode:O,nodeLimit:B=300,onUpdateNodeLimit:Y,egoHops:G=1,onUpdateEgoHops:C,isolateEgo:X=!1,onUpdateIsolateEgo:I})=>{const[Z,L]=H.useState("search"),k=()=>{l({search:"",families:new Set(["ADR","Spec","SPEC","Feature","Claim","Test","Evidence","Release","Boundary","Profile","Risk","Issue"]),statuses:new Set,originKinds:new Set(y),tiers:new Set,packs:new Set,validationStatuses:new Set,edgeTypes:new Set})},W=()=>{l({search:"",families:new Set,statuses:new Set,originKinds:new Set,tiers:new Set,packs:new Set,validationStatuses:new Set,edgeTypes:new Set})},J=N=>{const q=new Set(s.families);q.has(N)?q.delete(N):q.add(N),l({...s,families:q})},tt=N=>{const q=new Set(s.originKinds);q.has(N)?q.delete(N):q.add(N),l({...s,originKinds:q})},st=N=>{const q=new Set(s.tiers);q.has(N)?q.delete(N):q.add(N),l({...s,tiers:q})},jt=N=>{const q=new Set(s.packs);q.has(N)?q.delete(N):q.add(N),l({...s,packs:q})},dt=N=>{const q=new Set(s.validationStatuses);q.has(N)?q.delete(N):q.add(N),l({...s,validationStatuses:q})},gt=N=>{const q=new Set(s.statuses);q.has(N)?q.delete(N):q.add(N),l({...s,statuses:q})},D=Bo.useMemo(()=>{let N=0;return s.search&&N++,s.families.size<10&&(N+=10-s.families.size),s.originKinds.size<6&&(N+=6-s.originKinds.size),s.tiers.size>0&&(N+=s.tiers.size),s.packs.size>0&&(N+=s.packs.size),s.validationStatuses.size>0&&(N+=s.validationStatuses.size),s.statuses.size>0&&(N+=s.statuses.size),N},[s]);return S?f.jsxs("div",{className:"w-12 h-full border-r border-slate-200 bg-white flex flex-col items-center py-4 gap-4 shrink-0 overflow-hidden font-sans select-none shadow-[1px_0_6px_-2px_rgba(0,0,0,0.05)] z-10 animate-fadeIn",children:[f.jsx("button",{onClick:j,className:"p-1.5 hover:bg-slate-100 rounded-lg text-slate-500 hover:text-slate-800 transition",title:"Expand left sidebar",children:f.jsx(Gu,{size:18})}),f.jsx("div",{className:"w-6 border-b border-slate-100 my-1"}),f.jsxs("div",{className:"p-2 text-indigo-600 rounded-lg hover:bg-indigo-50/50 cursor-pointer transition relative group",onClick:j,title:`Active registry: ${h}. Click to expand and change.`,children:[f.jsx(Gm,{size:16}),f.jsxs("div",{className:"absolute left-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2 py-1 rounded shadow opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:["Active Registry: ",h]})]}),f.jsx("div",{className:"w-6 border-b border-slate-100 my-1"}),f.jsx("div",{className:"flex flex-col items-center gap-1",children:[{mode:"lineage",label:"Lineage Flow",icon:Po},{mode:"proof",label:"Proof Chain",icon:$m},{mode:"origins",label:"Origins Mode",icon:Xm},{mode:"packs",label:"Packs Lineage",icon:Km},{mode:"release",label:"Release Board",icon:Qm},{mode:"validation",label:"Validation",icon:$o}].map(N=>{const q=N.icon,nt=r===N.mode;return f.jsxs("button",{onClick:()=>u(N.mode),className:`p-2 rounded-lg transition relative group ${nt?"bg-indigo-50 text-indigo-600":"text-slate-400 hover:text-slate-600 hover:bg-slate-50"}`,children:[f.jsx(q,{size:16}),f.jsx("div",{className:"absolute left-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2 py-1 rounded shadow opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:N.label})]},N.mode)})}),f.jsx("div",{className:"flex-1"}),D>0&&f.jsxs("button",{onClick:k,className:"p-2 bg-amber-50 hover:bg-amber-100 text-amber-600 rounded-lg transition relative group",title:"Reset active filters",children:[f.jsx(Zm,{size:14,className:"animate-spin-hover"}),f.jsx("span",{className:"absolute -top-1 -right-1 bg-amber-600 text-white text-[8px] font-bold w-4 h-4 rounded-full flex items-center justify-center border border-white",children:D}),f.jsxs("div",{className:"absolute left-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2 py-1 rounded shadow opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:["Reset ",D," filters"]})]})]}):f.jsxs("div",{className:"w-80 h-full border-r border-slate-200 bg-white flex flex-col shrink-0 overflow-hidden font-sans select-none shadow-[2px_0_12px_-4px_rgba(0,0,0,0.06)] z-10",children:[f.jsxs("div",{className:"p-4 border-b border-slate-100 bg-slate-50/70",children:[f.jsxs("div",{className:"flex items-center justify-between mb-2",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Gm,{size:18,className:"text-indigo-600"}),f.jsx("h2",{className:"text-sm font-bold tracking-tight text-slate-800",children:"SSOT Registry Scope"})]}),f.jsx("button",{onClick:j,className:"p-1 hover:bg-slate-200/60 rounded text-slate-400 hover:text-slate-600 transition",title:"Collapse left sidebar",children:f.jsx(xg,{size:16})})]}),f.jsx("select",{value:h,onChange:N=>d(N.target.value),className:"w-full bg-white border border-slate-200 rounded-md py-1.5 px-2.5 text-xs text-slate-700 font-medium focus:ring-1 focus:ring-indigo-500 focus:outline-none",children:(p.length>0?p:[{key:h,label:h}]).map(N=>f.jsx("option",{value:N.key,children:N.label},N.key))})]}),f.jsxs("div",{className:"flex border-b border-slate-100 text-xs font-semibold text-slate-500 bg-white",children:[f.jsx("button",{onClick:()=>L("search"),className:`flex-1 py-3 text-center border-b-2 transition ${Z==="search"?"border-indigo-600 text-indigo-600 bg-slate-50/20 font-bold":"border-transparent hover:text-slate-800"}`,children:"Index & Search"}),f.jsxs("button",{onClick:()=>L("filters"),className:`flex-1 py-3 text-center border-b-2 transition flex items-center justify-center gap-1.5 ${Z==="filters"?"border-indigo-600 text-indigo-600 bg-slate-50/20 font-bold":"border-transparent hover:text-slate-800"}`,children:["Filters",D>0&&f.jsx("span",{className:"bg-indigo-100 text-indigo-700 text-[10px] px-1.5 py-0.2 rounded-full font-bold",children:D})]}),f.jsx("button",{onClick:()=>L("limits"),className:`flex-1 py-3 text-center border-b-2 transition flex items-center justify-center gap-1.5 ${Z==="limits"?"border-indigo-600 text-indigo-600 bg-slate-50/20 font-bold":"border-transparent hover:text-slate-800"}`,children:"Limits"})]}),f.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[Z==="search"&&f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"relative",children:[f.jsx("span",{className:"absolute inset-y-0 left-3 flex items-center pointer-events-none text-slate-400",children:f.jsx(Sb,{size:14})}),f.jsx("input",{type:"text",placeholder:"Search IDs, labels, files, summaries...",value:s.search,onChange:N=>l({...s,search:N.target.value}),className:"w-full bg-slate-50 border border-slate-200 rounded-lg py-2 pl-9 pr-8 text-xs text-slate-700 focus:bg-white focus:outline-none focus:ring-1 focus:ring-indigo-500 transition-all font-mono"}),s.search&&f.jsx("button",{onClick:()=>l({...s,search:""}),className:"absolute inset-y-0 right-2.5 flex items-center text-slate-400 hover:text-slate-600",children:f.jsx(xi,{size:14})})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 mb-2 font-mono",children:"Lineage View Modes"}),f.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:[{mode:"network",label:"Network Force",icon:lb},{mode:"lineage",label:"Lineage Flow",icon:Po},{mode:"flow-force",label:"Flow Force",icon:Zm},{mode:"proof",label:"Proof Chain",icon:$m},{mode:"origins",label:"Origins Mode",icon:Xm},{mode:"packs",label:"Packs Lineage",icon:Km},{mode:"release",label:"Release Board",icon:Qm},{mode:"validation",label:"Validation",icon:$o}].map(N=>{const q=N.icon,nt=r===N.mode;return f.jsxs("button",{onClick:()=>u(N.mode),className:`flex items-center gap-1.5 px-2.5 py-2 rounded-md text-left text-xs transition border ${nt?"bg-indigo-50 text-indigo-700 border-indigo-200 font-semibold":"bg-white text-slate-600 border-slate-100 hover:bg-slate-50"}`,children:[f.jsx(q,{size:12,className:nt?"text-indigo-600":"text-slate-400"}),f.jsx("span",{children:N.label})]},N.mode)})})]}),f.jsxs("div",{children:[f.jsx("div",{className:"flex items-center justify-between mb-2",children:f.jsxs("h3",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:["Registry Index (",b.length,")"]})}),b.length===0?f.jsx("div",{className:"text-center py-6 bg-slate-50 rounded-lg border border-slate-100",children:f.jsx("span",{className:"text-[11px] text-slate-500 font-mono",children:"No registry nodes match filters."})}):f.jsxs("div",{className:"space-y-1.5 max-h-[280px] overflow-y-auto pr-1",children:[b.slice(0,250).map((N,q)=>{const nt=ga[N.family];return f.jsxs("div",{onClick:()=>{M&&M(N.id),O&&O(N.id);const yt=document.getElementById(`node-${N.id}`);yt&&(yt.click(),yt.scrollIntoView({behavior:"smooth",block:"center"}))},className:"p-2 border border-slate-100 rounded-md hover:bg-slate-50 hover:border-slate-200 cursor-pointer transition flex items-center justify-between",children:[f.jsxs("div",{className:"truncate pr-2",children:[f.jsxs("div",{className:"flex items-center gap-1.5 mb-0.5",children:[f.jsx("span",{className:`text-[8px] font-mono font-bold px-1 rounded-sm uppercase ${nt?.bg||"bg-slate-100"} ${nt?.text||"text-slate-700"}`,children:N.family}),f.jsx("span",{className:"text-[10px] font-bold text-slate-700 font-mono truncate",children:N.id})]}),f.jsx("p",{className:"text-[10px] text-slate-500 truncate max-w-[200px]",children:N.label||N.title})]}),f.jsxs("span",{className:"text-[9px] text-slate-400 font-mono shrink-0 font-bold bg-slate-50 px-1 py-0.5 rounded border border-slate-100",children:["dg:",N.degree||0]})]},`${N.id}-${q}`)}),b.length>250&&f.jsxs("div",{className:"text-center py-2 bg-indigo-50/40 rounded border border-dashed border-indigo-100/50 mt-1",children:[f.jsxs("p",{className:"text-[9px] text-indigo-700 font-mono font-medium",children:["Showing first 250 of ",b.length," matches."]}),f.jsx("p",{className:"text-[8px] text-slate-400",children:"Type in search box to filter details further."})]})]})]})]}),Z==="filters"&&f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 pb-2",children:[f.jsxs("span",{className:"text-xs font-bold text-slate-700 flex items-center gap-1",children:[f.jsx(Xu,{size:12,className:"text-indigo-600"}),"Active Filters"]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsx("button",{onClick:W,className:"text-[10px] text-slate-400 hover:text-rose-600 font-mono font-bold flex items-center gap-0.5 transition cursor-pointer",title:"Uncheck all checkboxes",children:"Clear"}),f.jsx("span",{className:"text-[10px] text-slate-300 font-mono font-bold select-none",children:"|"}),f.jsx("button",{onClick:k,className:"text-[10px] text-slate-400 hover:text-indigo-600 font-mono font-bold flex items-center gap-0.5 transition cursor-pointer",title:"Default checkboxes state",children:"Reset"})]})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"Entity Family Filters"}),f.jsx("div",{className:"flex flex-wrap gap-1.5",children:["ADR","Spec","SPEC","Feature","Claim","Test","Evidence","Release","Boundary","Profile","Risk","Issue"].map(N=>{const q=s.families.has(N),nt=ga[N];return f.jsxs("button",{onClick:()=>J(N),className:`text-[10px] font-medium px-2 py-1 rounded transition border flex items-center gap-1 ${q?`${nt?.bg||"bg-slate-100"} ${nt?.text||"text-slate-700"} ${nt?.border||"border-slate-300"} border-2 font-bold`:"bg-white text-slate-500 border-slate-200 hover:bg-slate-50"}`,children:[f.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${nt?.bg||"bg-slate-400"}`}),N]},N)})})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"Provenance Origin Kind"}),f.jsx("div",{className:"space-y-1",children:y.map(N=>{const q=s.originKinds.has(N);return f.jsxs("label",{className:"flex items-center gap-2 text-xs text-slate-600 cursor-pointer hover:text-slate-800",children:[f.jsx("input",{type:"checkbox",checked:q,onChange:()=>tt(N),className:"rounded text-indigo-600 focus:ring-indigo-500 w-3.5 h-3.5 border-slate-300"}),f.jsx("span",{className:"font-mono text-[11px] truncate capitalize",children:N.replace("-"," ")})]},N)})})]}),g.length>0&&f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"SLA Compliance Tiers"}),f.jsx("div",{className:"space-y-1",children:g.map(N=>{const q=s.tiers.has(N);return f.jsxs("label",{className:"flex items-center gap-2 text-xs text-slate-600 cursor-pointer hover:text-slate-800",children:[f.jsx("input",{type:"checkbox",checked:q,onChange:()=>st(N),className:"rounded text-indigo-600 focus:ring-indigo-500 w-3.5 h-3.5 border-slate-300"}),f.jsx("span",{className:"font-mono text-[11px]",children:N})]},N)})})]}),x.length>0&&f.jsxs("div",{className:"space-y-1.5 border-t border-slate-100 pt-3",children:[f.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"Governance Registry Packs"}),f.jsx("div",{className:"space-y-1 max-h-[140px] overflow-y-auto pr-1",children:x.map(N=>{const q=s.packs.has(N);return f.jsxs("label",{className:"flex items-center gap-2 text-xs text-slate-600 cursor-pointer hover:text-slate-800",children:[f.jsx("input",{type:"checkbox",checked:q,onChange:()=>jt(N),className:"rounded text-indigo-600 focus:ring-indigo-500 w-3.5 h-3.5 border-slate-300"}),f.jsx("span",{className:"font-mono text-[11px] truncate flex-1",title:N,children:N})]},N)})})]}),f.jsxs("div",{className:"space-y-1.5 border-t border-slate-100 pt-3",children:[f.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"Validation Outcome Filters"}),f.jsx("div",{className:"space-y-1",children:[{key:"pass",label:"Pass (Certified No Drift)",color:"text-emerald-600 bg-emerald-50"},{key:"warn",label:"Warn (Minor Compliance Gaps)",color:"text-amber-600 bg-amber-50"},{key:"fail",label:"Fail (Critical Blockers)",color:"text-red-600 bg-red-50"},{key:"unknown",label:"Unvalidated Entries",color:"text-slate-500 bg-slate-50"}].map(N=>{const q=s.validationStatuses.has(N.key);return f.jsxs("label",{className:"flex items-center gap-2 text-xs text-slate-600 cursor-pointer hover:text-slate-800",children:[f.jsx("input",{type:"checkbox",checked:q,onChange:()=>dt(N.key),className:"rounded text-indigo-600 focus:ring-indigo-500 w-3.5 h-3.5 border-slate-300"}),f.jsxs("span",{className:"font-mono text-[11px] flex-1 flex items-center justify-between",children:[f.jsx("span",{children:N.key.toUpperCase()}),f.jsx("span",{className:`text-[9px] px-1 py-0.2 rounded scale-90 ${N.color}`,children:N.label})]})]},N.key)})})]}),f.jsxs("div",{className:"space-y-1.5 border-t border-slate-100 pt-3",children:[f.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"Lifecycle Compliance Status"}),f.jsx("div",{className:"space-y-1",children:["active","certified","deprecated","experimental"].map(N=>{const q=s.statuses.has(N);return f.jsxs("label",{className:"flex items-center gap-2 text-xs text-slate-600 cursor-pointer hover:text-slate-800",children:[f.jsx("input",{type:"checkbox",checked:q,onChange:()=>gt(N),className:"rounded text-indigo-600 focus:ring-indigo-500 w-3.5 h-3.5 border-slate-300"}),f.jsx("span",{className:"font-mono text-[11px] capitalize",children:N})]},N)})})]})]}),Z==="limits"&&f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"flex items-center justify-between border-b border-slate-100 pb-2",children:f.jsxs("span",{className:"text-xs font-bold text-slate-700 flex items-center gap-1",children:[f.jsx(Xu,{size:12,className:"text-indigo-600"}),"Workspace Limits"]})}),f.jsxs("div",{className:"bg-slate-50 rounded-lg p-3 border border-slate-150 space-y-4",children:[f.jsxs("div",{className:"space-y-1.5",children:[f.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[f.jsx("span",{className:"text-slate-600 font-medium",children:"Render Node Limit"}),f.jsx("span",{className:"font-mono text-indigo-600 font-bold whitespace-nowrap",children:B>5e3?"Unlimited":`${B} Nodes`})]}),f.jsx("input",{type:"range",min:"50",max:"500",step:"50",value:B>5e3?500:B,onChange:N=>{const q=parseInt(N.target.value);Y?.(q===500?999999:q)},className:"w-full accent-indigo-600 cursor-pointer h-1 bg-slate-200 rounded-lg focus:outline-none"}),f.jsxs("div",{className:"flex justify-between text-[8px] text-slate-400 font-mono",children:[f.jsx("span",{children:"50"}),f.jsx("span",{children:"150"}),f.jsx("span",{children:"300"}),f.jsx("span",{children:"Unlimited"})]})]}),f.jsxs("div",{className:"space-y-1.5 pt-3 border-t border-slate-200/50",children:[f.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[f.jsx("span",{className:"text-slate-600 font-medium",children:"Ego-Focus Hops Limit"}),f.jsxs("span",{className:"font-mono text-indigo-600 font-bold",children:[G," ",G===1?"Hop":"Hops"]})]}),f.jsx("div",{className:"flex gap-1.5",children:[1,2,3,4].map(N=>f.jsx("button",{onClick:()=>C?.(N),className:`flex-1 py-1 rounded text-xs font-mono transition font-bold border cursor-pointer ${G===N?"bg-indigo-600 border-indigo-750 text-white":"bg-white border-slate-200 text-slate-600 hover:bg-slate-50"}`,children:N},N))}),f.jsx("p",{className:"text-[10px] text-slate-400 mt-1 leading-relaxed",children:"Deepens or constrains the neighbor-traversal range (hops) when filtering the central active ego node."})]}),f.jsxs("div",{className:"space-y-1.5 pt-3 border-t border-slate-200/50",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-[11px] text-slate-600 font-medium",children:"Isolate Active Focus"}),f.jsx("button",{onClick:()=>I?.(!X),className:`relative inline-flex h-5 w-9 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none ${X?"bg-indigo-600":"bg-slate-200"}`,children:f.jsx("span",{"aria-hidden":"true",className:`pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out ${X?"translate-x-4":"translate-x-0"}`})})]}),f.jsx("p",{className:"text-[10px] text-slate-400 leading-relaxed",children:"When enabled, completely hides any nodes and ribbons outside of the active focus neighborhood."})]})]})]})]}),f.jsxs("div",{className:"p-4 border-t border-slate-100 bg-slate-50",children:[f.jsxs("div",{className:"flex items-center justify-between text-[11px] text-slate-500 font-mono mb-2",children:[f.jsxs("span",{children:["Schema: v",a.schemaVersion||"2.4.0"]}),f.jsxs("span",{children:["Edges: ",a.edges.length||0]})]}),f.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-slate-500 font-mono",children:[f.jsx("div",{className:"w-2 h-2 rounded-full bg-green-500 animate-pulse"}),f.jsx("span",{children:"Registry Status: 100% VALIDATED"})]})]})]})},Y3=({payload:a,selectedNodeId:s,focusNodeId:l,onSelectNode:r,onSetFocusNode:u,onClearFocusNode:h,isCollapsed:d,onToggleCollapse:p})=>{const[x,g]=Bo.useState(null),y=Bo.useMemo(()=>s&&a.nodes.find(M=>M.id===s)||null,[s,a.nodes]),b=Bo.useMemo(()=>{if(!s)return{incoming:[],outgoing:[]};const M=[],O=[];return a.edges.forEach(B=>{if(B.to===s){const Y=a.nodes.find(G=>G.id===B.from);Y&&M.push({node:Y,edge:B})}if(B.from===s){const Y=a.nodes.find(G=>G.id===B.to);Y&&O.push({node:Y,edge:B})}}),{incoming:M,outgoing:O}},[s,a.nodes,a.edges]),S=(M,O)=>{navigator.clipboard.writeText(M),g(O),setTimeout(()=>g(null),2e3)};if(d)return f.jsxs("div",{className:"w-12 h-full border-l border-slate-200 bg-slate-50 flex flex-col items-center py-4 gap-4 shrink-0 overflow-hidden font-sans select-none shadow-[-1px_0_6px_-2px_rgba(0,0,0,0.05)] z-10 animate-fadeIn",children:[f.jsx("button",{onClick:p,className:"p-1.5 hover:bg-slate-200 rounded-lg text-slate-500 hover:text-slate-800 transition",title:"Expand inspector panel",children:f.jsx(xg,{size:18})}),f.jsx("div",{className:"w-6 border-b border-slate-200/60 my-1"}),y?f.jsxs("div",{className:"flex flex-col items-center gap-4 flex-1 w-full relative",children:[f.jsx("div",{className:`w-3.5 h-3.5 rounded-full relative group cursor-pointer shadow-sm border border-slate-200 ${ga[y.family]?.bg||"bg-indigo-400"}`,onClick:p,children:f.jsxs("div",{className:"absolute right-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2.5 py-1 rounded-md shadow-lg opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans font-medium",children:[y.family,": ",y.id]})}),f.jsxs("button",{onClick:()=>S(y.id,"ID"),className:"p-2 text-slate-400 hover:text-slate-600 hover:bg-slate-200/50 rounded-lg transition relative group",children:[f.jsx(rs,{size:14}),f.jsx("div",{className:"absolute right-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2.5 py-1 rounded-md shadow-lg opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:x==="ID"?"Copied!":"Copy Node ID"})]}),y.id!==l?f.jsxs("button",{onClick:()=>u(y.id),className:"p-2 text-teal-600 hover:text-teal-800 hover:bg-teal-50 rounded-lg transition relative group",children:[f.jsx(qm,{size:14}),f.jsx("div",{className:"absolute right-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2.5 py-1 rounded-md shadow-lg opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:"Focus Node"})]}):f.jsxs("button",{onClick:h,className:"p-2 text-amber-600 hover:text-amber-800 hover:bg-amber-50 rounded-lg transition relative group",children:[f.jsx(xi,{size:14}),f.jsx("div",{className:"absolute right-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2.5 py-1 rounded-md shadow-lg opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:"Unfocus"})]}),f.jsx("div",{className:"flex-1"}),f.jsxs("button",{onClick:()=>r(null),className:"p-2 text-slate-400 hover:text-rose-600 hover:bg-rose-50 rounded-lg transition relative group",children:[f.jsx(Cb,{size:14}),f.jsx("div",{className:"absolute right-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2.5 py-1 rounded-md shadow-lg opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:"Deselect Node"})]})]}):f.jsxs("div",{className:"flex flex-col items-center gap-4 flex-1 justify-center opacity-45",children:[f.jsx($o,{size:16,className:"text-slate-400 animate-pulse"}),f.jsx("span",{className:"text-[9px] text-slate-400 font-extrabold tracking-widest uppercase pointer-events-none select-none [writing-mode:vertical-lr] my-auto rotate-180",children:"Inspector Empty"})]})]});if(!y)return f.jsxs("div",{className:"w-80 h-full border-l border-slate-200 bg-slate-50 flex flex-col items-center justify-center p-6 text-center select-none shrink-0 shadow-[-2px_0_12px_-4px_rgba(0,0,0,0.04)] relative",children:[f.jsx("button",{onClick:p,className:"absolute top-4 right-4 p-1.5 hover:bg-slate-200/60 text-slate-400 hover:text-slate-600 rounded-lg transition",title:"Collapse inspector",children:f.jsx(Gu,{size:16})}),f.jsx($o,{size:32,className:"text-slate-300 mb-2 animate-pulse"}),f.jsx("p",{className:"text-xs font-semibold text-slate-500",children:"No Element Selected"}),f.jsx("p",{className:"text-[10px] text-slate-400 max-w-[200px] mt-1",children:"Click any circular node in the lineage graph to view source provenance, tests, claims, and relations."})]});const j=ga[y.family]||ga.Profile;return f.jsxs("div",{className:"w-80 h-full border-l border-slate-200 bg-white flex flex-col shrink-0 overflow-hidden font-sans shadow-[-2px_0_12px_-4px_rgba(0,0,0,0.06)] z-10 animate-slideIn",children:[f.jsxs("div",{className:"p-4 border-b border-slate-100 flex items-center justify-between bg-slate-50/40",children:[f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsx("span",{className:`text-[9px] font-mono font-extrabold px-1.5 py-0.5 rounded uppercase ${j.bg} ${j.text} border ${j.border}`,children:y.family}),f.jsx("span",{className:"text-xs font-bold text-slate-800 font-mono truncate max-w-[125px]",children:y.id})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("button",{onClick:()=>r(null),className:"text-slate-400 hover:text-slate-600 p-1 hover:bg-slate-100 rounded-lg transition",title:"Collapse inspector",children:f.jsx(Gu,{size:15})}),f.jsx("button",{onClick:()=>r(null),className:"text-slate-400 hover:text-slate-600 p-1 hover:bg-slate-100 rounded-full transition",title:"Close Inspector",children:f.jsx(xi,{size:15})})]})]}),f.jsxs("div",{className:"px-4 py-2 bg-slate-50 border-b border-slate-100 flex items-center gap-1.5",children:[f.jsxs("button",{onClick:()=>S(y.id,"ID"),className:"flex-1 py-1 px-2.5 text-[9px] font-mono font-bold text-slate-600 bg-white border border-slate-200 rounded hover:bg-slate-100 hover:text-slate-800 transition flex items-center justify-center gap-1",title:"Copy node ID to clipboard",children:[f.jsx(rs,{size:10}),f.jsx("span",{children:x==="ID"?"Copied!":"Copy Node ID"})]}),y.id!==l?f.jsxs("button",{onClick:()=>u(y.id),className:"flex-1 py-1 px-2.5 text-[9px] font-bold text-teal-700 bg-teal-50/60 border border-teal-200 rounded hover:bg-teal-100 hover:text-teal-900 transition flex items-center justify-center gap-1",title:"Focus graph layout center around this node",children:[f.jsx(qm,{size:11}),f.jsx("span",{children:"Focus Node"})]}):f.jsxs("button",{onClick:h,className:"flex-1 py-1 px-2.5 text-[9px] font-bold text-amber-700 bg-amber-50/60 border border-amber-200 rounded hover:bg-amber-100 hover:text-amber-900 transition flex items-center justify-center gap-1",title:"Clear manual layout focus center",children:[f.jsx(xi,{size:10}),f.jsx("span",{children:"Unfocus"})]})]}),f.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("h1",{className:"text-xs font-bold text-slate-800",children:y.title||y.label||y.id}),y.body?f.jsx("div",{className:"bg-slate-50/80 border border-slate-200/60 rounded-lg p-3 text-[10.5px] leading-relaxed text-slate-600 font-mono whitespace-pre-wrap max-h-48 overflow-y-auto shadow-inner",children:y.body}):f.jsx("p",{className:"text-[11px] leading-relaxed text-slate-500",children:y.description||y.summary||"No description document supplied in registry payload definition."})]}),f.jsxs("div",{className:"bg-slate-50/70 border border-slate-100 rounded-lg p-2.5 space-y-1.5",children:[f.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[f.jsx("span",{className:"text-slate-400 font-medium",children:"Compliance status"}),f.jsx("span",{className:"font-mono uppercase font-bold text-indigo-600 bg-indigo-50 px-1.5 py-0.5 rounded text-[9px]",children:y.status||"active"})]}),y.tier&&f.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[f.jsx("span",{className:"text-slate-400 font-medium",children:"SLA Tier level"}),f.jsx("span",{className:"font-mono text-[9px] text-slate-600 font-semibold",children:y.tier})]}),y.proof?.completeness!==void 0&&f.jsxs("div",{className:"space-y-1 pt-1.5 border-t border-slate-200/50",children:[f.jsxs("div",{className:"flex items-center justify-between text-[10px] font-mono",children:[f.jsx("span",{className:"text-slate-500 font-bold",children:"Proof Progress"}),f.jsxs("span",{className:"text-slate-700 font-black",children:[y.proof.completeness,"%"]})]}),f.jsx("div",{className:"w-full bg-slate-200 h-1 rounded-full overflow-hidden",children:f.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${y.proof.completeness===100?"bg-emerald-500":"bg-indigo-500"}`,style:{width:`${y.proof.completeness}%`}})})]})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("h3",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"Origin Provenance"}),f.jsxs("div",{className:"text-xs border border-slate-100 rounded-lg p-2.5 space-y-1 bg-white",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-slate-400 text-[10px]",children:"Registry package:"}),f.jsx("span",{className:"font-mono text-[10px] text-slate-600 capitalize",children:y.originKind||"Local"})]}),y.path&&f.jsxs("div",{className:"space-y-1 pt-1",children:[f.jsx("div",{className:"text-slate-400 text-[10px]",children:"File path:"}),f.jsxs("div",{className:"flex items-center gap-1 bg-slate-50 hover:bg-slate-100 p-1 rounded border border-slate-200/50",children:[f.jsx(Jv,{size:10,className:"text-slate-400"}),f.jsx("span",{className:"font-mono text-[10px] text-slate-700 truncate select-all flex-1",children:y.path}),f.jsx("button",{onClick:()=>S(y.path||"","FilePath"),className:"p-0.5 text-slate-400 hover:text-slate-700",title:"Copy relative file coordinate path",children:f.jsx(rs,{size:9})})]})]})]})]}),y.validation&&y.validation.status!=="pass"&&f.jsxs("div",{className:"space-y-1.5",children:[f.jsxs("h3",{className:"text-[10px] font-bold uppercase tracking-wider text-red-500 font-mono flex items-center gap-1",children:[f.jsx(wb,{size:12}),"Validation Warnings"]}),f.jsx("div",{className:"bg-red-50/50 border border-red-100 rounded-lg p-2.5 space-y-1.5 max-h-[140px] overflow-y-auto",children:(y.validation.issues||[]).map((M,O)=>f.jsxs("div",{className:"text-[10px] text-red-700 leading-relaxed font-mono flex items-start gap-1",children:[f.jsx("span",{children:"-"}),f.jsx("span",{children:M})]},O))})]}),f.jsxs("div",{className:"space-y-3 pt-1 border-t border-slate-100",children:[f.jsxs("div",{className:"space-y-1.5",children:[f.jsxs("h3",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:["Upstream Ancestors (",b.incoming.length,")"]}),b.incoming.length===0?f.jsx("p",{className:"text-[10px] text-slate-400 italic",children:"No incoming connections."}):f.jsx("div",{className:"space-y-1",children:b.incoming.map(({node:M,edge:O},B)=>{const Y=ga[M.family];return f.jsxs("div",{onClick:()=>r(M.id),className:"p-1 px-2 border border-slate-100 rounded hover:bg-slate-50 cursor-pointer flex items-center justify-between text-[11px] transition",children:[f.jsxs("div",{className:"flex items-center gap-1.5 truncate max-w-[160px]",children:[f.jsx("span",{className:`text-[8px] font-mono px-1 rounded uppercase ${Y?.bg} ${Y?.text}`,children:M.family.substring(0,3)}),f.jsx("span",{className:"font-mono text-[10px] font-semibold text-slate-700 truncate",children:M.id})]}),f.jsx("span",{className:"text-[9px] text-indigo-500 font-mono font-bold lowercase",children:O.type||"drives"})]},`${M.id}-${O.type||"incoming"}-${B}`)})})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsxs("h3",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:["Downstream Relations (",b.outgoing.length,")"]}),b.outgoing.length===0?f.jsx("p",{className:"text-[10px] text-slate-400 italic",children:"No outgoing connections."}):f.jsx("div",{className:"space-y-1",children:b.outgoing.map(({node:M,edge:O},B)=>{const Y=ga[M.family];return f.jsxs("div",{onClick:()=>r(M.id),className:"p-1 px-2 border border-slate-100 rounded hover:bg-slate-50 cursor-pointer flex items-center justify-between text-[11px] transition",children:[f.jsxs("div",{className:"flex items-center gap-1.5 truncate max-w-[160px]",children:[f.jsx("span",{className:`text-[8px] font-mono px-1 rounded uppercase ${Y?.bg} ${Y?.text}`,children:M.family.substring(0,3)}),f.jsx("span",{className:"font-mono text-[10px] font-semibold text-slate-700 truncate",children:M.id})]}),f.jsx("span",{className:"text-[9px] text-slate-400 font-mono font-bold lowercase",children:O.type||"triggers"})]},`${M.id}-${O.type||"outgoing"}-${B}`)})})]})]})]})]})},G3=()=>{const[a,s]=H.useState("matrix"),[l,r]=H.useState(null),u=(x,g)=>{navigator.clipboard.writeText(x),r(g),setTimeout(()=>r(null),2e3)},h=`import { LineageGraphApp } from "@ssot-registry/lineage-graph";
|
|
27
27
|
import { LineagePayload } from "./types";
|
|
28
28
|
|
|
29
29
|
const payload: LineagePayload = {
|
|
@@ -41,21 +41,21 @@ const payload: LineagePayload = {
|
|
|
41
41
|
export default function App() {
|
|
42
42
|
return (
|
|
43
43
|
<div className="w-screen h-screen">
|
|
44
|
-
<LineageGraphApp
|
|
45
|
-
payload={payload}
|
|
44
|
+
<LineageGraphApp
|
|
45
|
+
payload={payload}
|
|
46
46
|
defaultMode="lineage"
|
|
47
47
|
theme="light"
|
|
48
48
|
/>
|
|
49
49
|
</div>
|
|
50
50
|
);
|
|
51
|
-
}`,
|
|
51
|
+
}`,d=`def _lineage_payload(self) -> dict:
|
|
52
52
|
"""
|
|
53
|
-
Python backend generator mapping active compliance records
|
|
53
|
+
Python backend generator mapping active compliance records
|
|
54
54
|
into standard LineagePayload JSON contracts.
|
|
55
55
|
"""
|
|
56
56
|
nodes = []
|
|
57
57
|
edges = []
|
|
58
|
-
|
|
58
|
+
|
|
59
59
|
# Trace ADRs, SPECs, Features, and releases to build proof chains
|
|
60
60
|
for entity in self.registry.get_entities():
|
|
61
61
|
nodes.append({
|
|
@@ -66,7 +66,7 @@ export default function App() {
|
|
|
66
66
|
"originKind": "repo-local" if entity.is_local else "ssot-origin",
|
|
67
67
|
"path": entity.relative_path
|
|
68
68
|
})
|
|
69
|
-
|
|
69
|
+
|
|
70
70
|
for link in self.registry.get_links():
|
|
71
71
|
edges.append({
|
|
72
72
|
"from": link.source_id,
|
|
@@ -74,11 +74,11 @@ export default function App() {
|
|
|
74
74
|
"type": link.relationship_type,
|
|
75
75
|
"status": "active"
|
|
76
76
|
})
|
|
77
|
-
|
|
77
|
+
|
|
78
78
|
return {
|
|
79
79
|
"schemaVersion": "2.4.0",
|
|
80
80
|
"generatedAt": "2026-06-21T22:20:00-07:00",
|
|
81
81
|
"nodes": nodes,
|
|
82
82
|
"edges": edges,
|
|
83
83
|
"registry": { "validationStatus": "valid" }
|
|
84
|
-
}`,p="uv run ssot graph lineage . --output .ssot/graphs/registry.lineage.html";return h.jsxs("div",{className:"flex-1 bg-slate-50 overflow-y-auto font-sans p-6",children:[h.jsxs("div",{className:"max-w-4xl mx-auto mb-8 bg-gradient-to-r from-indigo-700 to-indigo-900 border border-indigo-950 p-6 rounded-2xl shadow-xl text-white",children:[h.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[h.jsx(vg,{className:"text-indigo-200 animate-pulse",size:24}),h.jsx("span",{className:"text-[10px] font-mono tracking-widest text-indigo-200 uppercase bg-indigo-800/80 px-2.5 py-0.5 rounded-full font-bold",children:"Interactive Documentation System"})]}),h.jsx("h1",{className:"text-xl sm:text-2xl font-extrabold tracking-tight",children:"@ssot-registry/lineage-graph"}),h.jsx("p",{className:"text-sm text-indigo-100 max-w-2xl mt-1.5 leading-relaxed",children:"The canonical visual React workspace for proving, validating, and explaining how Single Source of Truth repositories release certified products. Fully typed, offline capable, rendering with high-speed coordinate canvas bounds."}),h.jsxs("div",{className:"flex bg-indigo-950/40 p-1 rounded-lg mt-6 max-w-md border border-indigo-800/40",children:[h.jsx("button",{onClick:()=>s("api"),className:`flex-1 py-1.5 px-3 rounded text-xs font-semibold select-none transition ${a==="api"?"bg-indigo-600 text-white shadow":"text-indigo-200 hover:text-white"}`,children:"React API Reference"}),h.jsx("button",{onClick:()=>s("stories"),className:`flex-1 py-1.5 px-3 rounded text-xs font-semibold select-none transition ${a==="stories"?"bg-indigo-600 text-white shadow":"text-indigo-200 hover:text-white"}`,children:"Interactive Stories"}),h.jsx("button",{onClick:()=>s("cli"),className:`flex-1 py-1.5 px-3 rounded text-xs font-semibold select-none transition ${a==="cli"?"bg-indigo-600 text-white shadow":"text-indigo-200 hover:text-white"}`,children:"SSOT CLI Exports"})]})]}),h.jsxs("div",{className:"max-w-4xl mx-auto bg-white border border-slate-200 rounded-xl shadow-md p-6",children:[a==="api"&&h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{children:[h.jsxs("h2",{className:"text-base font-bold text-slate-800 mb-1 flex items-center gap-1.5 border-b border-slate-100 pb-2",children:[h.jsx(Uv,{size:18,className:"text-indigo-600"})," Component Signatures"]}),h.jsxs("p",{className:"text-xs text-slate-500 leading-relaxed mt-2",children:["The visual widget package exports a main application workspace wrapper ",h.jsx("strong",{className:"font-mono text-[11px] bg-slate-100 p-0.5 rounded text-slate-800",children:"LineageGraphApp"})," that houses all coordinate math, filter buttons, searches, legends, and sidebars."]})]}),h.jsxs("div",{className:"space-y-4",children:[h.jsx("h3",{className:"text-xs font-bold text-slate-700 uppercase tracking-wider font-mono",children:"LineageGraphApp Props Layout"}),h.jsx("div",{className:"overflow-x-auto border border-slate-100 rounded-lg",children:h.jsxs("table",{className:"w-full text-left border-collapse text-xs",children:[h.jsx("thead",{children:h.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200 font-mono text-slate-500",children:[h.jsx("th",{className:"p-2.5 font-bold",children:"Prop Name"}),h.jsx("th",{className:"p-2.5 font-bold",children:"Type"}),h.jsx("th",{className:"p-2.5 font-bold",children:"Required"}),h.jsx("th",{className:"p-2.5 font-bold",children:"Description"})]})}),h.jsxs("tbody",{className:"divide-y divide-slate-100 text-[11px] font-mono text-slate-600",children:[h.jsxs("tr",{children:[h.jsx("td",{className:"p-2.5 font-bold text-indigo-600",children:"payload"}),h.jsx("td",{className:"p-2.5",children:"LineagePayload"}),h.jsx("td",{className:"p-2.5 text-rose-500 font-bold",children:"Yes"}),h.jsx("td",{className:"p-2.5 text-slate-500 font-sans",children:"The complete typed SSOT registry JSON payload structure."})]}),h.jsxs("tr",{children:[h.jsx("td",{className:"p-2.5 font-bold text-indigo-600",children:"defaultMode"}),h.jsx("td",{className:"p-2.5",children:'"network" | "lineage" | "proof" | "origins"'}),h.jsx("td",{className:"p-2.5 text-slate-400",children:"No"}),h.jsx("td",{className:"p-2.5 text-slate-500 font-sans",children:'Initial render mode. Defaults to "lineage".'})]}),h.jsxs("tr",{children:[h.jsx("td",{className:"p-2.5 font-bold text-indigo-600",children:"theme"}),h.jsx("td",{className:"p-2.5",children:'"light" | "steel-dark"'}),h.jsx("td",{className:"p-2.5 text-slate-400",children:"No"}),h.jsx("td",{className:"p-2.5 text-slate-500 font-sans",children:'Color theme preset. Defaults to "light".'})]})]})]})})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"text-xs font-bold text-slate-700",children:"React Embed Code Example"}),h.jsxs("button",{onClick:()=>c(m,"react"),className:"text-[10px] text-slate-500 hover:text-indigo-600 flex items-center gap-1 font-mono hover:underline",children:[h.jsx(os,{size:11})," ",o==="react"?"Copied!":"Copy Code"]})]}),h.jsx("pre",{className:"bg-slate-900 text-slate-100 p-4 rounded-xl text-[10px] font-mono overflow-x-auto leading-relaxed border border-slate-950",children:m})]})]}),a==="stories"&&h.jsxs("div",{className:"space-y-6",children:[h.jsxs("h2",{className:"text-base font-bold text-slate-800 flex items-center gap-1.5 border-b border-slate-100 pb-2",children:[h.jsx(db,{size:18,className:"text-indigo-600"})," Live Visual Testing Stories"]}),h.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[h.jsxs("div",{className:"p-4 border border-slate-150 rounded-xl hover:shadow-md transition",children:[h.jsx("span",{className:"text-[9px] font-mono font-bold bg-amber-50 text-amber-700 px-2 py-0.5 rounded border border-amber-200",children:"Story #1: Tree Structure Collapse"}),h.jsx("h3",{className:"text-xs font-bold text-slate-800 mt-2",children:"Recursive Sub-tree Collapsible Nodes"}),h.jsxs("p",{className:"text-[11px] text-slate-500 mt-1 leading-relaxed",children:["Clicking the circle expansion badge ",h.jsx("strong",{className:"font-mono text-slate-800",children:"[+]"})," or ",h.jsx("strong",{className:"font-mono text-slate-800",children:"[-]"})," at the base of the circular nodes dynamically hides or reveals children subtrees cleanly. Perfect for reducing visual noise in deep registries."]})]}),h.jsxs("div",{className:"p-4 border border-slate-150 rounded-xl hover:shadow-md transition",children:[h.jsx("span",{className:"text-[9px] font-mono font-bold bg-emerald-50 text-emerald-700 px-2 py-0.5 rounded border border-emerald-200",children:"Story #2: Ego-Centric Filtering Triggers"}),h.jsx("h3",{className:"text-xs font-bold text-slate-800 mt-2",children:"Instant Ego Neighborhood Hover Analysis"}),h.jsx("p",{className:"text-[11px] text-slate-500 mt-1 leading-relaxed",children:"Hovering over any node dynamically highlights connected outgoing specifications and upstream ADR ancestors while executing a fluid, 60fps linear opacity fade on unrelated components."})]}),h.jsxs("div",{className:"p-4 border border-slate-150 rounded-xl hover:shadow-md transition",children:[h.jsx("span",{className:"text-[9px] font-mono font-bold bg-indigo-50 text-indigo-700 px-2 py-0.5 rounded border border-indigo-200",children:"Story #3: Draggable Reposition Node Locking"}),h.jsx("h3",{className:"text-xs font-bold text-slate-800 mt-2",children:"Frictionless Free-form Layout Repositioning"}),h.jsx("p",{className:"text-[11px] text-slate-500 mt-1 leading-relaxed",children:"At any point, grab and slide circular elements manually to alter connections. Layout positions are computed dividing coordinate movements by scale coefficients, ensuring zero drifting under variable zoom viewports."})]}),h.jsxs("div",{className:"p-4 border border-slate-150 rounded-xl hover:shadow-md transition",children:[h.jsx("span",{className:"text-[9px] font-mono font-bold bg-red-50 text-red-700 px-2 py-0.5 rounded border border-red-200",children:"Story #4: Validation Drift Spotlighting"}),h.jsx("h3",{className:"text-xs font-bold text-slate-800 mt-2",children:"Dotted Stale Link Warning Metrics"}),h.jsx("p",{className:"text-[11px] text-slate-500 mt-1 leading-relaxed",children:"Validation drifts trigger color alerts on the canvas node rims (red alerts) and draw invalid links with dotted ruby traces. The right inspector immediately lists failure issue lines."})]})]})]}),a==="cli"&&h.jsxs("div",{className:"space-y-6",children:[h.jsxs("h2",{className:"text-base font-bold text-slate-800 flex items-center gap-1.5 border-b border-slate-100 pb-2",children:[h.jsx(Yv,{size:18,className:"text-indigo-600"})," CLI Standalone Exporters"]}),h.jsxs("div",{className:"space-y-4 text-xs text-slate-600",children:[h.jsx("p",{className:"leading-relaxed",children:"The visual React package compiles directly to an inline static single-page viewer containing no external runtime CDN links or package dependencies. PyPI users invoke this build engine via the Python command-line utility to generate completely offline *.html assets."}),h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"text-xs font-bold text-slate-700",children:"Python CLI trigger terminal snip"}),h.jsxs("button",{onClick:()=>c(p,"cli"),className:"text-[10px] text-slate-500 hover:text-indigo-600 flex items-center gap-1 font-mono hover:underline",children:[h.jsx(os,{size:11})," ",o==="cli"?"Copied!":"Copy Command"]})]}),h.jsxs("pre",{className:"bg-slate-900 text-slate-100 p-3 rounded-xl font-mono text-[10.5px] border border-slate-950 overflow-x-auto select-all",children:["$ ",p]})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"text-xs font-bold text-slate-700",children:"Primary Python payload producer schema mapping"}),h.jsxs("button",{onClick:()=>c(f,"python"),className:"text-[10px] text-slate-500 hover:text-indigo-600 flex items-center gap-1 font-mono hover:underline",children:[h.jsx(os,{size:11})," ","Copy Code"]})]}),h.jsx("pre",{className:"bg-slate-900 text-slate-100 p-4 rounded-xl text-[10px] font-mono overflow-x-auto leading-relaxed border border-slate-950",children:f})]})]})]})]})]})},Y3=({payload:a,selectedRegistryKey:s=a.package?.id||a.package?.name||"current",onChangeRegistry:o=()=>{},registryOptions:r=[],defaultMode:c="lineage",theme:m="light",showDocumentation:f=!1,precomputedIndices:p})=>{const[v,g]=H.useState("workspace"),[b,x]=H.useState(null),[A,E]=H.useState(new Set),[O,_]=H.useState(new Set),[U,Q]=H.useState([]),[B,z]=H.useState(300),[X,st]=H.useState(1),[Y,F]=H.useState(!1),[K,W]=H.useState(null),[I,lt]=H.useState([]),[ft,Ot]=H.useState(new Set),[Et,jt]=H.useState(new Set),[N,nt]=H.useState(c),[et,pt]=H.useState({showLabels:!0,edgeWidth:2,edgeOpacity:.6,showMinimap:!1,theme:m}),[C,T]=H.useState(!1),[L,at]=H.useState(!1),ot=H.useMemo(()=>Array.from(new Set(["ADR","Spec","SPEC","Feature","Claim","Test","Evidence","Release","Boundary","Profile","Risk","Issue",...a.nodes.map(tt=>tt.family)])),[a.nodes]),Tt=H.useMemo(()=>Array.from(new Set(["ssot-core","ssot-origin","repo-local","extension-pack","generated","unknown",...a.nodes.map(tt=>tt.originKind).filter(tt=>!!tt)])),[a.nodes]),[dt,Bt]=H.useState({search:"",families:new Set(ot),statuses:new Set,originKinds:new Set(Tt),tiers:new Set,packs:new Set,validationStatuses:new Set,edgeTypes:new Set}),[Kt,At]=H.useState({}),qe=H.useRef(null),Ln=1100,Bn=620;H.useEffect(()=>{console.log("[LineageGraphApp] Ready! Graph initialized successfully")},[]),H.useEffect(()=>{console.log(`[LineageGraphApp] View Mode changed to: ${N.toUpperCase()}`)},[N]),H.useEffect(()=>{b?(console.log(`[LineageGraphApp] Node Selected: ${b}`),at(!1)):(console.log("[LineageGraphApp] Node Selection Cleared"),at(!0))},[b]),H.useEffect(()=>{K&&console.log(`[LineageGraphApp] Viewport camera locked onto focus node: ${K}`)},[K]),H.useEffect(()=>{!f&&v==="storybook"&&g("workspace")},[v,f]),H.useEffect(()=>{Bt(tt=>({...tt,families:new Set([...ot,...tt.families]),originKinds:new Set([...Tt,...tt.originKinds])}))},[ot,Tt]);const je=H.useMemo(()=>p||r1(a),[a,p]);H.useMemo(()=>b&&a.nodes.find(tt=>tt.id===b)||null,[b,a.nodes]);const{allPacks:Nn,allTiers:Ka,allOriginKinds:Za}=H.useMemo(()=>{const tt=new Set,Mt=new Set,yt=new Set,Zt=a.nodes.length>5e3;return a.nodes.forEach((re,ae)=>{Zt&&ae%10!==0||(re.packs&&re.packs.forEach(Ne=>tt.add(Ne)),re.tier&&Mt.add(re.tier),re.originKind&&yt.add(re.originKind))}),{allPacks:Array.from(tt).sort(),allTiers:Array.from(Mt).sort(),allOriginKinds:Array.from(yt).sort()}},[a.nodes]),hs=tt=>{Ot(Mt=>{const yt=new Set(Mt);return yt.has(tt)?yt.delete(tt):yt.add(tt),yt})},Un=H.useMemo(()=>a.nodes.filter(tt=>{if(dt.search){const Mt=dt.search.toLowerCase(),yt=tt.id.toLowerCase().includes(Mt),Zt=(tt.label||"").toLowerCase().includes(Mt),re=(tt.title||"").toLowerCase().includes(Mt),ae=(tt.description||"").toLowerCase().includes(Mt),Ne=(tt.path||"").toLowerCase().includes(Mt),Qt=(tt.tags||[]).some(oe=>oe.toLowerCase().includes(Mt));if(!yt&&!Zt&&!re&&!ae&&!Ne&&!Qt)return!1}if(!dt.families.has(tt.family)||dt.statuses.size>0&&tt.status&&!dt.statuses.has(tt.status)||tt.originKind&&!dt.originKinds.has(tt.originKind)||dt.tiers.size>0&&tt.tier&&!dt.tiers.has(tt.tier)||dt.packs&&dt.packs.size>0&&(!tt.packs||!tt.packs.some(Mt=>dt.packs.has(Mt))))return!1;if(dt.validationStatuses&&dt.validationStatuses.size>0){const Mt=tt.validation?.status||"unknown";if(!dt.validationStatuses.has(Mt))return!1}return!0}),[a.nodes,dt]),pn=H.useMemo(()=>B&&Un.length>B?Un.slice(0,B):Un,[Un,B]),Qa=H.useMemo(()=>({...a,nodes:pn}),[a,pn]),gn=(tt,Mt)=>{if(!tt){x(null),E(new Set);return}Mt?E(yt=>{const Zt=new Set(yt);return Zt.has(tt)?(Zt.delete(tt),b===tt&&x(Zt.size>0?Array.from(Zt)[Zt.size-1]:null)):(Zt.add(tt),x(tt)),Zt}):(x(tt),E(new Set([tt])))},Dn=tt=>{W(tt),tt&<(Mt=>[...Mt,tt])},Hn=()=>{W(null)},Ce=tt=>{jt(Mt=>{const yt=new Set(Mt);return yt.has(tt)?yt.delete(tt):(yt.add(tt),b===tt&&x(null),K===tt&&W(null)),yt})},ms=()=>{jt(new Set)},$a=H.useMemo(()=>{const Mt=a.nodes.length>5e3?pn.filter((yt,Zt)=>{if(Et.has(yt.id)||Kc(yt.id,je.incoming,ft))return!1;const re=yt.id.match(/-(\d+)$/),ae=re?parseInt(re[1],10):-1;return ae!==-1?ae<=150||ae%500===0:Zt%50===0}):pn.filter(yt=>Et.has(yt.id)?!1:!Kc(yt.id,je.incoming,ft));return new Set(Mt.map(yt=>yt.id))},[pn,Et,ft,je]),Oe=H.useMemo(()=>{const tt=K||b;if(!Y||!tt)return null;const Mt=new Set([tt]);let yt=new Set([tt]);const Zt=X||1;for(let re=0;re<Zt;re++){const ae=new Set;yt.forEach(Ne=>{const Qt=new Set([Ne]),oe=[{id:Ne,d:0}];for(;oe.length>0;){const{id:qn,d:Fn}=oe.shift(),en=je.incoming.get(qn)||[],nn=je.outgoing.get(qn)||[],an=[...en,...nn];for(const me of an)Qt.has(me)||(Qt.add(me),$a.has(me)?Mt.has(me)||(Mt.add(me),ae.add(me)):Fn<3&&oe.push({id:me,d:Fn+1}))}}),yt=ae}return Mt},[Y,K,b,X,$a,je]);H.useEffect(()=>{if(N!=="network"&&N!=="flow-force"){qe.current!==null&&(cancelAnimationFrame(qe.current),qe.current=null);const tt=new Set(Et);Y&&Oe&&a.nodes.forEach(yt=>{Oe.has(yt.id)||tt.add(yt.id)});const Mt=gg(a.nodes,je.incoming,je.outgoing,ft,210,90,Ln,Bn,N,tt);At(Mt)}else{const tt=new Set(Et);Y&&Oe&&a.nodes.forEach(yt=>{Oe.has(yt.id)||tt.add(yt.id)});const Mt=gg(a.nodes,je.incoming,je.outgoing,ft,210,90,Ln,Bn,N,tt);At(Mt)}},[N,a,ft,Et,Y,Oe,je]),H.useEffect(()=>{if(N==="network"||N==="flow-force"){if(a.nodes.length>1500)return;const tt=new Set;a.nodes.forEach(yt=>{if(Et.has(yt.id)){tt.add(yt.id);return}if(Y&&Oe&&!Oe.has(yt.id)){tt.add(yt.id);return}Kc(yt.id,je.incoming,ft)&&tt.add(yt.id)});const Mt=()=>{At(yt=>{const Zt=N==="flow-force";return V3(a.nodes,a.edges,yt,tt,Ln,Bn,Zt?.015:.012,Zt?12e3:25e3,Zt?.08:.03,Zt?130:220,N)}),qe.current=requestAnimationFrame(Mt)};return qe.current=requestAnimationFrame(Mt),()=>{qe.current!==null&&(cancelAnimationFrame(qe.current),qe.current=null)}}},[N,a,ft,Et,Y,Oe,je]);const yn=()=>{const tt=JSON.stringify(a,null,2),Mt=new Blob([tt],{type:"application/json"}),yt=URL.createObjectURL(Mt),Zt=document.createElement("a");Zt.href=yt,Zt.download=`${a.package?.id?.replace(/[\\/]/g,"_")||"registry"}_lineage_payload.json`,document.body.appendChild(Zt),Zt.click(),document.body.removeChild(Zt),URL.revokeObjectURL(yt)};return h.jsxs("div",{id:"graph-application-shell",className:"h-full w-full flex flex-col bg-slate-50 select-none overflow-hidden font-sans",children:[h.jsxs("header",{className:"h-14 border-b border-slate-200 bg-white flex items-center justify-between px-6 shrink-0 shadow-sm z-30",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-600 flex items-center justify-center text-white font-bold shadow-md shadow-indigo-100 shrink-0",children:h.jsx(Wm,{size:16,className:"animate-pulse"})}),h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("h1",{className:"text-xs font-black text-slate-800 tracking-tight",children:"SSOT Lineage"}),h.jsx("span",{className:"bg-slate-100 text-slate-500 text-[8px] font-extrabold px-1 py-0.2 rounded font-mono uppercase",children:"Interactive Viewer"})]}),h.jsxs("p",{className:"text-[10px] text-slate-400 font-medium truncate max-w-[180px] sm:max-w-none",children:[a.package?.name||"SSOT-Registry"," - v",a.package?.version||"0.0.1"]})]})]}),f&&h.jsxs("div",{className:"flex bg-slate-100 p-1 rounded-md border border-slate-200/50 text-xs font-medium",children:[h.jsxs("button",{onClick:()=>g("workspace"),className:`flex items-center gap-1.5 px-3 py-1 rounded transition select-none ${v==="workspace"?"bg-white text-slate-800 font-bold shadow-sm":"text-slate-500 hover:text-slate-800"}`,children:[h.jsx(tr,{size:13}),h.jsx("span",{children:"Interactive Graph"})]}),h.jsxs("button",{onClick:()=>g("storybook"),className:`flex items-center gap-1.5 px-3 py-1 rounded transition select-none ${v==="storybook"?"bg-white text-slate-800 font-bold shadow-sm":"text-slate-500 hover:text-slate-800"}`,children:[h.jsx(vg,{size:13}),h.jsx("span",{children:"Storybook Docs"})]})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsxs("button",{onClick:()=>pt(tt=>({...tt,showLabels:!tt.showLabels})),className:`p-2 border rounded-lg transition flex items-center gap-1.5 text-xs font-semibold select-none ${et.showLabels?"bg-indigo-50 border-indigo-200 text-indigo-700 hover:bg-indigo-100":"border-slate-200 text-slate-500 hover:text-slate-800 hover:bg-slate-50"}`,title:"Toggle displaying descriptive connection labels directly on graph edges (show/hide)",children:[h.jsx(Qc,{size:14,className:et.showLabels?"text-indigo-600 stroke-[2.5]":""}),h.jsx("span",{className:"hidden md:inline",children:"Connection Labels"}),h.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${et.showLabels?"bg-indigo-600 animate-pulse":"bg-slate-300"}`})]}),h.jsxs("button",{onClick:()=>pt(tt=>({...tt,showMinimap:!tt.showMinimap})),className:`p-2 border rounded-lg transition flex items-center gap-1.5 text-xs font-semibold select-none ${et.showMinimap?"bg-indigo-50 border-indigo-200 text-indigo-700 hover:bg-indigo-100":"border-slate-200 text-slate-500 hover:text-slate-800 hover:bg-slate-50"}`,title:"Toggle Minimap navigation overview (show/hide)",children:[h.jsx(Tg,{size:14,className:et.showMinimap?"stroke-[2.5]":""}),h.jsx("span",{className:"hidden md:inline",children:"Minimap"}),h.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${et.showMinimap?"bg-indigo-600":"bg-slate-300"}`})]}),h.jsx("button",{onClick:()=>pt(tt=>({...tt,theme:tt.theme==="light"?"steel-dark":"light"})),className:"p-2 border border-slate-200 text-slate-500 hover:text-slate-800 hover:bg-slate-50 rounded-lg transition",title:"Toggle canvas color scheme",children:h.jsx(Tb,{size:14})}),h.jsxs("button",{onClick:yn,className:"flex items-center gap-1.5 px-3 py-1.5 bg-indigo-600 hover:bg-indigo-700 text-white rounded-lg text-xs font-extrabold transition shadow-lg shadow-indigo-100 hover:shadow-indigo-200",title:"Download the current lineage payload JSON",children:[h.jsx($v,{size:13}),h.jsx("span",{className:"hidden sm:inline",children:"Export Payload JSON"})]})]})]}),f&&v==="storybook"?h.jsx(q3,{}):h.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[h.jsx(U3,{payload:a,filters:dt,onUpdateFilters:Bt,viewMode:N,onChangeViewMode:nt,selectedRegistryKey:s,onChangeRegistry:o,registryOptions:r,allPacks:Nn,allTiers:Ka,allOriginKinds:Za,filteredNodes:Un,isCollapsed:C,onToggleCollapse:()=>T(!C),onSelectNode:gn,onFocusNode:Dn,nodeLimit:B,onUpdateNodeLimit:z,egoHops:X,onUpdateEgoHops:st,isolateEgo:Y,onUpdateIsolateEgo:F}),h.jsx("div",{className:"flex-1 h-full flex flex-col overflow-hidden bg-slate-100",children:h.jsxs("div",{className:"flex-1 relative overflow-hidden",children:[h.jsx(k3,{payload:Qa,positions:Kt,mode:N,selectedNodeId:b,selectedNodeIds:A,focusNodeId:K,collapsedNodeIds:ft,hiddenNodeIds:Et,onSelectNode:gn,onToggleCollapse:hs,onToggleHideNode:Ce,onClearHiddenNodes:ms,onUpdatePositions:At,viewSettings:et,precomputedIndices:p,egoHops:X,highlightedNodeIds:O,customGroups:U,isolateEgo:Y}),A.size>1&&h.jsxs("div",{id:"multi-select-actions-bar",className:"absolute bottom-6 left-1/2 -translate-x-1/2 bg-slate-900/95 backdrop-blur border border-slate-800 text-white px-5 py-3 rounded-full flex items-center gap-4 shadow-2xl z-50 transition-all duration-300",children:[h.jsxs("div",{className:"flex items-center gap-2 pr-3 border-r border-slate-800",children:[h.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-indigo-500 animate-pulse"}),h.jsxs("span",{className:"text-xs font-mono font-bold text-slate-300",children:[A.size," NODES SELECTED"]})]}),h.jsxs("button",{onClick:()=>{_(new Set(A)),console.log("[LineageGraphApp] Highlighted nodes:",Array.from(A))},className:"px-3.5 py-1.5 bg-amber-500 hover:bg-amber-600 text-slate-950 rounded-full font-bold text-xs flex items-center gap-1.5 transition-all active:scale-95 cursor-pointer",title:"Highlight all multi-selected nodes",children:[h.jsx(Wm,{size:13}),h.jsx("span",{children:"Highlight"})]}),h.jsxs("button",{onClick:()=>{const tt=prompt("Enter a label/contract zone name for this node group:",`Module Spec Group ${U.length+1}`)||`Group ${U.length+1}`,Mt={id:`group-custom-${Date.now()}`,label:tt,nodeIds:Array.from(A)};Q(yt=>[...yt,Mt]),E(new Set),x(null),console.log("[LineageGraphApp] Created custom group:",Mt)},className:"px-3.5 py-1.5 bg-indigo-600 hover:bg-indigo-700 text-white rounded-full font-bold text-xs flex items-center gap-1.5 transition-all active:scale-95 cursor-pointer",title:"Group selected nodes into a custom boundary zone",children:[h.jsx(tr,{size:13}),h.jsx("span",{children:"Group"})]}),h.jsxs("button",{onClick:()=>{jt(tt=>{const Mt=new Set(tt);return A.forEach(yt=>Mt.add(yt)),Mt}),E(new Set),x(null),console.log("[LineageGraphApp] Bulk-hid nodes:",Array.from(A))},className:"px-3.5 py-1.5 bg-rose-600 hover:bg-rose-700 text-white rounded-full font-bold text-xs flex items-center gap-1.5 transition-all active:scale-95 cursor-pointer",title:"Deselect and bulk-hide selected nodes from view",children:[h.jsx(Sg,{size:13,className:"text-rose-100"}),h.jsx("span",{children:"Bulk-Hide"})]}),O.size>0&&h.jsxs("button",{onClick:()=>{_(new Set)},className:"px-3.5 py-1.5 bg-slate-800 hover:bg-slate-700 text-slate-300 rounded-full font-bold text-xs flex items-center gap-1.5 transition-all active:scale-95 cursor-pointer",title:"Clear all highlights",children:[h.jsx(xi,{size:13}),h.jsx("span",{children:"Clear Highlights"})]}),h.jsx("button",{onClick:()=>{E(new Set),x(null)},className:"text-slate-400 hover:text-white p-1 rounded-full hover:bg-slate-800 transition cursor-pointer",title:"Deselect all nodes",children:h.jsx(xi,{size:15})})]})]})}),h.jsx(H3,{payload:a,selectedNodeId:b,focusNodeId:K,onSelectNode:x,onSetFocusNode:Dn,onClearFocusNode:Hn,isCollapsed:L,onToggleCollapse:()=>at(!L)})]})]})};function G3(a){return h.jsx(Y3,{...a})}const X3=window.__SSOT_LINEAGE_PAYLOAD__||{nodes:[],edges:[],summary:{nodeCount:0,edgeCount:0}},K3=document.getElementById("ssot-lineage-root")||document.body.appendChild(document.createElement("div"));Mv.createRoot(K3).render(h.jsx(G3,{payload:X3}));
|
|
84
|
+
}`,p="uv run ssot graph lineage . --output .ssot/graphs/registry.lineage.html";return f.jsxs("div",{className:"flex-1 bg-slate-50 overflow-y-auto font-sans p-6",children:[f.jsxs("div",{className:"max-w-4xl mx-auto mb-8 bg-gradient-to-r from-indigo-700 to-indigo-900 border border-indigo-950 p-6 rounded-2xl shadow-xl text-white",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[f.jsx(yg,{className:"text-indigo-200 animate-pulse",size:24}),f.jsx("span",{className:"text-[10px] font-mono tracking-widest text-indigo-200 uppercase bg-indigo-800/80 px-2.5 py-0.5 rounded-full font-bold",children:"Interactive Documentation System"})]}),f.jsx("h1",{className:"text-xl sm:text-2xl font-extrabold tracking-tight",children:"@ssot-registry/lineage-graph"}),f.jsx("p",{className:"text-sm text-indigo-100 max-w-2xl mt-1.5 leading-relaxed",children:"The canonical visual React workspace for proving, validating, and explaining how Single Source of Truth repositories release certified products. Fully typed, offline capable, rendering with high-speed coordinate canvas bounds."}),f.jsxs("div",{className:"flex bg-indigo-950/40 p-1 rounded-lg mt-6 max-w-xl border border-indigo-800/40 overflow-x-auto whitespace-nowrap",children:[f.jsx("button",{onClick:()=>s("matrix"),className:`flex-1 py-1.5 px-3 rounded text-xs font-semibold select-none transition ${a==="matrix"?"bg-indigo-600 text-white shadow":"text-indigo-200 hover:text-white"}`,children:"UIX Interactivity Matrix"}),f.jsx("button",{onClick:()=>s("api"),className:`flex-1 py-1.5 px-3 rounded text-xs font-semibold select-none transition ${a==="api"?"bg-indigo-600 text-white shadow":"text-indigo-200 hover:text-white"}`,children:"React API Reference"}),f.jsx("button",{onClick:()=>s("stories"),className:`flex-1 py-1.5 px-3 rounded text-xs font-semibold select-none transition ${a==="stories"?"bg-indigo-600 text-white shadow":"text-indigo-200 hover:text-white"}`,children:"Interactive Stories"}),f.jsx("button",{onClick:()=>s("cli"),className:`flex-1 py-1.5 px-3 rounded text-xs font-semibold select-none transition ${a==="cli"?"bg-indigo-600 text-white shadow":"text-indigo-200 hover:text-white"}`,children:"SSOT CLI Exports"})]})]}),f.jsxs("div",{className:"max-w-5xl mx-auto bg-white border border-slate-200 rounded-xl shadow-md p-6",children:[a==="matrix"&&f.jsxs("div",{className:"space-y-6 animate-fadeIn",children:[f.jsxs("div",{children:[f.jsxs("h2",{className:"text-base font-bold text-slate-800 mb-1 flex items-center gap-1.5 border-b border-slate-100 pb-2",children:[f.jsx(bg,{size:18,className:"text-indigo-600"})," Interaction & UIX State Behavior Matrix"]}),f.jsx("p",{className:"text-xs text-slate-500 leading-relaxed mt-2",children:"This specification matrix outlines the precise expected behavior of nodes, edges, and filtering layers in all visual interaction states."})]}),f.jsx("div",{className:"overflow-x-auto border border-slate-200 rounded-xl",children:f.jsxs("table",{className:"w-full text-left border-collapse text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200 font-sans text-[11px] font-bold text-slate-600",children:[f.jsx("th",{className:"p-3.5 border-r border-slate-200 min-w-[140px]",children:"Interactive State Configuration"}),f.jsx("th",{className:"p-3.5 border-r border-slate-200 min-w-[160px]",children:"Node Highlighting (Focus Center)"}),f.jsx("th",{className:"p-3.5 border-r border-slate-200 min-w-[170px]",children:"Ego-Neighborhood (Hops Highlight)"}),f.jsx("th",{className:"p-3.5 border-r border-slate-200 min-w-[170px]",children:"Edge Visual Styling (Ribbons & Flows)"}),f.jsx("th",{className:"p-3.5 border-r border-slate-200 min-w-[160px]",children:"Hops vs Node Limit Order"}),f.jsx("th",{className:"p-3.5 min-w-[140px]",children:"Non-Neighborhood Isolation"})]})}),f.jsxs("tbody",{className:"divide-y divide-slate-200 text-[11.5px] leading-relaxed text-slate-600",children:[f.jsxs("tr",{className:"hover:bg-indigo-50/30 transition",children:[f.jsxs("td",{className:"p-3.5 border-r border-slate-200 font-bold bg-slate-50/50 text-indigo-700",children:["Hovered Node",f.jsx("div",{className:"text-[10px] text-slate-400 font-normal mt-0.5",children:"Immediate cursor activation"})]}),f.jsxs("td",{className:"p-3.5 border-r border-slate-200",children:[f.jsx("span",{className:"inline-block px-2 py-0.5 rounded bg-amber-100 text-amber-800 font-bold text-[10px] mb-1",children:"Amber Ring"}),f.jsxs("div",{children:["Glow underlay, scales to 1.10x with high depth priority (",f.jsx("code",{className:"font-mono text-[10px]",children:"z-50"}),")."]})]}),f.jsxs("td",{className:"p-3.5 border-r border-slate-200",children:[f.jsx("span",{className:"inline-block px-2 py-0.5 rounded bg-amber-50 text-amber-700 font-bold text-[10px] mb-1",children:"Amber Border"}),f.jsxs("div",{children:["Hop neighbors show thin Amber border (",f.jsx("code",{className:"font-mono text-[10px]",children:"z-30"}),") and soft Amber backgrounds."]})]}),f.jsxs("td",{className:"p-3.5 border-r border-slate-200",children:[f.jsx("span",{className:"inline-block px-2 py-0.5 rounded bg-amber-100 text-amber-800 font-bold text-[10px] mb-1",children:"Amber Ribbons & Dashes"}),f.jsx("div",{children:"Direct and hop edges turn Amber with animated flow-dashes; other edges dimmed to 8%."})]}),f.jsxs("td",{className:"p-3.5 border-r border-slate-200 font-medium",children:[f.jsx("strong",{className:"text-slate-700",children:"Hops First, then Node Limit"}),f.jsx("div",{className:"text-[10.5px] text-slate-500 mt-0.5",children:"Applies hop limits first to ensure neighborhood remains complete, then crops by node limit."})]}),f.jsxs("td",{className:"p-3.5",children:[f.jsx("strong",{className:"text-slate-700",children:"Dimmed to 25% / 8%"}),f.jsx("div",{className:"text-[10.5px] text-slate-500 mt-0.5 font-sans",children:"Non-neighborhood nodes and edges are heavily grayed-out but kept visible."})]})]}),f.jsxs("tr",{className:"hover:bg-indigo-50/30 transition",children:[f.jsxs("td",{className:"p-3.5 border-r border-slate-200 font-bold bg-slate-50/50 text-indigo-700",children:["Selected Node",f.jsx("div",{className:"text-[10px] text-slate-400 font-normal mt-0.5",children:"Explicit mouse click"})]}),f.jsxs("td",{className:"p-3.5 border-r border-slate-200",children:[f.jsx("span",{className:"inline-block px-2 py-0.5 rounded bg-indigo-100 text-indigo-800 font-bold text-[10px] mb-1",children:"Indigo Ring"}),f.jsxs("div",{children:["Offset Indigo ring, scales to 1.05x (",f.jsx("code",{className:"font-mono text-[10px]",children:"z-45"}),") with medium depth."]})]}),f.jsxs("td",{className:"p-3.5 border-r border-slate-200",children:[f.jsx("span",{className:"inline-block px-2 py-0.5 rounded bg-indigo-50 text-indigo-700 font-bold text-[10px] mb-1",children:"Indigo Border"}),f.jsxs("div",{children:["Hop neighbors show thin Indigo border (",f.jsx("code",{className:"font-mono text-[10px]",children:"z-25"}),") and soft Indigo backgrounds."]})]}),f.jsxs("td",{className:"p-3.5 border-r border-slate-200",children:[f.jsx("span",{className:"inline-block px-2 py-0.5 rounded bg-indigo-100 text-indigo-800 font-bold text-[10px] mb-1",children:"Indigo Ribbons & Dashes"}),f.jsx("div",{children:"Direct and hop edges turn Indigo with animated flow-dashes; other edges dimmed to 8%."})]}),f.jsxs("td",{className:"p-3.5 border-r border-slate-200 font-medium",children:[f.jsx("strong",{className:"text-slate-700",children:"Hops First, then Node Limit"}),f.jsx("div",{className:"text-[10.5px] text-slate-500 mt-0.5",children:"Applies hop limits first to ensure neighborhood remains complete, then crops by node limit."})]}),f.jsxs("td",{className:"p-3.5",children:[f.jsx("strong",{className:"text-slate-700",children:"Dimmed to 25% / 8%"}),f.jsx("div",{className:"text-[10.5px] text-slate-500 mt-0.5",children:"Non-neighborhood nodes and edges are heavily grayed-out but kept visible."})]})]}),f.jsxs("tr",{className:"hover:bg-indigo-50/30 transition",children:[f.jsxs("td",{className:"p-3.5 border-r border-slate-200 font-bold bg-slate-50/50 text-indigo-700",children:["Focused Node",f.jsx("div",{className:"text-[10px] text-slate-400 font-normal mt-0.5",children:"Explicit double-click / search selection"})]}),f.jsxs("td",{className:"p-3.5 border-r border-slate-200",children:[f.jsx("span",{className:"inline-block px-2 py-0.5 rounded bg-teal-100 text-teal-800 font-bold text-[10px] mb-1",children:"Teal Ring"}),f.jsxs("div",{children:["Offset Teal ring, scales to 1.05x (",f.jsx("code",{className:"font-mono text-[10px]",children:"z-40"}),") with standard depth."]})]}),f.jsxs("td",{className:"p-3.5 border-r border-slate-200",children:[f.jsx("span",{className:"inline-block px-2 py-0.5 rounded bg-teal-50 text-teal-700 font-bold text-[10px] mb-1",children:"Teal Border"}),f.jsxs("div",{children:["Hop neighbors show thin Teal border (",f.jsx("code",{className:"font-mono text-[10px]",children:"z-20"}),") and soft Teal backgrounds."]})]}),f.jsxs("td",{className:"p-3.5 border-r border-slate-200",children:[f.jsx("span",{className:"inline-block px-2 py-0.5 rounded bg-cyan-100 text-cyan-800 font-bold text-[10px] mb-1",children:"Directional Cyan / Pink"}),f.jsx("div",{children:"Incoming direct edges turn Cyan; outgoing edges turn Pink. Hop edges turn Teal. Other edges dimmed to 8%."})]}),f.jsxs("td",{className:"p-3.5 border-r border-slate-200 font-medium",children:[f.jsx("strong",{className:"text-slate-700",children:"Hops First, then Node Limit"}),f.jsx("div",{className:"text-[10.5px] text-slate-500 mt-0.5",children:"Applies hop limits first to ensure neighborhood remains complete, then crops by node limit."})]}),f.jsxs("td",{className:"p-3.5",children:[f.jsx("strong",{className:"text-slate-700",children:"Dimmed to 25% / 8%"}),f.jsx("div",{className:"text-[10.5px] text-slate-500 mt-0.5",children:"Non-neighborhood nodes and edges are heavily grayed-out but kept visible."})]})]}),f.jsxs("tr",{className:"hover:bg-indigo-50/30 transition",children:[f.jsxs("td",{className:"p-3.5 border-r border-slate-200 font-bold bg-slate-50/50 text-indigo-700",children:["Isolated Active Focus",f.jsx("div",{className:"text-[10px] text-slate-400 font-normal mt-0.5",children:'"Isolate focus hops" filter is turned ON'})]}),f.jsxs("td",{className:"p-3.5 border-r border-slate-200",children:[f.jsx("span",{className:"inline-block px-2 py-0.5 rounded bg-slate-100 text-slate-800 font-bold text-[10px] mb-1",children:"Respective Active Ring"}),f.jsx("div",{children:"Node keeps its respective color ring but is showcased against an empty canvas."})]}),f.jsxs("td",{className:"p-3.5 border-r border-slate-200",children:[f.jsx("span",{className:"inline-block px-2 py-0.5 rounded bg-slate-100 text-slate-800 font-bold text-[10px] mb-1 font-mono",children:"Unchanged Neighbors"}),f.jsx("div",{children:"Only neighbors within the hop limit remain in the viewport."})]}),f.jsxs("td",{className:"p-3.5 border-r border-slate-200",children:[f.jsx("span",{className:"inline-block px-2 py-0.5 rounded bg-slate-100 text-slate-800 font-bold text-[10px] mb-1 font-mono",children:"Pristine Connections"}),f.jsx("div",{children:"All edges not in the active neighborhood are filtered out. Only active connections are shown."})]}),f.jsxs("td",{className:"p-3.5 border-r border-slate-200 font-medium",children:[f.jsx("strong",{className:"text-slate-700",children:"Hops First, then Node Limit"}),f.jsx("div",{className:"text-[10.5px] text-slate-500 mt-0.5 font-bold text-indigo-600",children:"Strictly enforced first"})]}),f.jsxs("td",{className:"p-3.5 bg-indigo-50/10 font-semibold text-rose-600",children:["Completely Hidden",f.jsx("div",{className:"text-[10px] text-slate-400 font-normal mt-0.5",children:"All nodes outside the active ego neighborhood are completely filtered and hidden from the viewport."})]})]})]})]})})]}),a==="api"&&f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{children:[f.jsxs("h2",{className:"text-base font-bold text-slate-800 mb-1 flex items-center gap-1.5 border-b border-slate-100 pb-2",children:[f.jsx(qv,{size:18,className:"text-indigo-600"})," Component Signatures"]}),f.jsxs("p",{className:"text-xs text-slate-500 leading-relaxed mt-2",children:["The visual widget package exports a main application workspace wrapper ",f.jsx("strong",{className:"font-mono text-[11px] bg-slate-100 p-0.5 rounded text-slate-800",children:"LineageGraphApp"})," that houses all coordinate math, filter buttons, searches, legends, and sidebars."]})]}),f.jsxs("div",{className:"space-y-4",children:[f.jsx("h3",{className:"text-xs font-bold text-slate-700 uppercase tracking-wider font-mono",children:"LineageGraphApp Props Layout"}),f.jsx("div",{className:"overflow-x-auto border border-slate-100 rounded-lg",children:f.jsxs("table",{className:"w-full text-left border-collapse text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200 font-mono text-slate-500",children:[f.jsx("th",{className:"p-2.5 font-bold",children:"Prop Name"}),f.jsx("th",{className:"p-2.5 font-bold",children:"Type"}),f.jsx("th",{className:"p-2.5 font-bold",children:"Required"}),f.jsx("th",{className:"p-2.5 font-bold",children:"Description"})]})}),f.jsxs("tbody",{className:"divide-y divide-slate-100 text-[11px] font-mono text-slate-600",children:[f.jsxs("tr",{children:[f.jsx("td",{className:"p-2.5 font-bold text-indigo-600",children:"payload"}),f.jsx("td",{className:"p-2.5",children:"LineagePayload"}),f.jsx("td",{className:"p-2.5 text-rose-500 font-bold",children:"Yes"}),f.jsx("td",{className:"p-2.5 text-slate-500 font-sans",children:"The complete typed SSOT registry JSON payload structure."})]}),f.jsxs("tr",{children:[f.jsx("td",{className:"p-2.5 font-bold text-indigo-600",children:"defaultMode"}),f.jsx("td",{className:"p-2.5",children:'"network" | "lineage" | "proof" | "origins"'}),f.jsx("td",{className:"p-2.5 text-slate-400",children:"No"}),f.jsx("td",{className:"p-2.5 text-slate-500 font-sans",children:'Initial render mode. Defaults to "lineage".'})]}),f.jsxs("tr",{children:[f.jsx("td",{className:"p-2.5 font-bold text-indigo-600",children:"theme"}),f.jsx("td",{className:"p-2.5",children:'"light" | "steel-dark"'}),f.jsx("td",{className:"p-2.5 text-slate-400",children:"No"}),f.jsx("td",{className:"p-2.5 text-slate-500 font-sans",children:'Color theme preset. Defaults to "light".'})]})]})]})})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-xs font-bold text-slate-700",children:"React Embed Code Example"}),f.jsxs("button",{onClick:()=>u(h,"react"),className:"text-[10px] text-slate-500 hover:text-indigo-600 flex items-center gap-1 font-mono hover:underline",children:[f.jsx(rs,{size:11})," ",l==="react"?"Copied!":"Copy Code"]})]}),f.jsx("pre",{className:"bg-slate-900 text-slate-100 p-4 rounded-xl text-[10px] font-mono overflow-x-auto leading-relaxed border border-slate-950",children:h})]})]}),a==="stories"&&f.jsxs("div",{className:"space-y-6",children:[f.jsxs("h2",{className:"text-base font-bold text-slate-800 flex items-center gap-1.5 border-b border-slate-100 pb-2",children:[f.jsx(hb,{size:18,className:"text-indigo-600"})," Live Visual Testing Stories"]}),f.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[f.jsxs("div",{className:"p-4 border border-slate-150 rounded-xl hover:shadow-md transition",children:[f.jsx("span",{className:"text-[9px] font-mono font-bold bg-amber-50 text-amber-700 px-2 py-0.5 rounded border border-amber-200",children:"Story #1: Tree Structure Collapse"}),f.jsx("h3",{className:"text-xs font-bold text-slate-800 mt-2",children:"Recursive Sub-tree Collapsible Nodes"}),f.jsxs("p",{className:"text-[11px] text-slate-500 mt-1 leading-relaxed",children:["Clicking the circle expansion badge ",f.jsx("strong",{className:"font-mono text-slate-800",children:"[+]"})," or ",f.jsx("strong",{className:"font-mono text-slate-800",children:"[-]"})," at the base of the circular nodes dynamically hides or reveals children subtrees cleanly. Perfect for reducing visual noise in deep registries."]})]}),f.jsxs("div",{className:"p-4 border border-slate-150 rounded-xl hover:shadow-md transition",children:[f.jsx("span",{className:"text-[9px] font-mono font-bold bg-emerald-50 text-emerald-700 px-2 py-0.5 rounded border border-emerald-200",children:"Story #2: Ego-Centric Filtering Triggers"}),f.jsx("h3",{className:"text-xs font-bold text-slate-800 mt-2",children:"Instant Ego Neighborhood Hover Analysis"}),f.jsx("p",{className:"text-[11px] text-slate-500 mt-1 leading-relaxed",children:"Hovering over any node dynamically highlights connected outgoing specifications and upstream ADR ancestors while executing a fluid, 60fps linear opacity fade on unrelated components."})]}),f.jsxs("div",{className:"p-4 border border-slate-150 rounded-xl hover:shadow-md transition",children:[f.jsx("span",{className:"text-[9px] font-mono font-bold bg-indigo-50 text-indigo-700 px-2 py-0.5 rounded border border-indigo-200",children:"Story #3: Draggable Reposition Node Locking"}),f.jsx("h3",{className:"text-xs font-bold text-slate-800 mt-2",children:"Frictionless Free-form Layout Repositioning"}),f.jsx("p",{className:"text-[11px] text-slate-500 mt-1 leading-relaxed",children:"At any point, grab and slide circular elements manually to alter connections. Layout positions are computed dividing coordinate movements by scale coefficients, ensuring zero drifting under variable zoom viewports."})]}),f.jsxs("div",{className:"p-4 border border-slate-150 rounded-xl hover:shadow-md transition",children:[f.jsx("span",{className:"text-[9px] font-mono font-bold bg-red-50 text-red-700 px-2 py-0.5 rounded border border-red-200",children:"Story #4: Validation Drift Spotlighting"}),f.jsx("h3",{className:"text-xs font-bold text-slate-800 mt-2",children:"Dotted Stale Link Warning Metrics"}),f.jsx("p",{className:"text-[11px] text-slate-500 mt-1 leading-relaxed",children:"Validation drifts trigger color alerts on the canvas node rims (red alerts) and draw invalid links with dotted ruby traces. The right inspector immediately lists failure issue lines."})]})]})]}),a==="cli"&&f.jsxs("div",{className:"space-y-6",children:[f.jsxs("h2",{className:"text-base font-bold text-slate-800 flex items-center gap-1.5 border-b border-slate-100 pb-2",children:[f.jsx(Xv,{size:18,className:"text-indigo-600"})," CLI Standalone Exporters"]}),f.jsxs("div",{className:"space-y-4 text-xs text-slate-600",children:[f.jsx("p",{className:"leading-relaxed",children:"The visual React package compiles directly to an inline static single-page viewer containing no external runtime CDN links or package dependencies. PyPI users invoke this build engine via the Python command-line utility to generate completely offline *.html assets."}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-xs font-bold text-slate-700",children:"Python CLI trigger terminal snip"}),f.jsxs("button",{onClick:()=>u(p,"cli"),className:"text-[10px] text-slate-500 hover:text-indigo-600 flex items-center gap-1 font-mono hover:underline",children:[f.jsx(rs,{size:11})," ",l==="cli"?"Copied!":"Copy Command"]})]}),f.jsxs("pre",{className:"bg-slate-900 text-slate-100 p-3 rounded-xl font-mono text-[10.5px] border border-slate-950 overflow-x-auto select-all",children:["$ ",p]})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-xs font-bold text-slate-700",children:"Primary Python payload producer schema mapping"}),f.jsxs("button",{onClick:()=>u(d,"python"),className:"text-[10px] text-slate-500 hover:text-indigo-600 flex items-center gap-1 font-mono hover:underline",children:[f.jsx(rs,{size:11})," ","Copy Code"]})]}),f.jsx("pre",{className:"bg-slate-900 text-slate-100 p-4 rounded-xl text-[10px] font-mono overflow-x-auto leading-relaxed border border-slate-950",children:d})]})]})]})]})]})},X3=({payload:a,selectedRegistryKey:s=a.package?.id||a.package?.name||"current",onChangeRegistry:l=()=>{},registryOptions:r=[],defaultMode:u="lineage",theme:h="light",showDocumentation:d=!1,precomputedIndices:p})=>{const[x,g]=H.useState("workspace"),[y,b]=H.useState(null),[S,j]=H.useState(new Set),[M,O]=H.useState(new Set),[B,Y]=H.useState([]),[G,C]=H.useState(300),[X,I]=H.useState(1),[Z,L]=H.useState(!1),[k,W]=H.useState(null),[J,tt]=H.useState([]),[st,jt]=H.useState(new Set),[dt,gt]=H.useState(new Set),[D,N]=H.useState(u),[q,nt]=H.useState({showLabels:!0,edgeWidth:2,edgeOpacity:.6,showMinimap:!1,theme:h}),[yt,A]=H.useState(!1),[Q,et]=H.useState(!1),at=H.useMemo(()=>Array.from(new Set(["ADR","Spec","SPEC","Feature","Claim","Test","Evidence","Release","Boundary","Profile","Risk","Issue",...a.nodes.map(F=>F.family)])),[a.nodes]),St=H.useMemo(()=>Array.from(new Set(["ssot-core","ssot-origin","repo-local","extension-pack","generated","unknown",...a.nodes.map(F=>F.originKind).filter(F=>!!F)])),[a.nodes]),[lt,Bt]=H.useState({search:"",families:new Set(at),statuses:new Set,originKinds:new Set(St),tiers:new Set,packs:new Set,validationStatuses:new Set,edgeTypes:new Set}),[Ee,Ft]=H.useState({}),Ye=H.useRef(null),Un=1100,Jn=620;H.useEffect(()=>{console.log("[LineageGraphApp] Ready! Graph initialized successfully")},[]),H.useEffect(()=>{console.log(`[LineageGraphApp] View Mode changed to: ${D.toUpperCase()}`)},[D]),H.useEffect(()=>{y?(console.log(`[LineageGraphApp] Node Selected: ${y}`),et(!1)):(console.log("[LineageGraphApp] Node Selection Cleared"),et(!0))},[y]),H.useEffect(()=>{k&&console.log(`[LineageGraphApp] Viewport camera locked onto focus node: ${k}`)},[k]),H.useEffect(()=>{!d&&x==="storybook"&&g("workspace")},[x,d]),H.useEffect(()=>{Bt(F=>({...F,families:new Set([...at,...F.families]),originKinds:new Set([...St,...F.originKinds])}))},[at,St]);const Xt=H.useMemo(()=>p||rx(a),[a,p]);H.useMemo(()=>y&&a.nodes.find(F=>F.id===y)||null,[y,a.nodes]);const{allPacks:ln,allTiers:Hn,allOriginKinds:yn}=H.useMemo(()=>{const F=new Set,ht=new Set,rt=new Set,Kt=a.nodes.length>5e3;return a.nodes.forEach((se,ce)=>{Kt&&ce%10!==0||(se.packs&&se.packs.forEach(de=>F.add(de)),se.tier&&ht.add(se.tier),se.originKind&&rt.add(se.originKind))}),{allPacks:Array.from(F).sort(),allTiers:Array.from(ht).sort(),allOriginKinds:Array.from(rt).sort()}},[a.nodes]),ms=F=>{jt(ht=>{const rt=new Set(ht);return rt.has(F)?rt.delete(F):rt.add(F),rt})},Xe=H.useMemo(()=>a.nodes.filter(F=>{if(lt.search){const ht=lt.search.toLowerCase(),rt=F.id.toLowerCase().includes(ht),Kt=(F.label||"").toLowerCase().includes(ht),se=(F.title||"").toLowerCase().includes(ht),ce=(F.description||"").toLowerCase().includes(ht),de=(F.path||"").toLowerCase().includes(ht),Ce=(F.tags||[]).some(ue=>ue.toLowerCase().includes(ht));if(!rt&&!Kt&&!se&&!ce&&!de&&!Ce)return!1}if(!lt.families.has(F.family)||lt.statuses.size>0&&F.status&&!lt.statuses.has(F.status)||F.originKind&&!lt.originKinds.has(F.originKind)||lt.tiers.size>0&&F.tier&&!lt.tiers.has(F.tier)||lt.packs&<.packs.size>0&&(!F.packs||!F.packs.some(ht=>lt.packs.has(ht))))return!1;if(lt.validationStatuses&<.validationStatuses.size>0){const ht=F.validation?.status||"unknown";if(!lt.validationStatuses.has(ht))return!1}return!0}),[a.nodes,lt]),ye=H.useMemo(()=>{const F=k;if(!F)return null;const ht=new Set([F]);let rt=new Set([F]);const Kt=X||1,se=new Set(Xe.map(ce=>ce.id));for(let ce=0;ce<Kt;ce++){const de=new Set;rt.forEach(Ce=>{const ue=new Set([Ce]),zn=[{id:Ce,d:0}];for(;zn.length>0;){const{id:qn,d:ji}=zn.shift(),ya=Xt.incoming.get(qn)||[],xa=Xt.outgoing.get(qn)||[],Rn=[...ya,...xa];for(const De of Rn)ue.has(De)||(ue.add(De),se.has(De)&&!dt.has(De)?ht.has(De)||(ht.add(De),de.add(De)):ji<3&&zn.push({id:De,d:ji+1}))}}),rt=de}return ht},[k,y,X,Xe,dt,Xt]),xn=H.useMemo(()=>{let F=Xe;return ye&&(F=Xe.filter(ht=>ye.has(ht.id))),G&&F.length>G?F.slice(0,G):F},[Xe,ye,G]),Si=H.useMemo(()=>({...a,nodes:xn}),[a,xn]),$a=(F,ht)=>{if(!F){b(null),j(new Set);return}ht?j(rt=>{const Kt=new Set(rt);return Kt.has(F)?(Kt.delete(F),y===F&&b(Kt.size>0?Array.from(Kt)[Kt.size-1]:null)):(Kt.add(F),b(F)),Kt}):(b(F),j(new Set([F])))},ps=F=>{W(F),F&&tt(ht=>[...ht,F])},be=()=>{W(null)},Ti=F=>{gt(ht=>{const rt=new Set(ht);return rt.has(F)?rt.delete(F):(rt.add(F),y===F&&b(null),k===F&&W(null)),rt})},Pa=()=>{gt(new Set)};H.useMemo(()=>{const ht=a.nodes.length>5e3?xn.filter((rt,Kt)=>{if(dt.has(rt.id)||Yu(rt.id,Xt.incoming,st))return!1;const se=rt.id.match(/-(\d+)$/),ce=se?parseInt(se[1],10):-1;return ce!==-1?ce<=150||ce%500===0:Kt%50===0}):xn.filter(rt=>dt.has(rt.id)?!1:!Yu(rt.id,Xt.incoming,st));return new Set(ht.map(rt=>rt.id))},[xn,dt,st,Xt]),H.useEffect(()=>{if(D!=="network"&&D!=="flow-force"){Ye.current!==null&&(cancelAnimationFrame(Ye.current),Ye.current=null);const F=new Set(dt);Z&&ye&&a.nodes.forEach(rt=>{ye.has(rt.id)||F.add(rt.id)});const ht=hg(a.nodes,Xt.incoming,Xt.outgoing,st,210,90,Un,Jn,D,F);Ft(ht)}else{const F=new Set(dt);Z&&ye&&a.nodes.forEach(rt=>{ye.has(rt.id)||F.add(rt.id)});const ht=hg(a.nodes,Xt.incoming,Xt.outgoing,st,210,90,Un,Jn,D,F);Ft(ht)}},[D,a,st,dt,Z,ye,Xt]),H.useEffect(()=>{if(D==="network"||D==="flow-force"){if(a.nodes.length>5e3)return;const F=new Set;a.nodes.forEach(rt=>{if(dt.has(rt.id)){F.add(rt.id);return}if(Z&&ye&&!ye.has(rt.id)){F.add(rt.id);return}Yu(rt.id,Xt.incoming,st)&&F.add(rt.id)});const ht=()=>{Ft(rt=>{const Kt=D==="flow-force";return _3(a.nodes,a.edges,rt,F,Un,Jn,Kt?.015:.012,Kt?12e3:25e3,Kt?.08:.03,Kt?130:220,D)}),Ye.current=requestAnimationFrame(ht)};return Ye.current=requestAnimationFrame(ht),()=>{Ye.current!==null&&(cancelAnimationFrame(Ye.current),Ye.current=null)}}},[D,a,st,dt,Z,ye,Xt]);const Ke=()=>{const F=JSON.stringify(a,null,2),ht=new Blob([F],{type:"application/json"}),rt=URL.createObjectURL(ht),Kt=document.createElement("a");Kt.href=rt,Kt.download=`${a.package?.id?.replace(/[\\/]/g,"_")||"registry"}_lineage_payload.json`,document.body.appendChild(Kt),Kt.click(),document.body.removeChild(Kt),URL.revokeObjectURL(rt)};return f.jsxs("div",{id:"graph-application-shell",className:"h-full w-full flex flex-col bg-slate-50 select-none overflow-hidden font-sans",children:[f.jsxs("header",{className:"h-14 border-b border-slate-200 bg-white flex items-center justify-between px-6 shrink-0 shadow-sm z-30",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-600 flex items-center justify-center text-white font-bold shadow-md shadow-indigo-100 shrink-0",children:f.jsx(Pm,{size:16,className:"animate-pulse"})}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsx("h1",{className:"text-xs font-black text-slate-800 tracking-tight",children:"SSOT Lineage"}),f.jsx("span",{className:"bg-slate-100 text-slate-500 text-[8px] font-extrabold px-1 py-0.2 rounded font-mono uppercase",children:"Interactive Viewer"})]}),f.jsxs("p",{className:"text-[10px] text-slate-400 font-medium truncate max-w-[180px] sm:max-w-none",children:[a.package?.name||"SSOT-Registry"," - v",a.package?.version||"0.0.1"]})]})]}),d&&f.jsxs("div",{className:"flex bg-slate-100 p-1 rounded-md border border-slate-200/50 text-xs font-medium",children:[f.jsxs("button",{onClick:()=>g("workspace"),className:`flex items-center gap-1.5 px-3 py-1 rounded transition select-none ${x==="workspace"?"bg-white text-slate-800 font-bold shadow-sm":"text-slate-500 hover:text-slate-800"}`,children:[f.jsx(Po,{size:13}),f.jsx("span",{children:"Interactive Graph"})]}),f.jsxs("button",{onClick:()=>g("storybook"),className:`flex items-center gap-1.5 px-3 py-1 rounded transition select-none ${x==="storybook"?"bg-white text-slate-800 font-bold shadow-sm":"text-slate-500 hover:text-slate-800"}`,children:[f.jsx(yg,{size:13}),f.jsx("span",{children:"Storybook Docs"})]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs("button",{onClick:()=>nt(F=>({...F,showLabels:!F.showLabels})),className:`p-2 border rounded-lg transition flex items-center gap-1.5 text-xs font-semibold select-none ${q.showLabels?"bg-indigo-50 border-indigo-200 text-indigo-700 hover:bg-indigo-100":"border-slate-200 text-slate-500 hover:text-slate-800 hover:bg-slate-50"}`,title:"Toggle displaying descriptive connection labels directly on graph edges (show/hide)",children:[f.jsx(Xu,{size:14,className:q.showLabels?"text-indigo-600 stroke-[2.5]":""}),f.jsx("span",{className:"hidden md:inline",children:"Connection Labels"}),f.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${q.showLabels?"bg-indigo-600 animate-pulse":"bg-slate-300"}`})]}),f.jsxs("button",{onClick:()=>nt(F=>({...F,showMinimap:!F.showMinimap})),className:`p-2 border rounded-lg transition flex items-center gap-1.5 text-xs font-semibold select-none ${q.showMinimap?"bg-indigo-50 border-indigo-200 text-indigo-700 hover:bg-indigo-100":"border-slate-200 text-slate-500 hover:text-slate-800 hover:bg-slate-50"}`,title:"Toggle Minimap navigation overview (show/hide)",children:[f.jsx(Sg,{size:14,className:q.showMinimap?"stroke-[2.5]":""}),f.jsx("span",{className:"hidden md:inline",children:"Minimap"}),f.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${q.showMinimap?"bg-indigo-600":"bg-slate-300"}`})]}),f.jsx("button",{onClick:()=>nt(F=>({...F,theme:F.theme==="light"?"steel-dark":"light"})),className:"p-2 border border-slate-200 text-slate-500 hover:text-slate-800 hover:bg-slate-50 rounded-lg transition",title:"Toggle canvas color scheme",children:f.jsx(jb,{size:14})}),f.jsxs("button",{onClick:Ke,className:"flex items-center gap-1.5 px-3 py-1.5 bg-indigo-600 hover:bg-indigo-700 text-white rounded-lg text-xs font-extrabold transition shadow-lg shadow-indigo-100 hover:shadow-indigo-200",title:"Download the current lineage payload JSON",children:[f.jsx(Pv,{size:13}),f.jsx("span",{className:"hidden sm:inline",children:"Export Payload JSON"})]})]})]}),d&&x==="storybook"?f.jsx(G3,{}):f.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[f.jsx(q3,{payload:a,filters:lt,onUpdateFilters:Bt,viewMode:D,onChangeViewMode:N,selectedRegistryKey:s,onChangeRegistry:l,registryOptions:r,allPacks:ln,allTiers:Hn,allOriginKinds:yn,filteredNodes:Xe,isCollapsed:yt,onToggleCollapse:()=>A(!yt),onSelectNode:$a,onFocusNode:ps,nodeLimit:G,onUpdateNodeLimit:C,egoHops:X,onUpdateEgoHops:I,isolateEgo:Z,onUpdateIsolateEgo:L}),f.jsx("div",{className:"flex-1 h-full flex flex-col overflow-hidden bg-slate-100",children:f.jsxs("div",{className:"flex-1 relative overflow-hidden",children:[f.jsx(H3,{payload:Si,positions:Ee,mode:D,selectedNodeId:y,selectedNodeIds:S,focusNodeId:k,collapsedNodeIds:st,hiddenNodeIds:dt,onSelectNode:$a,onToggleCollapse:ms,onToggleHideNode:Ti,onClearHiddenNodes:Pa,onUpdatePositions:Ft,viewSettings:q,precomputedIndices:p,egoHops:X,highlightedNodeIds:M,customGroups:B,isolateEgo:Z,filters:lt}),S.size>1&&f.jsxs("div",{id:"multi-select-actions-bar",className:"absolute bottom-6 left-1/2 -translate-x-1/2 bg-slate-900/95 backdrop-blur border border-slate-800 text-white px-5 py-3 rounded-full flex items-center gap-4 shadow-2xl z-50 transition-all duration-300",children:[f.jsxs("div",{className:"flex items-center gap-2 pr-3 border-r border-slate-800",children:[f.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-indigo-500 animate-pulse"}),f.jsxs("span",{className:"text-xs font-mono font-bold text-slate-300",children:[S.size," NODES SELECTED"]})]}),f.jsxs("button",{onClick:()=>{O(new Set(S)),console.log("[LineageGraphApp] Highlighted nodes:",Array.from(S))},className:"px-3.5 py-1.5 bg-amber-500 hover:bg-amber-600 text-slate-950 rounded-full font-bold text-xs flex items-center gap-1.5 transition-all active:scale-95 cursor-pointer",title:"Highlight all multi-selected nodes",children:[f.jsx(Pm,{size:13}),f.jsx("span",{children:"Highlight"})]}),f.jsxs("button",{onClick:()=>{const F=prompt("Enter a label/contract zone name for this node group:",`Module Spec Group ${B.length+1}`)||`Group ${B.length+1}`,ht={id:`group-custom-${Date.now()}`,label:F,nodeIds:Array.from(S)};Y(rt=>[...rt,ht]),j(new Set),b(null),console.log("[LineageGraphApp] Created custom group:",ht)},className:"px-3.5 py-1.5 bg-indigo-600 hover:bg-indigo-700 text-white rounded-full font-bold text-xs flex items-center gap-1.5 transition-all active:scale-95 cursor-pointer",title:"Group selected nodes into a custom boundary zone",children:[f.jsx(Po,{size:13}),f.jsx("span",{children:"Group"})]}),f.jsxs("button",{onClick:()=>{gt(F=>{const ht=new Set(F);return S.forEach(rt=>ht.add(rt)),ht}),j(new Set),b(null),console.log("[LineageGraphApp] Bulk-hid nodes:",Array.from(S))},className:"px-3.5 py-1.5 bg-rose-600 hover:bg-rose-700 text-white rounded-full font-bold text-xs flex items-center gap-1.5 transition-all active:scale-95 cursor-pointer",title:"Deselect and bulk-hide selected nodes from view",children:[f.jsx(vg,{size:13,className:"text-rose-100"}),f.jsx("span",{children:"Bulk-Hide"})]}),M.size>0&&f.jsxs("button",{onClick:()=>{O(new Set)},className:"px-3.5 py-1.5 bg-slate-800 hover:bg-slate-700 text-slate-300 rounded-full font-bold text-xs flex items-center gap-1.5 transition-all active:scale-95 cursor-pointer",title:"Clear all highlights",children:[f.jsx(xi,{size:13}),f.jsx("span",{children:"Clear Highlights"})]}),f.jsx("button",{onClick:()=>{j(new Set),b(null)},className:"text-slate-400 hover:text-white p-1 rounded-full hover:bg-slate-800 transition cursor-pointer",title:"Deselect all nodes",children:f.jsx(xi,{size:15})})]})]})}),f.jsx(Y3,{payload:a,selectedNodeId:y,focusNodeId:k,onSelectNode:b,onSetFocusNode:ps,onClearFocusNode:be,isCollapsed:Q,onToggleCollapse:()=>et(!Q)})]})]})};function K3(a){return f.jsx(X3,{...a})}const Z3=window.__SSOT_LINEAGE_PAYLOAD__||{nodes:[],edges:[],summary:{nodeCount:0,edgeCount:0}},Q3=document.getElementById("ssot-lineage-root")||document.body.appendChild(document.createElement("div"));Mv.createRoot(Q3).render(f.jsx(K3,{payload:Z3}));
|