@feltdb/feltkit 0.2.0 → 0.3.1
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/cli/deploy.js +9 -0
- package/dist/cli/deploy.js.map +1 -1
- package/dist/cli/main.js +128 -7
- package/dist/cli/main.js.map +1 -1
- package/dist/dashboard/assets/index-D9529PVz.js +15 -0
- package/dist/dashboard/index.html +1 -1
- package/dist/errors.d.ts +3 -1
- package/dist/errors.js +1 -0
- package/dist/errors.js.map +1 -1
- package/dist/runtime/authority.d.ts +1 -0
- package/dist/runtime/authority.js +3 -0
- package/dist/runtime/authority.js.map +1 -1
- package/dist/runtime/credentials.d.ts +159 -27
- package/dist/runtime/credentials.js +389 -14
- package/dist/runtime/credentials.js.map +1 -1
- package/dist/runtime/decisions.d.ts +20 -5
- package/dist/runtime/decisions.js +91 -22
- package/dist/runtime/decisions.js.map +1 -1
- package/dist/runtime/integrations.d.ts +5 -0
- package/dist/runtime/integrations.js +20 -3
- package/dist/runtime/integrations.js.map +1 -1
- package/dist/runtime/readiness.js +3 -3
- package/dist/runtime/readiness.js.map +1 -1
- package/dist/runtime/runtime.d.ts +3 -0
- package/dist/runtime/runtime.js +27 -0
- package/dist/runtime/runtime.js.map +1 -1
- package/dist/runtime/services.d.ts +23 -4
- package/dist/runtime/services.js +60 -1
- package/dist/runtime/services.js.map +1 -1
- package/dist/server/admin.d.ts +56 -2
- package/dist/server/admin.js +176 -9
- package/dist/server/admin.js.map +1 -1
- package/package.json +3 -3
- package/skills/.claude-plugin/marketplace.json +1 -1
- package/skills/.claude-plugin/plugin.json +1 -1
- package/skills/feltkit-build/SKILL.md +14 -4
- package/skills/feltkit-services/SKILL.md +29 -7
- package/dist/dashboard/assets/index-Bm4qCYpv.js +0 -15
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
(function(){const d=document.createElement("link").relList;if(d&&d.supports&&d.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))r(m);new MutationObserver(m=>{for(const g of m)if(g.type==="childList")for(const z of g.addedNodes)z.tagName==="LINK"&&z.rel==="modulepreload"&&r(z)}).observe(document,{childList:!0,subtree:!0});function f(m){const g={};return m.integrity&&(g.integrity=m.integrity),m.referrerPolicy&&(g.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?g.credentials="include":m.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function r(m){if(m.ep)return;m.ep=!0;const g=f(m);fetch(m.href,g)}})();var Au={exports:{}},Cn={};var kf;function kv(){if(kf)return Cn;kf=1;var u=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");function f(r,m,g){var z=null;if(g!==void 0&&(z=""+g),m.key!==void 0&&(z=""+m.key),"key"in m){g={};for(var D in m)D!=="key"&&(g[D]=m[D])}else g=m;return m=g.ref,{$$typeof:u,type:r,key:z,ref:m!==void 0?m:null,props:g}}return Cn.Fragment=d,Cn.jsx=f,Cn.jsxs=f,Cn}var Lf;function Lv(){return Lf||(Lf=1,Au.exports=kv()),Au.exports}var n=Lv(),Eu={exports:{}},P={};var Zf;function Zv(){if(Zf)return P;Zf=1;var u=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),z=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),Y=Symbol.iterator;function K(p){return p===null||typeof p!="object"?null:(p=Y&&p[Y]||p["@@iterator"],typeof p=="function"?p:null)}var W={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,H={};function T(p,R,k){this.props=p,this.context=R,this.refs=H,this.updater=k||W}T.prototype.isReactComponent={},T.prototype.setState=function(p,R){if(typeof p!="object"&&typeof p!="function"&&p!=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,p,R,"setState")},T.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function Q(){}Q.prototype=T.prototype;function w(p,R,k){this.props=p,this.context=R,this.refs=H,this.updater=k||W}var ie=w.prototype=new Q;ie.constructor=w,G(ie,T.prototype),ie.isPureReactComponent=!0;var Ne=Array.isArray;function ze(){}var q={H:null,A:null,T:null,S:null},fe=Object.prototype.hasOwnProperty;function De(p,R,k){var Z=k.ref;return{$$typeof:u,type:p,key:R,ref:Z!==void 0?Z:null,props:k}}function Gt(p,R){return De(p.type,R,p.props)}function lt(p){return typeof p=="object"&&p!==null&&p.$$typeof===u}function ke(p){var R={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(k){return R[k]})}var Ut=/\/+/g;function Rt(p,R){return typeof p=="object"&&p!==null&&p.key!=null?ke(""+p.key):R.toString(36)}function ot(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(ze,ze):(p.status="pending",p.then(function(R){p.status==="pending"&&(p.status="fulfilled",p.value=R)},function(R){p.status==="pending"&&(p.status="rejected",p.reason=R)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function N(p,R,k,Z,ee){var se=typeof p;(se==="undefined"||se==="boolean")&&(p=null);var pe=!1;if(p===null)pe=!0;else switch(se){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(p.$$typeof){case u:case d:pe=!0;break;case M:return pe=p._init,N(pe(p._payload),R,k,Z,ee)}}if(pe)return ee=ee(p),pe=Z===""?"."+Rt(p,0):Z,Ne(ee)?(k="",pe!=null&&(k=pe.replace(Ut,"$&/")+"/"),N(ee,R,k,"",function(wa){return wa})):ee!=null&&(lt(ee)&&(ee=Gt(ee,k+(ee.key==null||p&&p.key===ee.key?"":(""+ee.key).replace(Ut,"$&/")+"/")+pe)),R.push(ee)),1;pe=0;var et=Z===""?".":Z+":";if(Ne(p))for(var Re=0;Re<p.length;Re++)Z=p[Re],se=et+Rt(Z,Re),pe+=N(Z,R,k,se,ee);else if(Re=K(p),typeof Re=="function")for(p=Re.call(p),Re=0;!(Z=p.next()).done;)Z=Z.value,se=et+Rt(Z,Re++),pe+=N(Z,R,k,se,ee);else if(se==="object"){if(typeof p.then=="function")return N(ot(p),R,k,Z,ee);throw R=String(p),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}return pe}function X(p,R,k){if(p==null)return p;var Z=[],ee=0;return N(p,Z,"","",function(se){return R.call(k,se,ee++)}),Z}function I(p){if(p._status===-1){var R=p._result;R=R(),R.then(function(k){(p._status===0||p._status===-1)&&(p._status=1,p._result=k)},function(k){(p._status===0||p._status===-1)&&(p._status=2,p._result=k)}),p._status===-1&&(p._status=0,p._result=R)}if(p._status===1)return p._result.default;throw p._result}var ye=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(R))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)},Ae={map:X,forEach:function(p,R,k){X(p,function(){R.apply(this,arguments)},k)},count:function(p){var R=0;return X(p,function(){R++}),R},toArray:function(p){return X(p,function(R){return R})||[]},only:function(p){if(!lt(p))throw Error("React.Children.only expected to receive a single React element child.");return p}};return P.Activity=A,P.Children=Ae,P.Component=T,P.Fragment=f,P.Profiler=m,P.PureComponent=w,P.StrictMode=r,P.Suspense=j,P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,P.__COMPILER_RUNTIME={__proto__:null,c:function(p){return q.H.useMemoCache(p)}},P.cache=function(p){return function(){return p.apply(null,arguments)}},P.cacheSignal=function(){return null},P.cloneElement=function(p,R,k){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var Z=G({},p.props),ee=p.key;if(R!=null)for(se in R.key!==void 0&&(ee=""+R.key),R)!fe.call(R,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&R.ref===void 0||(Z[se]=R[se]);var se=arguments.length-2;if(se===1)Z.children=k;else if(1<se){for(var pe=Array(se),et=0;et<se;et++)pe[et]=arguments[et+2];Z.children=pe}return De(p.type,ee,Z)},P.createContext=function(p){return p={$$typeof:z,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:g,_context:p},p},P.createElement=function(p,R,k){var Z,ee={},se=null;if(R!=null)for(Z in R.key!==void 0&&(se=""+R.key),R)fe.call(R,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(ee[Z]=R[Z]);var pe=arguments.length-2;if(pe===1)ee.children=k;else if(1<pe){for(var et=Array(pe),Re=0;Re<pe;Re++)et[Re]=arguments[Re+2];ee.children=et}if(p&&p.defaultProps)for(Z in pe=p.defaultProps,pe)ee[Z]===void 0&&(ee[Z]=pe[Z]);return De(p,se,ee)},P.createRef=function(){return{current:null}},P.forwardRef=function(p){return{$$typeof:D,render:p}},P.isValidElement=lt,P.lazy=function(p){return{$$typeof:M,_payload:{_status:-1,_result:p},_init:I}},P.memo=function(p,R){return{$$typeof:v,type:p,compare:R===void 0?null:R}},P.startTransition=function(p){var R=q.T,k={};q.T=k;try{var Z=p(),ee=q.S;ee!==null&&ee(k,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(ze,ye)}catch(se){ye(se)}finally{R!==null&&k.types!==null&&(R.types=k.types),q.T=R}},P.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},P.use=function(p){return q.H.use(p)},P.useActionState=function(p,R,k){return q.H.useActionState(p,R,k)},P.useCallback=function(p,R){return q.H.useCallback(p,R)},P.useContext=function(p){return q.H.useContext(p)},P.useDebugValue=function(){},P.useDeferredValue=function(p,R){return q.H.useDeferredValue(p,R)},P.useEffect=function(p,R){return q.H.useEffect(p,R)},P.useEffectEvent=function(p){return q.H.useEffectEvent(p)},P.useId=function(){return q.H.useId()},P.useImperativeHandle=function(p,R,k){return q.H.useImperativeHandle(p,R,k)},P.useInsertionEffect=function(p,R){return q.H.useInsertionEffect(p,R)},P.useLayoutEffect=function(p,R){return q.H.useLayoutEffect(p,R)},P.useMemo=function(p,R){return q.H.useMemo(p,R)},P.useOptimistic=function(p,R){return q.H.useOptimistic(p,R)},P.useReducer=function(p,R,k){return q.H.useReducer(p,R,k)},P.useRef=function(p){return q.H.useRef(p)},P.useState=function(p){return q.H.useState(p)},P.useSyncExternalStore=function(p,R,k){return q.H.useSyncExternalStore(p,R,k)},P.useTransition=function(){return q.H.useTransition()},P.version="19.2.0",P}var Vf;function wu(){return Vf||(Vf=1,Eu.exports=Zv()),Eu.exports}var B=wu(),Tu={exports:{}},Un={},zu={exports:{}},Ou={};var Kf;function Vv(){return Kf||(Kf=1,(function(u){function d(N,X){var I=N.length;N.push(X);e:for(;0<I;){var ye=I-1>>>1,Ae=N[ye];if(0<m(Ae,X))N[ye]=X,N[I]=Ae,I=ye;else break e}}function f(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var X=N[0],I=N.pop();if(I!==X){N[0]=I;e:for(var ye=0,Ae=N.length,p=Ae>>>1;ye<p;){var R=2*(ye+1)-1,k=N[R],Z=R+1,ee=N[Z];if(0>m(k,I))Z<Ae&&0>m(ee,k)?(N[ye]=ee,N[Z]=I,ye=Z):(N[ye]=k,N[R]=I,ye=R);else if(Z<Ae&&0>m(ee,I))N[ye]=ee,N[Z]=I,ye=Z;else break e}}return X}function m(N,X){var I=N.sortIndex-X.sortIndex;return I!==0?I:N.id-X.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;u.unstable_now=function(){return g.now()}}else{var z=Date,D=z.now();u.unstable_now=function(){return z.now()-D}}var j=[],v=[],M=1,A=null,Y=3,K=!1,W=!1,G=!1,H=!1,T=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function ie(N){for(var X=f(v);X!==null;){if(X.callback===null)r(v);else if(X.startTime<=N)r(v),X.sortIndex=X.expirationTime,d(j,X);else break;X=f(v)}}function Ne(N){if(G=!1,ie(N),!W)if(f(j)!==null)W=!0,ze||(ze=!0,ke());else{var X=f(v);X!==null&&ot(Ne,X.startTime-N)}}var ze=!1,q=-1,fe=5,De=-1;function Gt(){return H?!0:!(u.unstable_now()-De<fe)}function lt(){if(H=!1,ze){var N=u.unstable_now();De=N;var X=!0;try{e:{W=!1,G&&(G=!1,Q(q),q=-1),K=!0;var I=Y;try{t:{for(ie(N),A=f(j);A!==null&&!(A.expirationTime>N&&Gt());){var ye=A.callback;if(typeof ye=="function"){A.callback=null,Y=A.priorityLevel;var Ae=ye(A.expirationTime<=N);if(N=u.unstable_now(),typeof Ae=="function"){A.callback=Ae,ie(N),X=!0;break t}A===f(j)&&r(j),ie(N)}else r(j);A=f(j)}if(A!==null)X=!0;else{var p=f(v);p!==null&&ot(Ne,p.startTime-N),X=!1}}break e}finally{A=null,Y=I,K=!1}X=void 0}}finally{X?ke():ze=!1}}}var ke;if(typeof w=="function")ke=function(){w(lt)};else if(typeof MessageChannel<"u"){var Ut=new MessageChannel,Rt=Ut.port2;Ut.port1.onmessage=lt,ke=function(){Rt.postMessage(null)}}else ke=function(){T(lt,0)};function ot(N,X){q=T(function(){N(u.unstable_now())},X)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(N){N.callback=null},u.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<N?Math.floor(1e3/N):5},u.unstable_getCurrentPriorityLevel=function(){return Y},u.unstable_next=function(N){switch(Y){case 1:case 2:case 3:var X=3;break;default:X=Y}var I=Y;Y=X;try{return N()}finally{Y=I}},u.unstable_requestPaint=function(){H=!0},u.unstable_runWithPriority=function(N,X){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var I=Y;Y=N;try{return X()}finally{Y=I}},u.unstable_scheduleCallback=function(N,X,I){var ye=u.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?ye+I:ye):I=ye,N){case 1:var Ae=-1;break;case 2:Ae=250;break;case 5:Ae=1073741823;break;case 4:Ae=1e4;break;default:Ae=5e3}return Ae=I+Ae,N={id:M++,callback:X,priorityLevel:N,startTime:I,expirationTime:Ae,sortIndex:-1},I>ye?(N.sortIndex=I,d(v,N),f(j)===null&&N===f(v)&&(G?(Q(q),q=-1):G=!0,ot(Ne,I-ye))):(N.sortIndex=Ae,d(j,N),W||K||(W=!0,ze||(ze=!0,ke()))),N},u.unstable_shouldYield=Gt,u.unstable_wrapCallback=function(N){var X=Y;return function(){var I=Y;Y=X;try{return N.apply(this,arguments)}finally{Y=I}}}})(Ou)),Ou}var Jf;function Kv(){return Jf||(Jf=1,zu.exports=Vv()),zu.exports}var _u={exports:{}},Pe={};var $f;function Jv(){if($f)return Pe;$f=1;var u=wu();function d(j){var v="https://react.dev/errors/"+j;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var M=2;M<arguments.length;M++)v+="&args[]="+encodeURIComponent(arguments[M])}return"Minified React error #"+j+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var r={d:{f,r:function(){throw Error(d(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},m=Symbol.for("react.portal");function g(j,v,M){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:A==null?null:""+A,children:j,containerInfo:v,implementation:M}}var z=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function D(j,v){if(j==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return Pe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Pe.createPortal=function(j,v){var M=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(d(299));return g(j,v,null,M)},Pe.flushSync=function(j){var v=z.T,M=r.p;try{if(z.T=null,r.p=2,j)return j()}finally{z.T=v,r.p=M,r.d.f()}},Pe.preconnect=function(j,v){typeof j=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,r.d.C(j,v))},Pe.prefetchDNS=function(j){typeof j=="string"&&r.d.D(j)},Pe.preinit=function(j,v){if(typeof j=="string"&&v&&typeof v.as=="string"){var M=v.as,A=D(M,v.crossOrigin),Y=typeof v.integrity=="string"?v.integrity:void 0,K=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;M==="style"?r.d.S(j,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:A,integrity:Y,fetchPriority:K}):M==="script"&&r.d.X(j,{crossOrigin:A,integrity:Y,fetchPriority:K,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},Pe.preinitModule=function(j,v){if(typeof j=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var M=D(v.as,v.crossOrigin);r.d.M(j,{crossOrigin:M,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&r.d.M(j)},Pe.preload=function(j,v){if(typeof j=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var M=v.as,A=D(M,v.crossOrigin);r.d.L(j,M,{crossOrigin:A,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})}},Pe.preloadModule=function(j,v){if(typeof j=="string")if(v){var M=D(v.as,v.crossOrigin);r.d.m(j,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:M,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else r.d.m(j)},Pe.requestFormReset=function(j){r.d.r(j)},Pe.unstable_batchedUpdates=function(j,v){return j(v)},Pe.useFormState=function(j,v,M){return z.H.useFormState(j,v,M)},Pe.useFormStatus=function(){return z.H.useHostTransitionStatus()},Pe.version="19.2.0",Pe}var Wf;function $v(){if(Wf)return _u.exports;Wf=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(d){console.error(d)}}return u(),_u.exports=Jv(),_u.exports}var Ff;function Wv(){if(Ff)return Un;Ff=1;var u=Kv(),d=wu(),f=$v();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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 m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function g(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function z(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 D(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 j(e){if(g(e)!==e)throw Error(r(188))}function v(e){var t=e.alternate;if(!t){if(t=g(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var i=l.return;if(i===null)break;var s=i.alternate;if(s===null){if(a=i.return,a!==null){l=a;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===l)return j(i),e;if(s===a)return j(i),t;s=s.sibling}throw Error(r(188))}if(l.return!==a.return)l=i,a=s;else{for(var c=!1,o=i.child;o;){if(o===l){c=!0,l=i,a=s;break}if(o===a){c=!0,a=i,l=s;break}o=o.sibling}if(!c){for(o=s.child;o;){if(o===l){c=!0,l=s,a=i;break}if(o===a){c=!0,a=s,l=i;break}o=o.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function M(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=M(e),t!==null)return t;e=e.sibling}return null}var A=Object.assign,Y=Symbol.for("react.element"),K=Symbol.for("react.transitional.element"),W=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),w=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),Ne=Symbol.for("react.suspense"),ze=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),De=Symbol.for("react.activity"),Gt=Symbol.for("react.memo_cache_sentinel"),lt=Symbol.iterator;function ke(e){return e===null||typeof e!="object"?null:(e=lt&&e[lt]||e["@@iterator"],typeof e=="function"?e:null)}var Ut=Symbol.for("react.client.reference");function Rt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ut?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case G:return"Fragment";case T:return"Profiler";case H:return"StrictMode";case Ne:return"Suspense";case ze:return"SuspenseList";case De:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case W:return"Portal";case w:return e.displayName||"Context";case Q:return(e._context.displayName||"Context")+".Consumer";case ie:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q:return t=e.displayName||null,t!==null?t:Rt(e.type)||"Memo";case fe:t=e._payload,e=e._init;try{return Rt(e(t))}catch{}}return null}var ot=Array.isArray,N=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},ye=[],Ae=-1;function p(e){return{current:e}}function R(e){0>Ae||(e.current=ye[Ae],ye[Ae]=null,Ae--)}function k(e,t){Ae++,ye[Ae]=e.current,e.current=t}var Z=p(null),ee=p(null),se=p(null),pe=p(null);function et(e,t){switch(k(se,t),k(ee,e),k(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ff(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ff(t),e=hf(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}R(Z),k(Z,e)}function Re(){R(Z),R(ee),R(se)}function wa(e){e.memoizedState!==null&&k(pe,e);var t=Z.current,l=hf(t,e.type);t!==l&&(k(ee,e),k(Z,l))}function qn(e){ee.current===e&&(R(Z),R(ee)),pe.current===e&&(R(pe),On._currentValue=I)}var ss,Gu;function Rl(e){if(ss===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);ss=t&&t[1]||"",Gu=-1<l.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+ss+e+Gu}var cs=!1;function us(e,t){if(!e||cs)return"";cs=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={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(O){var E=O}Reflect.construct(e,[],U)}else{try{U.call()}catch(O){E=O}e.call(U.prototype)}}else{try{throw Error()}catch(O){E=O}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(O){if(O&&E&&typeof O.stack=="string")return[O.stack,E.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=a.DetermineComponentFrameRoot(),c=s[0],o=s[1];if(c&&o){var h=c.split(`
|
|
4
|
+
`),S=o.split(`
|
|
5
|
+
`);for(i=a=0;a<h.length&&!h[a].includes("DetermineComponentFrameRoot");)a++;for(;i<S.length&&!S[i].includes("DetermineComponentFrameRoot");)i++;if(a===h.length||i===S.length)for(a=h.length-1,i=S.length-1;1<=a&&0<=i&&h[a]!==S[i];)i--;for(;1<=a&&0<=i;a--,i--)if(h[a]!==S[i]){if(a!==1||i!==1)do if(a--,i--,0>i||h[a]!==S[i]){var _=`
|
|
6
|
+
`+h[a].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=a&&0<=i);break}}}finally{cs=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Rl(l):""}function gh(e,t){switch(e.tag){case 26:case 27:case 5:return Rl(e.type);case 16:return Rl("Lazy");case 13:return e.child!==t&&t!==null?Rl("Suspense Fallback"):Rl("Suspense");case 19:return Rl("SuspenseList");case 0:case 15:return us(e.type,!1);case 11:return us(e.type.render,!1);case 1:return us(e.type,!0);case 31:return Rl("Activity");default:return""}}function Qu(e){try{var t="",l=null;do t+=gh(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
7
|
+
Error generating stack: `+a.message+`
|
|
8
|
+
`+a.stack}}var rs=Object.prototype.hasOwnProperty,os=u.unstable_scheduleCallback,ds=u.unstable_cancelCallback,bh=u.unstable_shouldYield,Sh=u.unstable_requestPaint,dt=u.unstable_now,Nh=u.unstable_getCurrentPriorityLevel,Xu=u.unstable_ImmediatePriority,ku=u.unstable_UserBlockingPriority,Bn=u.unstable_NormalPriority,Ah=u.unstable_LowPriority,Lu=u.unstable_IdlePriority,Eh=u.log,Th=u.unstable_setDisableYieldValue,Ya=null,ft=null;function rl(e){if(typeof Eh=="function"&&Th(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(Ya,e)}catch{}}var ht=Math.clz32?Math.clz32:_h,zh=Math.log,Oh=Math.LN2;function _h(e){return e>>>=0,e===0?32:31-(zh(e)/Oh|0)|0}var wn=256,Yn=262144,Gn=4194304;function Hl(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 Qn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,s=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var o=a&134217727;return o!==0?(a=o&~s,a!==0?i=Hl(a):(c&=o,c!==0?i=Hl(c):l||(l=o&~e,l!==0&&(i=Hl(l))))):(o=a&~s,o!==0?i=Hl(o):c!==0?i=Hl(c):l||(l=a&~e,l!==0&&(i=Hl(l)))),i===0?0:t!==0&&t!==i&&(t&s)===0&&(s=i&-i,l=t&-t,s>=l||s===32&&(l&4194048)!==0)?t:i}function Ga(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Dh(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 Zu(){var e=Gn;return Gn<<=1,(Gn&62914560)===0&&(Gn=4194304),e}function fs(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Qa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Mh(e,t,l,a,i,s){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var o=e.entanglements,h=e.expirationTimes,S=e.hiddenUpdates;for(l=c&~l;0<l;){var _=31-ht(l),U=1<<_;o[_]=0,h[_]=-1;var E=S[_];if(E!==null)for(S[_]=null,_=0;_<E.length;_++){var O=E[_];O!==null&&(O.lane&=-536870913)}l&=~U}a!==0&&Vu(e,a,0),s!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=s&~(c&~t))}function Vu(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ht(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Ku(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-ht(l),i=1<<a;i&t|e[a]&t&&(e[a]|=t),l&=~i}}function Ju(e,t){var l=t&-t;return l=(l&42)!==0?1:hs(l),(l&(e.suspendedLanes|t))!==0?0:l}function hs(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 ms(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function $u(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:qf(e.type))}function Wu(e,t){var l=X.p;try{return X.p=e,t()}finally{X.p=l}}var ol=Math.random().toString(36).slice(2),Ke="__reactFiber$"+ol,at="__reactProps$"+ol,Pl="__reactContainer$"+ol,vs="__reactEvents$"+ol,Ch="__reactListeners$"+ol,Uh="__reactHandles$"+ol,Fu="__reactResources$"+ol,Xa="__reactMarker$"+ol;function ys(e){delete e[Ke],delete e[at],delete e[vs],delete e[Ch],delete e[Uh]}function ea(e){var t=e[Ke];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Pl]||l[Ke]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=gf(e);e!==null;){if(l=e[Ke])return l;e=gf(e)}return t}e=l,l=e.parentNode}return null}function ta(e){if(e=e[Ke]||e[Pl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ka(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function la(e){var t=e[Fu];return t||(t=e[Fu]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Le(e){e[Xa]=!0}var Iu=new Set,Pu={};function ql(e,t){aa(e,t),aa(e+"Capture",t)}function aa(e,t){for(Pu[e]=t,e=0;e<t.length;e++)Iu.add(t[e])}var Rh=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]*$"),er={},tr={};function Hh(e){return rs.call(tr,e)?!0:rs.call(er,e)?!1:Rh.test(e)?tr[e]=!0:(er[e]=!0,!1)}function Xn(e,t,l){if(Hh(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function kn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Zt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qh(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(c){l=""+c,s.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ps(e){if(!e._valueTracker){var t=lr(e)?"checked":"value";e._valueTracker=qh(e,t,""+e[t])}}function ar(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=lr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Ln(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 Bh=/[\n"\\]/g;function St(e){return e.replace(Bh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function js(e,t,l,a,i,s,c,o){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+bt(t)):e.value!==""+bt(t)&&(e.value=""+bt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?xs(e,c,bt(t)):l!=null?xs(e,c,bt(l)):a!=null&&e.removeAttribute("value"),i==null&&s!=null&&(e.defaultChecked=!!s),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+bt(o):e.removeAttribute("name")}function nr(e,t,l,a,i,s,c,o){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||l!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){ps(e);return}l=l!=null?""+bt(l):"",t=t!=null?""+bt(t):l,o||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=o?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),ps(e)}function xs(e,t,l){t==="number"&&Ln(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function na(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i<l.length;i++)t["$"+l[i]]=!0;for(l=0;l<e.length;l++)i=t.hasOwnProperty("$"+e[l].value),e[l].selected!==i&&(e[l].selected=i),i&&a&&(e[l].defaultSelected=!0)}else{for(l=""+bt(l),t=null,i=0;i<e.length;i++){if(e[i].value===l){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ir(e,t,l){if(t!=null&&(t=""+bt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+bt(l):""}function sr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(ot(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=bt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),ps(e)}function ia(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var wh=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 cr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||wh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function ur(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&l[i]!==a&&cr(e,i,a)}else for(var s in t)t.hasOwnProperty(s)&&cr(e,s,t[s])}function gs(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 Yh=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"]]),Gh=/^[\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 Zn(e){return Gh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Vt(){}var bs=null;function Ss(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sa=null,ca=null;function rr(e){var t=ta(e);if(t&&(e=t.stateNode)){var l=e[at]||null;e:switch(e=t.stateNode,t.type){case"input":if(js(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+St(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var i=a[at]||null;if(!i)throw Error(r(90));js(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&ar(a)}break e;case"textarea":ir(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&na(e,!!l.multiple,t,!1)}}}var Ns=!1;function or(e,t,l){if(Ns)return e(t,l);Ns=!0;try{var a=e(t);return a}finally{if(Ns=!1,(sa!==null||ca!==null)&&(Ci(),sa&&(t=sa,e=ca,ca=sa=null,rr(t),e)))for(t=0;t<e.length;t++)rr(e[t])}}function La(e,t){var l=e.stateNode;if(l===null)return null;var a=l[at]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var Kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),As=!1;if(Kt)try{var Za={};Object.defineProperty(Za,"passive",{get:function(){As=!0}}),window.addEventListener("test",Za,Za),window.removeEventListener("test",Za,Za)}catch{As=!1}var dl=null,Es=null,Vn=null;function dr(){if(Vn)return Vn;var e,t=Es,l=t.length,a,i="value"in dl?dl.value:dl.textContent,s=i.length;for(e=0;e<l&&t[e]===i[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===i[s-a];a++);return Vn=i.slice(e,1<a?1-a:void 0)}function Kn(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 Jn(){return!0}function fr(){return!1}function nt(e){function t(l,a,i,s,c){this._reactName=l,this._targetInst=i,this.type=a,this.nativeEvent=s,this.target=c,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(l=e[o],this[o]=l?l(s):s[o]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Jn:fr,this.isPropagationStopped=fr,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Jn)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Jn)},persist:function(){},isPersistent:Jn}),t}var Bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$n=nt(Bl),Va=A({},Bl,{view:0,detail:0}),Qh=nt(Va),Ts,zs,Ka,Wn=A({},Va,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_s,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!==Ka&&(Ka&&e.type==="mousemove"?(Ts=e.screenX-Ka.screenX,zs=e.screenY-Ka.screenY):zs=Ts=0,Ka=e),Ts)},movementY:function(e){return"movementY"in e?e.movementY:zs}}),hr=nt(Wn),Xh=A({},Wn,{dataTransfer:0}),kh=nt(Xh),Lh=A({},Va,{relatedTarget:0}),Os=nt(Lh),Zh=A({},Bl,{animationName:0,elapsedTime:0,pseudoElement:0}),Vh=nt(Zh),Kh=A({},Bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jh=nt(Kh),$h=A({},Bl,{data:0}),mr=nt($h),Wh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fh={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"},Ih={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ph(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ih[e])?!!t[e]:!1}function _s(){return Ph}var em=A({},Va,{key:function(e){if(e.key){var t=Wh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Kn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_s,charCode:function(e){return e.type==="keypress"?Kn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Kn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tm=nt(em),lm=A({},Wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vr=nt(lm),am=A({},Va,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_s}),nm=nt(am),im=A({},Bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),sm=nt(im),cm=A({},Wn,{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}),um=nt(cm),rm=A({},Bl,{newState:0,oldState:0}),om=nt(rm),dm=[9,13,27,32],Ds=Kt&&"CompositionEvent"in window,Ja=null;Kt&&"documentMode"in document&&(Ja=document.documentMode);var fm=Kt&&"TextEvent"in window&&!Ja,yr=Kt&&(!Ds||Ja&&8<Ja&&11>=Ja),pr=" ",jr=!1;function xr(e,t){switch(e){case"keyup":return dm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ua=!1;function hm(e,t){switch(e){case"compositionend":return gr(t);case"keypress":return t.which!==32?null:(jr=!0,pr);case"textInput":return e=t.data,e===pr&&jr?null:e;default:return null}}function mm(e,t){if(ua)return e==="compositionend"||!Ds&&xr(e,t)?(e=dr(),Vn=Es=dl=null,ua=!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 yr&&t.locale!=="ko"?null:t.data;default:return null}}var vm={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 br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vm[e.type]:t==="textarea"}function Sr(e,t,l,a){sa?ca?ca.push(a):ca=[a]:sa=a,t=Yi(t,"onChange"),0<t.length&&(l=new $n("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var $a=null,Wa=null;function ym(e){sf(e,0)}function Fn(e){var t=ka(e);if(ar(t))return e}function Nr(e,t){if(e==="change")return t}var Ar=!1;if(Kt){var Ms;if(Kt){var Cs="oninput"in document;if(!Cs){var Er=document.createElement("div");Er.setAttribute("oninput","return;"),Cs=typeof Er.oninput=="function"}Ms=Cs}else Ms=!1;Ar=Ms&&(!document.documentMode||9<document.documentMode)}function Tr(){$a&&($a.detachEvent("onpropertychange",zr),Wa=$a=null)}function zr(e){if(e.propertyName==="value"&&Fn(Wa)){var t=[];Sr(t,Wa,e,Ss(e)),or(ym,t)}}function pm(e,t,l){e==="focusin"?(Tr(),$a=t,Wa=l,$a.attachEvent("onpropertychange",zr)):e==="focusout"&&Tr()}function jm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fn(Wa)}function xm(e,t){if(e==="click")return Fn(t)}function gm(e,t){if(e==="input"||e==="change")return Fn(t)}function bm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mt=typeof Object.is=="function"?Object.is:bm;function Fa(e,t){if(mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var i=l[a];if(!rs.call(t,i)||!mt(e[i],t[i]))return!1}return!0}function Or(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _r(e,t){var l=Or(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Or(l)}}function Dr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ln(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Ln(e.document)}return t}function Us(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 Sm=Kt&&"documentMode"in document&&11>=document.documentMode,ra=null,Rs=null,Ia=null,Hs=!1;function Cr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Hs||ra==null||ra!==Ln(a)||(a=ra,"selectionStart"in a&&Us(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ia&&Fa(Ia,a)||(Ia=a,a=Yi(Rs,"onSelect"),0<a.length&&(t=new $n("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ra)))}function wl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var oa={animationend:wl("Animation","AnimationEnd"),animationiteration:wl("Animation","AnimationIteration"),animationstart:wl("Animation","AnimationStart"),transitionrun:wl("Transition","TransitionRun"),transitionstart:wl("Transition","TransitionStart"),transitioncancel:wl("Transition","TransitionCancel"),transitionend:wl("Transition","TransitionEnd")},qs={},Ur={};Kt&&(Ur=document.createElement("div").style,"AnimationEvent"in window||(delete oa.animationend.animation,delete oa.animationiteration.animation,delete oa.animationstart.animation),"TransitionEvent"in window||delete oa.transitionend.transition);function Yl(e){if(qs[e])return qs[e];if(!oa[e])return e;var t=oa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Ur)return qs[e]=t[l];return e}var Rr=Yl("animationend"),Hr=Yl("animationiteration"),qr=Yl("animationstart"),Nm=Yl("transitionrun"),Am=Yl("transitionstart"),Em=Yl("transitioncancel"),Br=Yl("transitionend"),wr=new Map,Bs="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(" ");Bs.push("scrollEnd");function Ht(e,t){wr.set(e,t),ql(t,[e])}var In=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)},Nt=[],da=0,ws=0;function Pn(){for(var e=da,t=ws=da=0;t<e;){var l=Nt[t];Nt[t++]=null;var a=Nt[t];Nt[t++]=null;var i=Nt[t];Nt[t++]=null;var s=Nt[t];if(Nt[t++]=null,a!==null&&i!==null){var c=a.pending;c===null?i.next=i:(i.next=c.next,c.next=i),a.pending=i}s!==0&&Yr(l,i,s)}}function ei(e,t,l,a){Nt[da++]=e,Nt[da++]=t,Nt[da++]=l,Nt[da++]=a,ws|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ys(e,t,l,a){return ei(e,t,l,a),ti(e)}function Gl(e,t){return ei(e,null,null,t),ti(e)}function Yr(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var i=!1,s=e.return;s!==null;)s.childLanes|=l,a=s.alternate,a!==null&&(a.childLanes|=l),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(i=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,i&&t!==null&&(i=31-ht(l),e=s.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=l|536870912),s):null}function ti(e){if(50<bn)throw bn=0,Jc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fa={};function Tm(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vt(e,t,l,a){return new Tm(e,t,l,a)}function Gs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jt(e,t){var l=e.alternate;return l===null?(l=vt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Gr(e,t){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function li(e,t,l,a,i,s){var c=0;if(a=e,typeof e=="function")Gs(e)&&(c=1);else if(typeof e=="string")c=Mv(e,l,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case De:return e=vt(31,l,t,i),e.elementType=De,e.lanes=s,e;case G:return Ql(l.children,i,s,t);case H:c=8,i|=24;break;case T:return e=vt(12,l,t,i|2),e.elementType=T,e.lanes=s,e;case Ne:return e=vt(13,l,t,i),e.elementType=Ne,e.lanes=s,e;case ze:return e=vt(19,l,t,i),e.elementType=ze,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case w:c=10;break e;case Q:c=9;break e;case ie:c=11;break e;case q:c=14;break e;case fe:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=vt(c,l,t,i),t.elementType=e,t.type=a,t.lanes=s,t}function Ql(e,t,l,a){return e=vt(7,e,a,t),e.lanes=l,e}function Qs(e,t,l){return e=vt(6,e,null,t),e.lanes=l,e}function Qr(e){var t=vt(18,null,null,0);return t.stateNode=e,t}function Xs(e,t,l){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Xr=new WeakMap;function At(e,t){if(typeof e=="object"&&e!==null){var l=Xr.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Qu(t)},Xr.set(e,t),t)}return{value:e,source:t,stack:Qu(t)}}var ha=[],ma=0,ai=null,Pa=0,Et=[],Tt=0,fl=null,Qt=1,Xt="";function $t(e,t){ha[ma++]=Pa,ha[ma++]=ai,ai=e,Pa=t}function kr(e,t,l){Et[Tt++]=Qt,Et[Tt++]=Xt,Et[Tt++]=fl,fl=e;var a=Qt;e=Xt;var i=32-ht(a)-1;a&=~(1<<i),l+=1;var s=32-ht(t)+i;if(30<s){var c=i-i%5;s=(a&(1<<c)-1).toString(32),a>>=c,i-=c,Qt=1<<32-ht(t)+i|l<<i|a,Xt=s+e}else Qt=1<<s|l<<i|a,Xt=e}function ks(e){e.return!==null&&($t(e,1),kr(e,1,0))}function Ls(e){for(;e===ai;)ai=ha[--ma],ha[ma]=null,Pa=ha[--ma],ha[ma]=null;for(;e===fl;)fl=Et[--Tt],Et[Tt]=null,Xt=Et[--Tt],Et[Tt]=null,Qt=Et[--Tt],Et[Tt]=null}function Lr(e,t){Et[Tt++]=Qt,Et[Tt++]=Xt,Et[Tt++]=fl,Qt=t.id,Xt=t.overflow,fl=e}var Je=null,Oe=null,de=!1,hl=null,zt=!1,Zs=Error(r(519));function ml(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw en(At(t,e)),Zs}function Zr(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Ke]=e,t[at]=a,l){case"dialog":ue("cancel",t),ue("close",t);break;case"iframe":case"object":case"embed":ue("load",t);break;case"video":case"audio":for(l=0;l<Nn.length;l++)ue(Nn[l],t);break;case"source":ue("error",t);break;case"img":case"image":case"link":ue("error",t),ue("load",t);break;case"details":ue("toggle",t);break;case"input":ue("invalid",t),nr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ue("invalid",t);break;case"textarea":ue("invalid",t),sr(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||of(t.textContent,l)?(a.popover!=null&&(ue("beforetoggle",t),ue("toggle",t)),a.onScroll!=null&&ue("scroll",t),a.onScrollEnd!=null&&ue("scrollend",t),a.onClick!=null&&(t.onclick=Vt),t=!0):t=!1,t||ml(e,!0)}function Vr(e){for(Je=e.return;Je;)switch(Je.tag){case 5:case 31:case 13:zt=!1;return;case 27:case 3:zt=!0;return;default:Je=Je.return}}function va(e){if(e!==Je)return!1;if(!de)return Vr(e),de=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||ru(e.type,e.memoizedProps)),l=!l),l&&Oe&&ml(e),Vr(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Oe=xf(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Oe=xf(e)}else t===27?(t=Oe,Ol(e.type)?(e=mu,mu=null,Oe=e):Oe=t):Oe=Je?_t(e.stateNode.nextSibling):null;return!0}function Xl(){Oe=Je=null,de=!1}function Vs(){var e=hl;return e!==null&&(ut===null?ut=e:ut.push.apply(ut,e),hl=null),e}function en(e){hl===null?hl=[e]:hl.push(e)}var Ks=p(null),kl=null,Wt=null;function vl(e,t,l){k(Ks,t._currentValue),t._currentValue=l}function Ft(e){e._currentValue=Ks.current,R(Ks)}function Js(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function $s(e,t,l,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){var c=i.child;s=s.firstContext;e:for(;s!==null;){var o=s;s=i;for(var h=0;h<t.length;h++)if(o.context===t[h]){s.lanes|=l,o=s.alternate,o!==null&&(o.lanes|=l),Js(s.return,l,e),a||(c=null);break e}s=o.next}}else if(i.tag===18){if(c=i.return,c===null)throw Error(r(341));c.lanes|=l,s=c.alternate,s!==null&&(s.lanes|=l),Js(c,l,e),c=null}else c=i.child;if(c!==null)c.return=i;else for(c=i;c!==null;){if(c===e){c=null;break}if(i=c.sibling,i!==null){i.return=c.return,c=i;break}c=c.return}i=c}}function ya(e,t,l,a){e=null;for(var i=t,s=!1;i!==null;){if(!s){if((i.flags&524288)!==0)s=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var c=i.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var o=i.type;mt(i.pendingProps.value,c.value)||(e!==null?e.push(o):e=[o])}}else if(i===pe.current){if(c=i.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(On):e=[On])}i=i.return}e!==null&&$s(t,e,l,a),t.flags|=262144}function ni(e){for(e=e.firstContext;e!==null;){if(!mt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ll(e){kl=e,Wt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $e(e){return Kr(kl,e)}function ii(e,t){return kl===null&&Ll(e),Kr(e,t)}function Kr(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Wt===null){if(e===null)throw Error(r(308));Wt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wt=Wt.next=t;return l}var zm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Om=u.unstable_scheduleCallback,_m=u.unstable_NormalPriority,we={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ws(){return{controller:new zm,data:new Map,refCount:0}}function tn(e){e.refCount--,e.refCount===0&&Om(_m,function(){e.controller.abort()})}var ln=null,Fs=0,pa=0,ja=null;function Dm(e,t){if(ln===null){var l=ln=[];Fs=0,pa=eu(),ja={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Fs++,t.then(Jr,Jr),t}function Jr(){if(--Fs===0&&ln!==null){ja!==null&&(ja.status="fulfilled");var e=ln;ln=null,pa=0,ja=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Mm(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(i){l.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<l.length;i++)(0,l[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<l.length;i++)(0,l[i])(void 0)}),a}var $r=N.S;N.S=function(e,t){Ud=dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Dm(e,t),$r!==null&&$r(e,t)};var Zl=p(null);function Is(){var e=Zl.current;return e!==null?e:Ee.pooledCache}function si(e,t){t===null?k(Zl,Zl.current):k(Zl,t.pool)}function Wr(){var e=Is();return e===null?null:{parent:we._currentValue,pool:e}}var xa=Error(r(460)),Ps=Error(r(474)),ci=Error(r(542)),ui={then:function(){}};function Fr(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ir(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Vt,Vt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,eo(e),e;default:if(typeof t.status=="string")t.then(Vt,Vt);else{if(e=Ee,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,eo(e),e}throw Kl=t,xa}}function Vl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Kl=l,xa):l}}var Kl=null;function Pr(){if(Kl===null)throw Error(r(459));var e=Kl;return Kl=null,e}function eo(e){if(e===xa||e===ci)throw Error(r(483))}var ga=null,an=0;function ri(e){var t=an;return an+=1,ga===null&&(ga=[]),Ir(ga,e,t)}function nn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function oi(e,t){throw t.$$typeof===Y?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function to(e){function t(x,y){if(e){var b=x.deletions;b===null?(x.deletions=[y],x.flags|=16):b.push(y)}}function l(x,y){if(!e)return null;for(;y!==null;)t(x,y),y=y.sibling;return null}function a(x){for(var y=new Map;x!==null;)x.key!==null?y.set(x.key,x):y.set(x.index,x),x=x.sibling;return y}function i(x,y){return x=Jt(x,y),x.index=0,x.sibling=null,x}function s(x,y,b){return x.index=b,e?(b=x.alternate,b!==null?(b=b.index,b<y?(x.flags|=67108866,y):b):(x.flags|=67108866,y)):(x.flags|=1048576,y)}function c(x){return e&&x.alternate===null&&(x.flags|=67108866),x}function o(x,y,b,C){return y===null||y.tag!==6?(y=Qs(b,x.mode,C),y.return=x,y):(y=i(y,b),y.return=x,y)}function h(x,y,b,C){var J=b.type;return J===G?_(x,y,b.props.children,C,b.key):y!==null&&(y.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===fe&&Vl(J)===y.type)?(y=i(y,b.props),nn(y,b),y.return=x,y):(y=li(b.type,b.key,b.props,null,x.mode,C),nn(y,b),y.return=x,y)}function S(x,y,b,C){return y===null||y.tag!==4||y.stateNode.containerInfo!==b.containerInfo||y.stateNode.implementation!==b.implementation?(y=Xs(b,x.mode,C),y.return=x,y):(y=i(y,b.children||[]),y.return=x,y)}function _(x,y,b,C,J){return y===null||y.tag!==7?(y=Ql(b,x.mode,C,J),y.return=x,y):(y=i(y,b),y.return=x,y)}function U(x,y,b){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=Qs(""+y,x.mode,b),y.return=x,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case K:return b=li(y.type,y.key,y.props,null,x.mode,b),nn(b,y),b.return=x,b;case W:return y=Xs(y,x.mode,b),y.return=x,y;case fe:return y=Vl(y),U(x,y,b)}if(ot(y)||ke(y))return y=Ql(y,x.mode,b,null),y.return=x,y;if(typeof y.then=="function")return U(x,ri(y),b);if(y.$$typeof===w)return U(x,ii(x,y),b);oi(x,y)}return null}function E(x,y,b,C){var J=y!==null?y.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return J!==null?null:o(x,y,""+b,C);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case K:return b.key===J?h(x,y,b,C):null;case W:return b.key===J?S(x,y,b,C):null;case fe:return b=Vl(b),E(x,y,b,C)}if(ot(b)||ke(b))return J!==null?null:_(x,y,b,C,null);if(typeof b.then=="function")return E(x,y,ri(b),C);if(b.$$typeof===w)return E(x,y,ii(x,b),C);oi(x,b)}return null}function O(x,y,b,C,J){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return x=x.get(b)||null,o(y,x,""+C,J);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case K:return x=x.get(C.key===null?b:C.key)||null,h(y,x,C,J);case W:return x=x.get(C.key===null?b:C.key)||null,S(y,x,C,J);case fe:return C=Vl(C),O(x,y,b,C,J)}if(ot(C)||ke(C))return x=x.get(b)||null,_(y,x,C,J,null);if(typeof C.then=="function")return O(x,y,b,ri(C),J);if(C.$$typeof===w)return O(x,y,b,ii(y,C),J);oi(y,C)}return null}function L(x,y,b,C){for(var J=null,he=null,V=y,ae=y=0,oe=null;V!==null&&ae<b.length;ae++){V.index>ae?(oe=V,V=null):oe=V.sibling;var me=E(x,V,b[ae],C);if(me===null){V===null&&(V=oe);break}e&&V&&me.alternate===null&&t(x,V),y=s(me,y,ae),he===null?J=me:he.sibling=me,he=me,V=oe}if(ae===b.length)return l(x,V),de&&$t(x,ae),J;if(V===null){for(;ae<b.length;ae++)V=U(x,b[ae],C),V!==null&&(y=s(V,y,ae),he===null?J=V:he.sibling=V,he=V);return de&&$t(x,ae),J}for(V=a(V);ae<b.length;ae++)oe=O(V,x,ae,b[ae],C),oe!==null&&(e&&oe.alternate!==null&&V.delete(oe.key===null?ae:oe.key),y=s(oe,y,ae),he===null?J=oe:he.sibling=oe,he=oe);return e&&V.forEach(function(Ul){return t(x,Ul)}),de&&$t(x,ae),J}function F(x,y,b,C){if(b==null)throw Error(r(151));for(var J=null,he=null,V=y,ae=y=0,oe=null,me=b.next();V!==null&&!me.done;ae++,me=b.next()){V.index>ae?(oe=V,V=null):oe=V.sibling;var Ul=E(x,V,me.value,C);if(Ul===null){V===null&&(V=oe);break}e&&V&&Ul.alternate===null&&t(x,V),y=s(Ul,y,ae),he===null?J=Ul:he.sibling=Ul,he=Ul,V=oe}if(me.done)return l(x,V),de&&$t(x,ae),J;if(V===null){for(;!me.done;ae++,me=b.next())me=U(x,me.value,C),me!==null&&(y=s(me,y,ae),he===null?J=me:he.sibling=me,he=me);return de&&$t(x,ae),J}for(V=a(V);!me.done;ae++,me=b.next())me=O(V,x,ae,me.value,C),me!==null&&(e&&me.alternate!==null&&V.delete(me.key===null?ae:me.key),y=s(me,y,ae),he===null?J=me:he.sibling=me,he=me);return e&&V.forEach(function(Xv){return t(x,Xv)}),de&&$t(x,ae),J}function Se(x,y,b,C){if(typeof b=="object"&&b!==null&&b.type===G&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case K:e:{for(var J=b.key;y!==null;){if(y.key===J){if(J=b.type,J===G){if(y.tag===7){l(x,y.sibling),C=i(y,b.props.children),C.return=x,x=C;break e}}else if(y.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===fe&&Vl(J)===y.type){l(x,y.sibling),C=i(y,b.props),nn(C,b),C.return=x,x=C;break e}l(x,y);break}else t(x,y);y=y.sibling}b.type===G?(C=Ql(b.props.children,x.mode,C,b.key),C.return=x,x=C):(C=li(b.type,b.key,b.props,null,x.mode,C),nn(C,b),C.return=x,x=C)}return c(x);case W:e:{for(J=b.key;y!==null;){if(y.key===J)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){l(x,y.sibling),C=i(y,b.children||[]),C.return=x,x=C;break e}else{l(x,y);break}else t(x,y);y=y.sibling}C=Xs(b,x.mode,C),C.return=x,x=C}return c(x);case fe:return b=Vl(b),Se(x,y,b,C)}if(ot(b))return L(x,y,b,C);if(ke(b)){if(J=ke(b),typeof J!="function")throw Error(r(150));return b=J.call(b),F(x,y,b,C)}if(typeof b.then=="function")return Se(x,y,ri(b),C);if(b.$$typeof===w)return Se(x,y,ii(x,b),C);oi(x,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,y!==null&&y.tag===6?(l(x,y.sibling),C=i(y,b),C.return=x,x=C):(l(x,y),C=Qs(b,x.mode,C),C.return=x,x=C),c(x)):l(x,y)}return function(x,y,b,C){try{an=0;var J=Se(x,y,b,C);return ga=null,J}catch(V){if(V===xa||V===ci)throw V;var he=vt(29,V,null,x.mode);return he.lanes=C,he.return=x,he}}}var Jl=to(!0),lo=to(!1),yl=!1;function ec(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tc(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 pl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ve&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=ti(e),Yr(e,null,l),t}return ei(e,a,t,l),ti(e)}function sn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Ku(e,l)}}function lc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?i=s=c:s=s.next=c,l=l.next}while(l!==null);s===null?i=s=t:s=s.next=t}else i=s=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var ac=!1;function cn(){if(ac){var e=ja;if(e!==null)throw e}}function un(e,t,l,a){ac=!1;var i=e.updateQueue;yl=!1;var s=i.firstBaseUpdate,c=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var h=o,S=h.next;h.next=null,c===null?s=S:c.next=S,c=h;var _=e.alternate;_!==null&&(_=_.updateQueue,o=_.lastBaseUpdate,o!==c&&(o===null?_.firstBaseUpdate=S:o.next=S,_.lastBaseUpdate=h))}if(s!==null){var U=i.baseState;c=0,_=S=h=null,o=s;do{var E=o.lane&-536870913,O=E!==o.lane;if(O?(re&E)===E:(a&E)===E){E!==0&&E===pa&&(ac=!0),_!==null&&(_=_.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var L=e,F=o;E=t;var Se=l;switch(F.tag){case 1:if(L=F.payload,typeof L=="function"){U=L.call(Se,U,E);break e}U=L;break e;case 3:L.flags=L.flags&-65537|128;case 0:if(L=F.payload,E=typeof L=="function"?L.call(Se,U,E):L,E==null)break e;U=A({},U,E);break e;case 2:yl=!0}}E=o.callback,E!==null&&(e.flags|=64,O&&(e.flags|=8192),O=i.callbacks,O===null?i.callbacks=[E]:O.push(E))}else O={lane:E,tag:o.tag,payload:o.payload,callback:o.callback,next:null},_===null?(S=_=O,h=U):_=_.next=O,c|=E;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;O=o,o=O.next,O.next=null,i.lastBaseUpdate=O,i.shared.pending=null}}while(!0);_===null&&(h=U),i.baseState=h,i.firstBaseUpdate=S,i.lastBaseUpdate=_,s===null&&(i.shared.lanes=0),Nl|=c,e.lanes=c,e.memoizedState=U}}function ao(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function no(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)ao(l[e],t)}var ba=p(null),di=p(0);function io(e,t){e=sl,k(di,e),k(ba,t),sl=e|t.baseLanes}function nc(){k(di,sl),k(ba,ba.current)}function ic(){sl=di.current,R(ba),R(di)}var yt=p(null),Ot=null;function xl(e){var t=e.alternate;k(He,He.current&1),k(yt,e),Ot===null&&(t===null||ba.current!==null||t.memoizedState!==null)&&(Ot=e)}function sc(e){k(He,He.current),k(yt,e),Ot===null&&(Ot=e)}function so(e){e.tag===22?(k(He,He.current),k(yt,e),Ot===null&&(Ot=e)):gl()}function gl(){k(He,He.current),k(yt,yt.current)}function pt(e){R(yt),Ot===e&&(Ot=null),R(He)}var He=p(0);function fi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||fu(l)||hu(l)))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 It=0,te=null,ge=null,Ye=null,hi=!1,Sa=!1,$l=!1,mi=0,rn=0,Na=null,Cm=0;function Ce(){throw Error(r(321))}function cc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!mt(e[l],t[l]))return!1;return!0}function uc(e,t,l,a,i,s){return It=s,te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?Lo:Nc,$l=!1,s=l(a,i),$l=!1,Sa&&(s=uo(t,l,a,i)),co(e),s}function co(e){N.H=fn;var t=ge!==null&&ge.next!==null;if(It=0,Ye=ge=te=null,hi=!1,rn=0,Na=null,t)throw Error(r(300));e===null||Ge||(e=e.dependencies,e!==null&&ni(e)&&(Ge=!0))}function uo(e,t,l,a){te=e;var i=0;do{if(Sa&&(Na=null),rn=0,Sa=!1,25<=i)throw Error(r(301));if(i+=1,Ye=ge=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}N.H=Zo,s=t(l,a)}while(Sa);return s}function Um(){var e=N.H,t=e.useState()[0];return t=typeof t.then=="function"?on(t):t,e=e.useState()[0],(ge!==null?ge.memoizedState:null)!==e&&(te.flags|=1024),t}function rc(){var e=mi!==0;return mi=0,e}function oc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function dc(e){if(hi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hi=!1}It=0,Ye=ge=te=null,Sa=!1,rn=mi=0,Na=null}function tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?te.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function qe(){if(ge===null){var e=te.alternate;e=e!==null?e.memoizedState:null}else e=ge.next;var t=Ye===null?te.memoizedState:Ye.next;if(t!==null)Ye=t,ge=e;else{if(e===null)throw te.alternate===null?Error(r(467)):Error(r(310));ge=e,e={memoizedState:ge.memoizedState,baseState:ge.baseState,baseQueue:ge.baseQueue,queue:ge.queue,next:null},Ye===null?te.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function vi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function on(e){var t=rn;return rn+=1,Na===null&&(Na=[]),e=Ir(Na,e,t),t=te,(Ye===null?t.memoizedState:Ye.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?Lo:Nc),e}function yi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return on(e);if(e.$$typeof===w)return $e(e)}throw Error(r(438,String(e)))}function fc(e){var t=null,l=te.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=te.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=vi(),te.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Gt;return t.index++,l}function Pt(e,t){return typeof t=="function"?t(e):t}function pi(e){var t=qe();return hc(t,ge,e)}function hc(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var i=e.baseQueue,s=a.pending;if(s!==null){if(i!==null){var c=i.next;i.next=s.next,s.next=c}t.baseQueue=i=s,a.pending=null}if(s=e.baseState,i===null)e.memoizedState=s;else{t=i.next;var o=c=null,h=null,S=t,_=!1;do{var U=S.lane&-536870913;if(U!==S.lane?(re&U)===U:(It&U)===U){var E=S.revertLane;if(E===0)h!==null&&(h=h.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),U===pa&&(_=!0);else if((It&E)===E){S=S.next,E===pa&&(_=!0);continue}else U={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},h===null?(o=h=U,c=s):h=h.next=U,te.lanes|=E,Nl|=E;U=S.action,$l&&l(s,U),s=S.hasEagerState?S.eagerState:l(s,U)}else E={lane:U,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},h===null?(o=h=E,c=s):h=h.next=E,te.lanes|=U,Nl|=U;S=S.next}while(S!==null&&S!==t);if(h===null?c=s:h.next=o,!mt(s,e.memoizedState)&&(Ge=!0,_&&(l=ja,l!==null)))throw l;e.memoizedState=s,e.baseState=c,e.baseQueue=h,a.lastRenderedState=s}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function mc(e){var t=qe(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,i=l.pending,s=t.memoizedState;if(i!==null){l.pending=null;var c=i=i.next;do s=e(s,c.action),c=c.next;while(c!==i);mt(s,t.memoizedState)||(Ge=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),l.lastRenderedState=s}return[s,a]}function ro(e,t,l){var a=te,i=qe(),s=de;if(s){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!mt((ge||i).memoizedState,l);if(c&&(i.memoizedState=l,Ge=!0),i=i.queue,pc(ho.bind(null,a,i,e),[e]),i.getSnapshot!==t||c||Ye!==null&&Ye.memoizedState.tag&1){if(a.flags|=2048,Aa(9,{destroy:void 0},fo.bind(null,a,i,l,t),null),Ee===null)throw Error(r(349));s||(It&127)!==0||oo(a,t,l)}return l}function oo(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=te.updateQueue,t===null?(t=vi(),te.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function fo(e,t,l,a){t.value=l,t.getSnapshot=a,mo(t)&&vo(e)}function ho(e,t,l){return l(function(){mo(t)&&vo(e)})}function mo(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!mt(e,l)}catch{return!0}}function vo(e){var t=Gl(e,2);t!==null&&rt(t,e,2)}function vc(e){var t=tt();if(typeof e=="function"){var l=e;if(e=l(),$l){rl(!0);try{l()}finally{rl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:e},t}function yo(e,t,l,a){return e.baseState=l,hc(e,ge,typeof a=="function"?a:Pt)}function Rm(e,t,l,a,i){if(gi(e))throw Error(r(485));if(e=t.action,e!==null){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){s.listeners.push(c)}};N.T!==null?l(!0):s.isTransition=!1,a(s),l=t.pending,l===null?(s.next=t.pending=s,po(t,s)):(s.next=l.next,t.pending=l.next=s)}}function po(e,t){var l=t.action,a=t.payload,i=e.state;if(t.isTransition){var s=N.T,c={};N.T=c;try{var o=l(i,a),h=N.S;h!==null&&h(c,o),jo(e,t,o)}catch(S){yc(e,t,S)}finally{s!==null&&c.types!==null&&(s.types=c.types),N.T=s}}else try{s=l(i,a),jo(e,t,s)}catch(S){yc(e,t,S)}}function jo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){xo(e,t,a)},function(a){return yc(e,t,a)}):xo(e,t,l)}function xo(e,t,l){t.status="fulfilled",t.value=l,go(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,po(e,l)))}function yc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,go(t),t=t.next;while(t!==a)}e.action=null}function go(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bo(e,t){return t}function So(e,t){if(de){var l=Ee.formState;if(l!==null){e:{var a=te;if(de){if(Oe){t:{for(var i=Oe,s=zt;i.nodeType!==8;){if(!s){i=null;break t}if(i=_t(i.nextSibling),i===null){i=null;break t}}s=i.data,i=s==="F!"||s==="F"?i:null}if(i){Oe=_t(i.nextSibling),a=i.data==="F!";break e}}ml(a)}a=!1}a&&(t=l[0])}}return l=tt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bo,lastRenderedState:t},l.queue=a,l=Qo.bind(null,te,a),a.dispatch=l,a=vc(!1),s=Sc.bind(null,te,!1,a.queue),a=tt(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,l=Rm.bind(null,te,i,s,l),i.dispatch=l,a.memoizedState=e,[t,l,!1]}function No(e){var t=qe();return Ao(t,ge,e)}function Ao(e,t,l){if(t=hc(e,t,bo)[0],e=pi(Pt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=on(t)}catch(c){throw c===xa?ci:c}else a=t;t=qe();var i=t.queue,s=i.dispatch;return l!==t.memoizedState&&(te.flags|=2048,Aa(9,{destroy:void 0},Hm.bind(null,i,l),null)),[a,s,e]}function Hm(e,t){e.action=t}function Eo(e){var t=qe(),l=ge;if(l!==null)return Ao(t,l,e);qe(),t=t.memoizedState,l=qe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Aa(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=te.updateQueue,t===null&&(t=vi(),te.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function To(){return qe().memoizedState}function ji(e,t,l,a){var i=tt();te.flags|=e,i.memoizedState=Aa(1|t,{destroy:void 0},l,a===void 0?null:a)}function xi(e,t,l,a){var i=qe();a=a===void 0?null:a;var s=i.memoizedState.inst;ge!==null&&a!==null&&cc(a,ge.memoizedState.deps)?i.memoizedState=Aa(t,s,l,a):(te.flags|=e,i.memoizedState=Aa(1|t,s,l,a))}function zo(e,t){ji(8390656,8,e,t)}function pc(e,t){xi(2048,8,e,t)}function qm(e){te.flags|=4;var t=te.updateQueue;if(t===null)t=vi(),te.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Oo(e){var t=qe().memoizedState;return qm({ref:t,nextImpl:e}),function(){if((ve&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function _o(e,t){return xi(4,2,e,t)}function Do(e,t){return xi(4,4,e,t)}function Mo(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Co(e,t,l){l=l!=null?l.concat([e]):null,xi(4,4,Mo.bind(null,t,e),l)}function jc(){}function Uo(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&cc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Ro(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&cc(t,a[1]))return a[0];if(a=e(),$l){rl(!0);try{e()}finally{rl(!1)}}return l.memoizedState=[a,t],a}function xc(e,t,l){return l===void 0||(It&1073741824)!==0&&(re&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Hd(),te.lanes|=e,Nl|=e,l)}function Ho(e,t,l,a){return mt(l,t)?l:ba.current!==null?(e=xc(e,l,a),mt(e,t)||(Ge=!0),e):(It&42)===0||(It&1073741824)!==0&&(re&261930)===0?(Ge=!0,e.memoizedState=l):(e=Hd(),te.lanes|=e,Nl|=e,t)}function qo(e,t,l,a,i){var s=X.p;X.p=s!==0&&8>s?s:8;var c=N.T,o={};N.T=o,Sc(e,!1,t,l);try{var h=i(),S=N.S;if(S!==null&&S(o,h),h!==null&&typeof h=="object"&&typeof h.then=="function"){var _=Mm(h,a);dn(e,t,_,gt(e))}else dn(e,t,a,gt(e))}catch(U){dn(e,t,{then:function(){},status:"rejected",reason:U},gt())}finally{X.p=s,c!==null&&o.types!==null&&(c.types=o.types),N.T=c}}function Bm(){}function gc(e,t,l,a){if(e.tag!==5)throw Error(r(476));var i=Bo(e).queue;qo(e,i,t,I,l===null?Bm:function(){return wo(e),l(a)})}function Bo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:I},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function wo(e){var t=Bo(e);t.next===null&&(t=e.alternate.memoizedState),dn(e,t.next.queue,{},gt())}function bc(){return $e(On)}function Yo(){return qe().memoizedState}function Go(){return qe().memoizedState}function wm(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=gt();e=pl(l);var a=jl(t,e,l);a!==null&&(rt(a,t,l),sn(a,t,l)),t={cache:Ws()},e.payload=t;return}t=t.return}}function Ym(e,t,l){var a=gt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},gi(e)?Xo(t,l):(l=Ys(e,t,l,a),l!==null&&(rt(l,e,a),ko(l,t,a)))}function Qo(e,t,l){var a=gt();dn(e,t,l,a)}function dn(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(gi(e))Xo(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var c=t.lastRenderedState,o=s(c,l);if(i.hasEagerState=!0,i.eagerState=o,mt(o,c))return ei(e,t,i,0),Ee===null&&Pn(),!1}catch{}if(l=Ys(e,t,i,a),l!==null)return rt(l,e,a),ko(l,t,a),!0}return!1}function Sc(e,t,l,a){if(a={lane:2,revertLane:eu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},gi(e)){if(t)throw Error(r(479))}else t=Ys(e,l,a,2),t!==null&&rt(t,e,2)}function gi(e){var t=e.alternate;return e===te||t!==null&&t===te}function Xo(e,t){Sa=hi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function ko(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Ku(e,l)}}var fn={readContext:$e,use:yi,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useLayoutEffect:Ce,useInsertionEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useSyncExternalStore:Ce,useId:Ce,useHostTransitionStatus:Ce,useFormState:Ce,useActionState:Ce,useOptimistic:Ce,useMemoCache:Ce,useCacheRefresh:Ce};fn.useEffectEvent=Ce;var Lo={readContext:$e,use:yi,useCallback:function(e,t){return tt().memoizedState=[e,t===void 0?null:t],e},useContext:$e,useEffect:zo,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ji(4194308,4,Mo.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ji(4194308,4,e,t)},useInsertionEffect:function(e,t){ji(4,2,e,t)},useMemo:function(e,t){var l=tt();t=t===void 0?null:t;var a=e();if($l){rl(!0);try{e()}finally{rl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=tt();if(l!==void 0){var i=l(t);if($l){rl(!0);try{l(t)}finally{rl(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=Ym.bind(null,te,e),[a.memoizedState,e]},useRef:function(e){var t=tt();return e={current:e},t.memoizedState=e},useState:function(e){e=vc(e);var t=e.queue,l=Qo.bind(null,te,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:jc,useDeferredValue:function(e,t){var l=tt();return xc(l,e,t)},useTransition:function(){var e=vc(!1);return e=qo.bind(null,te,e.queue,!0,!1),tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=te,i=tt();if(de){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ee===null)throw Error(r(349));(re&127)!==0||oo(a,t,l)}i.memoizedState=l;var s={value:l,getSnapshot:t};return i.queue=s,zo(ho.bind(null,a,s,e),[e]),a.flags|=2048,Aa(9,{destroy:void 0},fo.bind(null,a,s,l,t),null),l},useId:function(){var e=tt(),t=Ee.identifierPrefix;if(de){var l=Xt,a=Qt;l=(a&~(1<<32-ht(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=mi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Cm++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:bc,useFormState:So,useActionState:So,useOptimistic:function(e){var t=tt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Sc.bind(null,te,!0,l),l.dispatch=t,[e,t]},useMemoCache:fc,useCacheRefresh:function(){return tt().memoizedState=wm.bind(null,te)},useEffectEvent:function(e){var t=tt(),l={impl:e};return t.memoizedState=l,function(){if((ve&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Nc={readContext:$e,use:yi,useCallback:Uo,useContext:$e,useEffect:pc,useImperativeHandle:Co,useInsertionEffect:_o,useLayoutEffect:Do,useMemo:Ro,useReducer:pi,useRef:To,useState:function(){return pi(Pt)},useDebugValue:jc,useDeferredValue:function(e,t){var l=qe();return Ho(l,ge.memoizedState,e,t)},useTransition:function(){var e=pi(Pt)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:on(e),t]},useSyncExternalStore:ro,useId:Yo,useHostTransitionStatus:bc,useFormState:No,useActionState:No,useOptimistic:function(e,t){var l=qe();return yo(l,ge,e,t)},useMemoCache:fc,useCacheRefresh:Go};Nc.useEffectEvent=Oo;var Zo={readContext:$e,use:yi,useCallback:Uo,useContext:$e,useEffect:pc,useImperativeHandle:Co,useInsertionEffect:_o,useLayoutEffect:Do,useMemo:Ro,useReducer:mc,useRef:To,useState:function(){return mc(Pt)},useDebugValue:jc,useDeferredValue:function(e,t){var l=qe();return ge===null?xc(l,e,t):Ho(l,ge.memoizedState,e,t)},useTransition:function(){var e=mc(Pt)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:on(e),t]},useSyncExternalStore:ro,useId:Yo,useHostTransitionStatus:bc,useFormState:Eo,useActionState:Eo,useOptimistic:function(e,t){var l=qe();return ge!==null?yo(l,ge,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:fc,useCacheRefresh:Go};Zo.useEffectEvent=Oo;function Ac(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:A({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ec={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=gt(),i=pl(a);i.payload=t,l!=null&&(i.callback=l),t=jl(e,i,a),t!==null&&(rt(t,e,a),sn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=gt(),i=pl(a);i.tag=1,i.payload=t,l!=null&&(i.callback=l),t=jl(e,i,a),t!==null&&(rt(t,e,a),sn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=gt(),a=pl(l);a.tag=2,t!=null&&(a.callback=t),t=jl(e,a,l),t!==null&&(rt(t,e,l),sn(t,e,l))}};function Vo(e,t,l,a,i,s,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,c):t.prototype&&t.prototype.isPureReactComponent?!Fa(l,a)||!Fa(i,s):!0}function Ko(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Ec.enqueueReplaceState(t,t.state,null)}function Wl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=A({},l));for(var i in e)l[i]===void 0&&(l[i]=e[i])}return l}function Jo(e){In(e)}function $o(e){console.error(e)}function Wo(e){In(e)}function bi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Fo(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Tc(e,t,l){return l=pl(l),l.tag=3,l.payload={element:null},l.callback=function(){bi(e,t)},l}function Io(e){return e=pl(e),e.tag=3,e}function Po(e,t,l,a){var i=l.type.getDerivedStateFromError;if(typeof i=="function"){var s=a.value;e.payload=function(){return i(s)},e.callback=function(){Fo(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Fo(t,l,a),typeof i!="function"&&(Al===null?Al=new Set([this]):Al.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function Gm(e,t,l,a,i){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&ya(t,l,i,!0),l=yt.current,l!==null){switch(l.tag){case 31:case 13:return Ot===null?Ui():l.alternate===null&&Ue===0&&(Ue=3),l.flags&=-257,l.flags|=65536,l.lanes=i,a===ui?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Fc(e,a,i)),!1;case 22:return l.flags|=65536,a===ui?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Fc(e,a,i)),!1}throw Error(r(435,l.tag))}return Fc(e,a,i),Ui(),!1}if(de)return t=yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==Zs&&(e=Error(r(422),{cause:a}),en(At(e,l)))):(a!==Zs&&(t=Error(r(423),{cause:a}),en(At(t,l))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=At(a,l),i=Tc(e.stateNode,a,i),lc(e,i),Ue!==4&&(Ue=2)),!1;var s=Error(r(520),{cause:a});if(s=At(s,l),gn===null?gn=[s]:gn.push(s),Ue!==4&&(Ue=2),t===null)return!0;a=At(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=i&-i,l.lanes|=e,e=Tc(l.stateNode,a,e),lc(l,e),!1;case 1:if(t=l.type,s=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Al===null||!Al.has(s))))return l.flags|=65536,i&=-i,l.lanes|=i,i=Io(i),Po(i,e,l,a),lc(l,i),!1}l=l.return}while(l!==null);return!1}var zc=Error(r(461)),Ge=!1;function We(e,t,l,a){t.child=e===null?lo(t,null,l,a):Jl(t,e.child,l,a)}function ed(e,t,l,a,i){l=l.render;var s=t.ref;if("ref"in a){var c={};for(var o in a)o!=="ref"&&(c[o]=a[o])}else c=a;return Ll(t),a=uc(e,t,l,c,s,i),o=rc(),e!==null&&!Ge?(oc(e,t,i),el(e,t,i)):(de&&o&&ks(t),t.flags|=1,We(e,t,a,i),t.child)}function td(e,t,l,a,i){if(e===null){var s=l.type;return typeof s=="function"&&!Gs(s)&&s.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=s,ld(e,t,s,a,i)):(e=li(l.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Hc(e,i)){var c=s.memoizedProps;if(l=l.compare,l=l!==null?l:Fa,l(c,a)&&e.ref===t.ref)return el(e,t,i)}return t.flags|=1,e=Jt(s,a),e.ref=t.ref,e.return=t,t.child=e}function ld(e,t,l,a,i){if(e!==null){var s=e.memoizedProps;if(Fa(s,a)&&e.ref===t.ref)if(Ge=!1,t.pendingProps=a=s,Hc(e,i))(e.flags&131072)!==0&&(Ge=!0);else return t.lanes=e.lanes,el(e,t,i)}return Oc(e,t,l,a,i)}function ad(e,t,l,a){var i=a.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|l:l,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~s}else a=0,t.child=null;return nd(e,t,s,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&si(t,s!==null?s.cachePool:null),s!==null?io(t,s):nc(),so(t);else return a=t.lanes=536870912,nd(e,t,s!==null?s.baseLanes|l:l,l,a)}else s!==null?(si(t,s.cachePool),io(t,s),gl(),t.memoizedState=null):(e!==null&&si(t,null),nc(),gl());return We(e,t,i,l),t.child}function hn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function nd(e,t,l,a,i){var s=Is();return s=s===null?null:{parent:we._currentValue,pool:s},t.memoizedState={baseLanes:l,cachePool:s},e!==null&&si(t,null),nc(),so(t),e!==null&&ya(e,t,a,!0),t.childLanes=i,null}function Si(e,t){return t=Ai({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function id(e,t,l){return Jl(t,e.child,null,l),e=Si(t,t.pendingProps),e.flags|=2,pt(t),t.memoizedState=null,e}function Qm(e,t,l){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(de){if(a.mode==="hidden")return e=Si(t,a),t.lanes=536870912,hn(null,e);if(sc(t),(e=Oe)?(e=jf(e,zt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fl!==null?{id:Qt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},l=Qr(e),l.return=t,t.child=l,Je=t,Oe=null)):e=null,e===null)throw ml(t);return t.lanes=536870912,null}return Si(t,a)}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(sc(t),i)if(t.flags&256)t.flags&=-257,t=id(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ge||ya(e,t,l,!1),i=(l&e.childLanes)!==0,Ge||i){if(a=Ee,a!==null&&(c=Ju(a,l),c!==0&&c!==s.retryLane))throw s.retryLane=c,Gl(e,c),rt(a,e,c),zc;Ui(),t=id(e,t,l)}else e=s.treeContext,Oe=_t(c.nextSibling),Je=t,de=!0,hl=null,zt=!1,e!==null&&Lr(t,e),t=Si(t,a),t.flags|=4096;return t}return e=Jt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ni(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Oc(e,t,l,a,i){return Ll(t),l=uc(e,t,l,a,void 0,i),a=rc(),e!==null&&!Ge?(oc(e,t,i),el(e,t,i)):(de&&a&&ks(t),t.flags|=1,We(e,t,l,i),t.child)}function sd(e,t,l,a,i,s){return Ll(t),t.updateQueue=null,l=uo(t,a,l,i),co(e),a=rc(),e!==null&&!Ge?(oc(e,t,s),el(e,t,s)):(de&&a&&ks(t),t.flags|=1,We(e,t,l,s),t.child)}function cd(e,t,l,a,i){if(Ll(t),t.stateNode===null){var s=fa,c=l.contextType;typeof c=="object"&&c!==null&&(s=$e(c)),s=new l(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Ec,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},ec(t),c=l.contextType,s.context=typeof c=="object"&&c!==null?$e(c):fa,s.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Ac(t,l,c,a),s.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(c=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),c!==s.state&&Ec.enqueueReplaceState(s,s.state,null),un(t,a,s,i),cn(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var o=t.memoizedProps,h=Wl(l,o);s.props=h;var S=s.context,_=l.contextType;c=fa,typeof _=="object"&&_!==null&&(c=$e(_));var U=l.getDerivedStateFromProps;_=typeof U=="function"||typeof s.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,_||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o||S!==c)&&Ko(t,s,a,c),yl=!1;var E=t.memoizedState;s.state=E,un(t,a,s,i),cn(),S=t.memoizedState,o||E!==S||yl?(typeof U=="function"&&(Ac(t,l,U,a),S=t.memoizedState),(h=yl||Vo(t,l,h,a,E,S,c))?(_||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=S),s.props=a,s.state=S,s.context=c,a=h):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,tc(e,t),c=t.memoizedProps,_=Wl(l,c),s.props=_,U=t.pendingProps,E=s.context,S=l.contextType,h=fa,typeof S=="object"&&S!==null&&(h=$e(S)),o=l.getDerivedStateFromProps,(S=typeof o=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(c!==U||E!==h)&&Ko(t,s,a,h),yl=!1,E=t.memoizedState,s.state=E,un(t,a,s,i),cn();var O=t.memoizedState;c!==U||E!==O||yl||e!==null&&e.dependencies!==null&&ni(e.dependencies)?(typeof o=="function"&&(Ac(t,l,o,a),O=t.memoizedState),(_=yl||Vo(t,l,_,a,E,O,h)||e!==null&&e.dependencies!==null&&ni(e.dependencies))?(S||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,O,h),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,O,h)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||c===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=O),s.props=a,s.state=O,s.context=h,a=_):(typeof s.componentDidUpdate!="function"||c===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,Ni(e,t),a=(t.flags&128)!==0,s||a?(s=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&a?(t.child=Jl(t,e.child,null,i),t.child=Jl(t,null,l,i)):We(e,t,l,i),t.memoizedState=s.state,e=t.child):e=el(e,t,i),e}function ud(e,t,l,a){return Xl(),t.flags|=256,We(e,t,l,a),t.child}var _c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Dc(e){return{baseLanes:e,cachePool:Wr()}}function Mc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=xt),e}function rd(e,t,l){var a=t.pendingProps,i=!1,s=(t.flags&128)!==0,c;if((c=s)||(c=e!==null&&e.memoizedState===null?!1:(He.current&2)!==0),c&&(i=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(de){if(i?xl(t):gl(),(e=Oe)?(e=jf(e,zt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fl!==null?{id:Qt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},l=Qr(e),l.return=t,t.child=l,Je=t,Oe=null)):e=null,e===null)throw ml(t);return hu(e)?t.lanes=32:t.lanes=536870912,null}var o=a.children;return a=a.fallback,i?(gl(),i=t.mode,o=Ai({mode:"hidden",children:o},i),a=Ql(a,i,l,null),o.return=t,a.return=t,o.sibling=a,t.child=o,a=t.child,a.memoizedState=Dc(l),a.childLanes=Mc(e,c,l),t.memoizedState=_c,hn(null,a)):(xl(t),Cc(t,o))}var h=e.memoizedState;if(h!==null&&(o=h.dehydrated,o!==null)){if(s)t.flags&256?(xl(t),t.flags&=-257,t=Uc(e,t,l)):t.memoizedState!==null?(gl(),t.child=e.child,t.flags|=128,t=null):(gl(),o=a.fallback,i=t.mode,a=Ai({mode:"visible",children:a.children},i),o=Ql(o,i,l,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,Jl(t,e.child,null,l),a=t.child,a.memoizedState=Dc(l),a.childLanes=Mc(e,c,l),t.memoizedState=_c,t=hn(null,a));else if(xl(t),hu(o)){if(c=o.nextSibling&&o.nextSibling.dataset,c)var S=c.dgst;c=S,a=Error(r(419)),a.stack="",a.digest=c,en({value:a,source:null,stack:null}),t=Uc(e,t,l)}else if(Ge||ya(e,t,l,!1),c=(l&e.childLanes)!==0,Ge||c){if(c=Ee,c!==null&&(a=Ju(c,l),a!==0&&a!==h.retryLane))throw h.retryLane=a,Gl(e,a),rt(c,e,a),zc;fu(o)||Ui(),t=Uc(e,t,l)}else fu(o)?(t.flags|=192,t.child=e.child,t=null):(e=h.treeContext,Oe=_t(o.nextSibling),Je=t,de=!0,hl=null,zt=!1,e!==null&&Lr(t,e),t=Cc(t,a.children),t.flags|=4096);return t}return i?(gl(),o=a.fallback,i=t.mode,h=e.child,S=h.sibling,a=Jt(h,{mode:"hidden",children:a.children}),a.subtreeFlags=h.subtreeFlags&65011712,S!==null?o=Jt(S,o):(o=Ql(o,i,l,null),o.flags|=2),o.return=t,a.return=t,a.sibling=o,t.child=a,hn(null,a),a=t.child,o=e.child.memoizedState,o===null?o=Dc(l):(i=o.cachePool,i!==null?(h=we._currentValue,i=i.parent!==h?{parent:h,pool:h}:i):i=Wr(),o={baseLanes:o.baseLanes|l,cachePool:i}),a.memoizedState=o,a.childLanes=Mc(e,c,l),t.memoizedState=_c,hn(e.child,a)):(xl(t),l=e.child,e=l.sibling,l=Jt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Cc(e,t){return t=Ai({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ai(e,t){return e=vt(22,e,null,t),e.lanes=0,e}function Uc(e,t,l){return Jl(t,e.child,null,l),e=Cc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function od(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Js(e.return,t,l)}function Rc(e,t,l,a,i,s){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:i,treeForkCount:s}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=i,c.treeForkCount=s)}function dd(e,t,l){var a=t.pendingProps,i=a.revealOrder,s=a.tail;a=a.children;var c=He.current,o=(c&2)!==0;if(o?(c=c&1|2,t.flags|=128):c&=1,k(He,c),We(e,t,a,l),a=de?Pa:0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&od(e,l,t);else if(e.tag===19)od(e,l,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(i){case"forwards":for(l=t.child,i=null;l!==null;)e=l.alternate,e!==null&&fi(e)===null&&(i=l),l=l.sibling;l=i,l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null),Rc(t,!1,i,l,s,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&fi(e)===null){t.child=i;break}e=i.sibling,i.sibling=l,l=i,i=e}Rc(t,!0,l,null,s,a);break;case"together":Rc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function el(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Nl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ya(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Jt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Jt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Hc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ni(e)))}function Xm(e,t,l){switch(t.tag){case 3:et(t,t.stateNode.containerInfo),vl(t,we,e.memoizedState.cache),Xl();break;case 27:case 5:wa(t);break;case 4:et(t,t.stateNode.containerInfo);break;case 10:vl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,sc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(xl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?rd(e,t,l):(xl(t),e=el(e,t,l),e!==null?e.sibling:null);xl(t);break;case 19:var i=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(ya(e,t,l,!1),a=(l&t.childLanes)!==0),i){if(a)return dd(e,t,l);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),k(He,He.current),a)break;return null;case 22:return t.lanes=0,ad(e,t,l,t.pendingProps);case 24:vl(t,we,e.memoizedState.cache)}return el(e,t,l)}function fd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ge=!0;else{if(!Hc(e,l)&&(t.flags&128)===0)return Ge=!1,Xm(e,t,l);Ge=(e.flags&131072)!==0}else Ge=!1,de&&(t.flags&1048576)!==0&&kr(t,Pa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Vl(t.elementType),t.type=e,typeof e=="function")Gs(e)?(a=Wl(e,a),t.tag=1,t=cd(null,t,e,a,l)):(t.tag=0,t=Oc(null,t,e,a,l));else{if(e!=null){var i=e.$$typeof;if(i===ie){t.tag=11,t=ed(null,t,e,a,l);break e}else if(i===q){t.tag=14,t=td(null,t,e,a,l);break e}}throw t=Rt(e)||e,Error(r(306,t,""))}}return t;case 0:return Oc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,i=Wl(a,t.pendingProps),cd(e,t,a,i,l);case 3:e:{if(et(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var s=t.memoizedState;i=s.element,tc(e,t),un(t,a,null,l);var c=t.memoizedState;if(a=c.cache,vl(t,we,a),a!==s.cache&&$s(t,[we],l,!0),cn(),a=c.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=ud(e,t,a,l);break e}else if(a!==i){i=At(Error(r(424)),t),en(i),t=ud(e,t,a,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Oe=_t(e.firstChild),Je=t,de=!0,hl=null,zt=!0,l=lo(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Xl(),a===i){t=el(e,t,l);break e}We(e,t,a,l)}t=t.child}return t;case 26:return Ni(e,t),e===null?(l=Af(t.type,null,t.pendingProps,null))?t.memoizedState=l:de||(l=t.type,e=t.pendingProps,a=Gi(se.current).createElement(l),a[Ke]=t,a[at]=e,Fe(a,l,e),Le(a),t.stateNode=a):t.memoizedState=Af(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return wa(t),e===null&&de&&(a=t.stateNode=bf(t.type,t.pendingProps,se.current),Je=t,zt=!0,i=Oe,Ol(t.type)?(mu=i,Oe=_t(a.firstChild)):Oe=i),We(e,t,t.pendingProps.children,l),Ni(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&de&&((i=a=Oe)&&(a=jv(a,t.type,t.pendingProps,zt),a!==null?(t.stateNode=a,Je=t,Oe=_t(a.firstChild),zt=!1,i=!0):i=!1),i||ml(t)),wa(t),i=t.type,s=t.pendingProps,c=e!==null?e.memoizedProps:null,a=s.children,ru(i,s)?a=null:c!==null&&ru(i,c)&&(t.flags|=32),t.memoizedState!==null&&(i=uc(e,t,Um,null,null,l),On._currentValue=i),Ni(e,t),We(e,t,a,l),t.child;case 6:return e===null&&de&&((e=l=Oe)&&(l=xv(l,t.pendingProps,zt),l!==null?(t.stateNode=l,Je=t,Oe=null,e=!0):e=!1),e||ml(t)),null;case 13:return rd(e,t,l);case 4:return et(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Jl(t,null,a,l):We(e,t,a,l),t.child;case 11:return ed(e,t,t.type,t.pendingProps,l);case 7:return We(e,t,t.pendingProps,l),t.child;case 8:return We(e,t,t.pendingProps.children,l),t.child;case 12:return We(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,vl(t,t.type,a.value),We(e,t,a.children,l),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,Ll(t),i=$e(i),a=a(i),t.flags|=1,We(e,t,a,l),t.child;case 14:return td(e,t,t.type,t.pendingProps,l);case 15:return ld(e,t,t.type,t.pendingProps,l);case 19:return dd(e,t,l);case 31:return Qm(e,t,l);case 22:return ad(e,t,l,t.pendingProps);case 24:return Ll(t),a=$e(we),e===null?(i=Is(),i===null&&(i=Ee,s=Ws(),i.pooledCache=s,s.refCount++,s!==null&&(i.pooledCacheLanes|=l),i=s),t.memoizedState={parent:a,cache:i},ec(t),vl(t,we,i)):((e.lanes&l)!==0&&(tc(e,t),un(t,null,null,l),cn()),i=e.memoizedState,s=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),vl(t,we,a)):(a=s.cache,vl(t,we,a),a!==i.cache&&$s(t,[we],l,!0))),We(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function tl(e){e.flags|=4}function qc(e,t,l,a,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Yd())e.flags|=8192;else throw Kl=ui,Ps}else e.flags&=-16777217}function hd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!_f(t))if(Yd())e.flags|=8192;else throw Kl=ui,Ps}function Ei(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Zu():536870912,e.lanes|=t,Oa|=t)}function mn(e,t){if(!de)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function _e(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var i=e.child;i!==null;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function km(e,t,l){var a=t.pendingProps;switch(Ls(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(t),null;case 1:return _e(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ft(we),Re(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(va(t)?tl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Vs())),_e(t),null;case 26:var i=t.type,s=t.memoizedState;return e===null?(tl(t),s!==null?(_e(t),hd(t,s)):(_e(t),qc(t,i,null,a,l))):s?s!==e.memoizedState?(tl(t),_e(t),hd(t,s)):(_e(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&tl(t),_e(t),qc(t,i,e,a,l)),null;case 27:if(qn(t),l=se.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return _e(t),null}e=Z.current,va(t)?Zr(t):(e=bf(i,a,l),t.stateNode=e,tl(t))}return _e(t),null;case 5:if(qn(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return _e(t),null}if(s=Z.current,va(t))Zr(t);else{var c=Gi(se.current);switch(s){case 1:s=c.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=c.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":s=c.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?c.createElement(i,{is:a.is}):c.createElement(i)}}s[Ke]=t,s[at]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)s.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=s;e:switch(Fe(s,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&tl(t)}}return _e(t),qc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=se.current,va(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=Je,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[Ke]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||of(e.nodeValue,l)),e||ml(t,!0)}else e=Gi(e).createTextNode(a),e[Ke]=t,t.stateNode=e}return _e(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=va(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Ke]=t}else Xl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_e(t),e=!1}else l=Vs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(pt(t),t):(pt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return _e(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=va(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(r(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));i[Ke]=t}else Xl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_e(t),i=!1}else i=Vs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(pt(t),t):(pt(t),null)}return pt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ei(t,t.updateQueue),_e(t),null);case 4:return Re(),e===null&&nu(t.stateNode.containerInfo),_e(t),null;case 10:return Ft(t.type),_e(t),null;case 19:if(R(He),a=t.memoizedState,a===null)return _e(t),null;if(i=(t.flags&128)!==0,s=a.rendering,s===null)if(i)mn(a,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=fi(e),s!==null){for(t.flags|=128,mn(a,!1),e=s.updateQueue,t.updateQueue=e,Ei(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Gr(l,e),l=l.sibling;return k(He,He.current&1|2),de&&$t(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&dt()>Di&&(t.flags|=128,i=!0,mn(a,!1),t.lanes=4194304)}else{if(!i)if(e=fi(s),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ei(t,e),mn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!de)return _e(t),null}else 2*dt()-a.renderingStartTime>Di&&l!==536870912&&(t.flags|=128,i=!0,mn(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(e=a.last,e!==null?e.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=dt(),e.sibling=null,l=He.current,k(He,i?l&1|2:l&1),de&&$t(t,a.treeForkCount),e):(_e(t),null);case 22:case 23:return pt(t),ic(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),l=t.updateQueue,l!==null&&Ei(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&R(Zl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ft(we),_e(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Lm(e,t){switch(Ls(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ft(we),Re(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return qn(t),null;case 31:if(t.memoizedState!==null){if(pt(t),t.alternate===null)throw Error(r(340));Xl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(pt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Xl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return R(He),null;case 4:return Re(),null;case 10:return Ft(t.type),null;case 22:case 23:return pt(t),ic(),e!==null&&R(Zl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ft(we),null;case 25:return null;default:return null}}function md(e,t){switch(Ls(t),t.tag){case 3:Ft(we),Re();break;case 26:case 27:case 5:qn(t);break;case 4:Re();break;case 31:t.memoizedState!==null&&pt(t);break;case 13:pt(t);break;case 19:R(He);break;case 10:Ft(t.type);break;case 22:case 23:pt(t),ic(),e!==null&&R(Zl);break;case 24:Ft(we)}}function vn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var s=l.create,c=l.inst;a=s(),c.destroy=a}l=l.next}while(l!==i)}}catch(o){xe(t,t.return,o)}}function bl(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var s=i.next;a=s;do{if((a.tag&e)===e){var c=a.inst,o=c.destroy;if(o!==void 0){c.destroy=void 0,i=t;var h=l,S=o;try{S()}catch(_){xe(i,h,_)}}}a=a.next}while(a!==s)}}catch(_){xe(t,t.return,_)}}function vd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{no(t,l)}catch(a){xe(e,e.return,a)}}}function yd(e,t,l){l.props=Wl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){xe(e,t,a)}}function yn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){xe(e,t,i)}}function kt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){xe(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){xe(e,t,i)}else l.current=null}function pd(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){xe(e,e.return,i)}}function Bc(e,t,l){try{var a=e.stateNode;fv(a,e.type,l,t),a[at]=t}catch(i){xe(e,e.return,i)}}function jd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ol(e.type)||e.tag===4}function wc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jd(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&&Ol(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 Yc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Vt));else if(a!==4&&(a===27&&Ol(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Yc(e,t,l),e=e.sibling;e!==null;)Yc(e,t,l),e=e.sibling}function Ti(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Ol(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ti(e,t,l),e=e.sibling;e!==null;)Ti(e,t,l),e=e.sibling}function xd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Fe(t,a,l),t[Ke]=e,t[at]=l}catch(s){xe(e,e.return,s)}}var ll=!1,Qe=!1,Gc=!1,gd=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function Zm(e,t){if(e=e.containerInfo,cu=Ki,e=Mr(e),Us(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var c=0,o=-1,h=-1,S=0,_=0,U=e,E=null;t:for(;;){for(var O;U!==l||i!==0&&U.nodeType!==3||(o=c+i),U!==s||a!==0&&U.nodeType!==3||(h=c+a),U.nodeType===3&&(c+=U.nodeValue.length),(O=U.firstChild)!==null;)E=U,U=O;for(;;){if(U===e)break t;if(E===l&&++S===i&&(o=c),E===s&&++_===a&&(h=c),(O=U.nextSibling)!==null)break;U=E,E=U.parentNode}U=O}l=o===-1||h===-1?null:{start:o,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;for(uu={focusedElem:e,selectionRange:l},Ki=!1,Ze=t;Ze!==null;)if(t=Ze,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ze=e;else for(;Ze!==null;){switch(t=Ze,s=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(l=0;l<e.length;l++)i=e[l],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,l=t,i=s.memoizedProps,s=s.memoizedState,a=l.stateNode;try{var L=Wl(l.type,i);e=a.getSnapshotBeforeUpdate(L,s),a.__reactInternalSnapshotBeforeUpdate=e}catch(F){xe(l,l.return,F)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)du(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":du(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(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Ze=e;break}Ze=t.return}}function bd(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:nl(e,l),a&4&&vn(5,l);break;case 1:if(nl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){xe(l,l.return,c)}else{var i=Wl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){xe(l,l.return,c)}}a&64&&vd(l),a&512&&yn(l,l.return);break;case 3:if(nl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{no(e,t)}catch(c){xe(l,l.return,c)}}break;case 27:t===null&&a&4&&xd(l);case 26:case 5:nl(e,l),t===null&&a&4&&pd(l),a&512&&yn(l,l.return);break;case 12:nl(e,l);break;case 31:nl(e,l),a&4&&Ad(e,l);break;case 13:nl(e,l),a&4&&Ed(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=ev.bind(null,l),gv(e,l))));break;case 22:if(a=l.memoizedState!==null||ll,!a){t=t!==null&&t.memoizedState!==null||Qe,i=ll;var s=Qe;ll=a,(Qe=t)&&!s?il(e,l,(l.subtreeFlags&8772)!==0):nl(e,l),ll=i,Qe=s}break;case 30:break;default:nl(e,l)}}function Sd(e){var t=e.alternate;t!==null&&(e.alternate=null,Sd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ys(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 Me=null,it=!1;function al(e,t,l){for(l=l.child;l!==null;)Nd(e,t,l),l=l.sibling}function Nd(e,t,l){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Ya,l)}catch{}switch(l.tag){case 26:Qe||kt(l,t),al(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Qe||kt(l,t);var a=Me,i=it;Ol(l.type)&&(Me=l.stateNode,it=!1),al(e,t,l),En(l.stateNode),Me=a,it=i;break;case 5:Qe||kt(l,t);case 6:if(a=Me,i=it,Me=null,al(e,t,l),Me=a,it=i,Me!==null)if(it)try{(Me.nodeType===9?Me.body:Me.nodeName==="HTML"?Me.ownerDocument.body:Me).removeChild(l.stateNode)}catch(s){xe(l,t,s)}else try{Me.removeChild(l.stateNode)}catch(s){xe(l,t,s)}break;case 18:Me!==null&&(it?(e=Me,yf(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),qa(e)):yf(Me,l.stateNode));break;case 4:a=Me,i=it,Me=l.stateNode.containerInfo,it=!0,al(e,t,l),Me=a,it=i;break;case 0:case 11:case 14:case 15:bl(2,l,t),Qe||bl(4,l,t),al(e,t,l);break;case 1:Qe||(kt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&yd(l,t,a)),al(e,t,l);break;case 21:al(e,t,l);break;case 22:Qe=(a=Qe)||l.memoizedState!==null,al(e,t,l),Qe=a;break;default:al(e,t,l)}}function Ad(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{qa(e)}catch(l){xe(t,t.return,l)}}}function Ed(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qa(e)}catch(l){xe(t,t.return,l)}}function Vm(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gd),t;default:throw Error(r(435,e.tag))}}function zi(e,t){var l=Vm(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var i=tv.bind(null,e,a);a.then(i,i)}})}function st(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var i=l[a],s=e,c=t,o=c;e:for(;o!==null;){switch(o.tag){case 27:if(Ol(o.type)){Me=o.stateNode,it=!1;break e}break;case 5:Me=o.stateNode,it=!1;break e;case 3:case 4:Me=o.stateNode.containerInfo,it=!0;break e}o=o.return}if(Me===null)throw Error(r(160));Nd(s,c,i),Me=null,it=!1,s=i.alternate,s!==null&&(s.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Td(t,e),t=t.sibling}var qt=null;function Td(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:st(t,e),ct(e),a&4&&(bl(3,e,e.return),vn(3,e),bl(5,e,e.return));break;case 1:st(t,e),ct(e),a&512&&(Qe||l===null||kt(l,l.return)),a&64&&ll&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var i=qt;if(st(t,e),ct(e),a&512&&(Qe||l===null||kt(l,l.return)),a&4){var s=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":s=i.getElementsByTagName("title")[0],(!s||s[Xa]||s[Ke]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=i.createElement(a),i.head.insertBefore(s,i.querySelector("head > title"))),Fe(s,a,l),s[Ke]=e,Le(s),a=s;break e;case"link":var c=zf("link","href",i).get(a+(l.href||""));if(c){for(var o=0;o<c.length;o++)if(s=c[o],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(o,1);break t}}s=i.createElement(a),Fe(s,a,l),i.head.appendChild(s);break;case"meta":if(c=zf("meta","content",i).get(a+(l.content||""))){for(o=0;o<c.length;o++)if(s=c[o],s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(o,1);break t}}s=i.createElement(a),Fe(s,a,l),i.head.appendChild(s);break;default:throw Error(r(468,a))}s[Ke]=e,Le(s),a=s}e.stateNode=a}else Of(i,e.type,e.stateNode);else e.stateNode=Tf(i,a,e.memoizedProps);else s!==a?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,a===null?Of(i,e.type,e.stateNode):Tf(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Bc(e,e.memoizedProps,l.memoizedProps)}break;case 27:st(t,e),ct(e),a&512&&(Qe||l===null||kt(l,l.return)),l!==null&&a&4&&Bc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(st(t,e),ct(e),a&512&&(Qe||l===null||kt(l,l.return)),e.flags&32){i=e.stateNode;try{ia(i,"")}catch(L){xe(e,e.return,L)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,Bc(e,i,l!==null?l.memoizedProps:i)),a&1024&&(Gc=!0);break;case 6:if(st(t,e),ct(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(L){xe(e,e.return,L)}}break;case 3:if(ki=null,i=qt,qt=Qi(t.containerInfo),st(t,e),qt=i,ct(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{qa(t.containerInfo)}catch(L){xe(e,e.return,L)}Gc&&(Gc=!1,zd(e));break;case 4:a=qt,qt=Qi(e.stateNode.containerInfo),st(t,e),ct(e),qt=a;break;case 12:st(t,e),ct(e);break;case 31:st(t,e),ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,zi(e,a)));break;case 13:st(t,e),ct(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(_i=dt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,zi(e,a)));break;case 22:i=e.memoizedState!==null;var h=l!==null&&l.memoizedState!==null,S=ll,_=Qe;if(ll=S||i,Qe=_||h,st(t,e),Qe=_,ll=S,ct(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(l===null||h||ll||Qe||Fl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){h=l=t;try{if(s=h.stateNode,i)c=s.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{o=h.stateNode;var U=h.memoizedProps.style,E=U!=null&&U.hasOwnProperty("display")?U.display:null;o.style.display=E==null||typeof E=="boolean"?"":(""+E).trim()}}catch(L){xe(h,h.return,L)}}}else if(t.tag===6){if(l===null){h=t;try{h.stateNode.nodeValue=i?"":h.memoizedProps}catch(L){xe(h,h.return,L)}}}else if(t.tag===18){if(l===null){h=t;try{var O=h.stateNode;i?pf(O,!0):pf(h.stateNode,!1)}catch(L){xe(h,h.return,L)}}}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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,zi(e,l))));break;case 19:st(t,e),ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,zi(e,a)));break;case 30:break;case 21:break;default:st(t,e),ct(e)}}function ct(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(jd(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var i=l.stateNode,s=wc(e);Ti(e,s,i);break;case 5:var c=l.stateNode;l.flags&32&&(ia(c,""),l.flags&=-33);var o=wc(e);Ti(e,o,c);break;case 3:case 4:var h=l.stateNode.containerInfo,S=wc(e);Yc(e,S,h);break;default:throw Error(r(161))}}catch(_){xe(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;zd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function nl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bd(e,t.alternate,t),t=t.sibling}function Fl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:bl(4,t,t.return),Fl(t);break;case 1:kt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&yd(t,t.return,l),Fl(t);break;case 27:En(t.stateNode);case 26:case 5:kt(t,t.return),Fl(t);break;case 22:t.memoizedState===null&&Fl(t);break;case 30:Fl(t);break;default:Fl(t)}e=e.sibling}}function il(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,s=t,c=s.flags;switch(s.tag){case 0:case 11:case 15:il(i,s,l),vn(4,s);break;case 1:if(il(i,s,l),a=s,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(S){xe(a,a.return,S)}if(a=s,i=a.updateQueue,i!==null){var o=a.stateNode;try{var h=i.shared.hiddenCallbacks;if(h!==null)for(i.shared.hiddenCallbacks=null,i=0;i<h.length;i++)ao(h[i],o)}catch(S){xe(a,a.return,S)}}l&&c&64&&vd(s),yn(s,s.return);break;case 27:xd(s);case 26:case 5:il(i,s,l),l&&a===null&&c&4&&pd(s),yn(s,s.return);break;case 12:il(i,s,l);break;case 31:il(i,s,l),l&&c&4&&Ad(i,s);break;case 13:il(i,s,l),l&&c&4&&Ed(i,s);break;case 22:s.memoizedState===null&&il(i,s,l),yn(s,s.return);break;case 30:break;default:il(i,s,l)}t=t.sibling}}function Qc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&tn(l))}function Xc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&tn(e))}function Bt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Od(e,t,l,a),t=t.sibling}function Od(e,t,l,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Bt(e,t,l,a),i&2048&&vn(9,t);break;case 1:Bt(e,t,l,a);break;case 3:Bt(e,t,l,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&tn(e)));break;case 12:if(i&2048){Bt(e,t,l,a),e=t.stateNode;try{var s=t.memoizedProps,c=s.id,o=s.onPostCommit;typeof o=="function"&&o(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(h){xe(t,t.return,h)}}else Bt(e,t,l,a);break;case 31:Bt(e,t,l,a);break;case 13:Bt(e,t,l,a);break;case 23:break;case 22:s=t.stateNode,c=t.alternate,t.memoizedState!==null?s._visibility&2?Bt(e,t,l,a):pn(e,t):s._visibility&2?Bt(e,t,l,a):(s._visibility|=2,Ea(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Qc(c,t);break;case 24:Bt(e,t,l,a),i&2048&&Xc(t.alternate,t);break;default:Bt(e,t,l,a)}}function Ea(e,t,l,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,c=t,o=l,h=a,S=c.flags;switch(c.tag){case 0:case 11:case 15:Ea(s,c,o,h,i),vn(8,c);break;case 23:break;case 22:var _=c.stateNode;c.memoizedState!==null?_._visibility&2?Ea(s,c,o,h,i):pn(s,c):(_._visibility|=2,Ea(s,c,o,h,i)),i&&S&2048&&Qc(c.alternate,c);break;case 24:Ea(s,c,o,h,i),i&&S&2048&&Xc(c.alternate,c);break;default:Ea(s,c,o,h,i)}t=t.sibling}}function pn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,i=a.flags;switch(a.tag){case 22:pn(l,a),i&2048&&Qc(a.alternate,a);break;case 24:pn(l,a),i&2048&&Xc(a.alternate,a);break;default:pn(l,a)}t=t.sibling}}var jn=8192;function Ta(e,t,l){if(e.subtreeFlags&jn)for(e=e.child;e!==null;)_d(e,t,l),e=e.sibling}function _d(e,t,l){switch(e.tag){case 26:Ta(e,t,l),e.flags&jn&&e.memoizedState!==null&&Cv(l,qt,e.memoizedState,e.memoizedProps);break;case 5:Ta(e,t,l);break;case 3:case 4:var a=qt;qt=Qi(e.stateNode.containerInfo),Ta(e,t,l),qt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=jn,jn=16777216,Ta(e,t,l),jn=a):Ta(e,t,l));break;default:Ta(e,t,l)}}function Dd(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 xn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ze=a,Cd(a,e)}Dd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Md(e),e=e.sibling}function Md(e){switch(e.tag){case 0:case 11:case 15:xn(e),e.flags&2048&&bl(9,e,e.return);break;case 3:xn(e);break;case 12:xn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Oi(e)):xn(e);break;default:xn(e)}}function Oi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ze=a,Cd(a,e)}Dd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:bl(8,t,t.return),Oi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Oi(t));break;default:Oi(t)}e=e.sibling}}function Cd(e,t){for(;Ze!==null;){var l=Ze;switch(l.tag){case 0:case 11:case 15:bl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:tn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ze=a;else e:for(l=e;Ze!==null;){a=Ze;var i=a.sibling,s=a.return;if(Sd(a),a===l){Ze=null;break e}if(i!==null){i.return=s,Ze=i;break e}Ze=s}}}var Km={getCacheForType:function(e){var t=$e(we),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return $e(we).controller.signal}},Jm=typeof WeakMap=="function"?WeakMap:Map,ve=0,Ee=null,ce=null,re=0,je=0,jt=null,Sl=!1,za=!1,kc=!1,sl=0,Ue=0,Nl=0,Il=0,Lc=0,xt=0,Oa=0,gn=null,ut=null,Zc=!1,_i=0,Ud=0,Di=1/0,Mi=null,Al=null,Xe=0,El=null,_a=null,cl=0,Vc=0,Kc=null,Rd=null,bn=0,Jc=null;function gt(){return(ve&2)!==0&&re!==0?re&-re:N.T!==null?eu():$u()}function Hd(){if(xt===0)if((re&536870912)===0||de){var e=Yn;Yn<<=1,(Yn&3932160)===0&&(Yn=262144),xt=e}else xt=536870912;return e=yt.current,e!==null&&(e.flags|=32),xt}function rt(e,t,l){(e===Ee&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(Da(e,0),Tl(e,re,xt,!1)),Qa(e,l),((ve&2)===0||e!==Ee)&&(e===Ee&&((ve&2)===0&&(Il|=l),Ue===4&&Tl(e,re,xt,!1)),Lt(e))}function qd(e,t,l){if((ve&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ga(e,t),i=a?Fm(e,t):Wc(e,t,!0),s=a;do{if(i===0){za&&!a&&Tl(e,t,0,!1);break}else{if(l=e.current.alternate,s&&!$m(l)){i=Wc(e,t,!1),s=!1;continue}if(i===2){if(s=t,e.errorRecoveryDisabledLanes&s)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var o=e;i=gn;var h=o.current.memoizedState.isDehydrated;if(h&&(Da(o,c).flags|=256),c=Wc(o,c,!1),c!==2){if(kc&&!h){o.errorRecoveryDisabledLanes|=s,Il|=s,i=4;break e}s=ut,ut=i,s!==null&&(ut===null?ut=s:ut.push.apply(ut,s))}i=c}if(s=!1,i!==2)continue}}if(i===1){Da(e,0),Tl(e,t,0,!0);break}e:{switch(a=e,s=i,s){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Tl(a,t,xt,!Sl);break e;case 2:ut=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(i=_i+300-dt(),10<i)){if(Tl(a,t,xt,!Sl),Qn(a,0,!0)!==0)break e;cl=t,a.timeoutHandle=mf(Bd.bind(null,a,l,ut,Mi,Zc,t,xt,Il,Oa,Sl,s,"Throttled",-0,0),i);break e}Bd(a,l,ut,Mi,Zc,t,xt,Il,Oa,Sl,s,null,-0,0)}}break}while(!0);Lt(e)}function Bd(e,t,l,a,i,s,c,o,h,S,_,U,E,O){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:Vt},_d(t,s,U);var L=(s&62914560)===s?_i-dt():(s&4194048)===s?Ud-dt():0;if(L=Uv(U,L),L!==null){cl=s,e.cancelPendingCommit=L(Zd.bind(null,e,t,s,l,a,i,c,o,h,_,U,null,E,O)),Tl(e,s,c,!S);return}}Zd(e,t,s,l,a,i,c,o,h)}function $m(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var i=l[a],s=i.getSnapshot;i=i.value;try{if(!mt(s(),i))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 Tl(e,t,l,a){t&=~Lc,t&=~Il,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var s=31-ht(i),c=1<<s;a[s]=-1,i&=~c}l!==0&&Vu(e,l,t)}function Ci(){return(ve&6)===0?(Sn(0),!1):!0}function $c(){if(ce!==null){if(je===0)var e=ce.return;else e=ce,Wt=kl=null,dc(e),ga=null,an=0,e=ce;for(;e!==null;)md(e.alternate,e),e=e.return;ce=null}}function Da(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,vv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),cl=0,$c(),Ee=e,ce=l=Jt(e.current,null),re=t,je=0,jt=null,Sl=!1,za=Ga(e,t),kc=!1,Oa=xt=Lc=Il=Nl=Ue=0,ut=gn=null,Zc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-ht(a),s=1<<i;t|=e[i],a&=~s}return sl=t,Pn(),l}function wd(e,t){te=null,N.H=fn,t===xa||t===ci?(t=Pr(),je=3):t===Ps?(t=Pr(),je=4):je=t===zc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,ce===null&&(Ue=1,bi(e,At(t,e.current)))}function Yd(){var e=yt.current;return e===null?!0:(re&4194048)===re?Ot===null:(re&62914560)===re||(re&536870912)!==0?e===Ot:!1}function Gd(){var e=N.H;return N.H=fn,e===null?fn:e}function Qd(){var e=N.A;return N.A=Km,e}function Ui(){Ue=4,Sl||(re&4194048)!==re&&yt.current!==null||(za=!0),(Nl&134217727)===0&&(Il&134217727)===0||Ee===null||Tl(Ee,re,xt,!1)}function Wc(e,t,l){var a=ve;ve|=2;var i=Gd(),s=Qd();(Ee!==e||re!==t)&&(Mi=null,Da(e,t)),t=!1;var c=Ue;e:do try{if(je!==0&&ce!==null){var o=ce,h=jt;switch(je){case 8:$c(),c=6;break e;case 3:case 2:case 9:case 6:yt.current===null&&(t=!0);var S=je;if(je=0,jt=null,Ma(e,o,h,S),l&&za){c=0;break e}break;default:S=je,je=0,jt=null,Ma(e,o,h,S)}}Wm(),c=Ue;break}catch(_){wd(e,_)}while(!0);return t&&e.shellSuspendCounter++,Wt=kl=null,ve=a,N.H=i,N.A=s,ce===null&&(Ee=null,re=0,Pn()),c}function Wm(){for(;ce!==null;)Xd(ce)}function Fm(e,t){var l=ve;ve|=2;var a=Gd(),i=Qd();Ee!==e||re!==t?(Mi=null,Di=dt()+500,Da(e,t)):za=Ga(e,t);e:do try{if(je!==0&&ce!==null){t=ce;var s=jt;t:switch(je){case 1:je=0,jt=null,Ma(e,t,s,1);break;case 2:case 9:if(Fr(s)){je=0,jt=null,kd(t);break}t=function(){je!==2&&je!==9||Ee!==e||(je=7),Lt(e)},s.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:Fr(s)?(je=0,jt=null,kd(t)):(je=0,jt=null,Ma(e,t,s,7));break;case 5:var c=null;switch(ce.tag){case 26:c=ce.memoizedState;case 5:case 27:var o=ce;if(c?_f(c):o.stateNode.complete){je=0,jt=null;var h=o.sibling;if(h!==null)ce=h;else{var S=o.return;S!==null?(ce=S,Ri(S)):ce=null}break t}}je=0,jt=null,Ma(e,t,s,5);break;case 6:je=0,jt=null,Ma(e,t,s,6);break;case 8:$c(),Ue=6;break e;default:throw Error(r(462))}}Im();break}catch(_){wd(e,_)}while(!0);return Wt=kl=null,N.H=a,N.A=i,ve=l,ce!==null?0:(Ee=null,re=0,Pn(),Ue)}function Im(){for(;ce!==null&&!bh();)Xd(ce)}function Xd(e){var t=fd(e.alternate,e,sl);e.memoizedProps=e.pendingProps,t===null?Ri(e):ce=t}function kd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=sd(l,t,t.pendingProps,t.type,void 0,re);break;case 11:t=sd(l,t,t.pendingProps,t.type.render,t.ref,re);break;case 5:dc(t);default:md(l,t),t=ce=Gr(t,sl),t=fd(l,t,sl)}e.memoizedProps=e.pendingProps,t===null?Ri(e):ce=t}function Ma(e,t,l,a){Wt=kl=null,dc(t),ga=null,an=0;var i=t.return;try{if(Gm(e,i,t,l,re)){Ue=1,bi(e,At(l,e.current)),ce=null;return}}catch(s){if(i!==null)throw ce=i,s;Ue=1,bi(e,At(l,e.current)),ce=null;return}t.flags&32768?(de||a===1?e=!0:za||(re&536870912)!==0?e=!1:(Sl=e=!0,(a===2||a===9||a===3||a===6)&&(a=yt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Ld(t,e)):Ri(t)}function Ri(e){var t=e;do{if((t.flags&32768)!==0){Ld(t,Sl);return}e=t.return;var l=km(t.alternate,t,sl);if(l!==null){ce=l;return}if(t=t.sibling,t!==null){ce=t;return}ce=t=e}while(t!==null);Ue===0&&(Ue=5)}function Ld(e,t){do{var l=Lm(e.alternate,e);if(l!==null){l.flags&=32767,ce=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ce=e;return}ce=e=l}while(e!==null);Ue=6,ce=null}function Zd(e,t,l,a,i,s,c,o,h){e.cancelPendingCommit=null;do Hi();while(Xe!==0);if((ve&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(s=t.lanes|t.childLanes,s|=ws,Mh(e,l,s,c,o,h),e===Ee&&(ce=Ee=null,re=0),_a=t,El=e,cl=l,Vc=s,Kc=i,Rd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,lv(Bn,function(){return Wd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=N.T,N.T=null,i=X.p,X.p=2,c=ve,ve|=4;try{Zm(e,t,l)}finally{ve=c,X.p=i,N.T=a}}Xe=1,Vd(),Kd(),Jd()}}function Vd(){if(Xe===1){Xe=0;var e=El,t=_a,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=N.T,N.T=null;var a=X.p;X.p=2;var i=ve;ve|=4;try{Td(t,e);var s=uu,c=Mr(e.containerInfo),o=s.focusedElem,h=s.selectionRange;if(c!==o&&o&&o.ownerDocument&&Dr(o.ownerDocument.documentElement,o)){if(h!==null&&Us(o)){var S=h.start,_=h.end;if(_===void 0&&(_=S),"selectionStart"in o)o.selectionStart=S,o.selectionEnd=Math.min(_,o.value.length);else{var U=o.ownerDocument||document,E=U&&U.defaultView||window;if(E.getSelection){var O=E.getSelection(),L=o.textContent.length,F=Math.min(h.start,L),Se=h.end===void 0?F:Math.min(h.end,L);!O.extend&&F>Se&&(c=Se,Se=F,F=c);var x=_r(o,F),y=_r(o,Se);if(x&&y&&(O.rangeCount!==1||O.anchorNode!==x.node||O.anchorOffset!==x.offset||O.focusNode!==y.node||O.focusOffset!==y.offset)){var b=U.createRange();b.setStart(x.node,x.offset),O.removeAllRanges(),F>Se?(O.addRange(b),O.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),O.addRange(b))}}}}for(U=[],O=o;O=O.parentNode;)O.nodeType===1&&U.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<U.length;o++){var C=U[o];C.element.scrollLeft=C.left,C.element.scrollTop=C.top}}Ki=!!cu,uu=cu=null}finally{ve=i,X.p=a,N.T=l}}e.current=t,Xe=2}}function Kd(){if(Xe===2){Xe=0;var e=El,t=_a,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=N.T,N.T=null;var a=X.p;X.p=2;var i=ve;ve|=4;try{bd(e,t.alternate,t)}finally{ve=i,X.p=a,N.T=l}}Xe=3}}function Jd(){if(Xe===4||Xe===3){Xe=0,Sh();var e=El,t=_a,l=cl,a=Rd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Xe=5:(Xe=0,_a=El=null,$d(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Al=null),ms(l),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(Ya,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=N.T,i=X.p,X.p=2,N.T=null;try{for(var s=e.onRecoverableError,c=0;c<a.length;c++){var o=a[c];s(o.value,{componentStack:o.stack})}}finally{N.T=t,X.p=i}}(cl&3)!==0&&Hi(),Lt(e),i=e.pendingLanes,(l&261930)!==0&&(i&42)!==0?e===Jc?bn++:(bn=0,Jc=e):bn=0,Sn(0)}}function $d(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,tn(t)))}function Hi(){return Vd(),Kd(),Jd(),Wd()}function Wd(){if(Xe!==5)return!1;var e=El,t=Vc;Vc=0;var l=ms(cl),a=N.T,i=X.p;try{X.p=32>l?32:l,N.T=null,l=Kc,Kc=null;var s=El,c=cl;if(Xe=0,_a=El=null,cl=0,(ve&6)!==0)throw Error(r(331));var o=ve;if(ve|=4,Md(s.current),Od(s,s.current,c,l),ve=o,Sn(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(Ya,s)}catch{}return!0}finally{X.p=i,N.T=a,$d(e,t)}}function Fd(e,t,l){t=At(l,t),t=Tc(e.stateNode,t,2),e=jl(e,t,2),e!==null&&(Qa(e,2),Lt(e))}function xe(e,t,l){if(e.tag===3)Fd(e,e,l);else for(;t!==null;){if(t.tag===3){Fd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Al===null||!Al.has(a))){e=At(l,e),l=Io(2),a=jl(t,l,2),a!==null&&(Po(l,a,t,e),Qa(a,2),Lt(a));break}}t=t.return}}function Fc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Jm;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(kc=!0,i.add(l),e=Pm.bind(null,e,t,l),t.then(e,e))}function Pm(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ee===e&&(re&l)===l&&(Ue===4||Ue===3&&(re&62914560)===re&&300>dt()-_i?(ve&2)===0&&Da(e,0):Lc|=l,Oa===re&&(Oa=0)),Lt(e)}function Id(e,t){t===0&&(t=Zu()),e=Gl(e,t),e!==null&&(Qa(e,t),Lt(e))}function ev(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Id(e,l)}function tv(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),Id(e,l)}function lv(e,t){return os(e,t)}var qi=null,Ca=null,Ic=!1,Bi=!1,Pc=!1,zl=0;function Lt(e){e!==Ca&&e.next===null&&(Ca===null?qi=Ca=e:Ca=Ca.next=e),Bi=!0,Ic||(Ic=!0,nv())}function Sn(e,t){if(!Pc&&Bi){Pc=!0;do for(var l=!1,a=qi;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var s=0;else{var c=a.suspendedLanes,o=a.pingedLanes;s=(1<<31-ht(42|e)+1)-1,s&=i&~(c&~o),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,lf(a,s))}else s=re,s=Qn(a,a===Ee?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||Ga(a,s)||(l=!0,lf(a,s));a=a.next}while(l);Pc=!1}}function av(){Pd()}function Pd(){Bi=Ic=!1;var e=0;zl!==0&&mv()&&(e=zl);for(var t=dt(),l=null,a=qi;a!==null;){var i=a.next,s=ef(a,t);s===0?(a.next=null,l===null?qi=i:l.next=i,i===null&&(Ca=l)):(l=a,(e!==0||(s&3)!==0)&&(Bi=!0)),a=i}Xe!==0&&Xe!==5||Sn(e),zl!==0&&(zl=0)}function ef(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var c=31-ht(s),o=1<<c,h=i[c];h===-1?((o&l)===0||(o&a)!==0)&&(i[c]=Dh(o,t)):h<=t&&(e.expiredLanes|=o),s&=~o}if(t=Ee,l=re,l=Qn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&ds(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ga(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&ds(a),ms(l)){case 2:case 8:l=ku;break;case 32:l=Bn;break;case 268435456:l=Lu;break;default:l=Bn}return a=tf.bind(null,e),l=os(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&ds(a),e.callbackPriority=2,e.callbackNode=null,2}function tf(e,t){if(Xe!==0&&Xe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Hi()&&e.callbackNode!==l)return null;var a=re;return a=Qn(e,e===Ee?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(qd(e,a,t),ef(e,dt()),e.callbackNode!=null&&e.callbackNode===l?tf.bind(null,e):null)}function lf(e,t){if(Hi())return null;qd(e,t,!0)}function nv(){yv(function(){(ve&6)!==0?os(Xu,av):Pd()})}function eu(){if(zl===0){var e=pa;e===0&&(e=wn,wn<<=1,(wn&261888)===0&&(wn=256)),zl=e}return zl}function af(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Zn(""+e)}function nf(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function iv(e,t,l,a,i){if(t==="submit"&&l&&l.stateNode===i){var s=af((i[at]||null).action),c=a.submitter;c&&(t=(t=c[at]||null)?af(t.formAction):c.getAttribute("formAction"),t!==null&&(s=t,c=null));var o=new $n("action","action",null,a,i);e.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(zl!==0){var h=c?nf(i,c):new FormData(i);gc(l,{pending:!0,data:h,method:i.method,action:s},null,h)}}else typeof s=="function"&&(o.preventDefault(),h=c?nf(i,c):new FormData(i),gc(l,{pending:!0,data:h,method:i.method,action:s},s,h))},currentTarget:i}]})}}for(var tu=0;tu<Bs.length;tu++){var lu=Bs[tu],sv=lu.toLowerCase(),cv=lu[0].toUpperCase()+lu.slice(1);Ht(sv,"on"+cv)}Ht(Rr,"onAnimationEnd"),Ht(Hr,"onAnimationIteration"),Ht(qr,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(Nm,"onTransitionRun"),Ht(Am,"onTransitionStart"),Ht(Em,"onTransitionCancel"),Ht(Br,"onTransitionEnd"),aa("onMouseEnter",["mouseout","mouseover"]),aa("onMouseLeave",["mouseout","mouseover"]),aa("onPointerEnter",["pointerout","pointerover"]),aa("onPointerLeave",["pointerout","pointerover"]),ql("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ql("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ql("onBeforeInput",["compositionend","keypress","textInput","paste"]),ql("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nn="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(" "),uv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nn));function sf(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],i=a.event;a=a.listeners;e:{var s=void 0;if(t)for(var c=a.length-1;0<=c;c--){var o=a[c],h=o.instance,S=o.currentTarget;if(o=o.listener,h!==s&&i.isPropagationStopped())break e;s=o,i.currentTarget=S;try{s(i)}catch(_){In(_)}i.currentTarget=null,s=h}else for(c=0;c<a.length;c++){if(o=a[c],h=o.instance,S=o.currentTarget,o=o.listener,h!==s&&i.isPropagationStopped())break e;s=o,i.currentTarget=S;try{s(i)}catch(_){In(_)}i.currentTarget=null,s=h}}}}function ue(e,t){var l=t[vs];l===void 0&&(l=t[vs]=new Set);var a=e+"__bubble";l.has(a)||(cf(t,e,2,!1),l.add(a))}function au(e,t,l){var a=0;t&&(a|=4),cf(l,e,a,t)}var wi="_reactListening"+Math.random().toString(36).slice(2);function nu(e){if(!e[wi]){e[wi]=!0,Iu.forEach(function(l){l!=="selectionchange"&&(uv.has(l)||au(l,!1,e),au(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wi]||(t[wi]=!0,au("selectionchange",!1,t))}}function cf(e,t,l,a){switch(qf(t)){case 2:var i=qv;break;case 8:i=Bv;break;default:i=xu}l=i.bind(null,t,l,e),i=void 0,!As||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,l,{capture:!0,passive:i}):e.addEventListener(t,l,!0):i!==void 0?e.addEventListener(t,l,{passive:i}):e.addEventListener(t,l,!1)}function iu(e,t,l,a,i){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var o=a.stateNode.containerInfo;if(o===i)break;if(c===4)for(c=a.return;c!==null;){var h=c.tag;if((h===3||h===4)&&c.stateNode.containerInfo===i)return;c=c.return}for(;o!==null;){if(c=ea(o),c===null)return;if(h=c.tag,h===5||h===6||h===26||h===27){a=s=c;continue e}o=o.parentNode}}a=a.return}or(function(){var S=s,_=Ss(l),U=[];e:{var E=wr.get(e);if(E!==void 0){var O=$n,L=e;switch(e){case"keypress":if(Kn(l)===0)break e;case"keydown":case"keyup":O=tm;break;case"focusin":L="focus",O=Os;break;case"focusout":L="blur",O=Os;break;case"beforeblur":case"afterblur":O=Os;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=hr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=kh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=nm;break;case Rr:case Hr:case qr:O=Vh;break;case Br:O=sm;break;case"scroll":case"scrollend":O=Qh;break;case"wheel":O=um;break;case"copy":case"cut":case"paste":O=Jh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=vr;break;case"toggle":case"beforetoggle":O=om}var F=(t&4)!==0,Se=!F&&(e==="scroll"||e==="scrollend"),x=F?E!==null?E+"Capture":null:E;F=[];for(var y=S,b;y!==null;){var C=y;if(b=C.stateNode,C=C.tag,C!==5&&C!==26&&C!==27||b===null||x===null||(C=La(y,x),C!=null&&F.push(An(y,C,b))),Se)break;y=y.return}0<F.length&&(E=new O(E,L,null,l,_),U.push({event:E,listeners:F}))}}if((t&7)===0){e:{if(E=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",E&&l!==bs&&(L=l.relatedTarget||l.fromElement)&&(ea(L)||L[Pl]))break e;if((O||E)&&(E=_.window===_?_:(E=_.ownerDocument)?E.defaultView||E.parentWindow:window,O?(L=l.relatedTarget||l.toElement,O=S,L=L?ea(L):null,L!==null&&(Se=g(L),F=L.tag,L!==Se||F!==5&&F!==27&&F!==6)&&(L=null)):(O=null,L=S),O!==L)){if(F=hr,C="onMouseLeave",x="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(F=vr,C="onPointerLeave",x="onPointerEnter",y="pointer"),Se=O==null?E:ka(O),b=L==null?E:ka(L),E=new F(C,y+"leave",O,l,_),E.target=Se,E.relatedTarget=b,C=null,ea(_)===S&&(F=new F(x,y+"enter",L,l,_),F.target=b,F.relatedTarget=Se,C=F),Se=C,O&&L)t:{for(F=rv,x=O,y=L,b=0,C=x;C;C=F(C))b++;C=0;for(var J=y;J;J=F(J))C++;for(;0<b-C;)x=F(x),b--;for(;0<C-b;)y=F(y),C--;for(;b--;){if(x===y||y!==null&&x===y.alternate){F=x;break t}x=F(x),y=F(y)}F=null}else F=null;O!==null&&uf(U,E,O,F,!1),L!==null&&Se!==null&&uf(U,Se,L,F,!0)}}e:{if(E=S?ka(S):window,O=E.nodeName&&E.nodeName.toLowerCase(),O==="select"||O==="input"&&E.type==="file")var he=Nr;else if(br(E))if(Ar)he=gm;else{he=jm;var V=pm}else O=E.nodeName,!O||O.toLowerCase()!=="input"||E.type!=="checkbox"&&E.type!=="radio"?S&&gs(S.elementType)&&(he=Nr):he=xm;if(he&&(he=he(e,S))){Sr(U,he,l,_);break e}V&&V(e,E,S),e==="focusout"&&S&&E.type==="number"&&S.memoizedProps.value!=null&&xs(E,"number",E.value)}switch(V=S?ka(S):window,e){case"focusin":(br(V)||V.contentEditable==="true")&&(ra=V,Rs=S,Ia=null);break;case"focusout":Ia=Rs=ra=null;break;case"mousedown":Hs=!0;break;case"contextmenu":case"mouseup":case"dragend":Hs=!1,Cr(U,l,_);break;case"selectionchange":if(Sm)break;case"keydown":case"keyup":Cr(U,l,_)}var ae;if(Ds)e:{switch(e){case"compositionstart":var oe="onCompositionStart";break e;case"compositionend":oe="onCompositionEnd";break e;case"compositionupdate":oe="onCompositionUpdate";break e}oe=void 0}else ua?xr(e,l)&&(oe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(oe="onCompositionStart");oe&&(yr&&l.locale!=="ko"&&(ua||oe!=="onCompositionStart"?oe==="onCompositionEnd"&&ua&&(ae=dr()):(dl=_,Es="value"in dl?dl.value:dl.textContent,ua=!0)),V=Yi(S,oe),0<V.length&&(oe=new mr(oe,e,null,l,_),U.push({event:oe,listeners:V}),ae?oe.data=ae:(ae=gr(l),ae!==null&&(oe.data=ae)))),(ae=fm?hm(e,l):mm(e,l))&&(oe=Yi(S,"onBeforeInput"),0<oe.length&&(V=new mr("onBeforeInput","beforeinput",null,l,_),U.push({event:V,listeners:oe}),V.data=ae)),iv(U,e,S,l,_)}sf(U,t)})}function An(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Yi(e,t){for(var l=t+"Capture",a=[];e!==null;){var i=e,s=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||s===null||(i=La(e,l),i!=null&&a.unshift(An(e,i,s)),i=La(e,t),i!=null&&a.push(An(e,i,s))),e.tag===3)return a;e=e.return}return[]}function rv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function uf(e,t,l,a,i){for(var s=t._reactName,c=[];l!==null&&l!==a;){var o=l,h=o.alternate,S=o.stateNode;if(o=o.tag,h!==null&&h===a)break;o!==5&&o!==26&&o!==27||S===null||(h=S,i?(S=La(l,s),S!=null&&c.unshift(An(l,S,h))):i||(S=La(l,s),S!=null&&c.push(An(l,S,h)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var ov=/\r\n?/g,dv=/\u0000|\uFFFD/g;function rf(e){return(typeof e=="string"?e:""+e).replace(ov,`
|
|
9
|
+
`).replace(dv,"")}function of(e,t){return t=rf(t),rf(e)===t}function be(e,t,l,a,i,s){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ia(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ia(e,""+a);break;case"className":kn(e,"class",a);break;case"tabIndex":kn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":kn(e,l,a);break;case"style":ur(e,a,s);break;case"data":if(t!=="object"){kn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Zn(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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 s=="function"&&(l==="formAction"?(t!=="input"&&be(e,t,"name",i.name,i,null),be(e,t,"formEncType",i.formEncType,i,null),be(e,t,"formMethod",i.formMethod,i,null),be(e,t,"formTarget",i.formTarget,i,null)):(be(e,t,"encType",i.encType,i,null),be(e,t,"method",i.method,i,null),be(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Zn(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Vt);break;case"onScroll":a!=null&&ue("scroll",e);break;case"onScrollEnd":a!=null&&ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Zn(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":ue("beforetoggle",e),ue("toggle",e),Xn(e,"popover",a);break;case"xlinkActuate":Zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Zt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Zt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Zt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Zt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Xn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Yh.get(l)||l,Xn(e,l,a))}}function su(e,t,l,a,i,s){switch(l){case"style":ur(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ia(e,a):(typeof a=="number"||typeof a=="bigint")&&ia(e,""+a);break;case"onScroll":a!=null&&ue("scroll",e);break;case"onScrollEnd":a!=null&&ue("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Vt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Pu.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(i=l.endsWith("Capture"),t=l.slice(2,i?l.length-7:void 0),s=e[at]||null,s=s!=null?s[l]:null,typeof s=="function"&&e.removeEventListener(t,s,i),typeof a=="function")){typeof s!="function"&&s!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,i);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Xn(e,l,a)}}}function Fe(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ue("error",e),ue("load",e);var a=!1,i=!1,s;for(s in l)if(l.hasOwnProperty(s)){var c=l[s];if(c!=null)switch(s){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:be(e,t,s,c,l,null)}}i&&be(e,t,"srcSet",l.srcSet,l,null),a&&be(e,t,"src",l.src,l,null);return;case"input":ue("invalid",e);var o=s=c=i=null,h=null,S=null;for(a in l)if(l.hasOwnProperty(a)){var _=l[a];if(_!=null)switch(a){case"name":i=_;break;case"type":c=_;break;case"checked":h=_;break;case"defaultChecked":S=_;break;case"value":s=_;break;case"defaultValue":o=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:be(e,t,a,_,l,null)}}nr(e,s,o,h,S,c,i,!1);return;case"select":ue("invalid",e),a=c=s=null;for(i in l)if(l.hasOwnProperty(i)&&(o=l[i],o!=null))switch(i){case"value":s=o;break;case"defaultValue":c=o;break;case"multiple":a=o;default:be(e,t,i,o,l,null)}t=s,l=c,e.multiple=!!a,t!=null?na(e,!!a,t,!1):l!=null&&na(e,!!a,l,!0);return;case"textarea":ue("invalid",e),s=i=a=null;for(c in l)if(l.hasOwnProperty(c)&&(o=l[c],o!=null))switch(c){case"value":a=o;break;case"defaultValue":i=o;break;case"children":s=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:be(e,t,c,o,l,null)}sr(e,a,i,s);return;case"option":for(h in l)l.hasOwnProperty(h)&&(a=l[h],a!=null)&&(h==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":be(e,t,h,a,l,null));return;case"dialog":ue("beforetoggle",e),ue("toggle",e),ue("cancel",e),ue("close",e);break;case"iframe":case"object":ue("load",e);break;case"video":case"audio":for(a=0;a<Nn.length;a++)ue(Nn[a],e);break;case"image":ue("error",e),ue("load",e);break;case"details":ue("toggle",e);break;case"embed":case"source":case"link":ue("error",e),ue("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(S in l)if(l.hasOwnProperty(S)&&(a=l[S],a!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:be(e,t,S,a,l,null)}return;default:if(gs(t)){for(_ in l)l.hasOwnProperty(_)&&(a=l[_],a!==void 0&&su(e,t,_,a,l,void 0));return}}for(o in l)l.hasOwnProperty(o)&&(a=l[o],a!=null&&be(e,t,o,a,l,null))}function fv(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,c=null,o=null,h=null,S=null,_=null;for(O in l){var U=l[O];if(l.hasOwnProperty(O)&&U!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":h=U;default:a.hasOwnProperty(O)||be(e,t,O,null,a,U)}}for(var E in a){var O=a[E];if(U=l[E],a.hasOwnProperty(E)&&(O!=null||U!=null))switch(E){case"type":s=O;break;case"name":i=O;break;case"checked":S=O;break;case"defaultChecked":_=O;break;case"value":c=O;break;case"defaultValue":o=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,t));break;default:O!==U&&be(e,t,E,O,a,U)}}js(e,c,o,h,S,_,s,i);return;case"select":O=c=o=E=null;for(s in l)if(h=l[s],l.hasOwnProperty(s)&&h!=null)switch(s){case"value":break;case"multiple":O=h;default:a.hasOwnProperty(s)||be(e,t,s,null,a,h)}for(i in a)if(s=a[i],h=l[i],a.hasOwnProperty(i)&&(s!=null||h!=null))switch(i){case"value":E=s;break;case"defaultValue":o=s;break;case"multiple":c=s;default:s!==h&&be(e,t,i,s,a,h)}t=o,l=c,a=O,E!=null?na(e,!!l,E,!1):!!a!=!!l&&(t!=null?na(e,!!l,t,!0):na(e,!!l,l?[]:"",!1));return;case"textarea":O=E=null;for(o in l)if(i=l[o],l.hasOwnProperty(o)&&i!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:be(e,t,o,null,a,i)}for(c in a)if(i=a[c],s=l[c],a.hasOwnProperty(c)&&(i!=null||s!=null))switch(c){case"value":E=i;break;case"defaultValue":O=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(r(91));break;default:i!==s&&be(e,t,c,i,a,s)}ir(e,E,O);return;case"option":for(var L in l)E=l[L],l.hasOwnProperty(L)&&E!=null&&!a.hasOwnProperty(L)&&(L==="selected"?e.selected=!1:be(e,t,L,null,a,E));for(h in a)E=a[h],O=l[h],a.hasOwnProperty(h)&&E!==O&&(E!=null||O!=null)&&(h==="selected"?e.selected=E&&typeof E!="function"&&typeof E!="symbol":be(e,t,h,E,a,O));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 F in l)E=l[F],l.hasOwnProperty(F)&&E!=null&&!a.hasOwnProperty(F)&&be(e,t,F,null,a,E);for(S in a)if(E=a[S],O=l[S],a.hasOwnProperty(S)&&E!==O&&(E!=null||O!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(137,t));break;default:be(e,t,S,E,a,O)}return;default:if(gs(t)){for(var Se in l)E=l[Se],l.hasOwnProperty(Se)&&E!==void 0&&!a.hasOwnProperty(Se)&&su(e,t,Se,void 0,a,E);for(_ in a)E=a[_],O=l[_],!a.hasOwnProperty(_)||E===O||E===void 0&&O===void 0||su(e,t,_,E,a,O);return}}for(var x in l)E=l[x],l.hasOwnProperty(x)&&E!=null&&!a.hasOwnProperty(x)&&be(e,t,x,null,a,E);for(U in a)E=a[U],O=l[U],!a.hasOwnProperty(U)||E===O||E==null&&O==null||be(e,t,U,E,a,O)}function df(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var i=l[a],s=i.transferSize,c=i.initiatorType,o=i.duration;if(s&&o&&df(c)){for(c=0,o=i.responseEnd,a+=1;a<l.length;a++){var h=l[a],S=h.startTime;if(S>o)break;var _=h.transferSize,U=h.initiatorType;_&&df(U)&&(h=h.responseEnd,c+=_*(h<o?1:(o-S)/(h-S)))}if(--a,t+=8*(s+c)/(i.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 cu=null,uu=null;function Gi(e){return e.nodeType===9?e:e.ownerDocument}function ff(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 hf(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 ru(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 ou=null;function mv(){var e=window.event;return e&&e.type==="popstate"?e===ou?!1:(ou=e,!0):(ou=null,!1)}var mf=typeof setTimeout=="function"?setTimeout:void 0,vv=typeof clearTimeout=="function"?clearTimeout:void 0,vf=typeof Promise=="function"?Promise:void 0,yv=typeof queueMicrotask=="function"?queueMicrotask:typeof vf<"u"?function(e){return vf.resolve(null).then(e).catch(pv)}:mf;function pv(e){setTimeout(function(){throw e})}function Ol(e){return e==="head"}function yf(e,t){var l=t,a=0;do{var i=l.nextSibling;if(e.removeChild(l),i&&i.nodeType===8)if(l=i.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(i),qa(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")En(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,En(l);for(var s=l.firstChild;s;){var c=s.nextSibling,o=s.nodeName;s[Xa]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=c}}else l==="body"&&En(e.ownerDocument.body);l=i}while(l);qa(t)}function pf(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function du(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":du(l),ys(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function jv(e,t,l,a){for(;e.nodeType===1;){var i=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Xa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=_t(e.nextSibling),e===null)break}return null}function xv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=_t(e.nextSibling),e===null))return null;return e}function jf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=_t(e.nextSibling),e===null))return null;return e}function fu(e){return e.data==="$?"||e.data==="$~"}function hu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function gv(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function _t(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 mu=null;function xf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return _t(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function gf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function bf(e,t,l){switch(t=Gi(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function En(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ys(e)}var Dt=new Map,Sf=new Set;function Qi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ul=X.d;X.d={f:bv,r:Sv,D:Nv,C:Av,L:Ev,m:Tv,X:Ov,S:zv,M:_v};function bv(){var e=ul.f(),t=Ci();return e||t}function Sv(e){var t=ta(e);t!==null&&t.tag===5&&t.type==="form"?wo(t):ul.r(e)}var Ua=typeof document>"u"?null:document;function Nf(e,t,l){var a=Ua;if(a&&typeof t=="string"&&t){var i=St(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),Sf.has(i)||(Sf.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),Fe(t,"link",e),Le(t),a.head.appendChild(t)))}}function Nv(e){ul.D(e),Nf("dns-prefetch",e,null)}function Av(e,t){ul.C(e,t),Nf("preconnect",e,t)}function Ev(e,t,l){ul.L(e,t,l);var a=Ua;if(a&&e&&t){var i='link[rel="preload"][as="'+St(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+St(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+St(l.imageSizes)+'"]')):i+='[href="'+St(e)+'"]';var s=i;switch(t){case"style":s=Ra(e);break;case"script":s=Ha(e)}Dt.has(s)||(e=A({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Dt.set(s,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Tn(s))||t==="script"&&a.querySelector(zn(s))||(t=a.createElement("link"),Fe(t,"link",e),Le(t),a.head.appendChild(t)))}}function Tv(e,t){ul.m(e,t);var l=Ua;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+St(a)+'"][href="'+St(e)+'"]',s=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Ha(e)}if(!Dt.has(s)&&(e=A({rel:"modulepreload",href:e},t),Dt.set(s,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(zn(s)))return}a=l.createElement("link"),Fe(a,"link",e),Le(a),l.head.appendChild(a)}}}function zv(e,t,l){ul.S(e,t,l);var a=Ua;if(a&&e){var i=la(a).hoistableStyles,s=Ra(e);t=t||"default";var c=i.get(s);if(!c){var o={loading:0,preload:null};if(c=a.querySelector(Tn(s)))o.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Dt.get(s))&&vu(e,l);var h=c=a.createElement("link");Le(h),Fe(h,"link",e),h._p=new Promise(function(S,_){h.onload=S,h.onerror=_}),h.addEventListener("load",function(){o.loading|=1}),h.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Xi(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:o},i.set(s,c)}}}function Ov(e,t){ul.X(e,t);var l=Ua;if(l&&e){var a=la(l).hoistableScripts,i=Ha(e),s=a.get(i);s||(s=l.querySelector(zn(i)),s||(e=A({src:e,async:!0},t),(t=Dt.get(i))&&yu(e,t),s=l.createElement("script"),Le(s),Fe(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(i,s))}}function _v(e,t){ul.M(e,t);var l=Ua;if(l&&e){var a=la(l).hoistableScripts,i=Ha(e),s=a.get(i);s||(s=l.querySelector(zn(i)),s||(e=A({src:e,async:!0,type:"module"},t),(t=Dt.get(i))&&yu(e,t),s=l.createElement("script"),Le(s),Fe(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(i,s))}}function Af(e,t,l,a){var i=(i=se.current)?Qi(i):null;if(!i)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ra(l.href),l=la(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ra(l.href);var s=la(i).hoistableStyles,c=s.get(e);if(c||(i=i.ownerDocument||i,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,c),(s=i.querySelector(Tn(e)))&&!s._p&&(c.instance=s,c.state.loading=5),Dt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Dt.set(e,l),s||Dv(i,e,l,c.state))),t&&a===null)throw Error(r(528,""));return c}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ha(l),l=la(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ra(e){return'href="'+St(e)+'"'}function Tn(e){return'link[rel="stylesheet"]['+e+"]"}function Ef(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function Dv(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Fe(t,"link",l),Le(t),e.head.appendChild(t))}function Ha(e){return'[src="'+St(e)+'"]'}function zn(e){return"script[async]"+e}function Tf(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+St(l.href)+'"]');if(a)return t.instance=a,Le(a),a;var i=A({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Le(a),Fe(a,"style",i),Xi(a,l.precedence,e),t.instance=a;case"stylesheet":i=Ra(l.href);var s=e.querySelector(Tn(i));if(s)return t.state.loading|=4,t.instance=s,Le(s),s;a=Ef(l),(i=Dt.get(i))&&vu(a,i),s=(e.ownerDocument||e).createElement("link"),Le(s);var c=s;return c._p=new Promise(function(o,h){c.onload=o,c.onerror=h}),Fe(s,"link",a),t.state.loading|=4,Xi(s,l.precedence,e),t.instance=s;case"script":return s=Ha(l.src),(i=e.querySelector(zn(s)))?(t.instance=i,Le(i),i):(a=l,(i=Dt.get(s))&&(a=A({},l),yu(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),Le(i),Fe(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Xi(a,l.precedence,e));return t.instance}function Xi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,s=i,c=0;c<a.length;c++){var o=a[c];if(o.dataset.precedence===t)s=o;else if(s!==i)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function vu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function yu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ki=null;function zf(e,t,l){if(ki===null){var a=new Map,i=ki=new Map;i.set(l,a)}else i=ki,a=i.get(l),a||(a=new Map,i.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),i=0;i<l.length;i++){var s=l[i];if(!(s[Xa]||s[Ke]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var c=s.getAttribute(t)||"";c=e+c;var o=a.get(c);o?o.push(s):a.set(c,[s])}}return a}function Of(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Mv(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function _f(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Cv(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=Ra(a.href),s=t.querySelector(Tn(i));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Li.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=s,Le(s);return}s=t.ownerDocument||t,a=Ef(a),(i=Dt.get(i))&&vu(a,i),s=s.createElement("link"),Le(s);var c=s;c._p=new Promise(function(o,h){c.onload=o,c.onerror=h}),Fe(s,"link",a),l.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Li.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var pu=0;function Uv(e,t){return e.stylesheets&&e.count===0&&Vi(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Vi(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&pu===0&&(pu=62500*hv());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Vi(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>pu?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function Li(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zi=null;function Vi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zi=new Map,t.forEach(Rv,e),Zi=null,Li.call(e))}function Rv(e,t){if(!(t.state.loading&4)){var l=Zi.get(e);if(l)var a=l.get(null);else{l=new Map,Zi.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var c=i[s];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}i=t.instance,c=i.getAttribute("data-precedence"),s=l.get(c)||a,s===a&&l.set(null,i),l.set(c,i),this.count++,a=Li.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),s?s.parentNode.insertBefore(i,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var On={$$typeof:w,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function Hv(e,t,l,a,i,s,c,o,h){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=fs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fs(0),this.hiddenUpdates=fs(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=h,this.incompleteTransitions=new Map}function Df(e,t,l,a,i,s,c,o,h,S,_,U){return e=new Hv(e,t,l,c,h,S,_,U,o),t=1,s===!0&&(t|=24),s=vt(3,null,null,t),e.current=s,s.stateNode=e,t=Ws(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:l,cache:t},ec(s),e}function Mf(e){return e?(e=fa,e):fa}function Cf(e,t,l,a,i,s){i=Mf(i),a.context===null?a.context=i:a.pendingContext=i,a=pl(t),a.payload={element:l},s=s===void 0?null:s,s!==null&&(a.callback=s),l=jl(e,a,t),l!==null&&(rt(l,e,t),sn(l,e,t))}function Uf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ju(e,t){Uf(e,t),(e=e.alternate)&&Uf(e,t)}function Rf(e){if(e.tag===13||e.tag===31){var t=Gl(e,67108864);t!==null&&rt(t,e,67108864),ju(e,67108864)}}function Hf(e){if(e.tag===13||e.tag===31){var t=gt();t=hs(t);var l=Gl(e,t);l!==null&&rt(l,e,t),ju(e,t)}}var Ki=!0;function qv(e,t,l,a){var i=N.T;N.T=null;var s=X.p;try{X.p=2,xu(e,t,l,a)}finally{X.p=s,N.T=i}}function Bv(e,t,l,a){var i=N.T;N.T=null;var s=X.p;try{X.p=8,xu(e,t,l,a)}finally{X.p=s,N.T=i}}function xu(e,t,l,a){if(Ki){var i=gu(a);if(i===null)iu(e,t,a,Ji,l),Bf(e,a);else if(Yv(i,e,t,l,a))a.stopPropagation();else if(Bf(e,a),t&4&&-1<wv.indexOf(e)){for(;i!==null;){var s=ta(i);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var c=Hl(s.pendingLanes);if(c!==0){var o=s;for(o.pendingLanes|=2,o.entangledLanes|=2;c;){var h=1<<31-ht(c);o.entanglements[1]|=h,c&=~h}Lt(s),(ve&6)===0&&(Di=dt()+500,Sn(0))}}break;case 31:case 13:o=Gl(s,2),o!==null&&rt(o,s,2),Ci(),ju(s,2)}if(s=gu(a),s===null&&iu(e,t,a,Ji,l),s===i)break;i=s}i!==null&&a.stopPropagation()}else iu(e,t,a,null,l)}}function gu(e){return e=Ss(e),bu(e)}var Ji=null;function bu(e){if(Ji=null,e=ea(e),e!==null){var t=g(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=z(t),e!==null)return e;e=null}else if(l===31){if(e=D(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ji=e,null}function qf(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(Nh()){case Xu:return 2;case ku:return 8;case Bn:case Ah:return 32;case Lu:return 268435456;default:return 32}default:return 32}}var Su=!1,_l=null,Dl=null,Ml=null,_n=new Map,Dn=new Map,Cl=[],wv="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 Bf(e,t){switch(e){case"focusin":case"focusout":_l=null;break;case"dragenter":case"dragleave":Dl=null;break;case"mouseover":case"mouseout":Ml=null;break;case"pointerover":case"pointerout":_n.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dn.delete(t.pointerId)}}function Mn(e,t,l,a,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:s,targetContainers:[i]},t!==null&&(t=ta(t),t!==null&&Rf(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Yv(e,t,l,a,i){switch(t){case"focusin":return _l=Mn(_l,e,t,l,a,i),!0;case"dragenter":return Dl=Mn(Dl,e,t,l,a,i),!0;case"mouseover":return Ml=Mn(Ml,e,t,l,a,i),!0;case"pointerover":var s=i.pointerId;return _n.set(s,Mn(_n.get(s)||null,e,t,l,a,i)),!0;case"gotpointercapture":return s=i.pointerId,Dn.set(s,Mn(Dn.get(s)||null,e,t,l,a,i)),!0}return!1}function wf(e){var t=ea(e.target);if(t!==null){var l=g(t);if(l!==null){if(t=l.tag,t===13){if(t=z(l),t!==null){e.blockedOn=t,Wu(e.priority,function(){Hf(l)});return}}else if(t===31){if(t=D(l),t!==null){e.blockedOn=t,Wu(e.priority,function(){Hf(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function $i(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=gu(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);bs=a,l.target.dispatchEvent(a),bs=null}else return t=ta(l),t!==null&&Rf(t),e.blockedOn=l,!1;t.shift()}return!0}function Yf(e,t,l){$i(e)&&l.delete(t)}function Gv(){Su=!1,_l!==null&&$i(_l)&&(_l=null),Dl!==null&&$i(Dl)&&(Dl=null),Ml!==null&&$i(Ml)&&(Ml=null),_n.forEach(Yf),Dn.forEach(Yf)}function Wi(e,t){e.blockedOn===t&&(e.blockedOn=null,Su||(Su=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,Gv)))}var Fi=null;function Gf(e){Fi!==e&&(Fi=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Fi===e&&(Fi=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(bu(a||l)===null)continue;break}var s=ta(l);s!==null&&(e.splice(t,3),t-=3,gc(s,{pending:!0,data:i,method:l.method,action:a},a,i))}}))}function qa(e){function t(h){return Wi(h,e)}_l!==null&&Wi(_l,e),Dl!==null&&Wi(Dl,e),Ml!==null&&Wi(Ml,e),_n.forEach(t),Dn.forEach(t);for(var l=0;l<Cl.length;l++){var a=Cl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Cl.length&&(l=Cl[0],l.blockedOn===null);)wf(l),l.blockedOn===null&&Cl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var i=l[a],s=l[a+1],c=i[at]||null;if(typeof s=="function")c||Gf(l);else if(c){var o=null;if(s&&s.hasAttribute("formAction")){if(i=s,c=s[at]||null)o=c.formAction;else if(bu(i)!==null)continue}else o=c.action;typeof o=="function"?l[a+1]=o:(l.splice(a,3),a-=3),Gf(l)}}}function Qf(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(c){return i=c})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Nu(e){this._internalRoot=e}Ii.prototype.render=Nu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=gt();Cf(l,a,e,t,null,null)},Ii.prototype.unmount=Nu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cf(e.current,2,null,e,null,null),Ci(),t[Pl]=null}};function Ii(e){this._internalRoot=e}Ii.prototype.unstable_scheduleHydration=function(e){if(e){var t=$u();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Cl.length&&t!==0&&t<Cl[l].priority;l++);Cl.splice(l,0,e),l===0&&wf(e)}};var Xf=d.version;if(Xf!=="19.2.0")throw Error(r(527,Xf,"19.2.0"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=v(t),e=e!==null?M(e):null,e=e===null?null:e.stateNode,e};var Qv={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pi.isDisabled&&Pi.supportsFiber)try{Ya=Pi.inject(Qv),ft=Pi}catch{}}return Un.createRoot=function(e,t){if(!m(e))throw Error(r(299));var l=!1,a="",i=Jo,s=$o,c=Wo;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Df(e,1,!1,null,null,l,a,null,i,s,c,Qf),e[Pl]=t.current,nu(e),new Nu(t)},Un.hydrateRoot=function(e,t,l){if(!m(e))throw Error(r(299));var a=!1,i="",s=Jo,c=$o,o=Wo,h=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(i=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(o=l.onRecoverableError),l.formState!==void 0&&(h=l.formState)),t=Df(e,1,!0,t,l??null,a,i,h,s,c,o,Qf),t.context=Mf(null),l=t.current,a=gt(),a=hs(a),i=pl(a),i.callback=null,jl(l,i,a),l=a,t.current.lanes=l,Qa(t,l),Lt(t),e[Pl]=t.current,nu(e),new Ii(t)},Un.version="19.2.0",Un}var If;function Fv(){if(If)return Tu.exports;If=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(d){console.error(d)}}return u(),Tu.exports=Wv(),Tu.exports}var Iv=Fv();const ls="feltkit.admin-token";function Pv(){const u=/(?:^|[#&])token=([^&]+)/.exec(location.hash);if(u){try{sessionStorage.setItem(ls,decodeURIComponent(u[1]))}catch{}return history.replaceState(null,"",`${location.pathname}#/overview`),decodeURIComponent(u[1])}try{return sessionStorage.getItem(ls)}catch{return null}}function Pf(u){try{u?sessionStorage.setItem(ls,u):sessionStorage.removeItem(ls)}catch{}}class eh extends Error{constructor(d,f,r){super(f),this.code=d,this.status=r}code;status}let ch=null;const Du=u=>ch=u;let ts=null;const Mu=u=>ts=u;function uh(u){return ts?u?{"x-feltkit-csrf":ts.csrf,"x-feltkit-environment":ts.environment}:{}:{"x-feltkit-admin":ch??""}}async function ne(u,d={}){const f=await fetch(`/_feltkit/api${u}`,{...d,credentials:"same-origin",headers:{...uh(!!(d.method&&d.method!=="GET")),...d.body?{"Content-Type":"application/json"}:{},...d.headers??{}}});let r;try{r=await f.json()}catch{throw new eh("UNAVAILABLE",`The server answered ${f.status}.`,f.status)}if(!f.ok)throw new eh(r?.error?.code??"INTERNAL",r?.error?.message??`Request failed (${f.status})`,f.status);return r}function ey(u,d){const f=new AbortController;return(async()=>{let r=500;for(;!f.signal.aborted;){try{const m=await fetch("/_feltkit/api/events",{credentials:"same-origin",headers:uh(!1),signal:f.signal});if(!m.ok||!m.body)throw new Error(String(m.status));d(!0),r=500;const g=m.body.getReader(),z=new TextDecoder;let D="";for(;;){const{value:j,done:v}=await g.read();if(v)break;D+=z.decode(j,{stream:!0});let M;for(;(M=D.indexOf(`
|
|
10
|
+
|
|
11
|
+
`))>=0;){const A=D.slice(0,M);D=D.slice(M+2);const Y=/^event: (.+)$/m.exec(A)?.[1],K=/^data: (.+)$/m.exec(A)?.[1];Y&&K&&u(Y,JSON.parse(K))}}}catch{}if(d(!1),f.signal.aborted)break;await new Promise(m=>setTimeout(m,r)),r=Math.min(r*2,8e3)}})(),()=>f.abort()}function ns(u){const d=!!u?.environment?.development,r=(u?.operator?.permissions??[]).some(m=>m==="*"||m==="feltkit.*"||m==="feltkit.operations.*"||m==="feltkit.operations.write");return{development:d,canAct:d||r,actor:u?.operator?.principal?.id??null}}function Ie(u){if(!u)return"—";const d=Math.max(0,Math.round((Date.now()-Date.parse(u))/1e3));return d<5?"just now":d<60?`${d}s ago`:d<3600?`${Math.floor(d/60)}m ago`:d<86400?`${Math.floor(d/3600)}h ago`:new Date(u).toLocaleDateString()}function rh(u=15e3){const[,d]=B.useState(0);B.useEffect(()=>{const f=setInterval(()=>d(r=>r+1),u);return()=>clearInterval(f)},[u])}function $({tone:u="neutral",children:d,title:f}){return n.jsx("span",{className:`badge badge-${u}`,title:f,children:d})}function Ba({outcome:u}){return u==="success"?n.jsx($,{tone:"ok",children:"success"}):u==="denied"?n.jsx($,{tone:"warn",children:"denied"}):n.jsx($,{tone:"bad",children:u})}function le({title:u,action:d,children:f,className:r=""}){return n.jsxs("section",{className:`card ${r}`,children:[(u||d)&&n.jsxs("header",{className:"card-header",children:[u&&n.jsx("h2",{children:u}),d]}),f]})}function Mt({title:u,children:d}){return n.jsxs("div",{className:"empty",children:[n.jsx("div",{className:"empty-title",children:u}),d&&n.jsx("div",{className:"empty-body",children:d})]})}function Ve({label:u="Loading"}){return n.jsxs("div",{className:"loading",role:"status",children:[n.jsx("span",{className:"spinner","aria-hidden":!0})," ",u,"…"]})}function Te({error:u,retry:d}){const f=u;return n.jsxs("div",{className:"error-box",role:"alert",children:[n.jsx("strong",{children:f?.code??"Error"})," ",f?.message??String(u),d&&n.jsx("button",{className:"btn btn-small",onClick:d,children:"Retry"})]})}function Hn({value:u,max:d=4e3}){let f=JSON.stringify(u,null,2)??"undefined";return f.length>d&&(f=`${f.slice(0,d)}
|
|
12
|
+
… (${f.length-d} more characters)`),n.jsx("pre",{className:"json",children:f})}function ty({text:u,label:d="Copy"}){const[f,r]=B.useState(!1);return n.jsx("button",{className:"btn btn-small btn-ghost",onClick:()=>{navigator.clipboard?.writeText(u).then(()=>{r(!0),setTimeout(()=>r(!1),1200)})},children:f?"Copied":d})}function Uu({rows:u}){return n.jsx("dl",{className:"kv",children:u.map(([d,f],r)=>n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:d}),n.jsx("dd",{children:f})]},r))})}function Rn({schema:u}){if(!u)return n.jsx("span",{className:"muted",children:"—"});if(u.type!=="object"||!u.properties)return n.jsx("code",{className:"type",children:as(u)});const d=new Set(u.required??[]),f=Object.entries(u.properties);return f.length?n.jsx("table",{className:"fields",children:n.jsx("tbody",{children:f.map(([r,m])=>n.jsxs("tr",{children:[n.jsxs("td",{className:"mono",children:[r,!d.has(r)&&n.jsx("span",{className:"muted",children:"?"})]}),n.jsxs("td",{children:[n.jsx("code",{className:"type",children:as(m)}),th(m)&&n.jsxs("span",{className:"muted small",children:[" ",th(m)]})]})]},r))})}):n.jsx("span",{className:"muted",children:"no fields"})}function as(u){return u?u.enum?u.enum.map(d=>JSON.stringify(d)).join(" | "):u.anyOf?u.anyOf.map(as).join(" | "):u.type==="array"?`${as(u.items)}[]`:u.type==="object"?u.properties?`{ ${Object.keys(u.properties).join(", ")} }`:"object":Array.isArray(u.type)?u.type.join(" | "):u.type??"unknown":"unknown"}function th(u){const d=[];return u.minLength!==void 0&&d.push(`min ${u.minLength}`),u.maxLength!==void 0&&d.push(`max ${u.maxLength}`),u.minimum!==void 0&&d.push(`≥ ${u.minimum}`),u.maximum!==void 0&&d.push(`≤ ${u.maximum}`),d.join(", ")}function oh({title:u,onClose:d,children:f}){return B.useEffect(()=>{const r=m=>m.key==="Escape"&&d();return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[d]),n.jsx("div",{className:"drawer-backdrop",onClick:d,children:n.jsxs("aside",{className:"drawer",role:"dialog","aria-modal":"true","aria-label":typeof u=="string"?u:"Details",onClick:r=>r.stopPropagation(),children:[n.jsxs("header",{className:"drawer-header",children:[n.jsx("h2",{children:u}),n.jsx("button",{className:"btn btn-ghost",onClick:d,"aria-label":"Close",children:"Esc"})]}),n.jsx("div",{className:"drawer-body",children:f})]})})}function Be(u,d){const[f,r]=B.useState({loading:!0}),[m,g]=B.useState(0);return B.useEffect(()=>{let z=!0;return r(D=>({...D,loading:!0})),u().then(D=>z&&r({data:D,loading:!1}),D=>z&&r(j=>({data:j.data,error:D,loading:!1}))),()=>{z=!1}},[...d,m]),{...f,reload:()=>g(z=>z+1)}}function dh(u){const d=u.trim();if(!d||d.startsWith("credential-ref:"))return!1;if(/^(sk-|sk-ant-|sk_live_|sk_test_|rk_live_|xai-|AIza|ghp_|gho_|github_pat_|gsk_|glpat-|xox[abpr]-|hf_|pk_live_)/.test(d))return!0;if(d.length<32||/\s/.test(d)||!/[0-9]/.test(d)||!/[A-Za-z]/.test(d))return!1;const f=new Map;for(const m of d)f.set(m,(f.get(m)??0)+1);let r=0;for(const m of f.values())r-=m/d.length*Math.log2(m/d.length);return r>=4}function is({credential:u}){return u?u.present?n.jsxs($,{tone:"ok",title:u.updatedAt?`updated ${u.updatedAt}`:void 0,children:["set · ",u.location??u.variable,u.version&&u.source==="vault"?`, version ${u.version}`:""]}):n.jsx($,{tone:"bad",children:u.state==="revoked"?"removed":"not set"}):null}function ly(u){const d=u?.devUsers??[],[f,r]=B.useState("");return B.useEffect(()=>{!f&&d[0]&&r(d[0].id)},[d,f]),[f,r,d]}function ay({as:u,setAs:d,devUsers:f,label:r="Save as"}){return f.length?n.jsxs("label",{children:[r,n.jsx("select",{className:"input",value:u,onChange:m=>d(m.target.value),"aria-label":"Identity",children:f.map(m=>n.jsxs("option",{value:m.id,children:[m.name??m.id," (",m.roles.join(", "),")"]},m.id))})]}):null}function Ru({credentialRef:u,provider:d,as:f,label:r="Set key",onSaved:m}){const[g,z]=B.useState(!1),[D,j]=B.useState(""),[v,M]=B.useState(!1),[A,Y]=B.useState(null),[K,W]=B.useState(null),G=async()=>{M(!0),Y(null);const H=D;j("");try{const T=await ne("/credentials",{method:"POST",body:JSON.stringify({ref:u,value:H,...d?{provider:d}:{},...f?{as:f}:{}})});W(T.stored),z(!1),m?.(T.stored)}catch(T){Y(T)}finally{M(!1)}};return g?n.jsxs("span",{className:"row small",style:{flexWrap:"wrap"},children:[A?n.jsx(Te,{error:A}):null,n.jsx("input",{className:"input",type:"password",autoComplete:"off",spellCheck:!1,value:D,onChange:H=>j(H.target.value),placeholder:`Value for ${u}`,"aria-label":`Value for ${u}`}),n.jsx("button",{className:"btn btn-small btn-primary",onClick:G,disabled:v||!D.trim(),children:v?"Saving…":"Save"}),n.jsx("button",{className:"btn btn-small",onClick:()=>(j(""),z(!1)),children:"Cancel"}),n.jsx("span",{className:"muted",children:"Stored securely on the server; it is never shown again."})]}):n.jsxs("span",{className:"row small",children:[n.jsx("button",{className:"btn btn-small",onClick:()=>z(!0),children:r}),K&&n.jsxs("span",{className:"muted",children:["Stored (",K.location??"custody",", version ",K.version,")."]})]})}const lh={configured:{tone:"ok",help:"Enabled, set up, and its records read cleanly."},unconfigured:{tone:"warn",help:"Enabled, but nothing is set up yet."},unhealthy:{tone:"bad",help:"Enabled, but its store failed a check or recent work failed."},available:{tone:"neutral",help:"Can run here; not enabled in feltkit({ services })."},unavailable:{tone:"bad",help:"Cannot run in this installation."}};function Hu({service:u}){const d=lh[u.state]??lh.unavailable;return n.jsx($,{tone:d.tone,title:d.help,children:u.state})}function ny(u){const[d,f]=B.useState(u[0]?.id??"");B.useEffect(()=>{!d&&u[0]&&f(u[0].id)},[u,d]);const r=n.jsxs("label",{className:"row small",children:[n.jsx("span",{className:"muted",children:"Act as"}),n.jsx("select",{value:d,onChange:m=>f(m.target.value),"aria-label":"Identity for service operations",children:u.map(m=>n.jsxs("option",{value:m.id,children:[m.name??m.id," (",m.roles.join(", "),")"]},m.id))})]});return{as:d,picker:r}}function iy(){const{version:u}=wt(),d=Be(()=>ne("/services"),[u]),f=Be(()=>ne("/overview"),[u]),r=f.data?.devUsers??[],m=!!f.data?.environment?.development,{canAct:g}=ns(f.data),{as:z,picker:D}=ny(r),[j,v]=B.useState(null),[M,A]=B.useState(null),Y=d.data?.services??[],K=Y.filter(T=>T.state!=="available"&&T.state!=="unavailable"),W=Y.filter(T=>T.state==="available"||T.state==="unavailable"),G=d.data?.console?.url??null,H=async T=>{A(null),v(T);try{const{url:Q}=await ne("/services/console",{method:"POST",body:JSON.stringify({as:z,page:T})});window.open(Q,"feltkit-services")}catch(Q){A(Q)}finally{v(null)}};return n.jsxs(n.Fragment,{children:[n.jsx(Yt,{title:"Services",subtitle:m?"AppPort Services on this environment’s FeltDB instance. Configuration opens the package’s own pages; every operation there is authorized by your roles, as the identity you choose.":"AppPort Services on this environment’s FeltDB instance. Retries are authorized as you and recorded as yours; the work still runs as its owner.",actions:G&&r.length?D:null}),M?n.jsx(Te,{error:M}):null,d.error&&!d.data?n.jsx(Te,{error:d.error,retry:d.reload}):d.data?n.jsxs(n.Fragment,{children:[!G&&n.jsx(le,{children:n.jsxs("p",{className:"muted small",children:[d.data.console?.reason??"The services console is not running."," Service state below is read-only."]})}),G&&r.length===0&&n.jsx(le,{children:n.jsxs("p",{className:"muted small",children:["Declare a development identity in ",n.jsxs("code",{children:["feltkit(","{"," dev: ","{"," users ","}"," ","}",")"]})," to open the services console: its operations are authorized as that identity."]})}),K.length===0&&n.jsxs(Mt,{title:"No services enabled",children:["Enable services with feltkit(","{"," services: ","{"," … ","}"," ","}","). Each one gets its management page here."]}),K.map(T=>n.jsxs(le,{title:n.jsxs("span",{className:"row",children:[T.name," ",n.jsx(Hu,{service:T})]}),action:T.page&&G&&r.length?n.jsx("button",{className:"btn",onClick:()=>H(T.page),disabled:j!==null,children:j===T.page?"Opening…":"Manage"}):n.jsxs("span",{className:"muted small",children:[T.package,"@",T.version]}),children:[n.jsx("p",{children:T.description}),n.jsxs("dl",{className:"kv",children:[n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Status"}),n.jsxs("dd",{children:[T.detail," ",T.lastCheckedAt&&n.jsxs("span",{className:"muted",children:["· checked ",Ie(T.lastCheckedAt)]})]})]}),T.summary&&n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Records"}),n.jsx("dd",{children:Object.entries(T.summary).map(([Q,w])=>n.jsxs("span",{className:"chip",children:[Q," ",n.jsx("strong",{children:String(w)})]},Q))})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Permissions"}),n.jsx("dd",{children:T.capabilities.map(Q=>n.jsx("code",{className:"chip",children:Q},Q))})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"State"}),n.jsx("dd",{children:T.collections.map(Q=>n.jsx("a",{href:`#/data/${Q}`,className:"chip mono",children:Q},Q))})]}),T.lastError&&n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Last error"}),n.jsxs("dd",{className:"error-text",children:[T.lastError.message," ",n.jsxs("span",{className:"muted",children:["· ",Ie(T.lastError.at)]})]})]})]})]},T.id)),n.jsx(sy,{as:z,canAct:g,development:m,version:u}),Y.find(T=>T.id==="jobs"&&T.state!=="available"&&T.state!=="unavailable")&&n.jsx(cy,{as:z,development:m,canAct:g,version:u}),Y.find(T=>T.id==="webhooks"&&T.state!=="available"&&T.state!=="unavailable")&&n.jsx(uy,{as:z,development:m,canAct:m,version:u}),W.length>0&&n.jsx(le,{title:"Not enabled",children:n.jsx("ul",{className:"list",children:W.map(T=>n.jsxs("li",{className:"list-row",children:[n.jsxs("span",{children:[n.jsx("strong",{children:T.name})," ",n.jsx("span",{className:"muted small",children:T.state==="unavailable"?T.detail:T.description})]}),n.jsx(Hu,{service:T})]},T.id))})})]}):n.jsx(Ve,{})]})}function sy({as:u,canAct:d,development:f,version:r}){const[m,g]=B.useState(0),z=Be(()=>ne("/credentials"),[r,m]),[D,j]=B.useState(null),[v,M]=B.useState("");if(z.error)return n.jsx(Te,{error:z.error,retry:z.reload});if(!z.data)return null;const{custody:A,credentials:Y}=z.data,K=async G=>{j(null);try{await ne(`/credentials/${encodeURIComponent(G)}${f&&u?`?as=${encodeURIComponent(u)}`:""}`,{method:"DELETE"}),g(H=>H+1)}catch(H){j(H)}},W=v.trim()?v.trim().startsWith("credential-ref:")?v.trim():`credential-ref:${v.trim()}`:"";return n.jsxs(le,{title:"Credentials",children:[n.jsxs("p",{className:"muted small",children:["Services and configuration hold credential references only. Values are kept by FeltKit’s custody (",A.location,") and used inside the effect that needs them; they are never stored in FeltDB, logged, or shown. ",A.note]}),D?n.jsx(Te,{error:D}):null,n.jsx("div",{className:"table-wrap",children:n.jsxs("table",{className:"table",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{children:"Reference"}),n.jsx("th",{children:"Used by"}),n.jsx("th",{children:"Value"}),n.jsx("th",{children:"Override variable"}),n.jsx("th",{})]})}),n.jsx("tbody",{children:Y.map(G=>n.jsxs("tr",{children:[n.jsx("td",{className:"mono",children:G.ref}),n.jsx("td",{className:"small",children:G.usedBy.length?G.usedBy.join(", "):n.jsx("span",{className:"muted",children:"stored, not used yet"})}),n.jsx("td",{children:n.jsx(is,{credential:G})}),n.jsx("td",{className:"mono small",children:G.variable??"invalid reference"}),n.jsx("td",{children:d&&G.writable&&n.jsxs("span",{className:"row",children:[n.jsx(Ru,{credentialRef:G.ref,label:G.present?"Replace":"Set",...f&&u?{as:u}:{},onSaved:()=>g(H=>H+1)}),G.source==="vault"&&G.present&&n.jsx("button",{className:"btn btn-small",onClick:()=>K(G.ref),children:"Remove"})]})})]},G.ref))})]})}),d&&A.writable&&n.jsxs("div",{className:"row small",children:[n.jsx("input",{className:"input",value:v,onChange:G=>M(dh(G.target.value)?"":G.target.value),placeholder:"credential-ref:stripe","aria-label":"New credential reference"}),W&&n.jsx(Ru,{credentialRef:W,label:"Set value",...f&&u?{as:u}:{},onSaved:()=>(M(""),g(G=>G+1))})]})]})}function fh({title:u,path:d,as:f,development:r,canAct:m,version:g,retry:z,columns:D}){const[j,v]=B.useState(0),M=Be(()=>ne(`/services/${d}`),[g,j]),[A,Y]=B.useState(null),K=async H=>{Y(null);try{await ne(`/services/${d}/${encodeURIComponent(H)}/${z.action}`,{method:"POST",body:JSON.stringify(r?{as:f}:{})}),v(T=>T+1)}catch(T){Y(T)}},W=async()=>{Y(null);try{await ne("/services/run",{method:"POST",body:"{}"}),v(H=>H+1)}catch(H){Y(H)}},G=M.data?.items??[];return n.jsxs(le,{title:u,action:r?n.jsx("button",{className:"btn",onClick:W,children:"Run due work now"}):null,children:[A?n.jsx(Te,{error:A}):null,M.data?.replay&&!M.data.replay.enabled?n.jsx("p",{className:"muted small",children:M.data.replay.reason}):null,M.error?n.jsx(Te,{error:M.error,retry:M.reload}):M.data?G.length===0?n.jsx("p",{className:"muted small",children:"Nothing yet."}):n.jsx("div",{className:"table-wrap",children:n.jsxs("table",{className:"table",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[D.map(([H])=>n.jsx("th",{children:H},H)),n.jsx("th",{})]})}),n.jsx("tbody",{children:G.slice(0,50).map(H=>n.jsxs("tr",{children:[D.map(([T,Q])=>n.jsx("td",{children:Q(H)},T)),n.jsxs("td",{className:"row",children:[r&&H.status==="failed"&&n.jsx("button",{className:"btn btn-small",onClick:()=>Ct(`agent/new/${d==="jobs"?"diagnose-job":"diagnose-delivery"}/${encodeURIComponent(H.id)}`),children:"Diagnose"}),m&&z.when(H)&&(H.retryable??!0)&&n.jsx("button",{className:"btn btn-small",onClick:()=>K(H.id),disabled:r&&!f,children:z.label})]})]},H.id))})]})}):n.jsx(Ve,{})]})}const hh=u=>u==="completed"||u==="delivered"?"ok":u==="failed"?"bad":"warn";function cy(u){return n.jsx(fh,{...u,title:"Job runs",path:"jobs",retry:{label:"Retry",action:"retry",when:d=>d.status==="failed"},columns:[["Type",d=>n.jsx("code",{children:d.type})],["Status",d=>n.jsx($,{tone:hh(d.status),children:d.status})],["Attempts",d=>`${d.attemptCount}/${d.maxAttempts}`],["As",d=>n.jsx("span",{className:"mono small",children:d.principal??"—"})],["Last error",d=>n.jsx("span",{className:"error-text small",children:d.lastError??""})],["Created",d=>n.jsx("span",{className:"muted small",children:Ie(d.createdAt)})]]})}function uy(u){return n.jsx(fh,{...u,title:"Webhook deliveries",path:"deliveries",retry:{label:"Replay",action:"replay",when:d=>d.status==="failed"},columns:[["Event",d=>n.jsx("code",{children:d.eventType})],["To",d=>n.jsx("span",{className:"mono small",children:d.destination??d.endpointId})],["Status",d=>n.jsx($,{tone:hh(d.status),children:d.status})],["Attempts",d=>d.attemptCount],["HTTP",d=>d.lastStatusCode??""],["Last error",d=>n.jsx("span",{className:"error-text small",children:d.lastError??""})],["Created",d=>n.jsx("span",{className:"muted small",children:Ie(d.createdAt)})]]})}function ry(){rh();const{overview:u,activity:d}=wt();if(!u)return null;const f=u.capabilities??[],r=mh(d,u.recentActivity??[]).slice(0,8),m=[...u.recentErrors??[],...u.recentDenials??[]].sort((j,v)=>v.at.localeCompare(j.at)).slice(0,6),g=Object.values(u.counts??{}).reduce((j,v)=>j+Number(v),0),z=(u.services??[]).filter(j=>j.state!=="available"&&j.state!=="unavailable"),D=u.agent??{tasks:[],waiting:0,handoffs:0};return n.jsxs(n.Fragment,{children:[n.jsx(Yt,{title:u.application.name,subtitle:u.application.description??"Your application at a glance: where its state lives, what it can do, and what it has done.",actions:n.jsxs(n.Fragment,{children:[n.jsx($,{tone:u.state==="ready"?"ok":"warn",children:u.state}),u.url&&n.jsx("a",{className:"btn",href:u.url,target:"_blank",rel:"noreferrer",children:"Open app ↗"})]})}),n.jsxs("div",{className:"grid grid-4 stats",children:[n.jsx(es,{label:"Records",value:g,detail:`${u.collections.length} collection${u.collections.length===1?"":"s"}`,onClick:()=>Ct("data")}),n.jsx(es,{label:"Functions",value:u.functions.length,detail:`${u.functions.filter(j=>j.kind==="query").length} queries · ${u.functions.filter(j=>j.kind==="mutation").length} mutations`,onClick:()=>Ct("capabilities")}),n.jsx(es,{label:"Capabilities",value:f.length,detail:"published through AppPort",onClick:()=>Ct("capabilities")}),n.jsx(es,{label:"Errors",value:(u.recentErrors??[]).length,detail:`${(u.recentDenials??[]).length} recent denials`,tone:(u.recentErrors??[]).length?"bad":void 0,onClick:()=>Ct("activity")})]}),n.jsxs("div",{className:"grid grid-2",children:[n.jsxs(le,{title:"Where state lives",children:[n.jsx("p",{className:"lede",children:"One FeltDB instance serves this environment. Application functions, AppPort capabilities, AppPort Services, sessions, and this activity log all read and write it."}),n.jsxs("dl",{className:"kv",children:[n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Environment"}),n.jsxs("dd",{children:[u.environment.name," ",u.environment.production&&n.jsx($,{tone:"warn",children:"production"})]})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Storage"}),n.jsxs("dd",{children:["FeltDB ",u.instance.feltdbVersion," · ",u.instance.mode," · ",u.instance.durable?"durable":"ephemeral"]})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Location"}),n.jsx("dd",{children:n.jsx("code",{className:"path",children:u.instance.location})})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Journal"}),n.jsxs("dd",{children:["position ",u.instance.sequence]})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Opened"}),n.jsxs("dd",{children:[Ie(u.instance.openedAt)," by pid ",u.instance.pid]})]})]}),n.jsxs("div",{className:"components",children:[n.jsx("div",{className:"components-title",children:"Components using this instance"}),Object.entries(u.components??{}).map(([j,v])=>n.jsxs("div",{className:"component",children:[n.jsx("span",{className:"mono",children:j}),n.jsx("span",{className:"muted small",children:v.join(", ")})]},j))]})]}),n.jsx(le,{title:"Recent activity",action:n.jsx("a",{href:"#/activity",className:"link",children:"All activity →"}),children:r.length===0?n.jsx(Mt,{title:"Nothing has happened yet",children:"Open the app and make a change. Every query, mutation, capability call, and sign-in appears here."}):n.jsx("ul",{className:"feed",children:r.map(j=>n.jsx("li",{children:n.jsxs("a",{href:`#/activity/${j.id}`,className:"feed-row",children:[n.jsx(Ba,{outcome:j.outcome}),n.jsx("span",{className:"mono feed-name",children:j.name}),n.jsx("span",{className:"muted small",children:j.principal?.id??(j.kind==="system"?"system":"anonymous")}),n.jsxs("span",{className:"muted small",children:["via ",j.via]}),j.writes?.length?n.jsxs($,{tone:"accent",children:[j.writes.length," write",j.writes.length===1?"":"s"]}):null,n.jsx("span",{className:"muted small right",children:Ie(j.at)})]})},j.id))})})]}),u.path&&n.jsx(le,{title:"Path to production",children:n.jsx("ol",{className:"journey",children:u.path.map(j=>n.jsxs("li",{children:[n.jsx($,{tone:j.state==="done"?"ok":j.state==="todo"?"warn":"neutral",children:j.state==="done"?"done":j.state==="todo"?"to do":j.state==="not-tracked"?"not tracked":"review"}),n.jsx("strong",{children:j.step}),n.jsx("span",{className:"small",children:j.detail}),j.link&&n.jsx("a",{className:"link small",href:`#/${j.link}`,"aria-label":`Open ${j.step}`,children:"Open →"})]},j.step))})}),n.jsxs("div",{className:"grid grid-3",children:[n.jsx(le,{title:"Data",action:u.environment.production?null:n.jsx("a",{href:"#/data",className:"link",children:"Explore →"}),children:u.collections.length===0?n.jsxs(Mt,{title:"No collections",children:['Declare one with app.collection("name", ',"{ … }",")."]}):n.jsx("ul",{className:"list",children:u.collections.map(j=>n.jsx("li",{children:n.jsxs("a",{href:`#/data/${j.name}`,className:"list-row",children:[n.jsx("span",{className:"mono",children:j.name}),n.jsx("span",{className:"muted",children:u.counts?.[j.name]??0})]})},j.name))})}),n.jsx(le,{title:"Capabilities",action:n.jsx("a",{href:"#/capabilities",className:"link",children:"Inspect →"}),children:f.length===0?n.jsx(Mt,{title:"No capabilities published",children:'Add capability: "name.verb" to a query or mutation to publish it through AppPort.'}):n.jsx("ul",{className:"list",children:f.map(j=>n.jsx("li",{children:n.jsxs("a",{href:`#/capabilities/${j.name}`,className:"list-row",children:[n.jsx("span",{className:"mono",children:j.name}),n.jsx($,{tone:j.effect==="consequential"?"accent":"neutral",children:j.effect})]})},j.name))})}),n.jsx(le,{title:"Services",action:n.jsx("a",{href:"#/services",className:"link",children:"Manage →"}),children:z.length===0?n.jsxs(Mt,{title:"No services enabled",children:["Enable AppPort Services with feltkit(","{"," services: ","{"," files: true, jobs: … ","}"," ","}",")."]}):n.jsx("ul",{className:"list",children:z.map(j=>n.jsxs("li",{className:"list-row",children:[n.jsx("span",{children:j.name}),n.jsx(Hu,{service:j,compact:!0})]},j.id))})})]}),n.jsxs(le,{title:"Agent",action:n.jsx("a",{href:"#/agent",className:"link",children:"Open →"}),children:[D.waiting>0&&n.jsxs("p",{children:[n.jsxs($,{tone:"warn",children:[D.waiting," waiting for approval"]})," ",n.jsx("a",{href:"#/agent",children:"Review"})]}),D.handoffs>0&&n.jsxs("p",{className:"muted small",children:[D.handoffs," task(s) waiting for a coding agent to claim over MCP."]}),D.tasks.length===0?n.jsx("p",{className:"muted small",children:"No agent tasks yet. Diagnose a failed job from Services, or start one on the Agent screen."}):n.jsx("ul",{className:"list",children:D.tasks.map(j=>n.jsx("li",{children:n.jsxs("a",{href:`#/agent/${j.id}`,className:"list-row",children:[n.jsx("span",{children:j.objective}),n.jsx($,{tone:j.status==="completed"?"ok":j.status==="blocked"?"warn":"neutral",children:j.status})]})},j.id))})]}),m.length>0&&n.jsx(le,{title:"Recent errors and denials",action:n.jsx("a",{href:"#/activity",className:"link",children:"Investigate →"}),children:n.jsx("ul",{className:"feed",children:m.map(j=>n.jsx("li",{children:n.jsxs("a",{href:`#/activity/${j.id}`,className:"feed-row",children:[n.jsx(Ba,{outcome:j.outcome}),n.jsx("span",{className:"mono feed-name",children:j.name}),n.jsx("span",{className:"error-text small",children:j.error?.code}),n.jsx("span",{className:"small ellipsis",children:j.error?.message}),n.jsx("span",{className:"muted small right",children:Ie(j.at)})]})},j.id))})}),!u.environment.production&&n.jsx(le,{title:"Development",children:n.jsxs("dl",{className:"kv",children:[n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Runtime"}),n.jsxs("dd",{children:["started ",Ie(u.startedAt)," · functions loaded ",Ie(u.loadedAt)," · generation ",u.generation]})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Project"}),n.jsx("dd",{children:n.jsx("code",{className:"path",children:u.projectDir})})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Endpoints"}),n.jsxs("dd",{className:"mono small",children:[u.url,"/api · ",u.url,"/appport · ",u.url,"/mcp"]})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Deploy"}),n.jsxs("dd",{children:[n.jsx("code",{children:"npx feltkit deploy"})," ",n.jsx("span",{className:"muted",children:"builds, verifies the production build boots, and writes a Node/Docker artifact."})]})]})]})})]})}function es({label:u,value:d,detail:f,tone:r,onClick:m}){return n.jsxs("button",{className:`stat ${r==="bad"&&d>0?"stat-bad":""}`,onClick:m,children:[n.jsx("span",{className:"stat-label",children:u}),n.jsx("span",{className:"stat-value",children:d}),n.jsx("span",{className:"stat-detail",children:f})]})}function mh(u,d){const f=new Set;return[...u,...d].filter(r=>f.has(r.id)?!1:(f.add(r.id),!0)).sort((r,m)=>m.id.localeCompare(r.id))}function oy({collection:u}){const{version:d,overview:f}=wt(),r=Be(()=>ne("/collections"),[d]),m=r.data?.collections??[],g=m.find(D=>D.name===u)??m.find(D=>D.owner==="application")??m[0],z=!!g?.editable&&!f?.environment?.production;return n.jsxs(n.Fragment,{children:[n.jsx(Yt,{title:"Data",subtitle:n.jsx(n.Fragment,{children:"Records in this environment’s FeltDB instance. Application collections are validated by their schemas; platform collections belong to FeltKit and AppPort Services and are read-only here."})}),r.error&&!r.data?n.jsx(Te,{error:r.error,retry:r.reload}):r.data?n.jsxs("div",{className:"split",children:[n.jsx("aside",{className:"split-nav","aria-label":"Collections",children:["application","platform"].map(D=>{const j=m.filter(v=>D==="application"?v.owner==="application":v.owner!=="application");return j.length?n.jsxs("div",{className:"split-group",children:[n.jsx("div",{className:"split-title",children:D==="application"?"Application":"Platform"}),j.map(v=>n.jsxs("a",{href:`#/data/${v.name}`,className:`split-item ${g?.name===v.name?"active":""}`,children:[n.jsx("span",{className:"mono ellipsis",children:v.name}),n.jsx("span",{className:"muted small",children:v.count})]},v.name))]},D):null})}),n.jsx("section",{className:"split-main",children:g?n.jsx(dy,{collection:g,editable:z},g.name):n.jsx(Mt,{title:"No collections"})})]}):n.jsx(Ve,{})]})}function dy({collection:u,editable:d}){const{version:f}=wt(),[r,m]=B.useState(""),[g,z]=B.useState(""),[D,j]=B.useState(null),[v,M]=B.useState([]),[A,Y]=B.useState(null),[K,W]=B.useState(null),G=D?`&field=${encodeURIComponent(D.field)}&eq=${encodeURIComponent(D.value)}`:"",H=Be(()=>ne(`/collections/${encodeURIComponent(u.name)}?limit=50${G}`),[u.name,G,f]);B.useEffect(()=>{H.data&&(M(H.data.records),Y(H.data.nextCursor))},[H.data]);const T=B.useMemo(()=>{const w=u.schema?.properties?Object.keys(u.schema.properties):[],ie=[...new Set(v.flatMap(Ne=>Object.keys(Ne)))].filter(Ne=>Ne!=="id"&&Ne!=="__version");return["id",...(w.length?w:ie).slice(0,6),"__version"]},[u.schema,v]),Q=async()=>{if(!A)return;const w=await ne(`/collections/${encodeURIComponent(u.name)}?limit=50&cursor=${encodeURIComponent(A)}${G}`);M(ie=>[...ie,...w.records]),Y(w.nextCursor)};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"collection-head",children:[n.jsxs("div",{children:[n.jsx("h2",{className:"mono",children:u.name}),n.jsxs("div",{className:"muted small",children:[u.owner==="application"?"Application collection":`Owned by ${u.owner}`," · ",u.count," record",u.count===1?"":"s",u.description?` · ${u.description}`:""]})]}),n.jsxs("div",{className:"row",children:[!u.editable&&n.jsx($,{children:"read-only"}),d&&n.jsx("button",{className:"btn btn-primary",onClick:()=>W("new"),children:"New record"})]})]}),u.schema&&n.jsxs("details",{className:"schema",children:[n.jsx("summary",{children:"Schema"}),n.jsx(Rn,{schema:u.schema}),n.jsx("p",{className:"muted small",children:"Enforced by FeltKit on every write through ctx.db. FeltDB stores JSON documents and adds id and __version."})]}),n.jsxs("form",{className:"filter",onSubmit:w=>{w.preventDefault(),j(r&&g!==""?{field:r,value:g}:null)},children:[n.jsxs("select",{className:"input",value:r,onChange:w=>m(w.target.value),"aria-label":"Filter field",children:[n.jsx("option",{value:"",children:"Filter by field…"}),T.map(w=>n.jsx("option",{value:w,children:w},w))]}),n.jsx("input",{className:"input",value:g,onChange:w=>z(w.target.value),placeholder:"equals…","aria-label":"Filter value"}),n.jsx("button",{className:"btn",type:"submit",children:"Apply"}),D&&n.jsx("button",{className:"btn btn-ghost",type:"button",onClick:()=>{j(null),m(""),z("")},children:"Clear"})]}),H.error?n.jsx(Te,{error:H.error,retry:H.reload}):H.loading&&!H.data?n.jsx(Ve,{}):v.length===0?n.jsx(Mt,{title:D?"No records match":"No records yet",children:D?"Try another value.":u.owner==="application"?"Records appear here as soon as a mutation writes them.":""}):n.jsxs("div",{className:"table-wrap",children:[n.jsxs("table",{className:"table",children:[n.jsx("thead",{children:n.jsx("tr",{children:T.map(w=>n.jsx("th",{children:w},w))})}),n.jsx("tbody",{children:v.map(w=>n.jsx("tr",{onClick:()=>W(w),tabIndex:0,onKeyDown:ie=>ie.key==="Enter"&&W(w),children:T.map(ie=>n.jsx("td",{className:ie==="id"||ie==="__version"?"mono muted":"",children:n.jsx(fy,{value:w[ie]})},ie))},w.id))})]}),A&&n.jsx("button",{className:"btn more",onClick:Q,children:"Load more"})]}),K&&n.jsx(my,{collection:u,record:K==="new"?null:K,editable:d,onClose:()=>W(null),onSaved:()=>(W(null),H.reload())})]})}function fy({value:u}){if(u===void 0)return n.jsx("span",{className:"muted",children:"—"});if(typeof u=="boolean")return n.jsx($,{tone:u?"ok":"neutral",children:String(u)});if(typeof u=="number"&&u>1e12&&u<1e13)return n.jsx("span",{title:String(u),children:new Date(u).toLocaleString()});if(typeof u=="object")return n.jsx("span",{className:"mono small",children:JSON.stringify(u).slice(0,80)});const d=String(u);return n.jsx("span",{title:d.length>60?d:void 0,children:d.length>60?`${d.slice(0,60)}…`:d})}function hy(u){const d={};for(const[f,r]of Object.entries(u?.properties??{}))(u.required??[]).includes(f)&&(d[f]=r.type==="number"||r.type==="integer"?/At$/.test(f)?Date.now():0:r.type==="boolean"?!1:"");return d}function my({collection:u,record:d,editable:f,onClose:r,onSaved:m}){const g=d?Object.fromEntries(Object.entries(d).filter(([H])=>H!=="id"&&H!=="__version")):hy(u.schema),[z,D]=B.useState(JSON.stringify(g,null,2)),[j,v]=B.useState(null),[M,A]=B.useState(!1),[Y,K]=B.useState(!1),W=async()=>{v(null);let H;try{H=JSON.parse(z)}catch{v({code:"INVALID_JSON",message:"That is not valid JSON."});return}A(!0);try{await ne(d?`/collections/${u.name}/${encodeURIComponent(d.id)}`:`/collections/${u.name}`,{method:d?"PATCH":"POST",body:JSON.stringify({record:H})}),m()}catch(T){v(T)}finally{A(!1)}},G=async()=>{A(!0);try{await ne(`/collections/${u.name}/${encodeURIComponent(d.id)}`,{method:"DELETE"}),m()}catch(H){v(H),A(!1)}};return n.jsxs(oh,{title:d?`${u.name} / ${d.id}`:`New ${u.name} record`,onClose:r,children:[d&&n.jsxs("p",{className:"muted small",children:["Version ",d.__version,". Find what wrote it in ",n.jsx("a",{href:"#/activity",children:"Activity"}),"."]}),f?n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"callout",children:["Development edit: validated against the schema and committed atomically, recorded in Activity as ",n.jsx("code",{children:"admin"})," by ",n.jsx("code",{children:"dashboard"}),". Function access rules do not apply to these edits; this tool is not available in production."]}),n.jsx("textarea",{className:"code-input",value:z,onChange:H=>D(H.target.value),rows:14,spellCheck:!1,"aria-label":"Record JSON"}),j?n.jsx(Te,{error:j}):null,n.jsxs("div",{className:"row between",children:[d?Y?n.jsxs("span",{className:"row",children:[n.jsx("button",{className:"btn btn-danger",onClick:G,disabled:M,children:"Delete permanently"}),n.jsx("button",{className:"btn btn-ghost",onClick:()=>K(!1),children:"Cancel"})]}):n.jsx("button",{className:"btn btn-ghost danger",onClick:()=>K(!0),children:"Delete…"}):n.jsx("span",{}),n.jsx("button",{className:"btn btn-primary",onClick:W,disabled:M,children:d?"Save changes":"Create record"})]})]}):n.jsx(Hn,{value:d,max:2e4}),d&&u.owner!=="application"&&n.jsxs("p",{className:"muted small",children:[u.owner," owns this collection. Change it through its service or capability, so its authorization and audit trail apply."," ",n.jsx("a",{href:"#/services",onClick:()=>Ct("services"),children:"Services →"})]})]})}const vy=(u,d)=>u==="*"||u===d||u.endsWith(".*")&&d.startsWith(u.slice(0,-1));function yy(u,d){return Object.entries(u??{}).filter(([,f])=>f.some(r=>vy(r,d))).map(([f])=>f)}function vh(u){if(!u||u.type!=="object")return{};const d={};for(const f of u.required??[]){const r=u.properties?.[f]??{};d[f]=r.type==="boolean"?!0:r.type==="number"||r.type==="integer"?0:""}return d}function py({selected:u}){const{version:d,overview:f}=wt(),r=Be(()=>ne("/capabilities"),[d]),[m,g]=B.useState(u?.includes(":")?"functions":"capabilities"),z=r.data?.capabilities??[],D=f?.functions??[],j=m==="capabilities"?z.find(v=>v.name===u)??z[0]:D.find(v=>v.name===u)??D[0];return n.jsxs(n.Fragment,{children:[n.jsx(Yt,{title:"Capabilities",subtitle:"What this application can do. Capabilities are published through AppPort — discoverable by other applications and agents (MCP) — and every invocation passes the same authorization as any other caller."}),n.jsxs("div",{className:"tabs",role:"tablist",children:[n.jsxs("button",{role:"tab","aria-selected":m==="capabilities",className:m==="capabilities"?"active":"",onClick:()=>g("capabilities"),children:["AppPort capabilities ",n.jsx("span",{className:"muted",children:z.length})]}),n.jsxs("button",{role:"tab","aria-selected":m==="functions",className:m==="functions"?"active":"",onClick:()=>g("functions"),children:["All functions ",n.jsx("span",{className:"muted",children:D.length})]})]}),r.error&&!r.data?n.jsx(Te,{error:r.error,retry:r.reload}):r.data?n.jsxs("div",{className:"split",children:[n.jsxs("aside",{className:"split-nav",children:[(m==="capabilities"?z:D).map(v=>n.jsxs("a",{href:`#/capabilities/${v.name}`,className:`split-item ${j?.name===v.name?"active":""}`,children:[n.jsx("span",{className:"mono ellipsis",children:v.name}),m==="functions"?n.jsx($,{tone:v.kind==="query"?"info":"accent",children:v.kind}):n.jsxs("span",{className:"muted small",children:["v",v.version]})]},v.name)),m==="capabilities"&&z.length===0&&n.jsx("p",{className:"muted small pad",children:"None published yet."})]}),n.jsx("section",{className:"split-main",children:j?m==="capabilities"?n.jsx(jy,{capability:j,roles:f?.roles??{},mcpTools:r.data.mcp?.tools??[],devUsers:f?.devUsers??[],development:f?.environment?.development},j.name):n.jsx(xy,{fn:j,roles:f?.roles??{},devUsers:f?.devUsers??[],development:f?.environment?.development},j.name):n.jsx(Mt,{title:m==="capabilities"?"No capabilities":"No functions",children:m==="capabilities"?'Publish a query or mutation with capability: { name: "tasks.complete", description: "…" } and a returns schema.':"Export app.query() or app.mutation() from a module in feltkit/."})})]}):n.jsx(Ve,{})]})}function yh({required:u,roles:d}){return u.length?n.jsx("span",{children:u.map(f=>n.jsxs("span",{children:[n.jsx("code",{children:f})," ",n.jsxs("span",{className:"muted",children:["— granted to ",yy(d,f).join(", ")||"no role"]})]},f))}):n.jsx("span",{children:"any signed-in principal"})}function jy({capability:u,roles:d,mcpTools:f,devUsers:r,development:m}){const g=f.find(z=>z.replace(/_/g,".").includes(u.name))??null;return n.jsxs("div",{className:"stack-lg",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"row",children:[n.jsx("h2",{className:"mono",children:u.name}),n.jsxs($,{children:["v",u.version]}),n.jsx($,{tone:u.effect==="consequential"?"accent":"info",children:u.effect})]}),n.jsx("p",{children:u.description??n.jsx("span",{className:"muted",children:"No description. Add one so agents and other applications know what this does."})})]}),n.jsxs(le,{title:"Contract",children:[n.jsxs("dl",{className:"kv",children:[n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Requires"}),n.jsx("dd",{children:n.jsx(yh,{required:u.authorization,roles:d})})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Implemented by"}),n.jsx("dd",{children:u.function?n.jsx("a",{href:`#/capabilities/${u.function.name}`,className:"mono",children:u.function.name}):"—"})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Services used"}),n.jsx("dd",{children:u.services?.length?u.services.map(z=>n.jsx($,{children:z},z)):n.jsx("span",{className:"muted",children:"none observed"})})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Idempotency"}),n.jsx("dd",{children:u.idempotency??"—"})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Reachable at"}),n.jsxs("dd",{className:"small",children:[n.jsx("code",{children:"POST /appport"}),g&&n.jsxs(n.Fragment,{children:[" ","· MCP tool ",n.jsx("code",{children:g})]})]})]})]}),n.jsxs("div",{className:"grid grid-2",children:[n.jsxs("div",{children:[n.jsx("div",{className:"label",children:"Input"}),n.jsx(Rn,{schema:u.input})]}),n.jsxs("div",{children:[n.jsx("div",{className:"label",children:"Output"}),n.jsx(Rn,{schema:u.output})]})]})]}),n.jsx(le,{title:"Recent invocations",children:u.recent?.length?n.jsx("ul",{className:"feed",children:u.recent.map(z=>n.jsx("li",{children:n.jsxs("a",{href:`#/activity/${z.id}`,className:"feed-row",children:[n.jsx(Ba,{outcome:z.outcome}),n.jsx("span",{className:"small",children:z.principal??"anonymous"}),n.jsxs("span",{className:"muted small",children:["via ",z.via]}),z.error&&n.jsx("span",{className:"error-text small",children:z.error.code}),n.jsxs("span",{className:"muted small right",children:[z.durationMs,"ms · ",Ie(z.at)]})]})},z.id))}):n.jsx("p",{className:"muted",children:"Not invoked through AppPort yet."})}),m&&n.jsx(ph,{title:"Invoke through AppPort",note:"Runs through AppPort’s dispatch pipeline with a short-lived session for the identity you choose. The same authorization applies as for any agent or application.",example:vh(u.input),devUsers:r,run:(z,D)=>ne("/capabilities/invoke",{method:"POST",body:JSON.stringify({capability:u.name,version:u.version,input:z,as:D})})})]})}function xy({fn:u,roles:d,devUsers:f,development:r}){const m=u.access==="public"||u.access==="authenticated"?[]:[u.access];return n.jsxs("div",{className:"stack-lg",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"row",children:[n.jsx("h2",{className:"mono",children:u.name}),n.jsx($,{tone:u.kind==="query"?"info":"accent",children:u.kind}),u.capability&&n.jsxs($,{tone:"ok",children:["→ ",u.capability.name]})]}),n.jsx("p",{className:"muted",children:u.description??(u.kind==="query"?"Read-only: its database handle cannot write.":"All writes commit in one FeltDB transaction, or none do.")})]}),n.jsxs(le,{title:"Contract",children:[n.jsxs("dl",{className:"kv",children:[n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Access"}),n.jsx("dd",{children:u.access==="public"?"anyone, including anonymous callers":n.jsx(yh,{required:m,roles:d})})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Endpoint"}),n.jsx("dd",{children:n.jsxs("code",{children:["POST /api/",u.kind,"/",u.name]})})]})]}),n.jsxs("div",{className:"grid grid-2",children:[n.jsxs("div",{children:[n.jsx("div",{className:"label",children:"Arguments"}),n.jsx(Rn,{schema:u.args})]}),n.jsxs("div",{children:[n.jsx("div",{className:"label",children:"Returns"}),u.returns?n.jsx(Rn,{schema:u.returns}):n.jsx("span",{className:"muted",children:"not declared"})]})]})]}),r&&n.jsx(ph,{title:`Run ${u.kind}`,note:"Runs as the identity you choose, through the same validation and authorization as a request from the app.",example:vh(u.args),devUsers:f,run:(g,z)=>ne("/functions/run",{method:"POST",body:JSON.stringify({name:u.name,args:g,as:z})})})]})}function ph({title:u,note:d,example:f,devUsers:r,run:m}){const[g,z]=B.useState(JSON.stringify(f,null,2)),[D,j]=B.useState(r[0]?.id??"anonymous"),[v,M]=B.useState(null),[A,Y]=B.useState(null),[K,W]=B.useState(!1),G=B.useMemo(()=>v&&v.ok===!0,[v]);return n.jsxs(le,{title:u,children:[n.jsx("p",{className:"muted small",children:d}),n.jsx("div",{className:"row",children:n.jsxs("label",{className:"field-inline",children:[n.jsx("span",{children:"Act as"}),n.jsxs("select",{className:"input",value:D,onChange:H=>j(H.target.value),children:[r.map(H=>n.jsxs("option",{value:H.id,children:[H.name??H.id," · ",H.roles.join(", ")]},H.id)),n.jsx("option",{value:"anonymous",children:"anonymous"})]})]})}),n.jsx("textarea",{className:"code-input",rows:6,value:g,onChange:H=>z(H.target.value),spellCheck:!1,"aria-label":"Input JSON"}),n.jsxs("div",{className:"row between",children:[n.jsx("span",{className:"muted small",children:"Input is validated against the contract before authorization runs."}),n.jsx("button",{className:"btn btn-primary",disabled:K,onClick:async()=>{Y(null),M(null);let H;try{H=JSON.parse(g||"{}")}catch{Y({code:"INVALID_JSON",message:"That is not valid JSON."});return}W(!0);try{M(await m(H,D))}catch(T){Y(T)}finally{W(!1)}},children:K?"Running…":"Run"})]}),A?n.jsx(Te,{error:A}):null,v&&n.jsxs("div",{className:`result ${G?"result-ok":"result-bad"}`,children:[n.jsxs("div",{className:"row",children:[n.jsx(Ba,{outcome:G?"success":v.error?.code==="FORBIDDEN"||v.error?.code==="UNAUTHORIZED"?"denied":"error"}),v.requestId&&n.jsx("span",{className:"muted small mono",children:v.requestId})]}),n.jsx(Hn,{value:G?v.output??v.value:v.error})]})]})}const gy=["","query","mutation","capability","integration","agent","service","auth","admin","system"],by=["","success","error","denied"];function Sy({selected:u}){rh(1e4);const{activity:d}=wt(),[f,r]=B.useState(""),[m,g]=B.useState(""),[z,D]=B.useState(!1),j=Be(()=>ne(`/activity?limit=200${f?`&kind=${f}`:""}${m?`&outcome=${m}`:""}`),[f,m]),v=B.useMemo(()=>{const M=mh(d.filter(A=>(!f||A.kind===f)&&(!m||A.outcome===m)),j.data?.entries??[]);return z?M.filter(A=>A.kind!=="query"):M},[d,j.data,f,m,z]);return n.jsxs(n.Fragment,{children:[n.jsx(Yt,{title:"Activity",subtitle:"What actually happened, from the runtime’s own records: who called what, through which interface, the authority decision, and the writes FeltDB committed."}),n.jsxs("div",{className:"filter",children:[n.jsx("select",{className:"input",value:f,onChange:M=>r(M.target.value),"aria-label":"Kind",children:gy.map(M=>n.jsx("option",{value:M,children:M||"All kinds"},M))}),n.jsx("select",{className:"input",value:m,onChange:M=>g(M.target.value),"aria-label":"Outcome",children:by.map(M=>n.jsx("option",{value:M,children:M||"All outcomes"},M))}),n.jsxs("label",{className:"check",children:[n.jsx("input",{type:"checkbox",checked:z,onChange:M=>D(M.target.checked)})," Hide queries"]}),n.jsx("span",{className:"muted small right",children:"Live · newest first"})]}),j.error&&!j.data?n.jsx(Te,{error:j.error,retry:j.reload}):j.data?v.length===0?n.jsx(Mt,{title:"No activity matches",children:"Use the app, invoke a capability, or run a function from Capabilities."}):n.jsx("div",{className:"table-wrap",children:n.jsxs("table",{className:"table activity",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{children:"When"}),n.jsx("th",{children:"Outcome"}),n.jsx("th",{children:"Kind"}),n.jsx("th",{children:"Name"}),n.jsx("th",{children:"Principal"}),n.jsx("th",{children:"Via"}),n.jsx("th",{children:"Writes"}),n.jsx("th",{className:"num",children:"ms"})]})}),n.jsx("tbody",{children:v.map(M=>n.jsxs("tr",{onClick:()=>Ct(`activity/${M.id}`),tabIndex:0,onKeyDown:A=>A.key==="Enter"&&Ct(`activity/${M.id}`),className:u===M.id?"selected":"",children:[n.jsx("td",{className:"muted small nowrap",title:M.at,children:Ie(M.at)}),n.jsx("td",{children:n.jsx(Ba,{outcome:M.outcome})}),n.jsx("td",{className:"small",children:M.kind}),n.jsxs("td",{className:"mono",children:[M.name,M.error&&n.jsxs("span",{className:"error-text small",children:[" ",M.error.code]})]}),n.jsx("td",{className:"small",children:M.principal?`${M.principal.id}`:n.jsx("span",{className:"muted",children:M.kind==="system"?"—":"anonymous"})}),n.jsx("td",{className:"small",children:M.via}),n.jsx("td",{className:"small",children:M.writes?.length?M.writes.length:n.jsx("span",{className:"muted",children:"—"})}),n.jsx("td",{className:"num small muted",children:M.durationMs})]},M.id))})]})}):n.jsx(Ve,{}),u&&n.jsx(Ny,{id:u,onClose:()=>Ct("activity")})]})}function Ny({id:u,onClose:d}){const f=Be(()=>ne(`/activity/${encodeURIComponent(u)}`),[u]),r=f.data?.entry,m=f.data?.serviceEvidence??[];return n.jsx(oh,{title:r?r.name:"Activity",onClose:d,children:f.error?n.jsx(Te,{error:f.error}):r?n.jsxs("div",{className:"stack-lg",children:[n.jsx(Uu,{rows:[["Outcome",n.jsx(Ba,{outcome:r.outcome},"o")],["When",`${new Date(r.at).toLocaleString()} (${Ie(r.at)})`],["Kind",r.kind],["Via",r.via],["Principal",r.principal?`${r.principal.id} (${r.principal.type}; roles: ${r.principal.roles.join(", ")||"none"})`:"anonymous"],...r.capability?[["AppPort capability",`${r.capability.name}@${r.capability.version}`]]:[],["Request",n.jsx("code",{children:r.requestId},"r")],["Duration",`${r.durationMs} ms`],...r.argKeys?[["Arguments",r.argKeys.length?r.argKeys.join(", "):"none"]]:[]]}),r.error&&n.jsxs("section",{children:[n.jsx("h3",{children:"Error"}),n.jsxs("div",{className:"error-box",children:[n.jsx("strong",{children:r.error.code})," ",r.error.message]})]}),r.authority&&n.jsxs("section",{children:[n.jsx("h3",{children:"Authority"}),n.jsx(Uu,{rows:[["Decision",r.authority.allowed?n.jsx($,{tone:"ok",children:"allowed"},"a"):n.jsx($,{tone:"warn",children:"denied"},"d")],["Required",r.authority.required?n.jsx("code",{children:r.authority.required},"q"):"an authenticated principal"],...r.authority.reason?[["Reason",r.authority.reason]]:[],["Decision id",n.jsx("code",{children:r.authority.decisionId},"i")],...r.authority.appportDecisionId?[["AppPort decision",n.jsx("code",{children:r.authority.appportDecisionId},"ap")]]:[],["Policy version",n.jsx("code",{children:r.authority.policyVersion},"p")]]})]}),n.jsxs("section",{children:[n.jsx("h3",{children:"State changes"}),r.writes?.length?n.jsxs(n.Fragment,{children:[n.jsxs("p",{className:"muted small",children:["Committed by FeltDB in one transaction ",n.jsx("code",{children:r.transactionId}),r.commitRevision!==void 0?` at revision ${r.commitRevision}`:"","."]}),n.jsxs("table",{className:"table compact",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{children:"Op"}),n.jsx("th",{children:"Collection"}),n.jsx("th",{children:"Record"}),n.jsx("th",{children:"Expected version"})]})}),n.jsx("tbody",{children:r.writes.map((g,z)=>n.jsxs("tr",{children:[n.jsx("td",{children:n.jsx($,{tone:g.op==="delete"?"bad":g.op==="insert"?"ok":"accent",children:g.op})}),n.jsx("td",{className:"mono",children:g.collection}),n.jsx("td",{className:"mono small",children:g.op==="delete"?g.id:n.jsx("a",{href:`#/data/${g.collection}`,children:g.id})}),n.jsx("td",{className:"small",children:g.expectedVersion??"— (create)"})]},z))})]})]}):n.jsx("p",{className:"muted",children:r.kind==="query"?"Queries cannot write.":r.outcome!=="success"?"Nothing was written through ctx.db: a failed mutation commits nothing.":r.services?.length?"No application records changed through ctx.db. Service effects commit separately; see the evidence below.":"No application records changed."}),r.reads?.length?n.jsxs("p",{className:"muted small",children:["Read: ",r.reads.join(", ")]}):null]}),(m.length>0||r.services?.length)&&n.jsxs("section",{children:[n.jsx("h3",{children:"Service evidence"}),n.jsxs("p",{className:"muted small",children:["Recorded by AppPort Services’ gateway in the same FeltDB instance.",f.data?.serviceEvidenceState==="started"?" An effect has no recorded completion: its outcome is unknown, not failed.":"",f.data?.serviceEvidenceTruncated?" More records exist than are shown.":""]}),m.map(g=>n.jsxs("div",{className:"evidence",children:[n.jsxs("div",{className:"row",children:[n.jsx($,{tone:g.outcome==="succeeded"?"ok":g.outcome==="denied"?"warn":g.outcome==="started"?"neutral":"bad",children:g.outcome}),n.jsx("span",{className:"mono",children:g.capability}),n.jsx("span",{className:"muted small",children:g.service})]}),n.jsxs("div",{className:"muted small",children:["decision ",g.decision,g.decisionId?` · ${g.decisionId}`:""," · ",g.resource]})]},g.id))]}),r.detail&&n.jsxs("section",{children:[n.jsx("h3",{children:"Detail"}),n.jsx(Hn,{value:r.detail})]})]}):n.jsx(Ve,{})})}function Ay(){const{version:u,overview:d}=wt(),f=Be(()=>ne("/environments"),[]),r=Be(()=>ne("/sessions"),[u]),m=d?.environment?.development;return n.jsxs(n.Fragment,{children:[n.jsx(Yt,{title:"Settings",subtitle:"Environments, access policy, and sessions. Configuration lives in feltkit/app.ts; this page shows what the runtime is actually using."}),n.jsxs(le,{title:"Environments",children:[n.jsx("p",{className:"muted small",children:"Each environment has its own FeltDB instance. They never share state; FeltKit refuses to open two environments on the same location."}),f.error?n.jsx(Te,{error:f.error}):f.data?n.jsxs("table",{className:"table",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{children:"Environment"}),n.jsx("th",{children:"Storage"}),n.jsx("th",{children:"Location"}),n.jsx("th",{children:"Instance"})]})}),n.jsx("tbody",{children:f.data.environments.map(g=>n.jsxs("tr",{className:g.active?"selected":"",children:[n.jsxs("td",{children:[n.jsx("strong",{children:g.name})," ",g.active&&n.jsx($,{tone:"ok",children:"active"})]}),n.jsx("td",{children:g.storage}),n.jsx("td",{className:"mono small",children:g.location}),n.jsx("td",{className:"mono small muted",children:g.instanceId??"not open here"})]},g.name))})]}):n.jsx(Ve,{}),n.jsxs("p",{className:"muted small",children:["Production uses ",n.jsx("code",{children:"FELTDB_URL"})," + ",n.jsx("code",{children:"FELTDB_TOKEN"})," when set (a FeltDB server), otherwise ",n.jsx("code",{children:"FELTKIT_STATE_DIR"})," or ",n.jsx("code",{children:".feltkit/production/state"}),"."]})]}),n.jsxs("div",{className:"grid grid-2",children:[n.jsxs(le,{title:"Access policy",action:n.jsxs("code",{className:"muted small",children:["policy ",d?.policyVersion]}),children:[n.jsxs("table",{className:"table compact",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{children:"Role"}),n.jsx("th",{children:"Permissions"})]})}),n.jsx("tbody",{children:Object.entries(d?.roles??{}).map(([g,z])=>n.jsxs("tr",{children:[n.jsx("td",{children:n.jsx("strong",{children:g})}),n.jsx("td",{children:z.map(D=>n.jsx("code",{className:"chip",children:D},D))})]},g))})]}),n.jsx("p",{className:"muted small",children:"Enforced through AppPort’s authorizer on functions, capabilities, and services alike. Edit roles in feltkit/app.ts."})]}),n.jsx(le,{title:"Development identities",children:m?(d?.devUsers??[]).length?n.jsx("ul",{className:"list",children:d.devUsers.map(g=>n.jsxs("li",{className:"list-row",children:[n.jsxs("span",{children:[n.jsx("strong",{children:g.name??g.id})," ",n.jsx("span",{className:"muted mono small",children:g.id})]}),n.jsx("span",{children:g.roles.map(z=>n.jsx($,{children:z},z))})]},g.id))}):n.jsxs("p",{className:"muted",children:["None declared. Add dev: ","{ users: [...] }"," to feltkit(","{ … }",")."]}):n.jsx("p",{className:"muted",children:"Development sign-in is disabled in this environment."})})]}),n.jsxs(le,{title:"Sessions",action:n.jsx("span",{className:"muted small",children:"tokens are stored only as SHA-256 digests"}),children:[m&&n.jsx(Ey,{roles:Object.keys(d?.roles??{}),onIssued:r.reload}),r.error?n.jsx(Te,{error:r.error}):r.data?r.data.sessions.length===0?n.jsx("p",{className:"muted",children:"No active sessions."}):n.jsxs("table",{className:"table",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{children:"Ref"}),n.jsx("th",{children:"Principal"}),n.jsx("th",{children:"Roles"}),n.jsx("th",{children:"Kind"}),n.jsx("th",{children:"Created"}),n.jsx("th",{children:"Expires"}),n.jsx("th",{})]})}),n.jsx("tbody",{children:r.data.sessions.map(g=>n.jsxs("tr",{children:[n.jsx("td",{className:"mono small muted",children:g.ref}),n.jsxs("td",{children:[g.principal?.id," ",n.jsx("span",{className:"muted small",children:g.principal?.type})]}),n.jsx("td",{className:"small",children:g.principal?.roles?.join(", ")}),n.jsx("td",{className:"small",children:g.kind}),n.jsx("td",{className:"small muted",children:Ie(g.createdAt)}),n.jsx("td",{className:"small muted",children:g.expiresAt?new Date(g.expiresAt).toLocaleString():"never"}),n.jsx("td",{children:n.jsx("button",{className:"btn btn-small btn-ghost danger",onClick:()=>ne(`/sessions/${g.ref}`,{method:"DELETE"}).then(r.reload,r.reload),children:"Revoke"})})]},g.ref))})]}):n.jsx(Ve,{})]})]})}function Ey({roles:u,onIssued:d}){const[f,r]=B.useState("triage-agent"),[m,g]=B.useState(u.includes("agent")?"agent":u[0]??""),[z,D]=B.useState("agent"),[j,v]=B.useState(null),[M,A]=B.useState(null);return n.jsxs("div",{className:"issue",children:[n.jsxs("form",{className:"row wrap",onSubmit:async Y=>{Y.preventDefault(),A(null);try{const K=await ne("/sessions",{method:"POST",body:JSON.stringify({principal:{id:f,type:z,roles:[m]},label:"issued from the dashboard",ttlMs:864e5})});v(K.token),d()}catch(K){A(K)}},children:[n.jsx("input",{className:"input",value:f,onChange:Y=>r(Y.target.value),"aria-label":"Principal id",placeholder:"principal id"}),n.jsxs("select",{className:"input",value:z,onChange:Y=>D(Y.target.value),"aria-label":"Principal type",children:[n.jsx("option",{value:"agent",children:"agent"}),n.jsx("option",{value:"service",children:"service"}),n.jsx("option",{value:"user",children:"user"})]}),n.jsx("select",{className:"input",value:m,onChange:Y=>g(Y.target.value),"aria-label":"Role",children:u.map(Y=>n.jsx("option",{value:Y,children:Y},Y))}),n.jsx("button",{className:"btn btn-primary",type:"submit",disabled:!f||!m,children:"Issue 24-hour session"})]}),M?n.jsx(Te,{error:M}):null,j&&n.jsxs("div",{className:"callout",children:[n.jsxs("div",{className:"row between",children:[n.jsx("strong",{children:"Shown once."})," ",n.jsx(ty,{text:j})]}),n.jsx("code",{className:"token",children:j}),n.jsxs("div",{className:"muted small",children:["Agents: connect an MCP client to ",n.jsxs("code",{children:[location.origin,"/mcp"]})," with ",n.jsx("code",{children:"Authorization: Bearer <token>"}),". It sees only what this role allows."]})]})]})}function Ty(){const u=Be(()=>ne("/projects"),[]),d=u.data?.projects??[];return n.jsxs(n.Fragment,{children:[n.jsx(Yt,{title:"Projects",subtitle:"FeltKit applications this machine has run. Each has its own environments and FeltDB instances."}),u.error?n.jsx(Te,{error:u.error,retry:u.reload}):u.data?d.length===0?n.jsx(le,{children:n.jsxs(Mt,{title:"Only this project so far",children:["Create another with ",n.jsx("code",{children:"npm create feltkit@latest my-app"}),"."]})}):n.jsx("div",{className:"grid grid-2",children:d.map(f=>n.jsxs(le,{className:f.path===u.data.current?"card-current":"",children:[n.jsxs("div",{className:"row between",children:[n.jsx("h2",{children:f.name}),f.path===u.data.current?n.jsx($,{tone:"ok",children:"this dashboard"}):f.running?n.jsx($,{tone:"ok",children:"running"}):f.exists?n.jsx($,{children:"stopped"}):n.jsx($,{tone:"bad",children:"missing"})]}),n.jsx("code",{className:"path",children:f.path}),n.jsxs("div",{className:"muted small",children:["last run ",Ie(f.lastRunAt)," · ",f.lastEnvironment]}),n.jsxs("div",{className:"row",children:[f.running&&f.url&&f.path!==u.data.current&&n.jsx("a",{className:"btn btn-small",href:f.url,target:"_blank",rel:"noreferrer",children:"Open app ↗"}),!f.running&&f.exists&&n.jsxs("span",{className:"muted small",children:["Start it with ",n.jsx("code",{children:"npm run dev"})," in its directory."]})]})]},f.path))}):n.jsx(Ve,{}),n.jsx(le,{title:"Start a new application",children:n.jsx("pre",{className:"json",children:`npm create feltkit@latest my-app
|
|
13
|
+
cd my-app
|
|
14
|
+
npm install
|
|
15
|
+
npm run dev`})})]})}const Cu=[{id:"inspect-app",label:"Inspect the application",help:"Capabilities you may use, unhealthy services, recent errors and denials."},{id:"diagnose-job",label:"Diagnose a job",help:"Read the job, its runs and error; propose a retry when it can help.",target:"Job id"},{id:"diagnose-delivery",label:"Diagnose a webhook delivery",help:"Read the delivery, endpoint, and signing credential; propose a replay when it can help.",target:"Delivery id"},{id:"invoke",label:"Run a capability",help:"One capability: observations run now, consequential ones wait for approval."},{id:"handoff",label:"Hand off to a coding agent",help:"Open-ended work. A coding agent claims it over MCP (feltkit_agent_claim) and proposes actions; you approve them here."}],qu=u=>u==="completed"?"ok":u==="cancelled"?"neutral":u==="blocked"?"warn":"info";function zy({rest:u}){const{version:d}=wt(),f=Be(()=>ne("/overview"),[d]),r=f.data?.devUsers??[],m=!!f.data?.environment?.development,{canAct:g,actor:z}=ns(f.data),[D,j]=B.useState("");B.useEffect(()=>{!D&&r[0]&&j(r[0].id)},[r,D]);const v=Be(()=>ne(`/agent${D?`?as=${encodeURIComponent(D)}`:""}`),[d,D]),M=u[0]&&u[0]!=="new"?u[0]:null;return n.jsxs(n.Fragment,{children:[n.jsx(Yt,{title:"Agent",subtitle:"FeltDB’s agent runtime operating this application through its AppPort capabilities and AppPort Services. Every action runs as the task owner; consequential ones wait for a person who may perform them.",actions:r.length?n.jsxs("label",{className:"row small",children:[n.jsx("span",{className:"muted",children:"Act as"}),n.jsx("select",{value:D,onChange:A=>j(A.target.value),"aria-label":"Identity for agent actions",children:r.map(A=>n.jsxs("option",{value:A.id,children:[A.name??A.id," (",A.roles.join(", "),")"]},A.id))})]}):null}),v.error&&!v.data?n.jsx(Te,{error:v.error,retry:v.reload}):v.data?M?n.jsx(Dy,{taskId:M,as:D,development:m,canAct:g,actor:m?D:z??"",version:d}):n.jsxs(n.Fragment,{children:[m&&r.length>0&&n.jsx(Oy,{as:D,tools:v.data.tools,initial:u[0]==="new"?{playbook:u[1],target:u[2]}:void 0}),!m&&n.jsx(le,{children:n.jsxs("p",{className:"muted small",children:["Production: tasks come from agents (over MCP) and playbooks. ",g?"You can approve, reject, retry, and settle their actions; each runs as the task owner and is recorded as yours.":"You can inspect them; acting needs feltkit.operations.write."]})}),v.data.handoffs.length>0&&n.jsxs(le,{title:"Waiting for a coding agent",children:[n.jsx("ul",{className:"list",children:v.data.handoffs.map(A=>n.jsxs("li",{className:"list-row",children:[n.jsx("a",{href:`#/agent/${A.taskId}`,children:A.objective}),n.jsxs("span",{className:"muted small mono",children:[A.handoffId," · from ",A.from]})]},A.handoffId))}),n.jsxs("p",{className:"muted small",children:["A coding agent with an agent session claims these with the MCP tool ",n.jsx("code",{children:"feltkit_agent_claim"}),"."]})]}),n.jsx(le,{title:"Tasks",children:v.data.tasks.length===0?n.jsx(Mt,{title:"No tasks yet",children:"Start one above, or from a failed job or delivery on the Services screen."}):n.jsx("div",{className:"table-wrap",children:n.jsxs("table",{className:"table",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{children:"Objective"}),n.jsx("th",{children:"Status"}),n.jsx("th",{children:"FeltDB execution"}),n.jsx("th",{children:"Owner"}),n.jsx("th",{children:"Waiting"}),n.jsx("th",{children:"Updated"})]})}),n.jsx("tbody",{children:v.data.tasks.map(A=>n.jsxs("tr",{onClick:()=>Ct(`agent/${A.task.task_id}`),children:[n.jsx("td",{children:A.task.objective}),n.jsx("td",{children:n.jsx($,{tone:qu(A.task.status),children:A.task.status})}),n.jsx("td",{className:"mono small",children:A.execution?.status??"—"}),n.jsx("td",{className:"mono small",children:A.task.owner}),n.jsx("td",{children:A.pending?n.jsxs($,{tone:"warn",children:[A.pending," approval",A.pending>1?"s":""]}):""}),n.jsx("td",{className:"muted small",children:Ie(A.task.updated_at)})]},A.task.task_id))})]})})})]}):n.jsx(Ve,{})]})}function Oy({as:u,tools:d,initial:f}){const[r,m]=B.useState(f?.playbook&&Cu.some(w=>w.id===f.playbook)?f.playbook:"inspect-app"),[g,z]=B.useState(f?.target??""),[D,j]=B.useState(""),[v,M]=B.useState(""),[A,Y]=B.useState("{}"),[K,W]=B.useState(!1),[G,H]=B.useState(null),T=Cu.find(w=>w.id===r),Q=async()=>{H(null),W(!0);try{let w={};if(r==="invoke")try{w=JSON.parse(A||"{}")}catch{throw new Error("Input is not valid JSON.")}const ie=await ne("/agent/tasks",{method:"POST",body:JSON.stringify({as:u,playbook:r,objective:D||(T.target?`${T.label}: ${g}`:r==="invoke"?`Run ${v}`:T.label),...T.target?{target:g}:{},...r==="invoke"?{capability:v,args:w}:{}})});Ct(`agent/${ie.task.task_id}`)}catch(w){H(w)}finally{W(!1)}};return n.jsxs(le,{title:"New task",children:[G?n.jsx(Te,{error:G}):null,n.jsxs("div",{className:"form",children:[n.jsxs("label",{children:[n.jsx("span",{children:"What"}),n.jsx("select",{value:r,onChange:w=>m(w.target.value),children:Cu.map(w=>n.jsx("option",{value:w.id,children:w.label},w.id))})]}),n.jsx("p",{className:"muted small",children:T.help}),T.target&&n.jsxs("label",{children:[n.jsx("span",{children:T.target}),n.jsx("input",{className:"input mono",value:g,onChange:w=>z(w.target.value)})]}),r==="invoke"&&n.jsxs(n.Fragment,{children:[n.jsxs("label",{children:[n.jsx("span",{children:"Capability"}),n.jsxs("select",{value:v,onChange:w=>M(w.target.value),children:[n.jsx("option",{value:"",children:"Choose…"}),d.map(w=>n.jsxs("option",{value:w.name,disabled:!w.allowed,children:[w.name," — ",w.effect==="consequential"?"needs approval":"observation",w.allowed?"":" (not permitted for this identity)"]},w.name))]})]}),n.jsxs("label",{children:[n.jsx("span",{children:"Input (JSON)"}),n.jsx("textarea",{className:"input mono",rows:3,value:A,onChange:w=>Y(w.target.value)})]})]}),n.jsxs("label",{children:[n.jsx("span",{children:"Objective"}),n.jsx("input",{className:"input",value:D,placeholder:r==="handoff"?"Describe the work for the coding agent":"Optional",onChange:w=>j(w.target.value)})]}),n.jsx("div",{children:n.jsx("button",{className:"btn btn-primary",onClick:Q,disabled:K||!u||!!T.target&&!g||r==="invoke"&&!v||r==="handoff"&&!D,children:K?"Working…":"Start"})})]})]})}const _y=u=>({failed:"Failed",interrupted:"Outcome unknown",executing:"Running",approved:"Approved, starting"})[u]??u;function Dy({taskId:u,as:d,development:f,canAct:r,actor:m,version:g}){const[z,D]=B.useState({}),[j,v]=B.useState(0),M=Be(()=>ne(`/agent/tasks/${encodeURIComponent(u)}`),[u,g,j]),[A,Y]=B.useState(null),[K,W]=B.useState(""),G=async(q,fe={})=>{Y(null);try{await ne(`/agent/tasks/${encodeURIComponent(u)}/${q}`,{method:"POST",body:JSON.stringify(f?{as:d,...fe}:fe)}),v(De=>De+1)}catch(De){Y(De)}};if(M.error)return n.jsx(Te,{error:M.error,retry:M.reload});if(!M.data)return n.jsx(Ve,{});const{task:H,checkpoints:T,execution:Q,pending:w,actions:ie=[]}=M.data,Ne=ie.filter(q=>q.state==="failed"||q.state==="interrupted"||q.state==="executing"||q.state==="approved"),ze=H.status!=="completed"&&H.status!=="cancelled";return n.jsxs(n.Fragment,{children:[n.jsx("p",{children:n.jsx("a",{href:"#/agent",children:"← Tasks"})}),A?n.jsx(Te,{error:A}):null,n.jsxs(le,{title:n.jsxs("span",{className:"row",children:[H.objective," ",n.jsx($,{tone:qu(H.status),children:H.status})]}),action:n.jsx("span",{className:"muted small mono",children:H.owner}),children:[n.jsxs("dl",{className:"kv",children:[n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"FeltDB execution"}),n.jsx("dd",{className:"mono small",children:Q?`${Q.agentRef} · ${Q.status}${Q.error?` · ${Q.error}`:""}`:"—"})]}),n.jsxs("div",{className:"kv-row",children:[n.jsx("dt",{children:"Task"}),n.jsxs("dd",{className:"mono small",children:[H.task_id," · checkpoint v",H.checkpoint_version]})]})]}),r&&ze&&M.data.playbook==="decide"&&ie.every(q=>!["proposed","approved","executing","interrupted"].includes(q.state))&&n.jsxs("div",{className:"row",children:[n.jsx("button",{className:"btn",onClick:()=>G("decide"),children:"Ask the model again"}),n.jsx("span",{className:"muted small",children:"Uses this environment’s model (Models). The answer is a new proposal."})]}),f&&ze&&n.jsxs("div",{className:"row",children:[n.jsx("input",{className:"input grow",placeholder:"Summary of what was done",value:K,onChange:q=>W(q.target.value)}),n.jsx("button",{className:"btn",onClick:()=>G("complete",{summary:K}),disabled:w.length>0,children:"Complete"}),n.jsx("button",{className:"btn btn-ghost",onClick:()=>G("cancel",{reason:"cancelled from Studio"}),children:"Cancel"})]})]}),w.map(q=>n.jsxs(le,{title:n.jsxs("span",{className:"row",children:["Waiting for approval ",n.jsx($,{tone:"warn",children:q.capability})]}),action:n.jsxs("span",{className:"muted small",children:["proposed by ",q.proposedBy]}),children:[n.jsx("p",{children:q.reason}),q.decision&&n.jsxs("p",{className:"small",children:["Chosen by the model ",n.jsxs("span",{className:"mono",children:[q.decision.provider,q.decision.model?` / ${q.decision.model}`:""]})," (",q.decision.runtime,") among the options the owner may take. A choice is a proposal, not evidence."]}),n.jsx(Hn,{value:q.input}),n.jsxs("p",{className:"muted small",children:["Runs as ",n.jsx("span",{className:"mono",children:H.owner}),", through ",q.source==="application"?"the application’s AppPort dispatch":"AppPort Services",". You must be permitted to perform it yourself to approve it."]}),r&&n.jsxs("div",{className:"row",children:[n.jsxs("button",{className:"btn btn-primary",onClick:()=>G("approve",{actionId:q.actionId}),children:["Approve as ",m]}),n.jsx("button",{className:"btn",onClick:()=>G("reject",{actionId:q.actionId,reason:"rejected in Studio"}),children:"Reject"})]})]},q.actionId)),Ne.map(q=>n.jsxs(le,{title:n.jsxs("span",{className:"row",children:[_y(q.state)," ",n.jsx($,{tone:q.state==="failed"?"bad":"warn",children:q.capability})]}),action:n.jsxs("span",{className:"muted small",children:["attempt ",q.attempt," · approved by ",q.decidedBy??"—"]}),children:[n.jsx("p",{children:q.reason}),q.outcome?.error?n.jsxs("p",{className:"small mono",children:[q.outcome.error.code,": ",q.outcome.error.message]}):null,q.interruption?n.jsxs("p",{className:"small",children:[String(q.interruption).replace(/\.?$/,".")," Check the effect before settling it; it is never replayed automatically."]}):null,r&&q.state==="failed"&&ze&&n.jsx("div",{className:"row",children:n.jsx("button",{className:"btn",onClick:()=>G("retry",{actionId:q.actionId}),children:"Retry (needs approval again)"})}),r&&q.state==="interrupted"&&n.jsxs("div",{className:"row",children:[n.jsx("input",{className:"input grow",placeholder:"What you checked (recorded with your name)","aria-label":`What you checked for ${q.actionId}`,value:z[q.actionId]??"",onChange:fe=>D(De=>({...De,[q.actionId]:fe.target.value}))}),n.jsx("button",{className:"btn",disabled:(z[q.actionId]??"").trim().length<3,onClick:()=>G("resolve",{actionId:q.actionId,outcome:"succeeded",note:z[q.actionId]}),children:"It succeeded"}),n.jsx("button",{className:"btn",disabled:(z[q.actionId]??"").trim().length<3,onClick:()=>G("resolve",{actionId:q.actionId,outcome:"failed",note:z[q.actionId]}),children:"It did not take effect"})]})]},q.actionId)),n.jsx(le,{title:"Checkpoints",children:n.jsx("ol",{className:"timeline",children:T.slice().reverse().map(q=>n.jsxs("li",{className:"timeline-item",children:[n.jsxs("div",{className:"row",children:[n.jsxs("strong",{children:["v",q.version]})," ",n.jsx($,{tone:qu(q.status),children:q.status})," ",n.jsxs("span",{className:"muted small",children:[q.actor," · ",Ie(q.created_at)]})]}),n.jsx("p",{children:q.summary}),q.completed.length>0&&n.jsx("ul",{className:"small",children:q.completed.map((fe,De)=>n.jsx("li",{className:"mono",children:fe},De))}),q.decisions.length>0&&q.version===T.length&&n.jsxs("details",{children:[n.jsxs("summary",{className:"small",children:["Decisions (",q.decisions.length,")"]}),n.jsx("ul",{className:"small",children:q.decisions.map((fe,De)=>n.jsx("li",{children:fe},De))})]}),q.evidence.filter(fe=>fe.checkpoint_version===q.version).map((fe,De)=>n.jsxs("div",{className:"small",children:["Evidence: ",fe.kind==="record"?n.jsxs("a",{href:`#/activity/${fe.id}`,className:"mono",children:[fe.collection,"/",fe.id]}):n.jsx("span",{className:"mono",children:fe.uri})," ",fe.verified?n.jsx($,{tone:"ok",children:"verified at commit"}):n.jsx($,{tone:"neutral",children:"unverified"})]},De))]},q.version))})})]})}function My(){const{version:u}=wt(),[d,f]=B.useState(0),r=Be(()=>ne("/models"),[u,d]),m=Be(()=>ne("/overview"),[u]),{development:g,canAct:z}=ns(m.data),[D,j]=B.useState(null),[v,M]=B.useState(!1);if(r.error)return n.jsx(Te,{error:r.error,retry:r.reload});if(!r.data)return n.jsx(Ve,{});const{status:A,catalog:Y,intelligence:K}=r.data,W=async()=>{M(!0),j(null);try{j(await ne("/models/test",{method:"POST",body:"{}"}))}catch(G){j({ok:!1,error:{message:G.message}})}finally{M(!1)}};return n.jsxs(n.Fragment,{children:[n.jsx(Yt,{title:"Models",subtitle:"The model that makes agent decisions in this environment. It chooses among the options your application offers and the task owner may take; its choice becomes a proposal, never an execution."}),n.jsxs(le,{title:n.jsxs("span",{className:"row",children:["Decision model ",A.ready?n.jsx($,{tone:"ok",children:"ready"}):n.jsx($,{tone:"bad",children:"not ready"})]}),action:z?n.jsx("button",{className:"btn",onClick:W,disabled:v||!A.ready,children:v?"Calling…":"Test"}):null,children:[n.jsx(Uu,{rows:[["Source",A.source==="application"?"Application code (agent.decisions)":A.source==="intelligence"?"AppPort Services Intelligence (this environment)":"None"],["Provider",A.provider?n.jsxs("span",{className:"mono",children:[A.provider,A.protocol?` · ${A.protocol}`:""]}):"—"],["Model",A.model?n.jsx("span",{className:"mono",children:A.model}):"—"],["Endpoint",A.endpoint?n.jsx("span",{className:"mono",children:A.endpoint}):"—"],["API key",A.credential.ref?n.jsxs("span",{children:[n.jsx("span",{className:"mono",children:A.credential.ref})," ",n.jsx(is,{credential:A.credential})]}):A.credential.required?n.jsx($,{tone:"bad",children:"required, none entered"}):"none needed"],["Runtime",A.runtime?n.jsxs("span",{className:"mono",children:[A.runtime.metadata.runtime," (",A.runtime.metadata.execution_method,")"]}):"—"],["Can decide",A.runtime?["binary","choice","score","batch","probability_distribution"].map(G=>n.jsxs($,{tone:A.runtime.capabilities[G]?"ok":"neutral",children:[G.replace("_"," "),A.runtime.capabilities[G]?"":": no"]},G)):"—"]]}),A.problems.map(G=>n.jsxs("div",{className:"error-box",children:[n.jsx("strong",{children:G.message}),n.jsx("div",{className:"small",children:G.fix})]},G.problem)),D&&n.jsx("div",{className:D.ok?"ok-box":"error-box",children:D.ok?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:"The model answered"})," in ",D.durationMs," ms (",D.provider,", ",D.runtime.runtime,"): ",n.jsx(Hn,{value:D.result})]}):n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:D.error.message}),D.error.hint&&n.jsx("div",{className:"small",children:D.error.hint})]})})]}),g&&K&&n.jsx(Cy,{catalog:Y,current:A,overview:m.data,onSaved:()=>f(G=>G+1)}),!g&&n.jsx(le,{children:n.jsxs("p",{className:"muted small",children:["Production: the model is selected on the host with ",n.jsx("code",{children:"feltkit model set --env production"}),"; keys live in the host’s environment as ",n.jsx("code",{children:"FELTKIT_CREDENTIAL_<ID>"})," (or in a vault the operator opted in to with ",n.jsx("code",{children:"FELTKIT_CREDENTIAL_VAULT=1"}),")."]})}),!K&&n.jsx(le,{children:n.jsxs("p",{className:"muted small",children:["The Intelligence service is not enabled for this application. Add ",n.jsx("code",{children:"intelligence: true"})," to ",n.jsx("code",{children:"services"})," in ",n.jsx("code",{children:"feltkit/app.ts"})," (new apps have it on); Studio reloads and you can choose a provider and enter its API key here. Alternatively pass ",n.jsx("code",{children:"agent.decisions"}),"."]})})]})}function Cy({catalog:u,current:d,overview:f,onSaved:r}){const[m,g]=B.useState(d.provider??u[0]?.id??""),z=u.find(N=>N.id===m),[D,j]=B.useState(d.model??""),[v,M]=B.useState(d.endpoint??""),[A,Y]=B.useState(d.credential?.ref??""),[K,W]=B.useState(""),[G,H]=B.useState(!1),[T,Q]=B.useState(null),[w,ie]=B.useState(null),[Ne,ze]=B.useState(!1),[q,fe,De]=ly(f),Gt=z?z.credential!=="none":!1,lt=`credential-ref:${m}`,ke=A.trim()||lt,Ut=d.credential?.ref===ke?d.credential:null;B.useEffect(()=>{z&&z.modelSelection==="catalog"&&!z.models.includes(D)&&j(z.models[0]??"")},[m]);const Rt=N=>{if(dh(N)){W(N.trim()),Y(""),H(!0);return}Y(N)},ot=async()=>{Q(null),ie(null),ze(!0);const N=K;W(""),H(!1);try{const X=Gt?ke:A.trim(),I={provider:m,model:D,...z?.customEndpoint&&v?{endpoint:v}:{},...X&&(N||z?.credential==="required"||A.trim())?{credentialRef:X}:{},...N?{apiKey:N}:{},...q?{as:q}:{}},ye=await ne("/models",{method:"POST",body:JSON.stringify(I)});ie(ye.stored??{saved:!0}),r()}catch(X){Q(X)}finally{ze(!1)}};return n.jsxs(le,{title:"Choose a model (development)",children:[T?n.jsx(Te,{error:T}):null,n.jsxs("div",{className:"form-grid",children:[n.jsxs("label",{children:["Provider",n.jsx("select",{className:"input",value:m,onChange:N=>g(N.target.value),"aria-label":"Provider",children:u.map(N=>n.jsxs("option",{value:N.id,children:[N.displayName," (",N.protocol,N.credential==="required"?", needs an API key":N.credential==="optional"?", API key optional":"",")"]},N.id))})]}),n.jsxs("label",{children:["Model",z?.modelSelection==="catalog"?n.jsx("select",{className:"input",value:D,onChange:N=>j(N.target.value),"aria-label":"Model",children:z.models.map(N=>n.jsx("option",{children:N},N))}):n.jsx("input",{className:"input",value:D,onChange:N=>j(N.target.value),placeholder:z?.models[0]??"model id","aria-label":"Model"})]}),z?.customEndpoint&&n.jsxs("label",{children:["Endpoint",n.jsx("input",{className:"input",value:v,onChange:N=>M(N.target.value),placeholder:z.endpoints[0]??"http://localhost:11434/v1","aria-label":"Endpoint"})]}),Gt&&n.jsxs("label",{children:["API key",z?.credential==="optional"?" (optional)":"",n.jsx("input",{className:"input",type:"password",autoComplete:"off",spellCheck:!1,value:K,onChange:N=>W(N.target.value),placeholder:Ut?.present?"Set — leave empty to keep it, or type a new key to replace it":"Paste your API key","aria-label":"API key"})]}),n.jsx(ay,{as:q,setAs:fe,devUsers:De})]}),G&&n.jsx("div",{className:"ok-box small",children:"This looks like an API key — it will be stored securely, not in configuration."}),Gt&&n.jsxs("p",{className:"muted small",children:["The key is stored on the server in this environment’s custody (",d.credential?.location&&d.credential.source!=="environment"?d.credential.location:"the local encrypted vault","), outside FeltDB, and never shown again. An environment variable ",n.jsx("code",{children:Uy(ke)})," overrides it.",Ut?.present?n.jsxs(n.Fragment,{children:[" ","Currently: ",n.jsx(is,{credential:Ut})]}):null]}),n.jsxs("details",{className:"schema",children:[n.jsx("summary",{children:"Advanced: credential reference"}),n.jsxs("label",{className:"small",children:["Reference (default ",n.jsx("code",{children:lt}),")",n.jsx("input",{className:"input",value:A,onChange:N=>Rt(N.target.value),placeholder:lt,"aria-label":"Credential reference"})]}),n.jsxs("p",{className:"muted small",children:["A name for where the key is kept, such as ",n.jsx("code",{children:"credential-ref:openai"})," — not the key itself. Configuration stores only this name."]})]}),n.jsxs("div",{className:"row",children:[n.jsx("button",{className:"btn btn-primary",onClick:ot,disabled:Ne||!m||!D,children:Ne?"Saving…":"Save for this environment"}),w&&n.jsxs("span",{className:"muted small",children:["Saved.",w.version?` API key: set (${w.location??"custody"}, version ${w.version}).`:""," Use “Test” above to call the model."]})]})]})}function Uy(u){return`FELTKIT_CREDENTIAL_${u.replace(/^credential-ref:/,"").replace(/[^A-Za-z0-9]/g,"_").toUpperCase()}`}const Ry=u=>u==="succeeded"?"ok":u==="failed"?"bad":"warn";function Hy(){const{version:u}=wt(),[d,f]=B.useState(0),r=Be(()=>ne("/integrations"),[u,d]),m=Be(()=>ne("/overview"),[u]),{development:g,canAct:z}=ns(m.data),j=(m.data?.devUsers??[])[0]?.id??"",[v,M]=B.useState({}),[A,Y]=B.useState(null);if(r.error)return n.jsx(Te,{error:r.error,retry:r.reload});if(!r.data)return n.jsx(Ve,{});const{integrations:K,calls:W}=r.data,G=async T=>{Y(null);try{const Q=await ne(`/integrations/${encodeURIComponent(T)}/check`,{method:"POST",body:"{}"});M(w=>({...w,[T]:Q}))}catch(Q){Y(Q)}},H=async T=>{Y(null);try{await ne(`/integrations/calls/${encodeURIComponent(T)}/verify`,{method:"POST",body:JSON.stringify(g?{as:j}:{})}),f(Q=>Q+1)}catch(Q){Y(Q)}};return n.jsxs(n.Fragment,{children:[n.jsx(Yt,{title:"Integrations",subtitle:"Existing APIs, published as AppPort capabilities: what each operation does, who may invoke it, whether repeating it is safe, and how its outcome is verified. Seeing an operation grants nothing."}),A?n.jsx(Te,{error:A}):null,K.length===0?n.jsxs(Mt,{title:"No integrations yet",children:["Connect an API with ",n.jsxs("code",{children:['app.integration("payments", ',"{"," baseUrl, credential, operations ","}",")"]})," in ",n.jsx("code",{children:"feltkit/"}),"."]}):K.map(T=>n.jsxs(le,{title:n.jsxs("span",{className:"row",children:[T.name," ",T.problems.length?n.jsx($,{tone:"bad",children:"not configured"}):n.jsx($,{tone:"ok",children:"configured"})]}),action:z&&T.health?n.jsx("button",{className:"btn",onClick:()=>G(T.name),children:"Check"}):null,children:[T.description&&n.jsx("p",{children:T.description}),n.jsxs("p",{className:"small",children:[n.jsx("span",{className:"mono",children:T.baseUrl.value??"—"})," ",n.jsxs("span",{className:"muted",children:["(",T.baseUrl.source,T.baseUrl.variable?` ${T.baseUrl.variable}`:"",")"]}),T.credential&&n.jsxs(n.Fragment,{children:[" · ",n.jsx("span",{className:"mono",children:T.credential.ref})," ",n.jsx(is,{credential:T.credential})," ",z&&T.credential.writable&&n.jsx(Ru,{credentialRef:T.credential.ref,label:T.credential.present?"Replace key":"Set key",...g&&j?{as:j}:{},onSaved:()=>f(Q=>Q+1)}),!T.credential.writable&&!T.credential.present&&n.jsxs("span",{className:"muted small",children:[" set ",T.credential.variable," on the host"]})]})]}),T.problems.map((Q,w)=>n.jsxs("div",{className:"error-box",children:[n.jsx("strong",{children:Q.message}),n.jsx("div",{className:"small",children:Q.fix})]},w)),v[T.name]&&n.jsx("div",{className:v[T.name].ok?"ok-box":"error-box",children:v[T.name].message}),n.jsx("div",{className:"table-wrap",children:n.jsxs("table",{className:"table",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{children:"Capability"}),n.jsx("th",{children:"Request"}),n.jsx("th",{children:"Effect"}),n.jsx("th",{children:"Who may invoke"}),n.jsx("th",{children:"Repeat"}),n.jsx("th",{children:"Outcome unknown →"})]})}),n.jsx("tbody",{children:T.operations.map(Q=>n.jsxs("tr",{children:[n.jsx("td",{className:"mono",children:Q.capability}),n.jsxs("td",{className:"mono small",children:[Q.method," ",Q.path]}),n.jsx("td",{children:Q.effect==="consequential"?n.jsx($,{tone:"warn",children:"consequential"}):n.jsx($,{children:"observation"})}),n.jsx("td",{className:"mono small",children:Q.access}),n.jsx("td",{className:"small",children:Q.effect==="observation"?"safe":Q.idempotent?"deduplicated by the API":"may duplicate"}),n.jsx("td",{className:"small",children:Q.effect==="observation"?"—":Q.verifiable?"verify, never re-send":"a person settles it"})]},Q.capability))})]})})]},T.name)),n.jsxs(le,{title:"Calls",children:[W.length===0?n.jsx("p",{className:"muted small",children:"No calls yet."}):n.jsx("div",{className:"table-wrap",children:n.jsxs("table",{className:"table",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{children:"Capability"}),n.jsx("th",{children:"State"}),n.jsx("th",{children:"How known"}),n.jsx("th",{children:"As"}),n.jsx("th",{children:"HTTP"}),n.jsx("th",{children:"Detail"}),n.jsx("th",{children:"When"}),n.jsx("th",{})]})}),n.jsx("tbody",{children:W.map(T=>n.jsxs("tr",{children:[n.jsx("td",{className:"mono small",children:T.capability}),n.jsx("td",{children:n.jsx($,{tone:Ry(T.state),children:T.state==="started"?"unknown (no outcome recorded)":T.state})}),n.jsxs("td",{className:"small",children:[T.determinedBy??"—",T.verification?` (${T.verification.outcome})`:""]}),n.jsx("td",{className:"mono small",children:T.principal.id}),n.jsx("td",{children:T.status??""}),n.jsx("td",{className:"small error-text",children:T.error?.message??""}),n.jsx("td",{className:"muted small",children:Ie(T.startedAt)}),n.jsx("td",{children:z&&(T.state==="unknown"||T.state==="started")&&n.jsx("button",{className:"btn btn-small",onClick:()=>H(T.id),disabled:g&&!j,children:"Verify"})})]},T.id))})]})}),n.jsx("p",{className:"muted small",children:"A call is recorded before it is sent. “Verify” reads the API’s own state through the declared probe; it never sends the request again."})]})]})}const ah={pass:"ok",fail:"bad",warn:"warn",external:"neutral"},nh={pass:"verified",fail:"fails",warn:"review",external:"outside FeltKit"};function qy(){const{version:u}=wt(),d=Be(()=>ne("/readiness"),[u]);if(d.error)return n.jsx(Te,{error:d.error,retry:d.reload});if(!d.data)return n.jsx(Ve,{label:"Checking this environment"});const f=d.data,r=[...new Set(f.checks.map(m=>m.area))];return n.jsxs(n.Fragment,{children:[n.jsx(Yt,{title:"Readiness",subtitle:"Real checks of this environment, not a status anyone sets. Passing checks mean the checked things are in place; the operational requirements at the end are yours to meet.",actions:n.jsx("button",{className:"btn",onClick:d.reload,children:"Check again"})}),n.jsxs(le,{children:[n.jsx("p",{children:n.jsx("strong",{children:f.summary})}),n.jsx("div",{className:"row",children:["fail","warn","pass","external"].map(m=>n.jsxs($,{tone:ah[m],children:[f.counts[m]," ",nh[m]]},m))}),n.jsxs("p",{className:"muted small",children:["The same report: ",n.jsxs("code",{children:["npx feltkit readiness --env ",f.environment.name]}),"."]})]}),r.map(m=>n.jsx(le,{title:m,children:n.jsx("ul",{className:"checks",children:f.checks.filter(g=>g.area===m).map(g=>n.jsxs("li",{className:"check",children:[n.jsx($,{tone:ah[g.status],children:nh[g.status]})," ",n.jsx("strong",{children:g.title}),n.jsx("div",{className:"small",children:g.detail}),g.fix&&g.status!=="pass"&&n.jsxs("div",{className:"small muted",children:["→ ",g.fix]})]},g.id))})},m))]})}const jh=B.createContext({live:!1,version:0,changed:{},activity:[],overview:void 0,reloadOverview(){}}),wt=()=>B.useContext(jh),Bu=[{id:"overview",label:"Overview",key:"1"},{id:"data",label:"Data",key:"2"},{id:"capabilities",label:"Capabilities",key:"3"},{id:"services",label:"Services",key:"4"},{id:"agent",label:"Agent",key:"5"},{id:"models",label:"Models",key:"m"},{id:"integrations",label:"Integrations",key:"i"},{id:"readiness",label:"Readiness",key:"r"},{id:"activity",label:"Activity",key:"6"},{id:"settings",label:"Settings",key:"7"},{id:"projects",label:"Projects",key:"8"}],ih=["data","settings","projects"];function sh(){const u=location.hash.replace(/^#\/?/,"").split("/").filter(Boolean).map(decodeURIComponent);return{route:Bu.find(f=>f.id===u[0])?.id??"overview",rest:u.slice(1)}}function Ct(u){location.hash=`#/${u}`}const By={overview:n.jsx("path",{d:"M3 10.5 10 4l7 6.5V17a1 1 0 0 1-1 1h-4v-5H8v5H4a1 1 0 0 1-1-1z"}),data:n.jsxs(n.Fragment,{children:[n.jsx("ellipse",{cx:"10",cy:"5",rx:"6.5",ry:"2.5"}),n.jsx("path",{d:"M3.5 5v10c0 1.4 2.9 2.5 6.5 2.5s6.5-1.1 6.5-2.5V5M3.5 10c0 1.4 2.9 2.5 6.5 2.5s6.5-1.1 6.5-2.5"})]}),capabilities:n.jsx("path",{d:"M7 3h6v4l3 3-3 3v4H7v-4l-3-3 3-3z"}),models:n.jsx("path",{d:"M10 3a4 4 0 0 1 4 4v1a3 3 0 0 1 0 6v1a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-1a3 3 0 0 1 0-6V7a4 4 0 0 1 4-4zM8 10h.01M12 10h.01"}),integrations:n.jsx("path",{d:"M7 7h-2a3 3 0 0 0 0 6h2M13 7h2a3 3 0 0 1 0 6h-2M7 10h6"}),readiness:n.jsx("path",{d:"M4 10.5 8 14.5 16 5.5"}),services:n.jsxs(n.Fragment,{children:[n.jsx("rect",{x:"3",y:"3",width:"6",height:"6",rx:"1.5"}),n.jsx("rect",{x:"11",y:"3",width:"6",height:"6",rx:"1.5"}),n.jsx("rect",{x:"3",y:"11",width:"6",height:"6",rx:"1.5"}),n.jsx("rect",{x:"11",y:"11",width:"6",height:"6",rx:"1.5"})]}),agent:n.jsx("path",{d:"M10 3a3 3 0 0 1 3 3v1h1.5A1.5 1.5 0 0 1 16 8.5v6a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 4 14.5v-6A1.5 1.5 0 0 1 5.5 7H7V6a3 3 0 0 1 3-3zM8 11h.01M12 11h.01M8 14h4"}),activity:n.jsx("path",{d:"M2 10h4l2-5 4 10 2-5h4"}),settings:n.jsxs(n.Fragment,{children:[n.jsx("circle",{cx:"10",cy:"10",r:"2.5"}),n.jsx("path",{d:"M10 2.5v2M10 15.5v2M2.5 10h2M15.5 10h2M4.7 4.7l1.4 1.4M13.9 13.9l1.4 1.4M4.7 15.3l1.4-1.4M13.9 6.1l1.4-1.4"})]}),projects:n.jsx(n.Fragment,{children:n.jsx("path",{d:"M3 6.5A1.5 1.5 0 0 1 4.5 5H8l1.5 2h6A1.5 1.5 0 0 1 17 8.5v6A1.5 1.5 0 0 1 15.5 16h-11A1.5 1.5 0 0 1 3 14.5z"})})};function wy({route:u}){return n.jsx("svg",{viewBox:"0 0 20 20",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:By[u]})}function Yy(){const[u,d]=B.useState("loading"),[f,r]=B.useState("");return B.useEffect(()=>{fetch("/api/session",{credentials:"same-origin"}).then(m=>m.json()).then(m=>{r(m?.environment?.name??""),d(m?.environment?.production?"production":"development")}).catch(()=>d("development"))},[]),u==="loading"?n.jsx(Ve,{label:"Connecting"}):u==="production"?n.jsx(Gy,{environment:f}):n.jsx(Xy,{})}function Gy({environment:u}){const[d,f]=B.useState("checking"),[r,m]=B.useState(null),g=z=>{z?.operator&&z?.csrf?(Mu({csrf:z.csrf,environment:u}),f("signed-in")):(Mu(null),f("signed-out"))};return B.useEffect(()=>{ne("/operator/session").then(g,()=>f("signed-out"))},[]),d==="checking"?n.jsx(Ve,{label:"Checking your operator session"}):d==="signed-in"?n.jsx(xh,{onSignOut:()=>{ne("/operator/signout",{method:"POST",body:"{}"}).catch(()=>{}).finally(()=>(Mu(null),f("signed-out")))}}):n.jsx(Qy,{environment:u,...r?{error:r}:{},onGrant:async z=>{m(null);try{const D=await fetch("/_feltkit/api/operator/signin",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json","x-feltkit-environment":u},body:JSON.stringify({grant:z})}),j=await D.json();if(!D.ok)throw new Error(j?.error?.message??`Sign-in failed (${D.status})`);g(j)}catch(D){m(D.message)}}})}function Qy({environment:u,onGrant:d,error:f}){const[r,m]=B.useState("");return n.jsx("div",{className:"gate",children:n.jsxs("div",{className:"gate-card",children:[n.jsx(Yu,{}),n.jsxs("h1",{children:["Sign in to ",u," Studio"]}),n.jsxs("p",{className:"muted",children:["Production Studio is for operators. On the host, run ",n.jsx("code",{children:"feltkit operator grant --id <you> --role <role>"})," and paste the one-time grant here. Everything you do is authorized and recorded as you."]}),f&&n.jsx("p",{className:"error-text",children:f}),n.jsxs("form",{onSubmit:g=>{g.preventDefault(),r.trim()&&d(r.trim())},className:"row",children:[n.jsx("input",{className:"input grow",value:r,onChange:g=>m(g.target.value),placeholder:"fkg1.…","aria-label":"Operator grant",autoFocus:!0}),n.jsx("button",{className:"btn btn-primary",type:"submit",children:"Sign in"})]})]})})}function Xy(){const[u,d]=B.useState(()=>{const m=Pv();return Du(m),m}),[f,r]=B.useState(!1);return u?n.jsx(xh,{onSignOut:m=>(Du(null),Pf(null),r(!!m),d(null))}):n.jsx(ky,{...f?{error:"That admin token was not accepted. A new one is generated if .feltkit/<env>/admin-token is deleted."}:{},onToken:m=>(Du(m),Pf(m),r(!1),d(m))})}function ky({onToken:u,error:d}){const[f,r]=B.useState("");return n.jsx("div",{className:"gate",children:n.jsxs("div",{className:"gate-card",children:[n.jsx(Yu,{}),n.jsx("h1",{children:"Open the FeltKit dashboard"}),n.jsxs("p",{className:"muted",children:["The dashboard needs this environment’s admin token. Use the ",n.jsx("strong",{children:"Dashboard"})," link that ",n.jsx("code",{children:"feltkit dev"})," prints — it contains the token — or paste the token from ",n.jsx("code",{children:".feltkit/development/admin-token"}),"."]}),d&&n.jsx("p",{className:"error-text",children:d}),n.jsxs("form",{onSubmit:m=>{m.preventDefault(),f.trim()&&u(f.trim())},className:"row",children:[n.jsx("input",{className:"input grow",value:f,onChange:m=>r(m.target.value),placeholder:"fka_…","aria-label":"Admin token",autoFocus:!0}),n.jsx("button",{className:"btn btn-primary",type:"submit",children:"Continue"})]})]})})}function Yu(){return n.jsx("span",{className:"logo","aria-label":"FeltKit",children:n.jsxs("svg",{viewBox:"0 0 32 32",width:"26",height:"26","aria-hidden":!0,children:[n.jsx("rect",{width:"32",height:"32",rx:"8",fill:"var(--logo-bg)"}),n.jsx("path",{d:"M11 7c-4 5-4 13 0 18M21 7c4 5 4 13 0 18",stroke:"var(--logo-fg)",strokeWidth:"3",fill:"none",strokeLinecap:"round"})]})})}function xh({onSignOut:u}){const[{route:d,rest:f},r]=B.useState(sh),[m,g]=B.useState(!1),[z,D]=B.useState(0),[j,v]=B.useState({}),[M,A]=B.useState([]),Y=Be(()=>ne("/overview"),[z]),K=B.useRef(null);B.useEffect(()=>{const Q=()=>r(sh());return window.addEventListener("hashchange",Q),()=>window.removeEventListener("hashchange",Q)},[]),B.useEffect(()=>ey((Q,w)=>{Q==="activity"&&A(ie=>[w,...ie].slice(0,200)),Q==="change"&&v(ie=>{const Ne={...ie};for(const ze of w.collections)Ne[ze]=(Ne[ze]??0)+1;return Ne}),K.current===null&&(K.current=window.setTimeout(()=>{K.current=null,D(ie=>ie+1)},250))},g),[]),B.useEffect(()=>{const Q=w=>{const ie=w.target;if(w.metaKey||w.ctrlKey||w.altKey||["INPUT","TEXTAREA","SELECT"].includes(ie.tagName)||ie.isContentEditable)return;const Ne=Bu.find(ze=>ze.key===w.key);Ne&&Ct(Ne.id)};return window.addEventListener("keydown",Q),()=>window.removeEventListener("keydown",Q)},[]);const W=B.useMemo(()=>({live:m,version:z,changed:j,activity:M,overview:Y.data,reloadOverview:Y.reload}),[m,z,j,M,Y.data,Y.reload]),G=Y.error?.status===401;B.useEffect(()=>{G&&u(!0)},[G,u]);const H=Y.data,T=H?.environment?.production;return n.jsx(jh.Provider,{value:W,children:n.jsxs("div",{className:"app",children:[n.jsxs("nav",{className:"nav","aria-label":"Dashboard",children:[n.jsxs("div",{className:"nav-brand",children:[n.jsx(Yu,{}),n.jsxs("div",{children:[n.jsx("div",{className:"nav-app",children:H?.application?.name??"…"}),n.jsx("div",{className:"nav-sub",children:"FeltKit"})]})]}),n.jsx("ul",{children:Bu.filter(Q=>!T||!ih.includes(Q.id)).map(Q=>n.jsx("li",{children:n.jsxs("a",{href:`#/${Q.id}`,className:d===Q.id?"active":"","aria-current":d===Q.id?"page":void 0,children:[n.jsx(wy,{route:Q.id}),n.jsx("span",{children:Q.label}),n.jsx("kbd",{children:Q.key})]})},Q.id))}),n.jsxs("div",{className:"nav-foot",children:[n.jsxs("div",{className:`live ${m?"on":""}`,children:[n.jsx("span",{className:"dot"})," ",m?"Live":"Reconnecting"]}),n.jsx("button",{className:"btn btn-ghost btn-small",onClick:()=>u(),title:H?.operator?"Sign out of production Studio":"Forget the admin token in this tab",children:H?.operator?"Sign out":"Lock"})]})]}),n.jsxs("div",{className:"content",children:[H&&n.jsxs("div",{className:`envbar ${T?"envbar-prod":""}`,children:[n.jsx("span",{className:"envname",children:H.environment.name}),n.jsxs("span",{className:"muted",children:["FeltDB ",H.instance.feltdbVersion," · ",H.instance.mode," · "]}),n.jsx("code",{className:"path",title:H.instance.location,children:H.instance.location}),T?n.jsxs("span",{className:"envwarn",children:["Production · signed in as ",n.jsx("strong",{children:H.operator?.principal?.id})," (",(H.operator?.principal?.roles??[]).join(", "),") · actions run on this environment only"]}):n.jsx("span",{className:"muted",children:"Development tools enabled"})]}),n.jsx("main",{className:"page",children:Y.loading&&!H?n.jsx(Ve,{label:"Connecting to the runtime"}):H?n.jsx(Ly,{route:T&&ih.includes(d)?"overview":d,rest:f}):n.jsxs("div",{className:"error-box",children:["The runtime did not answer: ",Y.error?.message]})})]})]})})}function Ly({route:u,rest:d}){switch(u){case"data":return n.jsx(oy,{collection:d[0]});case"capabilities":return n.jsx(py,{selected:d[0]});case"services":return n.jsx(iy,{});case"agent":return n.jsx(zy,{rest:d});case"models":return n.jsx(My,{});case"integrations":return n.jsx(Hy,{});case"readiness":return n.jsx(qy,{});case"activity":return n.jsx(Sy,{selected:d[0]});case"settings":return n.jsx(Ay,{});case"projects":return n.jsx(Ty,{});default:return n.jsx(ry,{})}}function Yt({title:u,subtitle:d,actions:f}){return n.jsxs("header",{className:"page-header",children:[n.jsxs("div",{children:[n.jsx("h1",{children:u}),d&&n.jsx("p",{className:"muted",children:d})]}),f&&n.jsx("div",{className:"actions",children:f})]})}Iv.createRoot(document.getElementById("root")).render(n.jsx(B.StrictMode,{children:n.jsx(Yy,{})}));
|