@netnodeag/kraftwerk 0.9.0 → 0.10.0
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/init.js +1 -0
- package/dist/cli/kraftwerk.js +1 -1
- package/dist/cli/ui.js +2 -1
- package/dist/config.d.ts +3 -0
- package/dist/config.js +9 -3
- package/inspector/dist/assets/{index-DN2CaVYL.css → index-Dw72YV0e.css} +1 -1
- package/inspector/dist/assets/index-y3HSj8q3.js +80 -0
- package/inspector/dist/index.html +2 -2
- package/package.json +1 -1
- package/inspector/dist/assets/index-CQW72Esf.js +0 -79
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))r(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const g of h.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&r(g)}).observe(document,{childList:!0,subtree:!0});function o(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(d){if(d.ep)return;d.ep=!0;const h=o(d);fetch(d.href,h)}})();var Zr={exports:{}},ss={};var Ph;function Fg(){if(Ph)return ss;Ph=1;var u=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function o(r,d,h){var g=null;if(h!==void 0&&(g=""+h),d.key!==void 0&&(g=""+d.key),"key"in d){h={};for(var y in d)y!=="key"&&(h[y]=d[y])}else h=d;return d=h.ref,{$$typeof:u,type:r,key:g,ref:d!==void 0?d:null,props:h}}return ss.Fragment=s,ss.jsx=o,ss.jsxs=o,ss}var em;function Ig(){return em||(em=1,Zr.exports=Fg()),Zr.exports}var c=Ig(),Vr={exports:{}},ae={};var tm;function Pg(){if(tm)return ae;tm=1;var u=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),g=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),k=Symbol.iterator;function te(S){return S===null||typeof S!="object"?null:(S=k&&S[k]||S["@@iterator"],typeof S=="function"?S:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ne=Object.assign,W={};function R(S,H,X){this.props=S,this.context=H,this.refs=W,this.updater=X||Z}R.prototype.isReactComponent={},R.prototype.setState=function(S,H){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,H,"setState")},R.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function Te(){}Te.prototype=R.prototype;function K(S,H,X){this.props=S,this.context=H,this.refs=W,this.updater=X||Z}var pe=K.prototype=new Te;pe.constructor=K,ne(pe,R.prototype),pe.isPureReactComponent=!0;var Ue=Array.isArray;function Ee(){}var se={H:null,A:null,T:null,S:null},st=Object.prototype.hasOwnProperty;function He(S,H,X){var q=X.ref;return{$$typeof:u,type:S,key:H,ref:q!==void 0?q:null,props:X}}function wt(S,H){return He(S.type,H,S.props)}function kt(S){return typeof S=="object"&&S!==null&&S.$$typeof===u}function ft(S){var H={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(X){return H[X]})}var Ht=/\/+/g;function Wt(S,H){return typeof S=="object"&&S!==null&&S.key!=null?ft(""+S.key):H.toString(36)}function ct(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(Ee,Ee):(S.status="pending",S.then(function(H){S.status==="pending"&&(S.status="fulfilled",S.value=H)},function(H){S.status==="pending"&&(S.status="rejected",S.reason=H)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function D(S,H,X,q,le){var ue=typeof S;(ue==="undefined"||ue==="boolean")&&(S=null);var ve=!1;if(S===null)ve=!0;else switch(ue){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(S.$$typeof){case u:case s:ve=!0;break;case z:return ve=S._init,D(ve(S._payload),H,X,q,le)}}if(ve)return le=le(S),ve=q===""?"."+Wt(S,0):q,Ue(le)?(X="",ve!=null&&(X=ve.replace(Ht,"$&/")+"/"),D(le,H,X,"",function(Ua){return Ua})):le!=null&&(kt(le)&&(le=wt(le,X+(le.key==null||S&&S.key===le.key?"":(""+le.key).replace(Ht,"$&/")+"/")+ve)),H.push(le)),1;ve=0;var dt=q===""?".":q+":";if(Ue(S))for(var Ge=0;Ge<S.length;Ge++)q=S[Ge],ue=dt+Wt(q,Ge),ve+=D(q,H,X,ue,le);else if(Ge=te(S),typeof Ge=="function")for(S=Ge.call(S),Ge=0;!(q=S.next()).done;)q=q.value,ue=dt+Wt(q,Ge++),ve+=D(q,H,X,ue,le);else if(ue==="object"){if(typeof S.then=="function")return D(ct(S),H,X,q,le);throw H=String(S),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return ve}function Y(S,H,X){if(S==null)return S;var q=[],le=0;return D(S,q,"","",function(ue){return H.call(X,ue,le++)}),q}function P(S){if(S._status===-1){var H=S._result;H=H(),H.then(function(X){(S._status===0||S._status===-1)&&(S._status=1,S._result=X)},function(X){(S._status===0||S._status===-1)&&(S._status=2,S._result=X)}),S._status===-1&&(S._status=0,S._result=H)}if(S._status===1)return S._result.default;throw S._result}var ye=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},je={map:Y,forEach:function(S,H,X){Y(S,function(){H.apply(this,arguments)},X)},count:function(S){var H=0;return Y(S,function(){H++}),H},toArray:function(S){return Y(S,function(H){return H})||[]},only:function(S){if(!kt(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ae.Activity=M,ae.Children=je,ae.Component=R,ae.Fragment=o,ae.Profiler=d,ae.PureComponent=K,ae.StrictMode=r,ae.Suspense=N,ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=se,ae.__COMPILER_RUNTIME={__proto__:null,c:function(S){return se.H.useMemoCache(S)}},ae.cache=function(S){return function(){return S.apply(null,arguments)}},ae.cacheSignal=function(){return null},ae.cloneElement=function(S,H,X){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var q=ne({},S.props),le=S.key;if(H!=null)for(ue in H.key!==void 0&&(le=""+H.key),H)!st.call(H,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&H.ref===void 0||(q[ue]=H[ue]);var ue=arguments.length-2;if(ue===1)q.children=X;else if(1<ue){for(var ve=Array(ue),dt=0;dt<ue;dt++)ve[dt]=arguments[dt+2];q.children=ve}return He(S.type,le,q)},ae.createContext=function(S){return S={$$typeof:g,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:h,_context:S},S},ae.createElement=function(S,H,X){var q,le={},ue=null;if(H!=null)for(q in H.key!==void 0&&(ue=""+H.key),H)st.call(H,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(le[q]=H[q]);var ve=arguments.length-2;if(ve===1)le.children=X;else if(1<ve){for(var dt=Array(ve),Ge=0;Ge<ve;Ge++)dt[Ge]=arguments[Ge+2];le.children=dt}if(S&&S.defaultProps)for(q in ve=S.defaultProps,ve)le[q]===void 0&&(le[q]=ve[q]);return He(S,ue,le)},ae.createRef=function(){return{current:null}},ae.forwardRef=function(S){return{$$typeof:y,render:S}},ae.isValidElement=kt,ae.lazy=function(S){return{$$typeof:z,_payload:{_status:-1,_result:S},_init:P}},ae.memo=function(S,H){return{$$typeof:v,type:S,compare:H===void 0?null:H}},ae.startTransition=function(S){var H=se.T,X={};se.T=X;try{var q=S(),le=se.S;le!==null&&le(X,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(Ee,ye)}catch(ue){ye(ue)}finally{H!==null&&X.types!==null&&(H.types=X.types),se.T=H}},ae.unstable_useCacheRefresh=function(){return se.H.useCacheRefresh()},ae.use=function(S){return se.H.use(S)},ae.useActionState=function(S,H,X){return se.H.useActionState(S,H,X)},ae.useCallback=function(S,H){return se.H.useCallback(S,H)},ae.useContext=function(S){return se.H.useContext(S)},ae.useDebugValue=function(){},ae.useDeferredValue=function(S,H){return se.H.useDeferredValue(S,H)},ae.useEffect=function(S,H){return se.H.useEffect(S,H)},ae.useEffectEvent=function(S){return se.H.useEffectEvent(S)},ae.useId=function(){return se.H.useId()},ae.useImperativeHandle=function(S,H,X){return se.H.useImperativeHandle(S,H,X)},ae.useInsertionEffect=function(S,H){return se.H.useInsertionEffect(S,H)},ae.useLayoutEffect=function(S,H){return se.H.useLayoutEffect(S,H)},ae.useMemo=function(S,H){return se.H.useMemo(S,H)},ae.useOptimistic=function(S,H){return se.H.useOptimistic(S,H)},ae.useReducer=function(S,H,X){return se.H.useReducer(S,H,X)},ae.useRef=function(S){return se.H.useRef(S)},ae.useState=function(S){return se.H.useState(S)},ae.useSyncExternalStore=function(S,H,X){return se.H.useSyncExternalStore(S,H,X)},ae.useTransition=function(){return se.H.useTransition()},ae.version="19.2.8",ae}var lm;function ro(){return lm||(lm=1,Vr.exports=Pg()),Vr.exports}var G=ro(),$r={exports:{}},cs={},Kr={exports:{}},Jr={};var am;function ey(){return am||(am=1,(function(u){function s(D,Y){var P=D.length;D.push(Y);e:for(;0<P;){var ye=P-1>>>1,je=D[ye];if(0<d(je,Y))D[ye]=Y,D[P]=je,P=ye;else break e}}function o(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var Y=D[0],P=D.pop();if(P!==Y){D[0]=P;e:for(var ye=0,je=D.length,S=je>>>1;ye<S;){var H=2*(ye+1)-1,X=D[H],q=H+1,le=D[q];if(0>d(X,P))q<je&&0>d(le,X)?(D[ye]=le,D[q]=P,ye=q):(D[ye]=X,D[H]=P,ye=H);else if(q<je&&0>d(le,P))D[ye]=le,D[q]=P,ye=q;else break e}}return Y}function d(D,Y){var P=D.sortIndex-Y.sortIndex;return P!==0?P:D.id-Y.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;u.unstable_now=function(){return h.now()}}else{var g=Date,y=g.now();u.unstable_now=function(){return g.now()-y}}var N=[],v=[],z=1,M=null,k=3,te=!1,Z=!1,ne=!1,W=!1,R=typeof setTimeout=="function"?setTimeout:null,Te=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function pe(D){for(var Y=o(v);Y!==null;){if(Y.callback===null)r(v);else if(Y.startTime<=D)r(v),Y.sortIndex=Y.expirationTime,s(N,Y);else break;Y=o(v)}}function Ue(D){if(ne=!1,pe(D),!Z)if(o(N)!==null)Z=!0,Ee||(Ee=!0,ft());else{var Y=o(v);Y!==null&&ct(Ue,Y.startTime-D)}}var Ee=!1,se=-1,st=5,He=-1;function wt(){return W?!0:!(u.unstable_now()-He<st)}function kt(){if(W=!1,Ee){var D=u.unstable_now();He=D;var Y=!0;try{e:{Z=!1,ne&&(ne=!1,Te(se),se=-1),te=!0;var P=k;try{t:{for(pe(D),M=o(N);M!==null&&!(M.expirationTime>D&&wt());){var ye=M.callback;if(typeof ye=="function"){M.callback=null,k=M.priorityLevel;var je=ye(M.expirationTime<=D);if(D=u.unstable_now(),typeof je=="function"){M.callback=je,pe(D),Y=!0;break t}M===o(N)&&r(N),pe(D)}else r(N);M=o(N)}if(M!==null)Y=!0;else{var S=o(v);S!==null&&ct(Ue,S.startTime-D),Y=!1}}break e}finally{M=null,k=P,te=!1}Y=void 0}}finally{Y?ft():Ee=!1}}}var ft;if(typeof K=="function")ft=function(){K(kt)};else if(typeof MessageChannel<"u"){var Ht=new MessageChannel,Wt=Ht.port2;Ht.port1.onmessage=kt,ft=function(){Wt.postMessage(null)}}else ft=function(){R(kt,0)};function ct(D,Y){se=R(function(){D(u.unstable_now())},Y)}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(D){D.callback=null},u.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):st=0<D?Math.floor(1e3/D):5},u.unstable_getCurrentPriorityLevel=function(){return k},u.unstable_next=function(D){switch(k){case 1:case 2:case 3:var Y=3;break;default:Y=k}var P=k;k=Y;try{return D()}finally{k=P}},u.unstable_requestPaint=function(){W=!0},u.unstable_runWithPriority=function(D,Y){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var P=k;k=D;try{return Y()}finally{k=P}},u.unstable_scheduleCallback=function(D,Y,P){var ye=u.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?ye+P:ye):P=ye,D){case 1:var je=-1;break;case 2:je=250;break;case 5:je=1073741823;break;case 4:je=1e4;break;default:je=5e3}return je=P+je,D={id:z++,callback:Y,priorityLevel:D,startTime:P,expirationTime:je,sortIndex:-1},P>ye?(D.sortIndex=P,s(v,D),o(N)===null&&D===o(v)&&(ne?(Te(se),se=-1):ne=!0,ct(Ue,P-ye))):(D.sortIndex=je,s(N,D),Z||te||(Z=!0,Ee||(Ee=!0,ft()))),D},u.unstable_shouldYield=wt,u.unstable_wrapCallback=function(D){var Y=k;return function(){var P=k;k=Y;try{return D.apply(this,arguments)}finally{k=P}}}})(Jr)),Jr}var nm;function ty(){return nm||(nm=1,Kr.exports=ey()),Kr.exports}var Wr={exports:{}},jt={};var im;function ly(){if(im)return jt;im=1;var u=ro();function s(N){var v="https://react.dev/errors/"+N;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var z=2;z<arguments.length;z++)v+="&args[]="+encodeURIComponent(arguments[z])}return"Minified React error #"+N+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(s(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(N,v,z){var M=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:M==null?null:""+M,children:N,containerInfo:v,implementation:z}}var g=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(N,v){if(N==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,jt.createPortal=function(N,v){var z=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(s(299));return h(N,v,null,z)},jt.flushSync=function(N){var v=g.T,z=r.p;try{if(g.T=null,r.p=2,N)return N()}finally{g.T=v,r.p=z,r.d.f()}},jt.preconnect=function(N,v){typeof N=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,r.d.C(N,v))},jt.prefetchDNS=function(N){typeof N=="string"&&r.d.D(N)},jt.preinit=function(N,v){if(typeof N=="string"&&v&&typeof v.as=="string"){var z=v.as,M=y(z,v.crossOrigin),k=typeof v.integrity=="string"?v.integrity:void 0,te=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;z==="style"?r.d.S(N,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:M,integrity:k,fetchPriority:te}):z==="script"&&r.d.X(N,{crossOrigin:M,integrity:k,fetchPriority:te,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},jt.preinitModule=function(N,v){if(typeof N=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var z=y(v.as,v.crossOrigin);r.d.M(N,{crossOrigin:z,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&r.d.M(N)},jt.preload=function(N,v){if(typeof N=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var z=v.as,M=y(z,v.crossOrigin);r.d.L(N,z,{crossOrigin:M,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})}},jt.preloadModule=function(N,v){if(typeof N=="string")if(v){var z=y(v.as,v.crossOrigin);r.d.m(N,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:z,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else r.d.m(N)},jt.requestFormReset=function(N){r.d.r(N)},jt.unstable_batchedUpdates=function(N,v){return N(v)},jt.useFormState=function(N,v,z){return g.H.useFormState(N,v,z)},jt.useFormStatus=function(){return g.H.useHostTransitionStatus()},jt.version="19.2.8",jt}var sm;function ay(){if(sm)return Wr.exports;sm=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(s){console.error(s)}}return u(),Wr.exports=ly(),Wr.exports}var cm;function ny(){if(cm)return cs;cm=1;var u=ty(),s=ro(),o=ay();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 d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(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 g(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 y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function N(e){if(h(e)!==e)throw Error(r(188))}function v(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return N(n),e;if(i===a)return N(n),t;i=i.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=i;else{for(var f=!1,m=n.child;m;){if(m===l){f=!0,l=n,a=i;break}if(m===a){f=!0,a=n,l=i;break}m=m.sibling}if(!f){for(m=i.child;m;){if(m===l){f=!0,l=i,a=n;break}if(m===a){f=!0,a=i,l=n;break}m=m.sibling}if(!f)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 z(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=z(e),t!==null)return t;e=e.sibling}return null}var M=Object.assign,k=Symbol.for("react.element"),te=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),ne=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),Te=Symbol.for("react.consumer"),K=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),Ue=Symbol.for("react.suspense"),Ee=Symbol.for("react.suspense_list"),se=Symbol.for("react.memo"),st=Symbol.for("react.lazy"),He=Symbol.for("react.activity"),wt=Symbol.for("react.memo_cache_sentinel"),kt=Symbol.iterator;function ft(e){return e===null||typeof e!="object"?null:(e=kt&&e[kt]||e["@@iterator"],typeof e=="function"?e:null)}var Ht=Symbol.for("react.client.reference");function Wt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ht?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ne:return"Fragment";case R:return"Profiler";case W:return"StrictMode";case Ue:return"Suspense";case Ee:return"SuspenseList";case He:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Z:return"Portal";case K:return e.displayName||"Context";case Te:return(e._context.displayName||"Context")+".Consumer";case pe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case se:return t=e.displayName||null,t!==null?t:Wt(e.type)||"Memo";case st:t=e._payload,e=e._init;try{return Wt(e(t))}catch{}}return null}var ct=Array.isArray,D=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},ye=[],je=-1;function S(e){return{current:e}}function H(e){0>je||(e.current=ye[je],ye[je]=null,je--)}function X(e,t){je++,ye[je]=e.current,e.current=t}var q=S(null),le=S(null),ue=S(null),ve=S(null);function dt(e,t){switch(X(ue,t),X(le,e),X(q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Nh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Nh(t),e=jh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(q),X(q,e)}function Ge(){H(q),H(le),H(ue)}function Ua(e){e.memoizedState!==null&&X(ve,e);var t=q.current,l=jh(t,e.type);t!==l&&(X(le,e),X(q,l))}function Ha(e){le.current===e&&(H(q),H(le)),ve.current===e&&(H(ve),ls._currentValue=P)}var ni,ii;function xe(e){if(ni===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);ni=t&&t[1]||"",ii=-1<l.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+ni+e+ii}var La=!1;function ke(e,t){if(!e||La)return"";La=!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(w){var _=w}Reflect.construct(e,[],U)}else{try{U.call()}catch(w){_=w}e.call(U.prototype)}}else{try{throw Error()}catch(w){_=w}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(w){if(w&&_&&typeof w.stack=="string")return[w.stack,_.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),f=i[0],m=i[1];if(f&&m){var x=f.split(`
|
|
4
|
-
`),A=m.split(`
|
|
5
|
-
`);for(n=a=0;a<x.length&&!x[a].includes("DetermineComponentFrameRoot");)a++;for(;n<A.length&&!A[n].includes("DetermineComponentFrameRoot");)n++;if(a===x.length||n===A.length)for(a=x.length-1,n=A.length-1;1<=a&&0<=n&&x[a]!==A[n];)n--;for(;1<=a&&0<=n;a--,n--)if(x[a]!==A[n]){if(a!==1||n!==1)do if(a--,n--,0>n||x[a]!==A[n]){var O=`
|
|
6
|
-
`+x[a].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),O}while(1<=a&&0<=n);break}}}finally{La=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?xe(l):""}function si(e,t){switch(e.tag){case 26:case 27:case 5:return xe(e.type);case 16:return xe("Lazy");case 13:return e.child!==t&&t!==null?xe("Suspense Fallback"):xe("Suspense");case 19:return xe("SuspenseList");case 0:case 15:return ke(e.type,!1);case 11:return ke(e.type.render,!1);case 1:return ke(e.type,!0);case 31:return xe("Activity");default:return""}}function Lt(e){try{var t="",l=null;do t+=si(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
7
|
-
Error generating stack: `+a.message+`
|
|
8
|
-
`+a.stack}}var Ol=Object.prototype.hasOwnProperty,hn=u.unstable_scheduleCallback,Ft=u.unstable_cancelCallback,ys=u.unstable_shouldYield,ci=u.unstable_requestPaint,St=u.unstable_now,vs=u.unstable_getCurrentPriorityLevel,fl=u.unstable_ImmediatePriority,Nl=u.unstable_UserBlockingPriority,It=u.unstable_NormalPriority,ui=u.unstable_LowPriority,Ba=u.unstable_IdlePriority,mn=u.log,ri=u.unstable_setDisableYieldValue,Pt=null,ut=null;function Bt(e){if(typeof mn=="function"&&ri(e),ut&&typeof ut.setStrictMode=="function")try{ut.setStrictMode(Pt,e)}catch{}}var Nt=Math.clz32?Math.clz32:oi,xs=Math.log,bs=Math.LN2;function oi(e){return e>>>=0,e===0?32:31-(xs(e)/bs|0)|0}var ta=256,dl=262144,hl=4194304;function jl(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 qa(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var m=a&134217727;return m!==0?(a=m&~i,a!==0?n=jl(a):(f&=m,f!==0?n=jl(f):l||(l=m&~e,l!==0&&(n=jl(l))))):(m=a&~i,m!==0?n=jl(m):f!==0?n=jl(f):l||(l=a&~e,l!==0&&(n=jl(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function la(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ss(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 fi(){var e=hl;return hl<<=1,(hl&62914560)===0&&(hl=4194304),e}function aa(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Tl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function el(e,t,l,a,n,i){var f=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 m=e.entanglements,x=e.expirationTimes,A=e.hiddenUpdates;for(l=f&~l;0<l;){var O=31-Nt(l),U=1<<O;m[O]=0,x[O]=-1;var _=A[O];if(_!==null)for(A[O]=null,O=0;O<_.length;O++){var w=_[O];w!==null&&(w.lane&=-536870913)}l&=~U}a!==0&&Dl(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(f&~t))}function Dl(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Nt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function pn(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Nt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function gn(e,t){var l=t&-t;return l=(l&42)!==0?1:di(l),(l&(e.suspendedLanes|t))!==0?0:l}function di(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 yn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function vn(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:Vh(e.type))}function hi(e,t){var l=Y.p;try{return Y.p=e,t()}finally{Y.p=l}}var tl=Math.random().toString(36).slice(2),lt="__reactFiber$"+tl,Ke="__reactProps$"+tl,na="__reactContainer$"+tl,mi="__reactEvents$"+tl,Xe="__reactListeners$"+tl,ia="__reactHandles$"+tl,Ns="__reactResources$"+tl,sa="__reactMarker$"+tl;function Ya(e){delete e[lt],delete e[Ke],delete e[mi],delete e[Xe],delete e[ia]}function Ml(e){var t=e[lt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[na]||l[lt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=zh(e);e!==null;){if(l=e[lt])return l;e=zh(e)}return t}e=l,l=e.parentNode}return null}function Cl(e){if(e=e[lt]||e[na]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ga(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function ca(e){var t=e[Ns];return t||(t=e[Ns]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[sa]=!0}var js=new Set,ml={};function El(e,t){pl(e,t),pl(e+"Capture",t)}function pl(e,t){for(ml[e]=t,e=0;e<t.length;e++)js.add(t[e])}var Ul=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]*$"),Ts={},Xa={};function Es(e){return Ol.call(Xa,e)?!0:Ol.call(Ts,e)?!1:Ul.test(e)?Xa[e]=!0:(Ts[e]=!0,!1)}function xn(e,t,l){if(Es(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 Qa(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 ll(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 ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sn(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 n=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(f){l=""+f,i.call(this,f)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Al(e){if(!e._valueTracker){var t=bn(e)?"checked":"value";e._valueTracker=Sn(e,t,""+e[t])}}function ua(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=bn(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function At(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 Qc=/[\n"\\]/g;function mt(e){return e.replace(Qc,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function pi(e,t,l,a,n,i,f,m){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ht(t)):e.value!==""+ht(t)&&(e.value=""+ht(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Nn(e,f,ht(t)):l!=null?Nn(e,f,ht(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+ht(m):e.removeAttribute("name")}function gi(e,t,l,a,n,i,f,m){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Al(e);return}l=l!=null?""+ht(l):"",t=t!=null?""+ht(t):l,m||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=m?e.checked:!!a,e.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Al(e)}function Nn(e,t,l){t==="number"&&At(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Hl(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+ht(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function yi(e,t,l){if(t!=null&&(t=""+ht(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+ht(l):""}function As(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(ct(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=ht(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Al(e)}function Ll(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Zc=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 _s(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||Zc.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function vi(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 n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&_s(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&_s(e,i,t[i])}function ra(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 xi=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"]]),B=/^[\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 p(e){return B.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function j(){}var L=null;function Q(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var V=null,I=null;function Ae(e){var t=Cl(e);if(t&&(e=t.stateNode)){var l=e[Ke]||null;e:switch(e=t.stateNode,t.type){case"input":if(pi(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="'+mt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[Ke]||null;if(!n)throw Error(r(90));pi(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&ua(a)}break e;case"textarea":yi(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Hl(e,!!l.multiple,t,!1)}}}var Me=!1;function pt(e,t,l){if(Me)return e(t,l);Me=!0;try{var a=e(t);return a}finally{if(Me=!1,(V!==null||I!==null)&&(mc(),V&&(t=V,e=I,I=V=null,Ae(t),e)))for(t=0;t<e.length;t++)Ae(e[t])}}function We(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Ke]||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 qt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),at=!1;if(qt)try{var bi={};Object.defineProperty(bi,"passive",{get:function(){at=!0}}),window.addEventListener("test",bi,bi),window.removeEventListener("test",bi,bi)}catch{at=!1}var oa=null,Vc=null,ws=null;function No(){if(ws)return ws;var e,t=Vc,l=t.length,a,n="value"in oa?oa.value:oa.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var f=l-e;for(a=1;a<=f&&t[l-a]===n[i-a];a++);return ws=n.slice(e,1<a?1-a:void 0)}function ks(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 zs(){return!0}function jo(){return!1}function zt(e){function t(l,a,n,i,f){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=f,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(l=e[m],this[m]=l?l(i):i[m]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?zs:jo,this.isPropagationStopped=jo,this}return M(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=zs)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=zs)},persist:function(){},isPersistent:zs}),t}var Za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rs=zt(Za),Si=M({},Za,{view:0,detail:0}),Jm=zt(Si),$c,Kc,Ni,Os=M({},Si,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wc,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!==Ni&&(Ni&&e.type==="mousemove"?($c=e.screenX-Ni.screenX,Kc=e.screenY-Ni.screenY):Kc=$c=0,Ni=e),$c)},movementY:function(e){return"movementY"in e?e.movementY:Kc}}),To=zt(Os),Wm=M({},Os,{dataTransfer:0}),Fm=zt(Wm),Im=M({},Si,{relatedTarget:0}),Jc=zt(Im),Pm=M({},Za,{animationName:0,elapsedTime:0,pseudoElement:0}),ep=zt(Pm),tp=M({},Za,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lp=zt(tp),ap=M({},Za,{data:0}),Eo=zt(ap),np={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ip={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"},sp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sp[e])?!!t[e]:!1}function Wc(){return cp}var up=M({},Si,{key:function(e){if(e.key){var t=np[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ks(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ip[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wc,charCode:function(e){return e.type==="keypress"?ks(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ks(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rp=zt(up),op=M({},Os,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ao=zt(op),fp=M({},Si,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wc}),dp=zt(fp),hp=M({},Za,{propertyName:0,elapsedTime:0,pseudoElement:0}),mp=zt(hp),pp=M({},Os,{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}),gp=zt(pp),yp=M({},Za,{newState:0,oldState:0}),vp=zt(yp),xp=[9,13,27,32],Fc=qt&&"CompositionEvent"in window,ji=null;qt&&"documentMode"in document&&(ji=document.documentMode);var bp=qt&&"TextEvent"in window&&!ji,_o=qt&&(!Fc||ji&&8<ji&&11>=ji),wo=" ",ko=!1;function zo(e,t){switch(e){case"keyup":return xp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ro(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function Sp(e,t){switch(e){case"compositionend":return Ro(t);case"keypress":return t.which!==32?null:(ko=!0,wo);case"textInput":return e=t.data,e===wo&&ko?null:e;default:return null}}function Np(e,t){if(jn)return e==="compositionend"||!Fc&&zo(e,t)?(e=No(),ws=Vc=oa=null,jn=!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 _o&&t.locale!=="ko"?null:t.data;default:return null}}var jp={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 Oo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jp[e.type]:t==="textarea"}function Do(e,t,l,a){V?I?I.push(a):I=[a]:V=a,t=Sc(t,"onChange"),0<t.length&&(l=new Rs("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Ti=null,Ei=null;function Tp(e){gh(e,0)}function Ds(e){var t=Ga(e);if(ua(t))return e}function Mo(e,t){if(e==="change")return t}var Co=!1;if(qt){var Ic;if(qt){var Pc="oninput"in document;if(!Pc){var Uo=document.createElement("div");Uo.setAttribute("oninput","return;"),Pc=typeof Uo.oninput=="function"}Ic=Pc}else Ic=!1;Co=Ic&&(!document.documentMode||9<document.documentMode)}function Ho(){Ti&&(Ti.detachEvent("onpropertychange",Lo),Ei=Ti=null)}function Lo(e){if(e.propertyName==="value"&&Ds(Ei)){var t=[];Do(t,Ei,e,Q(e)),pt(Tp,t)}}function Ep(e,t,l){e==="focusin"?(Ho(),Ti=t,Ei=l,Ti.attachEvent("onpropertychange",Lo)):e==="focusout"&&Ho()}function Ap(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ds(Ei)}function _p(e,t){if(e==="click")return Ds(t)}function wp(e,t){if(e==="input"||e==="change")return Ds(t)}function kp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yt=typeof Object.is=="function"?Object.is:kp;function Ai(e,t){if(Yt(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 n=l[a];if(!Ol.call(t,n)||!Yt(e[n],t[n]))return!1}return!0}function Bo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qo(e,t){var l=Bo(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=Bo(l)}}function Yo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Go(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=At(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=At(e.document)}return t}function eu(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 zp=qt&&"documentMode"in document&&11>=document.documentMode,Tn=null,tu=null,_i=null,lu=!1;function Xo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;lu||Tn==null||Tn!==At(a)||(a=Tn,"selectionStart"in a&&eu(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}),_i&&Ai(_i,a)||(_i=a,a=Sc(tu,"onSelect"),0<a.length&&(t=new Rs("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Tn)))}function Va(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var En={animationend:Va("Animation","AnimationEnd"),animationiteration:Va("Animation","AnimationIteration"),animationstart:Va("Animation","AnimationStart"),transitionrun:Va("Transition","TransitionRun"),transitionstart:Va("Transition","TransitionStart"),transitioncancel:Va("Transition","TransitionCancel"),transitionend:Va("Transition","TransitionEnd")},au={},Qo={};qt&&(Qo=document.createElement("div").style,"AnimationEvent"in window||(delete En.animationend.animation,delete En.animationiteration.animation,delete En.animationstart.animation),"TransitionEvent"in window||delete En.transitionend.transition);function $a(e){if(au[e])return au[e];if(!En[e])return e;var t=En[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Qo)return au[e]=t[l];return e}var Zo=$a("animationend"),Vo=$a("animationiteration"),$o=$a("animationstart"),Rp=$a("transitionrun"),Op=$a("transitionstart"),Dp=$a("transitioncancel"),Ko=$a("transitionend"),Jo=new Map,nu="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(" ");nu.push("scrollEnd");function gl(e,t){Jo.set(e,t),El(t,[e])}var Ms=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)},al=[],An=0,iu=0;function Cs(){for(var e=An,t=iu=An=0;t<e;){var l=al[t];al[t++]=null;var a=al[t];al[t++]=null;var n=al[t];al[t++]=null;var i=al[t];if(al[t++]=null,a!==null&&n!==null){var f=a.pending;f===null?n.next=n:(n.next=f.next,f.next=n),a.pending=n}i!==0&&Wo(l,n,i)}}function Us(e,t,l,a){al[An++]=e,al[An++]=t,al[An++]=l,al[An++]=a,iu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function su(e,t,l,a){return Us(e,t,l,a),Hs(e)}function Ka(e,t){return Us(e,null,null,t),Hs(e)}function Wo(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-Nt(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function Hs(e){if(50<Ji)throw Ji=0,pr=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var _n={};function Mp(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 Gt(e,t,l,a){return new Mp(e,t,l,a)}function cu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bl(e,t){var l=e.alternate;return l===null?(l=Gt(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 Fo(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 Ls(e,t,l,a,n,i){var f=0;if(a=e,typeof e=="function")cu(e)&&(f=1);else if(typeof e=="string")f=Bg(e,l,q.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case He:return e=Gt(31,l,t,n),e.elementType=He,e.lanes=i,e;case ne:return Ja(l.children,n,i,t);case W:f=8,n|=24;break;case R:return e=Gt(12,l,t,n|2),e.elementType=R,e.lanes=i,e;case Ue:return e=Gt(13,l,t,n),e.elementType=Ue,e.lanes=i,e;case Ee:return e=Gt(19,l,t,n),e.elementType=Ee,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K:f=10;break e;case Te:f=9;break e;case pe:f=11;break e;case se:f=14;break e;case st:f=16,a=null;break e}f=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=Gt(f,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function Ja(e,t,l,a){return e=Gt(7,e,a,t),e.lanes=l,e}function uu(e,t,l){return e=Gt(6,e,null,t),e.lanes=l,e}function Io(e){var t=Gt(18,null,null,0);return t.stateNode=e,t}function ru(e,t,l){return t=Gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Po=new WeakMap;function nl(e,t){if(typeof e=="object"&&e!==null){var l=Po.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Lt(t)},Po.set(e,t),t)}return{value:e,source:t,stack:Lt(t)}}var wn=[],kn=0,Bs=null,wi=0,il=[],sl=0,fa=null,_l=1,wl="";function ql(e,t){wn[kn++]=wi,wn[kn++]=Bs,Bs=e,wi=t}function ef(e,t,l){il[sl++]=_l,il[sl++]=wl,il[sl++]=fa,fa=e;var a=_l;e=wl;var n=32-Nt(a)-1;a&=~(1<<n),l+=1;var i=32-Nt(t)+n;if(30<i){var f=n-n%5;i=(a&(1<<f)-1).toString(32),a>>=f,n-=f,_l=1<<32-Nt(t)+n|l<<n|a,wl=i+e}else _l=1<<i|l<<n|a,wl=e}function ou(e){e.return!==null&&(ql(e,1),ef(e,1,0))}function fu(e){for(;e===Bs;)Bs=wn[--kn],wn[kn]=null,wi=wn[--kn],wn[kn]=null;for(;e===fa;)fa=il[--sl],il[sl]=null,wl=il[--sl],il[sl]=null,_l=il[--sl],il[sl]=null}function tf(e,t){il[sl++]=_l,il[sl++]=wl,il[sl++]=fa,_l=t.id,wl=t.overflow,fa=e}var gt=null,Le=null,me=!1,da=null,cl=!1,du=Error(r(519));function ha(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ki(nl(t,e)),du}function lf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[lt]=e,t[Ke]=a,l){case"dialog":oe("cancel",t),oe("close",t);break;case"iframe":case"object":case"embed":oe("load",t);break;case"video":case"audio":for(l=0;l<Fi.length;l++)oe(Fi[l],t);break;case"source":oe("error",t);break;case"img":case"image":case"link":oe("error",t),oe("load",t);break;case"details":oe("toggle",t);break;case"input":oe("invalid",t),gi(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":oe("invalid",t);break;case"textarea":oe("invalid",t),As(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||bh(t.textContent,l)?(a.popover!=null&&(oe("beforetoggle",t),oe("toggle",t)),a.onScroll!=null&&oe("scroll",t),a.onScrollEnd!=null&&oe("scrollend",t),a.onClick!=null&&(t.onclick=j),t=!0):t=!1,t||ha(e,!0)}function af(e){for(gt=e.return;gt;)switch(gt.tag){case 5:case 31:case 13:cl=!1;return;case 27:case 3:cl=!0;return;default:gt=gt.return}}function zn(e){if(e!==gt)return!1;if(!me)return af(e),me=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||zr(e.type,e.memoizedProps)),l=!l),l&&Le&&ha(e),af(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Le=kh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Le=kh(e)}else t===27?(t=Le,_a(e.type)?(e=Cr,Cr=null,Le=e):Le=t):Le=gt?rl(e.stateNode.nextSibling):null;return!0}function Wa(){Le=gt=null,me=!1}function hu(){var e=da;return e!==null&&(Mt===null?Mt=e:Mt.push.apply(Mt,e),da=null),e}function ki(e){da===null?da=[e]:da.push(e)}var mu=S(null),Fa=null,Yl=null;function ma(e,t,l){X(mu,t._currentValue),t._currentValue=l}function Gl(e){e._currentValue=mu.current,H(mu)}function pu(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 gu(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var f=n.child;i=i.firstContext;e:for(;i!==null;){var m=i;i=n;for(var x=0;x<t.length;x++)if(m.context===t[x]){i.lanes|=l,m=i.alternate,m!==null&&(m.lanes|=l),pu(i.return,l,e),a||(f=null);break e}i=m.next}}else if(n.tag===18){if(f=n.return,f===null)throw Error(r(341));f.lanes|=l,i=f.alternate,i!==null&&(i.lanes|=l),pu(f,l,e),f=null}else f=n.child;if(f!==null)f.return=n;else for(f=n;f!==null;){if(f===e){f=null;break}if(n=f.sibling,n!==null){n.return=f.return,f=n;break}f=f.return}n=f}}function Rn(e,t,l,a){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var f=n.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var m=n.type;Yt(n.pendingProps.value,f.value)||(e!==null?e.push(m):e=[m])}}else if(n===ve.current){if(f=n.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(ls):e=[ls])}n=n.return}e!==null&&gu(t,e,l,a),t.flags|=262144}function qs(e){for(e=e.firstContext;e!==null;){if(!Yt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ia(e){Fa=e,Yl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function yt(e){return nf(Fa,e)}function Ys(e,t){return Fa===null&&Ia(e),nf(e,t)}function nf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Yl===null){if(e===null)throw Error(r(308));Yl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Yl=Yl.next=t;return l}var Cp=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()})}},Up=u.unstable_scheduleCallback,Hp=u.unstable_NormalPriority,Fe={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yu(){return{controller:new Cp,data:new Map,refCount:0}}function zi(e){e.refCount--,e.refCount===0&&Up(Hp,function(){e.controller.abort()})}var Ri=null,vu=0,On=0,Dn=null;function Lp(e,t){if(Ri===null){var l=Ri=[];vu=0,On=Sr(),Dn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return vu++,t.then(sf,sf),t}function sf(){if(--vu===0&&Ri!==null){Dn!==null&&(Dn.status="fulfilled");var e=Ri;Ri=null,On=0,Dn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Bp(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var cf=D.S;D.S=function(e,t){Qd=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Lp(e,t),cf!==null&&cf(e,t)};var Pa=S(null);function xu(){var e=Pa.current;return e!==null?e:Ce.pooledCache}function Gs(e,t){t===null?X(Pa,Pa.current):X(Pa,t.pool)}function uf(){var e=xu();return e===null?null:{parent:Fe._currentValue,pool:e}}var Mn=Error(r(460)),bu=Error(r(474)),Xs=Error(r(542)),Qs={then:function(){}};function rf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function of(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(j,j),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,df(e),e;default:if(typeof t.status=="string")t.then(j,j);else{if(e=Ce,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,df(e),e}throw tn=t,Mn}}function en(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(tn=l,Mn):l}}var tn=null;function ff(){if(tn===null)throw Error(r(459));var e=tn;return tn=null,e}function df(e){if(e===Mn||e===Xs)throw Error(r(483))}var Cn=null,Oi=0;function Zs(e){var t=Oi;return Oi+=1,Cn===null&&(Cn=[]),of(Cn,e,t)}function Di(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Vs(e,t){throw t.$$typeof===k?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function hf(e){function t(T,b){if(e){var E=T.deletions;E===null?(T.deletions=[b],T.flags|=16):E.push(b)}}function l(T,b){if(!e)return null;for(;b!==null;)t(T,b),b=b.sibling;return null}function a(T){for(var b=new Map;T!==null;)T.key!==null?b.set(T.key,T):b.set(T.index,T),T=T.sibling;return b}function n(T,b){return T=Bl(T,b),T.index=0,T.sibling=null,T}function i(T,b,E){return T.index=E,e?(E=T.alternate,E!==null?(E=E.index,E<b?(T.flags|=67108866,b):E):(T.flags|=67108866,b)):(T.flags|=1048576,b)}function f(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function m(T,b,E,C){return b===null||b.tag!==6?(b=uu(E,T.mode,C),b.return=T,b):(b=n(b,E),b.return=T,b)}function x(T,b,E,C){var F=E.type;return F===ne?O(T,b,E.props.children,C,E.key):b!==null&&(b.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===st&&en(F)===b.type)?(b=n(b,E.props),Di(b,E),b.return=T,b):(b=Ls(E.type,E.key,E.props,null,T.mode,C),Di(b,E),b.return=T,b)}function A(T,b,E,C){return b===null||b.tag!==4||b.stateNode.containerInfo!==E.containerInfo||b.stateNode.implementation!==E.implementation?(b=ru(E,T.mode,C),b.return=T,b):(b=n(b,E.children||[]),b.return=T,b)}function O(T,b,E,C,F){return b===null||b.tag!==7?(b=Ja(E,T.mode,C,F),b.return=T,b):(b=n(b,E),b.return=T,b)}function U(T,b,E){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=uu(""+b,T.mode,E),b.return=T,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case te:return E=Ls(b.type,b.key,b.props,null,T.mode,E),Di(E,b),E.return=T,E;case Z:return b=ru(b,T.mode,E),b.return=T,b;case st:return b=en(b),U(T,b,E)}if(ct(b)||ft(b))return b=Ja(b,T.mode,E,null),b.return=T,b;if(typeof b.then=="function")return U(T,Zs(b),E);if(b.$$typeof===K)return U(T,Ys(T,b),E);Vs(T,b)}return null}function _(T,b,E,C){var F=b!==null?b.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return F!==null?null:m(T,b,""+E,C);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case te:return E.key===F?x(T,b,E,C):null;case Z:return E.key===F?A(T,b,E,C):null;case st:return E=en(E),_(T,b,E,C)}if(ct(E)||ft(E))return F!==null?null:O(T,b,E,C,null);if(typeof E.then=="function")return _(T,b,Zs(E),C);if(E.$$typeof===K)return _(T,b,Ys(T,E),C);Vs(T,E)}return null}function w(T,b,E,C,F){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return T=T.get(E)||null,m(b,T,""+C,F);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case te:return T=T.get(C.key===null?E:C.key)||null,x(b,T,C,F);case Z:return T=T.get(C.key===null?E:C.key)||null,A(b,T,C,F);case st:return C=en(C),w(T,b,E,C,F)}if(ct(C)||ft(C))return T=T.get(E)||null,O(b,T,C,F,null);if(typeof C.then=="function")return w(T,b,E,Zs(C),F);if(C.$$typeof===K)return w(T,b,E,Ys(b,C),F);Vs(b,C)}return null}function $(T,b,E,C){for(var F=null,be=null,J=b,ce=b=0,he=null;J!==null&&ce<E.length;ce++){J.index>ce?(he=J,J=null):he=J.sibling;var Se=_(T,J,E[ce],C);if(Se===null){J===null&&(J=he);break}e&&J&&Se.alternate===null&&t(T,J),b=i(Se,b,ce),be===null?F=Se:be.sibling=Se,be=Se,J=he}if(ce===E.length)return l(T,J),me&&ql(T,ce),F;if(J===null){for(;ce<E.length;ce++)J=U(T,E[ce],C),J!==null&&(b=i(J,b,ce),be===null?F=J:be.sibling=J,be=J);return me&&ql(T,ce),F}for(J=a(J);ce<E.length;ce++)he=w(J,T,ce,E[ce],C),he!==null&&(e&&he.alternate!==null&&J.delete(he.key===null?ce:he.key),b=i(he,b,ce),be===null?F=he:be.sibling=he,be=he);return e&&J.forEach(function(Oa){return t(T,Oa)}),me&&ql(T,ce),F}function ee(T,b,E,C){if(E==null)throw Error(r(151));for(var F=null,be=null,J=b,ce=b=0,he=null,Se=E.next();J!==null&&!Se.done;ce++,Se=E.next()){J.index>ce?(he=J,J=null):he=J.sibling;var Oa=_(T,J,Se.value,C);if(Oa===null){J===null&&(J=he);break}e&&J&&Oa.alternate===null&&t(T,J),b=i(Oa,b,ce),be===null?F=Oa:be.sibling=Oa,be=Oa,J=he}if(Se.done)return l(T,J),me&&ql(T,ce),F;if(J===null){for(;!Se.done;ce++,Se=E.next())Se=U(T,Se.value,C),Se!==null&&(b=i(Se,b,ce),be===null?F=Se:be.sibling=Se,be=Se);return me&&ql(T,ce),F}for(J=a(J);!Se.done;ce++,Se=E.next())Se=w(J,T,ce,Se.value,C),Se!==null&&(e&&Se.alternate!==null&&J.delete(Se.key===null?ce:Se.key),b=i(Se,b,ce),be===null?F=Se:be.sibling=Se,be=Se);return e&&J.forEach(function(Wg){return t(T,Wg)}),me&&ql(T,ce),F}function Oe(T,b,E,C){if(typeof E=="object"&&E!==null&&E.type===ne&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case te:e:{for(var F=E.key;b!==null;){if(b.key===F){if(F=E.type,F===ne){if(b.tag===7){l(T,b.sibling),C=n(b,E.props.children),C.return=T,T=C;break e}}else if(b.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===st&&en(F)===b.type){l(T,b.sibling),C=n(b,E.props),Di(C,E),C.return=T,T=C;break e}l(T,b);break}else t(T,b);b=b.sibling}E.type===ne?(C=Ja(E.props.children,T.mode,C,E.key),C.return=T,T=C):(C=Ls(E.type,E.key,E.props,null,T.mode,C),Di(C,E),C.return=T,T=C)}return f(T);case Z:e:{for(F=E.key;b!==null;){if(b.key===F)if(b.tag===4&&b.stateNode.containerInfo===E.containerInfo&&b.stateNode.implementation===E.implementation){l(T,b.sibling),C=n(b,E.children||[]),C.return=T,T=C;break e}else{l(T,b);break}else t(T,b);b=b.sibling}C=ru(E,T.mode,C),C.return=T,T=C}return f(T);case st:return E=en(E),Oe(T,b,E,C)}if(ct(E))return $(T,b,E,C);if(ft(E)){if(F=ft(E),typeof F!="function")throw Error(r(150));return E=F.call(E),ee(T,b,E,C)}if(typeof E.then=="function")return Oe(T,b,Zs(E),C);if(E.$$typeof===K)return Oe(T,b,Ys(T,E),C);Vs(T,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,b!==null&&b.tag===6?(l(T,b.sibling),C=n(b,E),C.return=T,T=C):(l(T,b),C=uu(E,T.mode,C),C.return=T,T=C),f(T)):l(T,b)}return function(T,b,E,C){try{Oi=0;var F=Oe(T,b,E,C);return Cn=null,F}catch(J){if(J===Mn||J===Xs)throw J;var be=Gt(29,J,null,T.mode);return be.lanes=C,be.return=T,be}}}var ln=hf(!0),mf=hf(!1),pa=!1;function Su(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nu(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 ga(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ya(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ne&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Hs(e),Wo(e,null,l),t}return Us(e,a,t,l),Hs(e)}function Mi(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,pn(e,l)}}function ju(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=f:i=i.next=f,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,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 Tu=!1;function Ci(){if(Tu){var e=Dn;if(e!==null)throw e}}function Ui(e,t,l,a){Tu=!1;var n=e.updateQueue;pa=!1;var i=n.firstBaseUpdate,f=n.lastBaseUpdate,m=n.shared.pending;if(m!==null){n.shared.pending=null;var x=m,A=x.next;x.next=null,f===null?i=A:f.next=A,f=x;var O=e.alternate;O!==null&&(O=O.updateQueue,m=O.lastBaseUpdate,m!==f&&(m===null?O.firstBaseUpdate=A:m.next=A,O.lastBaseUpdate=x))}if(i!==null){var U=n.baseState;f=0,O=A=x=null,m=i;do{var _=m.lane&-536870913,w=_!==m.lane;if(w?(de&_)===_:(a&_)===_){_!==0&&_===On&&(Tu=!0),O!==null&&(O=O.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var $=e,ee=m;_=t;var Oe=l;switch(ee.tag){case 1:if($=ee.payload,typeof $=="function"){U=$.call(Oe,U,_);break e}U=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=ee.payload,_=typeof $=="function"?$.call(Oe,U,_):$,_==null)break e;U=M({},U,_);break e;case 2:pa=!0}}_=m.callback,_!==null&&(e.flags|=64,w&&(e.flags|=8192),w=n.callbacks,w===null?n.callbacks=[_]:w.push(_))}else w={lane:_,tag:m.tag,payload:m.payload,callback:m.callback,next:null},O===null?(A=O=w,x=U):O=O.next=w,f|=_;if(m=m.next,m===null){if(m=n.shared.pending,m===null)break;w=m,m=w.next,w.next=null,n.lastBaseUpdate=w,n.shared.pending=null}}while(!0);O===null&&(x=U),n.baseState=x,n.firstBaseUpdate=A,n.lastBaseUpdate=O,i===null&&(n.shared.lanes=0),Na|=f,e.lanes=f,e.memoizedState=U}}function pf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function gf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)pf(l[e],t)}var Un=S(null),$s=S(0);function yf(e,t){e=Fl,X($s,e),X(Un,t),Fl=e|t.baseLanes}function Eu(){X($s,Fl),X(Un,Un.current)}function Au(){Fl=$s.current,H(Un),H($s)}var Xt=S(null),ul=null;function va(e){var t=e.alternate;X(Ve,Ve.current&1),X(Xt,e),ul===null&&(t===null||Un.current!==null||t.memoizedState!==null)&&(ul=e)}function _u(e){X(Ve,Ve.current),X(Xt,e),ul===null&&(ul=e)}function vf(e){e.tag===22?(X(Ve,Ve.current),X(Xt,e),ul===null&&(ul=e)):xa()}function xa(){X(Ve,Ve.current),X(Xt,Xt.current)}function Qt(e){H(Xt),ul===e&&(ul=null),H(Ve)}var Ve=S(0);function Ks(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Dr(l)||Mr(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 Xl=0,ie=null,ze=null,Ie=null,Js=!1,Hn=!1,an=!1,Ws=0,Hi=0,Ln=null,qp=0;function Qe(){throw Error(r(321))}function wu(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Yt(e[l],t[l]))return!1;return!0}function ku(e,t,l,a,n,i){return Xl=i,ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?td:Qu,an=!1,i=l(a,n),an=!1,Hn&&(i=bf(t,l,a,n)),xf(e),i}function xf(e){D.H=qi;var t=ze!==null&&ze.next!==null;if(Xl=0,Ie=ze=ie=null,Js=!1,Hi=0,Ln=null,t)throw Error(r(300));e===null||Pe||(e=e.dependencies,e!==null&&qs(e)&&(Pe=!0))}function bf(e,t,l,a){ie=e;var n=0;do{if(Hn&&(Ln=null),Hi=0,Hn=!1,25<=n)throw Error(r(301));if(n+=1,Ie=ze=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}D.H=ld,i=t(l,a)}while(Hn);return i}function Yp(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Li(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(ie.flags|=1024),t}function zu(){var e=Ws!==0;return Ws=0,e}function Ru(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Ou(e){if(Js){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Js=!1}Xl=0,Ie=ze=ie=null,Hn=!1,Hi=Ws=0,Ln=null}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?ie.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function $e(){if(ze===null){var e=ie.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Ie===null?ie.memoizedState:Ie.next;if(t!==null)Ie=t,ze=e;else{if(e===null)throw ie.alternate===null?Error(r(467)):Error(r(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Ie===null?ie.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function Fs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Li(e){var t=Hi;return Hi+=1,Ln===null&&(Ln=[]),e=of(Ln,e,t),t=ie,(Ie===null?t.memoizedState:Ie.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?td:Qu),e}function Is(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Li(e);if(e.$$typeof===K)return yt(e)}throw Error(r(438,String(e)))}function Du(e){var t=null,l=ie.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ie.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Fs(),ie.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]=wt;return t.index++,l}function Ql(e,t){return typeof t=="function"?t(e):t}function Ps(e){var t=$e();return Mu(t,ze,e)}function Mu(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var f=n.next;n.next=i.next,i.next=f}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var m=f=null,x=null,A=t,O=!1;do{var U=A.lane&-536870913;if(U!==A.lane?(de&U)===U:(Xl&U)===U){var _=A.revertLane;if(_===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),U===On&&(O=!0);else if((Xl&_)===_){A=A.next,_===On&&(O=!0);continue}else U={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},x===null?(m=x=U,f=i):x=x.next=U,ie.lanes|=_,Na|=_;U=A.action,an&&l(i,U),i=A.hasEagerState?A.eagerState:l(i,U)}else _={lane:U,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},x===null?(m=x=_,f=i):x=x.next=_,ie.lanes|=U,Na|=U;A=A.next}while(A!==null&&A!==t);if(x===null?f=i:x.next=m,!Yt(i,e.memoizedState)&&(Pe=!0,O&&(l=Dn,l!==null)))throw l;e.memoizedState=i,e.baseState=f,e.baseQueue=x,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Cu(e){var t=$e(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var f=n=n.next;do i=e(i,f.action),f=f.next;while(f!==n);Yt(i,t.memoizedState)||(Pe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Sf(e,t,l){var a=ie,n=$e(),i=me;if(i){if(l===void 0)throw Error(r(407));l=l()}else l=t();var f=!Yt((ze||n).memoizedState,l);if(f&&(n.memoizedState=l,Pe=!0),n=n.queue,Lu(Tf.bind(null,a,n,e),[e]),n.getSnapshot!==t||f||Ie!==null&&Ie.memoizedState.tag&1){if(a.flags|=2048,Bn(9,{destroy:void 0},jf.bind(null,a,n,l,t),null),Ce===null)throw Error(r(349));i||(Xl&127)!==0||Nf(a,t,l)}return l}function Nf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ie.updateQueue,t===null?(t=Fs(),ie.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function jf(e,t,l,a){t.value=l,t.getSnapshot=a,Ef(t)&&Af(e)}function Tf(e,t,l){return l(function(){Ef(t)&&Af(e)})}function Ef(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Yt(e,l)}catch{return!0}}function Af(e){var t=Ka(e,2);t!==null&&Ct(t,e,2)}function Uu(e){var t=_t();if(typeof e=="function"){var l=e;if(e=l(),an){Bt(!0);try{l()}finally{Bt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:e},t}function _f(e,t,l,a){return e.baseState=l,Mu(e,ze,typeof a=="function"?a:Ql)}function Gp(e,t,l,a,n){if(lc(e))throw Error(r(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){i.listeners.push(f)}};D.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,wf(t,i)):(i.next=l.next,t.pending=l.next=i)}}function wf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=D.T,f={};D.T=f;try{var m=l(n,a),x=D.S;x!==null&&x(f,m),kf(e,t,m)}catch(A){Hu(e,t,A)}finally{i!==null&&f.types!==null&&(i.types=f.types),D.T=i}}else try{i=l(n,a),kf(e,t,i)}catch(A){Hu(e,t,A)}}function kf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){zf(e,t,a)},function(a){return Hu(e,t,a)}):zf(e,t,l)}function zf(e,t,l){t.status="fulfilled",t.value=l,Rf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,wf(e,l)))}function Hu(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Rf(t),t=t.next;while(t!==a)}e.action=null}function Rf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Of(e,t){return t}function Df(e,t){if(me){var l=Ce.formState;if(l!==null){e:{var a=ie;if(me){if(Le){t:{for(var n=Le,i=cl;n.nodeType!==8;){if(!i){n=null;break t}if(n=rl(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Le=rl(n.nextSibling),a=n.data==="F!";break e}}ha(a)}a=!1}a&&(t=l[0])}}return l=_t(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Of,lastRenderedState:t},l.queue=a,l=If.bind(null,ie,a),a.dispatch=l,a=Uu(!1),i=Xu.bind(null,ie,!1,a.queue),a=_t(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Gp.bind(null,ie,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Mf(e){var t=$e();return Cf(t,ze,e)}function Cf(e,t,l){if(t=Mu(e,t,Of)[0],e=Ps(Ql)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Li(t)}catch(f){throw f===Mn?Xs:f}else a=t;t=$e();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(ie.flags|=2048,Bn(9,{destroy:void 0},Xp.bind(null,n,l),null)),[a,i,e]}function Xp(e,t){e.action=t}function Uf(e){var t=$e(),l=ze;if(l!==null)return Cf(t,l,e);$e(),t=t.memoizedState,l=$e();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Bn(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ie.updateQueue,t===null&&(t=Fs(),ie.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 Hf(){return $e().memoizedState}function ec(e,t,l,a){var n=_t();ie.flags|=e,n.memoizedState=Bn(1|t,{destroy:void 0},l,a===void 0?null:a)}function tc(e,t,l,a){var n=$e();a=a===void 0?null:a;var i=n.memoizedState.inst;ze!==null&&a!==null&&wu(a,ze.memoizedState.deps)?n.memoizedState=Bn(t,i,l,a):(ie.flags|=e,n.memoizedState=Bn(1|t,i,l,a))}function Lf(e,t){ec(8390656,8,e,t)}function Lu(e,t){tc(2048,8,e,t)}function Qp(e){ie.flags|=4;var t=ie.updateQueue;if(t===null)t=Fs(),ie.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Bf(e){var t=$e().memoizedState;return Qp({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function qf(e,t){return tc(4,2,e,t)}function Yf(e,t){return tc(4,4,e,t)}function Gf(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 Xf(e,t,l){l=l!=null?l.concat([e]):null,tc(4,4,Gf.bind(null,t,e),l)}function Bu(){}function Qf(e,t){var l=$e();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&wu(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Zf(e,t){var l=$e();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&wu(t,a[1]))return a[0];if(a=e(),an){Bt(!0);try{e()}finally{Bt(!1)}}return l.memoizedState=[a,t],a}function qu(e,t,l){return l===void 0||(Xl&1073741824)!==0&&(de&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Vd(),ie.lanes|=e,Na|=e,l)}function Vf(e,t,l,a){return Yt(l,t)?l:Un.current!==null?(e=qu(e,l,a),Yt(e,t)||(Pe=!0),e):(Xl&42)===0||(Xl&1073741824)!==0&&(de&261930)===0?(Pe=!0,e.memoizedState=l):(e=Vd(),ie.lanes|=e,Na|=e,t)}function $f(e,t,l,a,n){var i=Y.p;Y.p=i!==0&&8>i?i:8;var f=D.T,m={};D.T=m,Xu(e,!1,t,l);try{var x=n(),A=D.S;if(A!==null&&A(m,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var O=Bp(x,a);Bi(e,t,O,$t(e))}else Bi(e,t,a,$t(e))}catch(U){Bi(e,t,{then:function(){},status:"rejected",reason:U},$t())}finally{Y.p=i,f!==null&&m.types!==null&&(f.types=m.types),D.T=f}}function Zp(){}function Yu(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=Kf(e).queue;$f(e,n,t,P,l===null?Zp:function(){return Jf(e),l(a)})}function Kf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:P},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Jf(e){var t=Kf(e);t.next===null&&(t=e.alternate.memoizedState),Bi(e,t.next.queue,{},$t())}function Gu(){return yt(ls)}function Wf(){return $e().memoizedState}function Ff(){return $e().memoizedState}function Vp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=$t();e=ga(l);var a=ya(t,e,l);a!==null&&(Ct(a,t,l),Mi(a,t,l)),t={cache:yu()},e.payload=t;return}t=t.return}}function $p(e,t,l){var a=$t();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},lc(e)?Pf(t,l):(l=su(e,t,l,a),l!==null&&(Ct(l,e,a),ed(l,t,a)))}function If(e,t,l){var a=$t();Bi(e,t,l,a)}function Bi(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(lc(e))Pf(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var f=t.lastRenderedState,m=i(f,l);if(n.hasEagerState=!0,n.eagerState=m,Yt(m,f))return Us(e,t,n,0),Ce===null&&Cs(),!1}catch{}if(l=su(e,t,n,a),l!==null)return Ct(l,e,a),ed(l,t,a),!0}return!1}function Xu(e,t,l,a){if(a={lane:2,revertLane:Sr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},lc(e)){if(t)throw Error(r(479))}else t=su(e,l,a,2),t!==null&&Ct(t,e,2)}function lc(e){var t=e.alternate;return e===ie||t!==null&&t===ie}function Pf(e,t){Hn=Js=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function ed(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,pn(e,l)}}var qi={readContext:yt,use:Is,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};qi.useEffectEvent=Qe;var td={readContext:yt,use:Is,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:Lf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ec(4194308,4,Gf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ec(4194308,4,e,t)},useInsertionEffect:function(e,t){ec(4,2,e,t)},useMemo:function(e,t){var l=_t();t=t===void 0?null:t;var a=e();if(an){Bt(!0);try{e()}finally{Bt(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=_t();if(l!==void 0){var n=l(t);if(an){Bt(!0);try{l(t)}finally{Bt(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=$p.bind(null,ie,e),[a.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:function(e){e=Uu(e);var t=e.queue,l=If.bind(null,ie,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Bu,useDeferredValue:function(e,t){var l=_t();return qu(l,e,t)},useTransition:function(){var e=Uu(!1);return e=$f.bind(null,ie,e.queue,!0,!1),_t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ie,n=_t();if(me){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ce===null)throw Error(r(349));(de&127)!==0||Nf(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,Lf(Tf.bind(null,a,i,e),[e]),a.flags|=2048,Bn(9,{destroy:void 0},jf.bind(null,a,i,l,t),null),l},useId:function(){var e=_t(),t=Ce.identifierPrefix;if(me){var l=wl,a=_l;l=(a&~(1<<32-Nt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ws++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=qp++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Gu,useFormState:Df,useActionState:Df,useOptimistic:function(e){var t=_t();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Xu.bind(null,ie,!0,l),l.dispatch=t,[e,t]},useMemoCache:Du,useCacheRefresh:function(){return _t().memoizedState=Vp.bind(null,ie)},useEffectEvent:function(e){var t=_t(),l={impl:e};return t.memoizedState=l,function(){if((Ne&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Qu={readContext:yt,use:Is,useCallback:Qf,useContext:yt,useEffect:Lu,useImperativeHandle:Xf,useInsertionEffect:qf,useLayoutEffect:Yf,useMemo:Zf,useReducer:Ps,useRef:Hf,useState:function(){return Ps(Ql)},useDebugValue:Bu,useDeferredValue:function(e,t){var l=$e();return Vf(l,ze.memoizedState,e,t)},useTransition:function(){var e=Ps(Ql)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:Li(e),t]},useSyncExternalStore:Sf,useId:Wf,useHostTransitionStatus:Gu,useFormState:Mf,useActionState:Mf,useOptimistic:function(e,t){var l=$e();return _f(l,ze,e,t)},useMemoCache:Du,useCacheRefresh:Ff};Qu.useEffectEvent=Bf;var ld={readContext:yt,use:Is,useCallback:Qf,useContext:yt,useEffect:Lu,useImperativeHandle:Xf,useInsertionEffect:qf,useLayoutEffect:Yf,useMemo:Zf,useReducer:Cu,useRef:Hf,useState:function(){return Cu(Ql)},useDebugValue:Bu,useDeferredValue:function(e,t){var l=$e();return ze===null?qu(l,e,t):Vf(l,ze.memoizedState,e,t)},useTransition:function(){var e=Cu(Ql)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:Li(e),t]},useSyncExternalStore:Sf,useId:Wf,useHostTransitionStatus:Gu,useFormState:Uf,useActionState:Uf,useOptimistic:function(e,t){var l=$e();return ze!==null?_f(l,ze,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Du,useCacheRefresh:Ff};ld.useEffectEvent=Bf;function Zu(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:M({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Vu={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=$t(),n=ga(a);n.payload=t,l!=null&&(n.callback=l),t=ya(e,n,a),t!==null&&(Ct(t,e,a),Mi(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=$t(),n=ga(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=ya(e,n,a),t!==null&&(Ct(t,e,a),Mi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=$t(),a=ga(l);a.tag=2,t!=null&&(a.callback=t),t=ya(e,a,l),t!==null&&(Ct(t,e,l),Mi(t,e,l))}};function ad(e,t,l,a,n,i,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,f):t.prototype&&t.prototype.isPureReactComponent?!Ai(l,a)||!Ai(n,i):!0}function nd(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&&Vu.enqueueReplaceState(t,t.state,null)}function nn(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=M({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function id(e){Ms(e)}function sd(e){console.error(e)}function cd(e){Ms(e)}function ac(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ud(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function $u(e,t,l){return l=ga(l),l.tag=3,l.payload={element:null},l.callback=function(){ac(e,t)},l}function rd(e){return e=ga(e),e.tag=3,e}function od(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){ud(t,l,a)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){ud(t,l,a),typeof n!="function"&&(ja===null?ja=new Set([this]):ja.add(this));var m=a.stack;this.componentDidCatch(a.value,{componentStack:m!==null?m:""})})}function Kp(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Rn(t,l,n,!0),l=Xt.current,l!==null){switch(l.tag){case 31:case 13:return ul===null?pc():l.alternate===null&&Ze===0&&(Ze=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Qs?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),vr(e,a,n)),!1;case 22:return l.flags|=65536,a===Qs?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)),vr(e,a,n)),!1}throw Error(r(435,l.tag))}return vr(e,a,n),pc(),!1}if(me)return t=Xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==du&&(e=Error(r(422),{cause:a}),ki(nl(e,l)))):(a!==du&&(t=Error(r(423),{cause:a}),ki(nl(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=nl(a,l),n=$u(e.stateNode,a,n),ju(e,n),Ze!==4&&(Ze=2)),!1;var i=Error(r(520),{cause:a});if(i=nl(i,l),Ki===null?Ki=[i]:Ki.push(i),Ze!==4&&(Ze=2),t===null)return!0;a=nl(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=$u(l.stateNode,a,e),ju(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(ja===null||!ja.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=rd(n),od(n,e,l,a),ju(l,n),!1}l=l.return}while(l!==null);return!1}var Ku=Error(r(461)),Pe=!1;function vt(e,t,l,a){t.child=e===null?mf(t,null,l,a):ln(t,e.child,l,a)}function fd(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var f={};for(var m in a)m!=="ref"&&(f[m]=a[m])}else f=a;return Ia(t),a=ku(e,t,l,f,i,n),m=zu(),e!==null&&!Pe?(Ru(e,t,n),Zl(e,t,n)):(me&&m&&ou(t),t.flags|=1,vt(e,t,a,n),t.child)}function dd(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!cu(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,hd(e,t,i,a,n)):(e=Ls(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!lr(e,n)){var f=i.memoizedProps;if(l=l.compare,l=l!==null?l:Ai,l(f,a)&&e.ref===t.ref)return Zl(e,t,n)}return t.flags|=1,e=Bl(i,a),e.ref=t.ref,e.return=t,t.child=e}function hd(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(Ai(i,a)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=a=i,lr(e,n))(e.flags&131072)!==0&&(Pe=!0);else return t.lanes=e.lanes,Zl(e,t,n)}return Ju(e,t,l,a,n)}function md(e,t,l,a){var n=a.children,i=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(i=i!==null?i.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,t.child=null;return pd(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Gs(t,i!==null?i.cachePool:null),i!==null?yf(t,i):Eu(),vf(t);else return a=t.lanes=536870912,pd(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(Gs(t,i.cachePool),yf(t,i),xa(),t.memoizedState=null):(e!==null&&Gs(t,null),Eu(),xa());return vt(e,t,n,l),t.child}function Yi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function pd(e,t,l,a,n){var i=xu();return i=i===null?null:{parent:Fe._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&Gs(t,null),Eu(),vf(t),e!==null&&Rn(e,t,a,!0),t.childLanes=n,null}function nc(e,t){return t=sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function gd(e,t,l){return ln(t,e.child,null,l),e=nc(t,t.pendingProps),e.flags|=2,Qt(t),t.memoizedState=null,e}function Jp(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(me){if(a.mode==="hidden")return e=nc(t,a),t.lanes=536870912,Yi(null,e);if(_u(t),(e=Le)?(e=wh(e,cl),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fa!==null?{id:_l,overflow:wl}:null,retryLane:536870912,hydrationErrors:null},l=Io(e),l.return=t,t.child=l,gt=t,Le=null)):e=null,e===null)throw ha(t);return t.lanes=536870912,null}return nc(t,a)}var i=e.memoizedState;if(i!==null){var f=i.dehydrated;if(_u(t),n)if(t.flags&256)t.flags&=-257,t=gd(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Pe||Rn(e,t,l,!1),n=(l&e.childLanes)!==0,Pe||n){if(a=Ce,a!==null&&(f=gn(a,l),f!==0&&f!==i.retryLane))throw i.retryLane=f,Ka(e,f),Ct(a,e,f),Ku;pc(),t=gd(e,t,l)}else e=i.treeContext,Le=rl(f.nextSibling),gt=t,me=!0,da=null,cl=!1,e!==null&&tf(t,e),t=nc(t,a),t.flags|=4096;return t}return e=Bl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ic(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 Ju(e,t,l,a,n){return Ia(t),l=ku(e,t,l,a,void 0,n),a=zu(),e!==null&&!Pe?(Ru(e,t,n),Zl(e,t,n)):(me&&a&&ou(t),t.flags|=1,vt(e,t,l,n),t.child)}function yd(e,t,l,a,n,i){return Ia(t),t.updateQueue=null,l=bf(t,a,l,n),xf(e),a=zu(),e!==null&&!Pe?(Ru(e,t,i),Zl(e,t,i)):(me&&a&&ou(t),t.flags|=1,vt(e,t,l,i),t.child)}function vd(e,t,l,a,n){if(Ia(t),t.stateNode===null){var i=_n,f=l.contextType;typeof f=="object"&&f!==null&&(i=yt(f)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Vu,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Su(t),f=l.contextType,i.context=typeof f=="object"&&f!==null?yt(f):_n,i.state=t.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(Zu(t,l,f,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(f=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),f!==i.state&&Vu.enqueueReplaceState(i,i.state,null),Ui(t,a,i,n),Ci(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var m=t.memoizedProps,x=nn(l,m);i.props=x;var A=i.context,O=l.contextType;f=_n,typeof O=="object"&&O!==null&&(f=yt(O));var U=l.getDerivedStateFromProps;O=typeof U=="function"||typeof i.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,O||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(m||A!==f)&&nd(t,i,a,f),pa=!1;var _=t.memoizedState;i.state=_,Ui(t,a,i,n),Ci(),A=t.memoizedState,m||_!==A||pa?(typeof U=="function"&&(Zu(t,l,U,a),A=t.memoizedState),(x=pa||ad(t,l,x,a,_,A,f))?(O||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=A),i.props=a,i.state=A,i.context=f,a=x):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Nu(e,t),f=t.memoizedProps,O=nn(l,f),i.props=O,U=t.pendingProps,_=i.context,A=l.contextType,x=_n,typeof A=="object"&&A!==null&&(x=yt(A)),m=l.getDerivedStateFromProps,(A=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f!==U||_!==x)&&nd(t,i,a,x),pa=!1,_=t.memoizedState,i.state=_,Ui(t,a,i,n),Ci();var w=t.memoizedState;f!==U||_!==w||pa||e!==null&&e.dependencies!==null&&qs(e.dependencies)?(typeof m=="function"&&(Zu(t,l,m,a),w=t.memoizedState),(O=pa||ad(t,l,O,a,_,w,x)||e!==null&&e.dependencies!==null&&qs(e.dependencies))?(A||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,w,x),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,w,x)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=w),i.props=a,i.state=w,i.context=x,a=O):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,ic(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=ln(t,e.child,null,n),t.child=ln(t,null,l,n)):vt(e,t,l,n),t.memoizedState=i.state,e=t.child):e=Zl(e,t,n),e}function xd(e,t,l,a){return Wa(),t.flags|=256,vt(e,t,l,a),t.child}var Wu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fu(e){return{baseLanes:e,cachePool:uf()}}function Iu(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Vt),e}function bd(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,f;if((f=i)||(f=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),f&&(n=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(me){if(n?va(t):xa(),(e=Le)?(e=wh(e,cl),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fa!==null?{id:_l,overflow:wl}:null,retryLane:536870912,hydrationErrors:null},l=Io(e),l.return=t,t.child=l,gt=t,Le=null)):e=null,e===null)throw ha(t);return Mr(e)?t.lanes=32:t.lanes=536870912,null}var m=a.children;return a=a.fallback,n?(xa(),n=t.mode,m=sc({mode:"hidden",children:m},n),a=Ja(a,n,l,null),m.return=t,a.return=t,m.sibling=a,t.child=m,a=t.child,a.memoizedState=Fu(l),a.childLanes=Iu(e,f,l),t.memoizedState=Wu,Yi(null,a)):(va(t),Pu(t,m))}var x=e.memoizedState;if(x!==null&&(m=x.dehydrated,m!==null)){if(i)t.flags&256?(va(t),t.flags&=-257,t=er(e,t,l)):t.memoizedState!==null?(xa(),t.child=e.child,t.flags|=128,t=null):(xa(),m=a.fallback,n=t.mode,a=sc({mode:"visible",children:a.children},n),m=Ja(m,n,l,null),m.flags|=2,a.return=t,m.return=t,a.sibling=m,t.child=a,ln(t,e.child,null,l),a=t.child,a.memoizedState=Fu(l),a.childLanes=Iu(e,f,l),t.memoizedState=Wu,t=Yi(null,a));else if(va(t),Mr(m)){if(f=m.nextSibling&&m.nextSibling.dataset,f)var A=f.dgst;f=A,a=Error(r(419)),a.stack="",a.digest=f,ki({value:a,source:null,stack:null}),t=er(e,t,l)}else if(Pe||Rn(e,t,l,!1),f=(l&e.childLanes)!==0,Pe||f){if(f=Ce,f!==null&&(a=gn(f,l),a!==0&&a!==x.retryLane))throw x.retryLane=a,Ka(e,a),Ct(f,e,a),Ku;Dr(m)||pc(),t=er(e,t,l)}else Dr(m)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,Le=rl(m.nextSibling),gt=t,me=!0,da=null,cl=!1,e!==null&&tf(t,e),t=Pu(t,a.children),t.flags|=4096);return t}return n?(xa(),m=a.fallback,n=t.mode,x=e.child,A=x.sibling,a=Bl(x,{mode:"hidden",children:a.children}),a.subtreeFlags=x.subtreeFlags&65011712,A!==null?m=Bl(A,m):(m=Ja(m,n,l,null),m.flags|=2),m.return=t,a.return=t,a.sibling=m,t.child=a,Yi(null,a),a=t.child,m=e.child.memoizedState,m===null?m=Fu(l):(n=m.cachePool,n!==null?(x=Fe._currentValue,n=n.parent!==x?{parent:x,pool:x}:n):n=uf(),m={baseLanes:m.baseLanes|l,cachePool:n}),a.memoizedState=m,a.childLanes=Iu(e,f,l),t.memoizedState=Wu,Yi(e.child,a)):(va(t),l=e.child,e=l.sibling,l=Bl(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=l,t.memoizedState=null,l)}function Pu(e,t){return t=sc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function sc(e,t){return e=Gt(22,e,null,t),e.lanes=0,e}function er(e,t,l){return ln(t,e.child,null,l),e=Pu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Sd(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),pu(e.return,t,l)}function tr(e,t,l,a,n,i){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=l,f.tailMode=n,f.treeForkCount=i)}function Nd(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var f=Ve.current,m=(f&2)!==0;if(m?(f=f&1|2,t.flags|=128):f&=1,X(Ve,f),vt(e,t,a,l),a=me?wi:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sd(e,l,t);else if(e.tag===19)Sd(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(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Ks(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),tr(t,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Ks(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}tr(t,!0,l,null,i,a);break;case"together":tr(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Zl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Na|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Rn(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=Bl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Bl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function lr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&qs(e)))}function Wp(e,t,l){switch(t.tag){case 3:dt(t,t.stateNode.containerInfo),ma(t,Fe,e.memoizedState.cache),Wa();break;case 27:case 5:Ua(t);break;case 4:dt(t,t.stateNode.containerInfo);break;case 10:ma(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,_u(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(va(t),t.flags|=128,null):(l&t.child.childLanes)!==0?bd(e,t,l):(va(t),e=Zl(e,t,l),e!==null?e.sibling:null);va(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Rn(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Nd(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),X(Ve,Ve.current),a)break;return null;case 22:return t.lanes=0,md(e,t,l,t.pendingProps);case 24:ma(t,Fe,e.memoizedState.cache)}return Zl(e,t,l)}function jd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pe=!0;else{if(!lr(e,l)&&(t.flags&128)===0)return Pe=!1,Wp(e,t,l);Pe=(e.flags&131072)!==0}else Pe=!1,me&&(t.flags&1048576)!==0&&ef(t,wi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=en(t.elementType),t.type=e,typeof e=="function")cu(e)?(a=nn(e,a),t.tag=1,t=vd(null,t,e,a,l)):(t.tag=0,t=Ju(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===pe){t.tag=11,t=fd(null,t,e,a,l);break e}else if(n===se){t.tag=14,t=dd(null,t,e,a,l);break e}}throw t=Wt(e)||e,Error(r(306,t,""))}}return t;case 0:return Ju(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=nn(a,t.pendingProps),vd(e,t,a,n,l);case 3:e:{if(dt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,Nu(e,t),Ui(t,a,null,l);var f=t.memoizedState;if(a=f.cache,ma(t,Fe,a),a!==i.cache&&gu(t,[Fe],l,!0),Ci(),a=f.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=xd(e,t,a,l);break e}else if(a!==n){n=nl(Error(r(424)),t),ki(n),t=xd(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,Le=rl(e.firstChild),gt=t,me=!0,da=null,cl=!0,l=mf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Wa(),a===n){t=Zl(e,t,l);break e}vt(e,t,a,l)}t=t.child}return t;case 26:return ic(e,t),e===null?(l=Mh(t.type,null,t.pendingProps,null))?t.memoizedState=l:me||(l=t.type,e=t.pendingProps,a=Nc(ue.current).createElement(l),a[lt]=t,a[Ke]=e,xt(a,l,e),Je(a),t.stateNode=a):t.memoizedState=Mh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ua(t),e===null&&me&&(a=t.stateNode=Rh(t.type,t.pendingProps,ue.current),gt=t,cl=!0,n=Le,_a(t.type)?(Cr=n,Le=rl(a.firstChild)):Le=n),vt(e,t,t.pendingProps.children,l),ic(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&me&&((n=a=Le)&&(a=Ag(a,t.type,t.pendingProps,cl),a!==null?(t.stateNode=a,gt=t,Le=rl(a.firstChild),cl=!1,n=!0):n=!1),n||ha(t)),Ua(t),n=t.type,i=t.pendingProps,f=e!==null?e.memoizedProps:null,a=i.children,zr(n,i)?a=null:f!==null&&zr(n,f)&&(t.flags|=32),t.memoizedState!==null&&(n=ku(e,t,Yp,null,null,l),ls._currentValue=n),ic(e,t),vt(e,t,a,l),t.child;case 6:return e===null&&me&&((e=l=Le)&&(l=_g(l,t.pendingProps,cl),l!==null?(t.stateNode=l,gt=t,Le=null,e=!0):e=!1),e||ha(t)),null;case 13:return bd(e,t,l);case 4:return dt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ln(t,null,a,l):vt(e,t,a,l),t.child;case 11:return fd(e,t,t.type,t.pendingProps,l);case 7:return vt(e,t,t.pendingProps,l),t.child;case 8:return vt(e,t,t.pendingProps.children,l),t.child;case 12:return vt(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,ma(t,t.type,a.value),vt(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Ia(t),n=yt(n),a=a(n),t.flags|=1,vt(e,t,a,l),t.child;case 14:return dd(e,t,t.type,t.pendingProps,l);case 15:return hd(e,t,t.type,t.pendingProps,l);case 19:return Nd(e,t,l);case 31:return Jp(e,t,l);case 22:return md(e,t,l,t.pendingProps);case 24:return Ia(t),a=yt(Fe),e===null?(n=xu(),n===null&&(n=Ce,i=yu(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},Su(t),ma(t,Fe,n)):((e.lanes&l)!==0&&(Nu(e,t),Ui(t,null,null,l),Ci()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),ma(t,Fe,a)):(a=i.cache,ma(t,Fe,a),a!==n.cache&&gu(t,[Fe],l,!0))),vt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Vl(e){e.flags|=4}function ar(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Wd())e.flags|=8192;else throw tn=Qs,bu}else e.flags&=-16777217}function Td(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Bh(t))if(Wd())e.flags|=8192;else throw tn=Qs,bu}function cc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?fi():536870912,e.lanes|=t,Xn|=t)}function Gi(e,t){if(!me)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 Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Fp(e,t,l){var a=t.pendingProps;switch(fu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Gl(Fe),Ge(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(zn(t)?Vl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,hu())),Be(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(Vl(t),i!==null?(Be(t),Td(t,i)):(Be(t),ar(t,n,null,a,l))):i?i!==e.memoizedState?(Vl(t),Be(t),Td(t,i)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Vl(t),Be(t),ar(t,n,e,a,l)),null;case 27:if(Ha(t),l=ue.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Vl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Be(t),null}e=q.current,zn(t)?lf(t):(e=Rh(n,a,l),t.stateNode=e,Vl(t))}return Be(t),null;case 5:if(Ha(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Vl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Be(t),null}if(i=q.current,zn(t))lf(t);else{var f=Nc(ue.current);switch(i){case 1:i=f.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=f.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=f.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?f.createElement(n,{is:a.is}):f.createElement(n)}}i[lt]=t,i[Ke]=a;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)i.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=i;e:switch(xt(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Vl(t)}}return Be(t),ar(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Vl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.current,zn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=gt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[lt]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||bh(e.nodeValue,l)),e||ha(t,!0)}else e=Nc(e).createTextNode(a),e[lt]=t,t.stateNode=e}return Be(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=zn(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[lt]=t}else Wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else l=hu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Qt(t),t):(Qt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Be(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=zn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[lt]=t}else Wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),n=!1}else n=hu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Qt(t),t):(Qt(t),null)}return Qt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),cc(t,t.updateQueue),Be(t),null);case 4:return Ge(),e===null&&Er(t.stateNode.containerInfo),Be(t),null;case 10:return Gl(t.type),Be(t),null;case 19:if(H(Ve),a=t.memoizedState,a===null)return Be(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)Gi(a,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Ks(e),i!==null){for(t.flags|=128,Gi(a,!1),e=i.updateQueue,t.updateQueue=e,cc(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Fo(l,e),l=l.sibling;return X(Ve,Ve.current&1|2),me&&ql(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&St()>dc&&(t.flags|=128,n=!0,Gi(a,!1),t.lanes=4194304)}else{if(!n)if(e=Ks(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,cc(t,e),Gi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!me)return Be(t),null}else 2*St()-a.renderingStartTime>dc&&l!==536870912&&(t.flags|=128,n=!0,Gi(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=St(),e.sibling=null,l=Ve.current,X(Ve,n?l&1|2:l&1),me&&ql(t,a.treeForkCount),e):(Be(t),null);case 22:case 23:return Qt(t),Au(),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&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),l=t.updateQueue,l!==null&&cc(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&&H(Pa),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Gl(Fe),Be(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Ip(e,t){switch(fu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gl(Fe),Ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ha(t),null;case 31:if(t.memoizedState!==null){if(Qt(t),t.alternate===null)throw Error(r(340));Wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Ve),null;case 4:return Ge(),null;case 10:return Gl(t.type),null;case 22:case 23:return Qt(t),Au(),e!==null&&H(Pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Gl(Fe),null;case 25:return null;default:return null}}function Ed(e,t){switch(fu(t),t.tag){case 3:Gl(Fe),Ge();break;case 26:case 27:case 5:Ha(t);break;case 4:Ge();break;case 31:t.memoizedState!==null&&Qt(t);break;case 13:Qt(t);break;case 19:H(Ve);break;case 10:Gl(t.type);break;case 22:case 23:Qt(t),Au(),e!==null&&H(Pa);break;case 24:Gl(Fe)}}function Xi(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var i=l.create,f=l.inst;a=i(),f.destroy=a}l=l.next}while(l!==n)}}catch(m){we(t,t.return,m)}}function ba(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var f=a.inst,m=f.destroy;if(m!==void 0){f.destroy=void 0,n=t;var x=l,A=m;try{A()}catch(O){we(n,x,O)}}}a=a.next}while(a!==i)}}catch(O){we(t,t.return,O)}}function Ad(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{gf(t,l)}catch(a){we(e,e.return,a)}}}function _d(e,t,l){l.props=nn(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){we(e,t,a)}}function Qi(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(n){we(e,t,n)}}function kl(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){we(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){we(e,t,n)}else l.current=null}function wd(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(n){we(e,e.return,n)}}function nr(e,t,l){try{var a=e.stateNode;bg(a,e.type,l,t),a[Ke]=t}catch(n){we(e,e.return,n)}}function kd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&_a(e.type)||e.tag===4}function ir(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kd(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&&_a(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sr(e,t,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=j));else if(a!==4&&(a===27&&_a(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(sr(e,t,l),e=e.sibling;e!==null;)sr(e,t,l),e=e.sibling}function uc(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&&_a(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(uc(e,t,l),e=e.sibling;e!==null;)uc(e,t,l),e=e.sibling}function zd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);xt(t,a,l),t[lt]=e,t[Ke]=l}catch(i){we(e,e.return,i)}}var $l=!1,et=!1,cr=!1,Rd=typeof WeakSet=="function"?WeakSet:Set,rt=null;function Pp(e,t){if(e=e.containerInfo,wr=kc,e=Go(e),eu(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 n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var f=0,m=-1,x=-1,A=0,O=0,U=e,_=null;t:for(;;){for(var w;U!==l||n!==0&&U.nodeType!==3||(m=f+n),U!==i||a!==0&&U.nodeType!==3||(x=f+a),U.nodeType===3&&(f+=U.nodeValue.length),(w=U.firstChild)!==null;)_=U,U=w;for(;;){if(U===e)break t;if(_===l&&++A===n&&(m=f),_===i&&++O===a&&(x=f),(w=U.nextSibling)!==null)break;U=_,_=U.parentNode}U=w}l=m===-1||x===-1?null:{start:m,end:x}}else l=null}l=l||{start:0,end:0}}else l=null;for(kr={focusedElem:e,selectionRange:l},kc=!1,rt=t;rt!==null;)if(t=rt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,rt=e;else for(;rt!==null;){switch(t=rt,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var $=nn(l.type,n);e=a.getSnapshotBeforeUpdate($,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(ee){we(l,l.return,ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Or(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Or(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,rt=e;break}rt=t.return}}function Od(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Jl(e,l),a&4&&Xi(5,l);break;case 1:if(Jl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(f){we(l,l.return,f)}else{var n=nn(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){we(l,l.return,f)}}a&64&&Ad(l),a&512&&Qi(l,l.return);break;case 3:if(Jl(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{gf(e,t)}catch(f){we(l,l.return,f)}}break;case 27:t===null&&a&4&&zd(l);case 26:case 5:Jl(e,l),t===null&&a&4&&wd(l),a&512&&Qi(l,l.return);break;case 12:Jl(e,l);break;case 31:Jl(e,l),a&4&&Cd(e,l);break;case 13:Jl(e,l),a&4&&Ud(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=ug.bind(null,l),wg(e,l))));break;case 22:if(a=l.memoizedState!==null||$l,!a){t=t!==null&&t.memoizedState!==null||et,n=$l;var i=et;$l=a,(et=t)&&!i?Wl(e,l,(l.subtreeFlags&8772)!==0):Jl(e,l),$l=n,et=i}break;case 30:break;default:Jl(e,l)}}function Dd(e){var t=e.alternate;t!==null&&(e.alternate=null,Dd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ya(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var qe=null,Rt=!1;function Kl(e,t,l){for(l=l.child;l!==null;)Md(e,t,l),l=l.sibling}function Md(e,t,l){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(Pt,l)}catch{}switch(l.tag){case 26:et||kl(l,t),Kl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:et||kl(l,t);var a=qe,n=Rt;_a(l.type)&&(qe=l.stateNode,Rt=!1),Kl(e,t,l),Pi(l.stateNode),qe=a,Rt=n;break;case 5:et||kl(l,t);case 6:if(a=qe,n=Rt,qe=null,Kl(e,t,l),qe=a,Rt=n,qe!==null)if(Rt)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(l.stateNode)}catch(i){we(l,t,i)}else try{qe.removeChild(l.stateNode)}catch(i){we(l,t,i)}break;case 18:qe!==null&&(Rt?(e=qe,Ah(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Fn(e)):Ah(qe,l.stateNode));break;case 4:a=qe,n=Rt,qe=l.stateNode.containerInfo,Rt=!0,Kl(e,t,l),qe=a,Rt=n;break;case 0:case 11:case 14:case 15:ba(2,l,t),et||ba(4,l,t),Kl(e,t,l);break;case 1:et||(kl(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&_d(l,t,a)),Kl(e,t,l);break;case 21:Kl(e,t,l);break;case 22:et=(a=et)||l.memoizedState!==null,Kl(e,t,l),et=a;break;default:Kl(e,t,l)}}function Cd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Fn(e)}catch(l){we(t,t.return,l)}}}function Ud(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fn(e)}catch(l){we(t,t.return,l)}}function eg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Rd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Rd),t;default:throw Error(r(435,e.tag))}}function rc(e,t){var l=eg(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=rg.bind(null,e,a);a.then(n,n)}})}function Ot(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,f=t,m=f;e:for(;m!==null;){switch(m.tag){case 27:if(_a(m.type)){qe=m.stateNode,Rt=!1;break e}break;case 5:qe=m.stateNode,Rt=!1;break e;case 3:case 4:qe=m.stateNode.containerInfo,Rt=!0;break e}m=m.return}if(qe===null)throw Error(r(160));Md(i,f,n),qe=null,Rt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Hd(t,e),t=t.sibling}var yl=null;function Hd(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ot(t,e),Dt(e),a&4&&(ba(3,e,e.return),Xi(3,e),ba(5,e,e.return));break;case 1:Ot(t,e),Dt(e),a&512&&(et||l===null||kl(l,l.return)),a&64&&$l&&(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 n=yl;if(Ot(t,e),Dt(e),a&512&&(et||l===null||kl(l,l.return)),a&4){var i=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,n=n.ownerDocument||n;t:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[sa]||i[lt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),xt(i,a,l),i[lt]=e,Je(i),a=i;break e;case"link":var f=Hh("link","href",n).get(a+(l.href||""));if(f){for(var m=0;m<f.length;m++)if(i=f[m],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(m,1);break t}}i=n.createElement(a),xt(i,a,l),n.head.appendChild(i);break;case"meta":if(f=Hh("meta","content",n).get(a+(l.content||""))){for(m=0;m<f.length;m++)if(i=f[m],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(m,1);break t}}i=n.createElement(a),xt(i,a,l),n.head.appendChild(i);break;default:throw Error(r(468,a))}i[lt]=e,Je(i),a=i}e.stateNode=a}else Lh(n,e.type,e.stateNode);else e.stateNode=Uh(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?Lh(n,e.type,e.stateNode):Uh(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&nr(e,e.memoizedProps,l.memoizedProps)}break;case 27:Ot(t,e),Dt(e),a&512&&(et||l===null||kl(l,l.return)),l!==null&&a&4&&nr(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Ot(t,e),Dt(e),a&512&&(et||l===null||kl(l,l.return)),e.flags&32){n=e.stateNode;try{Ll(n,"")}catch($){we(e,e.return,$)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,nr(e,n,l!==null?l.memoizedProps:n)),a&1024&&(cr=!0);break;case 6:if(Ot(t,e),Dt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch($){we(e,e.return,$)}}break;case 3:if(Ec=null,n=yl,yl=jc(t.containerInfo),Ot(t,e),yl=n,Dt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Fn(t.containerInfo)}catch($){we(e,e.return,$)}cr&&(cr=!1,Ld(e));break;case 4:a=yl,yl=jc(e.stateNode.containerInfo),Ot(t,e),Dt(e),yl=a;break;case 12:Ot(t,e),Dt(e);break;case 31:Ot(t,e),Dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,rc(e,a)));break;case 13:Ot(t,e),Dt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(fc=St()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,rc(e,a)));break;case 22:n=e.memoizedState!==null;var x=l!==null&&l.memoizedState!==null,A=$l,O=et;if($l=A||n,et=O||x,Ot(t,e),et=O,$l=A,Dt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||x||$l||et||sn(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){x=l=t;try{if(i=x.stateNode,n)f=i.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{m=x.stateNode;var U=x.memoizedProps.style,_=U!=null&&U.hasOwnProperty("display")?U.display:null;m.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch($){we(x,x.return,$)}}}else if(t.tag===6){if(l===null){x=t;try{x.stateNode.nodeValue=n?"":x.memoizedProps}catch($){we(x,x.return,$)}}}else if(t.tag===18){if(l===null){x=t;try{var w=x.stateNode;n?_h(w,!0):_h(x.stateNode,!1)}catch($){we(x,x.return,$)}}}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,rc(e,l))));break;case 19:Ot(t,e),Dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,rc(e,a)));break;case 30:break;case 21:break;default:Ot(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(kd(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,i=ir(e);uc(e,i,n);break;case 5:var f=l.stateNode;l.flags&32&&(Ll(f,""),l.flags&=-33);var m=ir(e);uc(e,m,f);break;case 3:case 4:var x=l.stateNode.containerInfo,A=ir(e);sr(e,A,x);break;default:throw Error(r(161))}}catch(O){we(e,e.return,O)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ld(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ld(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Jl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Od(e,t.alternate,t),t=t.sibling}function sn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ba(4,t,t.return),sn(t);break;case 1:kl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&_d(t,t.return,l),sn(t);break;case 27:Pi(t.stateNode);case 26:case 5:kl(t,t.return),sn(t);break;case 22:t.memoizedState===null&&sn(t);break;case 30:sn(t);break;default:sn(t)}e=e.sibling}}function Wl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,f=i.flags;switch(i.tag){case 0:case 11:case 15:Wl(n,i,l),Xi(4,i);break;case 1:if(Wl(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(A){we(a,a.return,A)}if(a=i,n=a.updateQueue,n!==null){var m=a.stateNode;try{var x=n.shared.hiddenCallbacks;if(x!==null)for(n.shared.hiddenCallbacks=null,n=0;n<x.length;n++)pf(x[n],m)}catch(A){we(a,a.return,A)}}l&&f&64&&Ad(i),Qi(i,i.return);break;case 27:zd(i);case 26:case 5:Wl(n,i,l),l&&a===null&&f&4&&wd(i),Qi(i,i.return);break;case 12:Wl(n,i,l);break;case 31:Wl(n,i,l),l&&f&4&&Cd(n,i);break;case 13:Wl(n,i,l),l&&f&4&&Ud(n,i);break;case 22:i.memoizedState===null&&Wl(n,i,l),Qi(i,i.return);break;case 30:break;default:Wl(n,i,l)}t=t.sibling}}function ur(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&&zi(l))}function rr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&zi(e))}function vl(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Bd(e,t,l,a),t=t.sibling}function Bd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:vl(e,t,l,a),n&2048&&Xi(9,t);break;case 1:vl(e,t,l,a);break;case 3:vl(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&zi(e)));break;case 12:if(n&2048){vl(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,f=i.id,m=i.onPostCommit;typeof m=="function"&&m(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){we(t,t.return,x)}}else vl(e,t,l,a);break;case 31:vl(e,t,l,a);break;case 13:vl(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,f=t.alternate,t.memoizedState!==null?i._visibility&2?vl(e,t,l,a):Zi(e,t):i._visibility&2?vl(e,t,l,a):(i._visibility|=2,qn(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&ur(f,t);break;case 24:vl(e,t,l,a),n&2048&&rr(t.alternate,t);break;default:vl(e,t,l,a)}}function qn(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,f=t,m=l,x=a,A=f.flags;switch(f.tag){case 0:case 11:case 15:qn(i,f,m,x,n),Xi(8,f);break;case 23:break;case 22:var O=f.stateNode;f.memoizedState!==null?O._visibility&2?qn(i,f,m,x,n):Zi(i,f):(O._visibility|=2,qn(i,f,m,x,n)),n&&A&2048&&ur(f.alternate,f);break;case 24:qn(i,f,m,x,n),n&&A&2048&&rr(f.alternate,f);break;default:qn(i,f,m,x,n)}t=t.sibling}}function Zi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:Zi(l,a),n&2048&&ur(a.alternate,a);break;case 24:Zi(l,a),n&2048&&rr(a.alternate,a);break;default:Zi(l,a)}t=t.sibling}}var Vi=8192;function Yn(e,t,l){if(e.subtreeFlags&Vi)for(e=e.child;e!==null;)qd(e,t,l),e=e.sibling}function qd(e,t,l){switch(e.tag){case 26:Yn(e,t,l),e.flags&Vi&&e.memoizedState!==null&&qg(l,yl,e.memoizedState,e.memoizedProps);break;case 5:Yn(e,t,l);break;case 3:case 4:var a=yl;yl=jc(e.stateNode.containerInfo),Yn(e,t,l),yl=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Vi,Vi=16777216,Yn(e,t,l),Vi=a):Yn(e,t,l));break;default:Yn(e,t,l)}}function Yd(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 $i(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];rt=a,Xd(a,e)}Yd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Gd(e),e=e.sibling}function Gd(e){switch(e.tag){case 0:case 11:case 15:$i(e),e.flags&2048&&ba(9,e,e.return);break;case 3:$i(e);break;case 12:$i(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,oc(e)):$i(e);break;default:$i(e)}}function oc(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];rt=a,Xd(a,e)}Yd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ba(8,t,t.return),oc(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,oc(t));break;default:oc(t)}e=e.sibling}}function Xd(e,t){for(;rt!==null;){var l=rt;switch(l.tag){case 0:case 11:case 15:ba(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:zi(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,rt=a;else e:for(l=e;rt!==null;){a=rt;var n=a.sibling,i=a.return;if(Dd(a),a===l){rt=null;break e}if(n!==null){n.return=i,rt=n;break e}rt=i}}}var tg={getCacheForType:function(e){var t=yt(Fe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return yt(Fe).controller.signal}},lg=typeof WeakMap=="function"?WeakMap:Map,Ne=0,Ce=null,re=null,de=0,_e=0,Zt=null,Sa=!1,Gn=!1,or=!1,Fl=0,Ze=0,Na=0,cn=0,fr=0,Vt=0,Xn=0,Ki=null,Mt=null,dr=!1,fc=0,Qd=0,dc=1/0,hc=null,ja=null,nt=0,Ta=null,Qn=null,Il=0,hr=0,mr=null,Zd=null,Ji=0,pr=null;function $t(){return(Ne&2)!==0&&de!==0?de&-de:D.T!==null?Sr():vn()}function Vd(){if(Vt===0)if((de&536870912)===0||me){var e=dl;dl<<=1,(dl&3932160)===0&&(dl=262144),Vt=e}else Vt=536870912;return e=Xt.current,e!==null&&(e.flags|=32),Vt}function Ct(e,t,l){(e===Ce&&(_e===2||_e===9)||e.cancelPendingCommit!==null)&&(Zn(e,0),Ea(e,de,Vt,!1)),Tl(e,l),((Ne&2)===0||e!==Ce)&&(e===Ce&&((Ne&2)===0&&(cn|=l),Ze===4&&Ea(e,de,Vt,!1)),zl(e))}function $d(e,t,l){if((Ne&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||la(e,t),n=a?ig(e,t):yr(e,t,!0),i=a;do{if(n===0){Gn&&!a&&Ea(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!ag(l)){n=yr(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var m=e;n=Ki;var x=m.current.memoizedState.isDehydrated;if(x&&(Zn(m,f).flags|=256),f=yr(m,f,!1),f!==2){if(or&&!x){m.errorRecoveryDisabledLanes|=i,cn|=i,n=4;break e}i=Mt,Mt=n,i!==null&&(Mt===null?Mt=i:Mt.push.apply(Mt,i))}n=f}if(i=!1,n!==2)continue}}if(n===1){Zn(e,0),Ea(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Ea(a,t,Vt,!Sa);break e;case 2:Mt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=fc+300-St(),10<n)){if(Ea(a,t,Vt,!Sa),qa(a,0,!0)!==0)break e;Il=t,a.timeoutHandle=Th(Kd.bind(null,a,l,Mt,hc,dr,t,Vt,cn,Xn,Sa,i,"Throttled",-0,0),n);break e}Kd(a,l,Mt,hc,dr,t,Vt,cn,Xn,Sa,i,null,-0,0)}}break}while(!0);zl(e)}function Kd(e,t,l,a,n,i,f,m,x,A,O,U,_,w){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:j},qd(t,i,U);var $=(i&62914560)===i?fc-St():(i&4194048)===i?Qd-St():0;if($=Yg(U,$),$!==null){Il=i,e.cancelPendingCommit=$(lh.bind(null,e,t,i,l,a,n,f,m,x,O,U,null,_,w)),Ea(e,i,f,!A);return}}lh(e,t,i,l,a,n,f,m,x)}function ag(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 n=l[a],i=n.getSnapshot;n=n.value;try{if(!Yt(i(),n))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 Ea(e,t,l,a){t&=~fr,t&=~cn,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-Nt(n),f=1<<i;a[i]=-1,n&=~f}l!==0&&Dl(e,l,t)}function mc(){return(Ne&6)===0?(Wi(0),!1):!0}function gr(){if(re!==null){if(_e===0)var e=re.return;else e=re,Yl=Fa=null,Ou(e),Cn=null,Oi=0,e=re;for(;e!==null;)Ed(e.alternate,e),e=e.return;re=null}}function Zn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,jg(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Il=0,gr(),Ce=e,re=l=Bl(e.current,null),de=t,_e=0,Zt=null,Sa=!1,Gn=la(e,t),or=!1,Xn=Vt=fr=cn=Na=Ze=0,Mt=Ki=null,dr=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-Nt(a),i=1<<n;t|=e[n],a&=~i}return Fl=t,Cs(),l}function Jd(e,t){ie=null,D.H=qi,t===Mn||t===Xs?(t=ff(),_e=3):t===bu?(t=ff(),_e=4):_e=t===Ku?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Zt=t,re===null&&(Ze=1,ac(e,nl(t,e.current)))}function Wd(){var e=Xt.current;return e===null?!0:(de&4194048)===de?ul===null:(de&62914560)===de||(de&536870912)!==0?e===ul:!1}function Fd(){var e=D.H;return D.H=qi,e===null?qi:e}function Id(){var e=D.A;return D.A=tg,e}function pc(){Ze=4,Sa||(de&4194048)!==de&&Xt.current!==null||(Gn=!0),(Na&134217727)===0&&(cn&134217727)===0||Ce===null||Ea(Ce,de,Vt,!1)}function yr(e,t,l){var a=Ne;Ne|=2;var n=Fd(),i=Id();(Ce!==e||de!==t)&&(hc=null,Zn(e,t)),t=!1;var f=Ze;e:do try{if(_e!==0&&re!==null){var m=re,x=Zt;switch(_e){case 8:gr(),f=6;break e;case 3:case 2:case 9:case 6:Xt.current===null&&(t=!0);var A=_e;if(_e=0,Zt=null,Vn(e,m,x,A),l&&Gn){f=0;break e}break;default:A=_e,_e=0,Zt=null,Vn(e,m,x,A)}}ng(),f=Ze;break}catch(O){Jd(e,O)}while(!0);return t&&e.shellSuspendCounter++,Yl=Fa=null,Ne=a,D.H=n,D.A=i,re===null&&(Ce=null,de=0,Cs()),f}function ng(){for(;re!==null;)Pd(re)}function ig(e,t){var l=Ne;Ne|=2;var a=Fd(),n=Id();Ce!==e||de!==t?(hc=null,dc=St()+500,Zn(e,t)):Gn=la(e,t);e:do try{if(_e!==0&&re!==null){t=re;var i=Zt;t:switch(_e){case 1:_e=0,Zt=null,Vn(e,t,i,1);break;case 2:case 9:if(rf(i)){_e=0,Zt=null,eh(t);break}t=function(){_e!==2&&_e!==9||Ce!==e||(_e=7),zl(e)},i.then(t,t);break e;case 3:_e=7;break e;case 4:_e=5;break e;case 7:rf(i)?(_e=0,Zt=null,eh(t)):(_e=0,Zt=null,Vn(e,t,i,7));break;case 5:var f=null;switch(re.tag){case 26:f=re.memoizedState;case 5:case 27:var m=re;if(f?Bh(f):m.stateNode.complete){_e=0,Zt=null;var x=m.sibling;if(x!==null)re=x;else{var A=m.return;A!==null?(re=A,gc(A)):re=null}break t}}_e=0,Zt=null,Vn(e,t,i,5);break;case 6:_e=0,Zt=null,Vn(e,t,i,6);break;case 8:gr(),Ze=6;break e;default:throw Error(r(462))}}sg();break}catch(O){Jd(e,O)}while(!0);return Yl=Fa=null,D.H=a,D.A=n,Ne=l,re!==null?0:(Ce=null,de=0,Cs(),Ze)}function sg(){for(;re!==null&&!ys();)Pd(re)}function Pd(e){var t=jd(e.alternate,e,Fl);e.memoizedProps=e.pendingProps,t===null?gc(e):re=t}function eh(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=yd(l,t,t.pendingProps,t.type,void 0,de);break;case 11:t=yd(l,t,t.pendingProps,t.type.render,t.ref,de);break;case 5:Ou(t);default:Ed(l,t),t=re=Fo(t,Fl),t=jd(l,t,Fl)}e.memoizedProps=e.pendingProps,t===null?gc(e):re=t}function Vn(e,t,l,a){Yl=Fa=null,Ou(t),Cn=null,Oi=0;var n=t.return;try{if(Kp(e,n,t,l,de)){Ze=1,ac(e,nl(l,e.current)),re=null;return}}catch(i){if(n!==null)throw re=n,i;Ze=1,ac(e,nl(l,e.current)),re=null;return}t.flags&32768?(me||a===1?e=!0:Gn||(de&536870912)!==0?e=!1:(Sa=e=!0,(a===2||a===9||a===3||a===6)&&(a=Xt.current,a!==null&&a.tag===13&&(a.flags|=16384))),th(t,e)):gc(t)}function gc(e){var t=e;do{if((t.flags&32768)!==0){th(t,Sa);return}e=t.return;var l=Fp(t.alternate,t,Fl);if(l!==null){re=l;return}if(t=t.sibling,t!==null){re=t;return}re=t=e}while(t!==null);Ze===0&&(Ze=5)}function th(e,t){do{var l=Ip(e.alternate,e);if(l!==null){l.flags&=32767,re=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){re=e;return}re=e=l}while(e!==null);Ze=6,re=null}function lh(e,t,l,a,n,i,f,m,x){e.cancelPendingCommit=null;do yc();while(nt!==0);if((Ne&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,i|=iu,el(e,l,i,f,m,x),e===Ce&&(re=Ce=null,de=0),Qn=t,Ta=e,Il=l,hr=i,mr=n,Zd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,og(It,function(){return ch(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,n=Y.p,Y.p=2,f=Ne,Ne|=4;try{Pp(e,t,l)}finally{Ne=f,Y.p=n,D.T=a}}nt=1,ah(),nh(),ih()}}function ah(){if(nt===1){nt=0;var e=Ta,t=Qn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var a=Y.p;Y.p=2;var n=Ne;Ne|=4;try{Hd(t,e);var i=kr,f=Go(e.containerInfo),m=i.focusedElem,x=i.selectionRange;if(f!==m&&m&&m.ownerDocument&&Yo(m.ownerDocument.documentElement,m)){if(x!==null&&eu(m)){var A=x.start,O=x.end;if(O===void 0&&(O=A),"selectionStart"in m)m.selectionStart=A,m.selectionEnd=Math.min(O,m.value.length);else{var U=m.ownerDocument||document,_=U&&U.defaultView||window;if(_.getSelection){var w=_.getSelection(),$=m.textContent.length,ee=Math.min(x.start,$),Oe=x.end===void 0?ee:Math.min(x.end,$);!w.extend&&ee>Oe&&(f=Oe,Oe=ee,ee=f);var T=qo(m,ee),b=qo(m,Oe);if(T&&b&&(w.rangeCount!==1||w.anchorNode!==T.node||w.anchorOffset!==T.offset||w.focusNode!==b.node||w.focusOffset!==b.offset)){var E=U.createRange();E.setStart(T.node,T.offset),w.removeAllRanges(),ee>Oe?(w.addRange(E),w.extend(b.node,b.offset)):(E.setEnd(b.node,b.offset),w.addRange(E))}}}}for(U=[],w=m;w=w.parentNode;)w.nodeType===1&&U.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<U.length;m++){var C=U[m];C.element.scrollLeft=C.left,C.element.scrollTop=C.top}}kc=!!wr,kr=wr=null}finally{Ne=n,Y.p=a,D.T=l}}e.current=t,nt=2}}function nh(){if(nt===2){nt=0;var e=Ta,t=Qn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var a=Y.p;Y.p=2;var n=Ne;Ne|=4;try{Od(e,t.alternate,t)}finally{Ne=n,Y.p=a,D.T=l}}nt=3}}function ih(){if(nt===4||nt===3){nt=0,ci();var e=Ta,t=Qn,l=Il,a=Zd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,Qn=Ta=null,sh(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(ja=null),yn(l),t=t.stateNode,ut&&typeof ut.onCommitFiberRoot=="function")try{ut.onCommitFiberRoot(Pt,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,n=Y.p,Y.p=2,D.T=null;try{for(var i=e.onRecoverableError,f=0;f<a.length;f++){var m=a[f];i(m.value,{componentStack:m.stack})}}finally{D.T=t,Y.p=n}}(Il&3)!==0&&yc(),zl(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===pr?Ji++:(Ji=0,pr=e):Ji=0,Wi(0)}}function sh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,zi(t)))}function yc(){return ah(),nh(),ih(),ch()}function ch(){if(nt!==5)return!1;var e=Ta,t=hr;hr=0;var l=yn(Il),a=D.T,n=Y.p;try{Y.p=32>l?32:l,D.T=null,l=mr,mr=null;var i=Ta,f=Il;if(nt=0,Qn=Ta=null,Il=0,(Ne&6)!==0)throw Error(r(331));var m=Ne;if(Ne|=4,Gd(i.current),Bd(i,i.current,f,l),Ne=m,Wi(0,!1),ut&&typeof ut.onPostCommitFiberRoot=="function")try{ut.onPostCommitFiberRoot(Pt,i)}catch{}return!0}finally{Y.p=n,D.T=a,sh(e,t)}}function uh(e,t,l){t=nl(l,t),t=$u(e.stateNode,t,2),e=ya(e,t,2),e!==null&&(Tl(e,2),zl(e))}function we(e,t,l){if(e.tag===3)uh(e,e,l);else for(;t!==null;){if(t.tag===3){uh(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ja===null||!ja.has(a))){e=nl(l,e),l=rd(2),a=ya(t,l,2),a!==null&&(od(l,a,t,e),Tl(a,2),zl(a));break}}t=t.return}}function vr(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new lg;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(or=!0,n.add(l),e=cg.bind(null,e,t,l),t.then(e,e))}function cg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ce===e&&(de&l)===l&&(Ze===4||Ze===3&&(de&62914560)===de&&300>St()-fc?(Ne&2)===0&&Zn(e,0):fr|=l,Xn===de&&(Xn=0)),zl(e)}function rh(e,t){t===0&&(t=fi()),e=Ka(e,t),e!==null&&(Tl(e,t),zl(e))}function ug(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),rh(e,l)}function rg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.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),rh(e,l)}function og(e,t){return hn(e,t)}var vc=null,$n=null,xr=!1,xc=!1,br=!1,Aa=0;function zl(e){e!==$n&&e.next===null&&($n===null?vc=$n=e:$n=$n.next=e),xc=!0,xr||(xr=!0,dg())}function Wi(e,t){if(!br&&xc){br=!0;do for(var l=!1,a=vc;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var f=a.suspendedLanes,m=a.pingedLanes;i=(1<<31-Nt(42|e)+1)-1,i&=n&~(f&~m),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,hh(a,i))}else i=de,i=qa(a,a===Ce?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||la(a,i)||(l=!0,hh(a,i));a=a.next}while(l);br=!1}}function fg(){oh()}function oh(){xc=xr=!1;var e=0;Aa!==0&&Ng()&&(e=Aa);for(var t=St(),l=null,a=vc;a!==null;){var n=a.next,i=fh(a,t);i===0?(a.next=null,l===null?vc=n:l.next=n,n===null&&($n=l)):(l=a,(e!==0||(i&3)!==0)&&(xc=!0)),a=n}nt!==0&&nt!==5||Wi(e),Aa!==0&&(Aa=0)}function fh(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var f=31-Nt(i),m=1<<f,x=n[f];x===-1?((m&l)===0||(m&a)!==0)&&(n[f]=Ss(m,t)):x<=t&&(e.expiredLanes|=m),i&=~m}if(t=Ce,l=de,l=qa(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(_e===2||_e===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ft(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||la(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ft(a),yn(l)){case 2:case 8:l=Nl;break;case 32:l=It;break;case 268435456:l=Ba;break;default:l=It}return a=dh.bind(null,e),l=hn(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ft(a),e.callbackPriority=2,e.callbackNode=null,2}function dh(e,t){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(yc()&&e.callbackNode!==l)return null;var a=de;return a=qa(e,e===Ce?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:($d(e,a,t),fh(e,St()),e.callbackNode!=null&&e.callbackNode===l?dh.bind(null,e):null)}function hh(e,t){if(yc())return null;$d(e,t,!0)}function dg(){Tg(function(){(Ne&6)!==0?hn(fl,fg):oh()})}function Sr(){if(Aa===0){var e=On;e===0&&(e=ta,ta<<=1,(ta&261888)===0&&(ta=256)),Aa=e}return Aa}function mh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:p(""+e)}function ph(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 hg(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=mh((n[Ke]||null).action),f=a.submitter;f&&(t=(t=f[Ke]||null)?mh(t.formAction):f.getAttribute("formAction"),t!==null&&(i=t,f=null));var m=new Rs("action","action",null,a,n);e.push({event:m,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Aa!==0){var x=f?ph(n,f):new FormData(n);Yu(l,{pending:!0,data:x,method:n.method,action:i},null,x)}}else typeof i=="function"&&(m.preventDefault(),x=f?ph(n,f):new FormData(n),Yu(l,{pending:!0,data:x,method:n.method,action:i},i,x))},currentTarget:n}]})}}for(var Nr=0;Nr<nu.length;Nr++){var jr=nu[Nr],mg=jr.toLowerCase(),pg=jr[0].toUpperCase()+jr.slice(1);gl(mg,"on"+pg)}gl(Zo,"onAnimationEnd"),gl(Vo,"onAnimationIteration"),gl($o,"onAnimationStart"),gl("dblclick","onDoubleClick"),gl("focusin","onFocus"),gl("focusout","onBlur"),gl(Rp,"onTransitionRun"),gl(Op,"onTransitionStart"),gl(Dp,"onTransitionCancel"),gl(Ko,"onTransitionEnd"),pl("onMouseEnter",["mouseout","mouseover"]),pl("onMouseLeave",["mouseout","mouseover"]),pl("onPointerEnter",["pointerout","pointerover"]),pl("onPointerLeave",["pointerout","pointerover"]),El("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),El("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),El("onBeforeInput",["compositionend","keypress","textInput","paste"]),El("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),El("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),El("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fi="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(" "),gg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fi));function gh(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var f=a.length-1;0<=f;f--){var m=a[f],x=m.instance,A=m.currentTarget;if(m=m.listener,x!==i&&n.isPropagationStopped())break e;i=m,n.currentTarget=A;try{i(n)}catch(O){Ms(O)}n.currentTarget=null,i=x}else for(f=0;f<a.length;f++){if(m=a[f],x=m.instance,A=m.currentTarget,m=m.listener,x!==i&&n.isPropagationStopped())break e;i=m,n.currentTarget=A;try{i(n)}catch(O){Ms(O)}n.currentTarget=null,i=x}}}}function oe(e,t){var l=t[mi];l===void 0&&(l=t[mi]=new Set);var a=e+"__bubble";l.has(a)||(yh(t,e,2,!1),l.add(a))}function Tr(e,t,l){var a=0;t&&(a|=4),yh(l,e,a,t)}var bc="_reactListening"+Math.random().toString(36).slice(2);function Er(e){if(!e[bc]){e[bc]=!0,js.forEach(function(l){l!=="selectionchange"&&(gg.has(l)||Tr(l,!1,e),Tr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bc]||(t[bc]=!0,Tr("selectionchange",!1,t))}}function yh(e,t,l,a){switch(Vh(t)){case 2:var n=Qg;break;case 8:n=Zg;break;default:n=qr}l=n.bind(null,t,l,e),n=void 0,!at||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Ar(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var m=a.stateNode.containerInfo;if(m===n)break;if(f===4)for(f=a.return;f!==null;){var x=f.tag;if((x===3||x===4)&&f.stateNode.containerInfo===n)return;f=f.return}for(;m!==null;){if(f=Ml(m),f===null)return;if(x=f.tag,x===5||x===6||x===26||x===27){a=i=f;continue e}m=m.parentNode}}a=a.return}pt(function(){var A=i,O=Q(l),U=[];e:{var _=Jo.get(e);if(_!==void 0){var w=Rs,$=e;switch(e){case"keypress":if(ks(l)===0)break e;case"keydown":case"keyup":w=rp;break;case"focusin":$="focus",w=Jc;break;case"focusout":$="blur",w=Jc;break;case"beforeblur":case"afterblur":w=Jc;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":w=To;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=Fm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=dp;break;case Zo:case Vo:case $o:w=ep;break;case Ko:w=mp;break;case"scroll":case"scrollend":w=Jm;break;case"wheel":w=gp;break;case"copy":case"cut":case"paste":w=lp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=Ao;break;case"toggle":case"beforetoggle":w=vp}var ee=(t&4)!==0,Oe=!ee&&(e==="scroll"||e==="scrollend"),T=ee?_!==null?_+"Capture":null:_;ee=[];for(var b=A,E;b!==null;){var C=b;if(E=C.stateNode,C=C.tag,C!==5&&C!==26&&C!==27||E===null||T===null||(C=We(b,T),C!=null&&ee.push(Ii(b,C,E))),Oe)break;b=b.return}0<ee.length&&(_=new w(_,$,null,l,O),U.push({event:_,listeners:ee}))}}if((t&7)===0){e:{if(_=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",_&&l!==L&&($=l.relatedTarget||l.fromElement)&&(Ml($)||$[na]))break e;if((w||_)&&(_=O.window===O?O:(_=O.ownerDocument)?_.defaultView||_.parentWindow:window,w?($=l.relatedTarget||l.toElement,w=A,$=$?Ml($):null,$!==null&&(Oe=h($),ee=$.tag,$!==Oe||ee!==5&&ee!==27&&ee!==6)&&($=null)):(w=null,$=A),w!==$)){if(ee=To,C="onMouseLeave",T="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(ee=Ao,C="onPointerLeave",T="onPointerEnter",b="pointer"),Oe=w==null?_:Ga(w),E=$==null?_:Ga($),_=new ee(C,b+"leave",w,l,O),_.target=Oe,_.relatedTarget=E,C=null,Ml(O)===A&&(ee=new ee(T,b+"enter",$,l,O),ee.target=E,ee.relatedTarget=Oe,C=ee),Oe=C,w&&$)t:{for(ee=yg,T=w,b=$,E=0,C=T;C;C=ee(C))E++;C=0;for(var F=b;F;F=ee(F))C++;for(;0<E-C;)T=ee(T),E--;for(;0<C-E;)b=ee(b),C--;for(;E--;){if(T===b||b!==null&&T===b.alternate){ee=T;break t}T=ee(T),b=ee(b)}ee=null}else ee=null;w!==null&&vh(U,_,w,ee,!1),$!==null&&Oe!==null&&vh(U,Oe,$,ee,!0)}}e:{if(_=A?Ga(A):window,w=_.nodeName&&_.nodeName.toLowerCase(),w==="select"||w==="input"&&_.type==="file")var be=Mo;else if(Oo(_))if(Co)be=wp;else{be=Ap;var J=Ep}else w=_.nodeName,!w||w.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?A&&ra(A.elementType)&&(be=Mo):be=_p;if(be&&(be=be(e,A))){Do(U,be,l,O);break e}J&&J(e,_,A),e==="focusout"&&A&&_.type==="number"&&A.memoizedProps.value!=null&&Nn(_,"number",_.value)}switch(J=A?Ga(A):window,e){case"focusin":(Oo(J)||J.contentEditable==="true")&&(Tn=J,tu=A,_i=null);break;case"focusout":_i=tu=Tn=null;break;case"mousedown":lu=!0;break;case"contextmenu":case"mouseup":case"dragend":lu=!1,Xo(U,l,O);break;case"selectionchange":if(zp)break;case"keydown":case"keyup":Xo(U,l,O)}var ce;if(Fc)e:{switch(e){case"compositionstart":var he="onCompositionStart";break e;case"compositionend":he="onCompositionEnd";break e;case"compositionupdate":he="onCompositionUpdate";break e}he=void 0}else jn?zo(e,l)&&(he="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(he="onCompositionStart");he&&(_o&&l.locale!=="ko"&&(jn||he!=="onCompositionStart"?he==="onCompositionEnd"&&jn&&(ce=No()):(oa=O,Vc="value"in oa?oa.value:oa.textContent,jn=!0)),J=Sc(A,he),0<J.length&&(he=new Eo(he,e,null,l,O),U.push({event:he,listeners:J}),ce?he.data=ce:(ce=Ro(l),ce!==null&&(he.data=ce)))),(ce=bp?Sp(e,l):Np(e,l))&&(he=Sc(A,"onBeforeInput"),0<he.length&&(J=new Eo("onBeforeInput","beforeinput",null,l,O),U.push({event:J,listeners:he}),J.data=ce)),hg(U,e,A,l,O)}gh(U,t)})}function Ii(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Sc(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=We(e,l),n!=null&&a.unshift(Ii(e,n,i)),n=We(e,t),n!=null&&a.push(Ii(e,n,i))),e.tag===3)return a;e=e.return}return[]}function yg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function vh(e,t,l,a,n){for(var i=t._reactName,f=[];l!==null&&l!==a;){var m=l,x=m.alternate,A=m.stateNode;if(m=m.tag,x!==null&&x===a)break;m!==5&&m!==26&&m!==27||A===null||(x=A,n?(A=We(l,i),A!=null&&f.unshift(Ii(l,A,x))):n||(A=We(l,i),A!=null&&f.push(Ii(l,A,x)))),l=l.return}f.length!==0&&e.push({event:t,listeners:f})}var vg=/\r\n?/g,xg=/\u0000|\uFFFD/g;function xh(e){return(typeof e=="string"?e:""+e).replace(vg,`
|
|
9
|
-
`).replace(xg,"")}function bh(e,t){return t=xh(t),xh(e)===t}function Re(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ll(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ll(e,""+a);break;case"className":Qa(e,"class",a);break;case"tabIndex":Qa(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Qa(e,l,a);break;case"style":vi(e,a,i);break;case"data":if(t!=="object"){Qa(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=p(""+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 i=="function"&&(l==="formAction"?(t!=="input"&&Re(e,t,"name",n.name,n,null),Re(e,t,"formEncType",n.formEncType,n,null),Re(e,t,"formMethod",n.formMethod,n,null),Re(e,t,"formTarget",n.formTarget,n,null)):(Re(e,t,"encType",n.encType,n,null),Re(e,t,"method",n.method,n,null),Re(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=p(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=j);break;case"onScroll":a!=null&&oe("scroll",e);break;case"onScrollEnd":a!=null&&oe("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(n.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=p(""+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":oe("beforetoggle",e),oe("toggle",e),xn(e,"popover",a);break;case"xlinkActuate":ll(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ll(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ll(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ll(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ll(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ll(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ll(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ll(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ll(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=xi.get(l)||l,xn(e,l,a))}}function _r(e,t,l,a,n,i){switch(l){case"style":vi(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Ll(e,a):(typeof a=="number"||typeof a=="bigint")&&Ll(e,""+a);break;case"onScroll":a!=null&&oe("scroll",e);break;case"onScrollEnd":a!=null&&oe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=j);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ml.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[Ke]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):xn(e,l,a)}}}function xt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":oe("error",e),oe("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var f=l[i];if(f!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Re(e,t,i,f,l,null)}}n&&Re(e,t,"srcSet",l.srcSet,l,null),a&&Re(e,t,"src",l.src,l,null);return;case"input":oe("invalid",e);var m=i=f=n=null,x=null,A=null;for(a in l)if(l.hasOwnProperty(a)){var O=l[a];if(O!=null)switch(a){case"name":n=O;break;case"type":f=O;break;case"checked":x=O;break;case"defaultChecked":A=O;break;case"value":i=O;break;case"defaultValue":m=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,t));break;default:Re(e,t,a,O,l,null)}}gi(e,i,m,x,A,f,n,!1);return;case"select":oe("invalid",e),a=f=i=null;for(n in l)if(l.hasOwnProperty(n)&&(m=l[n],m!=null))switch(n){case"value":i=m;break;case"defaultValue":f=m;break;case"multiple":a=m;default:Re(e,t,n,m,l,null)}t=i,l=f,e.multiple=!!a,t!=null?Hl(e,!!a,t,!1):l!=null&&Hl(e,!!a,l,!0);return;case"textarea":oe("invalid",e),i=n=a=null;for(f in l)if(l.hasOwnProperty(f)&&(m=l[f],m!=null))switch(f){case"value":a=m;break;case"defaultValue":n=m;break;case"children":i=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:Re(e,t,f,m,l,null)}As(e,a,n,i);return;case"option":for(x in l)l.hasOwnProperty(x)&&(a=l[x],a!=null)&&(x==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":Re(e,t,x,a,l,null));return;case"dialog":oe("beforetoggle",e),oe("toggle",e),oe("cancel",e),oe("close",e);break;case"iframe":case"object":oe("load",e);break;case"video":case"audio":for(a=0;a<Fi.length;a++)oe(Fi[a],e);break;case"image":oe("error",e),oe("load",e);break;case"details":oe("toggle",e);break;case"embed":case"source":case"link":oe("error",e),oe("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(A in l)if(l.hasOwnProperty(A)&&(a=l[A],a!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Re(e,t,A,a,l,null)}return;default:if(ra(t)){for(O in l)l.hasOwnProperty(O)&&(a=l[O],a!==void 0&&_r(e,t,O,a,l,void 0));return}}for(m in l)l.hasOwnProperty(m)&&(a=l[m],a!=null&&Re(e,t,m,a,l,null))}function bg(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 n=null,i=null,f=null,m=null,x=null,A=null,O=null;for(w in l){var U=l[w];if(l.hasOwnProperty(w)&&U!=null)switch(w){case"checked":break;case"value":break;case"defaultValue":x=U;default:a.hasOwnProperty(w)||Re(e,t,w,null,a,U)}}for(var _ in a){var w=a[_];if(U=l[_],a.hasOwnProperty(_)&&(w!=null||U!=null))switch(_){case"type":i=w;break;case"name":n=w;break;case"checked":A=w;break;case"defaultChecked":O=w;break;case"value":f=w;break;case"defaultValue":m=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(137,t));break;default:w!==U&&Re(e,t,_,w,a,U)}}pi(e,f,m,x,A,O,i,n);return;case"select":w=f=m=_=null;for(i in l)if(x=l[i],l.hasOwnProperty(i)&&x!=null)switch(i){case"value":break;case"multiple":w=x;default:a.hasOwnProperty(i)||Re(e,t,i,null,a,x)}for(n in a)if(i=a[n],x=l[n],a.hasOwnProperty(n)&&(i!=null||x!=null))switch(n){case"value":_=i;break;case"defaultValue":m=i;break;case"multiple":f=i;default:i!==x&&Re(e,t,n,i,a,x)}t=m,l=f,a=w,_!=null?Hl(e,!!l,_,!1):!!a!=!!l&&(t!=null?Hl(e,!!l,t,!0):Hl(e,!!l,l?[]:"",!1));return;case"textarea":w=_=null;for(m in l)if(n=l[m],l.hasOwnProperty(m)&&n!=null&&!a.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Re(e,t,m,null,a,n)}for(f in a)if(n=a[f],i=l[f],a.hasOwnProperty(f)&&(n!=null||i!=null))switch(f){case"value":_=n;break;case"defaultValue":w=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==i&&Re(e,t,f,n,a,i)}yi(e,_,w);return;case"option":for(var $ in l)_=l[$],l.hasOwnProperty($)&&_!=null&&!a.hasOwnProperty($)&&($==="selected"?e.selected=!1:Re(e,t,$,null,a,_));for(x in a)_=a[x],w=l[x],a.hasOwnProperty(x)&&_!==w&&(_!=null||w!=null)&&(x==="selected"?e.selected=_&&typeof _!="function"&&typeof _!="symbol":Re(e,t,x,_,a,w));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 ee in l)_=l[ee],l.hasOwnProperty(ee)&&_!=null&&!a.hasOwnProperty(ee)&&Re(e,t,ee,null,a,_);for(A in a)if(_=a[A],w=l[A],a.hasOwnProperty(A)&&_!==w&&(_!=null||w!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:Re(e,t,A,_,a,w)}return;default:if(ra(t)){for(var Oe in l)_=l[Oe],l.hasOwnProperty(Oe)&&_!==void 0&&!a.hasOwnProperty(Oe)&&_r(e,t,Oe,void 0,a,_);for(O in a)_=a[O],w=l[O],!a.hasOwnProperty(O)||_===w||_===void 0&&w===void 0||_r(e,t,O,_,a,w);return}}for(var T in l)_=l[T],l.hasOwnProperty(T)&&_!=null&&!a.hasOwnProperty(T)&&Re(e,t,T,null,a,_);for(U in a)_=a[U],w=l[U],!a.hasOwnProperty(U)||_===w||_==null&&w==null||Re(e,t,U,_,a,w)}function Sh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Sg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,f=n.initiatorType,m=n.duration;if(i&&m&&Sh(f)){for(f=0,m=n.responseEnd,a+=1;a<l.length;a++){var x=l[a],A=x.startTime;if(A>m)break;var O=x.transferSize,U=x.initiatorType;O&&Sh(U)&&(x=x.responseEnd,f+=O*(x<m?1:(m-A)/(x-A)))}if(--a,t+=8*(i+f)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var wr=null,kr=null;function Nc(e){return e.nodeType===9?e:e.ownerDocument}function Nh(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 jh(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 zr(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 Rr=null;function Ng(){var e=window.event;return e&&e.type==="popstate"?e===Rr?!1:(Rr=e,!0):(Rr=null,!1)}var Th=typeof setTimeout=="function"?setTimeout:void 0,jg=typeof clearTimeout=="function"?clearTimeout:void 0,Eh=typeof Promise=="function"?Promise:void 0,Tg=typeof queueMicrotask=="function"?queueMicrotask:typeof Eh<"u"?function(e){return Eh.resolve(null).then(e).catch(Eg)}:Th;function Eg(e){setTimeout(function(){throw e})}function _a(e){return e==="head"}function Ah(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Fn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Pi(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Pi(l);for(var i=l.firstChild;i;){var f=i.nextSibling,m=i.nodeName;i[sa]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=f}}else l==="body"&&Pi(e.ownerDocument.body);l=n}while(l);Fn(t)}function _h(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 Or(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":Or(l),Ya(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Ag(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[sa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=rl(e.nextSibling),e===null)break}return null}function _g(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=rl(e.nextSibling),e===null))return null;return e}function wh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=rl(e.nextSibling),e===null))return null;return e}function Dr(e){return e.data==="$?"||e.data==="$~"}function Mr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function wg(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 rl(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 Cr=null;function kh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return rl(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function zh(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 Rh(e,t,l){switch(t=Nc(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 Pi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ya(e)}var ol=new Map,Oh=new Set;function jc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Pl=Y.d;Y.d={f:kg,r:zg,D:Rg,C:Og,L:Dg,m:Mg,X:Ug,S:Cg,M:Hg};function kg(){var e=Pl.f(),t=mc();return e||t}function zg(e){var t=Cl(e);t!==null&&t.tag===5&&t.type==="form"?Jf(t):Pl.r(e)}var Kn=typeof document>"u"?null:document;function Dh(e,t,l){var a=Kn;if(a&&typeof t=="string"&&t){var n=mt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Oh.has(n)||(Oh.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),xt(t,"link",e),Je(t),a.head.appendChild(t)))}}function Rg(e){Pl.D(e),Dh("dns-prefetch",e,null)}function Og(e,t){Pl.C(e,t),Dh("preconnect",e,t)}function Dg(e,t,l){Pl.L(e,t,l);var a=Kn;if(a&&e&&t){var n='link[rel="preload"][as="'+mt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+mt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+mt(l.imageSizes)+'"]')):n+='[href="'+mt(e)+'"]';var i=n;switch(t){case"style":i=Jn(e);break;case"script":i=Wn(e)}ol.has(i)||(e=M({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),ol.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(es(i))||t==="script"&&a.querySelector(ts(i))||(t=a.createElement("link"),xt(t,"link",e),Je(t),a.head.appendChild(t)))}}function Mg(e,t){Pl.m(e,t);var l=Kn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+mt(a)+'"][href="'+mt(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Wn(e)}if(!ol.has(i)&&(e=M({rel:"modulepreload",href:e},t),ol.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ts(i)))return}a=l.createElement("link"),xt(a,"link",e),Je(a),l.head.appendChild(a)}}}function Cg(e,t,l){Pl.S(e,t,l);var a=Kn;if(a&&e){var n=ca(a).hoistableStyles,i=Jn(e);t=t||"default";var f=n.get(i);if(!f){var m={loading:0,preload:null};if(f=a.querySelector(es(i)))m.loading=5;else{e=M({rel:"stylesheet",href:e,"data-precedence":t},l),(l=ol.get(i))&&Ur(e,l);var x=f=a.createElement("link");Je(x),xt(x,"link",e),x._p=new Promise(function(A,O){x.onload=A,x.onerror=O}),x.addEventListener("load",function(){m.loading|=1}),x.addEventListener("error",function(){m.loading|=2}),m.loading|=4,Tc(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:m},n.set(i,f)}}}function Ug(e,t){Pl.X(e,t);var l=Kn;if(l&&e){var a=ca(l).hoistableScripts,n=Wn(e),i=a.get(n);i||(i=l.querySelector(ts(n)),i||(e=M({src:e,async:!0},t),(t=ol.get(n))&&Hr(e,t),i=l.createElement("script"),Je(i),xt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Hg(e,t){Pl.M(e,t);var l=Kn;if(l&&e){var a=ca(l).hoistableScripts,n=Wn(e),i=a.get(n);i||(i=l.querySelector(ts(n)),i||(e=M({src:e,async:!0,type:"module"},t),(t=ol.get(n))&&Hr(e,t),i=l.createElement("script"),Je(i),xt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Mh(e,t,l,a){var n=(n=ue.current)?jc(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Jn(l.href),l=ca(n).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=Jn(l.href);var i=ca(n).hoistableStyles,f=i.get(e);if(f||(n=n.ownerDocument||n,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,f),(i=n.querySelector(es(e)))&&!i._p&&(f.instance=i,f.state.loading=5),ol.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},ol.set(e,l),i||Lg(n,e,l,f.state))),t&&a===null)throw Error(r(528,""));return f}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=Wn(l),l=ca(n).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 Jn(e){return'href="'+mt(e)+'"'}function es(e){return'link[rel="stylesheet"]['+e+"]"}function Ch(e){return M({},e,{"data-precedence":e.precedence,precedence:null})}function Lg(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}),xt(t,"link",l),Je(t),e.head.appendChild(t))}function Wn(e){return'[src="'+mt(e)+'"]'}function ts(e){return"script[async]"+e}function Uh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+mt(l.href)+'"]');if(a)return t.instance=a,Je(a),a;var n=M({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Je(a),xt(a,"style",n),Tc(a,l.precedence,e),t.instance=a;case"stylesheet":n=Jn(l.href);var i=e.querySelector(es(n));if(i)return t.state.loading|=4,t.instance=i,Je(i),i;a=Ch(l),(n=ol.get(n))&&Ur(a,n),i=(e.ownerDocument||e).createElement("link"),Je(i);var f=i;return f._p=new Promise(function(m,x){f.onload=m,f.onerror=x}),xt(i,"link",a),t.state.loading|=4,Tc(i,l.precedence,e),t.instance=i;case"script":return i=Wn(l.src),(n=e.querySelector(ts(i)))?(t.instance=n,Je(n),n):(a=l,(n=ol.get(i))&&(a=M({},l),Hr(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Je(n),xt(n,"link",a),e.head.appendChild(n),t.instance=n);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,Tc(a,l.precedence,e));return t.instance}function Tc(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,f=0;f<a.length;f++){var m=a[f];if(m.dataset.precedence===t)i=m;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Ur(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Hr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ec=null;function Hh(e,t,l){if(Ec===null){var a=new Map,n=Ec=new Map;n.set(l,a)}else n=Ec,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var i=l[n];if(!(i[sa]||i[lt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var f=i.getAttribute(t)||"";f=e+f;var m=a.get(f);m?m.push(i):a.set(f,[i])}}return a}function Lh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Bg(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 Bh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function qg(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 n=Jn(a.href),i=t.querySelector(es(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ac.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Je(i);return}i=t.ownerDocument||t,a=Ch(a),(n=ol.get(n))&&Ur(a,n),i=i.createElement("link"),Je(i);var f=i;f._p=new Promise(function(m,x){f.onload=m,f.onerror=x}),xt(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ac.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Lr=0;function Yg(e,t){return e.stylesheets&&e.count===0&&wc(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&wc(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Lr===0&&(Lr=62500*Sg());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&wc(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Lr?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Ac(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _c=null;function wc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_c=new Map,t.forEach(Gg,e),_c=null,Ac.call(e))}function Gg(e,t){if(!(t.state.loading&4)){var l=_c.get(e);if(l)var a=l.get(null);else{l=new Map,_c.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var f=n[i];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),a=f)}a&&l.set(null,a)}n=t.instance,f=n.getAttribute("data-precedence"),i=l.get(f)||a,i===a&&l.set(null,n),l.set(f,n),this.count++,a=Ac.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var ls={$$typeof:K,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function Xg(e,t,l,a,n,i,f,m,x){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=aa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=aa(0),this.hiddenUpdates=aa(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function qh(e,t,l,a,n,i,f,m,x,A,O,U){return e=new Xg(e,t,l,f,x,A,O,U,m),t=1,i===!0&&(t|=24),i=Gt(3,null,null,t),e.current=i,i.stateNode=e,t=yu(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},Su(i),e}function Yh(e){return e?(e=_n,e):_n}function Gh(e,t,l,a,n,i){n=Yh(n),a.context===null?a.context=n:a.pendingContext=n,a=ga(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=ya(e,a,t),l!==null&&(Ct(l,e,t),Mi(l,e,t))}function Xh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Br(e,t){Xh(e,t),(e=e.alternate)&&Xh(e,t)}function Qh(e){if(e.tag===13||e.tag===31){var t=Ka(e,67108864);t!==null&&Ct(t,e,67108864),Br(e,67108864)}}function Zh(e){if(e.tag===13||e.tag===31){var t=$t();t=di(t);var l=Ka(e,t);l!==null&&Ct(l,e,t),Br(e,t)}}var kc=!0;function Qg(e,t,l,a){var n=D.T;D.T=null;var i=Y.p;try{Y.p=2,qr(e,t,l,a)}finally{Y.p=i,D.T=n}}function Zg(e,t,l,a){var n=D.T;D.T=null;var i=Y.p;try{Y.p=8,qr(e,t,l,a)}finally{Y.p=i,D.T=n}}function qr(e,t,l,a){if(kc){var n=Yr(a);if(n===null)Ar(e,t,a,zc,l),$h(e,a);else if($g(n,e,t,l,a))a.stopPropagation();else if($h(e,a),t&4&&-1<Vg.indexOf(e)){for(;n!==null;){var i=Cl(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var f=jl(i.pendingLanes);if(f!==0){var m=i;for(m.pendingLanes|=2,m.entangledLanes|=2;f;){var x=1<<31-Nt(f);m.entanglements[1]|=x,f&=~x}zl(i),(Ne&6)===0&&(dc=St()+500,Wi(0))}}break;case 31:case 13:m=Ka(i,2),m!==null&&Ct(m,i,2),mc(),Br(i,2)}if(i=Yr(a),i===null&&Ar(e,t,a,zc,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else Ar(e,t,a,null,l)}}function Yr(e){return e=Q(e),Gr(e)}var zc=null;function Gr(e){if(zc=null,e=Ml(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=g(t),e!==null)return e;e=null}else if(l===31){if(e=y(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 zc=e,null}function Vh(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(vs()){case fl:return 2;case Nl:return 8;case It:case ui:return 32;case Ba:return 268435456;default:return 32}default:return 32}}var Xr=!1,wa=null,ka=null,za=null,as=new Map,ns=new Map,Ra=[],Vg="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 $h(e,t){switch(e){case"focusin":case"focusout":wa=null;break;case"dragenter":case"dragleave":ka=null;break;case"mouseover":case"mouseout":za=null;break;case"pointerover":case"pointerout":as.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ns.delete(t.pointerId)}}function is(e,t,l,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},t!==null&&(t=Cl(t),t!==null&&Qh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function $g(e,t,l,a,n){switch(t){case"focusin":return wa=is(wa,e,t,l,a,n),!0;case"dragenter":return ka=is(ka,e,t,l,a,n),!0;case"mouseover":return za=is(za,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return as.set(i,is(as.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,ns.set(i,is(ns.get(i)||null,e,t,l,a,n)),!0}return!1}function Kh(e){var t=Ml(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=g(l),t!==null){e.blockedOn=t,hi(e.priority,function(){Zh(l)});return}}else if(t===31){if(t=y(l),t!==null){e.blockedOn=t,hi(e.priority,function(){Zh(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 Rc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Yr(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);L=a,l.target.dispatchEvent(a),L=null}else return t=Cl(l),t!==null&&Qh(t),e.blockedOn=l,!1;t.shift()}return!0}function Jh(e,t,l){Rc(e)&&l.delete(t)}function Kg(){Xr=!1,wa!==null&&Rc(wa)&&(wa=null),ka!==null&&Rc(ka)&&(ka=null),za!==null&&Rc(za)&&(za=null),as.forEach(Jh),ns.forEach(Jh)}function Oc(e,t){e.blockedOn===t&&(e.blockedOn=null,Xr||(Xr=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,Kg)))}var Dc=null;function Wh(e){Dc!==e&&(Dc=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Dc===e&&(Dc=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Gr(a||l)===null)continue;break}var i=Cl(l);i!==null&&(e.splice(t,3),t-=3,Yu(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Fn(e){function t(x){return Oc(x,e)}wa!==null&&Oc(wa,e),ka!==null&&Oc(ka,e),za!==null&&Oc(za,e),as.forEach(t),ns.forEach(t);for(var l=0;l<Ra.length;l++){var a=Ra[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ra.length&&(l=Ra[0],l.blockedOn===null);)Kh(l),l.blockedOn===null&&Ra.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],f=n[Ke]||null;if(typeof i=="function")f||Wh(l);else if(f){var m=null;if(i&&i.hasAttribute("formAction")){if(n=i,f=i[Ke]||null)m=f.formAction;else if(Gr(n)!==null)continue}else m=f.action;typeof m=="function"?l[a+1]=m:(l.splice(a,3),a-=3),Wh(l)}}}function Fh(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(f){return n=f})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=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),n!==null&&(n(),n=null)}}}function Qr(e){this._internalRoot=e}Mc.prototype.render=Qr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=$t();Gh(l,a,e,t,null,null)},Mc.prototype.unmount=Qr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gh(e.current,2,null,e,null,null),mc(),t[na]=null}};function Mc(e){this._internalRoot=e}Mc.prototype.unstable_scheduleHydration=function(e){if(e){var t=vn();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ra.length&&t!==0&&t<Ra[l].priority;l++);Ra.splice(l,0,e),l===0&&Kh(e)}};var Ih=s.version;if(Ih!=="19.2.8")throw Error(r(527,Ih,"19.2.8"));Y.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?z(e):null,e=e===null?null:e.stateNode,e};var Jg={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cc.isDisabled&&Cc.supportsFiber)try{Pt=Cc.inject(Jg),ut=Cc}catch{}}return cs.createRoot=function(e,t){if(!d(e))throw Error(r(299));var l=!1,a="",n=id,i=sd,f=cd;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=qh(e,1,!1,null,null,l,a,null,n,i,f,Fh),e[na]=t.current,Er(e),new Qr(t)},cs.hydrateRoot=function(e,t,l){if(!d(e))throw Error(r(299));var a=!1,n="",i=id,f=sd,m=cd,x=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(m=l.onRecoverableError),l.formState!==void 0&&(x=l.formState)),t=qh(e,1,!0,t,l??null,a,n,x,i,f,m,Fh),t.context=Yh(null),l=t.current,a=$t(),a=di(a),n=ga(a),n.callback=null,ya(l,n,a),l=a,t.current.lanes=l,Tl(t,l),zl(t),e[na]=t.current,Er(e),new Mc(t)},cs.version="19.2.8",cs}var um;function iy(){if(um)return $r.exports;um=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(s){console.error(s)}}return u(),$r.exports=ny(),$r.exports}var sy=iy();function cy(){const[u,s]=G.useState(()=>window.location.hash.slice(1)||"/");return G.useEffect(()=>{const o=()=>s(window.location.hash.slice(1)||"/");return window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]),u}function Ca(u,s){s?.replace?window.location.replace(`#${u}`):window.location.hash=u}function Ye({href:u,...s}){return c.jsx("a",{href:`#${u}`,...s})}function bt(u,s){const[o,r]=G.useState(null),d=G.useRef(u);return d.current=u,G.useEffect(()=>{let h=!0,g;const y=async()=>{try{const N=await fetch(d.current,{cache:"no-store"});N.ok&&h&&r(await N.json())}catch{}h&&(g=setTimeout(y,s?1500:6e3))};return y(),()=>{h=!1,clearTimeout(g)}},[u,s]),o}function ms(u){if(u==null)return"—";const s=Math.round(u/1e3);return s<60?`${s}s`:`${Math.floor(s/60)}m${String(s%60).padStart(2,"0")}s`}function oo(u){return u==null?"—":`$${u.toFixed(2)}`}function Lc(u){return u?u>=1e3?`${(u/1e3).toFixed(1)}k`:String(u):"0"}function fo(u){return u<1024?`${u} B`:u<1024*1024?`${(u/1024).toFixed(1)} K`:`${(u/1024/1024).toFixed(1)} M`}function ti(u){if(!u)return"—";const s=new Date(u),o=new Date,r=s.toDateString()===o.toDateString(),d=s.toTimeString().slice(0,5);return r?d:`${s.toISOString().slice(5,10)} ${d}`}function ho({since:u}){const[,s]=G.useState(0);return G.useEffect(()=>{const o=setInterval(()=>s(r=>r+1),1e3);return()=>clearInterval(o)},[]),u?c.jsx("span",{className:"num",children:ms(Date.now()-Date.parse(u))}):null}function Gc({status:u}){return c.jsx("span",{className:`lamp ${u}`})}function uy({status:u}){return c.jsx("span",{className:`status-word ${u}`,children:u})}function mo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var dn=mo();function Mm(u){dn=u}var on={exec:()=>null};function In(u){let s=[];return o=>{let r=Math.max(0,Math.min(3,o-1)),d=s[r];return d||(d=u(r),s[r]=d),d}}function fe(u,s=""){let o=typeof u=="string"?u:u.source,r={replace:(d,h)=>{let g=typeof h=="string"?h:h.source;return g=g.replace(Et.caret,"$1"),o=o.replace(d,g),r},getRegex:()=>new RegExp(o,s)};return r}var ry=((u="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+u)}catch{return!1}})(),Et={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:u=>new RegExp(`^( {0,3}${u})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:In(u=>new RegExp(`^ {0,${u}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:In(u=>new RegExp(`^ {0,${u}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:In(u=>new RegExp(`^ {0,${u}}(?:\`\`\`|~~~)`)),headingBeginRegex:In(u=>new RegExp(`^ {0,${u}}#`)),htmlBeginRegex:In(u=>new RegExp(`^ {0,${u}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:In(u=>new RegExp(`^ {0,${u}}>`))},oy=/^(?:[ \t]*(?:\n|$))+/,fy=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,dy=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ps=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,hy=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,po=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Cm=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Um=fe(Cm).replace(/bull/g,po).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),my=fe(Cm).replace(/bull/g,po).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),go=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,py=/^[^\n]+/,yo=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,gy=fe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",yo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),yy=fe(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,po).getRegex(),Xc="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",vo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,vy=fe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",vo).replace("tag",Xc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Hm=u=>fe(go).replace("hr",ps).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",u).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xc).getRegex(),xy=Hm(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),by=Hm(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Sy=fe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",by).getRegex(),xo={blockquote:Sy,code:fy,def:gy,fences:dy,heading:hy,hr:ps,html:vy,lheading:Um,list:yy,newline:oy,paragraph:xy,table:on,text:py},rm=fe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ps).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xc).getRegex(),Ny={...xo,lheading:my,table:rm,paragraph:fe(go).replace("hr",ps).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",rm).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xc).getRegex()},jy={...xo,html:fe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vo).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:on,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:fe(go).replace("hr",ps).replace("heading",` *#{1,6} *[^
|
|
10
|
-
]`).replace("lheading",Um).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ty=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ey=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Lm=/^( {2,}|\\)\n(?!\s*$)/,Ay=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ea=/[\p{P}\p{S}]/u,li=/[\s\p{P}\p{S}]/u,gs=/[^\s\p{P}\p{S}]/u,_y=fe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,li).getRegex(),wy=/[\p{Pi}\p{Ps}"']/u,Bm=/(?!~)[\p{P}\p{S}]/u,ky=/(?!~)[\s\p{P}\p{S}]/u,zy=/(?:[^\s\p{P}\p{S}]|~)/u,Ry=fe(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ry?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),qm=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Oy=fe(qm,"u").replace(/punct/g,ea).getRegex(),Dy=fe(qm,"u").replace(/punct/g,Bm).getRegex(),My=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Cy=fe(My,"u").replace(/openQuote/g,wy).replace(/punct/g,ea).getRegex(),Ym="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Uy=fe(Ym,"gu").replace(/notPunctSpace/g,gs).replace(/punctSpace/g,li).replace(/punct/g,ea).getRegex(),Hy=fe(Ym,"gu").replace(/notPunctSpace/g,zy).replace(/punctSpace/g,ky).replace(/punct/g,Bm).getRegex(),Ly="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",By=fe(Ly,"gu").replace(/notPunctSpace/g,gs).replace(/punctSpace/g,li).replace(/punct/g,ea).getRegex(),qy=fe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,gs).replace(/punctSpace/g,li).replace(/punct/g,ea).getRegex(),Yy="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Gy=fe(Yy,"gu").replace(/notPunctSpace/g,gs).replace(/punctSpace/g,li).replace(/punct/g,ea).getRegex(),Xy=fe(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ea).getRegex(),Qy="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Zy=fe(Qy,"gu").replace(/notPunctSpace/g,gs).replace(/punctSpace/g,li).replace(/punct/g,ea).getRegex(),Vy=fe(/\\(punct)/,"gu").replace(/punct/g,ea).getRegex(),$y=fe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Ky=fe(vo).replace("(?:-->|$)","-->").getRegex(),Jy=fe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Ky).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Bc=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Wy=fe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Bc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Gm=fe(/^!?\[(label)\]\[(ref)\]/).replace("label",Bc).replace("ref",yo).getRegex(),Xm=fe(/^!?\[(ref)\](?:\[\])?/).replace("ref",yo).getRegex(),Fy=fe("reflink|nolink(?!\\()","g").replace("reflink",Gm).replace("nolink",Xm).getRegex(),om=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,bo={_backpedal:on,anyPunctuation:Vy,autolink:$y,blockSkip:Ry,br:Lm,code:Ey,del:on,delLDelim:on,delRDelim:on,emStrongLDelim:Oy,emStrongRDelimAst:Uy,emStrongRDelimUnd:qy,escape:Ty,link:Wy,nolink:Xm,punctuation:_y,reflink:Gm,reflinkSearch:Fy,tag:Jy,text:Ay,url:on},Iy={...bo,emStrongLDelim:Cy,emStrongRDelimAst:By,emStrongRDelimUnd:Gy,link:fe(/^!?\[(label)\]\((.*?)\)/).replace("label",Bc).getRegex(),reflink:fe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Bc).getRegex()},ao={...bo,emStrongRDelimAst:Hy,emStrongLDelim:Dy,delLDelim:Xy,delRDelim:Zy,url:fe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",om).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:fe(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",om).getRegex()},Py={...ao,br:fe(Lm).replace("{2,}","*").getRegex(),text:fe(ao.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Uc={normal:xo,gfm:Ny,pedantic:jy},us={normal:bo,gfm:ao,breaks:Py,pedantic:Iy},ev={"&":"&","<":"<",">":">",'"':""","'":"'"},fm=u=>ev[u];function Rl(u,s){if(s){if(Et.escapeTest.test(u))return u.replace(Et.escapeReplace,fm)}else if(Et.escapeTestNoEncode.test(u))return u.replace(Et.escapeReplaceNoEncode,fm);return u}function dm(u){try{u=encodeURI(u).replace(Et.percentDecode,"%")}catch{return null}return u}function hm(u,s){let o=u.replace(Et.findPipe,(h,g,y)=>{let N=!1,v=g;for(;--v>=0&&y[v]==="\\";)N=!N;return N?"|":" |"}),r=o.split(Et.splitPipe),d=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),s)if(r.length>s)r.splice(s);else for(;r.length<s;)r.push("");for(;d<r.length;d++)r[d]=r[d].trim().replace(Et.slashPipe,"|");return r}function Da(u,s,o){let r=u.length;if(r===0)return"";let d=0;for(;d<r&&u.charAt(r-d-1)===s;)d++;return u.slice(0,r-d)}function mm(u){let s=u.split(`
|
|
11
|
-
`),o=s.length-1;for(;o>=0&&Et.blankLine.test(s[o]);)o--;return s.length-o<=2?u:s.slice(0,o+1).join(`
|
|
12
|
-
`)}function tv(u,s){if(u.indexOf(s[1])===-1)return-1;let o=0;for(let r=0;r<u.length;r++)if(u[r]==="\\")r++;else if(u[r]===s[0])o++;else if(u[r]===s[1]&&(o--,o<0))return r;return o>0?-2:-1}function lv(u,s=0){let o=s,r="";for(let d of u)if(d===" "){let h=4-o%4;r+=" ".repeat(h),o+=h}else r+=d,o++;return r}function pm(u,s,o,r,d){let h=s.href,g=s.title||null,y=u[1].replace(d.other.outputLinkReplace,"$1"),N=u[0].charAt(0)==="!";r.state.inLink=!0;let v=r.state.linkEmitted,z=r.state.inRawBlock;r.state.linkEmitted=!1;let M=r.inlineTokens(y),k=r.state.linkEmitted;if(r.state.linkEmitted=v,r.state.inLink=!1,!N){if(k){r.state.inRawBlock=z;return}r.state.linkEmitted=!0}return{type:N?"image":"link",raw:o,href:h,title:g,text:y,tokens:M}}function av(u,s,o){let r=u.match(o.other.indentCodeCompensation);if(r===null)return s;let d=r[1];return s.split(`
|
|
13
|
-
`).map(h=>{let g=h.match(o.other.beginningSpace);if(g===null)return h;let[y]=g;return y.length>=d.length?h.slice(d.length):h}).join(`
|
|
14
|
-
`)}var qc=class{options;rules;lexer;constructor(u){this.options=u||dn}space(u){let s=this.rules.block.newline.exec(u);if(s&&s[0].length>0)return{type:"space",raw:s[0]}}code(u){let s=this.rules.block.code.exec(u);if(s){let o=this.options.pedantic?s[0]:mm(s[0]),r=o.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:o,codeBlockStyle:"indented",text:r}}}fences(u){let s=this.rules.block.fences.exec(u);if(s){let o=s[0],r=av(o,s[3]||"",this.rules);return{type:"code",raw:o,lang:s[2]?s[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):s[2],text:r}}}heading(u){let s=this.rules.block.heading.exec(u);if(s){let o=s[2].trim();if(this.rules.other.endingHash.test(o)){let r=Da(o,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(o=r.trim())}return{type:"heading",raw:Da(s[0],`
|
|
15
|
-
`),depth:s[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(u){let s=this.rules.block.hr.exec(u);if(s)return{type:"hr",raw:Da(s[0],`
|
|
16
|
-
`)}}blockquote(u){let s=this.rules.block.blockquote.exec(u);if(s){let o=Da(s[0],`
|
|
17
|
-
`).split(`
|
|
18
|
-
`),r="",d="",h=[];for(;o.length>0;){let g=!1,y=[],N;for(N=0;N<o.length;N++)if(this.rules.other.blockquoteStart.test(o[N]))y.push(o[N]),g=!0;else if(!g)y.push(o[N]);else break;o=o.slice(N);let v=y.join(`
|
|
19
|
-
`),z=v.replace(this.rules.other.blockquoteSetextReplace,`
|
|
20
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
21
|
-
${v}`:v,d=d?`${d}
|
|
22
|
-
${z}`:z;let M=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(z,h,!0),this.lexer.state.top=M,o.length===0)break;let k=h.at(-1);if(k?.type==="code")break;if(k?.type==="blockquote"){let te=k,Z=o.join(`
|
|
23
|
-
`),ne=te.raw+`
|
|
24
|
-
`+Z.replace(this.rules.other.blockquoteSetextReplace2,""),W=this.blockquote(ne);h[h.length-1]=W,r=`${r}
|
|
25
|
-
${Z}`,d=d.substring(0,d.length-te.text.length)+W.text;break}else if(k?.type==="list"){let te=k,Z=te.raw+`
|
|
26
|
-
`+o.join(`
|
|
27
|
-
`),ne=this.list(Z);h[h.length-1]=ne,r=r.substring(0,r.length-k.raw.length)+ne.raw,d=d.substring(0,d.length-te.raw.length)+ne.raw,o=Z.substring(h.at(-1).raw.length).split(`
|
|
28
|
-
`);continue}}return{type:"blockquote",raw:r,tokens:h,text:d}}}list(u){let s=this.rules.block.list.exec(u);if(s){let o=s[1].trim(),r=o.length>1,d={type:"list",raw:"",ordered:r,start:r?+o.slice(0,-1):"",loose:!1,items:[]};o=r?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=r?o:"[*+-]");let h=this.rules.other.listItemRegex(o),g=!1;for(;u;){let N=!1,v="",z="";if(!(s=h.exec(u))||this.rules.block.hr.test(u))break;v=s[0],u=u.substring(v.length);let M=lv(s[2].split(`
|
|
29
|
-
`,1)[0],s[1].length),k=u.split(`
|
|
30
|
-
`,1)[0],te=!M.trim(),Z=0;if(this.options.pedantic?(Z=2,z=M.trimStart()):te?Z=s[1].length+1:(Z=M.search(this.rules.other.nonSpaceChar),Z=Z>4?1:Z,z=M.slice(Z),Z+=s[1].length),te&&this.rules.other.blankLine.test(k)&&(v+=k+`
|
|
31
|
-
`,u=u.substring(k.length+1),N=!0),!N){let ne=this.rules.other.nextBulletRegex(Z),W=this.rules.other.hrRegex(Z),R=this.rules.other.fencesBeginRegex(Z),Te=this.rules.other.headingBeginRegex(Z),K=this.rules.other.htmlBeginRegex(Z),pe=this.rules.other.blockquoteBeginRegex(Z);for(;u;){let Ue=u.split(`
|
|
32
|
-
`,1)[0],Ee;if(k=Ue,this.options.pedantic?(k=k.replace(this.rules.other.listReplaceNesting," "),Ee=k):Ee=k.replace(this.rules.other.tabCharGlobal," "),R.test(k)||Te.test(k)||K.test(k)||pe.test(k)||ne.test(k)||W.test(k))break;if(Ee.search(this.rules.other.nonSpaceChar)>=Z||!k.trim())z+=`
|
|
33
|
-
`+Ee.slice(Z);else{if(te||M.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(M)||Te.test(M)||W.test(M))break;z+=`
|
|
34
|
-
`+k}te=!k.trim(),v+=Ue+`
|
|
35
|
-
`,u=u.substring(Ue.length+1),M=Ee.slice(Z)}}d.loose||(g?d.loose=!0:this.rules.other.doubleBlankLine.test(v)&&(g=!0)),d.items.push({type:"list_item",raw:v,task:!!this.options.gfm&&this.rules.other.listIsTask.test(z),loose:!1,text:z,tokens:[]}),d.raw+=v}let y=d.items.at(-1);if(y)y.raw=y.raw.trimEnd(),y.text=y.text.trimEnd();else return;d.raw=d.raw.trimEnd();for(let N of d.items)if(this.lexer.state.top=!1,N.tokens=this.lexer.blockTokens(N.text,[]),!d.loose){let v=N.tokens.filter(M=>M.type==="space"),z=v.length>0&&v.some(M=>this.rules.other.anyLine.test(M.raw));d.loose=z}for(let N of d.items){let v=N.tokens[0];if(N.task&&(v?.type==="text"||v?.type==="paragraph")){N.text=N.text.replace(this.rules.other.listReplaceTask,""),v.raw=v.raw.replace(this.rules.other.listReplaceTask,""),v.text=v.text.replace(this.rules.other.listReplaceTask,"");for(let M=this.lexer.inlineQueue.length-1;M>=0;M--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[M].src)){this.lexer.inlineQueue[M].src=this.lexer.inlineQueue[M].src.replace(this.rules.other.listReplaceTask,"");break}let z=this.rules.other.listTaskCheckbox.exec(N.raw);if(z){let M={type:"checkbox",raw:z[0]+" ",checked:z[0]!=="[ ]"};N.checked=M.checked,d.loose?N.tokens[0]&&["paragraph","text"].includes(N.tokens[0].type)&&"tokens"in N.tokens[0]&&N.tokens[0].tokens?(N.tokens[0].raw=M.raw+N.tokens[0].raw,N.tokens[0].text=M.raw+N.tokens[0].text,N.tokens[0].tokens.unshift(M)):N.tokens.unshift({type:"paragraph",raw:M.raw,text:M.raw,tokens:[M]}):N.tokens.unshift(M)}}else N.task&&(N.task=!1)}if(d.loose)for(let N of d.items){N.loose=!0;for(let v of N.tokens)v.type==="text"&&(v.type="paragraph")}return d}}html(u){let s=this.rules.block.html.exec(u);if(s){let o=mm(s[0]);return{type:"html",block:!0,raw:o,pre:s[1]==="pre"||s[1]==="script"||s[1]==="style",text:o}}}def(u){let s=this.rules.block.def.exec(u);if(s){let o=s[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=s[2]?s[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",d=s[3]?s[3].substring(1,s[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):s[3];return{type:"def",tag:o,raw:Da(s[0],`
|
|
36
|
-
`),href:r,title:d}}}table(u){let s=this.rules.block.table.exec(u);if(!s||!this.rules.other.tableDelimiter.test(s[2]))return;let o=hm(s[1]),r=s[2].replace(this.rules.other.tableAlignChars,"").split("|"),d=s[3]?.trim()?s[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
37
|
-
`):[],h={type:"table",raw:Da(s[0],`
|
|
38
|
-
`),header:[],align:[],rows:[]};if(o.length===r.length){for(let g of r)this.rules.other.tableAlignRight.test(g)?h.align.push("right"):this.rules.other.tableAlignCenter.test(g)?h.align.push("center"):this.rules.other.tableAlignLeft.test(g)?h.align.push("left"):h.align.push(null);for(let g=0;g<o.length;g++)h.header.push({text:o[g],tokens:this.lexer.inline(o[g]),header:!0,align:h.align[g]});for(let g of d)h.rows.push(hm(g,h.header.length).map((y,N)=>({text:y,tokens:this.lexer.inline(y),header:!1,align:h.align[N]})));return h}}lheading(u){let s=this.rules.block.lheading.exec(u);if(s){let o=s[1].trim();return{type:"heading",raw:Da(s[0],`
|
|
39
|
-
`),depth:s[2].charAt(0)==="="?1:2,text:o,tokens:this.lexer.inline(o)}}}paragraph(u){let s=this.rules.block.paragraph.exec(u);if(s){let o=s[1].charAt(s[1].length-1)===`
|
|
40
|
-
`?s[1].slice(0,-1):s[1];return{type:"paragraph",raw:s[0],text:o,tokens:this.lexer.inline(o)}}}text(u){let s=this.rules.block.text.exec(u);if(s)return{type:"text",raw:s[0],text:s[0],tokens:this.lexer.inline(s[0])}}escape(u){let s=this.rules.inline.escape.exec(u);if(s)return{type:"escape",raw:s[0],text:s[1]}}tag(u){let s=this.rules.inline.tag.exec(u);if(s)return!this.lexer.state.inLink&&this.rules.other.startATag.test(s[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(s[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(s[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(s[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:s[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:s[0]}}link(u){let s=this.rules.inline.link.exec(u);if(s){let o=s[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let h=Da(o.slice(0,-1),"\\");if((o.length-h.length)%2===0)return}else{let h=tv(s[2],"()");if(h===-2)return;if(h>-1){let g=(s[0].indexOf("!")===0?5:4)+s[1].length+h;s[2]=s[2].substring(0,h),s[0]=s[0].substring(0,g).trim(),s[3]=""}}let r=s[2],d="";if(this.options.pedantic){let h=this.rules.other.pedanticHrefTitle.exec(r);h&&(r=h[1],d=h[3])}else d=s[3]?s[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?r=r.slice(1):r=r.slice(1,-1)),pm(s,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:d&&d.replace(this.rules.inline.anyPunctuation,"$1")},s[0],this.lexer,this.rules)}}reflink(u,s){let o;if((o=this.rules.inline.reflink.exec(u))||(o=this.rules.inline.nolink.exec(u))){let r=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),d=s[r.toLowerCase()];if(!d){let h=o[0].charAt(0);return{type:"text",raw:h,text:h}}return pm(o,d,o[0],this.lexer,this.rules)}}emStrong(u,s,o=""){let r=this.rules.inline.emStrongLDelim.exec(u);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&o.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!o||this.rules.inline.punctuation.exec(o))){let d=[...r[0]].length-1,h,g,y=d,N=0,v=r[0][0],z=o===v,M=v==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(M.lastIndex=0,s=s.slice(-1*u.length+d);(r=M.exec(s))!==null;){if(h=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!h)continue;if(g=[...h].length,r[3]||r[4]){y+=g;continue}else if(r[5]||r[6]){if(d%3&&!((d+g)%3)){N+=g;continue}if(z)break}if(y-=g,y>0)continue;g=Math.min(g,g+y+N);let k=[...r[0]][0].length,te=u.slice(0,d+r.index+k+g);if(Math.min(d,g)%2){let ne=te.slice(1,-1);return{type:"em",raw:te,text:ne,tokens:this.lexer.inlineTokens(ne)}}let Z=te.slice(2,-2);return{type:"strong",raw:te,text:Z,tokens:this.lexer.inlineTokens(Z)}}}}codespan(u){let s=this.rules.inline.code.exec(u);if(s){let o=s[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(o),d=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return r&&d&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:s[0],text:o}}}br(u){let s=this.rules.inline.br.exec(u);if(s)return{type:"br",raw:s[0]}}del(u,s,o=""){let r=this.rules.inline.delLDelim.exec(u);if(r&&(!r[1]||!o||this.rules.inline.punctuation.exec(o))){let d=[...r[0]].length-1,h,g,y=d,N=this.rules.inline.delRDelim;for(N.lastIndex=0,s=s.slice(-1*u.length+d);(r=N.exec(s))!==null;){if(h=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!h||(g=[...h].length,g!==d))continue;if(r[3]||r[4]){y+=g;continue}if(y-=g,y>0)continue;g=Math.min(g,g+y);let v=[...r[0]][0].length,z=u.slice(0,d+r.index+v+g),M=z.slice(d,-d);return{type:"del",raw:z,text:M,tokens:this.lexer.inlineTokens(M)}}}}autolink(u){let s=this.rules.inline.autolink.exec(u);if(s){let o,r;return s[2]==="@"?(o=s[1],r="mailto:"+o):(o=s[1],r=o),{type:"link",raw:s[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}url(u){let s;if(s=this.rules.inline.url.exec(u)){let o,r;if(s[2]==="@")o=s[0],r="mailto:"+o;else{let d;do d=s[0],s[0]=this.rules.inline._backpedal.exec(s[0])?.[0]??"";while(d!==s[0]);o=s[0],s[1]==="www."?r="http://"+s[0]:r=s[0]}return{type:"link",raw:s[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(u){let s=this.rules.inline.text.exec(u);if(s){let o=this.lexer.state.inRawBlock;return{type:"text",raw:s[0],text:s[0],escaped:o}}}},bl=class no{tokens;options;state;inlineQueue;tokenizer;constructor(s){this.tokens=[],this.tokens.links=Object.create(null),this.options=s||dn,this.options.tokenizer=this.options.tokenizer||new qc,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let o={other:Et,block:Uc.normal,inline:us.normal};this.options.pedantic?(o.block=Uc.pedantic,o.inline=us.pedantic):this.options.gfm&&(o.block=Uc.gfm,this.options.breaks?o.inline=us.breaks:o.inline=us.gfm),this.tokenizer.rules=o}static get rules(){return{block:Uc,inline:us}}static lex(s,o){return new no(o).lex(s)}static lexInline(s,o){return new no(o).inlineTokens(s)}lex(s){s=s.replace(Et.carriageReturn,`
|
|
41
|
-
`),this.blockTokens(s,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let r=this.inlineQueue[o];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(s,o=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(s=s.replace(Et.tabCharGlobal," ").replace(Et.spaceLine,""));let d=1/0;for(;s;){if(s.length<d)d=s.length;else{this.infiniteLoopError(s.charCodeAt(0));break}let h;if(this.options.extensions?.block?.some(y=>(h=y.call({lexer:this},s,o))?(s=s.substring(h.raw.length),o.push(h),!0):!1))continue;if(h=this.tokenizer.space(s)){s=s.substring(h.raw.length);let y=o.at(-1);h.raw.length===1&&y!==void 0?y.raw+=`
|
|
42
|
-
`:o.push(h);continue}if(h=this.tokenizer.code(s)){s=s.substring(h.raw.length);let y=o.at(-1);y?.type==="paragraph"||y?.type==="text"?(y.raw+=(y.raw.endsWith(`
|
|
43
|
-
`)?"":`
|
|
44
|
-
`)+h.raw,y.text+=`
|
|
45
|
-
`+h.text,this.inlineQueue.at(-1).src=y.text):o.push(h);continue}if(h=this.tokenizer.fences(s)){s=s.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.heading(s)){s=s.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.hr(s)){s=s.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.blockquote(s)){s=s.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.list(s)){s=s.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.html(s)){s=s.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.def(s)){s=s.substring(h.raw.length);let y=o.at(-1);y?.type==="paragraph"||y?.type==="text"?(y.raw+=(y.raw.endsWith(`
|
|
46
|
-
`)?"":`
|
|
47
|
-
`)+h.raw,y.text+=`
|
|
48
|
-
`+h.raw,this.inlineQueue.at(-1).src=y.text):this.tokens.links[h.tag]||(this.tokens.links[h.tag]={href:h.href,title:h.title},o.push(h));continue}if(h=this.tokenizer.table(s)){s=s.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.lheading(s)){s=s.substring(h.raw.length),o.push(h);continue}let g=s;if(this.options.extensions?.startBlock){let y=1/0,N=s.slice(1),v;this.options.extensions.startBlock.forEach(z=>{v=z.call({lexer:this},N),typeof v=="number"&&v>=0&&(y=Math.min(y,v))}),y<1/0&&y>=0&&(g=s.substring(0,y+1))}if(this.state.top&&(h=this.tokenizer.paragraph(g))){let y=o.at(-1);r&&y?.type==="paragraph"?(y.raw+=(y.raw.endsWith(`
|
|
49
|
-
`)?"":`
|
|
50
|
-
`)+h.raw,y.text+=`
|
|
51
|
-
`+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=y.text):o.push(h),r=g.length!==s.length,s=s.substring(h.raw.length);continue}if(h=this.tokenizer.text(s)){s=s.substring(h.raw.length);let y=o.at(-1);y?.type==="text"?(y.raw+=(y.raw.endsWith(`
|
|
52
|
-
`)?"":`
|
|
53
|
-
`)+h.raw,y.text+=`
|
|
54
|
-
`+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=y.text):o.push(h);continue}if(s){this.infiniteLoopError(s.charCodeAt(0));break}}return this.state.top=!0,o}inline(s,o=[]){return this.inlineQueue.push({src:s,tokens:o}),o}linkInText(s){if(!s.includes("["))return!1;let o=this.tokenizer.rules.inline.link;for(let r of s.matchAll(this.tokenizer.rules.inline.blockSkip))if(o.test(r[0])&&s.charAt(r.index-1)!=="!")return!0;for(let r of s.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let d=r[0],h=d.lastIndexOf("[");if(!(d.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,d.slice(h+1,-1)))&&!(h>1&&this.linkInText(d.slice(1,h-1))))return!0}return!1}inlineTokens(s,o=[]){this.tokenizer.lexer=this;let r=s;if(this.tokens.links&&s.includes("[")){let y=this.tokenizer.rules.inline.reflinkSearch,N=v=>{let z=v.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,v.slice(z+1,-1)))return v;if(z>1&&v.charAt(0)!=="!"){let M=v.slice(1,z-1);if(this.linkInText(M))return"["+M.replace(y,N)+"]["+"a".repeat(v.length-z-2)+"]"}return"["+"a".repeat(v.length-2)+"]"};r=r.replace(y,N)}r=r.replace(this.tokenizer.rules.inline.anyPunctuation,y=>"+".repeat(y.length)),r=r.replace(this.tokenizer.rules.inline.blockSkip,(y,N,v)=>{let z=v?v.length:0;return y.slice(0,z)+"["+"a".repeat(y.length-z-2)+"]"}),r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let d=!1,h="",g=1/0;for(;s;){if(s.length<g)g=s.length;else{this.infiniteLoopError(s.charCodeAt(0));break}d||(h=""),d=!1;let y;if(this.options.extensions?.inline?.some(v=>(y=v.call({lexer:this},s,o))?(s=s.substring(y.raw.length),o.push(y),!0):!1))continue;if(y=this.tokenizer.escape(s)){s=s.substring(y.raw.length),o.push(y);continue}if(y=this.tokenizer.tag(s)){s=s.substring(y.raw.length),o.push(y);continue}if(y=this.tokenizer.link(s)){s=s.substring(y.raw.length),o.push(y);continue}if(y=this.tokenizer.reflink(s,this.tokens.links)){s=s.substring(y.raw.length);let v=o.at(-1);y.type==="text"&&v?.type==="text"?(v.raw+=y.raw,v.text+=y.text):o.push(y);continue}if(y=this.tokenizer.emStrong(s,r,h)){s=s.substring(y.raw.length),o.push(y);continue}if(y=this.tokenizer.codespan(s)){s=s.substring(y.raw.length),o.push(y);continue}if(y=this.tokenizer.br(s)){s=s.substring(y.raw.length),o.push(y);continue}if(y=this.tokenizer.del(s,r,h)){s=s.substring(y.raw.length),o.push(y);continue}if(y=this.tokenizer.autolink(s)){s=s.substring(y.raw.length),o.push(y);continue}if(!this.state.inLink&&(y=this.tokenizer.url(s))){s=s.substring(y.raw.length),o.push(y);continue}let N=s;if(this.options.extensions?.startInline){let v=1/0,z=s.slice(1),M;this.options.extensions.startInline.forEach(k=>{M=k.call({lexer:this},z),typeof M=="number"&&M>=0&&(v=Math.min(v,M))}),v<1/0&&v>=0&&(N=s.substring(0,v+1))}if(y=this.tokenizer.inlineText(N)){s=s.substring(y.raw.length),y.raw.slice(-1)!=="_"&&(h=y.raw.slice(-1)),d=!0;let v=o.at(-1);v?.type==="text"?(v.raw+=y.raw,v.text+=y.text):o.push(y);continue}if(s){this.infiniteLoopError(s.charCodeAt(0));break}}return o}infiniteLoopError(s){let o="Infinite loop on byte: "+s;if(this.options.silent)console.error(o);else throw new Error(o)}},Yc=class{options;parser;constructor(u){this.options=u||dn}space(u){return""}code({text:u,lang:s,escaped:o}){let r=(s||"").match(Et.notSpaceStart)?.[0],d=u.replace(Et.endingNewline,"")+`
|
|
55
|
-
`;return r?'<pre><code class="language-'+Rl(r)+'">'+(o?d:Rl(d,!0))+`</code></pre>
|
|
56
|
-
`:"<pre><code>"+(o?d:Rl(d,!0))+`</code></pre>
|
|
57
|
-
`}blockquote({tokens:u}){return`<blockquote>
|
|
58
|
-
${this.parser.parse(u)}</blockquote>
|
|
59
|
-
`}html({text:u}){return u}def(u){return""}heading({tokens:u,depth:s}){return`<h${s}>${this.parser.parseInline(u)}</h${s}>
|
|
60
|
-
`}hr(u){return`<hr>
|
|
61
|
-
`}list(u){let s=u.ordered,o=u.start,r="";for(let g=0;g<u.items.length;g++){let y=u.items[g];r+=this.listitem(y)}let d=s?"ol":"ul",h=s&&o!==1?' start="'+o+'"':"";return"<"+d+h+`>
|
|
62
|
-
`+r+"</"+d+`>
|
|
63
|
-
`}listitem(u){return`<li>${this.parser.parse(u.tokens)}</li>
|
|
64
|
-
`}checkbox({checked:u}){return"<input "+(u?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:u}){return`<p>${this.parser.parseInline(u)}</p>
|
|
65
|
-
`}table(u){let s="",o="";for(let d=0;d<u.header.length;d++)o+=this.tablecell(u.header[d]);s+=this.tablerow({text:o});let r="";for(let d=0;d<u.rows.length;d++){let h=u.rows[d];o="";for(let g=0;g<h.length;g++)o+=this.tablecell(h[g]);r+=this.tablerow({text:o})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
66
|
-
<thead>
|
|
67
|
-
`+s+`</thead>
|
|
68
|
-
`+r+`</table>
|
|
69
|
-
`}tablerow({text:u}){return`<tr>
|
|
70
|
-
${u}</tr>
|
|
71
|
-
`}tablecell(u){let s=this.parser.parseInline(u.tokens),o=u.header?"th":"td";return(u.align?`<${o} align="${u.align}">`:`<${o}>`)+s+`</${o}>
|
|
72
|
-
`}strong({tokens:u}){return`<strong>${this.parser.parseInline(u)}</strong>`}em({tokens:u}){return`<em>${this.parser.parseInline(u)}</em>`}codespan({text:u}){return`<code>${Rl(u,!0)}</code>`}br(u){return"<br>"}del({tokens:u}){return`<del>${this.parser.parseInline(u)}</del>`}link({href:u,title:s,tokens:o}){let r=this.parser.parseInline(o),d=dm(u);if(d===null)return r;u=d;let h='<a href="'+u+'"';return s&&(h+=' title="'+Rl(s)+'"'),h+=">"+r+"</a>",h}image({href:u,title:s,text:o,tokens:r}){r&&(o=this.parser.parseInline(r,this.parser.textRenderer));let d=dm(u);if(d===null)return Rl(o);u=d;let h=`<img src="${u}" alt="${Rl(o)}"`;return s&&(h+=` title="${Rl(s)}"`),h+=">",h}text(u){return"tokens"in u&&u.tokens?this.parser.parseInline(u.tokens):"escaped"in u&&u.escaped?u.text:Rl(u.text)}},So=class{strong({text:u}){return u}em({text:u}){return u}codespan({text:u}){return u}del({text:u}){return u}html({text:u}){return u}text({text:u}){return u}link({text:u}){return""+u}image({text:u}){return""+u}br(){return""}checkbox({raw:u}){return u}},Sl=class io{options;renderer;textRenderer;constructor(s){this.options=s||dn,this.options.renderer=this.options.renderer||new Yc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new So}static parse(s,o){return new io(o).parse(s)}static parseInline(s,o){return new io(o).parseInline(s)}parse(s){this.renderer.parser=this;let o="";for(let r=0;r<s.length;r++){let d=s[r];if(this.options.extensions?.renderers?.[d.type]){let g=d,y=this.options.extensions.renderers[g.type].call({parser:this},g);if(y!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(g.type)){o+=y||"";continue}}let h=d;switch(h.type){case"space":{o+=this.renderer.space(h);break}case"hr":{o+=this.renderer.hr(h);break}case"heading":{o+=this.renderer.heading(h);break}case"code":{o+=this.renderer.code(h);break}case"table":{o+=this.renderer.table(h);break}case"blockquote":{o+=this.renderer.blockquote(h);break}case"list":{o+=this.renderer.list(h);break}case"checkbox":{o+=this.renderer.checkbox(h);break}case"html":{o+=this.renderer.html(h);break}case"def":{o+=this.renderer.def(h);break}case"paragraph":{o+=this.renderer.paragraph(h);break}case"text":{o+=this.renderer.text(h);break}default:{let g='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return o}parseInline(s,o=this.renderer){this.renderer.parser=this;let r="";for(let d=0;d<s.length;d++){let h=s[d];if(this.options.extensions?.renderers?.[h.type]){let y=this.options.extensions.renderers[h.type].call({parser:this},h);if(y!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(h.type)){r+=y||"";continue}}let g=h;switch(g.type){case"escape":{r+=o.text(g);break}case"html":{r+=o.html(g);break}case"link":{r+=o.link(g);break}case"image":{r+=o.image(g);break}case"checkbox":{r+=o.checkbox(g);break}case"strong":{r+=o.strong(g);break}case"em":{r+=o.em(g);break}case"codespan":{r+=o.codespan(g);break}case"br":{r+=o.br(g);break}case"del":{r+=o.del(g);break}case"text":{r+=o.text(g);break}default:{let y='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(y),"";throw new Error(y)}}}return r}},ds=class{options;block;constructor(u){this.options=u||dn}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(u){return u}postprocess(u){return u}processAllTokens(u){return u}emStrongMask(u){return u}provideLexer(u=this.block){return u?bl.lex:bl.lexInline}provideParser(u=this.block){return u?Sl.parse:Sl.parseInline}},nv=class{defaults=mo();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Sl;Renderer=Yc;TextRenderer=So;Lexer=bl;Tokenizer=qc;Hooks=ds;constructor(...u){this.use(...u)}walkTokens(u,s){let o=[];for(let r of u)switch(o=o.concat(s.call(this,r)),r.type){case"table":{let d=r;for(let h of d.header)o=o.concat(this.walkTokens(h.tokens,s));for(let h of d.rows)for(let g of h)o=o.concat(this.walkTokens(g.tokens,s));break}case"list":{let d=r;o=o.concat(this.walkTokens(d.items,s));break}default:{let d=r;this.defaults.extensions?.childTokens?.[d.type]?this.defaults.extensions.childTokens[d.type].forEach(h=>{let g=d[h].flat(1/0);o=o.concat(this.walkTokens(g,s))}):d.tokens&&(o=o.concat(this.walkTokens(d.tokens,s)))}}return o}use(...u){let s=this.defaults.extensions||{renderers:{},childTokens:{}};return u.forEach(o=>{let r={...o};if(r.async=this.defaults.async||r.async||!1,o.extensions&&(o.extensions.forEach(d=>{if(!d.name)throw new Error("extension name required");if("renderer"in d){let h=s.renderers[d.name];h?s.renderers[d.name]=function(...g){let y=d.renderer.apply(this,g);return y===!1&&(y=h.apply(this,g)),y}:s.renderers[d.name]=d.renderer}if("tokenizer"in d){if(!d.level||d.level!=="block"&&d.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let h=s[d.level];h?h.unshift(d.tokenizer):s[d.level]=[d.tokenizer],d.start&&(d.level==="block"?s.startBlock?s.startBlock.push(d.start):s.startBlock=[d.start]:d.level==="inline"&&(s.startInline?s.startInline.push(d.start):s.startInline=[d.start]))}"childTokens"in d&&d.childTokens&&(s.childTokens[d.name]=d.childTokens)}),r.extensions=s),o.renderer){let d=this.defaults.renderer||new Yc(this.defaults);for(let h in o.renderer){if(!(h in d))throw new Error(`renderer '${h}' does not exist`);if(["options","parser"].includes(h))continue;let g=h,y=o.renderer[g],N=d[g];d[g]=(...v)=>{let z=y.apply(d,v);return z===!1&&(z=N.apply(d,v)),z||""}}r.renderer=d}if(o.tokenizer){let d=this.defaults.tokenizer||new qc(this.defaults);for(let h in o.tokenizer){if(!(h in d))throw new Error(`tokenizer '${h}' does not exist`);if(["options","rules","lexer"].includes(h))continue;let g=h,y=o.tokenizer[g],N=d[g];d[g]=(...v)=>{let z=y.apply(d,v);return z===!1&&(z=N.apply(d,v)),z}}r.tokenizer=d}if(o.hooks){let d=this.defaults.hooks||new ds;for(let h in o.hooks){if(!(h in d))throw new Error(`hook '${h}' does not exist`);if(["options","block"].includes(h))continue;let g=h,y=o.hooks[g],N=d[g];ds.passThroughHooks.has(h)?d[g]=v=>{if(this.defaults.async&&ds.passThroughHooksRespectAsync.has(h))return(async()=>{let M=await y.call(d,v);return N.call(d,M)})();let z=y.call(d,v);return N.call(d,z)}:d[g]=(...v)=>{if(this.defaults.async)return(async()=>{let M=await y.apply(d,v);return M===!1&&(M=await N.apply(d,v)),M})();let z=y.apply(d,v);return z===!1&&(z=N.apply(d,v)),z}}r.hooks=d}if(o.walkTokens){let d=this.defaults.walkTokens,h=o.walkTokens;r.walkTokens=function(g){let y=[];return y.push(h.call(this,g)),d&&(y=y.concat(d.call(this,g))),y}}this.defaults={...this.defaults,...r}}),this}setOptions(u){return this.defaults={...this.defaults,...u},this}lexer(u,s){return bl.lex(u,s??this.defaults)}parser(u,s){return Sl.parse(u,s??this.defaults)}parseMarkdown(u){return(s,o)=>{let r={...o},d={...this.defaults,...r},h=this.onError(!!d.silent,!!d.async);if(this.defaults.async===!0&&r.async===!1)return h(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof s>"u"||s===null)return h(new Error("marked(): input parameter is undefined or null"));if(typeof s!="string")return h(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));if(d.hooks&&(d.hooks.options=d,d.hooks.block=u),d.async)return(async()=>{let g=d.hooks?await d.hooks.preprocess(s):s,y=await(d.hooks?await d.hooks.provideLexer(u):u?bl.lex:bl.lexInline)(g,d),N=d.hooks?await d.hooks.processAllTokens(y):y;d.walkTokens&&await Promise.all(this.walkTokens(N,d.walkTokens));let v=await(d.hooks?await d.hooks.provideParser(u):u?Sl.parse:Sl.parseInline)(N,d);return d.hooks?await d.hooks.postprocess(v):v})().catch(h);try{d.hooks&&(s=d.hooks.preprocess(s));let g=(d.hooks?d.hooks.provideLexer(u):u?bl.lex:bl.lexInline)(s,d);d.hooks&&(g=d.hooks.processAllTokens(g)),d.walkTokens&&this.walkTokens(g,d.walkTokens);let y=(d.hooks?d.hooks.provideParser(u):u?Sl.parse:Sl.parseInline)(g,d);return d.hooks&&(y=d.hooks.postprocess(y)),y}catch(g){return h(g)}}}onError(u,s){return o=>{if(o.message+=`
|
|
73
|
-
Please report this to https://github.com/markedjs/marked.`,u){let r="<p>An error occurred:</p><pre>"+Rl(o.message+"",!0)+"</pre>";return s?Promise.resolve(r):r}if(s)return Promise.reject(o);throw o}}},fn=new nv;function De(u,s){return fn.parse(u,s)}De.options=De.setOptions=function(u){return fn.setOptions(u),De.defaults=fn.defaults,Mm(De.defaults),De};De.getDefaults=mo;De.defaults=dn;function iv(...u){return fn.use(...u),De.defaults=fn.defaults,Mm(De.defaults),De}De.use=iv;De.walkTokens=function(u,s){return fn.walkTokens(u,s)};De.parseInline=fn.parseInline;De.Parser=Sl;De.parser=Sl.parse;De.Renderer=Yc;De.TextRenderer=So;De.Lexer=bl;De.lexer=bl.lex;De.Tokenizer=qc;De.Hooks=ds;De.parse=De;De.options;De.setOptions;De.walkTokens;De.parseInline;Sl.parse;bl.lex;function gm(u,s){(s==null||s>u.length)&&(s=u.length);for(var o=0,r=Array(s);o<s;o++)r[o]=u[o];return r}function sv(u){if(Array.isArray(u))return u}function cv(u,s){var o=u==null?null:typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(o!=null){var r,d,h,g,y=[],N=!0,v=!1;try{if(h=(o=o.call(u)).next,s!==0)for(;!(N=(r=h.call(o)).done)&&(y.push(r.value),y.length!==s);N=!0);}catch(z){v=!0,d=z}finally{try{if(!N&&o.return!=null&&(g=o.return(),Object(g)!==g))return}finally{if(v)throw d}}return y}}function uv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
74
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rv(u,s){return sv(u)||cv(u,s)||ov(u,s)||uv()}function ov(u,s){if(u){if(typeof u=="string")return gm(u,s);var o={}.toString.call(u).slice(8,-1);return o==="Object"&&u.constructor&&(o=u.constructor.name),o==="Map"||o==="Set"?Array.from(u):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?gm(u,s):void 0}}const Qm=Object.entries,ym=Object.setPrototypeOf,fv=Object.isFrozen,dv=Object.getPrototypeOf,hv=Object.getOwnPropertyDescriptor;let it=Object.freeze,ot=Object.seal,Pn=Object.create,Zm=typeof Reflect<"u"&&Reflect,so=Zm.apply,co=Zm.construct;it||(it=function(s){return s});ot||(ot=function(s){return s});so||(so=function(s,o){for(var r=arguments.length,d=new Array(r>2?r-2:0),h=2;h<r;h++)d[h-2]=arguments[h];return s.apply(o,d)});co||(co=function(s){for(var o=arguments.length,r=new Array(o>1?o-1:0),d=1;d<o;d++)r[d-1]=arguments[d];return new s(...r)});const rn=tt(Array.prototype.forEach),mv=tt(Array.prototype.lastIndexOf),vm=tt(Array.prototype.pop),rs=tt(Array.prototype.push),pv=tt(Array.prototype.splice),ei=Array.isArray,hs=tt(String.prototype.toLowerCase),Fr=tt(String.prototype.toString),xm=tt(String.prototype.match),os=tt(String.prototype.replace),bm=tt(String.prototype.indexOf),gv=tt(String.prototype.trim),yv=tt(Number.prototype.toString),vv=tt(Boolean.prototype.toString),Sm=typeof BigInt>"u"?null:tt(BigInt.prototype.toString),Nm=typeof Symbol>"u"?null:tt(Symbol.prototype.toString),Ut=tt(Object.prototype.hasOwnProperty),fs=tt(Object.prototype.toString),Tt=tt(RegExp.prototype.test),un=xv(TypeError);function tt(u){return function(s){s instanceof RegExp&&(s.lastIndex=0);for(var o=arguments.length,r=new Array(o>1?o-1:0),d=1;d<o;d++)r[d-1]=arguments[d];return so(u,s,r)}}function xv(u){return function(){for(var s=arguments.length,o=new Array(s),r=0;r<s;r++)o[r]=arguments[r];return co(u,o)}}function ge(u,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:hs;if(ym&&ym(u,null),!ei(s))return u;let r=s.length;for(;r--;){let d=s[r];if(typeof d=="string"){const h=o(d);h!==d&&(fv(s)||(s[r]=h),d=h)}u[d]=!0}return u}function bv(u){for(let s=0;s<u.length;s++)Ut(u,s)||(u[s]=null);return u}function Jt(u){const s=Pn(null);for(const r of Qm(u)){var o=rv(r,2);const d=o[0],h=o[1];Ut(u,d)&&(ei(h)?s[d]=bv(h):h&&typeof h=="object"&&h.constructor===Object?s[d]=Jt(h):s[d]=h)}return s}function Sv(u){switch(typeof u){case"string":return u;case"number":return yv(u);case"boolean":return vv(u);case"bigint":return Sm?Sm(u):"0";case"symbol":return Nm?Nm(u):"Symbol()";case"undefined":return fs(u);case"function":case"object":{if(u===null)return fs(u);const s=u,o=xl(s,"toString");if(typeof o=="function"){const r=o(s);return typeof r=="string"?r:fs(r)}return fs(u)}default:return fs(u)}}function xl(u,s){for(;u!==null;){const r=hv(u,s);if(r){if(r.get)return tt(r.get);if(typeof r.value=="function")return tt(r.value)}u=dv(u)}function o(){return null}return o}function Nv(u){try{return Tt(u,""),!0}catch{return!1}}const jm=it(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ir=it(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Pr=it(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),jv=it(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),eo=it(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Tv=it(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Tm=it(["#text"]),Em=it(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),to=it(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Am=it(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Hc=it(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ev=ot(/{{[\w\W]*|^[\w\W]*}}/g),Av=ot(/<%[\w\W]*|^[\w\W]*%>/g),_v=ot(/\${[\w\W]*/g),wv=ot(/^data-[\-\w.\u00B7-\uFFFF]+$/),kv=ot(/^aria-[\-\w]+$/),_m=ot(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),zv=ot(/^(?:\w+script|data):/i),Rv=ot(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ov=ot(/^html$/i),Dv=ot(/^[a-z][.\w]*(-[.\w]+)+$/i),wm=ot(/<[/\w!]/g),km=ot(/<[/\w]/g),Mv=ot(/<\/no(script|embed|frames)/i),Cv=ot(/\/>/i),Kt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Vm=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Uv=it(ge({},Vm)),Hv=(function(){const u={};return rn(Vm,s=>{u[s]=ot(new RegExp("</"+s+"(?=[\\t\\n\\f\\r />])","i"))}),it(u)})(),Lv=function(){return typeof window>"u"?null:window},Bv=function(s,o){if(typeof s!="object"||typeof s.createPolicy!="function")return null;let r=null;const d="data-tt-policy-suffix";o&&o.hasAttribute(d)&&(r=o.getAttribute(d));const h="dompurify"+(r?"#"+r:"");try{return s.createPolicy(h,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+h+" could not be created."),null}},zm=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ma=function(s,o,r,d){return Ut(s,o)&&ei(s[o])?ge(d.base?Jt(d.base):{},s[o],d.transform):r},lo=function(s,o,r){const d=Ut(s,o)?s[o]:void 0;return d&&typeof d=="object"?Jt(d):r()};function $m(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lv();const s=B=>$m(B);if(s.version="3.4.14",s.removed=[],!u||!u.document||u.document.nodeType!==Kt.document||!u.Element)return s.isSupported=!1,s;let o=u.document;const r=o,d=r.currentScript;u.DocumentFragment;const h=u.HTMLTemplateElement,g=u.Node,y=u.Element,N=u.NodeFilter,v=u.NamedNodeMap;v===void 0&&(u.NamedNodeMap||u.MozNamedAttrMap),u.HTMLFormElement;const z=u.DOMParser,M=u.trustedTypes,k=y.prototype,te=xl(k,"cloneNode"),Z=xl(k,"remove"),ne=xl(k,"nextSibling"),W=xl(k,"childNodes"),R=xl(k,"parentNode"),Te=xl(k,"shadowRoot"),K=xl(k,"attributes"),pe=g&&g.prototype?xl(g.prototype,"nodeType"):null,Ue=g&&g.prototype?xl(g.prototype,"nodeName"):null,Ee=g&&g.prototype?xl(g.prototype,"ownerDocument"):null,se=function(p){return pe?pe(p):p.nodeType},st=function(p){return Ue?Ue(p):p.nodeName};if(typeof h=="function"){const B=o.createElement("template");B.content&&B.content.ownerDocument&&(o=B.content.ownerDocument)}let He,wt="",kt,ft=!1,Ht=0;const Wt=function(){if(Ht>0)throw un('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ct=function(p){Wt(),Ht++;try{return He.createHTML(p)}finally{Ht--}},D=function(p){Wt(),Ht++;try{return He.createScriptURL(p)}finally{Ht--}},Y=function(){return ft||(kt=Bv(M,d),ft=!0),kt},P=o,ye=P.implementation,je=P.createNodeIterator,S=P.createDocumentFragment,H=P.getElementsByTagName,X=r.importNode;let q=zm();s.isSupported=typeof Qm=="function"&&typeof R=="function"&&ye&&ye.createHTMLDocument!==void 0;const le=Ev,ue=Av,ve=_v,dt=wv,Ge=kv,Ua=zv,Ha=Rv,ni=Dv;let ii=_m,xe=null;const La=ge({},[...jm,...Ir,...Pr,...eo,...Tm]);let ke=null;const si=ge({},[...Em,...to,...Am,...Hc]);let Lt=Object.seal(Pn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ol=null,hn=null;const Ft=Object.seal(Pn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ys=!0,ci=!0,St=!1,vs=!0,fl=!1,Nl=!0,It=!1,ui=!1,Ba=null,mn=null,ri=!1,Pt=!1,ut=!1,Bt=!1,Nt=!0,xs=!1;const bs="user-content-";let oi=!0,ta=!1,dl={},hl=null;const jl=ge({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let qa=null;const la=ge({},["audio","video","img","source","image","track"]);let Ss=null;const fi=ge({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),aa="http://www.w3.org/1998/Math/MathML",Tl="http://www.w3.org/2000/svg",el="http://www.w3.org/1999/xhtml";let Dl=el,pn=!1,gn=null;const di=ge({},[aa,Tl,el],Fr),yn=it(["mi","mo","mn","ms","mtext"]);let vn=ge({},yn);const hi=it(["annotation-xml"]);let tl=ge({},hi);const lt=ge({},["title","style","font","a","script"]);let Ke=null;const na=["application/xhtml+xml","text/html"],mi="text/html";let Xe=null,ia=null;const Ns=o.createElement("form"),sa=function(p){return p instanceof RegExp||p instanceof Function},Ya=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ia&&ia===p)return;(!p||typeof p!="object")&&(p={}),p=Jt(p),Ke=na.indexOf(p.PARSER_MEDIA_TYPE)===-1?mi:p.PARSER_MEDIA_TYPE,Xe=Ke==="application/xhtml+xml"?Fr:hs,xe=Ma(p,"ALLOWED_TAGS",La,{transform:Xe}),ke=Ma(p,"ALLOWED_ATTR",si,{transform:Xe}),gn=Ma(p,"ALLOWED_NAMESPACES",di,{transform:Fr}),Ss=Ma(p,"ADD_URI_SAFE_ATTR",fi,{transform:Xe,base:fi}),qa=Ma(p,"ADD_DATA_URI_TAGS",la,{transform:Xe,base:la}),hl=Ma(p,"FORBID_CONTENTS",jl,{transform:Xe}),Ol=Ma(p,"FORBID_TAGS",Jt({}),{transform:Xe}),hn=Ma(p,"FORBID_ATTR",Jt({}),{transform:Xe}),dl=Ut(p,"USE_PROFILES")?p.USE_PROFILES&&typeof p.USE_PROFILES=="object"?Jt(p.USE_PROFILES):p.USE_PROFILES:!1,ys=p.ALLOW_ARIA_ATTR!==!1,ci=p.ALLOW_DATA_ATTR!==!1,St=p.ALLOW_UNKNOWN_PROTOCOLS||!1,vs=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fl=p.SAFE_FOR_TEMPLATES||!1,Nl=p.SAFE_FOR_XML!==!1,It=p.WHOLE_DOCUMENT||!1,Pt=p.RETURN_DOM||!1,ut=p.RETURN_DOM_FRAGMENT||!1,Bt=p.RETURN_TRUSTED_TYPE||!1,ri=p.FORCE_BODY||!1,Nt=p.SANITIZE_DOM!==!1,xs=p.SANITIZE_NAMED_PROPS||!1,oi=p.KEEP_CONTENT!==!1,ta=p.IN_PLACE||!1,ii=Nv(p.ALLOWED_URI_REGEXP)?p.ALLOWED_URI_REGEXP:_m,Dl=typeof p.NAMESPACE=="string"?p.NAMESPACE:el,vn=lo(p,"MATHML_TEXT_INTEGRATION_POINTS",()=>ge({},yn)),tl=lo(p,"HTML_INTEGRATION_POINTS",()=>ge({},hi));const j=lo(p,"CUSTOM_ELEMENT_HANDLING",()=>Pn(null));if(Lt=Pn(null),Ut(j,"tagNameCheck")&&sa(j.tagNameCheck)&&(Lt.tagNameCheck=j.tagNameCheck),Ut(j,"attributeNameCheck")&&sa(j.attributeNameCheck)&&(Lt.attributeNameCheck=j.attributeNameCheck),Ut(j,"allowCustomizedBuiltInElements")&&typeof j.allowCustomizedBuiltInElements=="boolean"&&(Lt.allowCustomizedBuiltInElements=j.allowCustomizedBuiltInElements),ot(Lt),fl&&(ci=!1),ut&&(Pt=!0),dl&&(xe=ge({},Tm),ke=Pn(null),dl.html===!0&&(ge(xe,jm),ge(ke,Em)),dl.svg===!0&&(ge(xe,Ir),ge(ke,to),ge(ke,Hc)),dl.svgFilters===!0&&(ge(xe,Pr),ge(ke,to),ge(ke,Hc)),dl.mathMl===!0&&(ge(xe,eo),ge(ke,Am),ge(ke,Hc))),Ft.tagCheck=null,Ft.attributeCheck=null,Ut(p,"ADD_TAGS")&&(typeof p.ADD_TAGS=="function"?Ft.tagCheck=p.ADD_TAGS:ei(p.ADD_TAGS)&&(xe===La&&(xe=Jt(xe)),ge(xe,p.ADD_TAGS,Xe))),Ut(p,"ADD_ATTR")&&(typeof p.ADD_ATTR=="function"?Ft.attributeCheck=p.ADD_ATTR:ei(p.ADD_ATTR)&&(ke===si&&(ke=Jt(ke)),ge(ke,p.ADD_ATTR,Xe))),Ut(p,"ADD_FORBID_CONTENTS")&&ei(p.ADD_FORBID_CONTENTS)&&(hl===jl&&(hl=Jt(hl)),ge(hl,p.ADD_FORBID_CONTENTS,Xe)),oi&&(xe["#text"]=!0),It&&ge(xe,["html","head","body"]),xe.table&&(ge(xe,["tbody"]),delete Ol.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw un('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw un('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const L=He;He=p.TRUSTED_TYPES_POLICY;try{wt=ct("")}catch(Q){throw He=L,Q}}else p.TRUSTED_TYPES_POLICY===null?(He=void 0,wt=""):(He===void 0&&(He=Y()),He&&typeof wt=="string"&&(wt=ct("")));it&&it(p),ia=p},Ml=ge({},[...Ir,...Pr,...jv]),Cl=ge({},[...eo,...Tv]),Ga=function(p,j,L){return j.namespaceURI===el?p==="svg":j.namespaceURI===aa?p==="svg"&&(L==="annotation-xml"||vn[L]):!!Ml[p]},ca=function(p,j,L){return j.namespaceURI===el?p==="math":j.namespaceURI===Tl?p==="math"&&tl[L]:!!Cl[p]},Je=function(p,j,L){return j.namespaceURI===Tl&&!tl[L]||j.namespaceURI===aa&&!vn[L]?!1:!Cl[p]&&(lt[p]||!Ml[p])},js=function(p){let j=R(p);(!j||!j.tagName)&&(j={namespaceURI:Dl,tagName:"template"});const L=hs(p.tagName),Q=hs(j.tagName);return gn[p.namespaceURI]?p.namespaceURI===Tl?Ga(L,j,Q):p.namespaceURI===aa?ca(L,j,Q):p.namespaceURI===el?Je(L,j,Q):!!(Ke==="application/xhtml+xml"&&gn[p.namespaceURI]):!1},ml=function(p){rs(s.removed,{element:p});try{R(p).removeChild(p)}catch{if(Z(p),!R(p))throw un("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},El=function(p,j,L){try{p.removeAttributeNode(j)}catch{try{p.removeAttribute(L)}catch{}}},pl=function(p){Xa(p);const j=W(p);if(j){const Q=[];rn(j,V=>{rs(Q,V)}),rn(Q,V=>{try{Z(V)}catch{}})}const L=K(p);if(L)for(let Q=L.length-1;Q>=0;--Q){const V=L[Q],I=V&&V.name;typeof I=="string"&&El(p,V,I)}},Ul=function(p,j,L){if(!L)try{L=j.getAttributeNode(p)}catch{L=null}rs(s.removed,{attribute:L||null,from:j});try{L?j.removeAttributeNode(L):j.removeAttribute(p)}catch{try{j.removeAttribute(p)}catch{}}if(p==="is")if(Pt||ut)try{ml(j)}catch{}else try{j.setAttribute(p,"")}catch{}},Ts=function(p){const j=K(p);if(j)for(let L=j.length-1;L>=0;--L){const Q=j[L],V=Q&&Q.name;typeof V!="string"||ke[Xe(V)]||El(p,Q,V)}},Xa=function(p){const j=[p];for(;j.length>0;){const L=j.pop();se(L)===Kt.element&&Ts(L);const V=W(L);if(V)for(let I=V.length-1;I>=0;--I)j.push(V[I])}},Es=function(p,j){return Nl?p==="patchsrc"?!0:p==="for"&&j!=="label"&&j!=="output":!1},xn=function(p){if(!Nl)return;const j=[p];for(;j.length>0;){const L=j.pop(),Q=se(L);if(Q===Kt.processingInstruction||Q===Kt.comment&&Tt(km,L.data)){try{Z(L)}catch{}continue}if(Q===Kt.element){const I=L,Ae=Xe(st(L));try{I.hasAttribute&&I.hasAttribute("patchsrc")&&I.removeAttribute("patchsrc"),I.hasAttribute&&I.hasAttribute("for")&&Es("for",Ae)&&I.removeAttribute("for")}catch{}}const V=W(L);if(V)for(let I=V.length-1;I>=0;--I)j.push(V[I])}},Qa=function(p){let j=null,L=null;if(ri)p="<remove></remove>"+p;else{const I=xm(p,/^[\r\n\t ]+/);L=I&&I[0]}Ke==="application/xhtml+xml"&&Dl===el&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const Q=He?ct(p):p;if(Dl===el)try{j=new z().parseFromString(Q,Ke)}catch{}if(!j||!j.documentElement){j=ye.createDocument(Dl,"template",null);try{j.documentElement.innerHTML=pn?wt:Q}catch{}}const V=j.body||j.documentElement;return p&&L&&V.insertBefore(o.createTextNode(L),V.childNodes[0]||null),Dl===el?H.call(j,It?"html":"body")[0]:It?j.documentElement:V},ll=function(p){const j=Ee?Ee(p):p.ownerDocument;return je.call(j||p,p,N.SHOW_ELEMENT|N.SHOW_COMMENT|N.SHOW_TEXT|N.SHOW_PROCESSING_INSTRUCTION|N.SHOW_CDATA_SECTION,null)},ht=function(p){return p=os(p,le," "),p=os(p,ue," "),p=os(p,ve," "),p},bn=function(p){var j;p.normalize();const L=Ee?Ee(p):p.ownerDocument,Q=je.call(L||p,p,N.SHOW_TEXT|N.SHOW_COMMENT|N.SHOW_CDATA_SECTION|N.SHOW_PROCESSING_INSTRUCTION,null);let V=Q.nextNode();for(;V;)V.data=ht(V.data),V=Q.nextNode();const I=(j=p.querySelectorAll)===null||j===void 0?void 0:j.call(p,"template");I&&rn(I,Ae=>{Al(Ae.content)&&bn(Ae.content)})},Sn=function(p){const j=Ue?Ue(p):null;return typeof j!="string"||Xe(j)!=="form"?!1:typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||p.attributes!==K(p)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function"||p.nodeType!==pe(p)||p.childNodes!==W(p)},Al=function(p){if(!pe||typeof p!="object"||p===null)return!1;try{return pe(p)===Kt.documentFragment}catch{return!1}},ua=function(p){if(!pe||typeof p!="object"||p===null)return!1;try{return typeof pe(p)=="number"}catch{return!1}};function At(B,p,j){B.length!==0&&rn(B,L=>{L.call(s,p,j,ia)})}const Qc=function(p,j){return!!(Nl&&p.hasChildNodes()&&!ua(p.firstElementChild)&&Tt(wm,p.textContent)&&Tt(wm,p.innerHTML)||Nl&&p.namespaceURI===el&&Uv[j]&&(ua(p.firstElementChild)||typeof p.textContent=="string"&&Tt(Hv[j],p.textContent))||p.nodeType===Kt.processingInstruction||Nl&&p.nodeType===Kt.comment&&Tt(km,p.data))},mt=function(p,j){if(p instanceof RegExp)return Tt(p,j);if(p instanceof Function){for(var L=arguments.length,Q=new Array(L>2?L-2:0),V=2;V<L;V++)Q[V-2]=arguments[V];return!!p(j,...Q)}return!1},pi=function(p,j,L){if(!Ol[j]&&Ll(j)&&mt(Lt.tagNameCheck,j))return!1;if(oi&&!hl[j]){const Q=R(p),V=W(p);if(V&&Q){const I=V.length;for(let Ae=I-1;Ae>=0;--Ae){const Me=p===L?te(V[Ae],!0):V[Ae];Q.insertBefore(Me,ne(p))}}}return ml(p),!0},gi=function(p,j,L,Q){return p.length===0?j:j===L||j===Q?Jt(j):j},Nn=function(p,j){return p===j||R(p)!==null?!1:(ta&&Xa(p),!0)},Hl=function(p,j){if(At(q.beforeSanitizeElements,p,null),Nn(p,j))return!0;if(Sn(p))return ml(p),!0;const L=Xe(st(p));if(xe=gi(q.uponSanitizeElement,xe,La,Ba),At(q.uponSanitizeElement,p,{tagName:L,allowedTags:xe}),Nn(p,j))return!0;if(Qc(p,L))return ml(p),!0;if(Ol[L]||!(Ft.tagCheck instanceof Function&&Ft.tagCheck(L))&&!xe[L]){const V=pi(p,L,j);return V===!1&&At(q.afterSanitizeElements,p,null),V}if(se(p)===Kt.element&&!js(p)||(L==="noscript"||L==="noembed"||L==="noframes")&&Tt(Mv,p.innerHTML))return ml(p),!0;if(fl&&p.nodeType===Kt.text){const V=ht(p.textContent);p.textContent!==V&&(rs(s.removed,{element:p.cloneNode()}),p.textContent=V)}return At(q.afterSanitizeElements,p,null),!1},yi=function(p,j,L){if(hn[j]||Es(j,p)||Nt&&(j==="id"||j==="name")&&(L in o||L in Ns))return!1;const Q=ke[j]||Ft.attributeCheck instanceof Function&&Ft.attributeCheck(j,p);return ci&&Tt(dt,j)||ys&&Tt(Ge,j)?!0:Q?Ss[j]||Tt(ii,os(L,Ha,""))||(j==="src"||j==="xlink:href"||j==="href")&&p!=="script"&&bm(L,"data:")===0&&qa[p]||St&&!Tt(Ua,os(L,Ha,""))?!0:!L:Ll(p)&&mt(Lt.tagNameCheck,p)&&mt(Lt.attributeNameCheck,j,p)||j==="is"&&Lt.allowCustomizedBuiltInElements&&mt(Lt.tagNameCheck,L)},As=ge({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ll=function(p){return!As[hs(p)]&&Tt(ni,p)},Zc=function(p,j,L,Q){if(He&&typeof M=="object"&&typeof M.getAttributeType=="function"&&!L)switch(M.getAttributeType(p,j)){case"TrustedHTML":return ct(Q);case"TrustedScriptURL":return D(Q)}return Q},_s=function(p,j,L,Q){try{L?p.setAttributeNS(L,j,Q):p.setAttribute(j,Q),Sn(p)?ml(p):vm(s.removed)}catch{Ul(j,p)}},vi=function(p){At(q.beforeSanitizeAttributes,p,null);const j=p.attributes;if(!j||Sn(p))return;ke=gi(q.uponSanitizeAttribute,ke,si,mn);const L={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0};let Q=j.length;const V=Xe(p.nodeName);for(;Q--;){const I=j[Q],Ae=I.name,Me=I.namespaceURI,pt=I.value,We=Xe(Ae),qt=pt;let at=Ae==="value"?qt:gv(qt);if(L.attrName=We,L.attrValue=at,L.keepAttr=!0,L.forceKeepAttr=void 0,At(q.uponSanitizeAttribute,p,L),at=L.attrValue,xs&&(We==="id"||We==="name")&&bm(at,bs)!==0&&(Ul(Ae,p,I),at=bs+at),Nl&&Tt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,at)){Ul(Ae,p,I);continue}if(We==="attributename"&&xm(at,"href")){Ul(Ae,p,I);continue}if(!L.forceKeepAttr){if(!L.keepAttr){Ul(Ae,p,I);continue}if(!vs&&Tt(Cv,at)){Ul(Ae,p,I);continue}if(fl&&(at=ht(at)),!yi(V,We,at)){Ul(Ae,p,I);continue}at=Zc(V,We,Me,at),at!==qt&&_s(p,Ae,Me,at)}}At(q.afterSanitizeAttributes,p,null)},ra=function(p){let j=null;const L=ll(p);for(At(q.beforeSanitizeShadowDOM,p,null);j=L.nextNode();)if(At(q.uponSanitizeShadowNode,j,null),Hl(j,p),vi(j),Al(j.content)&&ra(j.content),se(j)===Kt.element){const Q=Te(j);Al(Q)&&(xi(Q),ra(Q))}At(q.afterSanitizeShadowDOM,p,null)},xi=function(p){const j=[{node:p,shadow:null}];for(;j.length>0;){const L=j.pop();if(L.shadow){ra(L.shadow);continue}const Q=L.node,I=se(Q)===Kt.element,Ae=W(Q);if(Ae)for(let Me=Ae.length-1;Me>=0;--Me)j.push({node:Ae[Me],shadow:null});if(I){const Me=Ue?Ue(Q):null;if(typeof Me=="string"&&Xe(Me)==="template"){const pt=Q.content;Al(pt)&&j.push({node:pt,shadow:null})}}if(I){const Me=Te(Q);Al(Me)&&j.push({node:null,shadow:Me},{node:Me,shadow:null})}}};return s.sanitize=function(B){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=null,L=null,Q=null,V=null;if(pn=!B,pn&&(B="<!-->"),typeof B!="string"&&!ua(B)&&(B=Sv(B),typeof B!="string"))throw un("dirty is not a string, aborting");if(!s.isSupported)return B;ui?(xe=Ba,ke=mn):Ya(p),(q.uponSanitizeElement.length>0||q.uponSanitizeAttribute.length>0)&&(xe=Jt(xe)),q.uponSanitizeAttribute.length>0&&(ke=Jt(ke)),s.removed=[];const I=ta&&typeof B!="string"&&ua(B);if(I){xn(B);const pt=st(B);if(typeof pt=="string"){const We=Xe(pt);if(!xe[We]||Ol[We])throw pl(B),un("root node is forbidden and cannot be sanitized in-place")}if(Sn(B))throw pl(B),un("root node is clobbered and cannot be sanitized in-place");try{xi(B)}catch(We){throw pl(B),We}}else if(ua(B))j=Qa("<!---->"),L=j.ownerDocument.importNode(B,!0),L.nodeType===Kt.element&&L.nodeName==="BODY"||L.nodeName==="HTML"?j=L:j.appendChild(L),xi(L);else{if(!Pt&&!fl&&!It&&B.indexOf("<")===-1)return He&&Bt?ct(B):B;if(j=Qa(B),!j)return Pt?null:Bt?wt:""}j&&ri&&ml(j.firstChild);const Ae=I?B:j;try{const pt=ll(Ae);for(;Q=pt.nextNode();)Hl(Q,Ae),vi(Q),Al(Q.content)&&ra(Q.content)}catch(pt){throw I&&(pl(B),rn(s.removed,We=>{We.element&&Xa(We.element)})),pt}if(I)return rn(s.removed,pt=>{pt.element&&Xa(pt.element)}),fl&&bn(B),B;if(Pt){if(fl&&bn(j),ut)for(V=S.call(j.ownerDocument);j.firstChild;)V.appendChild(j.firstChild);else V=j;return(ke.shadowroot||ke.shadowrootmode)&&(V=X.call(r,V,!0)),V}let Me=It?j.outerHTML:j.innerHTML;return It&&xe["!doctype"]&&j.ownerDocument&&j.ownerDocument.doctype&&j.ownerDocument.doctype.name&&Tt(Ov,j.ownerDocument.doctype.name)&&(Me="<!DOCTYPE "+j.ownerDocument.doctype.name+`>
|
|
75
|
-
`+Me),fl&&(Me=ht(Me)),He&&Bt?ct(Me):Me},s.setConfig=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ya(B),ui=!0,Ba=xe,mn=ke},s.clearConfig=function(){ia=null,ui=!1,Ba=null,mn=null,He=kt,wt=""},s.isValidAttribute=function(B,p,j){ia||Ya({});const L=Xe(B),Q=Xe(p);return yi(L,Q,j)},s.addHook=function(B,p){typeof p=="function"&&Ut(q,B)&&rs(q[B],p)},s.removeHook=function(B,p){if(Ut(q,B)){if(p!==void 0){const j=mv(q[B],p);return j===-1?void 0:pv(q[B],j,1)[0]}return vm(q[B])}},s.removeHooks=function(B){Ut(q,B)&&(q[B]=[])},s.removeAllHooks=function(){q=zm()},s}var qv=$m();const Yv=[{id:"claude",label:"claude",hint:"Claude Code via ACP"},{id:"codex",label:"codex",hint:"Codex (ChatGPT) via ACP"},{id:"pi",label:"pi",hint:"pi coding agent"}];function Gv({id:u}){const s=bt("/api/chats",!1),o=(s?.chats??[]).filter(r=>r.scope.kind!=="team");return c.jsxs("div",{className:"runs-screen",children:[c.jsxs("aside",{className:"runs-side",children:[c.jsxs("div",{className:"side-head",children:[c.jsx("span",{className:"microlabel",children:"chats"}),c.jsx("span",{className:"spacer"}),c.jsx(Ye,{href:"/chats",className:"open-raw",children:"+ new"})]}),c.jsxs("div",{className:"side-list",children:[o.map(r=>c.jsxs(Ye,{href:`/chats/${r.id}`,className:`side-row ${r.id===u?"active":""}`,children:[c.jsx("span",{className:`lamp ${r.busy?"running":"pending"}`}),c.jsxs("div",{className:"side-row-body",children:[c.jsxs("div",{className:"side-row-top",children:[c.jsx("span",{className:"side-wf",children:r.title||"new chat"}),c.jsx("span",{className:"side-when num",children:ti(r.updatedAt)})]}),c.jsx("div",{className:"side-row-sub",children:c.jsxs("span",{className:"side-req",children:[r.agent,r.scope.kind==="run"?` · ${r.scope.runId}`:r.scope.kind==="kraftwerk"?" · kraftwerk":r.scope.kind==="knowledge"?` · knowledge${r.scope.bundle?`:${r.scope.bundle}`:""}`:""]})})]})]},r.id)),s&&o.length===0&&c.jsx("div",{className:"viewer-note",children:"no chats yet"})]})]}),c.jsx("div",{className:"runs-main chat-main",children:u?c.jsx(Km,{id:u},u):c.jsx(Xv,{})})]})}async function ai(u,s){const r=await(await fetch("/api/chats",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({agent:u,scope:s})})).json();r.id&&Ca(r.scope?.kind==="team"?`/team/${encodeURIComponent(r.scope.member)}/chat/${r.id}`:`/chats/${r.id}`)}function Xv(){const[u,s]=G.useState("claude"),[o,r]=G.useState(!0),[d,h]=G.useState(!1);return c.jsxs("div",{className:"new-chat",children:[c.jsx("div",{className:"page-head",children:c.jsx("h1",{children:"new chat"})}),c.jsxs("section",{className:"panel new-chat-panel",children:[c.jsx("div",{className:"panel-head",children:c.jsx("span",{className:"microlabel",children:"agent"})}),c.jsx("div",{className:"agent-pick",children:Yv.map(g=>c.jsxs("button",{className:`agent-pick-btn ${u===g.id?"active":""}`,onClick:()=>s(g.id),children:[c.jsx("b",{children:g.label}),c.jsx("span",{children:g.hint})]},g.id))}),c.jsx("div",{className:"run-opts",style:{padding:"0 16px 14px"},children:c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:o,onChange:g=>r(g.target.checked)}),"kraftwerk-aware",c.jsx("span",{className:"opt-hint",children:"— agent gets workflows + recent runs as context"})]})}),c.jsx("div",{style:{padding:"0 16px 16px"},children:c.jsx("button",{className:"run-btn",disabled:d,onClick:async()=>{h(!0),await ai(u,{kind:o?"kraftwerk":"general"}),h(!1)},children:d?"starting…":"start chat"})})]})]})}function Km({id:u}){const[s,o]=G.useState(null),[r,d]=G.useState([]),[h,g]=G.useState(!1);G.useEffect(()=>{let N=!0,v=null;return fetch(`/api/chats/${u}`).then(z=>z.ok?z.json():Promise.reject()).then(z=>{if(!N)return;o(z.meta),d(z.events);const M=z.events[z.events.length-1]?.seq??0;v=new EventSource(`/api/chats/${u}/events?after=${M}`),v.onmessage=k=>{const te=JSON.parse(k.data);d(Z=>Z.some(ne=>ne.seq===te.seq)?Z:[...Z,te])}}).catch(()=>N&&g(!0)),()=>{N=!1,v?.close()}},[u]);const y=G.useMemo(()=>{for(let N=r.length-1;N>=0;N--){const v=r[N].type;if(v==="user_message")return!0;if(v==="turn_end"||v==="error")return!1}return!1},[r]);return h?c.jsx("div",{className:"empty",children:"chat not found"}):s?c.jsxs("div",{className:"chat-thread",children:[c.jsxs("div",{className:"detail-head",children:[c.jsx("span",{className:`lamp ${y?"running":"ok"}`}),c.jsx("h1",{children:s.title||"new chat"}),c.jsx("span",{className:"chip agent",children:s.agent}),s.scope.kind==="run"&&c.jsx(Ye,{href:`/runs/${s.scope.runId}`,className:"chip",children:s.scope.runId}),s.scope.kind==="kraftwerk"&&c.jsx("span",{className:"chip",children:"kraftwerk-aware"}),s.scope.kind==="knowledge"&&c.jsxs(Ye,{href:s.scope.bundle?`/knowledge/${encodeURIComponent(s.scope.bundle)}`:"/knowledge",className:"chip",children:["knowledge",s.scope.bundle?`:${s.scope.bundle}`:""]}),s.scope.kind==="team"&&c.jsxs(Ye,{href:`/team/${encodeURIComponent(s.scope.member)}`,className:"chip",children:["team:",s.scope.member]}),c.jsx("span",{className:"rid",title:s.cwd,children:s.cwd})]}),c.jsx(Zv,{id:u,events:r,busy:y}),c.jsx(Kv,{id:u,busy:y,scope:s.scope})]}):c.jsx("div",{className:"empty",children:"loading…"})}function Qv(u){const s=[],o=new Map,r=new Map;for(const d of u){const h=s[s.length-1];switch(d.type){case"user_message":s.push({kind:"user",text:d.text,key:`e${d.seq}`});break;case"text":h?.kind==="agent"?h.text+=d.text:s.push({kind:"agent",text:d.text,key:`e${d.seq}`});break;case"thought":h?.kind==="thought"?h.text+=d.text:s.push({kind:"thought",text:d.text,key:`e${d.seq}`});break;case"tool_call":o.set(d.callId,s.length),s.push({kind:"tool",callId:d.callId,title:d.title,toolKind:d.kind,status:d.status,key:`e${d.seq}`});break;case"tool_update":{const g=o.get(d.callId);if(g!=null){const y=s[g];d.title&&(y.title=d.title),d.status&&(y.status=d.status)}break}case"permission_request":r.set(d.requestId,s.length),s.push({kind:"permission",requestId:d.requestId,title:d.title,options:d.options,resolved:void 0,key:`e${d.seq}`});break;case"permission_resolved":{const g=r.get(d.requestId);g!=null&&(s[g].resolved=d.optionId);break}case"error":s.push({kind:"error",text:d.message,key:`e${d.seq}`});break}}return s}function Zv({id:u,events:s,busy:o}){const r=G.useMemo(()=>Qv(s),[s]),d=G.useRef(null),h=G.useRef(!0);return G.useEffect(()=>{const g=d.current;g&&h.current&&(g.scrollTop=g.scrollHeight)},[r,o]),c.jsxs("div",{className:"chat-scroll",ref:d,onScroll:g=>{const y=g.currentTarget;h.current=y.scrollHeight-y.scrollTop-y.clientHeight<60},children:[r.length===0&&c.jsx("div",{className:"empty",children:"say something — the agent starts on your first message"}),r.map(g=>c.jsx(Vv,{b:g,chatId:u},g.key)),o&&c.jsxs("div",{className:"chat-working",children:[c.jsx("span",{className:"lamp running"})," working…"]})]})}function Vv({b:u,chatId:s}){switch(u.kind){case"user":return c.jsx("div",{className:"msg user",children:u.text});case"agent":return c.jsx("div",{className:"msg agent",children:u.text});case"thought":return c.jsxs("details",{className:"msg thought",children:[c.jsx("summary",{children:"thinking"}),c.jsx("div",{children:u.text})]});case"tool":return c.jsxs("div",{className:`tool-card ${u.status??""}`,children:[c.jsx("span",{className:`lamp ${u.status==="completed"?"ok":u.status==="failed"?"failed":"running"}`}),c.jsx("span",{className:"tool-title",children:u.title}),u.toolKind&&c.jsx("span",{className:"chip",children:u.toolKind})]});case"permission":return c.jsx($v,{b:u,chatId:s});case"error":return c.jsxs("div",{className:"msg error",children:["✕ ",u.text]})}}function $v({b:u,chatId:s}){const[o,r]=G.useState(!1),d=u.resolved===void 0;async function h(g){r(!0),await fetch(`/api/chats/${s}/permission`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({requestId:u.requestId,optionId:g})}).catch(()=>{}),r(!1)}return c.jsxs("div",{className:`perm-card ${d?"pending":""}`,children:[c.jsxs("div",{className:"perm-title",children:[c.jsx("span",{className:"microlabel",children:"permission"})," ",u.title]}),d?c.jsx("div",{className:"perm-actions",children:u.options.map(g=>c.jsx("button",{className:`perm-btn ${g.kind?.startsWith("allow")?"allow":"deny"}`,disabled:o,onClick:()=>h(g.optionId),children:g.name},g.optionId))}):c.jsx("div",{className:"perm-resolved",children:u.resolved?`→ ${u.options.find(g=>g.optionId===u.resolved)?.name??u.resolved}`:"→ dismissed"})]})}function Kv({id:u,busy:s,scope:o}){const[r,d]=G.useState(""),[h,g]=G.useState([]),[y,N]=G.useState(0),[v,z]=G.useState(!1);G.useEffect(()=>{let R=!0;return(async()=>{try{let K=(await fetch("/api/skills").then(pe=>pe.json())).skills??[];if(o?.kind==="team"){const pe=await fetch(`/api/team/${encodeURIComponent(o.member)}`).then(Ue=>Ue.ok?Ue.json():null).catch(()=>null);if(pe&&Array.isArray(pe.skills)){const Ue=new Set(pe.skills.map(Ee=>Ee.toLowerCase()));K=K.filter(Ee=>Ue.has(Ee.name.toLowerCase()))}}R&&g(K)}catch{}})(),()=>{R=!1}},[u]);const M=/^\/([\w-]*)$/.exec(r)?.[1],k=M!==void 0&&!v?h.filter(R=>R.name.toLowerCase().startsWith(M.toLowerCase())):[],te=k.length>0,Z=Math.min(y,k.length-1);function ne(R){d(`/${R.name} `),N(0)}async function W(){const R=r.trim();!R||s||(d(""),await fetch(`/api/chats/${u}/message`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({text:R})}).catch(()=>{}))}return c.jsxs("div",{className:"composer",children:[te&&c.jsx("div",{className:"skill-menu",children:k.map((R,Te)=>c.jsxs("button",{className:Te===Z?"active":"",onMouseDown:K=>{K.preventDefault(),ne(R)},children:[c.jsxs("b",{children:["/",R.name]}),R.description&&c.jsxs("span",{children:[" — ",R.description]}),c.jsx("span",{className:"skill-src",children:R.source})]},R.name))}),c.jsx("textarea",{value:r,placeholder:s?"agent is working…":"message · Enter to send, Shift+Enter for newline, / for skills",rows:Math.min(6,Math.max(1,r.split(`
|
|
76
|
-
`).length)),onChange:R=>{d(R.target.value),N(0),z(!1)},onKeyDown:R=>{if(te){if(R.key==="ArrowDown")return R.preventDefault(),N((Z+1)%k.length);if(R.key==="ArrowUp")return R.preventDefault(),N((Z-1+k.length)%k.length);if(R.key==="Tab"||R.key==="Enter")return R.preventDefault(),ne(k[Z]);if(R.key==="Escape")return R.preventDefault(),z(!0)}R.key==="Enter"&&!R.shiftKey&&(R.preventDefault(),W())}}),s?c.jsx("button",{className:"stop-btn",onClick:()=>fetch(`/api/chats/${u}/cancel`,{method:"POST"}).catch(()=>{}),children:"■ stop"}):c.jsx("button",{className:"run-btn",disabled:!r.trim(),onClick:W,children:"send"})]})}function Jv({id:u}){const s=bt("/api/runs",!0),o=s?.runs??[];return c.jsxs("div",{className:"runs-screen",children:[c.jsxs("aside",{className:"runs-side",children:[c.jsxs("div",{className:"side-head",children:[c.jsx("span",{className:"microlabel",children:"runs"}),c.jsx("span",{className:"spacer"}),c.jsx("span",{className:"microlabel num",children:o.length})]}),c.jsxs("div",{className:"side-list",children:[o.map(r=>c.jsx(Wv,{r,active:r.id===u},r.id)),s&&o.length===0&&c.jsx("div",{className:"viewer-note",children:"no runs yet"})]})]}),c.jsx("div",{className:"runs-main",children:c.jsx(Fv,{id:u},u)})]})}function Wv({r:u,active:s}){return c.jsxs(Ye,{href:`/runs/${u.id}`,className:`side-row ${s?"active":""}`,children:[c.jsx(Gc,{status:u.status}),c.jsxs("div",{className:"side-row-body",children:[c.jsxs("div",{className:"side-row-top",children:[c.jsx("span",{className:"side-wf",children:u.workflow??"unknown"}),c.jsx("span",{className:"side-when num",children:ti(u.startedAt)})]}),c.jsxs("div",{className:"side-row-sub",children:[c.jsx("span",{className:"side-req",title:u.request,children:u.status==="running"&&u.currentPhase?`▸ ${u.currentPhase}`:u.request??""}),c.jsx("span",{className:"side-meta num",children:u.status==="running"?c.jsx(ho,{since:u.startedAt}):ms(u.durationMs)})]})]})]})}function Fv({id:u}){const s=bt(`/api/runs/${u}`,!0),o=s?.status==="running",[r,d]=G.useState(null),[h,g]=G.useState(!1);if(!s)return c.jsx("div",{className:"empty",children:"loading…"});const y=s.files.some(z=>z.name==="runner.json"),N=r??(o?"run":"artifacts");async function v(){g(!0),await fetch(`/api/runs/${u}/stop`,{method:"POST"}).catch(()=>{})}return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"detail-head",children:[c.jsx(Gc,{status:s.status}),c.jsx("h1",{children:s.workflow?c.jsx(Ye,{href:`/workflows/${encodeURIComponent(s.workflow)}`,title:"open workflow",children:s.workflow}):"unknown workflow"}),c.jsx(uy,{status:s.status}),y&&c.jsx("span",{className:"chip sandbox-chip",children:"⬒ sandbox"}),c.jsx("span",{className:"rid",children:u.replace(/^run-/,"")}),o&&y&&c.jsx("button",{className:"stop-btn",onClick:v,disabled:h,children:h?"stopping…":"■ stop"}),c.jsx("span",{className:"spacer"}),c.jsx("button",{className:"open-raw",title:"chat with an agent about this run",onClick:()=>{ai("claude",{kind:"run",runId:u})},children:"⌬ discuss"}),c.jsxs("nav",{className:"tabs",children:[c.jsx("button",{className:N==="run"?"active":"",onClick:()=>d("run"),children:"run"}),c.jsxs("button",{className:N==="artifacts"?"active":"",onClick:()=>d("artifacts"),children:["artifacts ",c.jsxs("span",{className:"num",children:["(",s.files.length,")"]})]})]})]}),s.request&&c.jsx("p",{className:"detail-req",children:s.request}),N==="run"?c.jsx(Iv,{run:s,live:o}):c.jsx(l0,{id:u,files:s.files,live:o})]})}function Iv({run:u,live:s}){return c.jsxs("div",{className:"run-tab",children:[c.jsxs("div",{className:"statgrid",children:[c.jsxs("div",{className:"stat",children:[c.jsx("div",{className:"microlabel",children:"phases"}),c.jsxs("div",{className:"v num",children:[u.phasesDone,u.phasesTotal!=null?` / ${u.phasesTotal}`:""]})]}),c.jsxs("div",{className:"stat",children:[c.jsx("div",{className:"microlabel",children:"duration"}),c.jsx("div",{className:"v num",children:s?c.jsx(ho,{since:u.startedAt}):ms(u.durationMs)})]}),c.jsxs("div",{className:"stat",children:[c.jsx("div",{className:"microlabel",children:"cost"}),c.jsx("div",{className:"v num",children:oo(u.costUsd??Pv(u.phases))})]}),c.jsxs("div",{className:"stat",children:[c.jsx("div",{className:"microlabel",children:"tokens in / out"}),c.jsxs("div",{className:"v num",children:[Lc(Rm(u.phases,"tokensIn"))," / ",Lc(Rm(u.phases,"tokensOut"))]})]})]}),c.jsxs("section",{className:"panel",children:[c.jsxs("div",{className:"panel-head",children:[c.jsx("span",{className:"microlabel",children:"phase timeline"}),c.jsx("span",{className:"spacer"}),s&&c.jsxs("span",{className:"live-note",children:[c.jsx("span",{className:"lamp running"})," live · polling"]})]}),c.jsx("div",{className:"phases",children:u.phases.map(o=>c.jsx(e0,{p:o},o.phase))})]})]})}function Rm(u,s){return u.reduce((o,r)=>o+(r[s]??0),0)}function Pv(u){return u.reduce((s,o)=>s+(o.costUsd??0),0)}function e0({p:u}){const s=u.gates.filter(o=>!o.passed);return c.jsxs("div",{className:"phase-row",children:[c.jsx(Gc,{status:u.status}),c.jsxs("div",{className:"phase-top",children:[c.jsx("span",{className:"phase-name",children:u.phase}),u.kind==="agent"?c.jsxs("span",{className:"chip agent",children:[u.agent,u.model?` · ${u.model}`:""]}):c.jsx("span",{className:"chip",children:"script"}),c.jsxs("span",{className:"right num",children:[u.attempts>1&&c.jsxs("span",{children:["att ",u.attempts]}),u.status==="running"?c.jsx(ho,{since:u.startedAt}):u.durationMs!=null&&c.jsx("span",{children:ms(u.durationMs)}),u.kind==="agent"&&u.tokensIn!=null&&c.jsxs("span",{children:[Lc(u.tokensIn)," / ",Lc(u.tokensOut)]}),u.costUsd!=null&&u.costUsd>0&&c.jsx("span",{children:oo(u.costUsd)})]})]}),u.status==="running"&&u.lastActivity&&c.jsx("div",{className:"phase-activity",children:u.lastActivity}),u.summary&&u.status!=="running"&&c.jsx("div",{className:"phase-sub",children:u.summary}),u.gates.length>0&&c.jsx("div",{className:"gate-line",children:u.gates.map(o=>c.jsxs("span",{className:`gate ${o.passed?"":"failed"}`,title:o.failure??"",children:[o.passed?"✓":"✕"," ",o.gate]},o.gate))}),s.map(o=>c.jsx("div",{className:"gate-fail-msg",children:o.failure},o.gate))]})}const t0=new Set(["png","jpg","jpeg","gif","webp","svg"]);function l0({id:u,files:s,live:o}){const[r,d]=G.useState(null);return G.useEffect(()=>{if(r||s.length===0)return;d(["report.html","recommendation.md","trace.jsonl"].find(g=>s.some(y=>y.name===g))??s[0].name)},[s,r]),c.jsxs("div",{className:"art-layout",children:[c.jsxs("section",{className:"panel art-files",children:[c.jsx("div",{className:"panel-head",children:c.jsxs("span",{className:"microlabel",children:["files ",c.jsxs("span",{className:"num",children:["(",s.length,")"]})]})}),c.jsxs("div",{className:"file-list",children:[s.map(h=>c.jsxs("button",{className:`file-row ${r===h.name?"active":""}`,onClick:()=>d(h.name),children:[c.jsx("span",{className:"fname",children:h.name}),c.jsx("span",{className:"fsize num",children:fo(h.size)})]},h.name)),s.length===0&&c.jsx("div",{className:"viewer-note",children:"no files yet"})]})]}),c.jsxs("section",{className:"panel art-viewer",children:[c.jsxs("div",{className:"panel-head",children:[c.jsx("span",{className:"microlabel",children:r??"viewer"}),c.jsx("span",{className:"spacer"}),r&&c.jsx("a",{className:"open-raw",href:`/api/runs/${u}/file?name=${encodeURIComponent(r)}&raw=1`,target:"_blank",children:"open raw ↗"})]}),r?c.jsx(a0,{id:u,name:r,live:o}):c.jsx("div",{className:"empty",children:"select a file"})]})]})}function a0({id:u,name:s,live:o}){const r=s.split(".").pop()?.toLowerCase()??"",d=`/api/runs/${u}/file?name=${encodeURIComponent(s)}&raw=1`;return r==="html"?c.jsx("div",{className:"viewer",children:c.jsx("div",{className:"viewer-body",children:c.jsx("iframe",{src:d,sandbox:"allow-scripts",allow:"clipboard-write",title:s})})}):t0.has(r)?c.jsx("div",{className:"viewer",children:c.jsx("div",{className:"viewer-body",children:c.jsx("img",{src:d,alt:s})})}):r==="md"||r==="markdown"?c.jsx(n0,{id:u,name:s,live:o}):c.jsx(i0,{id:u,name:s,live:o})}function n0({id:u,name:s,live:o}){const[r,d]=G.useState("rendered"),h=bt(`/api/runs/${u}/file?name=${encodeURIComponent(s)}`,o),g=G.useMemo(()=>h?qv.sanitize(De.parse(h.content,{async:!1})):"",[h?.content]);return c.jsxs("div",{className:"viewer",children:[c.jsxs("div",{className:"viewer-note md-toolbar",children:[c.jsxs("div",{className:"tabs",children:[c.jsx("button",{className:r==="rendered"?"active":"",onClick:()=>d("rendered"),children:"rendered"}),c.jsx("button",{className:r==="source"?"active":"",onClick:()=>d("source"),children:"source"})]}),h?.truncated&&c.jsxs("span",{children:["large file — showing the last ",fo(4e5)]})]}),c.jsx("div",{className:"viewer-body",children:h?r==="rendered"?c.jsx("div",{className:"md-body",dangerouslySetInnerHTML:{__html:g}}):c.jsx("pre",{children:h.content||"(empty)"}):c.jsx("pre",{children:"loading…"})})]})}function i0({id:u,name:s,live:o}){const r=bt(`/api/runs/${u}/file?name=${encodeURIComponent(s)}`,o);return c.jsxs("div",{className:"viewer",children:[r?.truncated&&c.jsxs("div",{className:"viewer-note",children:["large file — showing the last ",fo(4e5)]}),c.jsx("div",{className:"viewer-body",children:c.jsx("pre",{children:r?r.content||"(empty)":"loading…"})})]})}function s0(){const u=bt("/api/workflows",!1),s=u?.workflows??[];return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-head",children:[c.jsx("h1",{children:"Workflows"}),c.jsxs("span",{className:"count num",children:[s.length," discovered"]}),u?.root&&c.jsx("span",{className:"count mono",children:u.root})]}),u&&s.length===0&&c.jsxs("div",{className:"empty",children:["No workflows found — expected ",c.jsx("code",{children:"src/workflows/"})," or ",c.jsx("code",{children:"workflows/"})," ","next to the output folder."]}),c.jsx("div",{className:"wf-grid",children:s.map(o=>c.jsxs(Ye,{href:`/workflows/${o.slug}`,className:"wf-card",children:[c.jsxs("div",{className:"wf-card-head",children:[c.jsx("span",{className:"wf-name",children:o.name??o.slug}),o.error&&c.jsx("span",{className:"status-word failed",children:"broken"})]}),c.jsx("p",{className:"wf-desc",children:o.error??o.description??""}),c.jsxs("div",{className:"wf-meta num",children:[c.jsxs("span",{children:[o.agents," agents"]}),c.jsx("span",{children:"·"}),c.jsxs("span",{children:[o.steps," steps"]})]})]},o.slug))})]})}function c0({slug:u}){const s=bt(`/api/workflows/${encodeURIComponent(u)}`,!1),o=bt("/api/runs",!1);if(!s)return c.jsx("div",{className:"empty",children:"loading…"});if(s.error)return c.jsxs(c.Fragment,{children:[c.jsx(Om,{slug:s.slug}),c.jsxs("div",{className:"empty",children:[c.jsx("span",{className:"status-word failed",children:"broken workflow"}),c.jsx("pre",{style:{marginTop:12,textAlign:"left"},children:s.error})]})]});const r=new Map(s.agents.map((h,g)=>[h.id,g%4])),d=(o?.runs??[]).filter(h=>h.workflow===s.name).slice(0,8);return c.jsxs(c.Fragment,{children:[c.jsx(Om,{slug:s.slug}),c.jsxs("div",{className:"detail-head",children:[c.jsx("h1",{children:s.name??s.slug}),c.jsx("span",{className:"rid mono",children:s.dir})]}),s.description&&c.jsx("p",{className:"detail-req",children:s.description}),c.jsxs("div",{className:"statgrid",children:[c.jsxs("div",{className:"stat",children:[c.jsx("div",{className:"microlabel",children:"agents"}),c.jsx("div",{className:"v num",children:s.agents.length})]}),c.jsxs("div",{className:"stat",children:[c.jsx("div",{className:"microlabel",children:"steps"}),c.jsxs("div",{className:"v num",children:[s.steps.length," ",c.jsxs("span",{style:{color:"var(--muted)",fontWeight:400},children:["(",s.steps.filter(h=>h.kind==="agent").length," agent ·"," ",s.steps.filter(h=>h.kind==="script").length," script)"]})]})]}),s.workspace&&c.jsxs("div",{className:"stat",style:{maxWidth:420},children:[c.jsx("div",{className:"microlabel",children:"workspace"}),c.jsx("div",{className:"wf-workspace mono",children:s.workspace})]})]}),c.jsx(u0,{slug:s.slug,lastRequest:d[0]?.request}),c.jsxs("section",{className:"panel",style:{marginBottom:18},children:[c.jsx("div",{className:"panel-head",children:c.jsx("span",{className:"microlabel",children:"agents"})}),c.jsxs("div",{className:"agent-grid",children:[s.agents.map(h=>c.jsx(r0,{a:h,idx:r.get(h.id)??0},h.id)),s.agents.length===0&&c.jsx("div",{className:"viewer-note",children:"no agents — script-only workflow"})]})]}),c.jsxs("div",{className:"columns",children:[c.jsxs("section",{className:"panel",children:[c.jsx("div",{className:"panel-head",children:c.jsx("span",{className:"microlabel",children:"pipeline"})}),c.jsx("div",{className:"pipeline",children:s.steps.map((h,g)=>c.jsx(o0,{s:h,i:g,idx:h.agent?r.get(h.agent)??0:null},h.name))})]}),c.jsxs("div",{style:{display:"grid",gap:18},children:[c.jsxs("section",{className:"panel",children:[c.jsx("div",{className:"panel-head",children:c.jsxs("span",{className:"microlabel",children:["folder ",c.jsxs("span",{className:"num",children:["(",s.files.length," files)"]})]})}),c.jsx("div",{className:"file-list",children:s.files.map(h=>c.jsx("div",{className:"file-row",style:{cursor:"default"},children:c.jsx("span",{className:"fname",children:h})},h))})]}),c.jsxs("section",{className:"panel",children:[c.jsx("div",{className:"panel-head",children:c.jsxs("span",{className:"microlabel",children:["recent runs ",c.jsxs("span",{className:"num",children:["(",d.length,")"]})]})}),c.jsxs("div",{className:"file-list",children:[d.map(h=>c.jsxs(Ye,{href:`/runs/${h.id}`,className:"file-row",children:[c.jsx(Gc,{status:h.status}),c.jsx("span",{className:"fname",children:h.id.replace(/^run-/,"")}),c.jsxs("span",{className:"fsize num",children:[ms(h.durationMs)," · ",oo(h.costUsd)," · ",ti(h.startedAt)]})]},h.id)),d.length===0&&c.jsx("div",{className:"viewer-note",children:"no runs of this workflow yet"})]})]})]})]})]})}function u0({slug:u,lastRequest:s}){const[o,r]=G.useState(""),[d,h]=G.useState(!0),[g,y]=G.useState(!1),[N,v]=G.useState(!1),[z,M]=G.useState(null),k=bt(`/api/workflows/${encodeURIComponent(u)}/run`,!1);G.useEffect(()=>{!o&&s&&r(s)},[s]);const te=k?.available&&k?.image,Z=k?k.available?k.image?"isolated container per run":"image missing — run `kraftwerk runner build`":"Docker not running — sandbox unavailable":"";async function ne(){if(!(!o.trim()||N)){v(!0),M(null);try{const W=await fetch(`/api/workflows/${encodeURIComponent(u)}/run`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({request:o.trim(),sandbox:d,ssh:g})}),R=await W.json();if(!W.ok)throw new Error(R.error??`HTTP ${W.status}`);Ca(`/runs/${R.runId}`)}catch(W){M(W.message),v(!1)}}}return c.jsxs("section",{className:"panel run-panel",style:{marginBottom:18},children:[c.jsx("div",{className:"panel-head",children:c.jsx("span",{className:"microlabel",children:"trigger run"})}),c.jsxs("div",{className:"run-form",children:[c.jsx("input",{type:"text",value:o,placeholder:"request — topic, URL, host …",onChange:W=>r(W.target.value),onKeyDown:W=>W.key==="Enter"&&ne()}),c.jsx("button",{className:"run-btn",onClick:ne,disabled:N||!o.trim()||d&&!te,children:N?"starting…":d?"▶ run in sandbox":"▶ run locally"})]}),c.jsxs("div",{className:"run-opts",children:[c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:d,onChange:W=>h(W.target.checked)}),"docker sandbox ",Z&&c.jsxs("span",{className:"opt-hint",children:["— ",Z]})]}),c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:g,onChange:W=>y(W.target.checked),disabled:!d}),"forward SSH agent"]})]}),z&&c.jsx("div",{className:"gate-fail-msg",children:z})]})}function Om({slug:u}){return c.jsxs("nav",{className:"crumbs",children:[c.jsx(Ye,{href:"/workflows",children:"workflows"}),c.jsx("span",{className:"sep",children:"/"}),c.jsx("span",{className:"mono",children:u})]})}function r0({a:u,idx:s}){return c.jsxs("div",{className:`agent-card aid-${s}`,children:[c.jsxs("div",{className:"agent-head",children:[c.jsx("span",{className:"agent-dot"}),c.jsx("b",{children:u.name??u.id}),c.jsxs("code",{className:"agent-id",children:["[",u.id,"]"]}),c.jsx("span",{className:"spacer"}),c.jsxs("span",{className:"chip",children:[u.model??"default",u.effort?` · ${u.effort}`:""]})]}),u.tools.length>0&&c.jsx("div",{className:"agent-tools",children:u.tools.map(o=>c.jsx("span",{className:"tool-chip",children:o},o))}),u.persona&&c.jsx("p",{className:"agent-persona",children:u.persona})]})}function o0({s:u,i:s,idx:o}){const r=u.kind==="script"?u.script:u.prompt;return c.jsxs("div",{className:"step-node",children:[c.jsx("div",{className:`step-index num ${o!=null?`aid-${o}`:"is-script"}`,children:s+1}),c.jsxs("div",{className:"step-body",children:[c.jsxs("div",{className:"phase-top",children:[c.jsx("span",{className:"phase-name",children:u.name}),u.kind==="agent"?c.jsxs("span",{className:`chip agent-chip aid-${o??0}`,children:["agent · ",u.agent]}):c.jsxs("span",{className:"chip",children:["script",u.sourceRef?` · ${u.sourceRef}`:""]})]}),r&&c.jsxs("details",{className:"step-source",children:[c.jsx("summary",{children:u.kind==="agent"?"prompt":"script"}),c.jsx("pre",{children:r})]}),u.gates.length>0&&c.jsx("div",{className:"gate-line",children:u.gates.map(d=>c.jsxs("span",{className:"gate neutral",children:["⛨ ",d]},d))})]})]})}function f0({bundle:u,conceptId:s}){const o=bt("/api/knowledge",!1),r=o?.bundles??[];return c.jsxs("div",{className:"runs-screen",children:[c.jsxs("aside",{className:"runs-side",children:[c.jsxs("div",{className:"side-head",children:[c.jsx("span",{className:"microlabel",children:"bundles"}),c.jsx("span",{className:"spacer"}),c.jsx(Ye,{href:"/knowledge",className:"open-raw",children:"+ new"})]}),c.jsxs("div",{className:"side-list",children:[r.map(d=>c.jsxs(Ye,{href:`/knowledge/${encodeURIComponent(d.name)}`,className:`side-row ${d.name===u?"active":""}`,children:[c.jsx("span",{className:"lamp ok"}),c.jsxs("div",{className:"side-row-body",children:[c.jsxs("div",{className:"side-row-top",children:[c.jsx("span",{className:"side-wf",children:d.name}),c.jsx("span",{className:"side-when num",children:d.concepts})]}),c.jsx("div",{className:"side-row-sub",children:c.jsxs("span",{className:"side-req",children:[d.okfVersion?`okf ${d.okfVersion}`:"okf",d.updatedAt?` · ${d.updatedAt.slice(0,10)}`:""]})})]})]},d.name)),o&&r.length===0&&c.jsx("div",{className:"viewer-note",children:"no bundles yet"})]})]}),c.jsx("div",{className:"runs-main",children:u&&s?c.jsx(x0,{bundle:u,conceptId:s},`${u}/${s}`):u?c.jsx(h0,{name:u},u):c.jsx(d0,{root:o?.root})})]})}function d0({root:u}){const[s,o]=G.useState(""),[r,d]=G.useState(""),[h,g]=G.useState(!1);async function y(){const N=s.trim();if(!N)return;g(!0),d("");const z=await(await fetch("/api/knowledge",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:N})})).json();g(!1),z.error?d(z.error):window.location.hash=`/knowledge/${encodeURIComponent(N)}`}return c.jsxs("div",{className:"new-chat",children:[c.jsx("div",{className:"page-head",children:c.jsx("h1",{children:"context & knowledge"})}),c.jsxs("section",{className:"panel new-chat-panel",children:[c.jsx("div",{className:"panel-head",children:c.jsx("span",{className:"microlabel",children:"what lives here"})}),c.jsxs("div",{className:"know-intro",children:["Curated knowledge as ",c.jsx("b",{children:"OKF bundles"})," (Open Knowledge Format v0.2): plain markdown files with YAML frontmatter",u?c.jsxs(c.Fragment,{children:[" under ",c.jsx("code",{children:u})]}):null,", readable by humans and agents, diffable in git. Agents write through"," ",c.jsx("code",{children:"kraftwerk knowledge put"})," (provenance is stamped automatically); you raise a concept's trust tier by verifying it here."]}),c.jsx("div",{className:"panel-head",children:c.jsx("span",{className:"microlabel",children:"new bundle"})}),c.jsxs("div",{className:"know-newbundle",children:[c.jsx("input",{value:s,placeholder:"bundle name, e.g. customer-support",onChange:N=>o(N.target.value),onKeyDown:N=>N.key==="Enter"&&void y()}),c.jsx("button",{className:"run-btn",disabled:!s.trim()||h,onClick:y,children:h?"creating…":"create"})]}),r&&c.jsxs("div",{className:"msg error",children:["✕ ",r]})]})]})}function uo({tier:u}){return c.jsx("span",{className:`chip trust ${u}`,children:u})}function h0({name:u}){const s=bt(`/api/knowledge/${encodeURIComponent(u)}`,!1);return s?"error"in s?c.jsx("div",{className:"empty",children:"bundle not found"}):c.jsxs("div",{className:"member-view",children:[c.jsxs("div",{className:"page-head",children:[c.jsx("h1",{children:u}),c.jsxs("span",{className:"count",children:[s.concepts.length," concepts"]}),c.jsx("span",{className:"spacer"}),c.jsx("button",{className:"run-btn",onClick:()=>{ai("claude",{kind:"knowledge",bundle:u})},children:"curate in chat"})]}),c.jsx("section",{className:"panel",children:s.concepts.length===0?c.jsxs("div",{className:"viewer-note",children:["No concepts yet — start a chat to author some, or write one with"," ",c.jsxs("code",{children:["kraftwerk knowledge put ",u,"/<path>"]}),"."]}):c.jsx("div",{className:"m3-list",children:v0(s.concepts).map(({folder:o,concepts:r})=>c.jsxs(G.Fragment,{children:[o&&c.jsxs("div",{className:"m3-subhead",children:[o,"/"]}),r.map(d=>c.jsxs(Ye,{href:`/knowledge/${encodeURIComponent(u)}/${d.id}`,className:"m3-row m3-link",children:[c.jsx("span",{className:"m3-ico",children:m0(d.type)}),c.jsxs("span",{className:"m3-body",children:[c.jsxs("span",{className:"m3-head",children:[d.title,d.status!=="stable"&&c.jsx("span",{className:`chip ${d.status}`,children:d.status}),d.stale&&c.jsx("span",{className:"chip stale",children:"stale"}),d.error&&c.jsx("span",{className:"chip stale",title:d.error,children:"invalid"})]}),c.jsxs("span",{className:"m3-sub",children:[c.jsxs("code",{children:[o?d.id.slice(o.length+1):d.id,".md"]})," · ",d.type??"untyped"]})]}),c.jsx(uo,{tier:d.trustTier}),c.jsx("span",{className:"m3-chev",children:"›"})]},d.id))]},o||"."))})}),s.log&&c.jsx(y0,{name:u,log:s.log})]}):c.jsx("div",{className:"empty",children:"loading…"})}function m0(u){switch((u??"").toLowerCase()){case"reference":return"▤";case"policy":return"§";case"guide":case"howto":return"➤";case"decision":return"⚖";default:return"◆"}}function p0(u){const s=[];for(const o of u.split(`
|
|
77
|
-
`)){const r=o.match(/^##\s+(\d{4}-\d{2}-\d{2})/);if(r){s.push({date:r[1],entries:[]});continue}const d=o.match(/^[*-]\s+\*\*([^*]+)\*\*:\s*(.*)$/);d&&s.length>0&&s[s.length-1].entries.push({kind:d[1].toLowerCase(),text:d[2]})}return s.filter(o=>o.entries.length>0)}function g0(u,s){const o=[],r=/\[([^\]]+)\]\(\/?([^)]+?)\.md\)/g;let d=0,h;for(;h=r.exec(s);)h.index>d&&o.push(s.slice(d,h.index)),o.push(c.jsx(Ye,{href:`/knowledge/${encodeURIComponent(u)}/${h[2].replace(/^\//,"")}`,children:h[1]},h.index)),d=h.index+h[0].length;return d<s.length&&o.push(s.slice(d)),o}function y0({name:u,log:s}){const o=p0(s),[r,d]=G.useState(!1);return c.jsxs("section",{className:"panel",children:[c.jsxs("div",{className:"panel-head",children:[c.jsx("span",{className:"microlabel",children:"activity"}),c.jsx("span",{className:"spacer"}),c.jsx("button",{className:"open-raw",onClick:()=>d(!r),children:r?"timeline":"raw log"})]}),r||o.length===0?c.jsx("div",{className:"viewer-body",children:c.jsx("pre",{children:s})}):c.jsx("div",{className:"know-log",children:o.map(h=>c.jsxs(G.Fragment,{children:[c.jsx("div",{className:"m3-subhead num",children:h.date}),h.entries.map((g,y)=>c.jsxs("div",{className:"know-log-row",children:[c.jsx("span",{className:`chip log-kind log-${g.kind}`,children:g.kind}),c.jsx("span",{className:"know-log-text",children:g0(u,g.text)})]},y))]},h.date))})]})}function v0(u){const s=new Map;for(const o of u){const r=o.id.includes("/")?o.id.slice(0,o.id.lastIndexOf("/")):"";(s.get(r)??s.set(r,[]).get(r)).push(o)}return[...s.keys()].sort((o,r)=>o===""?-1:r===""?1:o.localeCompare(r)).map(o=>({folder:o,concepts:s.get(o)}))}function x0({bundle:u,conceptId:s}){const[o,r]=G.useState(null),[d,h]=G.useState(!1),[g,y]=G.useState(!1),[N,v]=G.useState(!1),[z,M]=G.useState(""),[k,te]=G.useState(!1),[Z,ne]=G.useState(""),W=()=>{fetch(`/api/knowledge/${encodeURIComponent(u)}/concept?id=${encodeURIComponent(s)}`).then(K=>K.ok?K.json():Promise.reject()).then(r).catch(()=>h(!0))};G.useEffect(W,[u,s]);async function R(){y(!0),await fetch(`/api/knowledge/${encodeURIComponent(u)}/verify`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:s})}).catch(()=>{}),y(!1),W()}async function Te(){te(!0),ne("");const K=await fetch(`/api/knowledge/${encodeURIComponent(u)}/concept`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:s,content:z})}).then(pe=>pe.json()).catch(()=>({error:"save failed"}));te(!1),K.error?ne(K.error):(r(K),v(!1))}return d?c.jsx("div",{className:"empty",children:"concept not found"}):o?c.jsxs("div",{className:"member-view",children:[c.jsxs("div",{className:"detail-head",children:[c.jsx("h1",{children:o.title}),o.type&&c.jsx("span",{className:"chip agent",children:o.type}),c.jsx(uo,{tier:o.trustTier}),o.status!=="stable"&&c.jsx("span",{className:`chip ${o.status}`,children:o.status}),o.stale&&c.jsxs("span",{className:"chip stale",children:["stale since ",o.staleAfter?.slice(0,10)]}),c.jsx("span",{className:"spacer"}),c.jsx("button",{className:"open-raw",onClick:()=>{ai("claude",{kind:"knowledge",bundle:u})},children:"curate in chat"}),c.jsx("button",{className:"run-btn",disabled:g,onClick:R,children:g?"verifying…":"✓ verify (human)"})]}),o.error&&c.jsxs("div",{className:"msg error",children:["✕ ",o.error]}),c.jsxs("div",{className:"detail-cols",children:[c.jsxs("section",{className:"panel",children:[c.jsxs("div",{className:"panel-head",children:[c.jsx("span",{className:"microlabel",children:"content"}),c.jsx("span",{className:"spacer"}),c.jsxs("span",{className:"side-meta",children:[u,"/",o.id,".md"]}),N?c.jsxs(c.Fragment,{children:[c.jsx("button",{className:"open-raw",onClick:()=>{v(!1),ne("")},children:"cancel"}),c.jsx("button",{className:"open-raw",disabled:k,onClick:Te,children:k?"saving…":"✓ save"})]}):c.jsx("button",{className:"open-raw",onClick:()=>{M(o.raw),v(!0),ne("")},children:"✎ edit"})]}),N?c.jsxs(c.Fragment,{children:[c.jsx("textarea",{className:"concept-edit",value:z,rows:Math.min(40,Math.max(18,z.split(`
|
|
78
|
-
`).length+2)),onChange:K=>M(K.target.value),spellCheck:!1}),c.jsxs("div",{className:"viewer-note",children:["full file (frontmatter + markdown body) — saving stamps provenance as"," ",c.jsx("code",{children:"human:user"})," and logs an update."]})]}):c.jsx("div",{className:"viewer-body",children:c.jsx("pre",{children:o.body.trim()||"(empty body)"})}),Z&&c.jsxs("div",{className:"msg error",children:["✕ ",Z]})]}),c.jsxs("aside",{className:"detail-rail",children:[c.jsxs("section",{className:"panel",children:[c.jsx("div",{className:"panel-head",children:c.jsx("span",{className:"microlabel",children:"about"})}),c.jsxs("div",{className:"rail-list",children:[c.jsxs("div",{className:"rail-kv",children:[c.jsx("span",{className:"microlabel",children:"trust"}),c.jsx("span",{className:"v",children:c.jsx(uo,{tier:o.trustTier})})]}),c.jsxs("div",{className:"rail-kv",children:[c.jsx("span",{className:"microlabel",children:"generated"}),c.jsx("span",{className:`v ${o.generated?"":"dim"}`,children:o.generated?`${o.generated.by??"?"} · ${(o.generated.at??"?").slice(0,10)}`:"not stamped"})]}),c.jsxs("div",{className:"rail-kv",children:[c.jsx("span",{className:"microlabel",children:"verified"}),o.verified.length===0?c.jsx("span",{className:"v dim",children:"never"}):o.verified.map((K,pe)=>c.jsxs("span",{className:"v",children:[K.by??"?"," · ",(K.at??"?").slice(0,10)]},pe))]}),o.staleAfter&&c.jsxs("div",{className:"rail-kv",children:[c.jsx("span",{className:"microlabel",children:"stale after"}),c.jsxs("span",{className:`v ${o.stale?"":"dim"}`,children:[o.staleAfter.slice(0,10),o.stale&&c.jsx("span",{className:"chip stale",children:"stale"})]})]}),o.tags.length>0&&c.jsxs("div",{className:"rail-kv",children:[c.jsx("span",{className:"microlabel",children:"tags"}),c.jsx("span",{className:"m3-chips",children:o.tags.map(K=>c.jsx("span",{className:"chip",children:K},K))})]})]})]}),o.sources.length>0&&c.jsxs("section",{className:"panel",children:[c.jsx("div",{className:"panel-head",children:c.jsx("span",{className:"microlabel",children:"sources"})}),c.jsx("div",{className:"rail-list",children:o.sources.map((K,pe)=>c.jsxs("div",{className:"rail-kv",children:[c.jsxs("span",{className:"v",children:[K.resource?.startsWith("http")?c.jsx("a",{href:K.resource,target:"_blank",rel:"noreferrer",children:K.title??K.resource}):K.title??K.resource??"?",K.id&&c.jsxs("span",{className:"know-id",children:["[^",K.id,"]"]})]}),c.jsx("span",{className:"v dim",children:[K.author,K.usage_count!=null?`${K.usage_count} uses`:null,K.last_modified?`mod ${K.last_modified.slice(0,10)}`:null].filter(Boolean).join(" · ")})]},pe))})]})]})]})]}):c.jsx("div",{className:"empty",children:"loading…"})}const b0=["","low","medium","high","xhigh","max"],S0=["🤖","🧑💻","🎧","🛠️","📊","✍️","🔍","🧹","📦","🚀"];function N0({seg:u}){const s=u[0]&&u[0]!=="new"?decodeURIComponent(u[0]):void 0,o=u[0]==="new"?"new":u[1]==="edit"?"edit":u[1]==="chat"?"chat":s?"member":"home",r=o==="chat"?u[2]:void 0,d=bt("/api/team",!1),h=d?.members??[];let g;return o==="new"?g=c.jsx(Dm,{},"new"):o==="edit"&&s?g=c.jsx(Dm,{slug:s},s):o==="chat"&&s&&r?g=c.jsx("div",{className:"chat-main",children:c.jsx(Km,{id:r},r)}):s?g=c.jsx(E0,{slug:s},s):g=c.jsx(T0,{hasMembers:h.length>0,root:d?.root}),c.jsxs("div",{className:`runs-screen team-screen ${s?"has-sessions":""}`,children:[c.jsxs("aside",{className:"runs-side",children:[c.jsxs("div",{className:"side-head",children:[c.jsx("span",{className:"microlabel",children:"agents"}),c.jsx("span",{className:"spacer"}),c.jsx(Ye,{href:"/team/new",className:"open-raw",children:"+ new"})]}),c.jsxs("div",{className:"side-list",children:[h.map(y=>c.jsxs(Ye,{href:`/team/${encodeURIComponent(y.slug)}`,className:`side-row ${y.slug===s?"active":""}`,children:[c.jsx("span",{className:"team-emoji",children:y.emoji}),c.jsxs("div",{className:"side-row-body",children:[c.jsx("div",{className:"side-row-top",children:c.jsx("span",{className:"side-wf",children:y.name})}),c.jsx("div",{className:"side-row-sub",children:c.jsx("span",{className:"side-req",children:y.description||y.harness})})]})]},y.slug)),d&&h.length===0&&c.jsx("div",{className:"viewer-note",children:"no agents yet"})]})]}),s&&c.jsx(j0,{slug:s,chatId:r}),c.jsx("div",{className:"runs-main",children:g})]})}function j0({slug:u,chatId:s}){const o=bt("/api/chats",!1),r=(o?.chats??[]).filter(g=>g.scope.kind==="team"&&g.scope.member===u),[d,h]=G.useState(!1);return c.jsxs("aside",{className:"runs-side",children:[c.jsxs("div",{className:"side-head",children:[c.jsx("span",{className:"microlabel",children:"sessions"}),c.jsx("span",{className:"spacer"}),c.jsx("button",{className:"open-raw",disabled:d,onClick:async()=>{h(!0),await ai("claude",{kind:"team",member:u}),h(!1)},children:d?"…":"+ new"})]}),c.jsxs("div",{className:"side-list",children:[r.map(g=>c.jsxs(Ye,{href:`/team/${encodeURIComponent(u)}/chat/${g.id}`,className:`side-row ${g.id===s?"active":""}`,children:[c.jsx("span",{className:`lamp ${g.busy?"running":"pending"}`}),c.jsxs("div",{className:"side-row-body",children:[c.jsx("div",{className:"side-row-top",children:c.jsx("span",{className:"side-wf",children:g.title||"new session"})}),c.jsx("div",{className:"side-row-sub",children:c.jsx("span",{className:"side-when num",children:ti(g.updatedAt)})})]}),c.jsx("button",{type:"button",className:"row-x",title:"delete session",onClick:async y=>{y.preventDefault(),y.stopPropagation(),window.confirm(`Delete session "${g.title||g.id}"?`)&&(await fetch(`/api/chats/${g.id}`,{method:"DELETE"}).catch(()=>{}),g.id===s&&Ca(`/team/${encodeURIComponent(u)}`))},children:"✕"})]},g.id)),o&&r.length===0&&c.jsx("div",{className:"viewer-note",children:"no sessions yet"})]})]})}function T0({hasMembers:u,root:s}){return c.jsxs("div",{className:"new-chat",children:[c.jsx("div",{className:"page-head",children:c.jsx("h1",{children:"agents"})}),c.jsxs("section",{className:"panel new-chat-panel",children:[c.jsx("div",{className:"panel-head",children:c.jsx("span",{className:"microlabel",children:"what lives here"})}),c.jsxs("div",{className:"know-intro",children:["Your agents, set up like teammates: each one has a name, a role (system prompt), a harness/model to run on, and the workflows that belong to its job. An agent lives in"," ",c.jsx("code",{children:s?`${s}/<slug>/`:"agents/<slug>/"})," as ",c.jsx("code",{children:"agent.yml"})," +"," ",c.jsx("code",{children:"system.md"})," — git-tracked, so your team travels with the repo. Every session is a persistent conversation with that agent; it knows its connected workflows and knowledge bundles, runs the workflows for you, and keeps the knowledge current."]}),c.jsx("div",{style:{padding:"0 16px 16px"},children:c.jsx("button",{className:"run-btn",onClick:()=>Ca("/team/new"),children:u?"+ new agent":"create your first agent"})})]})]})}function E0({slug:u}){const[s,o]=G.useState(null),[r,d]=G.useState(!1),[h,g]=G.useState(!1),[y,N]=G.useState(!1);return G.useEffect(()=>{let v=!0;return fetch(`/api/team/${encodeURIComponent(u)}`).then(z=>z.ok?z.json():Promise.reject()).then(z=>v&&o(z)).catch(()=>v&&d(!0)),()=>{v=!1}},[u]),r?c.jsx("div",{className:"empty",children:"agent not found"}):s?c.jsxs("div",{className:"member-view",children:[c.jsxs("div",{className:"detail-head",children:[c.jsx("span",{className:"team-emoji-lg",children:s.emoji}),c.jsx("h1",{children:s.name}),c.jsx("span",{className:"chip agent",children:s.harness}),s.model&&c.jsx("span",{className:"chip",children:s.model}),s.effort&&c.jsxs("span",{className:"chip",children:["effort: ",s.effort]}),c.jsx("span",{className:"spacer"}),c.jsx(Ye,{href:`/team/${encodeURIComponent(u)}/edit`,className:"open-raw",children:"edit"}),c.jsx("button",{className:"run-btn",disabled:h,onClick:async()=>{g(!0),await ai("claude",{kind:"team",member:u}),g(!1)},children:h?"starting…":"new session"})]}),c.jsx("section",{className:"panel",children:c.jsxs("div",{className:"m3-list",children:[c.jsxs("button",{type:"button",className:"m3-row m3-toggle",onClick:()=>N(!y),children:[c.jsx("span",{className:"m3-ico",children:"▤"}),c.jsxs("span",{className:"m3-body",children:[c.jsx("span",{className:"m3-head",children:"role"}),!y&&c.jsx("span",{className:"m3-sub m3-ellipsis",children:(s.system||"").trim().split(`
|
|
79
|
-
`)[0]||"empty — edit this agent to give it a role"})]}),c.jsx("span",{className:`m3-chev ${y?"open":""}`,children:"▾"})]}),y&&c.jsxs("div",{className:"m3-expand",children:[c.jsx("pre",{children:s.system||"(empty — edit this agent to give it a role)"}),c.jsxs("div",{className:"m3-sub",style:{marginTop:10},children:["agents/",s.slug,"/system.md"]})]}),c.jsxs("div",{className:"m3-row",children:[c.jsx("span",{className:"m3-ico",children:"⚙"}),c.jsxs("span",{className:"m3-body",children:[c.jsx("span",{className:"m3-head",children:"workflows"}),s.workflows.length===0?c.jsx("span",{className:"m3-sub",children:"none connected — the agent can run any workflow you connect"}):c.jsx("span",{className:"m3-chips",children:s.workflows.map(v=>c.jsx(Ye,{href:`/workflows/${encodeURIComponent(v)}`,className:"chip",children:v},v))})]}),c.jsx(Ye,{href:`/team/${encodeURIComponent(u)}/edit`,className:"open-raw",children:"edit"})]}),c.jsxs("div",{className:"m3-row",children:[c.jsx("span",{className:"m3-ico",children:"◆"}),c.jsxs("span",{className:"m3-body",children:[c.jsx("span",{className:"m3-head",children:"knowledge"}),s.knowledge.length===0?c.jsx("span",{className:"m3-sub",children:"none connected — connected bundles are read and kept current by the agent"}):c.jsx("span",{className:"m3-chips",children:s.knowledge.map(v=>c.jsx(Ye,{href:`/knowledge/${encodeURIComponent(v)}`,className:"chip",children:v},v))})]}),c.jsx(Ye,{href:`/team/${encodeURIComponent(u)}/edit`,className:"open-raw",children:"edit"})]}),c.jsxs("div",{className:"m3-row",children:[c.jsx("span",{className:"m3-ico",children:"/"}),c.jsxs("span",{className:"m3-body",children:[c.jsx("span",{className:"m3-head",children:"skills"}),s.skills===void 0?c.jsx("span",{className:"m3-sub",children:"all discovered skills (default) — invoke with /name in a session"}):s.skills.length===0?c.jsx("span",{className:"m3-sub",children:"none — this agent runs without skills"}):c.jsx("span",{className:"m3-chips",children:s.skills.map(v=>c.jsxs("span",{className:"chip",children:["/",v]},v))})]}),c.jsx(Ye,{href:`/team/${encodeURIComponent(u)}/edit`,className:"open-raw",children:"edit"})]})]})}),c.jsx(A0,{slug:u})]}):c.jsx("div",{className:"empty",children:"loading…"})}function A0({slug:u}){const o=bt(`/api/team/${encodeURIComponent(u)}/routines`,!1)?.routines??[],[r,d]=G.useState(null),[h,g]=G.useState(""),[y,N]=G.useState("");async function v(k){g("");const Z=await(await fetch(`/api/team/${encodeURIComponent(u)}/routines`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(k)})).json();return Z.error?(g(Z.error),!1):!0}async function z(k){N(k),g("");const Z=await(await fetch(`/api/team/${encodeURIComponent(u)}/routines/${encodeURIComponent(k)}/run`,{method:"POST"})).json();N(""),Z.error?g(Z.error):Z.chatId&&Ca(`/team/${encodeURIComponent(u)}/chat/${Z.chatId}`)}async function M(k){window.confirm(`Delete routine "${k}"?`)&&await fetch(`/api/team/${encodeURIComponent(u)}/routines/${encodeURIComponent(k)}`,{method:"DELETE"}).catch(()=>{})}return c.jsxs("section",{className:"panel",children:[c.jsxs("div",{className:"panel-head",children:[c.jsx("span",{className:"microlabel",children:"routines — scheduled prompts"}),c.jsx("span",{className:"spacer"}),!r&&c.jsx("button",{className:"open-raw",onClick:()=>d({name:"",schedule:"0 9 * * 1-5",prompt:"",enabled:!0}),children:"+ new routine"})]}),o.length===0&&!r&&c.jsx("div",{className:"viewer-note",children:"none — a routine messages this agent on a schedule (cron, server local time) and each run opens a new session with the result."}),o.length>0&&c.jsx("div",{className:"m3-list",children:o.map(k=>c.jsxs("div",{className:"m3-row",children:[c.jsx("span",{className:"m3-ico",children:"◷"}),c.jsxs("span",{className:"m3-body",children:[c.jsxs("span",{className:"m3-head",children:[k.name,k.lastError&&c.jsx("span",{className:"chip stale",title:k.lastError,children:"error"})]}),c.jsxs("span",{className:"m3-sub",children:[c.jsx("code",{children:k.schedule}),k.enabled?k.nextRunAt?` · next ${ti(k.nextRunAt)}`:"":" · paused"," · ",k.lastChatId?c.jsxs(Ye,{href:`/team/${encodeURIComponent(u)}/chat/${k.lastChatId}`,children:["last run ",ti(k.lastRunAt)]}):"never ran"]})]}),c.jsx("button",{className:"open-raw",disabled:y===k.id,onClick:()=>z(k.id),children:y===k.id?"starting…":"▶ run"}),c.jsx("button",{className:"open-raw",onClick:()=>d({id:k.id,name:k.name,schedule:k.schedule,prompt:k.prompt,enabled:k.enabled}),children:"edit"}),c.jsx("button",{className:"open-raw",onClick:()=>{M(k.id)},children:"delete"}),c.jsxs("label",{className:"m3-switch",title:k.enabled?"enabled — click to pause":"paused — click to enable",children:[c.jsx("input",{type:"checkbox",checked:k.enabled,onChange:()=>{v({id:k.id,name:k.name,schedule:k.schedule,prompt:k.prompt,enabled:!k.enabled})}}),c.jsx("span",{className:"m3-switch-track"})]})]},k.id))}),r&&c.jsxs("div",{className:"team-form",children:[c.jsxs("div",{className:"team-form-row",children:[c.jsxs("label",{className:"team-field",style:{flex:1},children:["name",c.jsx("input",{value:r.name,placeholder:"e.g. Morning report",onChange:k=>d({...r,name:k.target.value})})]}),c.jsxs("label",{className:"team-field",style:{width:200},children:["schedule (cron)",c.jsx("input",{value:r.schedule,placeholder:"0 9 * * 1-5",onChange:k=>d({...r,schedule:k.target.value})})]}),c.jsxs("label",{className:"team-field wf-checks",style:{width:90},children:["enabled",c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:r.enabled,onChange:k=>d({...r,enabled:k.target.checked})}),"on"]})]})]}),c.jsxs("label",{className:"team-field",children:["prompt — what to ask this agent on each run",c.jsx("textarea",{rows:5,value:r.prompt,placeholder:"Check ... and summarize what changed.",onChange:k=>d({...r,prompt:k.target.value})})]}),c.jsxs("div",{className:"team-form-row",children:[c.jsx("button",{className:"run-btn",disabled:!r.name.trim()||!r.prompt.trim(),onClick:async()=>{await v(r)&&d(null)},children:r.id?"save routine":"create routine"}),c.jsx("button",{className:"open-raw",onClick:()=>(d(null),g("")),children:"cancel"})]})]}),h&&c.jsxs("div",{className:"msg error",children:["✕ ",h]})]})}function Dm({slug:u}){const[s,o]=G.useState(u?null:te()),[r,d]=G.useState(""),[h,g]=G.useState(!1),N=bt("/api/workflows",!1)?.workflows??[],z=bt("/api/knowledge",!1)?.bundles??[],k=bt("/api/skills",!1)?.skills??[];G.useEffect(()=>{u&&fetch(`/api/team/${encodeURIComponent(u)}`).then(R=>R.ok?R.json():Promise.reject()).then(R=>o({name:R.name,emoji:R.emoji,description:R.description??"",harness:R.harness,model:R.model??"",effort:R.effort??"",system:R.system,workflows:R.workflows,knowledge:R.knowledge??[],skillsAll:R.skills===void 0,skills:R.skills??[]})).catch(()=>d("agent not found"))},[u]);function te(){return{name:"",emoji:"🤖",description:"",harness:"claude",model:"",effort:"",system:"",workflows:[],knowledge:[],skillsAll:!0,skills:[]}}async function Z(){if(!s)return;g(!0),d("");const Te=await(await fetch(u?`/api/team/${encodeURIComponent(u)}`:"/api/team",{method:u?"PUT":"POST",headers:{"content-type":"application/json"},body:JSON.stringify({...s,skills:s.skillsAll?void 0:s.skills})})).json();g(!1),Te.error?d(Te.error):Ca(`/team/${encodeURIComponent(Te.slug)}`)}async function ne(){!u||!window.confirm(`Delete agent "${u}" and its definition folder?`)||(await fetch(`/api/team/${encodeURIComponent(u)}`,{method:"DELETE"}).catch(()=>{}),Ca("/team"))}if(!s)return c.jsx("div",{className:"empty",children:r||"loading…"});const W=R=>o({...s,...R});return c.jsxs("div",{className:"new-chat",children:[c.jsx("div",{className:"page-head",children:c.jsx("h1",{children:u?`edit ${u}`:"new agent"})}),c.jsx("section",{className:"panel new-chat-panel",children:c.jsxs("div",{className:"team-form",children:[c.jsxs("div",{className:"team-form-row",children:[c.jsxs("label",{className:"team-field",style:{flex:1},children:["name",c.jsx("input",{value:s.name,placeholder:"e.g. Max",onChange:R=>W({name:R.target.value})})]}),c.jsxs("label",{className:"team-field",style:{width:90},children:["emoji",c.jsx("input",{value:s.emoji,onChange:R=>W({emoji:R.target.value})})]})]}),c.jsx("div",{className:"emoji-pick",children:S0.map(R=>c.jsx("button",{type:"button",className:s.emoji===R?"active":"",onClick:()=>W({emoji:R}),children:R},R))}),c.jsxs("label",{className:"team-field",children:["description",c.jsx("input",{value:s.description,placeholder:"one line: what this agent is for",onChange:R=>W({description:R.target.value})})]}),c.jsxs("div",{className:"team-form-row",children:[c.jsxs("label",{className:"team-field",style:{width:140},children:["harness",c.jsxs("select",{value:s.harness,onChange:R=>W({harness:R.target.value}),children:[c.jsx("option",{value:"claude",children:"claude"}),c.jsx("option",{value:"codex",children:"codex"}),c.jsx("option",{value:"pi",children:"pi"})]})]}),c.jsxs("label",{className:"team-field",style:{flex:1},children:["model",c.jsx("input",{value:s.model,placeholder:"harness default — e.g. sonnet, gpt-5.6-sol",onChange:R=>W({model:R.target.value})})]}),c.jsxs("label",{className:"team-field",style:{width:140},children:["effort",c.jsx("select",{value:s.effort,onChange:R=>W({effort:R.target.value}),children:b0.map(R=>c.jsx("option",{value:R,children:R||"default"},R))})]})]}),c.jsxs("label",{className:"team-field",children:["system prompt — the agent's role",c.jsx("textarea",{rows:10,value:s.system,placeholder:"You are the ... for this project. Your job is ...",onChange:R=>W({system:R.target.value})})]}),c.jsxs("div",{className:"team-field",children:[c.jsx("span",{className:"team-field-label",children:"connected workflows — autoloaded into the agent's context; it can run them"}),c.jsxs("div",{className:"wf-checks",children:[N.map(R=>c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:s.workflows.includes(R.slug),onChange:Te=>W({workflows:Te.target.checked?[...s.workflows,R.slug]:s.workflows.filter(K=>K!==R.slug)})}),c.jsx("b",{children:R.slug}),R.description&&c.jsxs("span",{className:"opt-hint",children:[" — ",R.description]})]},R.slug)),N.length===0&&c.jsx("div",{className:"viewer-note",children:"no workflows in this project"})]})]}),c.jsxs("div",{className:"team-field",children:[c.jsx("span",{className:"team-field-label",children:"connected knowledge — OKF bundles the agent consults and maintains"}),c.jsxs("div",{className:"wf-checks",children:[z.map(R=>c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:s.knowledge.includes(R.name),onChange:Te=>W({knowledge:Te.target.checked?[...s.knowledge,R.name]:s.knowledge.filter(K=>K!==R.name)})}),c.jsx("b",{children:R.name}),c.jsxs("span",{className:"opt-hint",children:[" — ",R.concepts," concepts"]})]},R.name)),z.length===0&&c.jsx("div",{className:"viewer-note",children:"no knowledge bundles in this project"})]})]}),c.jsxs("div",{className:"team-field",children:[c.jsx("span",{className:"team-field-label",children:"connected skills — instruction packages from .claude/skills; invoked with /name in sessions"}),c.jsxs("div",{className:"wf-checks",children:[c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:s.skillsAll,onChange:R=>W({skillsAll:R.target.checked})}),c.jsx("b",{children:"all skills"}),c.jsx("span",{className:"opt-hint",children:" — every discovered skill, including future ones"})]}),!s.skillsAll&&k.map(R=>c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:s.skills.includes(R.name),onChange:Te=>W({skills:Te.target.checked?[...s.skills,R.name]:s.skills.filter(K=>K!==R.name)})}),c.jsxs("b",{children:["/",R.name]}),R.description&&c.jsxs("span",{className:"opt-hint",children:[" — ",R.description]})]},R.name)),!s.skillsAll&&k.length===0&&c.jsx("div",{className:"viewer-note",children:"no skills found (.claude/skills, project or user)"})]})]}),r&&c.jsxs("div",{className:"msg error",children:["✕ ",r]}),c.jsxs("div",{className:"team-form-row",children:[c.jsx("button",{className:"run-btn",disabled:!s.name.trim()||h,onClick:Z,children:h?"saving…":u?"save":"create"}),c.jsx("span",{className:"spacer"}),u&&c.jsx("button",{className:"stop-btn",onClick:ne,children:"delete agent"})]})]})})]})}function _0(){const s=cy().split("/").filter(Boolean),[o,r]=G.useState(""),[d,h]=G.useState("");G.useEffect(()=>{fetch("/api/meta").then(y=>y.json()).then(y=>{r(y.projectName??""),h(y.projectIcon??"")}).catch(()=>{})},[]),G.useEffect(()=>{if(document.title=o?`${o} — kraftwerk`:"kraftwerk inspector",!d)return;const y=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="0.9em" font-size="85">${d}</text></svg>`;let N=document.querySelector('link[rel="icon"]');N||(N=document.createElement("link"),N.rel="icon",document.head.appendChild(N)),N.href=`data:image/svg+xml,${encodeURIComponent(y)}`},[o,d]);let g;return s[0]==="runs"&&s[1]?g=c.jsx(Jv,{id:s[1]}):s[0]==="workflows"&&s[1]?g=c.jsx(c0,{slug:decodeURIComponent(s[1])}):s[0]==="workflows"?g=c.jsx(s0,{}):s[0]==="chats"?g=c.jsx(Gv,{id:s[1]}):s[0]==="team"?g=c.jsx(N0,{seg:s.slice(1)}):s[0]==="knowledge"?g=c.jsx(f0,{bundle:s[1]?decodeURIComponent(s[1]):void 0,conceptId:s.length>2?s.slice(2).map(decodeURIComponent).join("/"):void 0}):g=c.jsx(w0,{}),c.jsxs(c.Fragment,{children:[c.jsxs("header",{className:"topbar",children:[c.jsxs("a",{href:"#/",className:"wordmark",children:[c.jsx("span",{className:"lamp-block",children:c.jsx("span",{})}),c.jsx("b",{children:"kraftwerk"}),o&&c.jsx("span",{className:"env-name",title:"Project (kraftwerk.yml: name)",children:o})]}),c.jsxs("nav",{children:[c.jsx("a",{href:"#/team",children:"agents"}),c.jsx("a",{href:"#/knowledge",children:"context & knowledge"}),c.jsx("a",{href:"#/workflows",children:"workflows"}),c.jsx("a",{href:"#/",children:"workflow runs"}),c.jsx("a",{href:"#/chats",className:"nav-apart",children:"chat"})]}),c.jsx("span",{className:"spacer"}),c.jsx(k0,{})]}),c.jsx("main",{className:"shell",children:g})]})}function w0(){const[u,s]=G.useState(null);return G.useEffect(()=>{let o=!0;return fetch("/api/runs").then(r=>r.json()).then(r=>{o&&(r.runs.length>0?Ca(`/runs/${r.runs[0].id}`,{replace:!0}):s({outputDir:r.outputDir}))}).catch(()=>{}),()=>{o=!1}},[]),u?c.jsxs("div",{className:"empty",children:["No runs found in ",c.jsx("code",{children:u.outputDir}),". Start one with"," ",c.jsx("code",{children:"kraftwerk run <workflow> <request>"})," or from a workflow page."]}):c.jsx("div",{className:"empty",children:"loading…"})}function k0(){const[u,s]=G.useState(!1),[o,r]=G.useState(null),[d,h]=G.useState(null),[g,y]=G.useState("");G.useEffect(()=>{if(!u)return;fetch("/api/runs").then(z=>z.json()).then(r).catch(()=>{}),fetch("/api/workflows").then(z=>z.json()).then(h).catch(()=>{}),fetch("/api/meta").then(z=>z.json()).then(z=>y(z.version)).catch(()=>{});const v=z=>{z.target.closest(".info-wrap")||s(!1)};return window.addEventListener("mousedown",v),()=>window.removeEventListener("mousedown",v)},[u]);const N=o?.runs[0];return c.jsxs("span",{className:"info-wrap",children:[c.jsx("button",{className:"info-btn",title:"Project info","aria-label":"Project info",onClick:()=>s(v=>!v),children:c.jsx("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor","aria-hidden":!0,children:c.jsx("path",{d:"M11 7h2v2h-2V7Zm0 4h2v6h-2v-6Zm1-9a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"})})}),u&&c.jsxs("div",{className:"info-pop",children:[c.jsxs("div",{className:"info-row",children:[c.jsx("span",{className:"microlabel",children:"Workflows"}),c.jsx("span",{className:"info-v",children:d?`${d.workflows.length} discovered`:"…"}),c.jsx("code",{className:"info-path",title:d?.root,children:d?.root??""})]}),c.jsxs("div",{className:"info-row",children:[c.jsx("span",{className:"microlabel",children:"Runs"}),c.jsxs("span",{className:"info-v",children:[o?`${o.runs.length} total`:"…",N?` · latest ${N.status}`:""]}),c.jsx("code",{className:"info-path",title:o?.outputDir,children:o?.outputDir??""})]}),c.jsxs("div",{className:"info-row info-actions",children:[c.jsx("span",{className:"microlabel",children:"Theme"}),c.jsx(z0,{})]}),c.jsxs("div",{className:"info-row info-actions",children:[c.jsx("span",{className:"microlabel",children:"Version"}),c.jsx("span",{className:"info-v mono",children:g?`kraftwerk ${g}`:"…"})]})]})]})}function z0(){return c.jsx("button",{className:"theme-btn",onClick:()=>{const u=document.documentElement,s=u.dataset.theme==="light"?"dark":"light";u.dataset.theme=s;try{localStorage.setItem("kw-theme",s)}catch{}},children:"day / night"})}sy.createRoot(document.getElementById("root")).render(c.jsx(G.StrictMode,{children:c.jsx(_0,{})}));
|