@booboo-brain/panel 0.5.4 → 0.5.5
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/index.d.ts +2 -1
- package/dist/index.js +35 -23
- package/dist-app/assets/index-DuaKsKpo.js +1090 -0
- package/dist-app/index.html +1 -1
- package/package.json +1 -1
- package/dist-app/assets/index-CgJZeTDV.js +0 -1079
|
@@ -1,1079 +0,0 @@
|
|
|
1
|
-
(function(){const b=document.createElement("link").relList;if(b&&b.supports&&b.supports("modulepreload"))return;for(const g of document.querySelectorAll('link[rel="modulepreload"]'))o(g);new MutationObserver(g=>{for(const z of g)if(z.type==="childList")for(const _ of z.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&o(_)}).observe(document,{childList:!0,subtree:!0});function j(g){const z={};return g.integrity&&(z.integrity=g.integrity),g.referrerPolicy&&(z.referrerPolicy=g.referrerPolicy),g.crossOrigin==="use-credentials"?z.credentials="include":g.crossOrigin==="anonymous"?z.credentials="omit":z.credentials="same-origin",z}function o(g){if(g.ep)return;g.ep=!0;const z=j(g);fetch(g.href,z)}})();var vs={exports:{}},Tn={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Md;function vp(){if(Md)return Tn;Md=1;var r=Symbol.for("react.transitional.element"),b=Symbol.for("react.fragment");function j(o,g,z){var _=null;if(z!==void 0&&(_=""+z),g.key!==void 0&&(_=""+g.key),"key"in g){z={};for(var R in g)R!=="key"&&(z[R]=g[R])}else z=g;return g=z.ref,{$$typeof:r,type:o,key:_,ref:g!==void 0?g:null,props:z}}return Tn.Fragment=b,Tn.jsx=j,Tn.jsxs=j,Tn}var Od;function bp(){return Od||(Od=1,vs.exports=vp()),vs.exports}var s=bp(),bs={exports:{}},I={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Dd;function yp(){if(Dd)return I;Dd=1;var r=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),_=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),X=Symbol.iterator;function V(f){return f===null||typeof f!="object"?null:(f=X&&f[X]||f["@@iterator"],typeof f=="function"?f:null)}var ie={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,se={};function Y(f,S,k){this.props=f,this.context=S,this.refs=se,this.updater=k||ie}Y.prototype.isReactComponent={},Y.prototype.setState=function(f,S){if(typeof f!="object"&&typeof f!="function"&&f!=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,f,S,"setState")},Y.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function P(){}P.prototype=Y.prototype;function oe(f,S,k){this.props=f,this.context=S,this.refs=se,this.updater=k||ie}var ee=oe.prototype=new P;ee.constructor=oe,$(ee,Y.prototype),ee.isPureReactComponent=!0;var te=Array.isArray;function Me(){}var F={H:null,A:null,T:null,S:null},Ne=Object.prototype.hasOwnProperty;function Ye(f,S,k){var M=k.ref;return{$$typeof:r,type:f,key:S,ref:M!==void 0?M:null,props:k}}function ut(f,S){return Ye(f.type,S,f.props)}function ke(f){return typeof f=="object"&&f!==null&&f.$$typeof===r}function Ae(f){var S={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(k){return S[k]})}var Ie=/\/+/g;function We(f,S){return typeof f=="object"&&f!==null&&f.key!=null?Ae(""+f.key):S.toString(36)}function ze(f){switch(f.status){case"fulfilled":return f.value;case"rejected":throw f.reason;default:switch(typeof f.status=="string"?f.then(Me,Me):(f.status="pending",f.then(function(S){f.status==="pending"&&(f.status="fulfilled",f.value=S)},function(S){f.status==="pending"&&(f.status="rejected",f.reason=S)})),f.status){case"fulfilled":return f.value;case"rejected":throw f.reason}}throw f}function E(f,S,k,M,Z){var W=typeof f;(W==="undefined"||W==="boolean")&&(f=null);var ae=!1;if(f===null)ae=!0;else switch(W){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(f.$$typeof){case r:case b:ae=!0;break;case C:return ae=f._init,E(ae(f._payload),S,k,M,Z)}}if(ae)return Z=Z(f),ae=M===""?"."+We(f,0):M,te(Z)?(k="",ae!=null&&(k=ae.replace(Ie,"$&/")+"/"),E(Z,S,k,"",function(Ct){return Ct})):Z!=null&&(ke(Z)&&(Z=ut(Z,k+(Z.key==null||f&&f.key===Z.key?"":(""+Z.key).replace(Ie,"$&/")+"/")+ae)),S.push(Z)),1;ae=0;var Oe=M===""?".":M+":";if(te(f))for(var je=0;je<f.length;je++)M=f[je],W=Oe+We(M,je),ae+=E(M,S,k,W,Z);else if(je=V(f),typeof je=="function")for(f=je.call(f),je=0;!(M=f.next()).done;)M=M.value,W=Oe+We(M,je++),ae+=E(M,S,k,W,Z);else if(W==="object"){if(typeof f.then=="function")return E(ze(f),S,k,M,Z);throw S=String(f),Error("Objects are not valid as a React child (found: "+(S==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":S)+"). If you meant to render a collection of children, use an array instead.")}return ae}function B(f,S,k){if(f==null)return f;var M=[],Z=0;return E(f,M,"","",function(W){return S.call(k,W,Z++)}),M}function q(f){if(f._status===-1){var S=f._result;S=S(),S.then(function(k){(f._status===0||f._status===-1)&&(f._status=1,f._result=k)},function(k){(f._status===0||f._status===-1)&&(f._status=2,f._result=k)}),f._status===-1&&(f._status=0,f._result=S)}if(f._status===1)return f._result.default;throw f._result}var m=typeof reportError=="function"?reportError:function(f){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var S=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof f=="object"&&f!==null&&typeof f.message=="string"?String(f.message):String(f),error:f});if(!window.dispatchEvent(S))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",f);return}console.error(f)},H={map:B,forEach:function(f,S,k){B(f,function(){S.apply(this,arguments)},k)},count:function(f){var S=0;return B(f,function(){S++}),S},toArray:function(f){return B(f,function(S){return S})||[]},only:function(f){if(!ke(f))throw Error("React.Children.only expected to receive a single React element child.");return f}};return I.Activity=O,I.Children=H,I.Component=Y,I.Fragment=j,I.Profiler=g,I.PureComponent=oe,I.StrictMode=o,I.Suspense=N,I.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,I.__COMPILER_RUNTIME={__proto__:null,c:function(f){return F.H.useMemoCache(f)}},I.cache=function(f){return function(){return f.apply(null,arguments)}},I.cacheSignal=function(){return null},I.cloneElement=function(f,S,k){if(f==null)throw Error("The argument must be a React element, but you passed "+f+".");var M=$({},f.props),Z=f.key;if(S!=null)for(W in S.key!==void 0&&(Z=""+S.key),S)!Ne.call(S,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&S.ref===void 0||(M[W]=S[W]);var W=arguments.length-2;if(W===1)M.children=k;else if(1<W){for(var ae=Array(W),Oe=0;Oe<W;Oe++)ae[Oe]=arguments[Oe+2];M.children=ae}return Ye(f.type,Z,M)},I.createContext=function(f){return f={$$typeof:_,_currentValue:f,_currentValue2:f,_threadCount:0,Provider:null,Consumer:null},f.Provider=f,f.Consumer={$$typeof:z,_context:f},f},I.createElement=function(f,S,k){var M,Z={},W=null;if(S!=null)for(M in S.key!==void 0&&(W=""+S.key),S)Ne.call(S,M)&&M!=="key"&&M!=="__self"&&M!=="__source"&&(Z[M]=S[M]);var ae=arguments.length-2;if(ae===1)Z.children=k;else if(1<ae){for(var Oe=Array(ae),je=0;je<ae;je++)Oe[je]=arguments[je+2];Z.children=Oe}if(f&&f.defaultProps)for(M in ae=f.defaultProps,ae)Z[M]===void 0&&(Z[M]=ae[M]);return Ye(f,W,Z)},I.createRef=function(){return{current:null}},I.forwardRef=function(f){return{$$typeof:R,render:f}},I.isValidElement=ke,I.lazy=function(f){return{$$typeof:C,_payload:{_status:-1,_result:f},_init:q}},I.memo=function(f,S){return{$$typeof:v,type:f,compare:S===void 0?null:S}},I.startTransition=function(f){var S=F.T,k={};F.T=k;try{var M=f(),Z=F.S;Z!==null&&Z(k,M),typeof M=="object"&&M!==null&&typeof M.then=="function"&&M.then(Me,m)}catch(W){m(W)}finally{S!==null&&k.types!==null&&(S.types=k.types),F.T=S}},I.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},I.use=function(f){return F.H.use(f)},I.useActionState=function(f,S,k){return F.H.useActionState(f,S,k)},I.useCallback=function(f,S){return F.H.useCallback(f,S)},I.useContext=function(f){return F.H.useContext(f)},I.useDebugValue=function(){},I.useDeferredValue=function(f,S){return F.H.useDeferredValue(f,S)},I.useEffect=function(f,S){return F.H.useEffect(f,S)},I.useEffectEvent=function(f){return F.H.useEffectEvent(f)},I.useId=function(){return F.H.useId()},I.useImperativeHandle=function(f,S,k){return F.H.useImperativeHandle(f,S,k)},I.useInsertionEffect=function(f,S){return F.H.useInsertionEffect(f,S)},I.useLayoutEffect=function(f,S){return F.H.useLayoutEffect(f,S)},I.useMemo=function(f,S){return F.H.useMemo(f,S)},I.useOptimistic=function(f,S){return F.H.useOptimistic(f,S)},I.useReducer=function(f,S,k){return F.H.useReducer(f,S,k)},I.useRef=function(f){return F.H.useRef(f)},I.useState=function(f){return F.H.useState(f)},I.useSyncExternalStore=function(f,S,k){return F.H.useSyncExternalStore(f,S,k)},I.useTransition=function(){return F.H.useTransition()},I.version="19.2.7",I}var _d;function js(){return _d||(_d=1,bs.exports=yp()),bs.exports}var G=js(),ys={exports:{}},Nn={},xs={exports:{}},Ss={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Ud;function xp(){return Ud||(Ud=1,(function(r){function b(E,B){var q=E.length;E.push(B);e:for(;0<q;){var m=q-1>>>1,H=E[m];if(0<g(H,B))E[m]=B,E[q]=H,q=m;else break e}}function j(E){return E.length===0?null:E[0]}function o(E){if(E.length===0)return null;var B=E[0],q=E.pop();if(q!==B){E[0]=q;e:for(var m=0,H=E.length,f=H>>>1;m<f;){var S=2*(m+1)-1,k=E[S],M=S+1,Z=E[M];if(0>g(k,q))M<H&&0>g(Z,k)?(E[m]=Z,E[M]=q,m=M):(E[m]=k,E[S]=q,m=S);else if(M<H&&0>g(Z,q))E[m]=Z,E[M]=q,m=M;else break e}}return B}function g(E,B){var q=E.sortIndex-B.sortIndex;return q!==0?q:E.id-B.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var z=performance;r.unstable_now=function(){return z.now()}}else{var _=Date,R=_.now();r.unstable_now=function(){return _.now()-R}}var N=[],v=[],C=1,O=null,X=3,V=!1,ie=!1,$=!1,se=!1,Y=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,oe=typeof setImmediate<"u"?setImmediate:null;function ee(E){for(var B=j(v);B!==null;){if(B.callback===null)o(v);else if(B.startTime<=E)o(v),B.sortIndex=B.expirationTime,b(N,B);else break;B=j(v)}}function te(E){if($=!1,ee(E),!ie)if(j(N)!==null)ie=!0,Me||(Me=!0,Ae());else{var B=j(v);B!==null&&ze(te,B.startTime-E)}}var Me=!1,F=-1,Ne=5,Ye=-1;function ut(){return se?!0:!(r.unstable_now()-Ye<Ne)}function ke(){if(se=!1,Me){var E=r.unstable_now();Ye=E;var B=!0;try{e:{ie=!1,$&&($=!1,P(F),F=-1),V=!0;var q=X;try{t:{for(ee(E),O=j(N);O!==null&&!(O.expirationTime>E&&ut());){var m=O.callback;if(typeof m=="function"){O.callback=null,X=O.priorityLevel;var H=m(O.expirationTime<=E);if(E=r.unstable_now(),typeof H=="function"){O.callback=H,ee(E),B=!0;break t}O===j(N)&&o(N),ee(E)}else o(N);O=j(N)}if(O!==null)B=!0;else{var f=j(v);f!==null&&ze(te,f.startTime-E),B=!1}}break e}finally{O=null,X=q,V=!1}B=void 0}}finally{B?Ae():Me=!1}}}var Ae;if(typeof oe=="function")Ae=function(){oe(ke)};else if(typeof MessageChannel<"u"){var Ie=new MessageChannel,We=Ie.port2;Ie.port1.onmessage=ke,Ae=function(){We.postMessage(null)}}else Ae=function(){Y(ke,0)};function ze(E,B){F=Y(function(){E(r.unstable_now())},B)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(E){E.callback=null},r.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ne=0<E?Math.floor(1e3/E):5},r.unstable_getCurrentPriorityLevel=function(){return X},r.unstable_next=function(E){switch(X){case 1:case 2:case 3:var B=3;break;default:B=X}var q=X;X=B;try{return E()}finally{X=q}},r.unstable_requestPaint=function(){se=!0},r.unstable_runWithPriority=function(E,B){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var q=X;X=E;try{return B()}finally{X=q}},r.unstable_scheduleCallback=function(E,B,q){var m=r.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?m+q:m):q=m,E){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=q+H,E={id:C++,callback:B,priorityLevel:E,startTime:q,expirationTime:H,sortIndex:-1},q>m?(E.sortIndex=q,b(v,E),j(N)===null&&E===j(v)&&($?(P(F),F=-1):$=!0,ze(te,q-m))):(E.sortIndex=H,b(N,E),ie||V||(ie=!0,Me||(Me=!0,Ae()))),E},r.unstable_shouldYield=ut,r.unstable_wrapCallback=function(E){var B=X;return function(){var q=X;X=B;try{return E.apply(this,arguments)}finally{X=q}}}})(Ss)),Ss}var Cd;function Sp(){return Cd||(Cd=1,xs.exports=xp()),xs.exports}var zs={exports:{}},$e={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var kd;function zp(){if(kd)return $e;kd=1;var r=js();function b(N){var v="https://react.dev/errors/"+N;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var C=2;C<arguments.length;C++)v+="&args[]="+encodeURIComponent(arguments[C])}return"Minified React error #"+N+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function j(){}var o={d:{f:j,r:function(){throw Error(b(522))},D:j,C:j,L:j,m:j,X:j,S:j,M:j},p:0,findDOMNode:null},g=Symbol.for("react.portal");function z(N,v,C){var O=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:g,key:O==null?null:""+O,children:N,containerInfo:v,implementation:C}}var _=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function R(N,v){if(N==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return $e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,$e.createPortal=function(N,v){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(b(299));return z(N,v,null,C)},$e.flushSync=function(N){var v=_.T,C=o.p;try{if(_.T=null,o.p=2,N)return N()}finally{_.T=v,o.p=C,o.d.f()}},$e.preconnect=function(N,v){typeof N=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,o.d.C(N,v))},$e.prefetchDNS=function(N){typeof N=="string"&&o.d.D(N)},$e.preinit=function(N,v){if(typeof N=="string"&&v&&typeof v.as=="string"){var C=v.as,O=R(C,v.crossOrigin),X=typeof v.integrity=="string"?v.integrity:void 0,V=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;C==="style"?o.d.S(N,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:O,integrity:X,fetchPriority:V}):C==="script"&&o.d.X(N,{crossOrigin:O,integrity:X,fetchPriority:V,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},$e.preinitModule=function(N,v){if(typeof N=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var C=R(v.as,v.crossOrigin);o.d.M(N,{crossOrigin:C,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&o.d.M(N)},$e.preload=function(N,v){if(typeof N=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var C=v.as,O=R(C,v.crossOrigin);o.d.L(N,C,{crossOrigin:O,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},$e.preloadModule=function(N,v){if(typeof N=="string")if(v){var C=R(v.as,v.crossOrigin);o.d.m(N,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:C,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else o.d.m(N)},$e.requestFormReset=function(N){o.d.r(N)},$e.unstable_batchedUpdates=function(N,v){return N(v)},$e.useFormState=function(N,v,C){return _.H.useFormState(N,v,C)},$e.useFormStatus=function(){return _.H.useHostTransitionStatus()},$e.version="19.2.7",$e}var Hd;function wp(){if(Hd)return zs.exports;Hd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(b){console.error(b)}}return r(),zs.exports=zp(),zs.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var Rd;function Ep(){if(Rd)return Nn;Rd=1;var r=Sp(),b=js(),j=wp();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function g(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function z(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function _(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function R(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function N(e){if(z(e)!==e)throw Error(o(188))}function v(e){var t=e.alternate;if(!t){if(t=z(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var i=n.alternate;if(i===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===a)return N(n),e;if(i===l)return N(n),t;i=i.sibling}throw Error(o(188))}if(a.return!==l.return)a=n,l=i;else{for(var u=!1,c=n.child;c;){if(c===a){u=!0,a=n,l=i;break}if(c===l){u=!0,l=n,a=i;break}c=c.sibling}if(!u){for(c=i.child;c;){if(c===a){u=!0,a=i,l=n;break}if(c===l){u=!0,l=i,a=n;break}c=c.sibling}if(!u)throw Error(o(189))}}if(a.alternate!==l)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function C(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=C(e),t!==null)return t;e=e.sibling}return null}var O=Object.assign,X=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),ie=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),se=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),Me=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),Ne=Symbol.for("react.lazy"),Ye=Symbol.for("react.activity"),ut=Symbol.for("react.memo_cache_sentinel"),ke=Symbol.iterator;function Ae(e){return e===null||typeof e!="object"?null:(e=ke&&e[ke]||e["@@iterator"],typeof e=="function"?e:null)}var Ie=Symbol.for("react.client.reference");function We(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ie?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $:return"Fragment";case Y:return"Profiler";case se:return"StrictMode";case te:return"Suspense";case Me:return"SuspenseList";case Ye:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case ie:return"Portal";case oe:return e.displayName||"Context";case P:return(e._context.displayName||"Context")+".Consumer";case ee:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:We(e.type)||"Memo";case Ne:t=e._payload,e=e._init;try{return We(e(t))}catch{}}return null}var ze=Array.isArray,E=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=j.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},m=[],H=-1;function f(e){return{current:e}}function S(e){0>H||(e.current=m[H],m[H]=null,H--)}function k(e,t){H++,m[H]=e.current,e.current=t}var M=f(null),Z=f(null),W=f(null),ae=f(null);function Oe(e,t){switch(k(W,t),k(Z,e),k(M,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?If(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=If(t),e=Pf(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}S(M),k(M,e)}function je(){S(M),S(Z),S(W)}function Ct(e){e.memoizedState!==null&&k(ae,e);var t=M.current,a=Pf(t,e.type);t!==a&&(k(Z,e),k(M,a))}function _n(e){Z.current===e&&(S(M),S(Z)),ae.current===e&&(S(ae),zn._currentValue=q)}var Pi,Ts;function Aa(e){if(Pi===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Pi=t&&t[1]||"",Ts=-1<a.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Pi+e+Ts}var eu=!1;function tu(e,t){if(!e||eu)return"";eu=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(T){var w=T}Reflect.construct(e,[],U)}else{try{U.call()}catch(T){w=T}e.call(U.prototype)}}else{try{throw Error()}catch(T){w=T}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(T){if(T&&w&&typeof T.stack=="string")return[T.stack,w.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),u=i[0],c=i[1];if(u&&c){var d=u.split(`
|
|
44
|
-
`),x=c.split(`
|
|
45
|
-
`);for(n=l=0;l<d.length&&!d[l].includes("DetermineComponentFrameRoot");)l++;for(;n<x.length&&!x[n].includes("DetermineComponentFrameRoot");)n++;if(l===d.length||n===x.length)for(l=d.length-1,n=x.length-1;1<=l&&0<=n&&d[l]!==x[n];)n--;for(;1<=l&&0<=n;l--,n--)if(d[l]!==x[n]){if(l!==1||n!==1)do if(l--,n--,0>n||d[l]!==x[n]){var A=`
|
|
46
|
-
`+d[l].replace(" at new "," at ");return e.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",e.displayName)),A}while(1<=l&&0<=n);break}}}finally{eu=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Aa(a):""}function Jd(e,t){switch(e.tag){case 26:case 27:case 5:return Aa(e.type);case 16:return Aa("Lazy");case 13:return e.child!==t&&t!==null?Aa("Suspense Fallback"):Aa("Suspense");case 19:return Aa("SuspenseList");case 0:case 15:return tu(e.type,!1);case 11:return tu(e.type.render,!1);case 1:return tu(e.type,!0);case 31:return Aa("Activity");default:return""}}function Ns(e){try{var t="",a=null;do t+=Jd(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
-
Error generating stack: `+l.message+`
|
|
48
|
-
`+l.stack}}var au=Object.prototype.hasOwnProperty,lu=r.unstable_scheduleCallback,nu=r.unstable_cancelCallback,$d=r.unstable_shouldYield,Wd=r.unstable_requestPaint,ct=r.unstable_now,Fd=r.unstable_getCurrentPriorityLevel,As=r.unstable_ImmediatePriority,Ms=r.unstable_UserBlockingPriority,Un=r.unstable_NormalPriority,Id=r.unstable_LowPriority,Os=r.unstable_IdlePriority,Pd=r.log,eh=r.unstable_setDisableYieldValue,Ul=null,st=null;function Pt(e){if(typeof Pd=="function"&&eh(e),st&&typeof st.setStrictMode=="function")try{st.setStrictMode(Ul,e)}catch{}}var ot=Math.clz32?Math.clz32:lh,th=Math.log,ah=Math.LN2;function lh(e){return e>>>=0,e===0?32:31-(th(e)/ah|0)|0}var Cn=256,kn=262144,Hn=4194304;function Ma(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Rn(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,i=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var c=l&134217727;return c!==0?(l=c&~i,l!==0?n=Ma(l):(u&=c,u!==0?n=Ma(u):a||(a=c&~e,a!==0&&(n=Ma(a))))):(c=l&~i,c!==0?n=Ma(c):u!==0?n=Ma(u):a||(a=l&~e,a!==0&&(n=Ma(a)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:n}function Cl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function nh(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ds(){var e=Hn;return Hn<<=1,(Hn&62914560)===0&&(Hn=4194304),e}function iu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function kl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ih(e,t,a,l,n,i){var u=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var c=e.entanglements,d=e.expirationTimes,x=e.hiddenUpdates;for(a=u&~a;0<a;){var A=31-ot(a),U=1<<A;c[A]=0,d[A]=-1;var w=x[A];if(w!==null)for(x[A]=null,A=0;A<w.length;A++){var T=w[A];T!==null&&(T.lane&=-536870913)}a&=~U}l!==0&&_s(e,l,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(u&~t))}function _s(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-ot(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Us(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-ot(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function Cs(e,t){var a=t&-t;return a=(a&42)!==0?1:uu(a),(a&(e.suspendedLanes|t))!==0?0:a}function uu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function cu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ks(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:zd(e.type))}function Hs(e,t){var a=B.p;try{return B.p=e,t()}finally{B.p=a}}var ea=Math.random().toString(36).slice(2),Le="__reactFiber$"+ea,Pe="__reactProps$"+ea,Ja="__reactContainer$"+ea,su="__reactEvents$"+ea,uh="__reactListeners$"+ea,ch="__reactHandles$"+ea,Rs="__reactResources$"+ea,Hl="__reactMarker$"+ea;function ou(e){delete e[Le],delete e[Pe],delete e[su],delete e[uh],delete e[ch]}function $a(e){var t=e[Le];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Ja]||a[Le]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=ud(e);e!==null;){if(a=e[Le])return a;e=ud(e)}return t}e=a,a=e.parentNode}return null}function Wa(e){if(e=e[Le]||e[Ja]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Rl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Fa(e){var t=e[Rs];return t||(t=e[Rs]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Xe(e){e[Hl]=!0}var Bs=new Set,qs={};function Oa(e,t){Ia(e,t),Ia(e+"Capture",t)}function Ia(e,t){for(qs[e]=t,e=0;e<t.length;e++)Bs.add(t[e])}var sh=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]*$"),Ys={},Gs={};function oh(e){return au.call(Gs,e)?!0:au.call(Ys,e)?!1:sh.test(e)?Gs[e]=!0:(Ys[e]=!0,!1)}function Bn(e,t,a){if(oh(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function qn(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function kt(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xs(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rh(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(u){a=""+u,i.call(this,u)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(u){a=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ru(e){if(!e._valueTracker){var t=Xs(e)?"checked":"value";e._valueTracker=rh(e,t,""+e[t])}}function Qs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Xs(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Yn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var fh=/[\n"\\]/g;function bt(e){return e.replace(fh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function fu(e,t,a,l,n,i,u,c){e.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.type=u:e.removeAttribute("type"),t!=null?u==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+vt(t)):e.value!==""+vt(t)&&(e.value=""+vt(t)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),t!=null?du(e,u,vt(t)):a!=null?du(e,u,vt(a)):l!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.name=""+vt(c):e.removeAttribute("name")}function Ls(e,t,a,l,n,i,u,c){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){ru(e);return}a=a!=null?""+vt(a):"",t=t!=null?""+vt(t):a,c||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=c?e.checked:!!l,e.defaultChecked=!!l,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.name=u),ru(e)}function du(e,t,a){t==="number"&&Yn(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Pa(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+vt(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Zs(e,t,a){if(t!=null&&(t=""+vt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+vt(a):""}function Vs(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(o(92));if(ze(l)){if(1<l.length)throw Error(o(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=vt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),ru(e)}function el(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var dh=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 Ks(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||dh.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Js(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&Ks(e,n,l)}else for(var i in t)t.hasOwnProperty(i)&&Ks(e,i,t[i])}function hu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var hh=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"]]),mh=/^[\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 Gn(e){return mh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ht(){}var mu=null;function pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tl=null,al=null;function $s(e){var t=Wa(e);if(t&&(e=t.stateNode)){var a=e[Pe]||null;e:switch(e=t.stateNode,t.type){case"input":if(fu(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+bt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[Pe]||null;if(!n)throw Error(o(90));fu(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Qs(l)}break e;case"textarea":Zs(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Pa(e,!!a.multiple,t,!1)}}}var gu=!1;function Ws(e,t,a){if(gu)return e(t,a);gu=!0;try{var l=e(t);return l}finally{if(gu=!1,(tl!==null||al!==null)&&(Ai(),tl&&(t=tl,e=al,al=tl=null,$s(t),e)))for(t=0;t<e.length;t++)$s(e[t])}}function Bl(e,t){var a=e.stateNode;if(a===null)return null;var l=a[Pe]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var Rt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vu=!1;if(Rt)try{var ql={};Object.defineProperty(ql,"passive",{get:function(){vu=!0}}),window.addEventListener("test",ql,ql),window.removeEventListener("test",ql,ql)}catch{vu=!1}var ta=null,bu=null,Xn=null;function Fs(){if(Xn)return Xn;var e,t=bu,a=t.length,l,n="value"in ta?ta.value:ta.textContent,i=n.length;for(e=0;e<a&&t[e]===n[e];e++);var u=a-e;for(l=1;l<=u&&t[a-l]===n[i-l];l++);return Xn=n.slice(e,1<l?1-l:void 0)}function Qn(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ln(){return!0}function Is(){return!1}function et(e){function t(a,l,n,i,u){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(a=e[c],this[c]=a?a(i):i[c]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ln:Is,this.isPropagationStopped=Is,this}return O(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ln)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ln)},persist:function(){},isPersistent:Ln}),t}var Da={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zn=et(Da),Yl=O({},Da,{view:0,detail:0}),ph=et(Yl),yu,xu,Gl,Vn=O({},Yl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Gl&&(Gl&&e.type==="mousemove"?(yu=e.screenX-Gl.screenX,xu=e.screenY-Gl.screenY):xu=yu=0,Gl=e),yu)},movementY:function(e){return"movementY"in e?e.movementY:xu}}),Ps=et(Vn),gh=O({},Vn,{dataTransfer:0}),vh=et(gh),bh=O({},Yl,{relatedTarget:0}),Su=et(bh),yh=O({},Da,{animationName:0,elapsedTime:0,pseudoElement:0}),xh=et(yh),Sh=O({},Da,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zh=et(Sh),wh=O({},Da,{data:0}),eo=et(wh),Eh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jh={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"},Th={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Th[e])?!!t[e]:!1}function zu(){return Nh}var Ah=O({},Yl,{key:function(e){if(e.key){var t=Eh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?jh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zu,charCode:function(e){return e.type==="keypress"?Qn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Mh=et(Ah),Oh=O({},Vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),to=et(Oh),Dh=O({},Yl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zu}),_h=et(Dh),Uh=O({},Da,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ch=et(Uh),kh=O({},Vn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Hh=et(kh),Rh=O({},Da,{newState:0,oldState:0}),Bh=et(Rh),qh=[9,13,27,32],wu=Rt&&"CompositionEvent"in window,Xl=null;Rt&&"documentMode"in document&&(Xl=document.documentMode);var Yh=Rt&&"TextEvent"in window&&!Xl,ao=Rt&&(!wu||Xl&&8<Xl&&11>=Xl),lo=" ",no=!1;function io(e,t){switch(e){case"keyup":return qh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ll=!1;function Gh(e,t){switch(e){case"compositionend":return uo(t);case"keypress":return t.which!==32?null:(no=!0,lo);case"textInput":return e=t.data,e===lo&&no?null:e;default:return null}}function Xh(e,t){if(ll)return e==="compositionend"||!wu&&io(e,t)?(e=Fs(),Xn=bu=ta=null,ll=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ao&&t.locale!=="ko"?null:t.data;default:return null}}var Qh={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 co(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Qh[e.type]:t==="textarea"}function so(e,t,a,l){tl?al?al.push(l):al=[l]:tl=l,t=ki(t,"onChange"),0<t.length&&(a=new Zn("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Ql=null,Ll=null;function Lh(e){Vf(e,0)}function Kn(e){var t=Rl(e);if(Qs(t))return e}function oo(e,t){if(e==="change")return t}var ro=!1;if(Rt){var Eu;if(Rt){var ju="oninput"in document;if(!ju){var fo=document.createElement("div");fo.setAttribute("oninput","return;"),ju=typeof fo.oninput=="function"}Eu=ju}else Eu=!1;ro=Eu&&(!document.documentMode||9<document.documentMode)}function ho(){Ql&&(Ql.detachEvent("onpropertychange",mo),Ll=Ql=null)}function mo(e){if(e.propertyName==="value"&&Kn(Ll)){var t=[];so(t,Ll,e,pu(e)),Ws(Lh,t)}}function Zh(e,t,a){e==="focusin"?(ho(),Ql=t,Ll=a,Ql.attachEvent("onpropertychange",mo)):e==="focusout"&&ho()}function Vh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Kn(Ll)}function Kh(e,t){if(e==="click")return Kn(t)}function Jh(e,t){if(e==="input"||e==="change")return Kn(t)}function $h(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rt=typeof Object.is=="function"?Object.is:$h;function Zl(e,t){if(rt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!au.call(t,n)||!rt(e[n],t[n]))return!1}return!0}function po(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function go(e,t){var a=po(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=po(a)}}function vo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Yn(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Yn(e.document)}return t}function Tu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Wh=Rt&&"documentMode"in document&&11>=document.documentMode,nl=null,Nu=null,Vl=null,Au=!1;function yo(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Au||nl==null||nl!==Yn(l)||(l=nl,"selectionStart"in l&&Tu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Vl&&Zl(Vl,l)||(Vl=l,l=ki(Nu,"onSelect"),0<l.length&&(t=new Zn("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=nl)))}function _a(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var il={animationend:_a("Animation","AnimationEnd"),animationiteration:_a("Animation","AnimationIteration"),animationstart:_a("Animation","AnimationStart"),transitionrun:_a("Transition","TransitionRun"),transitionstart:_a("Transition","TransitionStart"),transitioncancel:_a("Transition","TransitionCancel"),transitionend:_a("Transition","TransitionEnd")},Mu={},xo={};Rt&&(xo=document.createElement("div").style,"AnimationEvent"in window||(delete il.animationend.animation,delete il.animationiteration.animation,delete il.animationstart.animation),"TransitionEvent"in window||delete il.transitionend.transition);function Ua(e){if(Mu[e])return Mu[e];if(!il[e])return e;var t=il[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in xo)return Mu[e]=t[a];return e}var So=Ua("animationend"),zo=Ua("animationiteration"),wo=Ua("animationstart"),Fh=Ua("transitionrun"),Ih=Ua("transitionstart"),Ph=Ua("transitioncancel"),Eo=Ua("transitionend"),jo=new Map,Ou="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(" ");Ou.push("scrollEnd");function Nt(e,t){jo.set(e,t),Oa(t,[e])}var Jn=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},yt=[],ul=0,Du=0;function $n(){for(var e=ul,t=Du=ul=0;t<e;){var a=yt[t];yt[t++]=null;var l=yt[t];yt[t++]=null;var n=yt[t];yt[t++]=null;var i=yt[t];if(yt[t++]=null,l!==null&&n!==null){var u=l.pending;u===null?n.next=n:(n.next=u.next,u.next=n),l.pending=n}i!==0&&To(a,n,i)}}function Wn(e,t,a,l){yt[ul++]=e,yt[ul++]=t,yt[ul++]=a,yt[ul++]=l,Du|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function _u(e,t,a,l){return Wn(e,t,a,l),Fn(e)}function Ca(e,t){return Wn(e,null,null,t),Fn(e)}function To(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,i=e.return;i!==null;)i.childLanes|=a,l=i.alternate,l!==null&&(l.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-ot(a),e=i.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),i):null}function Fn(e){if(50<pn)throw pn=0,Gc=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var cl={};function em(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ft(e,t,a,l){return new em(e,t,a,l)}function Uu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bt(e,t){var a=e.alternate;return a===null?(a=ft(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function No(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function In(e,t,a,l,n,i){var u=0;if(l=e,typeof e=="function")Uu(e)&&(u=1);else if(typeof e=="string")u=ip(e,a,M.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ye:return e=ft(31,a,t,n),e.elementType=Ye,e.lanes=i,e;case $:return ka(a.children,n,i,t);case se:u=8,n|=24;break;case Y:return e=ft(12,a,t,n|2),e.elementType=Y,e.lanes=i,e;case te:return e=ft(13,a,t,n),e.elementType=te,e.lanes=i,e;case Me:return e=ft(19,a,t,n),e.elementType=Me,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case oe:u=10;break e;case P:u=9;break e;case ee:u=11;break e;case F:u=14;break e;case Ne:u=16,l=null;break e}u=29,a=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=ft(u,a,t,n),t.elementType=e,t.type=l,t.lanes=i,t}function ka(e,t,a,l){return e=ft(7,e,l,t),e.lanes=a,e}function Cu(e,t,a){return e=ft(6,e,null,t),e.lanes=a,e}function Ao(e){var t=ft(18,null,null,0);return t.stateNode=e,t}function ku(e,t,a){return t=ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Mo=new WeakMap;function xt(e,t){if(typeof e=="object"&&e!==null){var a=Mo.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ns(t)},Mo.set(e,t),t)}return{value:e,source:t,stack:Ns(t)}}var sl=[],ol=0,Pn=null,Kl=0,St=[],zt=0,aa=null,Ot=1,Dt="";function qt(e,t){sl[ol++]=Kl,sl[ol++]=Pn,Pn=e,Kl=t}function Oo(e,t,a){St[zt++]=Ot,St[zt++]=Dt,St[zt++]=aa,aa=e;var l=Ot;e=Dt;var n=32-ot(l)-1;l&=~(1<<n),a+=1;var i=32-ot(t)+n;if(30<i){var u=n-n%5;i=(l&(1<<u)-1).toString(32),l>>=u,n-=u,Ot=1<<32-ot(t)+n|a<<n|l,Dt=i+e}else Ot=1<<i|a<<n|l,Dt=e}function Hu(e){e.return!==null&&(qt(e,1),Oo(e,1,0))}function Ru(e){for(;e===Pn;)Pn=sl[--ol],sl[ol]=null,Kl=sl[--ol],sl[ol]=null;for(;e===aa;)aa=St[--zt],St[zt]=null,Dt=St[--zt],St[zt]=null,Ot=St[--zt],St[zt]=null}function Do(e,t){St[zt++]=Ot,St[zt++]=Dt,St[zt++]=aa,Ot=t.id,Dt=t.overflow,aa=e}var Ze=null,we=null,de=!1,la=null,wt=!1,Bu=Error(o(519));function na(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jl(xt(t,e)),Bu}function _o(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[Le]=e,t[Pe]=l,a){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(a=0;a<vn.length;a++)ce(vn[a],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),Ls(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),Vs(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Wf(t.textContent,a)?(l.popover!=null&&(ce("beforetoggle",t),ce("toggle",t)),l.onScroll!=null&&ce("scroll",t),l.onScrollEnd!=null&&ce("scrollend",t),l.onClick!=null&&(t.onclick=Ht),t=!0):t=!1,t||na(e,!0)}function Uo(e){for(Ze=e.return;Ze;)switch(Ze.tag){case 5:case 31:case 13:wt=!1;return;case 27:case 3:wt=!0;return;default:Ze=Ze.return}}function rl(e){if(e!==Ze)return!1;if(!de)return Uo(e),de=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||as(e.type,e.memoizedProps)),a=!a),a&&we&&na(e),Uo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));we=id(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));we=id(e)}else t===27?(t=we,ba(e.type)?(e=cs,cs=null,we=e):we=t):we=Ze?jt(e.stateNode.nextSibling):null;return!0}function Ha(){we=Ze=null,de=!1}function qu(){var e=la;return e!==null&&(nt===null?nt=e:nt.push.apply(nt,e),la=null),e}function Jl(e){la===null?la=[e]:la.push(e)}var Yu=f(null),Ra=null,Yt=null;function ia(e,t,a){k(Yu,t._currentValue),t._currentValue=a}function Gt(e){e._currentValue=Yu.current,S(Yu)}function Gu(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Xu(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var u=n.child;i=i.firstContext;e:for(;i!==null;){var c=i;i=n;for(var d=0;d<t.length;d++)if(c.context===t[d]){i.lanes|=a,c=i.alternate,c!==null&&(c.lanes|=a),Gu(i.return,a,e),l||(u=null);break e}i=c.next}}else if(n.tag===18){if(u=n.return,u===null)throw Error(o(341));u.lanes|=a,i=u.alternate,i!==null&&(i.lanes|=a),Gu(u,a,e),u=null}else u=n.child;if(u!==null)u.return=n;else for(u=n;u!==null;){if(u===e){u=null;break}if(n=u.sibling,n!==null){n.return=u.return,u=n;break}u=u.return}n=u}}function fl(e,t,a,l){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var u=n.alternate;if(u===null)throw Error(o(387));if(u=u.memoizedProps,u!==null){var c=n.type;rt(n.pendingProps.value,u.value)||(e!==null?e.push(c):e=[c])}}else if(n===ae.current){if(u=n.alternate,u===null)throw Error(o(387));u.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(zn):e=[zn])}n=n.return}e!==null&&Xu(t,e,a,l),t.flags|=262144}function ei(e){for(e=e.firstContext;e!==null;){if(!rt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ba(e){Ra=e,Yt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ve(e){return Co(Ra,e)}function ti(e,t){return Ra===null&&Ba(e),Co(e,t)}function Co(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Yt===null){if(e===null)throw Error(o(308));Yt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Yt=Yt.next=t;return a}var tm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},am=r.unstable_scheduleCallback,lm=r.unstable_NormalPriority,He={$$typeof:oe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qu(){return{controller:new tm,data:new Map,refCount:0}}function $l(e){e.refCount--,e.refCount===0&&am(lm,function(){e.controller.abort()})}var Wl=null,Lu=0,dl=0,hl=null;function nm(e,t){if(Wl===null){var a=Wl=[];Lu=0,dl=Kc(),hl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Lu++,t.then(ko,ko),t}function ko(){if(--Lu===0&&Wl!==null){hl!==null&&(hl.status="fulfilled");var e=Wl;Wl=null,dl=0,hl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function im(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var Ho=E.S;E.S=function(e,t){xf=ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&nm(e,t),Ho!==null&&Ho(e,t)};var qa=f(null);function Zu(){var e=qa.current;return e!==null?e:Se.pooledCache}function ai(e,t){t===null?k(qa,qa.current):k(qa,t.pool)}function Ro(){var e=Zu();return e===null?null:{parent:He._currentValue,pool:e}}var ml=Error(o(460)),Vu=Error(o(474)),li=Error(o(542)),ni={then:function(){}};function Bo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function qo(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ht,Ht),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Go(e),e;default:if(typeof t.status=="string")t.then(Ht,Ht);else{if(e=Se,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Go(e),e}throw Ga=t,ml}}function Ya(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ga=a,ml):a}}var Ga=null;function Yo(){if(Ga===null)throw Error(o(459));var e=Ga;return Ga=null,e}function Go(e){if(e===ml||e===li)throw Error(o(483))}var pl=null,Fl=0;function ii(e){var t=Fl;return Fl+=1,pl===null&&(pl=[]),qo(pl,e,t)}function Il(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ui(e,t){throw t.$$typeof===X?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Xo(e){function t(p,h){if(e){var y=p.deletions;y===null?(p.deletions=[h],p.flags|=16):y.push(h)}}function a(p,h){if(!e)return null;for(;h!==null;)t(p,h),h=h.sibling;return null}function l(p){for(var h=new Map;p!==null;)p.key!==null?h.set(p.key,p):h.set(p.index,p),p=p.sibling;return h}function n(p,h){return p=Bt(p,h),p.index=0,p.sibling=null,p}function i(p,h,y){return p.index=y,e?(y=p.alternate,y!==null?(y=y.index,y<h?(p.flags|=67108866,h):y):(p.flags|=67108866,h)):(p.flags|=1048576,h)}function u(p){return e&&p.alternate===null&&(p.flags|=67108866),p}function c(p,h,y,D){return h===null||h.tag!==6?(h=Cu(y,p.mode,D),h.return=p,h):(h=n(h,y),h.return=p,h)}function d(p,h,y,D){var K=y.type;return K===$?A(p,h,y.props.children,D,y.key):h!==null&&(h.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===Ne&&Ya(K)===h.type)?(h=n(h,y.props),Il(h,y),h.return=p,h):(h=In(y.type,y.key,y.props,null,p.mode,D),Il(h,y),h.return=p,h)}function x(p,h,y,D){return h===null||h.tag!==4||h.stateNode.containerInfo!==y.containerInfo||h.stateNode.implementation!==y.implementation?(h=ku(y,p.mode,D),h.return=p,h):(h=n(h,y.children||[]),h.return=p,h)}function A(p,h,y,D,K){return h===null||h.tag!==7?(h=ka(y,p.mode,D,K),h.return=p,h):(h=n(h,y),h.return=p,h)}function U(p,h,y){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=Cu(""+h,p.mode,y),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case V:return y=In(h.type,h.key,h.props,null,p.mode,y),Il(y,h),y.return=p,y;case ie:return h=ku(h,p.mode,y),h.return=p,h;case Ne:return h=Ya(h),U(p,h,y)}if(ze(h)||Ae(h))return h=ka(h,p.mode,y,null),h.return=p,h;if(typeof h.then=="function")return U(p,ii(h),y);if(h.$$typeof===oe)return U(p,ti(p,h),y);ui(p,h)}return null}function w(p,h,y,D){var K=h!==null?h.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return K!==null?null:c(p,h,""+y,D);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case V:return y.key===K?d(p,h,y,D):null;case ie:return y.key===K?x(p,h,y,D):null;case Ne:return y=Ya(y),w(p,h,y,D)}if(ze(y)||Ae(y))return K!==null?null:A(p,h,y,D,null);if(typeof y.then=="function")return w(p,h,ii(y),D);if(y.$$typeof===oe)return w(p,h,ti(p,y),D);ui(p,y)}return null}function T(p,h,y,D,K){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return p=p.get(y)||null,c(h,p,""+D,K);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case V:return p=p.get(D.key===null?y:D.key)||null,d(h,p,D,K);case ie:return p=p.get(D.key===null?y:D.key)||null,x(h,p,D,K);case Ne:return D=Ya(D),T(p,h,y,D,K)}if(ze(D)||Ae(D))return p=p.get(y)||null,A(h,p,D,K,null);if(typeof D.then=="function")return T(p,h,y,ii(D),K);if(D.$$typeof===oe)return T(p,h,y,ti(h,D),K);ui(h,D)}return null}function Q(p,h,y,D){for(var K=null,he=null,L=h,ne=h=0,fe=null;L!==null&&ne<y.length;ne++){L.index>ne?(fe=L,L=null):fe=L.sibling;var me=w(p,L,y[ne],D);if(me===null){L===null&&(L=fe);break}e&&L&&me.alternate===null&&t(p,L),h=i(me,h,ne),he===null?K=me:he.sibling=me,he=me,L=fe}if(ne===y.length)return a(p,L),de&&qt(p,ne),K;if(L===null){for(;ne<y.length;ne++)L=U(p,y[ne],D),L!==null&&(h=i(L,h,ne),he===null?K=L:he.sibling=L,he=L);return de&&qt(p,ne),K}for(L=l(L);ne<y.length;ne++)fe=T(L,p,ne,y[ne],D),fe!==null&&(e&&fe.alternate!==null&&L.delete(fe.key===null?ne:fe.key),h=i(fe,h,ne),he===null?K=fe:he.sibling=fe,he=fe);return e&&L.forEach(function(wa){return t(p,wa)}),de&&qt(p,ne),K}function J(p,h,y,D){if(y==null)throw Error(o(151));for(var K=null,he=null,L=h,ne=h=0,fe=null,me=y.next();L!==null&&!me.done;ne++,me=y.next()){L.index>ne?(fe=L,L=null):fe=L.sibling;var wa=w(p,L,me.value,D);if(wa===null){L===null&&(L=fe);break}e&&L&&wa.alternate===null&&t(p,L),h=i(wa,h,ne),he===null?K=wa:he.sibling=wa,he=wa,L=fe}if(me.done)return a(p,L),de&&qt(p,ne),K;if(L===null){for(;!me.done;ne++,me=y.next())me=U(p,me.value,D),me!==null&&(h=i(me,h,ne),he===null?K=me:he.sibling=me,he=me);return de&&qt(p,ne),K}for(L=l(L);!me.done;ne++,me=y.next())me=T(L,p,ne,me.value,D),me!==null&&(e&&me.alternate!==null&&L.delete(me.key===null?ne:me.key),h=i(me,h,ne),he===null?K=me:he.sibling=me,he=me);return e&&L.forEach(function(gp){return t(p,gp)}),de&&qt(p,ne),K}function xe(p,h,y,D){if(typeof y=="object"&&y!==null&&y.type===$&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case V:e:{for(var K=y.key;h!==null;){if(h.key===K){if(K=y.type,K===$){if(h.tag===7){a(p,h.sibling),D=n(h,y.props.children),D.return=p,p=D;break e}}else if(h.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===Ne&&Ya(K)===h.type){a(p,h.sibling),D=n(h,y.props),Il(D,y),D.return=p,p=D;break e}a(p,h);break}else t(p,h);h=h.sibling}y.type===$?(D=ka(y.props.children,p.mode,D,y.key),D.return=p,p=D):(D=In(y.type,y.key,y.props,null,p.mode,D),Il(D,y),D.return=p,p=D)}return u(p);case ie:e:{for(K=y.key;h!==null;){if(h.key===K)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){a(p,h.sibling),D=n(h,y.children||[]),D.return=p,p=D;break e}else{a(p,h);break}else t(p,h);h=h.sibling}D=ku(y,p.mode,D),D.return=p,p=D}return u(p);case Ne:return y=Ya(y),xe(p,h,y,D)}if(ze(y))return Q(p,h,y,D);if(Ae(y)){if(K=Ae(y),typeof K!="function")throw Error(o(150));return y=K.call(y),J(p,h,y,D)}if(typeof y.then=="function")return xe(p,h,ii(y),D);if(y.$$typeof===oe)return xe(p,h,ti(p,y),D);ui(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,h!==null&&h.tag===6?(a(p,h.sibling),D=n(h,y),D.return=p,p=D):(a(p,h),D=Cu(y,p.mode,D),D.return=p,p=D),u(p)):a(p,h)}return function(p,h,y,D){try{Fl=0;var K=xe(p,h,y,D);return pl=null,K}catch(L){if(L===ml||L===li)throw L;var he=ft(29,L,null,p.mode);return he.lanes=D,he.return=p,he}finally{}}}var Xa=Xo(!0),Qo=Xo(!1),ua=!1;function Ku(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ju(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ca(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function sa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(pe&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=Fn(e),To(e,null,a),t}return Wn(e,l,t,a),Fn(e)}function Pl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Us(e,a)}}function $u(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var u={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?n=i=u:i=i.next=u,a=a.next}while(a!==null);i===null?n=i=t:i=i.next=t}else n=i=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Wu=!1;function en(){if(Wu){var e=hl;if(e!==null)throw e}}function tn(e,t,a,l){Wu=!1;var n=e.updateQueue;ua=!1;var i=n.firstBaseUpdate,u=n.lastBaseUpdate,c=n.shared.pending;if(c!==null){n.shared.pending=null;var d=c,x=d.next;d.next=null,u===null?i=x:u.next=x,u=d;var A=e.alternate;A!==null&&(A=A.updateQueue,c=A.lastBaseUpdate,c!==u&&(c===null?A.firstBaseUpdate=x:c.next=x,A.lastBaseUpdate=d))}if(i!==null){var U=n.baseState;u=0,A=x=d=null,c=i;do{var w=c.lane&-536870913,T=w!==c.lane;if(T?(re&w)===w:(l&w)===w){w!==0&&w===dl&&(Wu=!0),A!==null&&(A=A.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});e:{var Q=e,J=c;w=t;var xe=a;switch(J.tag){case 1:if(Q=J.payload,typeof Q=="function"){U=Q.call(xe,U,w);break e}U=Q;break e;case 3:Q.flags=Q.flags&-65537|128;case 0:if(Q=J.payload,w=typeof Q=="function"?Q.call(xe,U,w):Q,w==null)break e;U=O({},U,w);break e;case 2:ua=!0}}w=c.callback,w!==null&&(e.flags|=64,T&&(e.flags|=8192),T=n.callbacks,T===null?n.callbacks=[w]:T.push(w))}else T={lane:w,tag:c.tag,payload:c.payload,callback:c.callback,next:null},A===null?(x=A=T,d=U):A=A.next=T,u|=w;if(c=c.next,c===null){if(c=n.shared.pending,c===null)break;T=c,c=T.next,T.next=null,n.lastBaseUpdate=T,n.shared.pending=null}}while(!0);A===null&&(d=U),n.baseState=d,n.firstBaseUpdate=x,n.lastBaseUpdate=A,i===null&&(n.shared.lanes=0),ha|=u,e.lanes=u,e.memoizedState=U}}function Lo(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Zo(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Lo(a[e],t)}var gl=f(null),ci=f(0);function Vo(e,t){e=Wt,k(ci,e),k(gl,t),Wt=e|t.baseLanes}function Fu(){k(ci,Wt),k(gl,gl.current)}function Iu(){Wt=ci.current,S(gl),S(ci)}var dt=f(null),Et=null;function oa(e){var t=e.alternate;k(Ue,Ue.current&1),k(dt,e),Et===null&&(t===null||gl.current!==null||t.memoizedState!==null)&&(Et=e)}function Pu(e){k(Ue,Ue.current),k(dt,e),Et===null&&(Et=e)}function Ko(e){e.tag===22?(k(Ue,Ue.current),k(dt,e),Et===null&&(Et=e)):ra()}function ra(){k(Ue,Ue.current),k(dt,dt.current)}function ht(e){S(dt),Et===e&&(Et=null),S(Ue)}var Ue=f(0);function si(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||is(a)||us(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xt=0,le=null,be=null,Re=null,oi=!1,vl=!1,Qa=!1,ri=0,an=0,bl=null,um=0;function De(){throw Error(o(321))}function ec(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!rt(e[a],t[a]))return!1;return!0}function tc(e,t,a,l,n,i){return Xt=i,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,E.H=e===null||e.memoizedState===null?Or:gc,Qa=!1,i=a(l,n),Qa=!1,vl&&(i=$o(t,a,l,n)),Jo(e),i}function Jo(e){E.H=un;var t=be!==null&&be.next!==null;if(Xt=0,Re=be=le=null,oi=!1,an=0,bl=null,t)throw Error(o(300));e===null||Be||(e=e.dependencies,e!==null&&ei(e)&&(Be=!0))}function $o(e,t,a,l){le=e;var n=0;do{if(vl&&(bl=null),an=0,vl=!1,25<=n)throw Error(o(301));if(n+=1,Re=be=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}E.H=Dr,i=t(a,l)}while(vl);return i}function cm(){var e=E.H,t=e.useState()[0];return t=typeof t.then=="function"?ln(t):t,e=e.useState()[0],(be!==null?be.memoizedState:null)!==e&&(le.flags|=1024),t}function ac(){var e=ri!==0;return ri=0,e}function lc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function nc(e){if(oi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}oi=!1}Xt=0,Re=be=le=null,vl=!1,an=ri=0,bl=null}function Fe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?le.memoizedState=Re=e:Re=Re.next=e,Re}function Ce(){if(be===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=be.next;var t=Re===null?le.memoizedState:Re.next;if(t!==null)Re=t,be=e;else{if(e===null)throw le.alternate===null?Error(o(467)):Error(o(310));be=e,e={memoizedState:be.memoizedState,baseState:be.baseState,baseQueue:be.baseQueue,queue:be.queue,next:null},Re===null?le.memoizedState=Re=e:Re=Re.next=e}return Re}function fi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ln(e){var t=an;return an+=1,bl===null&&(bl=[]),e=qo(bl,e,t),t=le,(Re===null?t.memoizedState:Re.next)===null&&(t=t.alternate,E.H=t===null||t.memoizedState===null?Or:gc),e}function di(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ln(e);if(e.$$typeof===oe)return Ve(e)}throw Error(o(438,String(e)))}function ic(e){var t=null,a=le.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=le.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=fi(),le.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=ut;return t.index++,a}function Qt(e,t){return typeof t=="function"?t(e):t}function hi(e){var t=Ce();return uc(t,be,e)}function uc(e,t,a){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=a;var n=e.baseQueue,i=l.pending;if(i!==null){if(n!==null){var u=n.next;n.next=i.next,i.next=u}t.baseQueue=n=i,l.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var c=u=null,d=null,x=t,A=!1;do{var U=x.lane&-536870913;if(U!==x.lane?(re&U)===U:(Xt&U)===U){var w=x.revertLane;if(w===0)d!==null&&(d=d.next={lane:0,revertLane:0,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),U===dl&&(A=!0);else if((Xt&w)===w){x=x.next,w===dl&&(A=!0);continue}else U={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},d===null?(c=d=U,u=i):d=d.next=U,le.lanes|=w,ha|=w;U=x.action,Qa&&a(i,U),i=x.hasEagerState?x.eagerState:a(i,U)}else w={lane:U,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},d===null?(c=d=w,u=i):d=d.next=w,le.lanes|=U,ha|=U;x=x.next}while(x!==null&&x!==t);if(d===null?u=i:d.next=c,!rt(i,e.memoizedState)&&(Be=!0,A&&(a=hl,a!==null)))throw a;e.memoizedState=i,e.baseState=u,e.baseQueue=d,l.lastRenderedState=i}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function cc(e){var t=Ce(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,i=t.memoizedState;if(n!==null){a.pending=null;var u=n=n.next;do i=e(i,u.action),u=u.next;while(u!==n);rt(i,t.memoizedState)||(Be=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,l]}function Wo(e,t,a){var l=le,n=Ce(),i=de;if(i){if(a===void 0)throw Error(o(407));a=a()}else a=t();var u=!rt((be||n).memoizedState,a);if(u&&(n.memoizedState=a,Be=!0),n=n.queue,rc(Po.bind(null,l,n,e),[e]),n.getSnapshot!==t||u||Re!==null&&Re.memoizedState.tag&1){if(l.flags|=2048,yl(9,{destroy:void 0},Io.bind(null,l,n,a,t),null),Se===null)throw Error(o(349));i||(Xt&127)!==0||Fo(l,t,a)}return a}function Fo(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=le.updateQueue,t===null?(t=fi(),le.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Io(e,t,a,l){t.value=a,t.getSnapshot=l,er(t)&&tr(e)}function Po(e,t,a){return a(function(){er(t)&&tr(e)})}function er(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!rt(e,a)}catch{return!0}}function tr(e){var t=Ca(e,2);t!==null&&it(t,e,2)}function sc(e){var t=Fe();if(typeof e=="function"){var a=e;if(e=a(),Qa){Pt(!0);try{a()}finally{Pt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qt,lastRenderedState:e},t}function ar(e,t,a,l){return e.baseState=a,uc(e,be,typeof l=="function"?l:Qt)}function sm(e,t,a,l,n){if(gi(e))throw Error(o(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){i.listeners.push(u)}};E.T!==null?a(!0):i.isTransition=!1,l(i),a=t.pending,a===null?(i.next=t.pending=i,lr(t,i)):(i.next=a.next,t.pending=a.next=i)}}function lr(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var i=E.T,u={};E.T=u;try{var c=a(n,l),d=E.S;d!==null&&d(u,c),nr(e,t,c)}catch(x){oc(e,t,x)}finally{i!==null&&u.types!==null&&(i.types=u.types),E.T=i}}else try{i=a(n,l),nr(e,t,i)}catch(x){oc(e,t,x)}}function nr(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){ir(e,t,l)},function(l){return oc(e,t,l)}):ir(e,t,a)}function ir(e,t,a){t.status="fulfilled",t.value=a,ur(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,lr(e,a)))}function oc(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,ur(t),t=t.next;while(t!==l)}e.action=null}function ur(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function cr(e,t){return t}function sr(e,t){if(de){var a=Se.formState;if(a!==null){e:{var l=le;if(de){if(we){t:{for(var n=we,i=wt;n.nodeType!==8;){if(!i){n=null;break t}if(n=jt(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){we=jt(n.nextSibling),l=n.data==="F!";break e}}na(l)}l=!1}l&&(t=a[0])}}return a=Fe(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cr,lastRenderedState:t},a.queue=l,a=Nr.bind(null,le,l),l.dispatch=a,l=sc(!1),i=pc.bind(null,le,!1,l.queue),l=Fe(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=sm.bind(null,le,n,i,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function or(e){var t=Ce();return rr(t,be,e)}function rr(e,t,a){if(t=uc(e,t,cr)[0],e=hi(Qt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ln(t)}catch(u){throw u===ml?li:u}else l=t;t=Ce();var n=t.queue,i=n.dispatch;return a!==t.memoizedState&&(le.flags|=2048,yl(9,{destroy:void 0},om.bind(null,n,a),null)),[l,i,e]}function om(e,t){e.action=t}function fr(e){var t=Ce(),a=be;if(a!==null)return rr(t,a,e);Ce(),t=t.memoizedState,a=Ce();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function yl(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=le.updateQueue,t===null&&(t=fi(),le.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function dr(){return Ce().memoizedState}function mi(e,t,a,l){var n=Fe();le.flags|=e,n.memoizedState=yl(1|t,{destroy:void 0},a,l===void 0?null:l)}function pi(e,t,a,l){var n=Ce();l=l===void 0?null:l;var i=n.memoizedState.inst;be!==null&&l!==null&&ec(l,be.memoizedState.deps)?n.memoizedState=yl(t,i,a,l):(le.flags|=e,n.memoizedState=yl(1|t,i,a,l))}function hr(e,t){mi(8390656,8,e,t)}function rc(e,t){pi(2048,8,e,t)}function rm(e){le.flags|=4;var t=le.updateQueue;if(t===null)t=fi(),le.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function mr(e){var t=Ce().memoizedState;return rm({ref:t,nextImpl:e}),function(){if((pe&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function pr(e,t){return pi(4,2,e,t)}function gr(e,t){return pi(4,4,e,t)}function vr(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function br(e,t,a){a=a!=null?a.concat([e]):null,pi(4,4,vr.bind(null,t,e),a)}function fc(){}function yr(e,t){var a=Ce();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&ec(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function xr(e,t){var a=Ce();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&ec(t,l[1]))return l[0];if(l=e(),Qa){Pt(!0);try{e()}finally{Pt(!1)}}return a.memoizedState=[l,t],l}function dc(e,t,a){return a===void 0||(Xt&1073741824)!==0&&(re&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=zf(),le.lanes|=e,ha|=e,a)}function Sr(e,t,a,l){return rt(a,t)?a:gl.current!==null?(e=dc(e,a,l),rt(e,t)||(Be=!0),e):(Xt&42)===0||(Xt&1073741824)!==0&&(re&261930)===0?(Be=!0,e.memoizedState=a):(e=zf(),le.lanes|=e,ha|=e,t)}function zr(e,t,a,l,n){var i=B.p;B.p=i!==0&&8>i?i:8;var u=E.T,c={};E.T=c,pc(e,!1,t,a);try{var d=n(),x=E.S;if(x!==null&&x(c,d),d!==null&&typeof d=="object"&&typeof d.then=="function"){var A=im(d,l);nn(e,t,A,gt(e))}else nn(e,t,l,gt(e))}catch(U){nn(e,t,{then:function(){},status:"rejected",reason:U},gt())}finally{B.p=i,u!==null&&c.types!==null&&(u.types=c.types),E.T=u}}function fm(){}function hc(e,t,a,l){if(e.tag!==5)throw Error(o(476));var n=wr(e).queue;zr(e,n,t,q,a===null?fm:function(){return Er(e),a(l)})}function wr(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qt,lastRenderedState:q},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qt,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Er(e){var t=wr(e);t.next===null&&(t=e.alternate.memoizedState),nn(e,t.next.queue,{},gt())}function mc(){return Ve(zn)}function jr(){return Ce().memoizedState}function Tr(){return Ce().memoizedState}function dm(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=gt();e=ca(a);var l=sa(t,e,a);l!==null&&(it(l,t,a),Pl(l,t,a)),t={cache:Qu()},e.payload=t;return}t=t.return}}function hm(e,t,a){var l=gt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},gi(e)?Ar(t,a):(a=_u(e,t,a,l),a!==null&&(it(a,e,l),Mr(a,t,l)))}function Nr(e,t,a){var l=gt();nn(e,t,a,l)}function nn(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(gi(e))Ar(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var u=t.lastRenderedState,c=i(u,a);if(n.hasEagerState=!0,n.eagerState=c,rt(c,u))return Wn(e,t,n,0),Se===null&&$n(),!1}catch{}finally{}if(a=_u(e,t,n,l),a!==null)return it(a,e,l),Mr(a,t,l),!0}return!1}function pc(e,t,a,l){if(l={lane:2,revertLane:Kc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},gi(e)){if(t)throw Error(o(479))}else t=_u(e,a,l,2),t!==null&&it(t,e,2)}function gi(e){var t=e.alternate;return e===le||t!==null&&t===le}function Ar(e,t){vl=oi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Mr(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Us(e,a)}}var un={readContext:Ve,use:di,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useLayoutEffect:De,useInsertionEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useSyncExternalStore:De,useId:De,useHostTransitionStatus:De,useFormState:De,useActionState:De,useOptimistic:De,useMemoCache:De,useCacheRefresh:De};un.useEffectEvent=De;var Or={readContext:Ve,use:di,useCallback:function(e,t){return Fe().memoizedState=[e,t===void 0?null:t],e},useContext:Ve,useEffect:hr,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,mi(4194308,4,vr.bind(null,t,e),a)},useLayoutEffect:function(e,t){return mi(4194308,4,e,t)},useInsertionEffect:function(e,t){mi(4,2,e,t)},useMemo:function(e,t){var a=Fe();t=t===void 0?null:t;var l=e();if(Qa){Pt(!0);try{e()}finally{Pt(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=Fe();if(a!==void 0){var n=a(t);if(Qa){Pt(!0);try{a(t)}finally{Pt(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=hm.bind(null,le,e),[l.memoizedState,e]},useRef:function(e){var t=Fe();return e={current:e},t.memoizedState=e},useState:function(e){e=sc(e);var t=e.queue,a=Nr.bind(null,le,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:fc,useDeferredValue:function(e,t){var a=Fe();return dc(a,e,t)},useTransition:function(){var e=sc(!1);return e=zr.bind(null,le,e.queue,!0,!1),Fe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=le,n=Fe();if(de){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Se===null)throw Error(o(349));(re&127)!==0||Fo(l,t,a)}n.memoizedState=a;var i={value:a,getSnapshot:t};return n.queue=i,hr(Po.bind(null,l,i,e),[e]),l.flags|=2048,yl(9,{destroy:void 0},Io.bind(null,l,i,a,t),null),a},useId:function(){var e=Fe(),t=Se.identifierPrefix;if(de){var a=Dt,l=Ot;a=(l&~(1<<32-ot(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=ri++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=um++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:mc,useFormState:sr,useActionState:sr,useOptimistic:function(e){var t=Fe();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=pc.bind(null,le,!0,a),a.dispatch=t,[e,t]},useMemoCache:ic,useCacheRefresh:function(){return Fe().memoizedState=dm.bind(null,le)},useEffectEvent:function(e){var t=Fe(),a={impl:e};return t.memoizedState=a,function(){if((pe&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},gc={readContext:Ve,use:di,useCallback:yr,useContext:Ve,useEffect:rc,useImperativeHandle:br,useInsertionEffect:pr,useLayoutEffect:gr,useMemo:xr,useReducer:hi,useRef:dr,useState:function(){return hi(Qt)},useDebugValue:fc,useDeferredValue:function(e,t){var a=Ce();return Sr(a,be.memoizedState,e,t)},useTransition:function(){var e=hi(Qt)[0],t=Ce().memoizedState;return[typeof e=="boolean"?e:ln(e),t]},useSyncExternalStore:Wo,useId:jr,useHostTransitionStatus:mc,useFormState:or,useActionState:or,useOptimistic:function(e,t){var a=Ce();return ar(a,be,e,t)},useMemoCache:ic,useCacheRefresh:Tr};gc.useEffectEvent=mr;var Dr={readContext:Ve,use:di,useCallback:yr,useContext:Ve,useEffect:rc,useImperativeHandle:br,useInsertionEffect:pr,useLayoutEffect:gr,useMemo:xr,useReducer:cc,useRef:dr,useState:function(){return cc(Qt)},useDebugValue:fc,useDeferredValue:function(e,t){var a=Ce();return be===null?dc(a,e,t):Sr(a,be.memoizedState,e,t)},useTransition:function(){var e=cc(Qt)[0],t=Ce().memoizedState;return[typeof e=="boolean"?e:ln(e),t]},useSyncExternalStore:Wo,useId:jr,useHostTransitionStatus:mc,useFormState:fr,useActionState:fr,useOptimistic:function(e,t){var a=Ce();return be!==null?ar(a,be,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:ic,useCacheRefresh:Tr};Dr.useEffectEvent=mr;function vc(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:O({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var bc={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=gt(),n=ca(l);n.payload=t,a!=null&&(n.callback=a),t=sa(e,n,l),t!==null&&(it(t,e,l),Pl(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=gt(),n=ca(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=sa(e,n,l),t!==null&&(it(t,e,l),Pl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=gt(),l=ca(a);l.tag=2,t!=null&&(l.callback=t),t=sa(e,l,a),t!==null&&(it(t,e,a),Pl(t,e,a))}};function _r(e,t,a,l,n,i,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,u):t.prototype&&t.prototype.isPureReactComponent?!Zl(a,l)||!Zl(n,i):!0}function Ur(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&bc.enqueueReplaceState(t,t.state,null)}function La(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=O({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function Cr(e){Jn(e)}function kr(e){console.error(e)}function Hr(e){Jn(e)}function vi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Rr(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function yc(e,t,a){return a=ca(a),a.tag=3,a.payload={element:null},a.callback=function(){vi(e,t)},a}function Br(e){return e=ca(e),e.tag=3,e}function qr(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var i=l.value;e.payload=function(){return n(i)},e.callback=function(){Rr(t,a,l)}}var u=a.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){Rr(t,a,l),typeof n!="function"&&(ma===null?ma=new Set([this]):ma.add(this));var c=l.stack;this.componentDidCatch(l.value,{componentStack:c!==null?c:""})})}function mm(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&fl(t,a,n,!0),a=dt.current,a!==null){switch(a.tag){case 31:case 13:return Et===null?Mi():a.alternate===null&&_e===0&&(_e=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===ni?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Lc(e,l,n)),!1;case 22:return a.flags|=65536,l===ni?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Lc(e,l,n)),!1}throw Error(o(435,a.tag))}return Lc(e,l,n),Mi(),!1}if(de)return t=dt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==Bu&&(e=Error(o(422),{cause:l}),Jl(xt(e,a)))):(l!==Bu&&(t=Error(o(423),{cause:l}),Jl(xt(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=xt(l,a),n=yc(e.stateNode,l,n),$u(e,n),_e!==4&&(_e=2)),!1;var i=Error(o(520),{cause:l});if(i=xt(i,a),mn===null?mn=[i]:mn.push(i),_e!==4&&(_e=2),t===null)return!0;l=xt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=yc(a.stateNode,l,e),$u(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(ma===null||!ma.has(i))))return a.flags|=65536,n&=-n,a.lanes|=n,n=Br(n),qr(n,e,a,l),$u(a,n),!1}a=a.return}while(a!==null);return!1}var xc=Error(o(461)),Be=!1;function Ke(e,t,a,l){t.child=e===null?Qo(t,null,a,l):Xa(t,e.child,a,l)}function Yr(e,t,a,l,n){a=a.render;var i=t.ref;if("ref"in l){var u={};for(var c in l)c!=="ref"&&(u[c]=l[c])}else u=l;return Ba(t),l=tc(e,t,a,u,i,n),c=ac(),e!==null&&!Be?(lc(e,t,n),Lt(e,t,n)):(de&&c&&Hu(t),t.flags|=1,Ke(e,t,l,n),t.child)}function Gr(e,t,a,l,n){if(e===null){var i=a.type;return typeof i=="function"&&!Uu(i)&&i.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=i,Xr(e,t,i,l,n)):(e=In(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Ac(e,n)){var u=i.memoizedProps;if(a=a.compare,a=a!==null?a:Zl,a(u,l)&&e.ref===t.ref)return Lt(e,t,n)}return t.flags|=1,e=Bt(i,l),e.ref=t.ref,e.return=t,t.child=e}function Xr(e,t,a,l,n){if(e!==null){var i=e.memoizedProps;if(Zl(i,l)&&e.ref===t.ref)if(Be=!1,t.pendingProps=l=i,Ac(e,n))(e.flags&131072)!==0&&(Be=!0);else return t.lanes=e.lanes,Lt(e,t,n)}return Sc(e,t,a,l,n)}function Qr(e,t,a,l){var n=l.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~i}else l=0,t.child=null;return Lr(e,t,i,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ai(t,i!==null?i.cachePool:null),i!==null?Vo(t,i):Fu(),Ko(t);else return l=t.lanes=536870912,Lr(e,t,i!==null?i.baseLanes|a:a,a,l)}else i!==null?(ai(t,i.cachePool),Vo(t,i),ra(),t.memoizedState=null):(e!==null&&ai(t,null),Fu(),ra());return Ke(e,t,n,a),t.child}function cn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Lr(e,t,a,l,n){var i=Zu();return i=i===null?null:{parent:He._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&ai(t,null),Fu(),Ko(t),e!==null&&fl(e,t,l,!0),t.childLanes=n,null}function bi(e,t){return t=xi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Zr(e,t,a){return Xa(t,e.child,null,a),e=bi(t,t.pendingProps),e.flags|=2,ht(t),t.memoizedState=null,e}function pm(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(de){if(l.mode==="hidden")return e=bi(t,l),t.lanes=536870912,cn(null,e);if(Pu(t),(e=we)?(e=nd(e,wt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:aa!==null?{id:Ot,overflow:Dt}:null,retryLane:536870912,hydrationErrors:null},a=Ao(e),a.return=t,t.child=a,Ze=t,we=null)):e=null,e===null)throw na(t);return t.lanes=536870912,null}return bi(t,l)}var i=e.memoizedState;if(i!==null){var u=i.dehydrated;if(Pu(t),n)if(t.flags&256)t.flags&=-257,t=Zr(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Be||fl(e,t,a,!1),n=(a&e.childLanes)!==0,Be||n){if(l=Se,l!==null&&(u=Cs(l,a),u!==0&&u!==i.retryLane))throw i.retryLane=u,Ca(e,u),it(l,e,u),xc;Mi(),t=Zr(e,t,a)}else e=i.treeContext,we=jt(u.nextSibling),Ze=t,de=!0,la=null,wt=!1,e!==null&&Do(t,e),t=bi(t,l),t.flags|=4096;return t}return e=Bt(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function yi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Sc(e,t,a,l,n){return Ba(t),a=tc(e,t,a,l,void 0,n),l=ac(),e!==null&&!Be?(lc(e,t,n),Lt(e,t,n)):(de&&l&&Hu(t),t.flags|=1,Ke(e,t,a,n),t.child)}function Vr(e,t,a,l,n,i){return Ba(t),t.updateQueue=null,a=$o(t,l,a,n),Jo(e),l=ac(),e!==null&&!Be?(lc(e,t,i),Lt(e,t,i)):(de&&l&&Hu(t),t.flags|=1,Ke(e,t,a,i),t.child)}function Kr(e,t,a,l,n){if(Ba(t),t.stateNode===null){var i=cl,u=a.contextType;typeof u=="object"&&u!==null&&(i=Ve(u)),i=new a(l,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=bc,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},Ku(t),u=a.contextType,i.context=typeof u=="object"&&u!==null?Ve(u):cl,i.state=t.memoizedState,u=a.getDerivedStateFromProps,typeof u=="function"&&(vc(t,a,u,l),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(u=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&bc.enqueueReplaceState(i,i.state,null),tn(t,l,i,n),en(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){i=t.stateNode;var c=t.memoizedProps,d=La(a,c);i.props=d;var x=i.context,A=a.contextType;u=cl,typeof A=="object"&&A!==null&&(u=Ve(A));var U=a.getDerivedStateFromProps;A=typeof U=="function"||typeof i.getSnapshotBeforeUpdate=="function",c=t.pendingProps!==c,A||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c||x!==u)&&Ur(t,i,l,u),ua=!1;var w=t.memoizedState;i.state=w,tn(t,l,i,n),en(),x=t.memoizedState,c||w!==x||ua?(typeof U=="function"&&(vc(t,a,U,l),x=t.memoizedState),(d=ua||_r(t,a,d,l,w,x,u))?(A||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=x),i.props=l,i.state=x,i.context=u,l=d):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{i=t.stateNode,Ju(e,t),u=t.memoizedProps,A=La(a,u),i.props=A,U=t.pendingProps,w=i.context,x=a.contextType,d=cl,typeof x=="object"&&x!==null&&(d=Ve(x)),c=a.getDerivedStateFromProps,(x=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==U||w!==d)&&Ur(t,i,l,d),ua=!1,w=t.memoizedState,i.state=w,tn(t,l,i,n),en();var T=t.memoizedState;u!==U||w!==T||ua||e!==null&&e.dependencies!==null&&ei(e.dependencies)?(typeof c=="function"&&(vc(t,a,c,l),T=t.memoizedState),(A=ua||_r(t,a,A,l,w,T,d)||e!==null&&e.dependencies!==null&&ei(e.dependencies))?(x||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,T,d),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,T,d)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=T),i.props=l,i.state=T,i.context=d,l=A):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),l=!1)}return i=l,yi(e,t),l=(t.flags&128)!==0,i||l?(i=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&l?(t.child=Xa(t,e.child,null,n),t.child=Xa(t,null,a,n)):Ke(e,t,a,n),t.memoizedState=i.state,e=t.child):e=Lt(e,t,n),e}function Jr(e,t,a,l){return Ha(),t.flags|=256,Ke(e,t,a,l),t.child}var zc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wc(e){return{baseLanes:e,cachePool:Ro()}}function Ec(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=pt),e}function $r(e,t,a){var l=t.pendingProps,n=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(Ue.current&2)!==0),u&&(n=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(de){if(n?oa(t):ra(),(e=we)?(e=nd(e,wt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:aa!==null?{id:Ot,overflow:Dt}:null,retryLane:536870912,hydrationErrors:null},a=Ao(e),a.return=t,t.child=a,Ze=t,we=null)):e=null,e===null)throw na(t);return us(e)?t.lanes=32:t.lanes=536870912,null}var c=l.children;return l=l.fallback,n?(ra(),n=t.mode,c=xi({mode:"hidden",children:c},n),l=ka(l,n,a,null),c.return=t,l.return=t,c.sibling=l,t.child=c,l=t.child,l.memoizedState=wc(a),l.childLanes=Ec(e,u,a),t.memoizedState=zc,cn(null,l)):(oa(t),jc(t,c))}var d=e.memoizedState;if(d!==null&&(c=d.dehydrated,c!==null)){if(i)t.flags&256?(oa(t),t.flags&=-257,t=Tc(e,t,a)):t.memoizedState!==null?(ra(),t.child=e.child,t.flags|=128,t=null):(ra(),c=l.fallback,n=t.mode,l=xi({mode:"visible",children:l.children},n),c=ka(c,n,a,null),c.flags|=2,l.return=t,c.return=t,l.sibling=c,t.child=l,Xa(t,e.child,null,a),l=t.child,l.memoizedState=wc(a),l.childLanes=Ec(e,u,a),t.memoizedState=zc,t=cn(null,l));else if(oa(t),us(c)){if(u=c.nextSibling&&c.nextSibling.dataset,u)var x=u.dgst;u=x,l=Error(o(419)),l.stack="",l.digest=u,Jl({value:l,source:null,stack:null}),t=Tc(e,t,a)}else if(Be||fl(e,t,a,!1),u=(a&e.childLanes)!==0,Be||u){if(u=Se,u!==null&&(l=Cs(u,a),l!==0&&l!==d.retryLane))throw d.retryLane=l,Ca(e,l),it(u,e,l),xc;is(c)||Mi(),t=Tc(e,t,a)}else is(c)?(t.flags|=192,t.child=e.child,t=null):(e=d.treeContext,we=jt(c.nextSibling),Ze=t,de=!0,la=null,wt=!1,e!==null&&Do(t,e),t=jc(t,l.children),t.flags|=4096);return t}return n?(ra(),c=l.fallback,n=t.mode,d=e.child,x=d.sibling,l=Bt(d,{mode:"hidden",children:l.children}),l.subtreeFlags=d.subtreeFlags&65011712,x!==null?c=Bt(x,c):(c=ka(c,n,a,null),c.flags|=2),c.return=t,l.return=t,l.sibling=c,t.child=l,cn(null,l),l=t.child,c=e.child.memoizedState,c===null?c=wc(a):(n=c.cachePool,n!==null?(d=He._currentValue,n=n.parent!==d?{parent:d,pool:d}:n):n=Ro(),c={baseLanes:c.baseLanes|a,cachePool:n}),l.memoizedState=c,l.childLanes=Ec(e,u,a),t.memoizedState=zc,cn(e.child,l)):(oa(t),a=e.child,e=a.sibling,a=Bt(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=a,t.memoizedState=null,a)}function jc(e,t){return t=xi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function xi(e,t){return e=ft(22,e,null,t),e.lanes=0,e}function Tc(e,t,a){return Xa(t,e.child,null,a),e=jc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Wr(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Gu(e.return,t,a)}function Nc(e,t,a,l,n,i){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:i}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=l,u.tail=a,u.tailMode=n,u.treeForkCount=i)}function Fr(e,t,a){var l=t.pendingProps,n=l.revealOrder,i=l.tail;l=l.children;var u=Ue.current,c=(u&2)!==0;if(c?(u=u&1|2,t.flags|=128):u&=1,k(Ue,u),Ke(e,t,l,a),l=de?Kl:0,!c&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wr(e,a,t);else if(e.tag===19)Wr(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&si(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),Nc(t,!1,n,a,i,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&si(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}Nc(t,!0,a,null,i,l);break;case"together":Nc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Lt(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ha|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(fl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=Bt(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Bt(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ac(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ei(e)))}function gm(e,t,a){switch(t.tag){case 3:Oe(t,t.stateNode.containerInfo),ia(t,He,e.memoizedState.cache),Ha();break;case 27:case 5:Ct(t);break;case 4:Oe(t,t.stateNode.containerInfo);break;case 10:ia(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Pu(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(oa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?$r(e,t,a):(oa(t),e=Lt(e,t,a),e!==null?e.sibling:null);oa(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(fl(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return Fr(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),k(Ue,Ue.current),l)break;return null;case 22:return t.lanes=0,Qr(e,t,a,t.pendingProps);case 24:ia(t,He,e.memoizedState.cache)}return Lt(e,t,a)}function Ir(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Be=!0;else{if(!Ac(e,a)&&(t.flags&128)===0)return Be=!1,gm(e,t,a);Be=(e.flags&131072)!==0}else Be=!1,de&&(t.flags&1048576)!==0&&Oo(t,Kl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Ya(t.elementType),t.type=e,typeof e=="function")Uu(e)?(l=La(e,l),t.tag=1,t=Kr(null,t,e,l,a)):(t.tag=0,t=Sc(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===ee){t.tag=11,t=Yr(null,t,e,l,a);break e}else if(n===F){t.tag=14,t=Gr(null,t,e,l,a);break e}}throw t=We(e)||e,Error(o(306,t,""))}}return t;case 0:return Sc(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=La(l,t.pendingProps),Kr(e,t,l,n,a);case 3:e:{if(Oe(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var i=t.memoizedState;n=i.element,Ju(e,t),tn(t,l,null,a);var u=t.memoizedState;if(l=u.cache,ia(t,He,l),l!==i.cache&&Xu(t,[He],a,!0),en(),l=u.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Jr(e,t,l,a);break e}else if(l!==n){n=xt(Error(o(424)),t),Jl(n),t=Jr(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(we=jt(e.firstChild),Ze=t,de=!0,la=null,wt=!0,a=Qo(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ha(),l===n){t=Lt(e,t,a);break e}Ke(e,t,l,a)}t=t.child}return t;case 26:return yi(e,t),e===null?(a=rd(t.type,null,t.pendingProps,null))?t.memoizedState=a:de||(a=t.type,e=t.pendingProps,l=Hi(W.current).createElement(a),l[Le]=t,l[Pe]=e,Je(l,a,e),Xe(l),t.stateNode=l):t.memoizedState=rd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ct(t),e===null&&de&&(l=t.stateNode=cd(t.type,t.pendingProps,W.current),Ze=t,wt=!0,n=we,ba(t.type)?(cs=n,we=jt(l.firstChild)):we=n),Ke(e,t,t.pendingProps.children,a),yi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&de&&((n=l=we)&&(l=Vm(l,t.type,t.pendingProps,wt),l!==null?(t.stateNode=l,Ze=t,we=jt(l.firstChild),wt=!1,n=!0):n=!1),n||na(t)),Ct(t),n=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,l=i.children,as(n,i)?l=null:u!==null&&as(n,u)&&(t.flags|=32),t.memoizedState!==null&&(n=tc(e,t,cm,null,null,a),zn._currentValue=n),yi(e,t),Ke(e,t,l,a),t.child;case 6:return e===null&&de&&((e=a=we)&&(a=Km(a,t.pendingProps,wt),a!==null?(t.stateNode=a,Ze=t,we=null,e=!0):e=!1),e||na(t)),null;case 13:return $r(e,t,a);case 4:return Oe(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Xa(t,null,l,a):Ke(e,t,l,a),t.child;case 11:return Yr(e,t,t.type,t.pendingProps,a);case 7:return Ke(e,t,t.pendingProps,a),t.child;case 8:return Ke(e,t,t.pendingProps.children,a),t.child;case 12:return Ke(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,ia(t,t.type,l.value),Ke(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,Ba(t),n=Ve(n),l=l(n),t.flags|=1,Ke(e,t,l,a),t.child;case 14:return Gr(e,t,t.type,t.pendingProps,a);case 15:return Xr(e,t,t.type,t.pendingProps,a);case 19:return Fr(e,t,a);case 31:return pm(e,t,a);case 22:return Qr(e,t,a,t.pendingProps);case 24:return Ba(t),l=Ve(He),e===null?(n=Zu(),n===null&&(n=Se,i=Qu(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=a),n=i),t.memoizedState={parent:l,cache:n},Ku(t),ia(t,He,n)):((e.lanes&a)!==0&&(Ju(e,t),tn(t,null,null,a),en()),n=e.memoizedState,i=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),ia(t,He,l)):(l=i.cache,ia(t,He,l),l!==n.cache&&Xu(t,[He],a,!0))),Ke(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Zt(e){e.flags|=4}function Mc(e,t,a,l,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Tf())e.flags|=8192;else throw Ga=ni,Vu}else e.flags&=-16777217}function Pr(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!pd(t))if(Tf())e.flags|=8192;else throw Ga=ni,Vu}function Si(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ds():536870912,e.lanes|=t,wl|=t)}function sn(e,t){if(!de)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ee(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function vm(e,t,a){var l=t.pendingProps;switch(Ru(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ee(t),null;case 1:return Ee(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Gt(He),je(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(rl(t)?Zt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qu())),Ee(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(Zt(t),i!==null?(Ee(t),Pr(t,i)):(Ee(t),Mc(t,n,null,l,a))):i?i!==e.memoizedState?(Zt(t),Ee(t),Pr(t,i)):(Ee(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Zt(t),Ee(t),Mc(t,n,e,l,a)),null;case 27:if(_n(t),a=W.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Zt(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Ee(t),null}e=M.current,rl(t)?_o(t):(e=cd(n,l,a),t.stateNode=e,Zt(t))}return Ee(t),null;case 5:if(_n(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Zt(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Ee(t),null}if(i=M.current,rl(t))_o(t);else{var u=Hi(W.current);switch(i){case 1:i=u.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=u.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=u.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?u.createElement("select",{is:l.is}):u.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?u.createElement(n,{is:l.is}):u.createElement(n)}}i[Le]=t,i[Pe]=l;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=i;e:switch(Je(i,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Zt(t)}}return Ee(t),Mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Zt(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=W.current,rl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=Ze,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[Le]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Wf(e.nodeValue,a)),e||na(t,!0)}else e=Hi(e).createTextNode(l),e[Le]=t,t.stateNode=e}return Ee(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=rl(t),a!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Le]=t}else Ha(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ee(t),e=!1}else a=qu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(ht(t),t):(ht(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ee(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=rl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Le]=t}else Ha(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ee(t),n=!1}else n=qu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(ht(t),t):(ht(t),null)}return ht(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Si(t,t.updateQueue),Ee(t),null);case 4:return je(),e===null&&Fc(t.stateNode.containerInfo),Ee(t),null;case 10:return Gt(t.type),Ee(t),null;case 19:if(S(Ue),l=t.memoizedState,l===null)return Ee(t),null;if(n=(t.flags&128)!==0,i=l.rendering,i===null)if(n)sn(l,!1);else{if(_e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=si(e),i!==null){for(t.flags|=128,sn(l,!1),e=i.updateQueue,t.updateQueue=e,Si(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)No(a,e),a=a.sibling;return k(Ue,Ue.current&1|2),de&&qt(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ct()>Ti&&(t.flags|=128,n=!0,sn(l,!1),t.lanes=4194304)}else{if(!n)if(e=si(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Si(t,e),sn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!de)return Ee(t),null}else 2*ct()-l.renderingStartTime>Ti&&a!==536870912&&(t.flags|=128,n=!0,sn(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ct(),e.sibling=null,a=Ue.current,k(Ue,n?a&1|2:a&1),de&&qt(t,l.treeForkCount),e):(Ee(t),null);case 22:case 23:return ht(t),Iu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Ee(t),t.subtreeFlags&6&&(t.flags|=8192)):Ee(t),a=t.updateQueue,a!==null&&Si(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&S(qa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Gt(He),Ee(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function bm(e,t){switch(Ru(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gt(He),je(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _n(t),null;case 31:if(t.memoizedState!==null){if(ht(t),t.alternate===null)throw Error(o(340));Ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ht(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return S(Ue),null;case 4:return je(),null;case 10:return Gt(t.type),null;case 22:case 23:return ht(t),Iu(),e!==null&&S(qa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Gt(He),null;case 25:return null;default:return null}}function ef(e,t){switch(Ru(t),t.tag){case 3:Gt(He),je();break;case 26:case 27:case 5:_n(t);break;case 4:je();break;case 31:t.memoizedState!==null&&ht(t);break;case 13:ht(t);break;case 19:S(Ue);break;case 10:Gt(t.type);break;case 22:case 23:ht(t),Iu(),e!==null&&S(qa);break;case 24:Gt(He)}}function on(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var i=a.create,u=a.inst;l=i(),u.destroy=l}a=a.next}while(a!==n)}}catch(c){ve(t,t.return,c)}}function fa(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var i=n.next;l=i;do{if((l.tag&e)===e){var u=l.inst,c=u.destroy;if(c!==void 0){u.destroy=void 0,n=t;var d=a,x=c;try{x()}catch(A){ve(n,d,A)}}}l=l.next}while(l!==i)}}catch(A){ve(t,t.return,A)}}function tf(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Zo(t,a)}catch(l){ve(e,e.return,l)}}}function af(e,t,a){a.props=La(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){ve(e,t,l)}}function rn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){ve(e,t,n)}}function _t(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){ve(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){ve(e,t,n)}else a.current=null}function lf(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){ve(e,e.return,n)}}function Oc(e,t,a){try{var l=e.stateNode;Ym(l,e.type,a,t),l[Pe]=t}catch(n){ve(e,e.return,n)}}function nf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ba(e.type)||e.tag===4}function Dc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ba(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _c(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Ht));else if(l!==4&&(l===27&&ba(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(_c(e,t,a),e=e.sibling;e!==null;)_c(e,t,a),e=e.sibling}function zi(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&ba(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(zi(e,t,a),e=e.sibling;e!==null;)zi(e,t,a),e=e.sibling}function uf(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Je(t,l,a),t[Le]=e,t[Pe]=a}catch(i){ve(e,e.return,i)}}var Vt=!1,qe=!1,Uc=!1,cf=typeof WeakSet=="function"?WeakSet:Set,Qe=null;function ym(e,t){if(e=e.containerInfo,es=Qi,e=bo(e),Tu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var u=0,c=-1,d=-1,x=0,A=0,U=e,w=null;t:for(;;){for(var T;U!==a||n!==0&&U.nodeType!==3||(c=u+n),U!==i||l!==0&&U.nodeType!==3||(d=u+l),U.nodeType===3&&(u+=U.nodeValue.length),(T=U.firstChild)!==null;)w=U,U=T;for(;;){if(U===e)break t;if(w===a&&++x===n&&(c=u),w===i&&++A===l&&(d=u),(T=U.nextSibling)!==null)break;U=w,w=U.parentNode}U=T}a=c===-1||d===-1?null:{start:c,end:d}}else a=null}a=a||{start:0,end:0}}else a=null;for(ts={focusedElem:e,selectionRange:a},Qi=!1,Qe=t;Qe!==null;)if(t=Qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Qe=e;else for(;Qe!==null;){switch(t=Qe,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,a=t,n=i.memoizedProps,i=i.memoizedState,l=a.stateNode;try{var Q=La(a.type,n);e=l.getSnapshotBeforeUpdate(Q,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(J){ve(a,a.return,J)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)ns(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ns(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Qe=e;break}Qe=t.return}}function sf(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Jt(e,a),l&4&&on(5,a);break;case 1:if(Jt(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(u){ve(a,a.return,u)}else{var n=La(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(u){ve(a,a.return,u)}}l&64&&tf(a),l&512&&rn(a,a.return);break;case 3:if(Jt(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Zo(e,t)}catch(u){ve(a,a.return,u)}}break;case 27:t===null&&l&4&&uf(a);case 26:case 5:Jt(e,a),t===null&&l&4&&lf(a),l&512&&rn(a,a.return);break;case 12:Jt(e,a);break;case 31:Jt(e,a),l&4&&ff(e,a);break;case 13:Jt(e,a),l&4&&df(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Am.bind(null,a),Jm(e,a))));break;case 22:if(l=a.memoizedState!==null||Vt,!l){t=t!==null&&t.memoizedState!==null||qe,n=Vt;var i=qe;Vt=l,(qe=t)&&!i?$t(e,a,(a.subtreeFlags&8772)!==0):Jt(e,a),Vt=n,qe=i}break;case 30:break;default:Jt(e,a)}}function of(e){var t=e.alternate;t!==null&&(e.alternate=null,of(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ou(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Te=null,tt=!1;function Kt(e,t,a){for(a=a.child;a!==null;)rf(e,t,a),a=a.sibling}function rf(e,t,a){if(st&&typeof st.onCommitFiberUnmount=="function")try{st.onCommitFiberUnmount(Ul,a)}catch{}switch(a.tag){case 26:qe||_t(a,t),Kt(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:qe||_t(a,t);var l=Te,n=tt;ba(a.type)&&(Te=a.stateNode,tt=!1),Kt(e,t,a),yn(a.stateNode),Te=l,tt=n;break;case 5:qe||_t(a,t);case 6:if(l=Te,n=tt,Te=null,Kt(e,t,a),Te=l,tt=n,Te!==null)if(tt)try{(Te.nodeType===9?Te.body:Te.nodeName==="HTML"?Te.ownerDocument.body:Te).removeChild(a.stateNode)}catch(i){ve(a,t,i)}else try{Te.removeChild(a.stateNode)}catch(i){ve(a,t,i)}break;case 18:Te!==null&&(tt?(e=Te,ad(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Dl(e)):ad(Te,a.stateNode));break;case 4:l=Te,n=tt,Te=a.stateNode.containerInfo,tt=!0,Kt(e,t,a),Te=l,tt=n;break;case 0:case 11:case 14:case 15:fa(2,a,t),qe||fa(4,a,t),Kt(e,t,a);break;case 1:qe||(_t(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&af(a,t,l)),Kt(e,t,a);break;case 21:Kt(e,t,a);break;case 22:qe=(l=qe)||a.memoizedState!==null,Kt(e,t,a),qe=l;break;default:Kt(e,t,a)}}function ff(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Dl(e)}catch(a){ve(t,t.return,a)}}}function df(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Dl(e)}catch(a){ve(t,t.return,a)}}function xm(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cf),t;default:throw Error(o(435,e.tag))}}function wi(e,t){var a=xm(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=Mm.bind(null,e,l);l.then(n,n)}})}function at(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],i=e,u=t,c=u;e:for(;c!==null;){switch(c.tag){case 27:if(ba(c.type)){Te=c.stateNode,tt=!1;break e}break;case 5:Te=c.stateNode,tt=!1;break e;case 3:case 4:Te=c.stateNode.containerInfo,tt=!0;break e}c=c.return}if(Te===null)throw Error(o(160));rf(i,u,n),Te=null,tt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)hf(t,e),t=t.sibling}var At=null;function hf(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:at(t,e),lt(e),l&4&&(fa(3,e,e.return),on(3,e),fa(5,e,e.return));break;case 1:at(t,e),lt(e),l&512&&(qe||a===null||_t(a,a.return)),l&64&&Vt&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=At;if(at(t,e),lt(e),l&512&&(qe||a===null||_t(a,a.return)),l&4){var i=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Hl]||i[Le]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(l),n.head.insertBefore(i,n.querySelector("head > title"))),Je(i,l,a),i[Le]=e,Xe(i),l=i;break e;case"link":var u=hd("link","href",n).get(l+(a.href||""));if(u){for(var c=0;c<u.length;c++)if(i=u[c],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){u.splice(c,1);break t}}i=n.createElement(l),Je(i,l,a),n.head.appendChild(i);break;case"meta":if(u=hd("meta","content",n).get(l+(a.content||""))){for(c=0;c<u.length;c++)if(i=u[c],i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){u.splice(c,1);break t}}i=n.createElement(l),Je(i,l,a),n.head.appendChild(i);break;default:throw Error(o(468,l))}i[Le]=e,Xe(i),l=i}e.stateNode=l}else md(n,e.type,e.stateNode);else e.stateNode=dd(n,l,e.memoizedProps);else i!==l?(i===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):i.count--,l===null?md(n,e.type,e.stateNode):dd(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Oc(e,e.memoizedProps,a.memoizedProps)}break;case 27:at(t,e),lt(e),l&512&&(qe||a===null||_t(a,a.return)),a!==null&&l&4&&Oc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(at(t,e),lt(e),l&512&&(qe||a===null||_t(a,a.return)),e.flags&32){n=e.stateNode;try{el(n,"")}catch(Q){ve(e,e.return,Q)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,Oc(e,n,a!==null?a.memoizedProps:n)),l&1024&&(Uc=!0);break;case 6:if(at(t,e),lt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(Q){ve(e,e.return,Q)}}break;case 3:if(qi=null,n=At,At=Ri(t.containerInfo),at(t,e),At=n,lt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Dl(t.containerInfo)}catch(Q){ve(e,e.return,Q)}Uc&&(Uc=!1,mf(e));break;case 4:l=At,At=Ri(e.stateNode.containerInfo),at(t,e),lt(e),At=l;break;case 12:at(t,e),lt(e);break;case 31:at(t,e),lt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,wi(e,l)));break;case 13:at(t,e),lt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ji=ct()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,wi(e,l)));break;case 22:n=e.memoizedState!==null;var d=a!==null&&a.memoizedState!==null,x=Vt,A=qe;if(Vt=x||n,qe=A||d,at(t,e),qe=A,Vt=x,lt(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||d||Vt||qe||Za(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){d=a=t;try{if(i=d.stateNode,n)u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{c=d.stateNode;var U=d.memoizedProps.style,w=U!=null&&U.hasOwnProperty("display")?U.display:null;c.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(Q){ve(d,d.return,Q)}}}else if(t.tag===6){if(a===null){d=t;try{d.stateNode.nodeValue=n?"":d.memoizedProps}catch(Q){ve(d,d.return,Q)}}}else if(t.tag===18){if(a===null){d=t;try{var T=d.stateNode;n?ld(T,!0):ld(d.stateNode,!1)}catch(Q){ve(d,d.return,Q)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,wi(e,a))));break;case 19:at(t,e),lt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,wi(e,l)));break;case 30:break;case 21:break;default:at(t,e),lt(e)}}function lt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(nf(l)){a=l;break}l=l.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var n=a.stateNode,i=Dc(e);zi(e,i,n);break;case 5:var u=a.stateNode;a.flags&32&&(el(u,""),a.flags&=-33);var c=Dc(e);zi(e,c,u);break;case 3:case 4:var d=a.stateNode.containerInfo,x=Dc(e);_c(e,x,d);break;default:throw Error(o(161))}}catch(A){ve(e,e.return,A)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function mf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;mf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Jt(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sf(e,t.alternate,t),t=t.sibling}function Za(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:fa(4,t,t.return),Za(t);break;case 1:_t(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&af(t,t.return,a),Za(t);break;case 27:yn(t.stateNode);case 26:case 5:_t(t,t.return),Za(t);break;case 22:t.memoizedState===null&&Za(t);break;case 30:Za(t);break;default:Za(t)}e=e.sibling}}function $t(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,i=t,u=i.flags;switch(i.tag){case 0:case 11:case 15:$t(n,i,a),on(4,i);break;case 1:if($t(n,i,a),l=i,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(x){ve(l,l.return,x)}if(l=i,n=l.updateQueue,n!==null){var c=l.stateNode;try{var d=n.shared.hiddenCallbacks;if(d!==null)for(n.shared.hiddenCallbacks=null,n=0;n<d.length;n++)Lo(d[n],c)}catch(x){ve(l,l.return,x)}}a&&u&64&&tf(i),rn(i,i.return);break;case 27:uf(i);case 26:case 5:$t(n,i,a),a&&l===null&&u&4&&lf(i),rn(i,i.return);break;case 12:$t(n,i,a);break;case 31:$t(n,i,a),a&&u&4&&ff(n,i);break;case 13:$t(n,i,a),a&&u&4&&df(n,i);break;case 22:i.memoizedState===null&&$t(n,i,a),rn(i,i.return);break;case 30:break;default:$t(n,i,a)}t=t.sibling}}function Cc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&$l(a))}function kc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$l(e))}function Mt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)pf(e,t,a,l),t=t.sibling}function pf(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Mt(e,t,a,l),n&2048&&on(9,t);break;case 1:Mt(e,t,a,l);break;case 3:Mt(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$l(e)));break;case 12:if(n&2048){Mt(e,t,a,l),e=t.stateNode;try{var i=t.memoizedProps,u=i.id,c=i.onPostCommit;typeof c=="function"&&c(u,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(d){ve(t,t.return,d)}}else Mt(e,t,a,l);break;case 31:Mt(e,t,a,l);break;case 13:Mt(e,t,a,l);break;case 23:break;case 22:i=t.stateNode,u=t.alternate,t.memoizedState!==null?i._visibility&2?Mt(e,t,a,l):fn(e,t):i._visibility&2?Mt(e,t,a,l):(i._visibility|=2,xl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Cc(u,t);break;case 24:Mt(e,t,a,l),n&2048&&kc(t.alternate,t);break;default:Mt(e,t,a,l)}}function xl(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,u=t,c=a,d=l,x=u.flags;switch(u.tag){case 0:case 11:case 15:xl(i,u,c,d,n),on(8,u);break;case 23:break;case 22:var A=u.stateNode;u.memoizedState!==null?A._visibility&2?xl(i,u,c,d,n):fn(i,u):(A._visibility|=2,xl(i,u,c,d,n)),n&&x&2048&&Cc(u.alternate,u);break;case 24:xl(i,u,c,d,n),n&&x&2048&&kc(u.alternate,u);break;default:xl(i,u,c,d,n)}t=t.sibling}}function fn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:fn(a,l),n&2048&&Cc(l.alternate,l);break;case 24:fn(a,l),n&2048&&kc(l.alternate,l);break;default:fn(a,l)}t=t.sibling}}var dn=8192;function Sl(e,t,a){if(e.subtreeFlags&dn)for(e=e.child;e!==null;)gf(e,t,a),e=e.sibling}function gf(e,t,a){switch(e.tag){case 26:Sl(e,t,a),e.flags&dn&&e.memoizedState!==null&&up(a,At,e.memoizedState,e.memoizedProps);break;case 5:Sl(e,t,a);break;case 3:case 4:var l=At;At=Ri(e.stateNode.containerInfo),Sl(e,t,a),At=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=dn,dn=16777216,Sl(e,t,a),dn=l):Sl(e,t,a));break;default:Sl(e,t,a)}}function vf(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function hn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Qe=l,yf(l,e)}vf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)bf(e),e=e.sibling}function bf(e){switch(e.tag){case 0:case 11:case 15:hn(e),e.flags&2048&&fa(9,e,e.return);break;case 3:hn(e);break;case 12:hn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ei(e)):hn(e);break;default:hn(e)}}function Ei(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Qe=l,yf(l,e)}vf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:fa(8,t,t.return),Ei(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ei(t));break;default:Ei(t)}e=e.sibling}}function yf(e,t){for(;Qe!==null;){var a=Qe;switch(a.tag){case 0:case 11:case 15:fa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:$l(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Qe=l;else e:for(a=e;Qe!==null;){l=Qe;var n=l.sibling,i=l.return;if(of(l),l===a){Qe=null;break e}if(n!==null){n.return=i,Qe=n;break e}Qe=i}}}var Sm={getCacheForType:function(e){var t=Ve(He),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ve(He).controller.signal}},zm=typeof WeakMap=="function"?WeakMap:Map,pe=0,Se=null,ue=null,re=0,ge=0,mt=null,da=!1,zl=!1,Hc=!1,Wt=0,_e=0,ha=0,Va=0,Rc=0,pt=0,wl=0,mn=null,nt=null,Bc=!1,ji=0,xf=0,Ti=1/0,Ni=null,ma=null,Ge=0,pa=null,El=null,Ft=0,qc=0,Yc=null,Sf=null,pn=0,Gc=null;function gt(){return(pe&2)!==0&&re!==0?re&-re:E.T!==null?Kc():ks()}function zf(){if(pt===0)if((re&536870912)===0||de){var e=kn;kn<<=1,(kn&3932160)===0&&(kn=262144),pt=e}else pt=536870912;return e=dt.current,e!==null&&(e.flags|=32),pt}function it(e,t,a){(e===Se&&(ge===2||ge===9)||e.cancelPendingCommit!==null)&&(jl(e,0),ga(e,re,pt,!1)),kl(e,a),((pe&2)===0||e!==Se)&&(e===Se&&((pe&2)===0&&(Va|=a),_e===4&&ga(e,re,pt,!1)),Ut(e))}function wf(e,t,a){if((pe&6)!==0)throw Error(o(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Cl(e,t),n=l?jm(e,t):Qc(e,t,!0),i=l;do{if(n===0){zl&&!l&&ga(e,t,0,!1);break}else{if(a=e.current.alternate,i&&!wm(a)){n=Qc(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var u=0;else u=e.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){t=u;e:{var c=e;n=mn;var d=c.current.memoizedState.isDehydrated;if(d&&(jl(c,u).flags|=256),u=Qc(c,u,!1),u!==2){if(Hc&&!d){c.errorRecoveryDisabledLanes|=i,Va|=i,n=4;break e}i=nt,nt=n,i!==null&&(nt===null?nt=i:nt.push.apply(nt,i))}n=u}if(i=!1,n!==2)continue}}if(n===1){jl(e,0),ga(e,t,0,!0);break}e:{switch(l=e,i=n,i){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:ga(l,t,pt,!da);break e;case 2:nt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=ji+300-ct(),10<n)){if(ga(l,t,pt,!da),Rn(l,0,!0)!==0)break e;Ft=t,l.timeoutHandle=ed(Ef.bind(null,l,a,nt,Ni,Bc,t,pt,Va,wl,da,i,"Throttled",-0,0),n);break e}Ef(l,a,nt,Ni,Bc,t,pt,Va,wl,da,i,null,-0,0)}}break}while(!0);Ut(e)}function Ef(e,t,a,l,n,i,u,c,d,x,A,U,w,T){if(e.timeoutHandle=-1,U=t.subtreeFlags,U&8192||(U&16785408)===16785408){U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ht},gf(t,i,U);var Q=(i&62914560)===i?ji-ct():(i&4194048)===i?xf-ct():0;if(Q=cp(U,Q),Q!==null){Ft=i,e.cancelPendingCommit=Q(_f.bind(null,e,t,i,a,l,n,u,c,d,A,U,null,w,T)),ga(e,i,u,!x);return}}_f(e,t,i,a,l,n,u,c,d)}function wm(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var n=a[l],i=n.getSnapshot;n=n.value;try{if(!rt(i(),n))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ga(e,t,a,l){t&=~Rc,t&=~Va,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var i=31-ot(n),u=1<<i;l[i]=-1,n&=~u}a!==0&&_s(e,a,t)}function Ai(){return(pe&6)===0?(gn(0),!1):!0}function Xc(){if(ue!==null){if(ge===0)var e=ue.return;else e=ue,Yt=Ra=null,nc(e),pl=null,Fl=0,e=ue;for(;e!==null;)ef(e.alternate,e),e=e.return;ue=null}}function jl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Qm(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ft=0,Xc(),Se=e,ue=a=Bt(e.current,null),re=t,ge=0,mt=null,da=!1,zl=Cl(e,t),Hc=!1,wl=pt=Rc=Va=ha=_e=0,nt=mn=null,Bc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-ot(l),i=1<<n;t|=e[n],l&=~i}return Wt=t,$n(),a}function jf(e,t){le=null,E.H=un,t===ml||t===li?(t=Yo(),ge=3):t===Vu?(t=Yo(),ge=4):ge=t===xc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,mt=t,ue===null&&(_e=1,vi(e,xt(t,e.current)))}function Tf(){var e=dt.current;return e===null?!0:(re&4194048)===re?Et===null:(re&62914560)===re||(re&536870912)!==0?e===Et:!1}function Nf(){var e=E.H;return E.H=un,e===null?un:e}function Af(){var e=E.A;return E.A=Sm,e}function Mi(){_e=4,da||(re&4194048)!==re&&dt.current!==null||(zl=!0),(ha&134217727)===0&&(Va&134217727)===0||Se===null||ga(Se,re,pt,!1)}function Qc(e,t,a){var l=pe;pe|=2;var n=Nf(),i=Af();(Se!==e||re!==t)&&(Ni=null,jl(e,t)),t=!1;var u=_e;e:do try{if(ge!==0&&ue!==null){var c=ue,d=mt;switch(ge){case 8:Xc(),u=6;break e;case 3:case 2:case 9:case 6:dt.current===null&&(t=!0);var x=ge;if(ge=0,mt=null,Tl(e,c,d,x),a&&zl){u=0;break e}break;default:x=ge,ge=0,mt=null,Tl(e,c,d,x)}}Em(),u=_e;break}catch(A){jf(e,A)}while(!0);return t&&e.shellSuspendCounter++,Yt=Ra=null,pe=l,E.H=n,E.A=i,ue===null&&(Se=null,re=0,$n()),u}function Em(){for(;ue!==null;)Mf(ue)}function jm(e,t){var a=pe;pe|=2;var l=Nf(),n=Af();Se!==e||re!==t?(Ni=null,Ti=ct()+500,jl(e,t)):zl=Cl(e,t);e:do try{if(ge!==0&&ue!==null){t=ue;var i=mt;t:switch(ge){case 1:ge=0,mt=null,Tl(e,t,i,1);break;case 2:case 9:if(Bo(i)){ge=0,mt=null,Of(t);break}t=function(){ge!==2&&ge!==9||Se!==e||(ge=7),Ut(e)},i.then(t,t);break e;case 3:ge=7;break e;case 4:ge=5;break e;case 7:Bo(i)?(ge=0,mt=null,Of(t)):(ge=0,mt=null,Tl(e,t,i,7));break;case 5:var u=null;switch(ue.tag){case 26:u=ue.memoizedState;case 5:case 27:var c=ue;if(u?pd(u):c.stateNode.complete){ge=0,mt=null;var d=c.sibling;if(d!==null)ue=d;else{var x=c.return;x!==null?(ue=x,Oi(x)):ue=null}break t}}ge=0,mt=null,Tl(e,t,i,5);break;case 6:ge=0,mt=null,Tl(e,t,i,6);break;case 8:Xc(),_e=6;break e;default:throw Error(o(462))}}Tm();break}catch(A){jf(e,A)}while(!0);return Yt=Ra=null,E.H=l,E.A=n,pe=a,ue!==null?0:(Se=null,re=0,$n(),_e)}function Tm(){for(;ue!==null&&!$d();)Mf(ue)}function Mf(e){var t=Ir(e.alternate,e,Wt);e.memoizedProps=e.pendingProps,t===null?Oi(e):ue=t}function Of(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Vr(a,t,t.pendingProps,t.type,void 0,re);break;case 11:t=Vr(a,t,t.pendingProps,t.type.render,t.ref,re);break;case 5:nc(t);default:ef(a,t),t=ue=No(t,Wt),t=Ir(a,t,Wt)}e.memoizedProps=e.pendingProps,t===null?Oi(e):ue=t}function Tl(e,t,a,l){Yt=Ra=null,nc(t),pl=null,Fl=0;var n=t.return;try{if(mm(e,n,t,a,re)){_e=1,vi(e,xt(a,e.current)),ue=null;return}}catch(i){if(n!==null)throw ue=n,i;_e=1,vi(e,xt(a,e.current)),ue=null;return}t.flags&32768?(de||l===1?e=!0:zl||(re&536870912)!==0?e=!1:(da=e=!0,(l===2||l===9||l===3||l===6)&&(l=dt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Df(t,e)):Oi(t)}function Oi(e){var t=e;do{if((t.flags&32768)!==0){Df(t,da);return}e=t.return;var a=vm(t.alternate,t,Wt);if(a!==null){ue=a;return}if(t=t.sibling,t!==null){ue=t;return}ue=t=e}while(t!==null);_e===0&&(_e=5)}function Df(e,t){do{var a=bm(e.alternate,e);if(a!==null){a.flags&=32767,ue=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ue=e;return}ue=e=a}while(e!==null);_e=6,ue=null}function _f(e,t,a,l,n,i,u,c,d){e.cancelPendingCommit=null;do Di();while(Ge!==0);if((pe&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(i=t.lanes|t.childLanes,i|=Du,ih(e,a,i,u,c,d),e===Se&&(ue=Se=null,re=0),El=t,pa=e,Ft=a,qc=i,Yc=n,Sf=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Om(Un,function(){return Rf(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=E.T,E.T=null,n=B.p,B.p=2,u=pe,pe|=4;try{ym(e,t,a)}finally{pe=u,B.p=n,E.T=l}}Ge=1,Uf(),Cf(),kf()}}function Uf(){if(Ge===1){Ge=0;var e=pa,t=El,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=E.T,E.T=null;var l=B.p;B.p=2;var n=pe;pe|=4;try{hf(t,e);var i=ts,u=bo(e.containerInfo),c=i.focusedElem,d=i.selectionRange;if(u!==c&&c&&c.ownerDocument&&vo(c.ownerDocument.documentElement,c)){if(d!==null&&Tu(c)){var x=d.start,A=d.end;if(A===void 0&&(A=x),"selectionStart"in c)c.selectionStart=x,c.selectionEnd=Math.min(A,c.value.length);else{var U=c.ownerDocument||document,w=U&&U.defaultView||window;if(w.getSelection){var T=w.getSelection(),Q=c.textContent.length,J=Math.min(d.start,Q),xe=d.end===void 0?J:Math.min(d.end,Q);!T.extend&&J>xe&&(u=xe,xe=J,J=u);var p=go(c,J),h=go(c,xe);if(p&&h&&(T.rangeCount!==1||T.anchorNode!==p.node||T.anchorOffset!==p.offset||T.focusNode!==h.node||T.focusOffset!==h.offset)){var y=U.createRange();y.setStart(p.node,p.offset),T.removeAllRanges(),J>xe?(T.addRange(y),T.extend(h.node,h.offset)):(y.setEnd(h.node,h.offset),T.addRange(y))}}}}for(U=[],T=c;T=T.parentNode;)T.nodeType===1&&U.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<U.length;c++){var D=U[c];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}Qi=!!es,ts=es=null}finally{pe=n,B.p=l,E.T=a}}e.current=t,Ge=2}}function Cf(){if(Ge===2){Ge=0;var e=pa,t=El,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=E.T,E.T=null;var l=B.p;B.p=2;var n=pe;pe|=4;try{sf(e,t.alternate,t)}finally{pe=n,B.p=l,E.T=a}}Ge=3}}function kf(){if(Ge===4||Ge===3){Ge=0,Wd();var e=pa,t=El,a=Ft,l=Sf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ge=5:(Ge=0,El=pa=null,Hf(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(ma=null),cu(a),t=t.stateNode,st&&typeof st.onCommitFiberRoot=="function")try{st.onCommitFiberRoot(Ul,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=E.T,n=B.p,B.p=2,E.T=null;try{for(var i=e.onRecoverableError,u=0;u<l.length;u++){var c=l[u];i(c.value,{componentStack:c.stack})}}finally{E.T=t,B.p=n}}(Ft&3)!==0&&Di(),Ut(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===Gc?pn++:(pn=0,Gc=e):pn=0,gn(0)}}function Hf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$l(t)))}function Di(){return Uf(),Cf(),kf(),Rf()}function Rf(){if(Ge!==5)return!1;var e=pa,t=qc;qc=0;var a=cu(Ft),l=E.T,n=B.p;try{B.p=32>a?32:a,E.T=null,a=Yc,Yc=null;var i=pa,u=Ft;if(Ge=0,El=pa=null,Ft=0,(pe&6)!==0)throw Error(o(331));var c=pe;if(pe|=4,bf(i.current),pf(i,i.current,u,a),pe=c,gn(0,!1),st&&typeof st.onPostCommitFiberRoot=="function")try{st.onPostCommitFiberRoot(Ul,i)}catch{}return!0}finally{B.p=n,E.T=l,Hf(e,t)}}function Bf(e,t,a){t=xt(a,t),t=yc(e.stateNode,t,2),e=sa(e,t,2),e!==null&&(kl(e,2),Ut(e))}function ve(e,t,a){if(e.tag===3)Bf(e,e,a);else for(;t!==null;){if(t.tag===3){Bf(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ma===null||!ma.has(l))){e=xt(a,e),a=Br(2),l=sa(t,a,2),l!==null&&(qr(a,l,t,e),kl(l,2),Ut(l));break}}t=t.return}}function Lc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new zm;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(Hc=!0,n.add(a),e=Nm.bind(null,e,t,a),t.then(e,e))}function Nm(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Se===e&&(re&a)===a&&(_e===4||_e===3&&(re&62914560)===re&&300>ct()-ji?(pe&2)===0&&jl(e,0):Rc|=a,wl===re&&(wl=0)),Ut(e)}function qf(e,t){t===0&&(t=Ds()),e=Ca(e,t),e!==null&&(kl(e,t),Ut(e))}function Am(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),qf(e,a)}function Mm(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),qf(e,a)}function Om(e,t){return lu(e,t)}var _i=null,Nl=null,Zc=!1,Ui=!1,Vc=!1,va=0;function Ut(e){e!==Nl&&e.next===null&&(Nl===null?_i=Nl=e:Nl=Nl.next=e),Ui=!0,Zc||(Zc=!0,_m())}function gn(e,t){if(!Vc&&Ui){Vc=!0;do for(var a=!1,l=_i;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var i=0;else{var u=l.suspendedLanes,c=l.pingedLanes;i=(1<<31-ot(42|e)+1)-1,i&=n&~(u&~c),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,Qf(l,i))}else i=re,i=Rn(l,l===Se?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||Cl(l,i)||(a=!0,Qf(l,i));l=l.next}while(a);Vc=!1}}function Dm(){Yf()}function Yf(){Ui=Zc=!1;var e=0;va!==0&&Xm()&&(e=va);for(var t=ct(),a=null,l=_i;l!==null;){var n=l.next,i=Gf(l,t);i===0?(l.next=null,a===null?_i=n:a.next=n,n===null&&(Nl=a)):(a=l,(e!==0||(i&3)!==0)&&(Ui=!0)),l=n}Ge!==0&&Ge!==5||gn(e),va!==0&&(va=0)}function Gf(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var u=31-ot(i),c=1<<u,d=n[u];d===-1?((c&a)===0||(c&l)!==0)&&(n[u]=nh(c,t)):d<=t&&(e.expiredLanes|=c),i&=~c}if(t=Se,a=re,a=Rn(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(ge===2||ge===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&nu(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Cl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&nu(l),cu(a)){case 2:case 8:a=Ms;break;case 32:a=Un;break;case 268435456:a=Os;break;default:a=Un}return l=Xf.bind(null,e),a=lu(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&nu(l),e.callbackPriority=2,e.callbackNode=null,2}function Xf(e,t){if(Ge!==0&&Ge!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Di()&&e.callbackNode!==a)return null;var l=re;return l=Rn(e,e===Se?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(wf(e,l,t),Gf(e,ct()),e.callbackNode!=null&&e.callbackNode===a?Xf.bind(null,e):null)}function Qf(e,t){if(Di())return null;wf(e,t,!0)}function _m(){Lm(function(){(pe&6)!==0?lu(As,Dm):Yf()})}function Kc(){if(va===0){var e=dl;e===0&&(e=Cn,Cn<<=1,(Cn&261888)===0&&(Cn=256)),va=e}return va}function Lf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Gn(""+e)}function Zf(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Um(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var i=Lf((n[Pe]||null).action),u=l.submitter;u&&(t=(t=u[Pe]||null)?Lf(t.formAction):u.getAttribute("formAction"),t!==null&&(i=t,u=null));var c=new Zn("action","action",null,l,n);e.push({event:c,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(va!==0){var d=u?Zf(n,u):new FormData(n);hc(a,{pending:!0,data:d,method:n.method,action:i},null,d)}}else typeof i=="function"&&(c.preventDefault(),d=u?Zf(n,u):new FormData(n),hc(a,{pending:!0,data:d,method:n.method,action:i},i,d))},currentTarget:n}]})}}for(var Jc=0;Jc<Ou.length;Jc++){var $c=Ou[Jc],Cm=$c.toLowerCase(),km=$c[0].toUpperCase()+$c.slice(1);Nt(Cm,"on"+km)}Nt(So,"onAnimationEnd"),Nt(zo,"onAnimationIteration"),Nt(wo,"onAnimationStart"),Nt("dblclick","onDoubleClick"),Nt("focusin","onFocus"),Nt("focusout","onBlur"),Nt(Fh,"onTransitionRun"),Nt(Ih,"onTransitionStart"),Nt(Ph,"onTransitionCancel"),Nt(Eo,"onTransitionEnd"),Ia("onMouseEnter",["mouseout","mouseover"]),Ia("onMouseLeave",["mouseout","mouseover"]),Ia("onPointerEnter",["pointerout","pointerover"]),Ia("onPointerLeave",["pointerout","pointerover"]),Oa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Oa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Oa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Oa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Oa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Oa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vn="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(" "),Hm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vn));function Vf(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var i=void 0;if(t)for(var u=l.length-1;0<=u;u--){var c=l[u],d=c.instance,x=c.currentTarget;if(c=c.listener,d!==i&&n.isPropagationStopped())break e;i=c,n.currentTarget=x;try{i(n)}catch(A){Jn(A)}n.currentTarget=null,i=d}else for(u=0;u<l.length;u++){if(c=l[u],d=c.instance,x=c.currentTarget,c=c.listener,d!==i&&n.isPropagationStopped())break e;i=c,n.currentTarget=x;try{i(n)}catch(A){Jn(A)}n.currentTarget=null,i=d}}}}function ce(e,t){var a=t[su];a===void 0&&(a=t[su]=new Set);var l=e+"__bubble";a.has(l)||(Kf(t,e,2,!1),a.add(l))}function Wc(e,t,a){var l=0;t&&(l|=4),Kf(a,e,l,t)}var Ci="_reactListening"+Math.random().toString(36).slice(2);function Fc(e){if(!e[Ci]){e[Ci]=!0,Bs.forEach(function(a){a!=="selectionchange"&&(Hm.has(a)||Wc(a,!1,e),Wc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ci]||(t[Ci]=!0,Wc("selectionchange",!1,t))}}function Kf(e,t,a,l){switch(zd(t)){case 2:var n=rp;break;case 8:n=fp;break;default:n=ds}a=n.bind(null,t,a,e),n=void 0,!vu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function Ic(e,t,a,l,n){var i=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var u=l.tag;if(u===3||u===4){var c=l.stateNode.containerInfo;if(c===n)break;if(u===4)for(u=l.return;u!==null;){var d=u.tag;if((d===3||d===4)&&u.stateNode.containerInfo===n)return;u=u.return}for(;c!==null;){if(u=$a(c),u===null)return;if(d=u.tag,d===5||d===6||d===26||d===27){l=i=u;continue e}c=c.parentNode}}l=l.return}Ws(function(){var x=i,A=pu(a),U=[];e:{var w=jo.get(e);if(w!==void 0){var T=Zn,Q=e;switch(e){case"keypress":if(Qn(a)===0)break e;case"keydown":case"keyup":T=Mh;break;case"focusin":Q="focus",T=Su;break;case"focusout":Q="blur",T=Su;break;case"beforeblur":case"afterblur":T=Su;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":T=Ps;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=vh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=_h;break;case So:case zo:case wo:T=xh;break;case Eo:T=Ch;break;case"scroll":case"scrollend":T=ph;break;case"wheel":T=Hh;break;case"copy":case"cut":case"paste":T=zh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=to;break;case"toggle":case"beforetoggle":T=Bh}var J=(t&4)!==0,xe=!J&&(e==="scroll"||e==="scrollend"),p=J?w!==null?w+"Capture":null:w;J=[];for(var h=x,y;h!==null;){var D=h;if(y=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||y===null||p===null||(D=Bl(h,p),D!=null&&J.push(bn(h,D,y))),xe)break;h=h.return}0<J.length&&(w=new T(w,Q,null,a,A),U.push({event:w,listeners:J}))}}if((t&7)===0){e:{if(w=e==="mouseover"||e==="pointerover",T=e==="mouseout"||e==="pointerout",w&&a!==mu&&(Q=a.relatedTarget||a.fromElement)&&($a(Q)||Q[Ja]))break e;if((T||w)&&(w=A.window===A?A:(w=A.ownerDocument)?w.defaultView||w.parentWindow:window,T?(Q=a.relatedTarget||a.toElement,T=x,Q=Q?$a(Q):null,Q!==null&&(xe=z(Q),J=Q.tag,Q!==xe||J!==5&&J!==27&&J!==6)&&(Q=null)):(T=null,Q=x),T!==Q)){if(J=Ps,D="onMouseLeave",p="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(J=to,D="onPointerLeave",p="onPointerEnter",h="pointer"),xe=T==null?w:Rl(T),y=Q==null?w:Rl(Q),w=new J(D,h+"leave",T,a,A),w.target=xe,w.relatedTarget=y,D=null,$a(A)===x&&(J=new J(p,h+"enter",Q,a,A),J.target=y,J.relatedTarget=xe,D=J),xe=D,T&&Q)t:{for(J=Rm,p=T,h=Q,y=0,D=p;D;D=J(D))y++;D=0;for(var K=h;K;K=J(K))D++;for(;0<y-D;)p=J(p),y--;for(;0<D-y;)h=J(h),D--;for(;y--;){if(p===h||h!==null&&p===h.alternate){J=p;break t}p=J(p),h=J(h)}J=null}else J=null;T!==null&&Jf(U,w,T,J,!1),Q!==null&&xe!==null&&Jf(U,xe,Q,J,!0)}}e:{if(w=x?Rl(x):window,T=w.nodeName&&w.nodeName.toLowerCase(),T==="select"||T==="input"&&w.type==="file")var he=oo;else if(co(w))if(ro)he=Jh;else{he=Vh;var L=Zh}else T=w.nodeName,!T||T.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?x&&hu(x.elementType)&&(he=oo):he=Kh;if(he&&(he=he(e,x))){so(U,he,a,A);break e}L&&L(e,w,x),e==="focusout"&&x&&w.type==="number"&&x.memoizedProps.value!=null&&du(w,"number",w.value)}switch(L=x?Rl(x):window,e){case"focusin":(co(L)||L.contentEditable==="true")&&(nl=L,Nu=x,Vl=null);break;case"focusout":Vl=Nu=nl=null;break;case"mousedown":Au=!0;break;case"contextmenu":case"mouseup":case"dragend":Au=!1,yo(U,a,A);break;case"selectionchange":if(Wh)break;case"keydown":case"keyup":yo(U,a,A)}var ne;if(wu)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else ll?io(e,a)&&(fe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(fe="onCompositionStart");fe&&(ao&&a.locale!=="ko"&&(ll||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&ll&&(ne=Fs()):(ta=A,bu="value"in ta?ta.value:ta.textContent,ll=!0)),L=ki(x,fe),0<L.length&&(fe=new eo(fe,e,null,a,A),U.push({event:fe,listeners:L}),ne?fe.data=ne:(ne=uo(a),ne!==null&&(fe.data=ne)))),(ne=Yh?Gh(e,a):Xh(e,a))&&(fe=ki(x,"onBeforeInput"),0<fe.length&&(L=new eo("onBeforeInput","beforeinput",null,a,A),U.push({event:L,listeners:fe}),L.data=ne)),Um(U,e,x,a,A)}Vf(U,t)})}function bn(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ki(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Bl(e,a),n!=null&&l.unshift(bn(e,n,i)),n=Bl(e,t),n!=null&&l.push(bn(e,n,i))),e.tag===3)return l;e=e.return}return[]}function Rm(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Jf(e,t,a,l,n){for(var i=t._reactName,u=[];a!==null&&a!==l;){var c=a,d=c.alternate,x=c.stateNode;if(c=c.tag,d!==null&&d===l)break;c!==5&&c!==26&&c!==27||x===null||(d=x,n?(x=Bl(a,i),x!=null&&u.unshift(bn(a,x,d))):n||(x=Bl(a,i),x!=null&&u.push(bn(a,x,d)))),a=a.return}u.length!==0&&e.push({event:t,listeners:u})}var Bm=/\r\n?/g,qm=/\u0000|\uFFFD/g;function $f(e){return(typeof e=="string"?e:""+e).replace(Bm,`
|
|
49
|
-
`).replace(qm,"")}function Wf(e,t){return t=$f(t),$f(e)===t}function ye(e,t,a,l,n,i){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||el(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&el(e,""+l);break;case"className":qn(e,"class",l);break;case"tabIndex":qn(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":qn(e,a,l);break;case"style":Js(e,l,i);break;case"data":if(t!=="object"){qn(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Gn(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(a==="formAction"?(t!=="input"&&ye(e,t,"name",n.name,n,null),ye(e,t,"formEncType",n.formEncType,n,null),ye(e,t,"formMethod",n.formMethod,n,null),ye(e,t,"formTarget",n.formTarget,n,null)):(ye(e,t,"encType",n.encType,n,null),ye(e,t,"method",n.method,n,null),ye(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Gn(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Ht);break;case"onScroll":l!=null&&ce("scroll",e);break;case"onScrollEnd":l!=null&&ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Gn(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":ce("beforetoggle",e),ce("toggle",e),Bn(e,"popover",l);break;case"xlinkActuate":kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":kt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":kt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":kt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":kt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":kt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Bn(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=hh.get(a)||a,Bn(e,a,l))}}function Pc(e,t,a,l,n,i){switch(a){case"style":Js(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof l=="string"?el(e,l):(typeof l=="number"||typeof l=="bigint")&&el(e,""+l);break;case"onScroll":l!=null&&ce("scroll",e);break;case"onScrollEnd":l!=null&&ce("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Ht);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!qs.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),i=e[Pe]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof l=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Bn(e,a,l)}}}function Je(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ce("error",e),ce("load",e);var l=!1,n=!1,i;for(i in a)if(a.hasOwnProperty(i)){var u=a[i];if(u!=null)switch(i){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ye(e,t,i,u,a,null)}}n&&ye(e,t,"srcSet",a.srcSet,a,null),l&&ye(e,t,"src",a.src,a,null);return;case"input":ce("invalid",e);var c=i=u=n=null,d=null,x=null;for(l in a)if(a.hasOwnProperty(l)){var A=a[l];if(A!=null)switch(l){case"name":n=A;break;case"type":u=A;break;case"checked":d=A;break;case"defaultChecked":x=A;break;case"value":i=A;break;case"defaultValue":c=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:ye(e,t,l,A,a,null)}}Ls(e,i,c,d,x,u,n,!1);return;case"select":ce("invalid",e),l=u=i=null;for(n in a)if(a.hasOwnProperty(n)&&(c=a[n],c!=null))switch(n){case"value":i=c;break;case"defaultValue":u=c;break;case"multiple":l=c;default:ye(e,t,n,c,a,null)}t=i,a=u,e.multiple=!!l,t!=null?Pa(e,!!l,t,!1):a!=null&&Pa(e,!!l,a,!0);return;case"textarea":ce("invalid",e),i=n=l=null;for(u in a)if(a.hasOwnProperty(u)&&(c=a[u],c!=null))switch(u){case"value":l=c;break;case"defaultValue":n=c;break;case"children":i=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:ye(e,t,u,c,a,null)}Vs(e,l,n,i);return;case"option":for(d in a)if(a.hasOwnProperty(d)&&(l=a[d],l!=null))switch(d){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ye(e,t,d,l,a,null)}return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(l=0;l<vn.length;l++)ce(vn[l],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(x in a)if(a.hasOwnProperty(x)&&(l=a[x],l!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ye(e,t,x,l,a,null)}return;default:if(hu(t)){for(A in a)a.hasOwnProperty(A)&&(l=a[A],l!==void 0&&Pc(e,t,A,l,a,void 0));return}}for(c in a)a.hasOwnProperty(c)&&(l=a[c],l!=null&&ye(e,t,c,l,a,null))}function Ym(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,u=null,c=null,d=null,x=null,A=null;for(T in a){var U=a[T];if(a.hasOwnProperty(T)&&U!=null)switch(T){case"checked":break;case"value":break;case"defaultValue":d=U;default:l.hasOwnProperty(T)||ye(e,t,T,null,l,U)}}for(var w in l){var T=l[w];if(U=a[w],l.hasOwnProperty(w)&&(T!=null||U!=null))switch(w){case"type":i=T;break;case"name":n=T;break;case"checked":x=T;break;case"defaultChecked":A=T;break;case"value":u=T;break;case"defaultValue":c=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(o(137,t));break;default:T!==U&&ye(e,t,w,T,l,U)}}fu(e,u,c,d,x,A,i,n);return;case"select":T=u=c=w=null;for(i in a)if(d=a[i],a.hasOwnProperty(i)&&d!=null)switch(i){case"value":break;case"multiple":T=d;default:l.hasOwnProperty(i)||ye(e,t,i,null,l,d)}for(n in l)if(i=l[n],d=a[n],l.hasOwnProperty(n)&&(i!=null||d!=null))switch(n){case"value":w=i;break;case"defaultValue":c=i;break;case"multiple":u=i;default:i!==d&&ye(e,t,n,i,l,d)}t=c,a=u,l=T,w!=null?Pa(e,!!a,w,!1):!!l!=!!a&&(t!=null?Pa(e,!!a,t,!0):Pa(e,!!a,a?[]:"",!1));return;case"textarea":T=w=null;for(c in a)if(n=a[c],a.hasOwnProperty(c)&&n!=null&&!l.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:ye(e,t,c,null,l,n)}for(u in l)if(n=l[u],i=a[u],l.hasOwnProperty(u)&&(n!=null||i!=null))switch(u){case"value":w=n;break;case"defaultValue":T=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==i&&ye(e,t,u,n,l,i)}Zs(e,w,T);return;case"option":for(var Q in a)if(w=a[Q],a.hasOwnProperty(Q)&&w!=null&&!l.hasOwnProperty(Q))switch(Q){case"selected":e.selected=!1;break;default:ye(e,t,Q,null,l,w)}for(d in l)if(w=l[d],T=a[d],l.hasOwnProperty(d)&&w!==T&&(w!=null||T!=null))switch(d){case"selected":e.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:ye(e,t,d,w,l,T)}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 J in a)w=a[J],a.hasOwnProperty(J)&&w!=null&&!l.hasOwnProperty(J)&&ye(e,t,J,null,l,w);for(x in l)if(w=l[x],T=a[x],l.hasOwnProperty(x)&&w!==T&&(w!=null||T!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,t));break;default:ye(e,t,x,w,l,T)}return;default:if(hu(t)){for(var xe in a)w=a[xe],a.hasOwnProperty(xe)&&w!==void 0&&!l.hasOwnProperty(xe)&&Pc(e,t,xe,void 0,l,w);for(A in l)w=l[A],T=a[A],!l.hasOwnProperty(A)||w===T||w===void 0&&T===void 0||Pc(e,t,A,w,l,T);return}}for(var p in a)w=a[p],a.hasOwnProperty(p)&&w!=null&&!l.hasOwnProperty(p)&&ye(e,t,p,null,l,w);for(U in l)w=l[U],T=a[U],!l.hasOwnProperty(U)||w===T||w==null&&T==null||ye(e,t,U,w,l,T)}function Ff(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Gm(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],i=n.transferSize,u=n.initiatorType,c=n.duration;if(i&&c&&Ff(u)){for(u=0,c=n.responseEnd,l+=1;l<a.length;l++){var d=a[l],x=d.startTime;if(x>c)break;var A=d.transferSize,U=d.initiatorType;A&&Ff(U)&&(d=d.responseEnd,u+=A*(d<c?1:(c-x)/(d-x)))}if(--l,t+=8*(i+u)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var es=null,ts=null;function Hi(e){return e.nodeType===9?e:e.ownerDocument}function If(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Pf(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function as(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ls=null;function Xm(){var e=window.event;return e&&e.type==="popstate"?e===ls?!1:(ls=e,!0):(ls=null,!1)}var ed=typeof setTimeout=="function"?setTimeout:void 0,Qm=typeof clearTimeout=="function"?clearTimeout:void 0,td=typeof Promise=="function"?Promise:void 0,Lm=typeof queueMicrotask=="function"?queueMicrotask:typeof td<"u"?function(e){return td.resolve(null).then(e).catch(Zm)}:ed;function Zm(e){setTimeout(function(){throw e})}function ba(e){return e==="head"}function ad(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),Dl(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")yn(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,yn(a);for(var i=a.firstChild;i;){var u=i.nextSibling,c=i.nodeName;i[Hl]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=u}}else a==="body"&&yn(e.ownerDocument.body);a=n}while(a);Dl(t)}function ld(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function ns(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":ns(a),ou(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Vm(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Hl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=jt(e.nextSibling),e===null)break}return null}function Km(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=jt(e.nextSibling),e===null))return null;return e}function nd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=jt(e.nextSibling),e===null))return null;return e}function is(e){return e.data==="$?"||e.data==="$~"}function us(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Jm(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function jt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var cs=null;function id(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return jt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function ud(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function cd(e,t,a){switch(t=Hi(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function yn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ou(e)}var Tt=new Map,sd=new Set;function Ri(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var It=B.d;B.d={f:$m,r:Wm,D:Fm,C:Im,L:Pm,m:ep,X:ap,S:tp,M:lp};function $m(){var e=It.f(),t=Ai();return e||t}function Wm(e){var t=Wa(e);t!==null&&t.tag===5&&t.type==="form"?Er(t):It.r(e)}var Al=typeof document>"u"?null:document;function od(e,t,a){var l=Al;if(l&&typeof t=="string"&&t){var n=bt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),sd.has(n)||(sd.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),Je(t,"link",e),Xe(t),l.head.appendChild(t)))}}function Fm(e){It.D(e),od("dns-prefetch",e,null)}function Im(e,t){It.C(e,t),od("preconnect",e,t)}function Pm(e,t,a){It.L(e,t,a);var l=Al;if(l&&e&&t){var n='link[rel="preload"][as="'+bt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+bt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+bt(a.imageSizes)+'"]')):n+='[href="'+bt(e)+'"]';var i=n;switch(t){case"style":i=Ml(e);break;case"script":i=Ol(e)}Tt.has(i)||(e=O({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Tt.set(i,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(xn(i))||t==="script"&&l.querySelector(Sn(i))||(t=l.createElement("link"),Je(t,"link",e),Xe(t),l.head.appendChild(t)))}}function ep(e,t){It.m(e,t);var a=Al;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+bt(l)+'"][href="'+bt(e)+'"]',i=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ol(e)}if(!Tt.has(i)&&(e=O({rel:"modulepreload",href:e},t),Tt.set(i,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Sn(i)))return}l=a.createElement("link"),Je(l,"link",e),Xe(l),a.head.appendChild(l)}}}function tp(e,t,a){It.S(e,t,a);var l=Al;if(l&&e){var n=Fa(l).hoistableStyles,i=Ml(e);t=t||"default";var u=n.get(i);if(!u){var c={loading:0,preload:null};if(u=l.querySelector(xn(i)))c.loading=5;else{e=O({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Tt.get(i))&&ss(e,a);var d=u=l.createElement("link");Xe(d),Je(d,"link",e),d._p=new Promise(function(x,A){d.onload=x,d.onerror=A}),d.addEventListener("load",function(){c.loading|=1}),d.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Bi(u,t,l)}u={type:"stylesheet",instance:u,count:1,state:c},n.set(i,u)}}}function ap(e,t){It.X(e,t);var a=Al;if(a&&e){var l=Fa(a).hoistableScripts,n=Ol(e),i=l.get(n);i||(i=a.querySelector(Sn(n)),i||(e=O({src:e,async:!0},t),(t=Tt.get(n))&&os(e,t),i=a.createElement("script"),Xe(i),Je(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function lp(e,t){It.M(e,t);var a=Al;if(a&&e){var l=Fa(a).hoistableScripts,n=Ol(e),i=l.get(n);i||(i=a.querySelector(Sn(n)),i||(e=O({src:e,async:!0,type:"module"},t),(t=Tt.get(n))&&os(e,t),i=a.createElement("script"),Xe(i),Je(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function rd(e,t,a,l){var n=(n=W.current)?Ri(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ml(a.href),a=Fa(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ml(a.href);var i=Fa(n).hoistableStyles,u=i.get(e);if(u||(n=n.ownerDocument||n,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,u),(i=n.querySelector(xn(e)))&&!i._p&&(u.instance=i,u.state.loading=5),Tt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Tt.set(e,a),i||np(n,e,a,u.state))),t&&l===null)throw Error(o(528,""));return u}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ol(a),a=Fa(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Ml(e){return'href="'+bt(e)+'"'}function xn(e){return'link[rel="stylesheet"]['+e+"]"}function fd(e){return O({},e,{"data-precedence":e.precedence,precedence:null})}function np(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Je(t,"link",a),Xe(t),e.head.appendChild(t))}function Ol(e){return'[src="'+bt(e)+'"]'}function Sn(e){return"script[async]"+e}function dd(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+bt(a.href)+'"]');if(l)return t.instance=l,Xe(l),l;var n=O({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Xe(l),Je(l,"style",n),Bi(l,a.precedence,e),t.instance=l;case"stylesheet":n=Ml(a.href);var i=e.querySelector(xn(n));if(i)return t.state.loading|=4,t.instance=i,Xe(i),i;l=fd(a),(n=Tt.get(n))&&ss(l,n),i=(e.ownerDocument||e).createElement("link"),Xe(i);var u=i;return u._p=new Promise(function(c,d){u.onload=c,u.onerror=d}),Je(i,"link",l),t.state.loading|=4,Bi(i,a.precedence,e),t.instance=i;case"script":return i=Ol(a.src),(n=e.querySelector(Sn(i)))?(t.instance=n,Xe(n),n):(l=a,(n=Tt.get(i))&&(l=O({},a),os(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),Xe(n),Je(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Bi(l,a.precedence,e));return t.instance}function Bi(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,i=n,u=0;u<l.length;u++){var c=l[u];if(c.dataset.precedence===t)i=c;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function ss(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function os(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var qi=null;function hd(e,t,a){if(qi===null){var l=new Map,n=qi=new Map;n.set(a,l)}else n=qi,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var i=a[n];if(!(i[Hl]||i[Le]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var u=i.getAttribute(t)||"";u=e+u;var c=l.get(u);c?c.push(i):l.set(u,[i])}}return l}function md(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function ip(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function pd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function up(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=Ml(l.href),i=t.querySelector(xn(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Yi.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,Xe(i);return}i=t.ownerDocument||t,l=fd(l),(n=Tt.get(n))&&ss(l,n),i=i.createElement("link"),Xe(i);var u=i;u._p=new Promise(function(c,d){u.onload=c,u.onerror=d}),Je(i,"link",l),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Yi.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var rs=0;function cp(e,t){return e.stylesheets&&e.count===0&&Xi(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Xi(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&rs===0&&(rs=62500*Gm());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xi(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>rs?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function Yi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Gi=null;function Xi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Gi=new Map,t.forEach(sp,e),Gi=null,Yi.call(e))}function sp(e,t){if(!(t.state.loading&4)){var a=Gi.get(e);if(a)var l=a.get(null);else{a=new Map,Gi.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var u=n[i];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(a.set(u.dataset.precedence,u),l=u)}l&&a.set(null,l)}n=t.instance,u=n.getAttribute("data-precedence"),i=a.get(u)||l,i===l&&a.set(null,n),a.set(u,n),this.count++,l=Yi.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var zn={$$typeof:oe,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function op(e,t,a,l,n,i,u,c,d){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=iu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=iu(0),this.hiddenUpdates=iu(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function gd(e,t,a,l,n,i,u,c,d,x,A,U){return e=new op(e,t,a,u,d,x,A,U,c),t=1,i===!0&&(t|=24),i=ft(3,null,null,t),e.current=i,i.stateNode=e,t=Qu(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:a,cache:t},Ku(i),e}function vd(e){return e?(e=cl,e):cl}function bd(e,t,a,l,n,i){n=vd(n),l.context===null?l.context=n:l.pendingContext=n,l=ca(t),l.payload={element:a},i=i===void 0?null:i,i!==null&&(l.callback=i),a=sa(e,l,t),a!==null&&(it(a,e,t),Pl(a,e,t))}function yd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function fs(e,t){yd(e,t),(e=e.alternate)&&yd(e,t)}function xd(e){if(e.tag===13||e.tag===31){var t=Ca(e,67108864);t!==null&&it(t,e,67108864),fs(e,67108864)}}function Sd(e){if(e.tag===13||e.tag===31){var t=gt();t=uu(t);var a=Ca(e,t);a!==null&&it(a,e,t),fs(e,t)}}var Qi=!0;function rp(e,t,a,l){var n=E.T;E.T=null;var i=B.p;try{B.p=2,ds(e,t,a,l)}finally{B.p=i,E.T=n}}function fp(e,t,a,l){var n=E.T;E.T=null;var i=B.p;try{B.p=8,ds(e,t,a,l)}finally{B.p=i,E.T=n}}function ds(e,t,a,l){if(Qi){var n=hs(l);if(n===null)Ic(e,t,l,Li,a),wd(e,l);else if(hp(n,e,t,a,l))l.stopPropagation();else if(wd(e,l),t&4&&-1<dp.indexOf(e)){for(;n!==null;){var i=Wa(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=Ma(i.pendingLanes);if(u!==0){var c=i;for(c.pendingLanes|=2,c.entangledLanes|=2;u;){var d=1<<31-ot(u);c.entanglements[1]|=d,u&=~d}Ut(i),(pe&6)===0&&(Ti=ct()+500,gn(0))}}break;case 31:case 13:c=Ca(i,2),c!==null&&it(c,i,2),Ai(),fs(i,2)}if(i=hs(l),i===null&&Ic(e,t,l,Li,a),i===n)break;n=i}n!==null&&l.stopPropagation()}else Ic(e,t,l,null,a)}}function hs(e){return e=pu(e),ms(e)}var Li=null;function ms(e){if(Li=null,e=$a(e),e!==null){var t=z(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=_(t),e!==null)return e;e=null}else if(a===31){if(e=R(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Li=e,null}function zd(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Fd()){case As:return 2;case Ms:return 8;case Un:case Id:return 32;case Os:return 268435456;default:return 32}default:return 32}}var ps=!1,ya=null,xa=null,Sa=null,wn=new Map,En=new Map,za=[],dp="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 wd(e,t){switch(e){case"focusin":case"focusout":ya=null;break;case"dragenter":case"dragleave":xa=null;break;case"mouseover":case"mouseout":Sa=null;break;case"pointerover":case"pointerout":wn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":En.delete(t.pointerId)}}function jn(e,t,a,l,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:i,targetContainers:[n]},t!==null&&(t=Wa(t),t!==null&&xd(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function hp(e,t,a,l,n){switch(t){case"focusin":return ya=jn(ya,e,t,a,l,n),!0;case"dragenter":return xa=jn(xa,e,t,a,l,n),!0;case"mouseover":return Sa=jn(Sa,e,t,a,l,n),!0;case"pointerover":var i=n.pointerId;return wn.set(i,jn(wn.get(i)||null,e,t,a,l,n)),!0;case"gotpointercapture":return i=n.pointerId,En.set(i,jn(En.get(i)||null,e,t,a,l,n)),!0}return!1}function Ed(e){var t=$a(e.target);if(t!==null){var a=z(t);if(a!==null){if(t=a.tag,t===13){if(t=_(a),t!==null){e.blockedOn=t,Hs(e.priority,function(){Sd(a)});return}}else if(t===31){if(t=R(a),t!==null){e.blockedOn=t,Hs(e.priority,function(){Sd(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=hs(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);mu=l,a.target.dispatchEvent(l),mu=null}else return t=Wa(a),t!==null&&xd(t),e.blockedOn=a,!1;t.shift()}return!0}function jd(e,t,a){Zi(e)&&a.delete(t)}function mp(){ps=!1,ya!==null&&Zi(ya)&&(ya=null),xa!==null&&Zi(xa)&&(xa=null),Sa!==null&&Zi(Sa)&&(Sa=null),wn.forEach(jd),En.forEach(jd)}function Vi(e,t){e.blockedOn===t&&(e.blockedOn=null,ps||(ps=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,mp)))}var Ki=null;function Td(e){Ki!==e&&(Ki=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Ki===e&&(Ki=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if(ms(l||a)===null)continue;break}var i=Wa(a);i!==null&&(e.splice(t,3),t-=3,hc(i,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function Dl(e){function t(d){return Vi(d,e)}ya!==null&&Vi(ya,e),xa!==null&&Vi(xa,e),Sa!==null&&Vi(Sa,e),wn.forEach(t),En.forEach(t);for(var a=0;a<za.length;a++){var l=za[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<za.length&&(a=za[0],a.blockedOn===null);)Ed(a),a.blockedOn===null&&za.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],i=a[l+1],u=n[Pe]||null;if(typeof i=="function")u||Td(a);else if(u){var c=null;if(i&&i.hasAttribute("formAction")){if(n=i,u=i[Pe]||null)c=u.formAction;else if(ms(n)!==null)continue}else c=u.action;typeof c=="function"?a[l+1]=c:(a.splice(l,3),l-=3),Td(a)}}}function Nd(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(u){return n=u})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function gs(e){this._internalRoot=e}Ji.prototype.render=gs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,l=gt();bd(a,l,e,t,null,null)},Ji.prototype.unmount=gs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bd(e.current,2,null,e,null,null),Ai(),t[Ja]=null}};function Ji(e){this._internalRoot=e}Ji.prototype.unstable_scheduleHydration=function(e){if(e){var t=ks();e={blockedOn:null,target:e,priority:t};for(var a=0;a<za.length&&t!==0&&t<za[a].priority;a++);za.splice(a,0,e),a===0&&Ed(e)}};var Ad=b.version;if(Ad!=="19.2.7")throw Error(o(527,Ad,"19.2.7"));B.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=v(t),e=e!==null?C(e):null,e=e===null?null:e.stateNode,e};var pp={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:E,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $i=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$i.isDisabled&&$i.supportsFiber)try{Ul=$i.inject(pp),st=$i}catch{}}return Nn.createRoot=function(e,t){if(!g(e))throw Error(o(299));var a=!1,l="",n=Cr,i=kr,u=Hr;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=gd(e,1,!1,null,null,a,l,null,n,i,u,Nd),e[Ja]=t.current,Fc(e),new gs(t)},Nn.hydrateRoot=function(e,t,a){if(!g(e))throw Error(o(299));var l=!1,n="",i=Cr,u=kr,c=Hr,d=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(u=a.onCaughtError),a.onRecoverableError!==void 0&&(c=a.onRecoverableError),a.formState!==void 0&&(d=a.formState)),t=gd(e,1,!0,t,a??null,l,n,d,i,u,c,Nd),t.context=vd(null),a=t.current,l=gt(),l=uu(l),n=ca(l),n.callback=null,sa(a,n,l),a=l,t.current.lanes=a,kl(t,a),Ut(t),e[Ja]=t.current,Fc(e),new Ji(t)},Nn.version="19.2.7",Nn}var Bd;function jp(){if(Bd)return ys.exports;Bd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(b){console.error(b)}}return r(),ys.exports=Ep(),ys.exports}var Tp=jp();function Dn(r,b){const j=new Map(r.agents.map(N=>[N.id,N])),o=j.get(b);if(!o)return null;const g=[];let z=o;const _=new Set;for(;z&&!_.has(z.id);)_.add(z.id),g.unshift(z),z=z.parent?j.get(z.parent):void 0;const R=N=>[...new Set(N)];return{agent:o,chain:g,rules:R(g.flatMap(N=>N.rules??[])),buckets:R(g.flatMap(N=>N.buckets??[])),skills:R(o.skills??[]),children:r.agents.filter(N=>N.parent===b)}}function Ta(r){if(typeof r!="string"||!r)return"";const b=Date.parse(r);if(!Number.isFinite(b))return"";const j=(Date.now()-b)/1e3;if(j<90)return"just now";if(j<5400)return`${Math.round(j/60)}m ago`;if(j<172800)return`${Math.round(j/3600)}h ago`;const o=Math.round(j/86400);if(o<60)return`${o}d ago`;const g=Math.round(o/30.4);return g<24?`${g}mo ago`:`${(g/12).toFixed(1)}y ago`}const Np=String.raw`
|
|
50
|
-
/* GENERATED from design/tokens.json by scripts/gen-tokens.mjs — DO NOT EDIT */
|
|
51
|
-
:root {
|
|
52
|
-
--bg: #06080e;
|
|
53
|
-
--bg-lift: #0a0d15;
|
|
54
|
-
--card: #0f131c;
|
|
55
|
-
--line: #1c2130;
|
|
56
|
-
--line-hi: #2b3243;
|
|
57
|
-
--text: #E8DCC4;
|
|
58
|
-
--dim: #8a8268;
|
|
59
|
-
--faint: #585240;
|
|
60
|
-
--gold: #c9a04a;
|
|
61
|
-
--gold-hi: #E8C877;
|
|
62
|
-
--teal: #4ECDC4;
|
|
63
|
-
--violet: #a78bd0;
|
|
64
|
-
--green: #5fae7e;
|
|
65
|
-
--amber: #d6a23e;
|
|
66
|
-
--red: #d05a5a;
|
|
67
|
-
--wine: #0b0509;
|
|
68
|
-
--wine2: #140a11;
|
|
69
|
-
--plate: #1c1119;
|
|
70
|
-
--plate-lift: #241624;
|
|
71
|
-
--brass: #d9a05b;
|
|
72
|
-
--brass-hi: #efc389;
|
|
73
|
-
--brass-deep: #a9753a;
|
|
74
|
-
--mint: #8be9b0;
|
|
75
|
-
--cream: #f4eee2;
|
|
76
|
-
--cream-dim: #b3a897;
|
|
77
|
-
--cream-faint: #7c7365;
|
|
78
|
-
--verb-reports-to: #c9a04a;
|
|
79
|
-
--verb-declares: #E8C877;
|
|
80
|
-
--verb-amends: #E8C877;
|
|
81
|
-
--verb-inherits: #8a8268;
|
|
82
|
-
--verb-owns: #4ECDC4;
|
|
83
|
-
--verb-reads: #3a7a74;
|
|
84
|
-
--verb-escalates-to: #d05a5a;
|
|
85
|
-
--verb-covers: #5fae7e;
|
|
86
|
-
--verb-supplies: #a8815a;
|
|
87
|
-
--verb-audits: #a78bd0;
|
|
88
|
-
--verb-spine: #29242f;
|
|
89
|
-
--display: Fraunces, ui-serif, Georgia, serif;
|
|
90
|
-
--ui: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
|
|
91
|
-
--mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
|
|
92
|
-
--ease-swift: cubic-bezier(0.2, 0.7, 0.25, 1);
|
|
93
|
-
--ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
|
|
94
|
-
--z-canvas: 0;
|
|
95
|
-
--z-hud: 10;
|
|
96
|
-
--z-dossier: 20;
|
|
97
|
-
--z-palette: 30;
|
|
98
|
-
--z-toast: 40;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/* Booboo Organigram — alive, simple, for everyone. One accent (verdigris,
|
|
102
|
-
the dachshund's collar), a slow aurora breathing behind everything, cards
|
|
103
|
-
that lift and settle, numbers that count up. Dark by default. */
|
|
104
|
-
|
|
105
|
-
:root {
|
|
106
|
-
/* THE STAFF BOARD — a master-key rack, not a dashboard.
|
|
107
|
-
Structure comes from two real artefacts: a master-key hierarchy (passe
|
|
108
|
-
général → passe partiel → cylinder, which is literally how a hotel is
|
|
109
|
-
keyed, and exactly how authority cascades here) and a ministry organigram
|
|
110
|
-
(rank is NAMED in column headers, never inferred from indentation).
|
|
111
|
-
Material comes from the approved FHQ hero designs — wine-black ground,
|
|
112
|
-
brass rails, real vendor marks on white chips.
|
|
113
|
-
Raw values are generated into app/tokens.css from design/tokens.json
|
|
114
|
-
(scripts/gen-tokens.mjs); these are the panel's semantic aliases over them.
|
|
115
|
-
RANK READS THROUGH FINISH, NEVER HUE. The old board coloured each card by
|
|
116
|
-
hash(agent.id) — nine departments, nine arbitrary neon hues — which is the
|
|
117
|
-
loudest "generated by a dev tool" signal there is, and it disagreed with
|
|
118
|
-
the cosmos's own gold/silver/bronze ladder. */
|
|
119
|
-
/* LIGHT IS THE DEFAULT (Jesse, 2026-07-19: "design for everyone — a white
|
|
120
|
-
background, very light bubbles, beautiful refined display"). A whole hotel
|
|
121
|
-
uses this, not a room of developers; a stranger should not land in a
|
|
122
|
-
terminal. Dark remains, one toggle away, below.
|
|
123
|
-
The ground is a WARM white, never flat #fff — a lit room, not a sheet of
|
|
124
|
-
paper. Depth comes from layered shadow, so ink stays the only dark thing
|
|
125
|
-
on screen and brass drops from material to ~5% accent. */
|
|
126
|
-
--bg: #fcfbf9;
|
|
127
|
-
--bg-1: #fffefb; /* tinted toward the brass hue, never flat #fff */
|
|
128
|
-
--bg-2: #f6f4f0;
|
|
129
|
-
--line: #e9e5df;
|
|
130
|
-
--line-soft: #f0ece6;
|
|
131
|
-
--line-2: #d9d3c9;
|
|
132
|
-
--surface-tray: rgba(255, 255, 255, .5);
|
|
133
|
-
/* the ground-plane dot. White-on-white rendered NOTHING on the light board
|
|
134
|
-
— the texture was there in the stylesheet and absent on screen. */
|
|
135
|
-
--dot: rgba(27, 24, 21, 0.055);
|
|
136
|
-
--surface-lift: linear-gradient(180deg, #fffdf8, #ffffff);
|
|
137
|
-
--surface-lift-edge: #e8d9bd;
|
|
138
|
-
--ink: #1b1815;
|
|
139
|
-
--ink-2: #6b6459;
|
|
140
|
-
--ink-3: #9a9287;
|
|
141
|
-
--accent: #a9753a;
|
|
142
|
-
--accent-2: #c9954f;
|
|
143
|
-
--accent-dim: #f7f0e4;
|
|
144
|
-
--warn: #b8862c;
|
|
145
|
-
--warn-wash: #fbf3e3;
|
|
146
|
-
--ok: #3f9c6d;
|
|
147
|
-
--ok-wash: #eaf5ef;
|
|
148
|
-
--fail: #c0553f;
|
|
149
|
-
--fail-wash: #fbeeea;
|
|
150
|
-
/* one shadow set, three depths — the only source of elevation */
|
|
151
|
-
--sh-1: 0 1px 2px rgba(27, 24, 21, .04), 0 1px 1px rgba(27, 24, 21, .03);
|
|
152
|
-
--sh-2: 0 2px 4px rgba(27, 24, 21, .04), 0 6px 16px -6px rgba(27, 24, 21, .10);
|
|
153
|
-
--sh-3: 0 4px 8px rgba(27, 24, 21, .05), 0 16px 34px -12px rgba(27, 24, 21, .16);
|
|
154
|
-
/* motion — slight, never showy. Everything eases on these two. */
|
|
155
|
-
--ease: cubic-bezier(.2, .7, .25, 1);
|
|
156
|
-
--settle: cubic-bezier(.16, 1, .3, 1);
|
|
157
|
-
--font: "DM Sans", -apple-system, "Segoe UI", Inter, system-ui, sans-serif;
|
|
158
|
-
--mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
|
|
159
|
-
--display: "Fraunces", ui-serif, Georgia, serif;
|
|
160
|
-
--brass-line: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, var(--brass-deep));
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/* DARK — the wine-and-brass board, now one toggle away instead of the default.
|
|
164
|
-
Same structure, same shadows-as-depth logic, inverted ground. */
|
|
165
|
-
:root[data-theme="dark"] {
|
|
166
|
-
--bg: var(--wine);
|
|
167
|
-
--bg-1: var(--plate);
|
|
168
|
-
--bg-2: var(--wine2);
|
|
169
|
-
--line: rgba(244, 238, 226, 0.13);
|
|
170
|
-
--line-soft: rgba(244, 238, 226, 0.08);
|
|
171
|
-
--line-2: rgba(244, 238, 226, 0.22);
|
|
172
|
-
--surface-tray: rgba(11, 5, 9, .4);
|
|
173
|
-
--dot: rgba(255, 255, 255, 0.035);
|
|
174
|
-
--surface-lift: linear-gradient(168deg, #3a2a16, #1d1410);
|
|
175
|
-
--surface-lift-edge: rgba(239, 195, 137, .4);
|
|
176
|
-
--ink: var(--cream);
|
|
177
|
-
--ink-2: var(--cream-dim);
|
|
178
|
-
--ink-3: var(--cream-faint);
|
|
179
|
-
--accent: var(--brass);
|
|
180
|
-
--accent-2: var(--brass-hi);
|
|
181
|
-
--accent-dim: rgba(217, 160, 91, 0.12);
|
|
182
|
-
--warn: var(--brass);
|
|
183
|
-
--warn-wash: rgba(217, 160, 91, 0.10);
|
|
184
|
-
--ok: var(--mint);
|
|
185
|
-
--ok-wash: rgba(139, 233, 176, 0.10);
|
|
186
|
-
--fail: #e07b6a;
|
|
187
|
-
--fail-wash: rgba(224, 123, 106, 0.10);
|
|
188
|
-
--sh-1: 0 1px 2px rgba(0, 0, 0, .5);
|
|
189
|
-
--sh-2: 0 2px 4px rgba(0, 0, 0, .5), 0 16px 34px -18px rgba(0, 0, 0, .85);
|
|
190
|
-
--sh-3: 0 4px 8px rgba(0, 0, 0, .5), 0 22px 48px -18px rgba(0, 0, 0, .9);
|
|
191
|
-
}
|
|
192
|
-
[data-theme="dark"] body { background: var(--wine); }
|
|
193
|
-
[data-theme="dark"] .ag { background: linear-gradient(168deg, var(--plate-lift), #180e16); }
|
|
194
|
-
[data-theme="dark"] .bar, [data-theme="dark"] .tabs { background: rgba(11, 5, 9, 0.72); }
|
|
195
|
-
[data-theme="dark"] .rack .wt { background: #fff; border-color: transparent; }
|
|
196
|
-
[data-theme="dark"] .pnl-stars { opacity: .45; }
|
|
197
|
-
|
|
198
|
-
* { box-sizing: border-box; }
|
|
199
|
-
body { font-family: var(--font); color: var(--ink); background: var(--bg); overflow-x: hidden; }
|
|
200
|
-
|
|
201
|
-
.pnl { display: flex; flex-direction: column; position: relative; overflow: hidden; }
|
|
202
|
-
|
|
203
|
-
/* the ground — warm wine light pooling from the top-left, exactly as the hero
|
|
204
|
-
grades it. NO GRAIN/NOISE LAYER: the mockup carried a feTurbulence overlay
|
|
205
|
-
and it read as a blurry filter smeared over everything (Jesse, 2026-07-19).
|
|
206
|
-
The atmosphere is gradient + constellation only. */
|
|
207
|
-
.pnl-aurora {
|
|
208
|
-
position: fixed; inset: -30%; pointer-events: none; z-index: 0; opacity: 1;
|
|
209
|
-
background:
|
|
210
|
-
radial-gradient(55% 45% at 12% 0%, rgba(201, 149, 79, .055), transparent 62%),
|
|
211
|
-
radial-gradient(45% 40% at 95% 100%, rgba(63, 156, 109, .035), transparent 62%);
|
|
212
|
-
animation: aurora 48s ease-in-out infinite alternate;
|
|
213
|
-
}
|
|
214
|
-
@keyframes aurora {
|
|
215
|
-
0% { transform: translate(0, 0) scale(1); }
|
|
216
|
-
50% { transform: translate(3%, -2%) scale(1.06); }
|
|
217
|
-
100% { transform: translate(-3%, 2%) scale(1.02); }
|
|
218
|
-
}
|
|
219
|
-
@media (prefers-reduced-motion: reduce) {
|
|
220
|
-
/* everything lands at its final state — honest for users, crisp for captures */
|
|
221
|
-
.pnl-aurora, .ag.root::before, .ag.root::after, .ag, .content, .bk-card, .tl-row, .mem-row,
|
|
222
|
-
.rule-card, .doss, .doss-rep, .bar-draft, .ag-light.fail, .mac-dot.fail { animation: none !important; }
|
|
223
|
-
}
|
|
224
|
-
/* the fit is a TRANSITION not an animation — suppress it explicitly so the org
|
|
225
|
-
snaps to its fitted size instantly under reduced-motion (honest for captures) */
|
|
226
|
-
@media (prefers-reduced-motion: reduce) { .chart { transition: none !important; } }
|
|
227
|
-
|
|
228
|
-
/* top bar */
|
|
229
|
-
.bar {
|
|
230
|
-
position: relative; z-index: 2; display: flex; align-items: center; gap: 22px;
|
|
231
|
-
padding: 14px 26px; border-bottom: 1px solid var(--line-soft);
|
|
232
|
-
background: rgba(252, 251, 249, 0.82); backdrop-filter: blur(10px);
|
|
233
|
-
flex-wrap: wrap;
|
|
234
|
-
}
|
|
235
|
-
.bar-brand { font-size: 19px; font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
|
|
236
|
-
.bar-brand b { font-weight: 600; color: var(--accent-2); }
|
|
237
|
-
.bar-stats { display: flex; gap: 18px; color: var(--ink-2); font-size: 12.5px; }
|
|
238
|
-
.bar-stats b { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 14px; }
|
|
239
|
-
.bar-stats .tap { cursor: pointer; transition: color 0.15s; }
|
|
240
|
-
.bar-stats .tap:hover { color: var(--accent); }
|
|
241
|
-
.bar-stats .tap:hover b { color: var(--accent); }
|
|
242
|
-
.bar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
|
|
243
|
-
.bar-ok { color: var(--accent); font-size: 12px; }
|
|
244
|
-
.bar-draft { color: var(--warn); font-size: 12px; animation: pulse 1.6s ease-in-out infinite; }
|
|
245
|
-
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
|
|
246
|
-
|
|
247
|
-
.btn {
|
|
248
|
-
border: 1px solid var(--line); background: var(--bg-2); color: var(--ink);
|
|
249
|
-
border-radius: 9px; padding: 8px 15px; font-size: 12.5px; cursor: pointer;
|
|
250
|
-
transition: border-color .18s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
|
|
251
|
-
}
|
|
252
|
-
.btn:hover { border-color: var(--accent); }
|
|
253
|
-
.btn:active { transform: scale(0.97); }
|
|
254
|
-
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 650; }
|
|
255
|
-
.btn.primary:disabled { opacity: 0.5; cursor: wait; }
|
|
256
|
-
.btn.ghost { background: transparent; color: var(--ink-2); }
|
|
257
|
-
|
|
258
|
-
/* tabs */
|
|
259
|
-
.tabs {
|
|
260
|
-
position: relative; z-index: 2; display: flex; gap: 4px; padding: 0 22px;
|
|
261
|
-
border-bottom: 1px solid var(--line); background: rgba(252, 251, 249, 0.7); backdrop-filter: blur(8px);
|
|
262
|
-
overflow-x: auto;
|
|
263
|
-
}
|
|
264
|
-
.tab {
|
|
265
|
-
background: none; border: none; border-bottom: 2px solid transparent; color: var(--ink-2);
|
|
266
|
-
transition: color .18s var(--ease), border-color .22s var(--ease);
|
|
267
|
-
font-size: 12.5px; padding: 12px 15px 11px; cursor: pointer; white-space: nowrap;
|
|
268
|
-
transition: color 0.15s, border-color 0.2s;
|
|
269
|
-
}
|
|
270
|
-
.tab:hover { color: var(--ink); }
|
|
271
|
-
.tab.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
|
|
272
|
-
.tab-glyph { margin-right: 5px; opacity: 0.85; }
|
|
273
|
-
|
|
274
|
-
/* every tab's content rises in — the key on .content retriggers it */
|
|
275
|
-
.content { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; min-height: 0; animation: rise 0.28s ease both; }
|
|
276
|
-
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
|
|
277
|
-
|
|
278
|
-
.screen { flex: 1; overflow-y: auto; padding: 30px 34px 60px; max-width: 900px; }
|
|
279
|
-
.scr-title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 6px; }
|
|
280
|
-
.scr-count { font-size: 12px; background: var(--accent-dim); color: var(--accent); border-radius: 99px; padding: 3px 10px; font-variant-numeric: tabular-nums; }
|
|
281
|
-
.scr-sub { color: var(--ink-2); font-size: 12.5px; margin: 0 0 24px; }
|
|
282
|
-
.scr-empty { color: var(--ink-3); font-size: 13px; line-height: 1.6; }
|
|
283
|
-
.scr-empty code, .scr-sub code { font-family: var(--mono); background: var(--bg-2); padding: 1px 6px; border-radius: 5px; font-size: 11.5px; }
|
|
284
|
-
.pnl-back { background: none; border: 1px solid var(--line); color: var(--ink-2); border-radius: 8px; padding: 6px 12px; font-size: 12px; cursor: pointer; margin-bottom: 16px; }
|
|
285
|
-
.pnl-back:hover { border-color: var(--accent); color: var(--accent); }
|
|
286
|
-
|
|
287
|
-
/* buckets */
|
|
288
|
-
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 13px; }
|
|
289
|
-
.bk-card {
|
|
290
|
-
text-align: left; background: var(--bg-1); border: 1px solid var(--line); border-radius: 15px;
|
|
291
|
-
padding: 17px 18px; cursor: pointer; transition: border-color 0.15s, transform 0.12s, box-shadow 0.2s;
|
|
292
|
-
animation: settle 0.4s ease both;
|
|
293
|
-
}
|
|
294
|
-
.bk-card:hover { border-color: hsl(var(--h) 45% 55% / 0.6); transform: translateY(-2px); box-shadow: 0 8px 26px hsl(var(--h) 50% 50% / 0.10); }
|
|
295
|
-
.bk-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
|
|
296
|
-
.bk-dot { width: 9px; height: 9px; border-radius: 50%; background: hsl(var(--h) 55% 60%); box-shadow: 0 0 9px hsl(var(--h) 55% 60% / 0.7); display: inline-block; }
|
|
297
|
-
.bk-name { font-size: 14px; font-weight: 650; }
|
|
298
|
-
.bk-n { font-size: 27px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1; }
|
|
299
|
-
.bk-n.dim { color: var(--ink-3); }
|
|
300
|
-
.bk-l { font-size: 9.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
|
|
301
|
-
.bk-crew { display: flex; gap: 4px; margin-top: 13px; flex-wrap: wrap; }
|
|
302
|
-
.bk-face {
|
|
303
|
-
width: 24px; height: 24px; display: grid; place-items: center; font-size: 12px;
|
|
304
|
-
border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line);
|
|
305
|
-
}
|
|
306
|
-
.bk-more { font-size: 10px; color: var(--ink-3); align-self: center; }
|
|
307
|
-
.bk-agents { margin-top: 8px; font-size: 10.5px; color: var(--ink-3); line-height: 1.5; }
|
|
308
|
-
|
|
309
|
-
.mem-list { display: flex; flex-direction: column; gap: 6px; }
|
|
310
|
-
.mem-row {
|
|
311
|
-
display: flex; align-items: baseline; gap: 13px; background: var(--bg-1);
|
|
312
|
-
border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; animation: settle 0.35s ease both;
|
|
313
|
-
}
|
|
314
|
-
.mem-when { font-size: 10.5px; color: var(--accent-2); white-space: nowrap; min-width: 68px; font-variant-numeric: tabular-nums; }
|
|
315
|
-
.mem-label { font-size: 13px; }
|
|
316
|
-
|
|
317
|
-
/* reports timeline */
|
|
318
|
-
.rep-filter { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 20px; }
|
|
319
|
-
.chip.tap { cursor: pointer; transition: transform 0.1s, background 0.15s; }
|
|
320
|
-
.chip.tap:hover { transform: translateY(-1px); }
|
|
321
|
-
.timeline { position: relative; padding-left: 22px; }
|
|
322
|
-
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
|
|
323
|
-
.tl-row { position: relative; margin-bottom: 15px; animation: settle 0.35s ease both; }
|
|
324
|
-
.tl-dot {
|
|
325
|
-
position: absolute; left: -21px; top: 12px; width: 9px; height: 9px; border-radius: 50%;
|
|
326
|
-
background: hsl(var(--h) 55% 60%); box-shadow: 0 0 9px hsl(var(--h) 55% 60% / 0.7);
|
|
327
|
-
}
|
|
328
|
-
.tl-body { background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 11px 15px; transition: border-color 0.15s, transform 0.12s; }
|
|
329
|
-
.tl-row:hover .tl-body { border-color: hsl(var(--h) 45% 50% / 0.5); transform: translateX(2px); }
|
|
330
|
-
.tl-top { display: flex; align-items: center; gap: 8px; }
|
|
331
|
-
.tl-ava {
|
|
332
|
-
width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; font-size: 12px;
|
|
333
|
-
border-radius: 7px; background: hsl(var(--h) 42% 22% / 0.8); border: 1px solid hsl(var(--h) 45% 45% / 0.3);
|
|
334
|
-
}
|
|
335
|
-
.tl-agent { font-size: 12.5px; font-weight: 650; }
|
|
336
|
-
.tl-when { font-size: 10.5px; color: var(--ink-3); margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
337
|
-
.tl-label { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
338
|
-
.tl-sum { margin: 7px 0 0 32px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
|
|
339
|
-
|
|
340
|
-
/* rules */
|
|
341
|
-
.rule-list { display: flex; flex-direction: column; gap: 9px; }
|
|
342
|
-
.rule-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: 11px; padding: 12px 15px 10px; animation: settle 0.35s ease both; transition: border-color 0.15s; }
|
|
343
|
-
.rule-card:hover { border-color: var(--accent); }
|
|
344
|
-
.rule-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }
|
|
345
|
-
.rule-ref { font-family: var(--mono); font-size: 12.5px; }
|
|
346
|
-
.rule-scope { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); background: var(--accent-dim); border-radius: 5px; padding: 2px 7px; }
|
|
347
|
-
.rule-meta { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
|
|
348
|
-
.rule-meta b { color: var(--ink-2); font-weight: 600; }
|
|
349
|
-
.rule-bar { margin-top: 9px; height: 3px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
|
|
350
|
-
.rule-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.6s ease; }
|
|
351
|
-
|
|
352
|
-
/* graph */
|
|
353
|
-
.graph-wrap { flex: 1; min-height: 0; display: flex; }
|
|
354
|
-
.graph-frame { flex: 1; border: none; background: #06080e; }
|
|
355
|
-
|
|
356
|
-
/* dossier extras */
|
|
357
|
-
.doss-head-actions { margin-left: auto; display: flex; gap: 6px; }
|
|
358
|
-
.doss-3d { background: var(--accent-dim); border: 1px solid rgba(79, 184, 160, 0.35); color: var(--accent); border-radius: 8px; padding: 6px 10px; font-size: 11px; cursor: pointer; white-space: nowrap; }
|
|
359
|
-
.doss-3d:hover { border-color: var(--accent); }
|
|
360
|
-
|
|
361
|
-
/* dossier edit mode — every field of the agent, saved into the draft */
|
|
362
|
-
.doss-edit { display: flex; flex-direction: column; gap: 10px; background: var(--bg-1); border: 1px solid rgba(79, 184, 160, 0.3); border-radius: 12px; padding: 13px 14px; margin-bottom: 20px; animation: settle 0.25s ease both; }
|
|
363
|
-
.doss-edit label { display: flex; flex-direction: column; gap: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); }
|
|
364
|
-
.doss-edit label em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--ink-3); font-size: 9.5px; }
|
|
365
|
-
.doss-edit input, .doss-edit textarea { background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; font-family: var(--font); resize: vertical; }
|
|
366
|
-
.doss-edit input:focus, .doss-edit textarea:focus { outline: none; border-color: var(--accent); }
|
|
367
|
-
.doss-edit-row2 { display: grid; grid-template-columns: 1fr 72px; gap: 8px; }
|
|
368
|
-
.doss-edit-actions { display: flex; gap: 8px; margin-top: 2px; }
|
|
369
|
-
|
|
370
|
-
/* machine trays — the automations an agent operates, chips with health lights */
|
|
371
|
-
/* the machine rack — a recessed slot flush under the owner's card */
|
|
372
|
-
.oc-tray {
|
|
373
|
-
display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
|
|
374
|
-
max-width: 210px; margin-top: -4px; padding: 10px 8px 7px;
|
|
375
|
-
background: transparent; border: 0; padding: 8px 0 0;
|
|
376
|
-
}
|
|
377
|
-
.oc-tray.fail { border-color: rgba(224, 123, 106, 0.5); box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.5), 0 6px 18px -8px rgba(224, 123, 106, 0.28); }
|
|
378
|
-
.oc-tray.warn { border-color: rgba(217, 160, 91, 0.42); }
|
|
379
|
-
.oc-mac {
|
|
380
|
-
display: inline-flex; align-items: center; gap: 6px;
|
|
381
|
-
background: var(--bg-2); border: 1px solid var(--line);
|
|
382
|
-
border-radius: 8px; padding: 5px 9px; cursor: pointer;
|
|
383
|
-
font-family: var(--mono); font-size: 9.5px; color: var(--ink-2);
|
|
384
|
-
transition: border-color .18s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
|
|
385
|
-
}
|
|
386
|
-
.oc-mac:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
|
|
387
|
-
.oc-mac.sel { border-color: var(--accent); background: var(--accent-dim); color: var(--ink); }
|
|
388
|
-
.oc-mac.more { color: var(--ink-3); font-style: italic; }
|
|
389
|
-
.oc-mac.dragging { opacity: 0.45; cursor: grabbing; }
|
|
390
|
-
.oc-mac.more:hover { color: var(--accent); }
|
|
391
|
-
.mac-emoji { font-size: 11px; }
|
|
392
|
-
/* real vendor marks, tinted to the house so twelve logos read as one system.
|
|
393
|
-
Full brand colour on hover — recognition when you want it, calm when you
|
|
394
|
-
don't. */
|
|
395
|
-
/* the hero's treatment: a real vendor mark on a WHITE chip. Twelve tinted
|
|
396
|
-
monochrome logos read as a sticker album; twelve white chips read as a rack
|
|
397
|
-
of real systems — and it is the one thing on the old board that already
|
|
398
|
-
looked genuine, so everything else was raised to it rather than it lowered. */
|
|
399
|
-
.mac-brand {
|
|
400
|
-
width: 24px; height: 24px; flex: 0 0 24px; display: block;
|
|
401
|
-
background: var(--bg-2); border: 1px solid var(--line); border-radius: 7px;
|
|
402
|
-
padding: 4px; box-sizing: border-box;
|
|
403
|
-
transition: transform .2s ease, box-shadow .2s ease;
|
|
404
|
-
}
|
|
405
|
-
.oc-mac:hover .mac-brand,
|
|
406
|
-
.oc-mac.sel .mac-brand { transform: scale(1.06); box-shadow: 0 5px 14px -5px rgba(0, 0, 0, 0.85); }
|
|
407
|
-
.mac-name { white-space: nowrap; max-width: 76px; overflow: hidden; text-overflow: ellipsis; }
|
|
408
|
-
.mac-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; display: inline-block; }
|
|
409
|
-
.mac-dot.ok { background: var(--accent); box-shadow: 0 0 6px rgba(79, 184, 160, 0.7); }
|
|
410
|
-
.mac-dot.warn { background: var(--warn); box-shadow: 0 0 6px rgba(224, 180, 95, 0.7); }
|
|
411
|
-
.mac-dot.fail { background: #e07b6a; box-shadow: 0 0 7px rgba(224, 123, 106, 0.8); animation: pulse 1.4s ease-in-out infinite; }
|
|
412
|
-
.mac-dot.none { background: var(--ink-3); }
|
|
413
|
-
/* green, but it failed earlier in the window — a faint amber ring, never a tint */
|
|
414
|
-
.mac-dot.ok.unstable { box-shadow: 0 0 6px rgba(79, 184, 160, 0.7), 0 0 0 2px rgba(224, 180, 95, 0.3); }
|
|
415
|
-
|
|
416
|
-
/* automation dossier health header */
|
|
417
|
-
.doss-health {
|
|
418
|
-
display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
|
|
419
|
-
background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px;
|
|
420
|
-
padding: 10px 13px; margin-bottom: 16px; font-size: 11.5px; color: var(--ink-2);
|
|
421
|
-
}
|
|
422
|
-
.doss-health b { color: var(--ink); font-size: 12px; }
|
|
423
|
-
.doss-health.fail { border-color: rgba(224, 123, 106, 0.5); }
|
|
424
|
-
.doss-health.warn { border-color: rgba(224, 180, 95, 0.4); }
|
|
425
|
-
.doss-health.ok { border-color: rgba(79, 184, 160, 0.35); }
|
|
426
|
-
.doss-auto-when { margin-left: auto; font-size: 10px; color: var(--ink-3); white-space: nowrap; }
|
|
427
|
-
|
|
428
|
-
/* automations — machines an agent operates, listed in its dossier */
|
|
429
|
-
.auto-badge { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--warn); background: rgba(224, 180, 95, 0.1); border: 1px solid rgba(224, 180, 95, 0.3); border-radius: 5px; padding: 2px 7px; vertical-align: middle; margin-left: 6px; }
|
|
430
|
-
.doss-autos { display: flex; flex-direction: column; gap: 5px; }
|
|
431
|
-
.doss-auto { display: flex; align-items: baseline; gap: 9px; text-align: left; background: var(--bg-1); border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; cursor: pointer; transition: border-color 0.15s; }
|
|
432
|
-
.doss-auto:hover { border-color: var(--warn); }
|
|
433
|
-
.doss-auto-emoji { font-size: 13px; }
|
|
434
|
-
.doss-auto-name { font-size: 12px; font-weight: 600; white-space: nowrap; }
|
|
435
|
-
.doss-auto-role { font-size: 10.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
436
|
-
|
|
437
|
-
.doss-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
|
|
438
|
-
.btn.danger { border-color: rgba(224, 123, 106, 0.45); color: #e07b6a; background: transparent; }
|
|
439
|
-
.btn.danger:hover { background: rgba(224, 123, 106, 0.1); }
|
|
440
|
-
.bk-agents.unassigned { color: var(--ink-3); font-style: italic; }
|
|
441
|
-
|
|
442
|
-
.pending {
|
|
443
|
-
position: relative; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
|
|
444
|
-
padding: 10px 26px; border-bottom: 1px solid var(--line); background: var(--warn-wash);
|
|
445
|
-
}
|
|
446
|
-
.pending-lead {
|
|
447
|
-
font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
|
|
448
|
-
color: var(--warn); margin-right: 2px;
|
|
449
|
-
}
|
|
450
|
-
/* every pending change is its own undo button. A global discard makes one
|
|
451
|
-
mis-drop cost every other edit, so people stop dragging entirely. */
|
|
452
|
-
.pending-item {
|
|
453
|
-
display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
|
|
454
|
-
font-size: 11.5px; font-family: var(--mono); color: var(--ink-2);
|
|
455
|
-
background: var(--bg-1); border: 1px solid var(--line); border-radius: 100px;
|
|
456
|
-
padding: 4px 6px 4px 12px;
|
|
457
|
-
transition: border-color .18s var(--ease), color .18s ease, transform .16s var(--ease);
|
|
458
|
-
}
|
|
459
|
-
.pending-item i {
|
|
460
|
-
font-style: normal; font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase;
|
|
461
|
-
color: var(--warn); border: 1px solid rgba(184,134,44,.3); border-radius: 100px; padding: 2px 7px;
|
|
462
|
-
transition: background .18s ease, color .18s ease;
|
|
463
|
-
}
|
|
464
|
-
.pending-item:hover { border-color: var(--warn); color: var(--ink); transform: translateY(-1px); }
|
|
465
|
-
.pending-item:hover i { background: var(--warn); color: var(--bg-1); }
|
|
466
|
-
|
|
467
|
-
/* the lane lights up as a drop target, so a near-miss is impossible */
|
|
468
|
-
.oc-row.lanes > .oc-child.lane-over {
|
|
469
|
-
border-color: var(--accent); background: var(--accent-dim);
|
|
470
|
-
box-shadow: 0 0 0 3px var(--accent-dim), var(--sh-2);
|
|
471
|
-
}
|
|
472
|
-
.pnl-err { position: relative; z-index: 2; padding: 10px 26px; color: #e07b6a; font-size: 12.5px; }
|
|
473
|
-
|
|
474
|
-
/* layout — 100% so a HOST container decides the height (embedded panel);
|
|
475
|
-
the standalone app gives html/body/#root 100%, so served behaviour is unchanged. */
|
|
476
|
-
.pnl { height: 100%; min-height: 480px; }
|
|
477
|
-
.body { position: relative; z-index: 1; flex: 1; display: flex; min-height: 0; }
|
|
478
|
-
.tree { position: relative; flex: 1; min-width: 0; padding: 24px 26px 24px; overflow: hidden;
|
|
479
|
-
display: flex; flex-direction: column;
|
|
480
|
-
/* the ground plane: a faint dot grid (engineered surface, drag affordance)
|
|
481
|
-
+ a verdigris pool anchoring the eye at the root. Static — capture-safe. */
|
|
482
|
-
background:
|
|
483
|
-
radial-gradient(900px 420px at 50% 120px, rgba(79, 184, 160, 0.05), transparent 70%),
|
|
484
|
-
radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.5px);
|
|
485
|
-
background-size: auto, 28px 28px;
|
|
486
|
-
}
|
|
487
|
-
.tree-hint { color: var(--ink-3); font-family: var(--mono); font-size: 10px; letter-spacing: .05em; margin: 0 0 14px; text-align: center; }
|
|
488
|
-
|
|
489
|
-
/* ── RANK HEADERS (from the ministry organigram) ───────────────────────────
|
|
490
|
-
Rank is NAMED, never inferred from indentation. Roman numerals + a rule
|
|
491
|
-
under each, spanning the columns the cascade actually occupies. */
|
|
492
|
-
/* four headers over the four real cascade columns: law · gm · departments ·
|
|
493
|
-
staff. Widths mirror .cascade so a header sits over the column it names —
|
|
494
|
-
headers labelling columns that do not exist is worse than no headers. */
|
|
495
|
-
.ranks {
|
|
496
|
-
display: grid;
|
|
497
|
-
grid-template-columns: 232px var(--rail-w, 56px) 268px var(--rail-w, 56px) minmax(232px, 300px) var(--rail-w, 56px) 1fr;
|
|
498
|
-
margin: 0 0 16px; padding: 0 16px; flex: 0 0 auto;
|
|
499
|
-
}
|
|
500
|
-
.rank:nth-child(1) { grid-column: 1; }
|
|
501
|
-
.rank:nth-child(2) { grid-column: 3; }
|
|
502
|
-
.rank:nth-child(3) { grid-column: 5; }
|
|
503
|
-
.rank:nth-child(4) { grid-column: 7; }
|
|
504
|
-
.rank {
|
|
505
|
-
font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
|
|
506
|
-
color: var(--ink-3); padding-bottom: 8px; border-bottom: 1px solid rgba(217, 160, 91, 0.16);
|
|
507
|
-
position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
508
|
-
}
|
|
509
|
-
.rank b { color: var(--brass); font-weight: 500; margin-right: 7px; }
|
|
510
|
-
.rank::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 24px; height: 1px; background: var(--brass); }
|
|
511
|
-
|
|
512
|
-
/* the constellation — the hero's own atmosphere, drawn once behind the rack.
|
|
513
|
-
Gradient + points only; NO grain/noise overlay (it read as a blurry filter
|
|
514
|
-
smeared across the board). */
|
|
515
|
-
.pnl-stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; width: 100%; height: 100%; }
|
|
516
|
-
|
|
517
|
-
/* THE COMPANY CHART — root on top, branches fanning beneath. Connectors are
|
|
518
|
-
crafted: curved elbows at the row's ends, branch-hued drops, a glowing
|
|
519
|
-
junction node where the parent's line meets the bar. Pure CSS. */
|
|
520
|
-
/* the measuring viewport — flex:1 + min-height:0 lets it consume the height
|
|
521
|
-
.tree gives it; align/justify center the scaled block for narrow orgs. */
|
|
522
|
-
/* Always scrollable. It used to be overflow:hidden unless the user manually
|
|
523
|
-
zoomed — safe only while auto-fit guaranteed the whole board fit one screen.
|
|
524
|
-
A lane board grows downward, so that assumption sealed every lane below the
|
|
525
|
-
fold behind an invisible wall. */
|
|
526
|
-
.chart-fit { position: relative; flex: 1; min-height: 0; display: flex; align-items: flex-start; justify-content: center; overflow: auto; }
|
|
527
|
-
/* transform:scale() does not change layout size, so the scaled block gets a
|
|
528
|
-
spacer sized to its VISUAL footprint — otherwise the scroll extent is the
|
|
529
|
-
unscaled height and you scroll into empty space. */
|
|
530
|
-
/* overflow:hidden clips the UNSCALED layout box of the absolutely-positioned
|
|
531
|
-
chart, which otherwise adds its full natural height to the scroll extent —
|
|
532
|
-
~900px of empty scroll past the last lane. The visual (scaled) content is
|
|
533
|
-
exactly the spacer's size, so nothing real is clipped. */
|
|
534
|
-
.chart-scaled { position: relative; flex: 0 0 auto; overflow: hidden; }
|
|
535
|
-
.chart-scaled > .chart { position: absolute; top: 0; left: 50%; transform-origin: top center; }
|
|
536
|
-
.chart-fit.zoomed .chart-scaled > .chart { left: 0; transform-origin: top left; }
|
|
537
|
-
/* user-zoomed: native scroll is the pan; top-left origin keeps the scaled
|
|
538
|
-
overflow fully reachable (top/center origin would clip the left half). */
|
|
539
|
-
.chart-fit.zoomed { overflow: auto; justify-content: flex-start; }
|
|
540
|
-
.chart-fit.zoomed .chart { transform-origin: top left; }
|
|
541
|
-
.zoomer {
|
|
542
|
-
position: absolute; right: 34px; bottom: 32px; z-index: 3; display: flex; align-items: center; gap: 2px;
|
|
543
|
-
font-family: var(--mono); font-size: 11px; color: var(--ink-2);
|
|
544
|
-
background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px;
|
|
545
|
-
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
|
|
546
|
-
}
|
|
547
|
-
.zoomer button {
|
|
548
|
-
all: unset; cursor: pointer; padding: 2px 8px; border-radius: 5px; color: var(--ink-2);
|
|
549
|
-
font-family: var(--mono); font-size: 12px; line-height: 1.4;
|
|
550
|
-
}
|
|
551
|
-
.zoomer button:hover { background: var(--accent-dim); color: var(--ink); }
|
|
552
|
-
.zoomer button.on { color: var(--accent); }
|
|
553
|
-
.zoomer-pct { min-width: 40px; text-align: center; color: var(--ink-3); }
|
|
554
|
-
.zoomer-sep { width: 1px; height: 16px; background: var(--line); margin: 0 2px; }
|
|
555
|
-
|
|
556
|
-
/* ── the ledger shelf: every bucket as a pigeonhole, hover a role to see its
|
|
557
|
-
reach. Docked under the chart, always visible — the memory half of the
|
|
558
|
-
two pillars (structure above, memory below), never a separate tab. */
|
|
559
|
-
.ledger-shelf {
|
|
560
|
-
position: relative; z-index: 2; flex: 0 0 auto; margin-top: 14px;
|
|
561
|
-
padding: 10px 16px 12px; border-radius: 10px;
|
|
562
|
-
border: 1px solid var(--line); background: var(--bg-1); box-shadow: var(--sh-2);
|
|
563
|
-
width: min(1180px, 92vw);
|
|
564
|
-
}
|
|
565
|
-
.shelf-label {
|
|
566
|
-
display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
|
|
567
|
-
text-transform: uppercase; color: var(--brass); margin-bottom: 8px;
|
|
568
|
-
}
|
|
569
|
-
.shelf-slots { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
570
|
-
.shelf-slot {
|
|
571
|
-
font-family: var(--mono); font-size: 10px; color: var(--ink-3);
|
|
572
|
-
background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px;
|
|
573
|
-
padding: 4px 9px; transition: border-color .18s ease, color .18s ease, box-shadow .25s ease, transform .18s ease;
|
|
574
|
-
}
|
|
575
|
-
.shelf-slot.lit {
|
|
576
|
-
color: var(--brass-hi); border-color: var(--brass); transform: translateY(-1px);
|
|
577
|
-
box-shadow: 0 0 0 1px rgba(201, 160, 74, 0.3), 0 6px 16px -6px rgba(201, 160, 74, 0.5);
|
|
578
|
-
background: rgba(201, 160, 74, 0.1);
|
|
579
|
-
}
|
|
580
|
-
.shelf-slot.sealed { color: var(--ink-3); font-style: italic; border-style: dashed; opacity: 0.75; }
|
|
581
|
-
.shelf-slot.sealed.lit { color: var(--ink-3); border-color: var(--line); background: var(--bg-2); box-shadow: none; transform: none; }
|
|
582
|
-
@media (prefers-reduced-motion: reduce) { .shelf-slot { transition: none; } }
|
|
583
|
-
|
|
584
|
-
/* the law toggle in the top bar */
|
|
585
|
-
.law-toggle { font-family: var(--mono); letter-spacing: 0.02em; }
|
|
586
|
-
.law-toggle.on { color: var(--brass-hi); border-color: var(--brass); background: rgba(201, 160, 74, 0.12); }
|
|
587
|
-
/* min-width:max-content keeps connectors geometrically correct at natural size
|
|
588
|
-
BEFORE scaling; the measured --fit shrinks the whole block toward its head. */
|
|
589
|
-
/* transform is set inline by Panel.tsx (see the note there) — only origin,
|
|
590
|
-
sizing and the easing live here. */
|
|
591
|
-
.chart {
|
|
592
|
-
min-width: max-content; padding: 8px 14px 20px;
|
|
593
|
-
transform-origin: top center; position: relative; /* the rail plane's origin */
|
|
594
|
-
transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform;
|
|
595
|
-
}
|
|
596
|
-
/* plates sit above the rail plane */
|
|
597
|
-
.chart .cascade { position: relative; z-index: 1; }
|
|
598
|
-
|
|
599
|
-
/* rank I — the law. Brass-edged like the GM but unfilled: it is a document,
|
|
600
|
-
not an operator. */
|
|
601
|
-
.law-plate { width: 232px; cursor: pointer; }
|
|
602
|
-
.law-plate .ag-ava { font-family: var(--display); color: var(--accent); }
|
|
603
|
-
.law-plate .ag-name { color: var(--accent); font-size: 13px; }
|
|
604
|
-
.law-plate .ag-role { word-break: break-all; }
|
|
605
|
-
/* ── THE CASCADE (master-key structure) ───────────────────────────────────
|
|
606
|
-
Rank runs LEFT TO RIGHT, one column each, exactly as a master-key chart
|
|
607
|
-
reads: THE STANDARD → GM → departments → staff. Two nested grids give the
|
|
608
|
-
four columns; the brass elbows between them are drawn by CascadeRails as
|
|
609
|
-
one measured SVG (orthogonal geometry between arbitrary boxes is not a
|
|
610
|
-
thing CSS pseudo-elements can do honestly). */
|
|
611
|
-
.cascade {
|
|
612
|
-
display: grid;
|
|
613
|
-
grid-template-columns: max-content var(--rail-w, 56px) 1fr;
|
|
614
|
-
/* START, not centre. Centring is right for a 3-branch key chart; with nine
|
|
615
|
-
departments the stack is ~2,200px tall, so it buried the master key and the
|
|
616
|
-
GM below the fold — the two plates that must be seen first. Top-aligned
|
|
617
|
-
also matches the ministry chart's reading order. */
|
|
618
|
-
align-items: start;
|
|
619
|
-
}
|
|
620
|
-
.cascade > .law-plate { grid-column: 1; }
|
|
621
|
-
.cascade > .ocn { grid-column: 3; }
|
|
622
|
-
|
|
623
|
-
/* rank II–IV live inside the root .ocn, which is itself a cascade */
|
|
624
|
-
.cascade > .ocn {
|
|
625
|
-
display: grid;
|
|
626
|
-
/* the lanes column is BOUNDED so staff wrap inside their lane. Left at 1fr
|
|
627
|
-
under .chart's max-content sizing it grew to fit every staff plate on one
|
|
628
|
-
row — 2,400px natural width, which fit-to-width then scaled to 52% and made
|
|
629
|
-
every plate unreadable. Rank IV wraps; the board stays legible. */
|
|
630
|
-
grid-template-columns: max-content var(--rail-w, 56px) minmax(420px, 940px);
|
|
631
|
-
grid-template-areas: "gm rail lanes";
|
|
632
|
-
align-items: start;
|
|
633
|
-
}
|
|
634
|
-
.cascade > .ocn > .casc-head { grid-area: gm; display: flex; flex-direction: column; align-items: stretch; }
|
|
635
|
-
.cascade > .ocn > .oc-down { grid-area: rail; }
|
|
636
|
-
.cascade > .ocn > .oc-row.lanes { grid-area: lanes; }
|
|
637
|
-
|
|
638
|
-
/* the SVG rail plane — sits under the plates, never intercepts a click */
|
|
639
|
-
.rails { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: visible; width: 100%; height: 100%; }
|
|
640
|
-
|
|
641
|
-
.ocn { display: flex; flex-direction: column; align-items: center; }
|
|
642
|
-
/* the connective tissue reads brass everywhere — a company chart drawn with
|
|
643
|
-
the house's own material, not a generic diagram line. */
|
|
644
|
-
.oc-down { width: 2px; height: 18px; position: relative; background: var(--brass-line); opacity: 0.75; }
|
|
645
|
-
.oc-down::after { content: ""; position: absolute; bottom: -2px; left: 50%;
|
|
646
|
-
width: 5px; height: 5px; transform: translateX(-50%); border-radius: 50%;
|
|
647
|
-
background: var(--brass-hi); box-shadow: 0 0 8px rgba(201, 160, 74, 0.55); }
|
|
648
|
-
.oc-row { display: flex; align-items: flex-start; }
|
|
649
|
-
|
|
650
|
-
/* ── THE STAFF BOARD: departments as lanes, stacking DOWNWARD ──────────────
|
|
651
|
-
Nine departments fanned sideways forced a canvas nobody could read at 17%
|
|
652
|
-
zoom. Each lane is a row of the board: a brass rail down the left, the
|
|
653
|
-
head's card, then its people flowing right and wrapping inside the lane.
|
|
654
|
-
The board scrolls like a document; every card stays at legible size. */
|
|
655
|
-
/* the lanes are rank III+IV: one shelf per department, stacked. Width now comes
|
|
656
|
-
from the cascade's 1fr column, not a hardcoded viewport clamp. */
|
|
657
|
-
.oc-row.lanes {
|
|
658
|
-
flex-direction: column;
|
|
659
|
-
align-items: stretch;
|
|
660
|
-
gap: 14px;
|
|
661
|
-
padding-top: 0;
|
|
662
|
-
width: 100%;
|
|
663
|
-
}
|
|
664
|
-
/* a lane is a SHELF on the rack — a hairline tray, not a coloured panel. The
|
|
665
|
-
old lane had a hash-hue left border and tint per department; the rack is one
|
|
666
|
-
material throughout and the department is named, not coloured. */
|
|
667
|
-
.oc-row.lanes > .oc-child {
|
|
668
|
-
flex: 1 1 auto;
|
|
669
|
-
position: relative;
|
|
670
|
-
border: 1px solid var(--line);
|
|
671
|
-
border-radius: 18px;
|
|
672
|
-
background: var(--surface-tray);
|
|
673
|
-
padding: 16px 18px 18px;
|
|
674
|
-
transition: border-color .25s ease, box-shadow .35s var(--ease);
|
|
675
|
-
}
|
|
676
|
-
.oc-row.lanes > .oc-child:hover { border-color: var(--line-2, #d9d3c9); box-shadow: var(--sh-2); }
|
|
677
|
-
@media (prefers-reduced-motion: reduce) {
|
|
678
|
-
.oc-row.lanes > .oc-child:hover { transform: none; }
|
|
679
|
-
}
|
|
680
|
-
/* lanes own their connectors — kill the fan's drop-lines inside them */
|
|
681
|
-
.oc-row.lanes > .oc-child::before,
|
|
682
|
-
.oc-row.lanes > .oc-child::after { display: none; }
|
|
683
|
-
.oc-row.lanes > .oc-child > .ocn > .oc-down { display: none; }
|
|
684
|
-
|
|
685
|
-
/* inside a lane: head card top-left, its service tray beneath the head, a
|
|
686
|
-
brass rail column, its people filling the right. Explicit areas — an
|
|
687
|
-
implicit 2-column grid put the tray in the staff slot the moment every
|
|
688
|
-
department gained services, which shunted the people into a one-card
|
|
689
|
-
column. The rail column is the elbow HANDOFF.md flagged as hidden: the
|
|
690
|
-
department head commanding its people, drawn once, orthogonally. */
|
|
691
|
-
.oc-row.lanes > .oc-child > .ocn {
|
|
692
|
-
display: grid;
|
|
693
|
-
grid-template-columns: minmax(278px, 300px) var(--rail-w, 56px) 1fr;
|
|
694
|
-
grid-template-areas:
|
|
695
|
-
"head rail staff"
|
|
696
|
-
"macs rail staff";
|
|
697
|
-
grid-template-rows: auto 1fr;
|
|
698
|
-
align-items: start;
|
|
699
|
-
gap: 10px 0;
|
|
700
|
-
}
|
|
701
|
-
.oc-row.lanes > .oc-child > .ocn > .ag { grid-area: head; }
|
|
702
|
-
.oc-row.lanes > .oc-child > .ocn > .oc-tray { grid-area: macs; }
|
|
703
|
-
.oc-row.lanes > .oc-child > .ocn > .oc-row { grid-area: staff; margin-left: 4px; }
|
|
704
|
-
|
|
705
|
-
/* the rail: a vertical brass spine for the department, capped where it meets
|
|
706
|
-
the head, with one orthogonal branch reaching into the staff block. This
|
|
707
|
-
is the ".oc-down" element — hidden below (line ~490 in the old cascade),
|
|
708
|
-
here it's re-purposed as the rail instead of the plain tree drop-line. */
|
|
709
|
-
.oc-row.lanes > .oc-child > .ocn > .oc-down {
|
|
710
|
-
display: block; grid-area: rail; position: relative; width: 100%; height: 100%;
|
|
711
|
-
min-height: 44px;
|
|
712
|
-
/* the base .oc-down is a 2px-wide FILLED brass drop-line. Widening it to the
|
|
713
|
-
rail column without clearing its background painted a solid brass slab down
|
|
714
|
-
every lane — the rail is drawn by ::before/::after, not by the box itself. */
|
|
715
|
-
background: none;
|
|
716
|
-
}
|
|
717
|
-
/* No ::before/::after brass here any more — the SVG rail plane draws every
|
|
718
|
-
connector from measured box positions. Leaving these would double each rail. */
|
|
719
|
-
|
|
720
|
-
/* semantic zoom lever: the rail itself is the fold/unfold control at the
|
|
721
|
-
department level — house → department → role, one click at a time. */
|
|
722
|
-
.oc-down.foldable { cursor: pointer; }
|
|
723
|
-
.oc-down.foldable:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
|
|
724
|
-
.oc-fold-glyph {
|
|
725
|
-
position: absolute; left: 50%; top: 22px; transform: translate(-50%, -50%);
|
|
726
|
-
font-style: normal; font-size: 10px; line-height: 1; width: 15px; height: 15px;
|
|
727
|
-
display: grid; place-items: center; border-radius: 50%;
|
|
728
|
-
background: var(--bg-1); border: 1px solid var(--line-2); color: var(--accent);
|
|
729
|
-
transition: transform .15s ease, background .15s ease;
|
|
730
|
-
}
|
|
731
|
-
.oc-down.foldable:hover .oc-fold-glyph { background: rgba(201, 160, 74, 0.18); transform: translate(-50%, -50%) scale(1.15); }
|
|
732
|
-
.oc-down.folded .oc-fold-glyph { color: var(--ink-2); border-color: var(--line); }
|
|
733
|
-
|
|
734
|
-
/* the folded department: head visible, staff summarised to one line — the
|
|
735
|
-
"department" rung of house → department → role. */
|
|
736
|
-
.oc-folded-summary {
|
|
737
|
-
grid-area: staff; align-self: center; justify-self: start; text-align: left;
|
|
738
|
-
background: none; border: 1px dashed var(--line); border-radius: 8px;
|
|
739
|
-
padding: 9px 13px; margin-left: 4px; cursor: pointer;
|
|
740
|
-
font-family: var(--mono); font-size: 11px; color: var(--ink-3);
|
|
741
|
-
transition: border-color .15s ease, color .15s ease;
|
|
742
|
-
}
|
|
743
|
-
.oc-folded-summary:hover { border-color: var(--brass); color: var(--brass-hi); }
|
|
744
|
-
/* "show the law": the SAME rails, re-read as authority. The SVG plane swaps to
|
|
745
|
-
a travelling dashed brass so the law is seen flowing down the cascade. */
|
|
746
|
-
.rail-line { stroke: var(--line-2, #d9d3c9); stroke-width: 1.5; stroke-linecap: round; fill: none; }
|
|
747
|
-
.rail-dash { stroke: var(--accent-2); stroke-width: 1; fill: none; stroke-dasharray: 2 9; opacity: 0; }
|
|
748
|
-
.law-on .rail-line { stroke: var(--brass-hi); stroke-width: 1.9; opacity: .9; }
|
|
749
|
-
.law-on .rail-dash { opacity: .95; animation: rail-flow 700ms linear infinite; }
|
|
750
|
-
@keyframes rail-flow { to { stroke-dashoffset: -11; } }
|
|
751
|
-
@media (prefers-reduced-motion: reduce) { .law-on .rail-dash { animation: none; } }
|
|
752
|
-
|
|
753
|
-
/* the tray is the department's stack of real services — one per line, so the
|
|
754
|
-
vendor marks read as a list of systems rather than a scatter of chips */
|
|
755
|
-
.oc-row.lanes > .oc-child > .ocn > .oc-tray {
|
|
756
|
-
display: flex; flex-direction: column; align-items: stretch;
|
|
757
|
-
gap: 4px; margin: 0; padding: 0; max-width: 232px;
|
|
758
|
-
}
|
|
759
|
-
.oc-row.lanes > .oc-child > .ocn > .oc-tray > .oc-mac { justify-content: flex-start; width: 100%; }
|
|
760
|
-
.oc-row.lanes > .oc-child > .ocn > .oc-tray > .oc-mac .mac-name { max-width: none; }
|
|
761
|
-
|
|
762
|
-
@media (max-width: 820px) {
|
|
763
|
-
.oc-row.lanes > .oc-child > .ocn {
|
|
764
|
-
grid-template-columns: 1fr;
|
|
765
|
-
grid-template-areas: "head" "macs" "staff";
|
|
766
|
-
}
|
|
767
|
-
/* no rail column on a single-column stack — the rail has nothing to span */
|
|
768
|
-
.oc-row.lanes > .oc-child > .ocn > .oc-down { display: none; }
|
|
769
|
-
.oc-row.lanes > .oc-child > .ocn > .oc-tray { max-width: none; flex-direction: row; flex-wrap: wrap; }
|
|
770
|
-
}
|
|
771
|
-
/* inside a lane the people always flow right and wrap — the ".wrap" grid
|
|
772
|
-
(which grows downward) would otherwise stack a big department into a
|
|
773
|
-
one-card-wide column. Specificity here deliberately beats .oc-row.wrap. */
|
|
774
|
-
.oc-row.lanes > .oc-child > .ocn > .oc-row,
|
|
775
|
-
.oc-row.lanes > .oc-child > .ocn > .oc-row.wrap {
|
|
776
|
-
display: flex;
|
|
777
|
-
flex-direction: row;
|
|
778
|
-
flex-wrap: wrap;
|
|
779
|
-
justify-content: flex-start;
|
|
780
|
-
gap: 8px;
|
|
781
|
-
margin: 0;
|
|
782
|
-
padding: 0;
|
|
783
|
-
max-width: none;
|
|
784
|
-
border: 0;
|
|
785
|
-
border-radius: 0;
|
|
786
|
-
background: none;
|
|
787
|
-
align-content: flex-start;
|
|
788
|
-
}
|
|
789
|
-
.oc-row.lanes > .oc-child > .ocn > .oc-row > .oc-child { padding: 0; flex: 0 0 auto; }
|
|
790
|
-
.oc-row.lanes > .oc-child > .ocn > .oc-row > .oc-child::before,
|
|
791
|
-
.oc-row.lanes > .oc-child > .ocn > .oc-row > .oc-child::after { display: none; }
|
|
792
|
-
|
|
793
|
-
@media (max-width: 820px) {
|
|
794
|
-
.oc-row.lanes > .oc-child > .ocn { grid-template-columns: 1fr; gap: 12px; }
|
|
795
|
-
}
|
|
796
|
-
/* Connectors are drawn by the SVG rail plane now, not by pseudo-elements. The
|
|
797
|
-
old fan drop-lines/elbows here would double every rail. */
|
|
798
|
-
.oc-child { position: relative; padding: 0; display: flex; flex-direction: column; align-items: center; }
|
|
799
|
-
.oc-child::before, .oc-child::after { display: none; }
|
|
800
|
-
|
|
801
|
-
/* wide sibling sets — grouped subtrees that wrap to natural width (never crush a
|
|
802
|
-
branch into a fixed cell — that overflowed and collided with the next branch) */
|
|
803
|
-
.oc-row.wrap {
|
|
804
|
-
display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
|
|
805
|
-
gap: 10px 18px; margin: 0 auto; padding: 12px 14px 14px;
|
|
806
|
-
max-width: min(100%, 840px);
|
|
807
|
-
border: 1px solid var(--line); border-radius: 18px; background: rgba(16, 19, 26, 0.35);
|
|
808
|
-
}
|
|
809
|
-
.oc-row.wrap > .oc-child { padding: 8px 4px 0; flex: 0 0 auto; }
|
|
810
|
-
.oc-row.wrap > .oc-child::before, .oc-row.wrap > .oc-child::after { display: none; }
|
|
811
|
-
|
|
812
|
-
/* ── THE PLATE ────────────────────────────────────────────────────────────
|
|
813
|
-
An engraved plate on a key rack. Left edge is milled brass; rank reads
|
|
814
|
-
through FINISH and SIZE (polished → satin → dulled), never hue. Radius 4px
|
|
815
|
-
per CRAFT §0 (radii 2/3/6) — the old 15px rounded rect is what made this
|
|
816
|
-
read as a SaaS card. Content is left-aligned like a name plate, not
|
|
817
|
-
centred like a business card. */
|
|
818
|
-
/* ══ THE SOURCE CARD (variant B — "the spine") ══════════════════════════
|
|
819
|
-
This board is not a picture of the org: it IS the org file booboo_boot
|
|
820
|
-
reads. Rules inherit down it, bucket reach derives from it, every agent
|
|
821
|
-
boots against it. So the card states its CONSEQUENCE, not just its
|
|
822
|
-
attributes — what it declares, who it binds, what it boots on.
|
|
823
|
-
Health is the card's own left edge, so scanning nine stacked departments
|
|
824
|
-
you find the amber one peripherally, before reading a single word. */
|
|
825
|
-
.ag {
|
|
826
|
-
position: relative; display: flex; flex-direction: column; align-items: stretch;
|
|
827
|
-
width: calc(300px - min(var(--d, 0), 2) * 22px); /* 300 / 278 / 256 by rank */
|
|
828
|
-
padding: 15px 18px 13px 21px; text-align: left;
|
|
829
|
-
background: var(--bg-1);
|
|
830
|
-
border: 1px solid var(--line); border-radius: 14px; cursor: grab; overflow: hidden;
|
|
831
|
-
box-shadow: var(--sh-2);
|
|
832
|
-
transition: box-shadow .22s var(--ease), transform .22s var(--ease), border-color .18s ease, opacity .18s ease;
|
|
833
|
-
animation: settle .45s var(--settle) both;
|
|
834
|
-
}
|
|
835
|
-
/* the spine — health as the card's own edge */
|
|
836
|
-
.ag::before {
|
|
837
|
-
content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
|
|
838
|
-
background: var(--ink-3); transition: background .2s ease;
|
|
839
|
-
}
|
|
840
|
-
.ag.h-ok::before { background: var(--ok); }
|
|
841
|
-
.ag.h-warn::before { background: var(--warn); }
|
|
842
|
-
.ag.h-fail::before { background: var(--fail); }
|
|
843
|
-
/* an unhealthy card also carries a wash, so the state survives a greyscale
|
|
844
|
-
print and never rests on hue alone */
|
|
845
|
-
.ag.h-warn { background: linear-gradient(180deg, var(--warn-wash), var(--bg-1) 52%); border-color: #ecd9ae; }
|
|
846
|
-
.ag.h-fail { background: linear-gradient(180deg, var(--fail-wash), var(--bg-1) 52%); border-color: #edc9bf; }
|
|
847
|
-
@keyframes settle { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
|
|
848
|
-
.ag:hover { transform: translateY(-2px); box-shadow: var(--sh-3); border-color: var(--line-2); }
|
|
849
|
-
.ag:active { transform: translateY(0) scale(.995); transition-duration: .08s; }
|
|
850
|
-
.ag.sel { border-color: var(--accent); box-shadow: var(--sh-3), 0 0 0 3px var(--accent-dim); }
|
|
851
|
-
.ag:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
852
|
-
.ag.over { border-color: var(--accent-2); box-shadow: var(--sh-3), 0 0 0 4px var(--accent-dim); transform: scale(1.02); }
|
|
853
|
-
.ag.dragging { opacity: 0.4; cursor: grabbing; }
|
|
854
|
-
|
|
855
|
-
/* WHERE IT BELONGS — reads first, so a card lifted out of its lane still
|
|
856
|
-
knows its own place. */
|
|
857
|
-
.ag-eyebrow {
|
|
858
|
-
font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
|
|
859
|
-
color: var(--accent); display: block; margin-bottom: 7px;
|
|
860
|
-
}
|
|
861
|
-
/* WHAT FLOWS OUT — the consequence line. Plain English, never glyphs. */
|
|
862
|
-
.ag-flows {
|
|
863
|
-
display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 10px;
|
|
864
|
-
font-variant-numeric: tabular-nums;
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
/* ── THE HEALTH LIGHT ──────────────────────────────────────────────────────
|
|
868
|
-
A real lamp: a lit core inside a soft halo, with a slow breath so a healthy
|
|
869
|
-
board is visibly ALIVE rather than merely static. The halo is a separate
|
|
870
|
-
::after ring that expands and fades — one pulse every 2.6s, offset per
|
|
871
|
-
bubble so nine departments never blink in unison (a synchronised board
|
|
872
|
-
reads as a screensaver; a staggered one reads as a building). */
|
|
873
|
-
.ag-light {
|
|
874
|
-
position: absolute; top: 13px; right: 14px; width: 8px; height: 8px; border-radius: 50%;
|
|
875
|
-
background: var(--ink-3);
|
|
876
|
-
}
|
|
877
|
-
.ag-light::after {
|
|
878
|
-
content: ""; position: absolute; inset: -3px; border-radius: 50%;
|
|
879
|
-
border: 1px solid currentColor; opacity: 0;
|
|
880
|
-
animation: lamp 2.6s var(--ease) infinite;
|
|
881
|
-
animation-delay: var(--lamp-delay, 0s);
|
|
882
|
-
}
|
|
883
|
-
.ag-light.ok { background: var(--ok); color: var(--ok); box-shadow: 0 0 0 3px var(--ok-wash); }
|
|
884
|
-
.ag-light.warn { background: var(--warn); color: var(--warn); box-shadow: 0 0 0 3px var(--warn-wash); }
|
|
885
|
-
.ag-light.fail { background: var(--fail); color: var(--fail); box-shadow: 0 0 0 3px var(--fail-wash); }
|
|
886
|
-
/* a failing lamp beats faster — urgency in the rhythm, not just the hue */
|
|
887
|
-
.ag-light.fail::after { animation-duration: 1.2s; }
|
|
888
|
-
@keyframes lamp {
|
|
889
|
-
0% { transform: scale(.7); opacity: .85; }
|
|
890
|
-
70%, 100% { transform: scale(1.9); opacity: 0; }
|
|
891
|
-
}
|
|
892
|
-
@media (prefers-reduced-motion: reduce) { .ag-light::after { animation: none; } }
|
|
893
|
-
|
|
894
|
-
/* rank I·II — the GM. Polished brass: the only plate that is lit rather than lit-upon. */
|
|
895
|
-
.ag.root { cursor: default; width: 268px; padding: 15px 17px;
|
|
896
|
-
background: var(--surface-lift);
|
|
897
|
-
border-color: var(--surface-lift-edge); box-shadow: var(--sh-3); }
|
|
898
|
-
.ag.root .ag-name { font-size: 14.5px; }
|
|
899
|
-
|
|
900
|
-
/* plate header: the mark sits BESIDE the name, not above it — a name plate,
|
|
901
|
-
not a business card. Staff plates carry no mark at all (see Panel.tsx): a
|
|
902
|
-
brass plaque does not have a cartoon on it, and 51 identical 🤖 was the
|
|
903
|
-
cheapest token on the board. */
|
|
904
|
-
.ag-head { display: flex; align-items: center; gap: 9px; min-width: 0; }
|
|
905
|
-
.ag-ava {
|
|
906
|
-
width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; font-size: 14px;
|
|
907
|
-
border-radius: 9px; background: var(--accent-dim); border: 1px solid #eadcc3;
|
|
908
|
-
}
|
|
909
|
-
.ag.root .ag-ava { width: 30px; height: 30px; flex-basis: 30px; font-size: 16px; border-color: rgba(239, 195, 137, 0.45); }
|
|
910
|
-
|
|
911
|
-
/* the name — engraved: a dark groove under, a hairline of light above */
|
|
912
|
-
.ag-name {
|
|
913
|
-
font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.015em;
|
|
914
|
-
line-height: 1.18; color: var(--ink);
|
|
915
|
-
white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
|
|
916
|
-
}
|
|
917
|
-
/* staff plates: quieter, lighter weight — rank in the type as well as the metal */
|
|
918
|
-
.ag.staff .ag-name { font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
|
|
919
|
-
|
|
920
|
-
.ag-role {
|
|
921
|
-
font-size: 12.5px; line-height: 1.5; color: var(--ink-2); margin-top: 6px;
|
|
922
|
-
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
|
|
923
|
-
}
|
|
924
|
-
.ag-meta { display: flex; align-items: center; gap: 9px; margin-top: 7px; }
|
|
925
|
-
.ag-meta em { font-style: normal; font-family: var(--mono); font-size: 9px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
926
|
-
.ag-kids {
|
|
927
|
-
font-family: var(--mono); font-size: 8.5px; color: var(--brass); border: 1px solid rgba(217, 160, 91, 0.28);
|
|
928
|
-
border-radius: 3px; padding: 2px 7px; font-variant-numeric: tabular-nums; text-transform: uppercase; letter-spacing: 0.1em;
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
/* ── the plate face: health · bucket reach · rule count · last report ──────
|
|
932
|
-
Replaces a role line that used to just repeat the name ("Lift Engineer" /
|
|
933
|
-
"Lift Engineer — Engineering"). Four facts, left-aligned, mono, no chrome. */
|
|
934
|
-
.ag-facts {
|
|
935
|
-
display: flex; align-items: center; gap: 10px;
|
|
936
|
-
margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line);
|
|
937
|
-
}
|
|
938
|
-
.ag-fact { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
|
|
939
|
-
.ag-fact-health.ok { color: var(--ok); }
|
|
940
|
-
.ag-fact-health.warn { color: var(--warn); }
|
|
941
|
-
.ag-fact-health.fail { color: var(--fail); }
|
|
942
|
-
.ag-fact-health.none { color: var(--ink-3); font-weight: 500; }
|
|
943
|
-
.fact-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); flex: 0 0 auto; }
|
|
944
|
-
.ag-fact-health.ok .fact-dot { background: var(--ok); box-shadow: 0 0 6px rgba(139, 233, 176, 0.75); }
|
|
945
|
-
.ag-fact-health.warn .fact-dot { background: var(--brass); box-shadow: 0 0 6px rgba(217, 160, 91, 0.85); }
|
|
946
|
-
.ag-fact-health.fail .fact-dot { background: var(--fail); box-shadow: 0 0 7px rgba(224, 123, 106, 0.85); }
|
|
947
|
-
.ag-fact-health.ok, .ag-fact-health.warn, .ag-fact-health.fail { color: var(--ink-2); }
|
|
948
|
-
.ag-fact-report { margin-left: auto; color: var(--ink-3); font-weight: 400; font-family: var(--mono); font-size: 10px; }
|
|
949
|
-
/* the expected beat, quieter than the fact it qualifies — it is the ruler, not
|
|
950
|
-
the measurement, so it must never out-shout "reported 4d ago". */
|
|
951
|
-
.ag-cadence { font-weight: 400; color: var(--ink-3); opacity: .62; }
|
|
952
|
-
|
|
953
|
-
/* "show the law": the boot-order chain, printed on the plate only while the
|
|
954
|
-
toggle is on — the product's core idea, made literal per plate. */
|
|
955
|
-
.ag-law { display: none; }
|
|
956
|
-
.law-on .ag-law {
|
|
957
|
-
display: block; margin-top: 7px; padding-top: 7px; border-top: 1px dashed rgba(217, 160, 91, 0.32);
|
|
958
|
-
font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.03em; color: var(--brass-hi);
|
|
959
|
-
line-height: 1.6; word-break: break-word;
|
|
960
|
-
}
|
|
961
|
-
.ag-law-arrow { font-style: normal; color: var(--brass); margin: 0 3px; opacity: 0.85; }
|
|
962
|
-
.law-on.ag { box-shadow: 0 0 0 1px rgba(217, 160, 91, 0.3), 0 16px 34px -18px rgba(0, 0, 0, 0.85); }
|
|
963
|
-
|
|
964
|
-
/* the dossier */
|
|
965
|
-
.doss {
|
|
966
|
-
width: 340px; flex: 0 0 340px; border-left: 1px solid var(--line);
|
|
967
|
-
background: var(--bg-1); backdrop-filter: blur(10px);
|
|
968
|
-
padding: 26px 24px 40px; overflow-y: auto; animation: slidein 0.25s ease both;
|
|
969
|
-
}
|
|
970
|
-
@keyframes slidein { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
|
|
971
|
-
.doss-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
|
|
972
|
-
.doss-emoji { font-size: 30px; flex: none; }
|
|
973
|
-
.doss h2 { margin: 0; font-size: 18px; min-width: 0; }
|
|
974
|
-
/* full panel width: a body of four seats is a list, not a subtitle squeezed
|
|
975
|
-
beside three buttons. Middots become the wrap points. */
|
|
976
|
-
.doss-role { margin: 0 0 14px; color: var(--ink-2); font-size: 12.5px; line-height: 1.55; }
|
|
977
|
-
|
|
978
|
-
.doss-chain { font-size: 11px; color: var(--ink-3); margin-bottom: 18px; line-height: 1.7; }
|
|
979
|
-
.doss-chain i { font-style: normal; margin: 0 5px; }
|
|
980
|
-
.doss-chain b { font-weight: 500; }
|
|
981
|
-
.doss-chain b.me { color: var(--accent); font-weight: 650; }
|
|
982
|
-
|
|
983
|
-
.doss-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
|
|
984
|
-
.doss-stat { background: var(--bg-1); border: 1px solid var(--line); border-radius: 11px; padding: 11px 8px; text-align: center; }
|
|
985
|
-
.doss-n { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
|
|
986
|
-
.doss-l { font-size: 9.5px; color: var(--ink-3); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.05em; }
|
|
987
|
-
|
|
988
|
-
.doss section { margin-bottom: 20px; }
|
|
989
|
-
.doss h3 { font-size: 10px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); margin: 0 0 9px; }
|
|
990
|
-
.doss-empty { color: var(--ink-3); font-size: 12px; margin: 0; }
|
|
991
|
-
.doss-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
|
|
992
|
-
.doss-rules li { font-family: var(--mono); font-size: 11px; color: var(--ink-2); background: var(--bg-1); border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; word-break: break-all; }
|
|
993
|
-
.doss-rules li.own { color: var(--ink); border-color: rgba(79, 184, 160, 0.35); }
|
|
994
|
-
.doss-rules em { color: var(--ink-3); font-style: normal; font-size: 9.5px; margin-left: 5px; }
|
|
995
|
-
.doss-chips { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
996
|
-
.doss-reps { display: flex; flex-direction: column; gap: 7px; }
|
|
997
|
-
/* No side-stripe. It was a 2px brass border-left that said nothing the
|
|
998
|
-
status dot doesn't already say properly, and a coloured side-stripe on a
|
|
999
|
-
card is a banned pattern in the house design laws. Full 1px border; the
|
|
1000
|
-
whole edge answers on hover. */
|
|
1001
|
-
.doss-rep {
|
|
1002
|
-
background: var(--bg-1); border: 1px solid var(--line);
|
|
1003
|
-
border-radius: 9px; padding: 9px 11px; animation: settle 0.35s ease both;
|
|
1004
|
-
}
|
|
1005
|
-
.doss-rep-top { display: flex; align-items: baseline; gap: 9px; }
|
|
1006
|
-
.doss-rep-when { font-size: 10px; color: var(--accent-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
1007
|
-
.doss-rep-label { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1008
|
-
.doss-rep-sum { margin: 5px 0 0; font-size: 11.5px; color: var(--ink-2); line-height: 1.55; }
|
|
1009
|
-
.doss-rep.tap { cursor: pointer; transition: border-color .12s ease, background .12s ease; }
|
|
1010
|
-
.doss-rep.tap:hover { border-color: var(--accent); background: var(--accent-dim); }
|
|
1011
|
-
.doss-rep.tap:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
1012
|
-
.doss-rep-caret { margin-left: auto; font-size: 10px; color: var(--ink-2); align-self: center; }
|
|
1013
|
-
.rep-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; align-self: center; }
|
|
1014
|
-
.rep-dot.ok { background: var(--accent); } .rep-dot.warn { background: var(--warn); } .rep-dot.fail { background: #e07b6a; }
|
|
1015
|
-
.rep-ok { color: var(--accent); } .rep-warn { color: var(--warn); } .rep-fail { color: #e07b6a; }
|
|
1016
|
-
.doss-rep-detail { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.7; color: var(--ink-2); font-family: var(--mono); word-break: break-word; }
|
|
1017
|
-
.doss-rep-detail .doss-l { display: inline-block; min-width: 74px; opacity: .6; text-transform: uppercase; letter-spacing: .04em; font-size: 9.5px; }
|
|
1018
|
-
.chip { transition: transform .16s var(--ease), background .18s ease; font-size: 11px; background: var(--accent-dim); color: var(--accent-2); border-radius: 7px; padding: 4px 10px; }
|
|
1019
|
-
.chip.alt { background: var(--bg-2); color: var(--ink-2); }
|
|
1020
|
-
.doss-boot { font-size: 12px; color: var(--ink-2); line-height: 1.6; margin: 0; white-space: pre-wrap; }
|
|
1021
|
-
/* contract — one click to open, edit in place, save flows to the org file */
|
|
1022
|
-
.doss-contract h3 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
|
|
1023
|
-
.contract-card {
|
|
1024
|
-
position: relative; display: block; width: 100%; text-align: left; cursor: pointer;
|
|
1025
|
-
background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px;
|
|
1026
|
-
padding: 13px 14px; transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
|
|
1027
|
-
}
|
|
1028
|
-
.contract-card:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
|
|
1029
|
-
.contract-card:hover .contract-hint { opacity: 1; }
|
|
1030
|
-
.contract-card.empty { border-style: dashed; }
|
|
1031
|
-
.contract-hint {
|
|
1032
|
-
position: absolute; top: 9px; right: 11px; font-size: 10.5px; font-weight: 650;
|
|
1033
|
-
color: var(--accent-2); opacity: 0.55; transition: opacity 0.15s; letter-spacing: 0.02em;
|
|
1034
|
-
}
|
|
1035
|
-
.contract-edit { display: flex; flex-direction: column; gap: 8px; }
|
|
1036
|
-
.contract-ta {
|
|
1037
|
-
width: 100%; min-height: 220px; resize: vertical; box-sizing: border-box;
|
|
1038
|
-
background: var(--bg-1); border: 1px solid var(--accent); border-radius: 12px;
|
|
1039
|
-
padding: 12px 13px; color: var(--ink); font-family: var(--mono); font-size: 12px; line-height: 1.6;
|
|
1040
|
-
outline: none; box-shadow: 0 0 0 3px var(--accent-dim);
|
|
1041
|
-
}
|
|
1042
|
-
.doss-edit-hint { font-size: 11px; color: var(--ink-3); margin: 2px 0 0; font-style: italic; }
|
|
1043
|
-
.doss-note { color: var(--ink-3); font-size: 11px; line-height: 1.6; }
|
|
1044
|
-
.doss-note code { font-family: var(--mono); background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }
|
|
1045
|
-
|
|
1046
|
-
.pnl-fatal { min-height: 100vh; display: grid; place-items: center; color: #e07b6a; font-size: 14px; padding: 30px; text-align: center; }
|
|
1047
|
-
.pnl-fatal.calm { color: var(--ink-2); }
|
|
1048
|
-
|
|
1049
|
-
@media (max-width: 760px) {
|
|
1050
|
-
/* compact chrome */
|
|
1051
|
-
.bar { gap: 8px 14px; padding: 9px 12px; }
|
|
1052
|
-
.bar-brand { font-size: 13px; }
|
|
1053
|
-
.bar-stats { gap: 11px; font-size: 11px; }
|
|
1054
|
-
.bar-stats b { font-size: 12.5px; }
|
|
1055
|
-
.bar-actions { gap: 6px; }
|
|
1056
|
-
.btn { padding: 6px 11px; font-size: 11.5px; }
|
|
1057
|
-
.tabs { padding: 0 4px; }
|
|
1058
|
-
.tab { padding: 10px 9px 9px; font-size: 11.5px; }
|
|
1059
|
-
.tree { padding: 12px 8px 40px; }
|
|
1060
|
-
.tree-hint { display: none; }
|
|
1061
|
-
.ag { max-width: 100%; }
|
|
1062
|
-
.ag-role { display: none; }
|
|
1063
|
-
.screen { padding: 18px 13px 60px; }
|
|
1064
|
-
/* the dossier becomes a BOTTOM SHEET inside the pane — the chart above stays
|
|
1065
|
-
tappable to switch agents; the ✕ closes. ABSOLUTE (not fixed) so it can
|
|
1066
|
-
never overlap an embedding host's chrome. */
|
|
1067
|
-
.doss {
|
|
1068
|
-
position: absolute; left: 0; right: 0; bottom: 0; top: 34%;
|
|
1069
|
-
width: auto; z-index: 6; border-radius: 16px 16px 0 0;
|
|
1070
|
-
border-top: 1px solid var(--line);
|
|
1071
|
-
box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.55);
|
|
1072
|
-
}
|
|
1073
|
-
.doss { animation: sheetup 0.25s ease both; }
|
|
1074
|
-
@keyframes sheetup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
|
|
1075
|
-
.doss-close { display: grid; }
|
|
1076
|
-
/* zoom control clears the sheet — top-right of the chart */
|
|
1077
|
-
.zoomer { top: 4px; right: 8px; bottom: auto; }
|
|
1078
|
-
}
|
|
1079
|
-
`,Gd=(r,b)=>fetch(`/api${r}`,b).then(j=>j.ok?j.json():j.json().then(o=>Promise.reject(o))),Xd=G.createContext(Gd),_l=()=>G.useContext(Xd),Qd=[{id:"org",glyph:"⌂",label:"organigram"},{id:"buckets",glyph:"▤",label:"buckets"},{id:"reports",glyph:"⏱",label:"reports"},{id:"rules",glyph:"§",label:"rules"},{id:"graph",glyph:"◉",label:"graph"}];function Na(r){const b=r.data??{};for(const j of["at","ts","time","created_at","date","bst","ts_bst","finished_at"]){const o=b[j];if(typeof o=="string"&&o)return o}return""}function Ap(r){if(!r)return NaN;const b=Date.parse(r);return Number.isFinite(b)?b:Number(r)}function Mp(r){const b=new Map;for(const j of r){const o=An(j);if(!o)continue;const g=j.data??{};if(typeof g.status!="string")continue;const z=g.status,_=Na(j),R=Ap(_),N=b.get(o)??{lastAt:"",lastMs:-1/0,lastStatus:"",n:0,fails:0};N.n++,z==="fail"&&N.fails++,Number.isFinite(R)&&R>=N.lastMs&&(N.lastMs=R,N.lastAt=_,N.lastStatus=z),b.set(o,N)}return b}function Mn(r,b){if(!b)return null;const j=[r.id,...r.buckets??[]];let o=null;for(const g of j){const z=b.get(g);z&&(!o||z.lastMs>o.lastMs)&&(o=z)}return o}function Es(r){return r<=1?"hourly":r<24?`every ${r}h`:r===24?"daily":r===168?"weekly":r>=672&&r<=744?"monthly":r%24===0?`every ${r/24} days`:`every ${r}h`}function Ea(r,b){const j=Mn(r,b);if(!j||!j.lastAt)return"none";if(j.lastStatus==="fail")return"fail";const o=(Date.now()-j.lastMs)/36e5,g=typeof r.cadence=="number"&&r.cadence>0?r.cadence:26;return o>g*2||j.lastStatus==="warn"?"warn":"ok"}function Ld(r,b){var j;return Ea(r,b)==="ok"&&(((j=Mn(r,b))==null?void 0:j.fails)??0)>0}const Op=r=>r.includes("fail")?"fail":r.includes("warn")?"warn":r.includes("ok")?"ok":"none";function Zd(r){const b=r.data??{};for(const j of["summary","title","detail"]){const o=b[j];if(typeof o=="string"&&o&&o!==r.label)return o}return""}function An(r){const b=r.data??{};return r.cluster||(typeof b.agent=="string"?b.agent:"")||""}async function On(r,b,j=500){const o=async R=>{var N;try{const v=`/nodes?type=${R}${b?`&cluster=${encodeURIComponent(b)}`:""}`,C=await r(`${v}&limit=${j}`),O=C.nodes??[],X=Math.min(C.total??0,j);for(;O.length<X;){const V=await r(`${v}&limit=${j}&offset=${O.length}`);if(!((N=V.nodes)!=null&&N.length))break;O.push(...V.nodes)}return{total:C.total??0,nodes:O}}catch{return{total:0,nodes:[]}}},[g,z]=await Promise.all([o("report"),o("decision")]),_=[...g.nodes??[],...z.nodes??[]].sort((R,N)=>Na(N).localeCompare(Na(R)));return{total:(g.total??0)+(z.total??0),nodes:_}}function Dp(r){return r.toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}var Yd;const qd=typeof window<"u"&&((Yd=window.matchMedia)==null?void 0:Yd.call(window,"(prefers-reduced-motion: reduce)").matches),Vd="booboo-theme-v2";function _p(){try{return new URLSearchParams(window.location.search).get("embed")?"light":localStorage.getItem(Vd)==="dark"?"dark":"light"}catch{return"light"}}function Up(){const[r,b]=G.useState(_p),j=G.useRef(!1);return G.useEffect(()=>{if(document.documentElement.setAttribute("data-theme",r),!!j.current)try{localStorage.setItem(Vd,r)}catch{}},[r]),[r,()=>{j.current=!0,b(o=>o==="dark"?"light":"dark")}]}function ja(r,b=900){const[j,o]=G.useState(qd?r:0),g=G.useRef(0);return G.useEffect(()=>{if(qd){o(r);return}const z=g.current,_=performance.now();let R=0;const N=v=>{const C=Math.min(1,(v-_)/b),O=1-Math.pow(1-C,3);o(Math.round(z+(r-z)*O)),C<1?R=requestAnimationFrame(N):g.current=r};return R=requestAnimationFrame(N),()=>cancelAnimationFrame(R)},[r,b]),j}function Cp(){const r=()=>{const o=window.location.hash.replace(/^#\/?/,""),[g,...z]=o.split("/");return[Qd.some(R=>R.id===g)?g:"org",z.length?decodeURIComponent(z.join("/")):null]},[b,j]=G.useState(r);return G.useEffect(()=>{const o=()=>j(r());return window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]),b}const Ka=r=>{window.location.hash=r};function Fi(r){let b=0;for(const j of r)b=(b*31+j.charCodeAt(0))%360;return b}const kp="guest-registry";function Hp({org:r,lit:b}){const j=G.useMemo(()=>{const o=new Set;for(const g of r.agents)for(const z of g.buckets??[])o.add(z);return[...o].sort()},[r]);return s.jsxs("div",{className:"ledger-shelf",role:"list","aria-label":"the ledger — hover a role to see what it reaches",children:[s.jsx("span",{className:"shelf-label",children:"the ledger"}),s.jsxs("div",{className:"shelf-slots",children:[j.map(o=>s.jsx("span",{className:`shelf-slot${b.has(o)?" lit":""}`,role:"listitem",children:o},o)),s.jsxs("span",{className:"shelf-slot sealed",role:"listitem",title:"ledger:guest-registry — sealed by wall. Visible, never emitted.",children:["🔒 ",kp]})]})]})}function Rp(){const r=G.useMemo(()=>{let g=20260719;const z=()=>(g=g*1103515245+12345&2147483647)/2147483647,_=[];for(let N=0;N<58;N++)_.push([z()*1600,z()*1e3]);let R="";for(let N=0;N<58;N++)for(let v=N+1;v<58;v++){const C=Math.hypot(_[N][0]-_[v][0],_[N][1]-_[v][1]);C<200&&(R+=`<line x1="${_[N][0].toFixed(1)}" y1="${_[N][1].toFixed(1)}" x2="${_[v][0].toFixed(1)}" y2="${_[v][1].toFixed(1)}" stroke="rgba(217,160,91,${((1-C/200)*.14).toFixed(3)})" stroke-width="1"/>`)}for(const[N,v]of _)R+=`<circle cx="${N.toFixed(1)}" cy="${v.toFixed(1)}" r="${(z()*1.4+.6).toFixed(2)}" fill="rgba(239,195,137,.45)"/>`;return R},[]);return s.jsx("svg",{className:"pnl-stars",viewBox:"0 0 1600 1000",preserveAspectRatio:"xMidYMid slice","aria-hidden":!0,dangerouslySetInnerHTML:{__html:r}})}function Bp({org:r,selected:b,onSelect:j}){const o=r.agents.find(z=>z.id===r.root),g=(o==null?void 0:o.rules)??[];return g.length?s.jsxs("div",{className:`ag law-plate${b?" sel":""}`,"data-rail":"law",tabIndex:0,title:"the law every agent in the house boots against",onClick:z=>{z.stopPropagation(),o&&j(o.id)},onKeyDown:z=>{(z.key==="Enter"||z.key===" ")&&o&&(z.preventDefault(),j(o.id))},children:[s.jsxs("div",{className:"ag-head",children:[s.jsx("span",{className:"ag-ava",children:"§"}),s.jsx("span",{className:"ag-name",children:"The House Standard"})]}),s.jsx("span",{className:"ag-role",children:g[0]}),s.jsxs("span",{className:"ag-facts",children:[s.jsxs("em",{className:"ag-fact",children:["binds ",r.agents.length]}),s.jsxs("em",{className:"ag-fact",children:[g.length," clause",g.length===1?"":"s"]})]})]}):null}function Wi(r,b){let j=0,o=0,g=r;for(;g&&g!==b;)j+=g.offsetLeft,o+=g.offsetTop,g=g.offsetParent;return{x:j,y:o,w:r.offsetWidth,h:r.offsetHeight,cy:o+r.offsetHeight/2}}function ws(r,b,j,o){if(Math.abs(o-b)<1.5)return`M${r},${b.toFixed(1)} H${j}`;const g=r+(j-r)*.45,z=Math.min(9,Math.abs(o-b)/2),_=o>b?1:-1;return`M${r},${b.toFixed(1)} H${(g-z).toFixed(1)} Q${g},${b.toFixed(1)} ${g},${(b+z*_).toFixed(1)} V${(o-z*_).toFixed(1)} Q${g},${o.toFixed(1)} ${(g+z).toFixed(1)},${o.toFixed(1)} H${j}`}function qp({chartRef:r,version:b}){const[j,o]=G.useState([]);return G.useLayoutEffect(()=>{const g=r.current;if(!g)return;const z=()=>{const R=$=>Array.from(g.querySelectorAll($)),N=g.querySelector('[data-rail="law"]'),v=g.querySelector('[data-rail="gm"]'),C=R('[data-rail="dept"]'),O=R('[data-rail="staff"]'),X=[],V=v?Wi(v,g):null;if(N&&V){const $=Wi(N,g);X.push(ws($.x+$.w,$.cy,V.x,V.cy))}const ie=new Map;for(const $ of C){const se=Wi($,g);ie.set($.dataset.id??"",se),V&&X.push(ws(V.x+V.w,V.cy,se.x,se.cy))}for(const $ of O){const se=ie.get($.dataset.parent??"");if(!se)continue;const Y=Wi($,g);X.push(ws(se.x+se.w,se.cy,Y.x,Y.cy))}o($=>$.length===X.length&&$.every((se,Y)=>se===X[Y])?$:X)};z();const _=new ResizeObserver(z);return _.observe(g),()=>_.disconnect()},[r,b]),s.jsxs("svg",{className:"rails","aria-hidden":!0,children:[s.jsx("defs",{children:s.jsxs("linearGradient",{id:"railGrad",x1:"0",y1:"0",x2:"1",y2:"0",children:[s.jsx("stop",{offset:"0",stopColor:"var(--brass)",stopOpacity:"0.3"}),s.jsx("stop",{offset:"1",stopColor:"var(--brass-hi)",stopOpacity:"0.85"})]})}),j.map((g,z)=>s.jsxs("g",{children:[s.jsx("path",{className:"rail-line",d:g}),s.jsx("path",{className:"rail-dash",d:g})]},z))]})}function Yp({laneId:r,isLane:b,dragId:j,onDropOn:o,children:g}){const[z,_]=G.useState(!1);return b?s.jsx("div",{className:`oc-child${z&&j&&j!==r?" lane-over":""}`,onDragOver:R=>{j&&j!==r&&(R.preventDefault(),_(!0))},onDragLeave:R=>{R.currentTarget.contains(R.relatedTarget)||_(!1)},onDrop:R=>{R.preventDefault(),_(!1),j&&j!==r&&o(r)},children:g}):s.jsx("div",{className:"oc-child",children:g})}const Gp={ok:"Healthy",warn:"Needs a look",fail:"Failing",none:"No reports yet"};function Xp(r,b,j){var R;if(!j)return"";const o=N=>b.agents.filter(C=>C.parent===N).reduce((C,O)=>C+1+o(O.id),0),g=((R=r.rules)==null?void 0:R.length)??0,z=o(r.id);if(z===0)return"";const _=[];return g&&_.push(`declares ${g} rule${g===1?"":"s"}`),_.push(`binds ${z} below`),_.join(" · ")}function Qp({a:r,org:b,health:j,showLaw:o}){const g=G.useMemo(()=>Dn(b,r.id),[b,r.id]),z=G.useMemo(()=>Xp(r,b,g),[r,b,g]),_=Mn(r,j),R=Ea(r,j);return g?s.jsxs(s.Fragment,{children:[z&&s.jsx("span",{className:"ag-flows",title:"what flows out of this node — the org file is the source booboo_boot reads",children:z}),s.jsxs("span",{className:"ag-facts",children:[s.jsx("em",{className:`ag-fact ag-fact-health ${R}`,children:Gp[R]}),s.jsxs("em",{className:"ag-fact ag-fact-report",title:typeof r.cadence=="number"?`${_!=null&&_.lastAt?`last report filed ${Ta(_.lastAt)}`:"no report filed yet"} · expected ${Es(r.cadence)}; amber past about twice that`:_!=null&&_.lastAt?`last report filed ${Ta(_.lastAt)}`:"no report filed yet",children:[_!=null&&_.lastAt?`reported ${Ta(_.lastAt)}`:"",typeof r.cadence=="number"&&r.kind!=="automation"&&s.jsxs("b",{className:"ag-cadence",children:[" · ",Es(r.cadence)]})]})]}),o&&s.jsx("span",{className:"ag-law",title:"inheritance in boot order",children:g.chain.map((N,v)=>s.jsxs("span",{children:[v>0&&s.jsx("i",{className:"ag-law-arrow",children:"↓"}),N.name]},N.id))})]}):null}function Lp({a:r,org:b,isRoot:j,depth:o,order:g,selected:z,dragId:_,onSelect:R,onDragStart:N,onDropOn:v,childCount:C,light:O="none",health:X=null,onHover:V,showLaw:ie=!1}){var oe,ee;const[$,se]=G.useState(!1),Y=((oe=r.skills)==null?void 0:oe.length)??0,P=r.parent?(ee=b.agents.find(te=>te.id===r.parent))==null?void 0:ee.name:null;return s.jsxs("div",{className:`ag${j?" root":""}${o>=2?" staff":""}${z?" sel":""}${$?" over":""}${_===r.id?" dragging":""}${ie?" law-on":""}${O!=="none"?" h-"+O:""}`,style:{"--d":o,animationDelay:`${Math.min(o*70+g*45,600)}ms`},draggable:!j,tabIndex:0,onKeyDown:te=>{(te.key==="Enter"||te.key===" ")&&(te.preventDefault(),R(r.id))},onClick:te=>{te.stopPropagation(),R(r.id)},onDragStart:te=>{te.dataTransfer.effectAllowed="move",N(r.id)},onDragOver:te=>{_&&_!==r.id&&(te.preventDefault(),se(!0))},onDragLeave:()=>se(!1),onDrop:te=>{te.preventDefault(),se(!1),v(r.id)},onMouseEnter:()=>V==null?void 0:V(r.id),onMouseLeave:()=>V==null?void 0:V(null),"data-rail":j?"gm":o===1?"dept":"staff","data-id":r.id,"data-parent":r.parent??"",children:[O!=="none"&&s.jsx("i",{className:`ag-light ${O}`,style:{"--lamp-delay":`${Fi(r.id)%26/10}s`},title:`health: ${O==="ok"?"healthy":O==="warn"?"needs a look":"failing"}`}),s.jsx("span",{className:"ag-eyebrow",children:o===0?"The house · rank II":o===1?"Department · rank III":P??"Staff"}),s.jsxs("div",{className:"ag-head",children:[o<=1&&r.emoji&&s.jsx("span",{className:"ag-ava",children:r.emoji}),s.jsx("span",{className:"ag-name",children:r.name})]}),r.role&&s.jsx("span",{className:"ag-role",children:r.role}),s.jsx(Qp,{a:r,org:b,health:X,showLaw:ie}),(Y>0||C>0)&&s.jsxs("span",{className:"ag-meta",children:[Y>0&&s.jsxs("em",{title:"skills",children:["✦ ",Y]}),C>0&&s.jsxs("span",{className:"ag-kids",title:"direct reports",children:[C," reports"]})]})]})}function Kd({org:r,a:b,depth:j,order:o,...g}){var se;const z=r.agents.filter(Y=>Y.parent===b.id&&Y.kind!=="automation"),_=j===0?[...z].sort((Y,P)=>Y.id.localeCompare(P.id)):z,R=(()=>{const Y=[],P=oe=>{for(const ee of r.agents.filter(te=>te.parent===oe&&te.kind==="automation"))r.agents.some(Me=>Me.parent===ee.id)?P(ee.id):Y.push(ee)};return P(b.id),Y})(),N=R.map(Y=>Ea(Y,g.health)),v=Op(N),C=j===1&&_.length>0,O=C&&((se=g.collapsed)==null?void 0:se.has(b.id)),X=8,V=R.length-X,ie=R.slice(X).reduce((Y,P)=>Y+(Ea(P,g.health)!=="ok"&&Ea(P,g.health)!=="none"?1:0),0),$=s.jsxs(s.Fragment,{children:[s.jsx(Lp,{a:b,org:r,isRoot:b.id===r.root,depth:j,order:o,selected:g.selected===b.id,dragId:g.dragId,onSelect:g.onSelect,onDragStart:g.onDragStart,onDropOn:g.onDropOn,childCount:_.length,light:v,health:g.health,onHover:g.onHover,showLaw:g.showLaw}),R.length>0&&s.jsxs("div",{className:`oc-tray ${v}`,children:[R.slice(0,X).map(Y=>s.jsxs("button",{type:"button",className:`oc-mac${g.selected===Y.id?" sel":""}${g.dragId===Y.id?" dragging":""}`,title:`${Y.name}${Y.role?` — ${Y.role}`:""} · drag onto an agent to reallocate`,draggable:!0,onDragStart:P=>{P.dataTransfer.effectAllowed="move",g.onDragStart(Y.id)},onClick:P=>{P.stopPropagation(),g.onSelect(Y.id)},children:[s.jsx("i",{className:`mac-dot ${Ea(Y,g.health)}${Ld(Y,g.health)?" unstable":""}`}),s.jsx(Zp,{agent:Y}),s.jsx("span",{className:"mac-name",children:Y.name})]},Y.id)),V>0&&s.jsxs("button",{type:"button",className:"oc-mac more",title:"open the full machine list in the dossier",onClick:Y=>{Y.stopPropagation(),g.onSelect(b.id)},children:["+",V," machines",ie>0?` · ${ie} not green`:""]})]})]});return s.jsxs("div",{className:"ocn",children:[j===0?s.jsx("div",{className:"casc-head",children:$}):$,_.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:`oc-down${C?" foldable":""}${O?" folded":""}`,role:C?"button":void 0,tabIndex:C?0:void 0,title:C?O?`${_.length} staff — click to expand (semantic zoom: department → role)`:"click to fold this department to head-only (semantic zoom: role → department)":void 0,onClick:C?Y=>{var P;Y.stopPropagation(),(P=g.onToggleCollapse)==null||P.call(g,b.id)}:void 0,onKeyDown:C?Y=>{var P;(Y.key==="Enter"||Y.key===" ")&&(Y.preventDefault(),(P=g.onToggleCollapse)==null||P.call(g,b.id))}:void 0,children:C&&s.jsx("i",{className:"oc-fold-glyph",children:O?"▸":"▾"})}),O?s.jsxs("button",{type:"button",className:"oc-folded-summary",onClick:Y=>{var P;Y.stopPropagation(),(P=g.onToggleCollapse)==null||P.call(g,b.id)},title:"click to expand — semantic zoom: department → role",children:[_.length," staff · folded to department level — click to expand"]}):s.jsx("div",{className:`oc-row${j>0&&_.length>3?" wrap":""}${j===0?" lanes":""}`,children:_.map((Y,P)=>s.jsx(Yp,{laneId:Y.id,isLane:j===0,dragId:g.dragId,onDropOn:g.onDropOn,children:s.jsx(Kd,{org:r,a:Y,depth:j+1,order:P,...g})},Y.id))})]})]})}function Zp({agent:r}){const b=(r.data??{}).brand,[j,o]=G.useState(!1);return typeof b!="string"||!b||j?s.jsx("span",{className:"mac-emoji",children:r.emoji||"⚙️"}):s.jsx("img",{className:"mac-brand",src:`https://cdn.simpleicons.org/${b}/000`,alt:"",loading:"lazy",draggable:!1,onError:()=>o(!0)})}function Ii({children:r,tone:b,onClick:j}){return s.jsx("span",{className:`chip${b?` ${b}`:""}${j?" tap":""}`,onClick:j,children:r})}function Vp({org:r,id:b,hasSnapshot:j,onUpdate:o,onAdd:g,onRemove:z,onSelect:_,onClose:R,health:N=null}){const v=_l(),C=G.useMemo(()=>Dn(r,b),[r,b]),O=G.useMemo(()=>{const m=[],H=f=>{for(const S of r.agents.filter(k=>k.parent===f&&k.kind==="automation"))r.agents.some(M=>M.parent===S.id)?H(S.id):m.push(S)};return H(b),m},[r,b]),[X,V]=G.useState(null),[ie,$]=G.useState(null),[se,Y]=G.useState(null),[P,oe]=G.useState(!1),[ee,te]=G.useState({}),[Me,F]=G.useState(null),[Ne,Ye]=G.useState(!1),[ut,ke]=G.useState("");G.useEffect(()=>{oe(!1),F(null),Ye(!1)},[b]),G.useEffect(()=>{V(null),$(null),Y(null),!(!j||!C)&&(Promise.all(C.buckets.map(m=>v(`/nodes?type=memory&cluster=${encodeURIComponent(m)}&limit=1`).then(H=>H.total).catch(()=>0))).then(m=>V(m.reduce((H,f)=>H+f,0))),On(v,b,100).then(({total:m,nodes:H})=>{if(m>0){$(m),Y(H.slice(0,4));return}return On(v,null,2e3).then(({nodes:f})=>{const S=f.filter(k=>An(k)===b);$(S.length),Y(S.slice(0,4))})}).catch(()=>{$(0),Y([])}))},[b,j,C,v]);const Ae=ja(X??0),Ie=ja(ie??0),We=()=>{if(!C)return;const m=C.agent;te({name:m.name??"",emoji:m.emoji??"",role:m.role??"",boot:m.boot??"",rules:(m.rules??[]).join(", "),skills:(m.skills??[]).join(", "),buckets:(m.buckets??[]).join(", ")}),oe(!0)},ze=()=>{const m=H=>H.split(",").map(f=>f.trim()).filter(Boolean);o(b,{name:ee.name.trim()||(C==null?void 0:C.agent.name)||b,emoji:ee.emoji.trim()||void 0,role:ee.role.trim()||void 0,boot:ee.boot.trim()||void 0,rules:m(ee.rules),skills:m(ee.skills),buckets:m(ee.buckets)}),oe(!1)};if(!C)return null;const E=C.agent,B=E.id===r.root,q=new Set(E.rules??[]);return s.jsxs("aside",{className:"doss",onClick:m=>m.stopPropagation(),children:[s.jsxs("div",{className:"doss-head",children:[s.jsx("span",{className:"doss-emoji",children:E.emoji||"🤖"}),s.jsxs("h2",{children:[E.name," ",E.kind==="automation"&&s.jsx("span",{className:"auto-badge",children:"automation"})]}),s.jsxs("div",{className:"doss-head-actions",children:[!P&&s.jsx("button",{className:"doss-3d",title:"edit this agent",onClick:We,children:"✎ edit"}),j&&s.jsx("button",{className:"doss-3d",title:"see the whole brain in 3D",onClick:()=>Ka("/graph"),children:"◉ 3D"}),s.jsx("button",{className:"doss-close",title:"close the dossier","aria-label":"close the dossier",onClick:R,children:"✕"})]})]}),E.role&&s.jsx("p",{className:"doss-role",children:E.role}),P&&s.jsxs("div",{className:"doss-edit",children:[s.jsxs("div",{className:"doss-edit-row2",children:[s.jsxs("label",{children:["name",s.jsx("input",{value:ee.name,onChange:m=>te({...ee,name:m.target.value})})]}),s.jsxs("label",{className:"narrow",children:["emoji",s.jsx("input",{value:ee.emoji,onChange:m=>te({...ee,emoji:m.target.value})})]})]}),s.jsxs("label",{children:["role",s.jsx("input",{value:ee.role,onChange:m=>te({...ee,role:m.target.value}),placeholder:"one line — what this agent is for"})]}),s.jsxs("label",{children:["rules ",s.jsx("em",{children:"comma-separated refs · inherited by everyone beneath"}),s.jsx("input",{value:ee.rules,onChange:m=>te({...ee,rules:m.target.value}),placeholder:"rules/GLOBAL.md, rules/CONTENT.md"})]}),s.jsxs("label",{children:["memory buckets ",s.jsx("em",{children:"comma-separated"}),s.jsx("input",{value:ee.buckets,onChange:m=>te({...ee,buckets:m.target.value}),placeholder:"shared, content"})]}),s.jsxs("label",{children:["skills ",s.jsx("em",{children:"comma-separated"}),s.jsx("input",{value:ee.skills,onChange:m=>te({...ee,skills:m.target.value}),placeholder:"humanizer, deep-research"})]}),s.jsx("p",{className:"doss-edit-hint",children:"↓ edit the contract below — the agent's operating prompt lives in its own section."}),s.jsxs("div",{className:"doss-edit-actions",children:[s.jsx("button",{className:"btn primary",onClick:ze,children:"save to draft"}),s.jsx("button",{className:"btn ghost",onClick:()=>oe(!1),children:"cancel"})]})]}),E.kind==="automation"&&(()=>{const m=Mn(E,N),H=Ea(E,N);return s.jsxs("div",{className:`doss-health ${H}`,children:[s.jsx("i",{className:`mac-dot ${H}`}),s.jsx("b",{children:H==="ok"?"healthy":H==="fail"?"last run failed":H==="warn"?"stale or degraded":"no runs recorded"}),(m==null?void 0:m.lastAt)&&s.jsxs("span",{children:["last run ",Ta(m.lastAt)]}),m&&m.n>0&&s.jsxs("span",{children:[Math.round((m.n-m.fails)/m.n*100),"% ok of ",m.n]}),typeof E.cadence=="number"&&s.jsxs("span",{children:["reports ",Es(E.cadence)]})]})})(),s.jsx("div",{className:"doss-chain",children:C.chain.map((m,H)=>s.jsxs("span",{children:[H>0&&s.jsx("i",{children:"›"}),s.jsx("b",{className:m.id===E.id?"me":"",children:m.name})]},m.id))}),j&&s.jsxs("div",{className:"doss-stats",children:[s.jsxs("div",{className:"doss-stat",children:[s.jsx("div",{className:"doss-n",children:X===null?"…":Ae.toLocaleString()}),s.jsx("div",{className:"doss-l",children:"memories in reach"})]}),s.jsxs("div",{className:"doss-stat",children:[s.jsx("div",{className:"doss-n",children:ie===null?"…":Ie.toLocaleString()}),s.jsx("div",{className:"doss-l",children:"reports filed"})]}),s.jsxs("div",{className:"doss-stat",children:[s.jsx("div",{className:"doss-n",children:C.children.filter(m=>m.kind!=="automation").length}),s.jsx("div",{className:"doss-l",children:"direct reports"})]})]}),j&&s.jsxs("section",{children:[s.jsx("h3",{children:"latest reports"}),se===null?s.jsx("p",{className:"doss-empty",children:"loading…"}):se.length===0?s.jsx("p",{className:"doss-empty",children:"no reports filed yet — they appear here as this agent closes work."}):s.jsx("div",{className:"doss-reps",children:se.map(m=>{var W;const H=Ta(Na(m)),f=Zd(m),S=typeof((W=m.data)==null?void 0:W.status)=="string"?String(m.data.status):void 0,k=Me===m.id,M=new Set(["summary","status","at","ts","time","created_at","date","bst","ts_bst","finished_at"]),Z=m.data?Object.entries(m.data).filter(([ae,Oe])=>!M.has(ae)&&Oe!=null&&Oe!==""):[];return s.jsxs("div",{className:`doss-rep tap${k?" open":""}`,role:"button",tabIndex:0,"aria-expanded":k,title:"click for the full report",onClick:()=>F(k?null:m.id),onKeyDown:ae=>{(ae.key==="Enter"||ae.key===" ")&&(ae.preventDefault(),F(k?null:m.id))},children:[s.jsxs("div",{className:"doss-rep-top",children:[S&&s.jsx("span",{className:`rep-dot ${S}`,"aria-label":S}),H&&s.jsx("span",{className:"doss-rep-when",children:H}),s.jsx("span",{className:"doss-rep-label",children:m.label}),s.jsx("span",{className:"doss-rep-caret","aria-hidden":!0,children:k?"▾":"▸"})]}),f&&s.jsx("p",{className:"doss-rep-sum",children:f}),k&&s.jsxs("div",{className:"doss-rep-detail",children:[S&&s.jsxs("div",{children:[s.jsx("span",{className:"doss-l",children:"status"})," ",s.jsx("b",{className:`rep-${S}`,children:S})]}),Z.map(([ae,Oe])=>s.jsxs("div",{children:[s.jsx("span",{className:"doss-l",children:ae})," ",String(Oe)]},ae)),Z.length===0&&!S&&s.jsx("div",{className:"doss-empty",children:"no extra detail on this report"})]})]},m.id)})})]}),O.length>0&&s.jsxs("section",{children:[s.jsxs("h3",{children:["automations · ",O.length," — machines this agent operates"]}),s.jsx("div",{className:"doss-autos",children:O.map(m=>{const H=Mn(m,N);return s.jsxs("button",{className:"doss-auto",onClick:()=>_(m.id),children:[s.jsx("i",{className:`mac-dot ${Ea(m,N)}${Ld(m,N)?" unstable":""}`}),s.jsx("span",{className:"doss-auto-emoji",children:m.emoji||"⚙️"}),s.jsx("span",{className:"doss-auto-name",children:m.name}),m.role&&s.jsx("span",{className:"doss-auto-role",children:m.role}),(H==null?void 0:H.lastAt)&&s.jsx("span",{className:"doss-auto-when",children:Ta(H.lastAt)})]},m.id)})})]}),s.jsxs("section",{children:[s.jsx("h3",{children:"rules · inherited top-down"}),C.rules.length===0?s.jsx("p",{className:"doss-empty",children:"no rules anywhere on this branch yet."}):s.jsx("ul",{className:"doss-rules",children:C.rules.map(m=>s.jsxs("li",{className:q.has(m)?"own":"",children:[m," ",!q.has(m)&&s.jsx("em",{children:"inherited"})]},m))})]}),s.jsxs("section",{children:[s.jsx("h3",{children:"memory buckets"}),C.buckets.length===0?s.jsx("p",{className:"doss-empty",children:"no bucket access — this agent remembers nothing."}):s.jsx("div",{className:"doss-chips",children:C.buckets.map(m=>s.jsxs(Ii,{onClick:()=>Ka(`/buckets/${encodeURIComponent(m)}`),children:[m," ›"]},m))})]}),s.jsxs("section",{children:[s.jsx("h3",{children:"skills"}),C.skills.length===0?s.jsx("p",{className:"doss-empty",children:"no skills declared."}):s.jsx("div",{className:"doss-chips",children:C.skills.map(m=>s.jsx(Ii,{tone:"alt",children:m},m))})]}),!P&&s.jsxs("section",{className:"doss-contract",children:[s.jsxs("h3",{children:["contract ",s.jsx("em",{children:"the operating prompt — loaded first, every session"})]}),Ne?s.jsxs("div",{className:"contract-edit",children:[s.jsx("textarea",{className:"contract-ta",autoFocus:!0,value:ut,onChange:m=>ke(m.target.value),placeholder:"Who this agent is · what it decides · how it verifies · when it stops. This is the first thing it reads."}),s.jsxs("div",{className:"doss-edit-actions",children:[s.jsx("button",{className:"btn primary",onClick:()=>{o(b,{boot:ut.trim()||void 0}),Ye(!1)},children:"save to draft"}),s.jsx("button",{className:"btn ghost",onClick:()=>Ye(!1),children:"cancel"})]})]}):s.jsxs("button",{type:"button",className:`contract-card${E.boot?"":" empty"}`,title:"click to open · edit this agent's contract",onClick:()=>{ke(E.boot??""),Ye(!0)},children:[E.boot?s.jsx("p",{className:"doss-boot",children:E.boot}):s.jsx("p",{className:"doss-empty",children:"no contract yet — click to write one."}),s.jsx("span",{className:"contract-hint",children:"✎ edit"})]})]}),s.jsxs("div",{className:"doss-foot",children:[s.jsxs("button",{className:"btn ghost",onClick:()=>g(b),children:["+ add agent under ",E.name]}),!B&&s.jsxs("button",{className:"btn danger",onClick:()=>z(b),children:["− remove ",E.name]})]})]})}function Kp({draft:r,selected:b,dragId:j,setSelected:o,setDragId:g,dropOn:z,hasSnapshot:_,onUpdate:R,onAdd:N,onRemove:v,showLaw:C}){const O=_l(),[X,V]=G.useState(null);G.useEffect(()=>{_&&On(O,null,1e4).then(({nodes:q})=>V(Mp(q))).catch(()=>{})},[_,O]);const[ie,$]=G.useState(null),se=G.useMemo(()=>{var q;return new Set(ie?((q=Dn(r,ie))==null?void 0:q.buckets)??[]:[])},[ie,r]),[Y,P]=G.useState(()=>new Set),oe=G.useMemo(()=>r.agents.filter(q=>q.parent===r.root),[r]),ee=G.useCallback(q=>{P(m=>{const H=new Set(m);return H.has(q)?H.delete(q):H.add(q),H})},[]),te=oe.length>0&&oe.every(q=>Y.has(q.id)),Me=`${r.agents.length}:${[...Y].sort().join(",")}:${C}:${X?1:0}:${b??""}`,F=G.useRef(null),Ne=G.useRef(null),[Ye,ut]=G.useState(1),[ke,Ae]=G.useState(null),[Ie,We]=G.useState({w:0,h:0}),ze=ke??Ye;G.useLayoutEffect(()=>{const q=F.current,m=Ne.current;if(!q||!m)return;const H=24,f=()=>{const k=m.scrollWidth,M=m.scrollHeight,Z=q.clientWidth-H*2,W=q.clientHeight-H*2;if(k<=0||M<=0)return;We(Ct=>Ct.w===k&&Ct.h===M?Ct:{w:k,h:M});const ae=Z/k,Oe=W/M,je=M>W*1.35?ae:Math.min(ae,Oe);ut(Math.min(1,je>0?je:1))};f();const S=new ResizeObserver(f);return S.observe(q),S.observe(m),()=>S.disconnect()},[r,X,b,Y]);const E=G.useRef(ze);E.current=ze,G.useEffect(()=>{const q=F.current;if(!q)return;const m=H=>{if(!H.ctrlKey&&!H.metaKey)return;H.preventDefault();const f=H.deltaY<0?1.12:1/1.12;Ae(Math.min(2.5,Math.max(.2,E.current*f)))};return q.addEventListener("wheel",m,{passive:!1}),()=>q.removeEventListener("wheel",m)},[]);const B=r.agents.find(q=>q.id===r.root);return s.jsxs("div",{className:"body",onClick:()=>o(null),children:[s.jsxs("main",{className:`tree${C?" law-on":""}`,onClick:q=>q.stopPropagation(),children:[s.jsx("p",{className:"tree-hint",children:C?"the rails now trace authority — brass flows from the House Standard through every SOP to every role":"drag a plate — or a machine — onto its new parent · click for its dossier · machine racks show live health"}),s.jsxs("div",{className:"ranks",children:[s.jsxs("div",{className:"rank",children:[s.jsx("b",{children:"I"}),"The standard"]}),s.jsxs("div",{className:"rank",children:[s.jsx("b",{children:"II"}),"The executive"]}),s.jsxs("div",{className:"rank",children:[s.jsx("b",{children:"III"}),"Departments"]}),s.jsxs("div",{className:"rank",children:[s.jsx("b",{children:"IV"}),"Staff & machines"]})]}),s.jsx("div",{className:`chart-fit${ke!==null?" zoomed":""}`,ref:F,children:s.jsx("div",{className:"chart-scaled",style:{width:Ie.w*ze,height:Ie.h*ze},children:s.jsxs("div",{className:"chart",ref:Ne,style:{"--fit":ze,transform:ke!==null?`scale(${ze})`:`translateX(-50%) scale(${ze})`},children:[s.jsx(qp,{chartRef:Ne,version:Me}),s.jsxs("div",{className:"cascade",children:[s.jsx(Bp,{org:r,selected:b===r.root,onSelect:o}),B&&s.jsx(Kd,{org:r,a:B,depth:0,order:0,selected:b,dragId:j,health:X,onSelect:o,onDragStart:g,onDropOn:z,onHover:$,showLaw:C,collapsed:Y,onToggleCollapse:ee})]})]})})}),s.jsxs("div",{className:"zoomer",children:[s.jsx("button",{type:"button",className:te?"on":"",title:te?"unfold every department — see roles again":"fold every department to head-only — house → department",onClick:()=>P(te?new Set:new Set(oe.map(q=>q.id))),children:te?"⌂ house":"▾ roles"}),s.jsx("span",{className:"zoomer-sep"}),s.jsx("button",{type:"button",title:"zoom out (ctrl+wheel)",onClick:()=>Ae(Math.max(.2,ze/1.25)),children:"−"}),s.jsxs("span",{className:"zoomer-pct",children:[Math.round(ze*100),"%"]}),s.jsx("button",{type:"button",title:"zoom in (ctrl+wheel)",onClick:()=>Ae(Math.min(2.5,ze*1.25)),children:"+"}),s.jsx("button",{type:"button",className:ke===null?"on":"",title:"fit the whole org in view",onClick:()=>Ae(null),children:"fit"})]}),s.jsx(Hp,{org:r,lit:se})]}),b&&s.jsx(Vp,{org:r,id:b,hasSnapshot:_,onUpdate:R,onAdd:N,onRemove:v,onSelect:o,onClose:()=>o(null),health:X})]})}function Jp({bucket:r}){const b=_l(),[j,o]=G.useState(null);G.useEffect(()=>{b(`/nodes?type=memory&cluster=${encodeURIComponent(r)}&limit=1`).then(z=>o(z.total)).catch(()=>o(0))},[r,b]);const g=ja(j??0);return s.jsx("div",{className:"bk-n",children:j===null?"…":g.toLocaleString()})}function $p({org:r,param:b,hasSnapshot:j}){const o=_l(),[g,z]=G.useState(null);G.useEffect(()=>{if(!j){z({});return}o("/clusters?type=memory").then(v=>z(v.clusters??{})).catch(()=>z({}))},[j,o]);const _=G.useMemo(()=>{const v=new Map;for(const C of r.agents){const O=Dn(r,C.id);for(const X of(O==null?void 0:O.buckets)??[]){const V=v.get(X)??[];V.push(C),v.set(X,V)}}for(const C of Object.keys(g??{}))v.has(C)||v.set(C,[]);return[...v.entries()].sort((C,O)=>(O[1].length?1:0)-(C[1].length?1:0)||((g==null?void 0:g[O[0]])??0)-((g==null?void 0:g[C[0]])??0)||C[0].localeCompare(O[0]))},[r,g]),[R,N]=G.useState(null);return G.useEffect(()=>{N(null),!(!b||!j)&&o(`/nodes?type=memory&cluster=${encodeURIComponent(b)}&limit=500`).then(v=>{N([...v.nodes].sort((C,O)=>Na(O).localeCompare(Na(C))))}).catch(()=>N([]))},[b,j,o]),b?s.jsxs("div",{className:"screen",children:[s.jsx("button",{className:"pnl-back",onClick:()=>Ka("/buckets"),children:"← all buckets"}),s.jsxs("h2",{className:"scr-title",children:[s.jsx("i",{className:"bk-dot",style:{"--h":Fi(b)}})," ",b]}),j?R===null?s.jsx("p",{className:"scr-empty",children:"loading…"}):R.length===0?s.jsx("p",{className:"scr-empty",children:"this bucket is empty — nothing remembered here yet."}):s.jsx("div",{className:"mem-list",children:R.slice(0,150).map(v=>{const C=Ta(Na(v));return s.jsxs("div",{className:"mem-row",children:[C&&s.jsx("span",{className:"mem-when",children:C}),s.jsx("span",{className:"mem-label",children:v.label})]},v.id)})}):s.jsxs("p",{className:"scr-empty",children:["start with ",s.jsx("code",{children:"--snapshot"})," to browse this bucket's memories."]})]}):s.jsxs("div",{className:"screen",children:[s.jsx("h2",{className:"scr-title",children:"memory buckets"}),s.jsx("p",{className:"scr-sub",children:"every bucket in the organigram, who reaches it, and how much lives inside."}),_.length===0?s.jsxs("p",{className:"scr-empty",children:["no buckets declared on any agent yet — add ",s.jsx("code",{children:'"buckets"'})," to agents in the org file."]}):s.jsx("div",{className:"bk-grid",children:_.map(([v,C],O)=>s.jsxs("button",{className:"bk-card",style:{"--h":Fi(v),animationDelay:`${O*70}ms`},onClick:()=>Ka(`/buckets/${encodeURIComponent(v)}`),children:[s.jsxs("div",{className:"bk-top",children:[s.jsx("i",{className:"bk-dot"}),s.jsx("span",{className:"bk-name",children:v})]}),j?s.jsx(Jp,{bucket:v}):s.jsx("div",{className:"bk-n dim",children:"—"}),s.jsx("div",{className:"bk-l",children:"memories"}),C.length>0?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"bk-crew",children:[C.slice(0,7).map(X=>s.jsx("span",{className:"bk-face",title:X.name,children:X.emoji||"🤖"},X.id)),C.length>7&&s.jsxs("span",{className:"bk-more",children:["+",C.length-7]})]}),s.jsxs("div",{className:"bk-agents",children:[C.slice(0,3).map(X=>X.name).join(" · "),C.length>3?` +${C.length-3}`:""]})]}):s.jsx("div",{className:"bk-agents unassigned",children:"unassigned — no agent declares this bucket; add it to an agent's buckets to claim it"})]},v))})]})}function Wp({org:r,hasSnapshot:b}){const j=_l(),[o,g]=G.useState(null),[z,_]=G.useState(""),R=G.useMemo(()=>new Map(r.agents.map(O=>[O.id,O])),[r]);G.useEffect(()=>{b&&On(j,null,1e3).then(({nodes:O})=>g(O)).catch(()=>g([]))},[b,j]);const N=G.useMemo(()=>[...new Set((o??[]).map(An))].filter(Boolean),[o]),v=(o??[]).filter(O=>!z||An(O)===z),C=ja(v.length);return b?s.jsxs("div",{className:"screen",children:[s.jsxs("h2",{className:"scr-title",children:["reports ",s.jsx("span",{className:"scr-count",children:C})]}),s.jsx("p",{className:"scr-sub",children:"what the fleet has been closing, newest first."}),N.length>1&&s.jsxs("div",{className:"rep-filter",children:[s.jsx(Ii,{tone:z===""?"":"alt",onClick:()=>_(""),children:"everyone"}),N.map(O=>{var X,V;return s.jsxs(Ii,{tone:z===O?"":"alt",onClick:()=>_(z===O?"":O),children:[((X=R.get(O))==null?void 0:X.emoji)??""," ",((V=R.get(O))==null?void 0:V.name)??O]},O)})]}),o===null?s.jsx("p",{className:"scr-empty",children:"loading…"}):v.length===0?s.jsxs("p",{className:"scr-empty",children:["no reports filed yet — they land here as agents close work (node type ",s.jsx("code",{children:"report"}),")."]}):s.jsxs("div",{className:"timeline",children:[v.slice(0,100).map(O=>{const X=An(O),V=X?R.get(X):void 0,ie=Ta(Na(O)),$=Zd(O);return s.jsxs("div",{className:"tl-row",style:{"--h":Fi(X||"x")},children:[s.jsx("div",{className:"tl-dot"}),s.jsxs("div",{className:"tl-body",children:[s.jsxs("div",{className:"tl-top",children:[s.jsx("span",{className:"tl-ava",children:(V==null?void 0:V.emoji)??"🤖"}),s.jsx("span",{className:"tl-agent",children:(V==null?void 0:V.name)??X??"unknown"}),ie&&s.jsx("span",{className:"tl-when",children:ie})]}),s.jsx("p",{className:"tl-sum",children:$||O.label})]})]},O.id)}),v.length>100&&s.jsxs("p",{className:"scr-empty",children:["showing the latest 100 of ",v.length,"."]})]})]}):s.jsxs("div",{className:"screen",children:[s.jsx("h2",{className:"scr-title",children:"reports"}),s.jsxs("p",{className:"scr-empty",children:["start with ",s.jsx("code",{children:"--snapshot"})," to see the portfolio timeline."]})]})}function Fp({org:r}){const b=G.useMemo(()=>{const o=new Map;for(const _ of r.agents)for(const R of _.rules??[]){const N=o.get(R)??[];N.push(_.id),o.set(R,N)}const g=new Map;for(const _ of r.agents){const R=new Set(_.rules??[]),N=Dn(r,_.id);for(const v of(N==null?void 0:N.rules)??[])if(!R.has(v)){const C=g.get(v)??[];C.push(_.id),g.set(v,C)}}const z=_=>{var R;return((R=r.agents.find(N=>N.id===_))==null?void 0:R.name)??_};return[...o.entries()].sort((_,R)=>_[0].localeCompare(R[0])).map(([_,R])=>({rule:_,global:R.includes(r.root),declaredBy:R.map(z),inheritedBy:(g.get(_)??[]).map(z)}))},[r]),j=Math.max(1,r.agents.length-1);return s.jsxs("div",{className:"screen",children:[s.jsxs("h2",{className:"scr-title",children:["rules ",s.jsx("span",{className:"scr-count",children:b.length})]}),s.jsx("p",{className:"scr-sub",children:"every rule in the organigram — who declares it, and who lives under it."}),b.length===0?s.jsxs("p",{className:"scr-empty",children:["no rules declared yet — add ",s.jsx("code",{children:'"rules"'})," refs to agents in the org file."]}):s.jsx("div",{className:"rule-list",children:b.map((o,g)=>s.jsxs("div",{className:"rule-card",style:{animationDelay:`${g*60}ms`},children:[s.jsxs("div",{className:"rule-top",children:[s.jsx("span",{className:"rule-ref",children:o.rule}),o.global&&s.jsx("span",{className:"rule-scope",children:"global — binds everyone"})]}),s.jsxs("div",{className:"rule-meta",children:[s.jsxs("span",{children:["declared by ",s.jsx("b",{children:o.declaredBy.join(", ")})]}),o.inheritedBy.length>0&&s.jsxs("span",{children:[" · binds ",s.jsx("b",{children:o.inheritedBy.length})," below: ",o.inheritedBy.join(", ")]})]}),s.jsx("div",{className:"rule-bar",children:s.jsx("i",{style:{width:`${Math.round(o.inheritedBy.length/j*100)}%`}})})]},o.rule))})]})}function Ip({hasSnapshot:r}){return r?s.jsx("div",{className:"graph-wrap",children:s.jsx("iframe",{className:"graph-frame",src:"/view/?file=/snapshot.json",title:"Booboo 3D brain"})}):s.jsxs("div",{className:"screen",children:[s.jsx("h2",{className:"scr-title",children:"graph"}),s.jsxs("p",{className:"scr-empty",children:["start with ",s.jsx("code",{children:"--snapshot graph.json"})," and the 3D brain renders right here."]})]})}function Pp(){const r=_l(),[b,j]=Cp(),[o,g]=G.useState(null),[z,_]=G.useState(null),[R,N]=G.useState(null),[v,C]=G.useState(null),[O,X]=G.useState(null),[V,ie]=G.useState(""),[$,se]=G.useState(!1),[Y,P]=G.useState(null);G.useEffect(()=>{r("/org").then(m=>{g(m),_(m),new URLSearchParams(window.location.search).get("embed")||N(m.root)}).catch(()=>ie("Can't load the organigram — is `booboo panel --org` running?")),r("/stats").then(X).catch(()=>X(null)),Promise.all([r("/nodes?type=memory&limit=1").then(m=>m.total),On(r,null,1).then(m=>m.total)]).then(([m,H])=>P({mem:m,rep:H})).catch(()=>P(null))},[r]);const oe=G.useMemo(()=>{if(!o||!z)return[];const m=new Map(o.agents.map(M=>[M.id,M])),H=new Map(z.agents.map(M=>[M.id,M])),f=M=>{var Z,W;return((Z=H.get(M))==null?void 0:Z.name)??((W=m.get(M))==null?void 0:W.name)??M},S=({parent:M,...Z})=>Z,k=[];for(const M of z.agents){const Z=m.get(M.id);if(!Z){k.push({key:`add:${M.id}`,id:M.id,kind:"added",label:`+ ${M.name} under ${M.parent?f(M.parent):"root"}`});continue}(Z.parent??null)!==(M.parent??null)&&k.push({key:`move:${M.id}`,id:M.id,kind:"moved",label:`${M.name} → now under ${M.parent?f(M.parent):"root"}`}),JSON.stringify(S(Z))!==JSON.stringify(S(M))&&k.push({key:`edit:${M.id}`,id:M.id,kind:"edited",label:`✎ ${M.name} edited`})}for(const M of o.agents)H.has(M.id)||k.push({key:`rm:${M.id}`,id:M.id,kind:"removed",label:`− ${M.name} removed`});return k},[o,z]),ee=G.useCallback(m=>{if(!o||!z)return;const H=o.agents.find(f=>f.id===m.id);_(f=>f&&(m.kind==="added"?{...f,agents:f.agents.filter(S=>S.id!==m.id)}:m.kind==="removed"&&H?{...f,agents:[...f.agents,H]}:H?{...f,agents:f.agents.map(S=>S.id!==m.id?S:m.kind==="moved"?{...S,parent:H.parent}:{...H,parent:S.parent})}:f))},[o,z]),te=G.useCallback((m,H)=>{_(f=>f&&{...f,agents:f.agents.map(S=>S.id===m?{...S,...H}:S)})},[]),Me=G.useCallback(m=>{if(!z)return;const H=window.prompt("Name for the new agent:");if(!H||!H.trim())return;const f=Dp(H)||"agent";let S=f,k=2;for(;z.agents.some(M=>M.id===S);)S=`${f}-${k++}`;_({...z,agents:[...z.agents,{id:S,name:H.trim(),emoji:"🤖",parent:m}]}),N(S)},[z]),F=G.useCallback(m=>{var k;if(!z||m===z.root)return;const H=z.agents.find(M=>M.id===m);if(!H)return;const f=((k=z.agents.find(M=>M.id===H.parent))==null?void 0:k.name)??"the root",S=z.agents.filter(M=>M.parent===m).length;window.confirm(`Remove ${H.name}?${S?` Its ${S} direct report${S>1?"s":""} move up to ${f}.`:""}`)&&(_({...z,agents:z.agents.filter(M=>M.id!==m).map(M=>M.parent===m?{...M,parent:H.parent??z.root}:M)}),N(H.parent??z.root))},[z]),Ne=G.useCallback((m,H,f)=>{const S=new Map(m.agents.map(Z=>[Z.id,Z]));let k=S.get(H);const M=new Set;for(;k!=null&&k.parent&&!M.has(k.id);){if(M.add(k.id),k.parent===f)return!0;k=S.get(k.parent)}return!1},[]),Ye=G.useCallback(m=>{!z||!v||v===m||v!==z.root&&(Ne(z,m,v)||(_({...z,agents:z.agents.map(H=>H.id===v?{...H,parent:m}:H)}),C(null)))},[z,v,Ne]),ut=G.useCallback(async()=>{var m;if(z){se(!0),ie("");try{await r("/org",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(z)}),g(z)}catch(H){ie(`apply failed: ${((m=H==null?void 0:H.errors)==null?void 0:m.join("; "))??"unknown error"}`)}finally{se(!1)}}},[z,r]),ke=ja((z==null?void 0:z.agents.length)??0),Ae=ja((O==null?void 0:O.nodes)??0,1200),Ie=ja((Y==null?void 0:Y.mem)??0,1100),We=ja((Y==null?void 0:Y.rep)??0,1300),[ze,E]=Up(),[B,q]=G.useState(!1);return V&&!z?s.jsx("div",{className:"pnl-fatal",children:V}):z?s.jsxs("div",{className:"pnl",children:[s.jsx("div",{className:"pnl-aurora","aria-hidden":!0}),s.jsx(Rp,{}),s.jsxs("header",{className:"bar",children:[s.jsxs("div",{className:"bar-brand",children:["🐾 ",s.jsx("b",{children:z.title||"the organigram"})]}),s.jsxs("div",{className:"bar-stats",children:[s.jsxs("span",{children:[s.jsx("b",{children:ke})," agents"]}),O&&s.jsxs("span",{children:[s.jsx("b",{children:Ae.toLocaleString()})," nodes"]}),Y&&s.jsxs("span",{onClick:()=>Ka("/buckets"),className:"tap",children:[s.jsx("b",{children:Ie.toLocaleString()})," memories"]}),Y&&s.jsxs("span",{onClick:()=>Ka("/reports"),className:"tap",children:[s.jsx("b",{children:We.toLocaleString()})," reports"]})]}),s.jsxs("div",{className:"bar-actions",children:[b==="org"&&s.jsx("button",{className:`btn ghost law-toggle${B?" on":""}`,title:"trace rule inheritance — House Standard → SOP → role","aria-pressed":B,onClick:()=>q(m=>!m),children:"⚖ show the law"}),s.jsx("button",{className:"btn ghost theme-toggle",title:"light / dark","aria-label":"toggle light or dark theme",onClick:E,children:ze==="dark"?"☀":"☾"}),oe.length>0?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"bar-draft",children:[oe.length," unapplied change",oe.length>1?"s":""]}),s.jsx("button",{className:"btn ghost",onClick:()=>_(o),children:"discard"}),s.jsx("button",{className:"btn primary",disabled:$,onClick:ut,children:$?"applying…":"apply → org file"})]}):s.jsx("span",{className:"bar-ok",children:"● in sync with the org file"})]})]}),s.jsx("nav",{className:"tabs",children:Qd.map(m=>s.jsxs("button",{className:`tab${b===m.id?" on":""}`,onClick:()=>Ka(`/${m.id==="org"?"":m.id}`),children:[s.jsx("span",{className:"tab-glyph",children:m.glyph})," ",m.label]},m.id))}),oe.length>0&&b==="org"&&s.jsxs("div",{className:"pending",children:[s.jsx("span",{className:"pending-lead",children:"unapplied"}),oe.map(m=>s.jsxs("button",{type:"button",className:"pending-item",title:"undo just this change",onClick:()=>ee(m),children:[m.label,s.jsx("i",{"aria-hidden":"true",children:"undo"})]},m.key))]}),V&&s.jsx("div",{className:"pnl-err",children:V}),s.jsxs("div",{className:"content",children:[b==="org"&&s.jsx(Kp,{draft:z,selected:R,dragId:v,setSelected:N,setDragId:C,dropOn:Ye,hasSnapshot:!!O,onUpdate:te,onAdd:Me,onRemove:F,showLaw:B}),b==="buckets"&&s.jsx($p,{org:z,param:j,hasSnapshot:!!O}),b==="reports"&&s.jsx(Wp,{org:z,hasSnapshot:!!O}),b==="rules"&&s.jsx(Fp,{org:z}),b==="graph"&&s.jsx(Ip,{hasSnapshot:!!O})]},b+(j??""))]}):s.jsx("div",{className:"pnl-fatal calm",children:"waking the organigram…"})}function eg({api:r=Gd}={}){return s.jsxs(Xd.Provider,{value:r,children:[s.jsx("style",{children:Np}),s.jsx(Pp,{})]})}Tp.createRoot(document.getElementById("root")).render(s.jsx(G.StrictMode,{children:s.jsx(eg,{})}));
|