claude-queue 1.3.1 → 1.3.2
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.
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&s(f)}).observe(document,{childList:!0,subtree:!0});function a(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(o){if(o.ep)return;o.ep=!0;const c=a(o);fetch(o.href,c)}})();function to(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var vc={exports:{}},sr={};var Up;function W1(){if(Up)return sr;Up=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function a(s,o,c){var f=null;if(c!==void 0&&(f=""+c),o.key!==void 0&&(f=""+o.key),"key"in o){c={};for(var m in o)m!=="key"&&(c[m]=o[m])}else c=o;return o=c.ref,{$$typeof:n,type:s,key:f,ref:o!==void 0?o:null,props:c}}return sr.Fragment=l,sr.jsx=a,sr.jsxs=a,sr}var Bp;function eb(){return Bp||(Bp=1,vc.exports=W1()),vc.exports}var h=eb(),Sc={exports:{}},ze={};var qp;function tb(){if(qp)return ze;qp=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function k(T){return T===null||typeof T!="object"?null:(T=v&&T[v]||T["@@iterator"],typeof T=="function"?T:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,M={};function j(T,V,S){this.props=T,this.context=V,this.refs=M,this.updater=S||z}j.prototype.isReactComponent={},j.prototype.setState=function(T,V){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,V,"setState")},j.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function q(){}q.prototype=j.prototype;function L(T,V,S){this.props=T,this.context=V,this.refs=M,this.updater=S||z}var ie=L.prototype=new q;ie.constructor=L,E(ie,j.prototype),ie.isPureReactComponent=!0;var ee=Array.isArray;function D(){}var P={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function ue(T,V,S){var Q=S.ref;return{$$typeof:n,type:T,key:V,ref:Q!==void 0?Q:null,props:S}}function R(T,V){return ue(T.type,V,T.props)}function G(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function K(T){var V={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(S){return V[S]})}var de=/\/+/g;function se(T,V){return typeof T=="object"&&T!==null&&T.key!=null?K(""+T.key):V.toString(36)}function W(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(D,D):(T.status="pending",T.then(function(V){T.status==="pending"&&(T.status="fulfilled",T.value=V)},function(V){T.status==="pending"&&(T.status="rejected",T.reason=V)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function _(T,V,S,Q,ne){var ae=typeof T;(ae==="undefined"||ae==="boolean")&&(T=null);var me=!1;if(T===null)me=!0;else switch(ae){case"bigint":case"string":case"number":me=!0;break;case"object":switch(T.$$typeof){case n:case l:me=!0;break;case x:return me=T._init,_(me(T._payload),V,S,Q,ne)}}if(me)return ne=ne(T),me=Q===""?"."+se(T,0):Q,ee(ne)?(S="",me!=null&&(S=me.replace(de,"$&/")+"/"),_(ne,V,S,"",function(dt){return dt})):ne!=null&&(G(ne)&&(ne=R(ne,S+(ne.key==null||T&&T.key===ne.key?"":(""+ne.key).replace(de,"$&/")+"/")+me)),V.push(ne)),1;me=0;var pe=Q===""?".":Q+":";if(ee(T))for(var we=0;we<T.length;we++)Q=T[we],ae=pe+se(Q,we),me+=_(Q,V,S,ae,ne);else if(we=k(T),typeof we=="function")for(T=we.call(T),we=0;!(Q=T.next()).done;)Q=Q.value,ae=pe+se(Q,we++),me+=_(Q,V,S,ae,ne);else if(ae==="object"){if(typeof T.then=="function")return _(W(T),V,S,Q,ne);throw V=String(T),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return me}function $(T,V,S){if(T==null)return T;var Q=[],ne=0;return _(T,Q,"","",function(ae){return V.call(S,ae,ne++)}),Q}function ce(T){if(T._status===-1){var V=T._result;V=V(),V.then(function(S){(T._status===0||T._status===-1)&&(T._status=1,T._result=S)},function(S){(T._status===0||T._status===-1)&&(T._status=2,T._result=S)}),T._status===-1&&(T._status=0,T._result=V)}if(T._status===1)return T._result.default;throw T._result}var Se=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},C={map:$,forEach:function(T,V,S){$(T,function(){V.apply(this,arguments)},S)},count:function(T){var V=0;return $(T,function(){V++}),V},toArray:function(T){return $(T,function(V){return V})||[]},only:function(T){if(!G(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return ze.Activity=g,ze.Children=C,ze.Component=j,ze.Fragment=a,ze.Profiler=o,ze.PureComponent=L,ze.StrictMode=s,ze.Suspense=y,ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,ze.__COMPILER_RUNTIME={__proto__:null,c:function(T){return P.H.useMemoCache(T)}},ze.cache=function(T){return function(){return T.apply(null,arguments)}},ze.cacheSignal=function(){return null},ze.cloneElement=function(T,V,S){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var Q=E({},T.props),ne=T.key;if(V!=null)for(ae in V.key!==void 0&&(ne=""+V.key),V)!te.call(V,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&V.ref===void 0||(Q[ae]=V[ae]);var ae=arguments.length-2;if(ae===1)Q.children=S;else if(1<ae){for(var me=Array(ae),pe=0;pe<ae;pe++)me[pe]=arguments[pe+2];Q.children=me}return ue(T.type,ne,Q)},ze.createContext=function(T){return T={$$typeof:f,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:c,_context:T},T},ze.createElement=function(T,V,S){var Q,ne={},ae=null;if(V!=null)for(Q in V.key!==void 0&&(ae=""+V.key),V)te.call(V,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(ne[Q]=V[Q]);var me=arguments.length-2;if(me===1)ne.children=S;else if(1<me){for(var pe=Array(me),we=0;we<me;we++)pe[we]=arguments[we+2];ne.children=pe}if(T&&T.defaultProps)for(Q in me=T.defaultProps,me)ne[Q]===void 0&&(ne[Q]=me[Q]);return ue(T,ae,ne)},ze.createRef=function(){return{current:null}},ze.forwardRef=function(T){return{$$typeof:m,render:T}},ze.isValidElement=G,ze.lazy=function(T){return{$$typeof:x,_payload:{_status:-1,_result:T},_init:ce}},ze.memo=function(T,V){return{$$typeof:p,type:T,compare:V===void 0?null:V}},ze.startTransition=function(T){var V=P.T,S={};P.T=S;try{var Q=T(),ne=P.S;ne!==null&&ne(S,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(D,Se)}catch(ae){Se(ae)}finally{V!==null&&S.types!==null&&(V.types=S.types),P.T=V}},ze.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},ze.use=function(T){return P.H.use(T)},ze.useActionState=function(T,V,S){return P.H.useActionState(T,V,S)},ze.useCallback=function(T,V){return P.H.useCallback(T,V)},ze.useContext=function(T){return P.H.useContext(T)},ze.useDebugValue=function(){},ze.useDeferredValue=function(T,V){return P.H.useDeferredValue(T,V)},ze.useEffect=function(T,V){return P.H.useEffect(T,V)},ze.useEffectEvent=function(T){return P.H.useEffectEvent(T)},ze.useId=function(){return P.H.useId()},ze.useImperativeHandle=function(T,V,S){return P.H.useImperativeHandle(T,V,S)},ze.useInsertionEffect=function(T,V){return P.H.useInsertionEffect(T,V)},ze.useLayoutEffect=function(T,V){return P.H.useLayoutEffect(T,V)},ze.useMemo=function(T,V){return P.H.useMemo(T,V)},ze.useOptimistic=function(T,V){return P.H.useOptimistic(T,V)},ze.useReducer=function(T,V,S){return P.H.useReducer(T,V,S)},ze.useRef=function(T){return P.H.useRef(T)},ze.useState=function(T){return P.H.useState(T)},ze.useSyncExternalStore=function(T,V,S){return P.H.useSyncExternalStore(T,V,S)},ze.useTransition=function(){return P.H.useTransition()},ze.version="19.2.3",ze}var Hp;function df(){return Hp||(Hp=1,Sc.exports=tb()),Sc.exports}var Y=df();const oe=to(Y);var kc={exports:{}},or={},wc={exports:{}},zc={};var Qp;function nb(){return Qp||(Qp=1,(function(n){function l(_,$){var ce=_.length;_.push($);e:for(;0<ce;){var Se=ce-1>>>1,C=_[Se];if(0<o(C,$))_[Se]=$,_[ce]=C,ce=Se;else break e}}function a(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var $=_[0],ce=_.pop();if(ce!==$){_[0]=ce;e:for(var Se=0,C=_.length,T=C>>>1;Se<T;){var V=2*(Se+1)-1,S=_[V],Q=V+1,ne=_[Q];if(0>o(S,ce))Q<C&&0>o(ne,S)?(_[Se]=ne,_[Q]=ce,Se=Q):(_[Se]=S,_[V]=ce,Se=V);else if(Q<C&&0>o(ne,ce))_[Se]=ne,_[Q]=ce,Se=Q;else break e}}return $}function o(_,$){var ce=_.sortIndex-$.sortIndex;return ce!==0?ce:_.id-$.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,m=f.now();n.unstable_now=function(){return f.now()-m}}var y=[],p=[],x=1,g=null,v=3,k=!1,z=!1,E=!1,M=!1,j=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function ie(_){for(var $=a(p);$!==null;){if($.callback===null)s(p);else if($.startTime<=_)s(p),$.sortIndex=$.expirationTime,l(y,$);else break;$=a(p)}}function ee(_){if(E=!1,ie(_),!z)if(a(y)!==null)z=!0,D||(D=!0,K());else{var $=a(p);$!==null&&W(ee,$.startTime-_)}}var D=!1,P=-1,te=5,ue=-1;function R(){return M?!0:!(n.unstable_now()-ue<te)}function G(){if(M=!1,D){var _=n.unstable_now();ue=_;var $=!0;try{e:{z=!1,E&&(E=!1,q(P),P=-1),k=!0;var ce=v;try{t:{for(ie(_),g=a(y);g!==null&&!(g.expirationTime>_&&R());){var Se=g.callback;if(typeof Se=="function"){g.callback=null,v=g.priorityLevel;var C=Se(g.expirationTime<=_);if(_=n.unstable_now(),typeof C=="function"){g.callback=C,ie(_),$=!0;break t}g===a(y)&&s(y),ie(_)}else s(y);g=a(y)}if(g!==null)$=!0;else{var T=a(p);T!==null&&W(ee,T.startTime-_),$=!1}}break e}finally{g=null,v=ce,k=!1}$=void 0}}finally{$?K():D=!1}}}var K;if(typeof L=="function")K=function(){L(G)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,se=de.port2;de.port1.onmessage=G,K=function(){se.postMessage(null)}}else K=function(){j(G,0)};function W(_,$){P=j(function(){_(n.unstable_now())},$)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(_){_.callback=null},n.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<_?Math.floor(1e3/_):5},n.unstable_getCurrentPriorityLevel=function(){return v},n.unstable_next=function(_){switch(v){case 1:case 2:case 3:var $=3;break;default:$=v}var ce=v;v=$;try{return _()}finally{v=ce}},n.unstable_requestPaint=function(){M=!0},n.unstable_runWithPriority=function(_,$){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var ce=v;v=_;try{return $()}finally{v=ce}},n.unstable_scheduleCallback=function(_,$,ce){var Se=n.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?Se+ce:Se):ce=Se,_){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=ce+C,_={id:x++,callback:$,priorityLevel:_,startTime:ce,expirationTime:C,sortIndex:-1},ce>Se?(_.sortIndex=ce,l(p,_),a(y)===null&&_===a(p)&&(E?(q(P),P=-1):E=!0,W(ee,ce-Se))):(_.sortIndex=C,l(y,_),z||k||(z=!0,D||(D=!0,K()))),_},n.unstable_shouldYield=R,n.unstable_wrapCallback=function(_){var $=v;return function(){var ce=v;v=$;try{return _.apply(this,arguments)}finally{v=ce}}}})(zc)),zc}var Yp;function ib(){return Yp||(Yp=1,wc.exports=nb()),wc.exports}var jc={exports:{}},Rt={};var Fp;function lb(){if(Fp)return Rt;Fp=1;var n=df();function l(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var s={d:{f:a,r:function(){throw Error(l(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(y,p,x){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:y,containerInfo:p,implementation:x}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Rt.createPortal=function(y,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return c(y,p,null,x)},Rt.flushSync=function(y){var p=f.T,x=s.p;try{if(f.T=null,s.p=2,y)return y()}finally{f.T=p,s.p=x,s.d.f()}},Rt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(y,p))},Rt.prefetchDNS=function(y){typeof y=="string"&&s.d.D(y)},Rt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var x=p.as,g=m(x,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,k=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?s.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:k}):x==="script"&&s.d.X(y,{crossOrigin:g,integrity:v,fetchPriority:k,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Rt.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=m(p.as,p.crossOrigin);s.d.M(y,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(y)},Rt.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,g=m(x,p.crossOrigin);s.d.L(y,x,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Rt.preloadModule=function(y,p){if(typeof y=="string")if(p){var x=m(p.as,p.crossOrigin);s.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(y)},Rt.requestFormReset=function(y){s.d.r(y)},Rt.unstable_batchedUpdates=function(y,p){return y(p)},Rt.useFormState=function(y,p,x){return f.H.useFormState(y,p,x)},Rt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Rt.version="19.2.3",Rt}var Vp;function rg(){if(Vp)return jc.exports;Vp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),jc.exports=lb(),jc.exports}var Gp;function ab(){if(Gp)return or;Gp=1;var n=ib(),l=df(),a=rg();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function f(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 m(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 y(e){if(c(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(s(188));return t!==e?null:e}for(var i=e,r=t;;){var u=i.return;if(u===null)break;var d=u.alternate;if(d===null){if(r=u.return,r!==null){i=r;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===i)return y(u),e;if(d===r)return y(u),t;d=d.sibling}throw Error(s(188))}if(i.return!==r.return)i=u,r=d;else{for(var b=!1,w=u.child;w;){if(w===i){b=!0,i=u,r=d;break}if(w===r){b=!0,r=u,i=d;break}w=w.sibling}if(!b){for(w=d.child;w;){if(w===i){b=!0,i=d,r=u;break}if(w===r){b=!0,r=d,i=u;break}w=w.sibling}if(!b)throw Error(s(189))}}if(i.alternate!==r)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),L=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),G=Symbol.iterator;function K(e){return e===null||typeof e!="object"?null:(e=G&&e[G]||e["@@iterator"],typeof e=="function"?e:null)}var de=Symbol.for("react.client.reference");function se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case j:return"Profiler";case M:return"StrictMode";case ee:return"Suspense";case D:return"SuspenseList";case ue:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case z:return"Portal";case L:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case ie:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return t=e.displayName||null,t!==null?t:se(e.type)||"Memo";case te:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}var W=Array.isArray,_=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},Se=[],C=-1;function T(e){return{current:e}}function V(e){0>C||(e.current=Se[C],Se[C]=null,C--)}function S(e,t){C++,Se[C]=e.current,e.current=t}var Q=T(null),ne=T(null),ae=T(null),me=T(null);function pe(e,t){switch(S(ae,t),S(ne,e),S(Q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?rp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=rp(t),e=sp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(Q),S(Q,e)}function we(){V(Q),V(ne),V(ae)}function dt(e){e.memoizedState!==null&&S(me,e);var t=Q.current,i=sp(t,e.type);t!==i&&(S(ne,e),S(Q,i))}function St(e){ne.current===e&&(V(Q),V(ne)),me.current===e&&(V(me),ir._currentValue=ce)}var Xe,gt;function ht(e){if(Xe===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);Xe=t&&t[1]||"",gt=-1<i.stack.indexOf(`
|
|
1
|
+
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&s(f)}).observe(document,{childList:!0,subtree:!0});function a(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(o){if(o.ep)return;o.ep=!0;const c=a(o);fetch(o.href,c)}})();function to(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Sc={exports:{}},sr={};var Bp;function W1(){if(Bp)return sr;Bp=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function a(s,o,c){var f=null;if(c!==void 0&&(f=""+c),o.key!==void 0&&(f=""+o.key),"key"in o){c={};for(var m in o)m!=="key"&&(c[m]=o[m])}else c=o;return o=c.ref,{$$typeof:n,type:s,key:f,ref:o!==void 0?o:null,props:c}}return sr.Fragment=l,sr.jsx=a,sr.jsxs=a,sr}var qp;function eb(){return qp||(qp=1,Sc.exports=W1()),Sc.exports}var h=eb(),kc={exports:{}},ze={};var Hp;function tb(){if(Hp)return ze;Hp=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),S=Symbol.iterator;function k(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,M={};function j(T,G,v){this.props=T,this.context=G,this.refs=M,this.updater=v||z}j.prototype.isReactComponent={},j.prototype.setState=function(T,G){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,G,"setState")},j.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function U(){}U.prototype=j.prototype;function L(T,G,v){this.props=T,this.context=G,this.refs=M,this.updater=v||z}var ne=L.prototype=new U;ne.constructor=L,E(ne,j.prototype),ne.isPureReactComponent=!0;var ee=Array.isArray;function D(){}var P={H:null,A:null,T:null,S:null},le=Object.prototype.hasOwnProperty;function ue(T,G,v){var Y=v.ref;return{$$typeof:n,type:T,key:G,ref:Y!==void 0?Y:null,props:v}}function R(T,G){return ue(T.type,G,T.props)}function V(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function X(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(v){return G[v]})}var fe=/\/+/g;function re(T,G){return typeof T=="object"&&T!==null&&T.key!=null?X(""+T.key):G.toString(36)}function W(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(D,D):(T.status="pending",T.then(function(G){T.status==="pending"&&(T.status="fulfilled",T.value=G)},function(G){T.status==="pending"&&(T.status="rejected",T.reason=G)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function _(T,G,v,Y,te){var ae=typeof T;(ae==="undefined"||ae==="boolean")&&(T=null);var me=!1;if(T===null)me=!0;else switch(ae){case"bigint":case"string":case"number":me=!0;break;case"object":switch(T.$$typeof){case n:case l:me=!0;break;case x:return me=T._init,_(me(T._payload),G,v,Y,te)}}if(me)return te=te(T),me=Y===""?"."+re(T,0):Y,ee(te)?(v="",me!=null&&(v=me.replace(fe,"$&/")+"/"),_(te,G,v,"",function(dt){return dt})):te!=null&&(V(te)&&(te=R(te,v+(te.key==null||T&&T.key===te.key?"":(""+te.key).replace(fe,"$&/")+"/")+me)),G.push(te)),1;me=0;var pe=Y===""?".":Y+":";if(ee(T))for(var we=0;we<T.length;we++)Y=T[we],ae=pe+re(Y,we),me+=_(Y,G,v,ae,te);else if(we=k(T),typeof we=="function")for(T=we.call(T),we=0;!(Y=T.next()).done;)Y=Y.value,ae=pe+re(Y,we++),me+=_(Y,G,v,ae,te);else if(ae==="object"){if(typeof T.then=="function")return _(W(T),G,v,Y,te);throw G=String(T),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return me}function $(T,G,v){if(T==null)return T;var Y=[],te=0;return _(T,Y,"","",function(ae){return G.call(v,ae,te++)}),Y}function ce(T){if(T._status===-1){var G=T._result;G=G(),G.then(function(v){(T._status===0||T._status===-1)&&(T._status=1,T._result=v)},function(v){(T._status===0||T._status===-1)&&(T._status=2,T._result=v)}),T._status===-1&&(T._status=0,T._result=G)}if(T._status===1)return T._result.default;throw T._result}var Se=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},C={map:$,forEach:function(T,G,v){$(T,function(){G.apply(this,arguments)},v)},count:function(T){var G=0;return $(T,function(){G++}),G},toArray:function(T){return $(T,function(G){return G})||[]},only:function(T){if(!V(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return ze.Activity=g,ze.Children=C,ze.Component=j,ze.Fragment=a,ze.Profiler=o,ze.PureComponent=L,ze.StrictMode=s,ze.Suspense=y,ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,ze.__COMPILER_RUNTIME={__proto__:null,c:function(T){return P.H.useMemoCache(T)}},ze.cache=function(T){return function(){return T.apply(null,arguments)}},ze.cacheSignal=function(){return null},ze.cloneElement=function(T,G,v){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var Y=E({},T.props),te=T.key;if(G!=null)for(ae in G.key!==void 0&&(te=""+G.key),G)!le.call(G,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&G.ref===void 0||(Y[ae]=G[ae]);var ae=arguments.length-2;if(ae===1)Y.children=v;else if(1<ae){for(var me=Array(ae),pe=0;pe<ae;pe++)me[pe]=arguments[pe+2];Y.children=me}return ue(T.type,te,Y)},ze.createContext=function(T){return T={$$typeof:f,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:c,_context:T},T},ze.createElement=function(T,G,v){var Y,te={},ae=null;if(G!=null)for(Y in G.key!==void 0&&(ae=""+G.key),G)le.call(G,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(te[Y]=G[Y]);var me=arguments.length-2;if(me===1)te.children=v;else if(1<me){for(var pe=Array(me),we=0;we<me;we++)pe[we]=arguments[we+2];te.children=pe}if(T&&T.defaultProps)for(Y in me=T.defaultProps,me)te[Y]===void 0&&(te[Y]=me[Y]);return ue(T,ae,te)},ze.createRef=function(){return{current:null}},ze.forwardRef=function(T){return{$$typeof:m,render:T}},ze.isValidElement=V,ze.lazy=function(T){return{$$typeof:x,_payload:{_status:-1,_result:T},_init:ce}},ze.memo=function(T,G){return{$$typeof:p,type:T,compare:G===void 0?null:G}},ze.startTransition=function(T){var G=P.T,v={};P.T=v;try{var Y=T(),te=P.S;te!==null&&te(v,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(D,Se)}catch(ae){Se(ae)}finally{G!==null&&v.types!==null&&(G.types=v.types),P.T=G}},ze.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},ze.use=function(T){return P.H.use(T)},ze.useActionState=function(T,G,v){return P.H.useActionState(T,G,v)},ze.useCallback=function(T,G){return P.H.useCallback(T,G)},ze.useContext=function(T){return P.H.useContext(T)},ze.useDebugValue=function(){},ze.useDeferredValue=function(T,G){return P.H.useDeferredValue(T,G)},ze.useEffect=function(T,G){return P.H.useEffect(T,G)},ze.useEffectEvent=function(T){return P.H.useEffectEvent(T)},ze.useId=function(){return P.H.useId()},ze.useImperativeHandle=function(T,G,v){return P.H.useImperativeHandle(T,G,v)},ze.useInsertionEffect=function(T,G){return P.H.useInsertionEffect(T,G)},ze.useLayoutEffect=function(T,G){return P.H.useLayoutEffect(T,G)},ze.useMemo=function(T,G){return P.H.useMemo(T,G)},ze.useOptimistic=function(T,G){return P.H.useOptimistic(T,G)},ze.useReducer=function(T,G,v){return P.H.useReducer(T,G,v)},ze.useRef=function(T){return P.H.useRef(T)},ze.useState=function(T){return P.H.useState(T)},ze.useSyncExternalStore=function(T,G,v){return P.H.useSyncExternalStore(T,G,v)},ze.useTransition=function(){return P.H.useTransition()},ze.version="19.2.3",ze}var Qp;function hf(){return Qp||(Qp=1,kc.exports=tb()),kc.exports}var Q=hf();const oe=to(Q);var wc={exports:{}},or={},zc={exports:{}},jc={};var Yp;function nb(){return Yp||(Yp=1,(function(n){function l(_,$){var ce=_.length;_.push($);e:for(;0<ce;){var Se=ce-1>>>1,C=_[Se];if(0<o(C,$))_[Se]=$,_[ce]=C,ce=Se;else break e}}function a(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var $=_[0],ce=_.pop();if(ce!==$){_[0]=ce;e:for(var Se=0,C=_.length,T=C>>>1;Se<T;){var G=2*(Se+1)-1,v=_[G],Y=G+1,te=_[Y];if(0>o(v,ce))Y<C&&0>o(te,v)?(_[Se]=te,_[Y]=ce,Se=Y):(_[Se]=v,_[G]=ce,Se=G);else if(Y<C&&0>o(te,ce))_[Se]=te,_[Y]=ce,Se=Y;else break e}}return $}function o(_,$){var ce=_.sortIndex-$.sortIndex;return ce!==0?ce:_.id-$.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,m=f.now();n.unstable_now=function(){return f.now()-m}}var y=[],p=[],x=1,g=null,S=3,k=!1,z=!1,E=!1,M=!1,j=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function ne(_){for(var $=a(p);$!==null;){if($.callback===null)s(p);else if($.startTime<=_)s(p),$.sortIndex=$.expirationTime,l(y,$);else break;$=a(p)}}function ee(_){if(E=!1,ne(_),!z)if(a(y)!==null)z=!0,D||(D=!0,X());else{var $=a(p);$!==null&&W(ee,$.startTime-_)}}var D=!1,P=-1,le=5,ue=-1;function R(){return M?!0:!(n.unstable_now()-ue<le)}function V(){if(M=!1,D){var _=n.unstable_now();ue=_;var $=!0;try{e:{z=!1,E&&(E=!1,U(P),P=-1),k=!0;var ce=S;try{t:{for(ne(_),g=a(y);g!==null&&!(g.expirationTime>_&&R());){var Se=g.callback;if(typeof Se=="function"){g.callback=null,S=g.priorityLevel;var C=Se(g.expirationTime<=_);if(_=n.unstable_now(),typeof C=="function"){g.callback=C,ne(_),$=!0;break t}g===a(y)&&s(y),ne(_)}else s(y);g=a(y)}if(g!==null)$=!0;else{var T=a(p);T!==null&&W(ee,T.startTime-_),$=!1}}break e}finally{g=null,S=ce,k=!1}$=void 0}}finally{$?X():D=!1}}}var X;if(typeof L=="function")X=function(){L(V)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,re=fe.port2;fe.port1.onmessage=V,X=function(){re.postMessage(null)}}else X=function(){j(V,0)};function W(_,$){P=j(function(){_(n.unstable_now())},$)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(_){_.callback=null},n.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):le=0<_?Math.floor(1e3/_):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(_){switch(S){case 1:case 2:case 3:var $=3;break;default:$=S}var ce=S;S=$;try{return _()}finally{S=ce}},n.unstable_requestPaint=function(){M=!0},n.unstable_runWithPriority=function(_,$){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var ce=S;S=_;try{return $()}finally{S=ce}},n.unstable_scheduleCallback=function(_,$,ce){var Se=n.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?Se+ce:Se):ce=Se,_){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=ce+C,_={id:x++,callback:$,priorityLevel:_,startTime:ce,expirationTime:C,sortIndex:-1},ce>Se?(_.sortIndex=ce,l(p,_),a(y)===null&&_===a(p)&&(E?(U(P),P=-1):E=!0,W(ee,ce-Se))):(_.sortIndex=C,l(y,_),z||k||(z=!0,D||(D=!0,X()))),_},n.unstable_shouldYield=R,n.unstable_wrapCallback=function(_){var $=S;return function(){var ce=S;S=$;try{return _.apply(this,arguments)}finally{S=ce}}}})(jc)),jc}var Fp;function ib(){return Fp||(Fp=1,zc.exports=nb()),zc.exports}var Cc={exports:{}},Rt={};var Vp;function lb(){if(Vp)return Rt;Vp=1;var n=hf();function l(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var s={d:{f:a,r:function(){throw Error(l(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(y,p,x){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:y,containerInfo:p,implementation:x}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Rt.createPortal=function(y,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return c(y,p,null,x)},Rt.flushSync=function(y){var p=f.T,x=s.p;try{if(f.T=null,s.p=2,y)return y()}finally{f.T=p,s.p=x,s.d.f()}},Rt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(y,p))},Rt.prefetchDNS=function(y){typeof y=="string"&&s.d.D(y)},Rt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var x=p.as,g=m(x,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,k=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?s.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:S,fetchPriority:k}):x==="script"&&s.d.X(y,{crossOrigin:g,integrity:S,fetchPriority:k,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Rt.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=m(p.as,p.crossOrigin);s.d.M(y,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(y)},Rt.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,g=m(x,p.crossOrigin);s.d.L(y,x,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Rt.preloadModule=function(y,p){if(typeof y=="string")if(p){var x=m(p.as,p.crossOrigin);s.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(y)},Rt.requestFormReset=function(y){s.d.r(y)},Rt.unstable_batchedUpdates=function(y,p){return y(p)},Rt.useFormState=function(y,p,x){return f.H.useFormState(y,p,x)},Rt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Rt.version="19.2.3",Rt}var Gp;function sg(){if(Gp)return Cc.exports;Gp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Cc.exports=lb(),Cc.exports}var Xp;function ab(){if(Xp)return or;Xp=1;var n=ib(),l=hf(),a=sg();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function f(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 m(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 y(e){if(c(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(s(188));return t!==e?null:e}for(var i=e,r=t;;){var u=i.return;if(u===null)break;var d=u.alternate;if(d===null){if(r=u.return,r!==null){i=r;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===i)return y(u),e;if(d===r)return y(u),t;d=d.sibling}throw Error(s(188))}if(i.return!==r.return)i=u,r=d;else{for(var b=!1,w=u.child;w;){if(w===i){b=!0,i=u,r=d;break}if(w===r){b=!0,r=u,i=d;break}w=w.sibling}if(!b){for(w=d.child;w;){if(w===i){b=!0,i=d,r=u;break}if(w===r){b=!0,r=d,i=u;break}w=w.sibling}if(!b)throw Error(s(189))}}if(i.alternate!==r)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,S=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),L=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=V&&e[V]||e["@@iterator"],typeof e=="function"?e:null)}var fe=Symbol.for("react.client.reference");function re(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case j:return"Profiler";case M:return"StrictMode";case ee:return"Suspense";case D:return"SuspenseList";case ue:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case z:return"Portal";case L:return e.displayName||"Context";case U:return(e._context.displayName||"Context")+".Consumer";case ne:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return t=e.displayName||null,t!==null?t:re(e.type)||"Memo";case le:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var W=Array.isArray,_=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},Se=[],C=-1;function T(e){return{current:e}}function G(e){0>C||(e.current=Se[C],Se[C]=null,C--)}function v(e,t){C++,Se[C]=e.current,e.current=t}var Y=T(null),te=T(null),ae=T(null),me=T(null);function pe(e,t){switch(v(ae,t),v(te,e),v(Y,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?sp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=sp(t),e=op(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(Y),v(Y,e)}function we(){G(Y),G(te),G(ae)}function dt(e){e.memoizedState!==null&&v(me,e);var t=Y.current,i=op(t,e.type);t!==i&&(v(te,e),v(Y,i))}function St(e){te.current===e&&(G(Y),G(te)),me.current===e&&(G(me),ir._currentValue=ce)}var Xe,gt;function ht(e){if(Xe===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);Xe=t&&t[1]||"",gt=-1<i.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
3
|
`+Xe+e+gt}var fn=!1;function Nn(e,t){if(!e||fn)return"";fn=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(F){var H=F}Reflect.construct(e,[],J)}else{try{J.call()}catch(F){H=F}e.call(J.prototype)}}else{try{throw Error()}catch(F){H=F}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(F){if(F&&H&&typeof F.stack=="string")return[F.stack,H.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=r.DetermineComponentFrameRoot(),b=d[0],w=d[1];if(b&&w){var N=b.split(`
|
|
4
|
-
`),
|
|
5
|
-
`);for(u=r=0;r<N.length&&!N[r].includes("DetermineComponentFrameRoot");)r++;for(;u<
|
|
6
|
-
`+N[r].replace(" at new "," at ");return e.displayName&&
|
|
4
|
+
`),q=w.split(`
|
|
5
|
+
`);for(u=r=0;r<N.length&&!N[r].includes("DetermineComponentFrameRoot");)r++;for(;u<q.length&&!q[u].includes("DetermineComponentFrameRoot");)u++;if(r===N.length||u===q.length)for(r=N.length-1,u=q.length-1;1<=r&&0<=u&&N[r]!==q[u];)u--;for(;1<=r&&0<=u;r--,u--)if(N[r]!==q[u]){if(r!==1||u!==1)do if(r--,u--,0>u||N[r]!==q[u]){var I=`
|
|
6
|
+
`+N[r].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=r&&0<=u);break}}}finally{fn=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?ht(i):""}function On(e,t){switch(e.tag){case 26:case 27:case 5:return ht(e.type);case 16:return ht("Lazy");case 13:return e.child!==t&&t!==null?ht("Suspense Fallback"):ht("Suspense");case 19:return ht("SuspenseList");case 0:case 15:return Nn(e.type,!1);case 11:return Nn(e.type.render,!1);case 1:return Nn(e.type,!0);case 31:return ht("Activity");default:return""}}function Fi(e){try{var t="",i=null;do t+=On(e,i),i=e,e=e.return;while(e);return t}catch(r){return`
|
|
7
7
|
Error generating stack: `+r.message+`
|
|
8
|
-
`+r.stack}}var Dt=Object.prototype.hasOwnProperty,hi=n.unstable_scheduleCallback,Vi=n.unstable_cancelCallback,kt=n.unstable_shouldYield,Rn=n.unstable_requestPaint,wt=n.unstable_now,ya=n.unstable_getCurrentPriorityLevel,I=n.unstable_ImmediatePriority,re=n.unstable_UserBlockingPriority,be=n.unstable_NormalPriority,Ce=n.unstable_LowPriority,Ee=n.unstable_IdlePriority,_t=n.log,Mt=n.unstable_setDisableYieldValue,zt=null,lt=null;function jt(e){if(typeof _t=="function"&&Mt(e),lt&&typeof lt.setStrictMode=="function")try{lt.setStrictMode(zt,e)}catch{}}var He=Math.clz32?Math.clz32:Un,Ln=Math.log,Bt=Math.LN2;function Un(e){return e>>>=0,e===0?32:31-(Ln(e)/Bt|0)|0}var bl=256,vl=262144,Gi=4194304;function Bn(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 ke(e,t,i){var r=e.pendingLanes;if(r===0)return 0;var u=0,d=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var w=r&134217727;return w!==0?(r=w&~d,r!==0?u=Bn(r):(b&=w,b!==0?u=Bn(b):i||(i=w&~e,i!==0&&(u=Bn(i))))):(w=r&~d,w!==0?u=Bn(w):b!==0?u=Bn(b):i||(i=r&~e,i!==0&&(u=Bn(i)))),u===0?0:t!==0&&t!==u&&(t&d)===0&&(d=u&-u,i=t&-t,d>=i||d===32&&(i&4194048)!==0)?t:u}function Je(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function yt(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 Ot(){var e=Gi;return Gi<<=1,(Gi&62914560)===0&&(Gi=4194304),e}function mi(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function et(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Yt(e,t,i,r,u,d){var b=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var w=e.entanglements,N=e.expirationTimes,B=e.hiddenUpdates;for(i=b&~i;0<i;){var X=31-He(i),J=1<<X;w[X]=0,N[X]=-1;var H=B[X];if(H!==null)for(B[X]=null,X=0;X<H.length;X++){var F=H[X];F!==null&&(F.lane&=-536870913)}i&=~J}r!==0&&Xi(e,r,0),d!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=d&~(b&~t))}function Xi(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-He(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|i&261930}function Ft(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var r=31-He(i),u=1<<r;u&t|e[r]&t&&(e[r]|=t),i&=~u}}function Vt(e,t){var i=t&-t;return i=(i&42)!==0?1:Sl(i),(i&(e.suspendedLanes|t))!==0?0:i}function Sl(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 Tn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function uo(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:Ap(e.type))}function Xf(e,t){var i=$.p;try{return $.p=e,t()}finally{$.p=i}}var pi=Math.random().toString(36).slice(2),Ct="__reactFiber$"+pi,Gt="__reactProps$"+pi,kl="__reactContainer$"+pi,co="__reactEvents$"+pi,Yy="__reactListeners$"+pi,Fy="__reactHandles$"+pi,If="__reactResources$"+pi,xa="__reactMarker$"+pi;function fo(e){delete e[Ct],delete e[Gt],delete e[co],delete e[Yy],delete e[Fy]}function wl(e){var t=e[Ct];if(t)return t;for(var i=e.parentNode;i;){if(t=i[kl]||i[Ct]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=mp(e);e!==null;){if(i=e[Ct])return i;e=mp(e)}return t}e=i,i=e.parentNode}return null}function zl(e){if(e=e[Ct]||e[kl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ba(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function jl(e){var t=e[If];return t||(t=e[If]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xt(e){e[xa]=!0}var Kf=new Set,Zf={};function Ii(e,t){Cl(e,t),Cl(e+"Capture",t)}function Cl(e,t){for(Zf[e]=t,e=0;e<t.length;e++)Kf.add(t[e])}var Vy=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]*$"),$f={},Pf={};function Gy(e){return Dt.call(Pf,e)?!0:Dt.call($f,e)?!1:Vy.test(e)?Pf[e]=!0:($f[e]=!0,!1)}function Cr(e,t,i){if(Gy(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+i)}}function Nr(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function Kn(e,t,i,r){if(r===null)e.removeAttribute(i);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+r)}}function dn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xy(e,t,i){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var u=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(b){i=""+b,d.call(this,b)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(b){i=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ho(e){if(!e._valueTracker){var t=Jf(e)?"checked":"value";e._valueTracker=Xy(e,t,""+e[t])}}function Wf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),r="";return e&&(r=Jf(e)?e.checked?"true":"false":e.value),e=r,e!==i?(t.setValue(e),!0):!1}function Tr(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 Iy=/[\n"\\]/g;function hn(e){return e.replace(Iy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function mo(e,t,i,r,u,d,b,w){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),t!=null?b==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+dn(t)):e.value!==""+dn(t)&&(e.value=""+dn(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?po(e,b,dn(t)):i!=null?po(e,b,dn(i)):r!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+dn(w):e.removeAttribute("name")}function ed(e,t,i,r,u,d,b,w){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){ho(e);return}i=i!=null?""+dn(i):"",t=t!=null?""+dn(t):i,w||t===e.value||(e.value=t),e.defaultValue=t}r=r??u,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=w?e.checked:!!r,e.defaultChecked=!!r,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),ho(e)}function po(e,t,i){t==="number"&&Tr(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Nl(e,t,i,r){if(e=e.options,t){t={};for(var u=0;u<i.length;u++)t["$"+i[u]]=!0;for(i=0;i<e.length;i++)u=t.hasOwnProperty("$"+e[i].value),e[i].selected!==u&&(e[i].selected=u),u&&r&&(e[i].defaultSelected=!0)}else{for(i=""+dn(i),t=null,u=0;u<e.length;u++){if(e[u].value===i){e[u].selected=!0,r&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function td(e,t,i){if(t!=null&&(t=""+dn(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+dn(i):""}function nd(e,t,i,r){if(t==null){if(r!=null){if(i!=null)throw Error(s(92));if(W(r)){if(1<r.length)throw Error(s(93));r=r[0]}i=r}i==null&&(i=""),t=i}i=dn(t),e.defaultValue=i,r=e.textContent,r===i&&r!==""&&r!==null&&(e.value=r),ho(e)}function Tl(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Ky=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 id(e,t,i){var r=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,i):typeof i!="number"||i===0||Ky.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function ld(e,t,i){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,i!=null){for(var r in i)!i.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var u in t)r=t[u],t.hasOwnProperty(u)&&i[u]!==r&&id(e,u,r)}else for(var d in t)t.hasOwnProperty(d)&&id(e,d,t[d])}function go(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 Zy=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"]]),$y=/^[\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 Er(e){return $y.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Zn(){}var yo=null;function xo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var El=null,Al=null;function ad(e){var t=zl(e);if(t&&(e=t.stateNode)){var i=e[Gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(mo(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+hn(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var r=i[t];if(r!==e&&r.form===e.form){var u=r[Gt]||null;if(!u)throw Error(s(90));mo(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<i.length;t++)r=i[t],r.form===e.form&&Wf(r)}break e;case"textarea":td(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&Nl(e,!!i.multiple,t,!1)}}}var bo=!1;function rd(e,t,i){if(bo)return e(t,i);bo=!0;try{var r=e(t);return r}finally{if(bo=!1,(El!==null||Al!==null)&&(gs(),El&&(t=El,e=Al,Al=El=null,ad(t),e)))for(t=0;t<e.length;t++)ad(e[t])}}function va(e,t){var i=e.stateNode;if(i===null)return null;var r=i[Gt]||null;if(r===null)return null;i=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(s(231,t,typeof i));return i}var $n=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vo=!1;if($n)try{var Sa={};Object.defineProperty(Sa,"passive",{get:function(){vo=!0}}),window.addEventListener("test",Sa,Sa),window.removeEventListener("test",Sa,Sa)}catch{vo=!1}var gi=null,So=null,Ar=null;function sd(){if(Ar)return Ar;var e,t=So,i=t.length,r,u="value"in gi?gi.value:gi.textContent,d=u.length;for(e=0;e<i&&t[e]===u[e];e++);var b=i-e;for(r=1;r<=b&&t[i-r]===u[d-r];r++);return Ar=u.slice(e,1<r?1-r:void 0)}function Dr(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 _r(){return!0}function od(){return!1}function Xt(e){function t(i,r,u,d,b){this._reactName=i,this._targetInst=u,this.type=r,this.nativeEvent=d,this.target=b,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(i=e[w],this[w]=i?i(d):d[w]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?_r:od,this.isPropagationStopped=od,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=_r)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=_r)},persist:function(){},isPersistent:_r}),t}var Ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mr=Xt(Ki),ka=g({},Ki,{view:0,detail:0}),Py=Xt(ka),ko,wo,wa,Or=g({},ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jo,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!==wa&&(wa&&e.type==="mousemove"?(ko=e.screenX-wa.screenX,wo=e.screenY-wa.screenY):wo=ko=0,wa=e),ko)},movementY:function(e){return"movementY"in e?e.movementY:wo}}),ud=Xt(Or),Jy=g({},Or,{dataTransfer:0}),Wy=Xt(Jy),ex=g({},ka,{relatedTarget:0}),zo=Xt(ex),tx=g({},Ki,{animationName:0,elapsedTime:0,pseudoElement:0}),nx=Xt(tx),ix=g({},Ki,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lx=Xt(ix),ax=g({},Ki,{data:0}),cd=Xt(ax),rx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sx={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"},ox={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ux(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ox[e])?!!t[e]:!1}function jo(){return ux}var cx=g({},ka,{key:function(e){if(e.key){var t=rx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Dr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jo,charCode:function(e){return e.type==="keypress"?Dr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Dr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fx=Xt(cx),dx=g({},Or,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fd=Xt(dx),hx=g({},ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jo}),mx=Xt(hx),px=g({},Ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),gx=Xt(px),yx=g({},Or,{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}),xx=Xt(yx),bx=g({},Ki,{newState:0,oldState:0}),vx=Xt(bx),Sx=[9,13,27,32],Co=$n&&"CompositionEvent"in window,za=null;$n&&"documentMode"in document&&(za=document.documentMode);var kx=$n&&"TextEvent"in window&&!za,dd=$n&&(!Co||za&&8<za&&11>=za),hd=" ",md=!1;function pd(e,t){switch(e){case"keyup":return Sx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dl=!1;function wx(e,t){switch(e){case"compositionend":return gd(t);case"keypress":return t.which!==32?null:(md=!0,hd);case"textInput":return e=t.data,e===hd&&md?null:e;default:return null}}function zx(e,t){if(Dl)return e==="compositionend"||!Co&&pd(e,t)?(e=sd(),Ar=So=gi=null,Dl=!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 dd&&t.locale!=="ko"?null:t.data;default:return null}}var jx={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 yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jx[e.type]:t==="textarea"}function xd(e,t,i,r){El?Al?Al.push(r):Al=[r]:El=r,t=ws(t,"onChange"),0<t.length&&(i=new Mr("onChange","change",null,i,r),e.push({event:i,listeners:t}))}var ja=null,Ca=null;function Cx(e){ep(e,0)}function Rr(e){var t=ba(e);if(Wf(t))return e}function bd(e,t){if(e==="change")return t}var vd=!1;if($n){var No;if($n){var To="oninput"in document;if(!To){var Sd=document.createElement("div");Sd.setAttribute("oninput","return;"),To=typeof Sd.oninput=="function"}No=To}else No=!1;vd=No&&(!document.documentMode||9<document.documentMode)}function kd(){ja&&(ja.detachEvent("onpropertychange",wd),Ca=ja=null)}function wd(e){if(e.propertyName==="value"&&Rr(Ca)){var t=[];xd(t,Ca,e,xo(e)),rd(Cx,t)}}function Nx(e,t,i){e==="focusin"?(kd(),ja=t,Ca=i,ja.attachEvent("onpropertychange",wd)):e==="focusout"&&kd()}function Tx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Rr(Ca)}function Ex(e,t){if(e==="click")return Rr(t)}function Ax(e,t){if(e==="input"||e==="change")return Rr(t)}function Dx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:Dx;function Na(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;for(r=0;r<i.length;r++){var u=i[r];if(!Dt.call(t,u)||!tn(e[u],t[u]))return!1}return!0}function zd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jd(e,t){var i=zd(e);e=0;for(var r;i;){if(i.nodeType===3){if(r=e+i.textContent.length,e<=t&&r>=t)return{node:i,offset:t-e};e=r}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=zd(i)}}function Cd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Tr(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=Tr(e.document)}return t}function Eo(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 _x=$n&&"documentMode"in document&&11>=document.documentMode,_l=null,Ao=null,Ta=null,Do=!1;function Td(e,t,i){var r=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Do||_l==null||_l!==Tr(r)||(r=_l,"selectionStart"in r&&Eo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ta&&Na(Ta,r)||(Ta=r,r=ws(Ao,"onSelect"),0<r.length&&(t=new Mr("onSelect","select",null,t,i),e.push({event:t,listeners:r}),t.target=_l)))}function Zi(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var Ml={animationend:Zi("Animation","AnimationEnd"),animationiteration:Zi("Animation","AnimationIteration"),animationstart:Zi("Animation","AnimationStart"),transitionrun:Zi("Transition","TransitionRun"),transitionstart:Zi("Transition","TransitionStart"),transitioncancel:Zi("Transition","TransitionCancel"),transitionend:Zi("Transition","TransitionEnd")},_o={},Ed={};$n&&(Ed=document.createElement("div").style,"AnimationEvent"in window||(delete Ml.animationend.animation,delete Ml.animationiteration.animation,delete Ml.animationstart.animation),"TransitionEvent"in window||delete Ml.transitionend.transition);function $i(e){if(_o[e])return _o[e];if(!Ml[e])return e;var t=Ml[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in Ed)return _o[e]=t[i];return e}var Ad=$i("animationend"),Dd=$i("animationiteration"),_d=$i("animationstart"),Mx=$i("transitionrun"),Ox=$i("transitionstart"),Rx=$i("transitioncancel"),Md=$i("transitionend"),Od=new Map,Mo="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(" ");Mo.push("scrollEnd");function En(e,t){Od.set(e,t),Ii(t,[e])}var Lr=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)},mn=[],Ol=0,Oo=0;function Ur(){for(var e=Ol,t=Oo=Ol=0;t<e;){var i=mn[t];mn[t++]=null;var r=mn[t];mn[t++]=null;var u=mn[t];mn[t++]=null;var d=mn[t];if(mn[t++]=null,r!==null&&u!==null){var b=r.pending;b===null?u.next=u:(u.next=b.next,b.next=u),r.pending=u}d!==0&&Rd(i,u,d)}}function Br(e,t,i,r){mn[Ol++]=e,mn[Ol++]=t,mn[Ol++]=i,mn[Ol++]=r,Oo|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ro(e,t,i,r){return Br(e,t,i,r),qr(e)}function Pi(e,t){return Br(e,null,null,t),qr(e)}function Rd(e,t,i){e.lanes|=i;var r=e.alternate;r!==null&&(r.lanes|=i);for(var u=!1,d=e.return;d!==null;)d.childLanes|=i,r=d.alternate,r!==null&&(r.childLanes|=i),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(u=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,u&&t!==null&&(u=31-He(i),e=d.hiddenUpdates,r=e[u],r===null?e[u]=[t]:r.push(t),t.lane=i|536870912),d):null}function qr(e){if(50<$a)throw $a=0,Vu=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Rl={};function Lx(e,t,i,r){this.tag=e,this.key=i,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,t,i,r){return new Lx(e,t,i,r)}function Lo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pn(e,t){var i=e.alternate;return i===null?(i=nn(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function Ld(e,t){e.flags&=65011714;var i=e.alternate;return i===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=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Hr(e,t,i,r,u,d){var b=0;if(r=e,typeof e=="function")Lo(e)&&(b=1);else if(typeof e=="string")b=Q1(e,i,Q.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ue:return e=nn(31,i,t,u),e.elementType=ue,e.lanes=d,e;case E:return Ji(i.children,u,d,t);case M:b=8,u|=24;break;case j:return e=nn(12,i,t,u|2),e.elementType=j,e.lanes=d,e;case ee:return e=nn(13,i,t,u),e.elementType=ee,e.lanes=d,e;case D:return e=nn(19,i,t,u),e.elementType=D,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:b=10;break e;case q:b=9;break e;case ie:b=11;break e;case P:b=14;break e;case te:b=16,r=null;break e}b=29,i=Error(s(130,e===null?"null":typeof e,"")),r=null}return t=nn(b,i,t,u),t.elementType=e,t.type=r,t.lanes=d,t}function Ji(e,t,i,r){return e=nn(7,e,r,t),e.lanes=i,e}function Uo(e,t,i){return e=nn(6,e,null,t),e.lanes=i,e}function Ud(e){var t=nn(18,null,null,0);return t.stateNode=e,t}function Bo(e,t,i){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Bd=new WeakMap;function pn(e,t){if(typeof e=="object"&&e!==null){var i=Bd.get(e);return i!==void 0?i:(t={value:e,source:t,stack:Fi(t)},Bd.set(e,t),t)}return{value:e,source:t,stack:Fi(t)}}var Ll=[],Ul=0,Qr=null,Ea=0,gn=[],yn=0,yi=null,qn=1,Hn="";function Jn(e,t){Ll[Ul++]=Ea,Ll[Ul++]=Qr,Qr=e,Ea=t}function qd(e,t,i){gn[yn++]=qn,gn[yn++]=Hn,gn[yn++]=yi,yi=e;var r=qn;e=Hn;var u=32-He(r)-1;r&=~(1<<u),i+=1;var d=32-He(t)+u;if(30<d){var b=u-u%5;d=(r&(1<<b)-1).toString(32),r>>=b,u-=b,qn=1<<32-He(t)+u|i<<u|r,Hn=d+e}else qn=1<<d|i<<u|r,Hn=e}function qo(e){e.return!==null&&(Jn(e,1),qd(e,1,0))}function Ho(e){for(;e===Qr;)Qr=Ll[--Ul],Ll[Ul]=null,Ea=Ll[--Ul],Ll[Ul]=null;for(;e===yi;)yi=gn[--yn],gn[yn]=null,Hn=gn[--yn],gn[yn]=null,qn=gn[--yn],gn[yn]=null}function Hd(e,t){gn[yn++]=qn,gn[yn++]=Hn,gn[yn++]=yi,qn=t.id,Hn=t.overflow,yi=e}var Nt=null,$e=null,Re=!1,xi=null,xn=!1,Qo=Error(s(519));function bi(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Aa(pn(t,e)),Qo}function Qd(e){var t=e.stateNode,i=e.type,r=e.memoizedProps;switch(t[Ct]=e,t[Gt]=r,i){case"dialog":De("cancel",t),De("close",t);break;case"iframe":case"object":case"embed":De("load",t);break;case"video":case"audio":for(i=0;i<Ja.length;i++)De(Ja[i],t);break;case"source":De("error",t);break;case"img":case"image":case"link":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"input":De("invalid",t),ed(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":De("invalid",t);break;case"textarea":De("invalid",t),nd(t,r.value,r.defaultValue,r.children)}i=r.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||r.suppressHydrationWarning===!0||lp(t.textContent,i)?(r.popover!=null&&(De("beforetoggle",t),De("toggle",t)),r.onScroll!=null&&De("scroll",t),r.onScrollEnd!=null&&De("scrollend",t),r.onClick!=null&&(t.onclick=Zn),t=!0):t=!1,t||bi(e,!0)}function Yd(e){for(Nt=e.return;Nt;)switch(Nt.tag){case 5:case 31:case 13:xn=!1;return;case 27:case 3:xn=!0;return;default:Nt=Nt.return}}function Bl(e){if(e!==Nt)return!1;if(!Re)return Yd(e),Re=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||ac(e.type,e.memoizedProps)),i=!i),i&&$e&&bi(e),Yd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));$e=hp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));$e=hp(e)}else t===27?(t=$e,Mi(e.type)?(e=cc,cc=null,$e=e):$e=t):$e=Nt?vn(e.stateNode.nextSibling):null;return!0}function Wi(){$e=Nt=null,Re=!1}function Yo(){var e=xi;return e!==null&&($t===null?$t=e:$t.push.apply($t,e),xi=null),e}function Aa(e){xi===null?xi=[e]:xi.push(e)}var Fo=T(null),el=null,Wn=null;function vi(e,t,i){S(Fo,t._currentValue),t._currentValue=i}function ei(e){e._currentValue=Fo.current,V(Fo)}function Vo(e,t,i){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===i)break;e=e.return}}function Go(e,t,i,r){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var d=u.dependencies;if(d!==null){var b=u.child;d=d.firstContext;e:for(;d!==null;){var w=d;d=u;for(var N=0;N<t.length;N++)if(w.context===t[N]){d.lanes|=i,w=d.alternate,w!==null&&(w.lanes|=i),Vo(d.return,i,e),r||(b=null);break e}d=w.next}}else if(u.tag===18){if(b=u.return,b===null)throw Error(s(341));b.lanes|=i,d=b.alternate,d!==null&&(d.lanes|=i),Vo(b,i,e),b=null}else b=u.child;if(b!==null)b.return=u;else for(b=u;b!==null;){if(b===e){b=null;break}if(u=b.sibling,u!==null){u.return=b.return,b=u;break}b=b.return}u=b}}function ql(e,t,i,r){e=null;for(var u=t,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var b=u.alternate;if(b===null)throw Error(s(387));if(b=b.memoizedProps,b!==null){var w=u.type;tn(u.pendingProps.value,b.value)||(e!==null?e.push(w):e=[w])}}else if(u===me.current){if(b=u.alternate,b===null)throw Error(s(387));b.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(ir):e=[ir])}u=u.return}e!==null&&Go(t,e,i,r),t.flags|=262144}function Yr(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function tl(e){el=e,Wn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Tt(e){return Fd(el,e)}function Fr(e,t){return el===null&&tl(e),Fd(e,t)}function Fd(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},Wn===null){if(e===null)throw Error(s(308));Wn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wn=Wn.next=t;return i}var Ux=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},Bx=n.unstable_scheduleCallback,qx=n.unstable_NormalPriority,st={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xo(){return{controller:new Ux,data:new Map,refCount:0}}function Da(e){e.refCount--,e.refCount===0&&Bx(qx,function(){e.controller.abort()})}var _a=null,Io=0,Hl=0,Ql=null;function Hx(e,t){if(_a===null){var i=_a=[];Io=0,Hl=$u(),Ql={status:"pending",value:void 0,then:function(r){i.push(r)}}}return Io++,t.then(Vd,Vd),t}function Vd(){if(--Io===0&&_a!==null){Ql!==null&&(Ql.status="fulfilled");var e=_a;_a=null,Hl=0,Ql=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Qx(e,t){var i=[],r={status:"pending",value:null,reason:null,then:function(u){i.push(u)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var u=0;u<i.length;u++)(0,i[u])(t)},function(u){for(r.status="rejected",r.reason=u,u=0;u<i.length;u++)(0,i[u])(void 0)}),r}var Gd=_.S;_.S=function(e,t){Tm=wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Hx(e,t),Gd!==null&&Gd(e,t)};var nl=T(null);function Ko(){var e=nl.current;return e!==null?e:Ie.pooledCache}function Vr(e,t){t===null?S(nl,nl.current):S(nl,t.pool)}function Xd(){var e=Ko();return e===null?null:{parent:st._currentValue,pool:e}}var Yl=Error(s(460)),Zo=Error(s(474)),Gr=Error(s(542)),Xr={then:function(){}};function Id(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Kd(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(Zn,Zn),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$d(e),e;default:if(typeof t.status=="string")t.then(Zn,Zn);else{if(e=Ie,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=r}},function(r){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$d(e),e}throw ll=t,Yl}}function il(e){try{var t=e._init;return t(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(ll=i,Yl):i}}var ll=null;function Zd(){if(ll===null)throw Error(s(459));var e=ll;return ll=null,e}function $d(e){if(e===Yl||e===Gr)throw Error(s(483))}var Fl=null,Ma=0;function Ir(e){var t=Ma;return Ma+=1,Fl===null&&(Fl=[]),Kd(Fl,e,t)}function Oa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Kr(e,t){throw t.$$typeof===v?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Pd(e){function t(O,A){if(e){var U=O.deletions;U===null?(O.deletions=[A],O.flags|=16):U.push(A)}}function i(O,A){if(!e)return null;for(;A!==null;)t(O,A),A=A.sibling;return null}function r(O){for(var A=new Map;O!==null;)O.key!==null?A.set(O.key,O):A.set(O.index,O),O=O.sibling;return A}function u(O,A){return O=Pn(O,A),O.index=0,O.sibling=null,O}function d(O,A,U){return O.index=U,e?(U=O.alternate,U!==null?(U=U.index,U<A?(O.flags|=67108866,A):U):(O.flags|=67108866,A)):(O.flags|=1048576,A)}function b(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function w(O,A,U,Z){return A===null||A.tag!==6?(A=Uo(U,O.mode,Z),A.return=O,A):(A=u(A,U),A.return=O,A)}function N(O,A,U,Z){var ye=U.type;return ye===E?X(O,A,U.props.children,Z,U.key):A!==null&&(A.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===te&&il(ye)===A.type)?(A=u(A,U.props),Oa(A,U),A.return=O,A):(A=Hr(U.type,U.key,U.props,null,O.mode,Z),Oa(A,U),A.return=O,A)}function B(O,A,U,Z){return A===null||A.tag!==4||A.stateNode.containerInfo!==U.containerInfo||A.stateNode.implementation!==U.implementation?(A=Bo(U,O.mode,Z),A.return=O,A):(A=u(A,U.children||[]),A.return=O,A)}function X(O,A,U,Z,ye){return A===null||A.tag!==7?(A=Ji(U,O.mode,Z,ye),A.return=O,A):(A=u(A,U),A.return=O,A)}function J(O,A,U){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Uo(""+A,O.mode,U),A.return=O,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case k:return U=Hr(A.type,A.key,A.props,null,O.mode,U),Oa(U,A),U.return=O,U;case z:return A=Bo(A,O.mode,U),A.return=O,A;case te:return A=il(A),J(O,A,U)}if(W(A)||K(A))return A=Ji(A,O.mode,U,null),A.return=O,A;if(typeof A.then=="function")return J(O,Ir(A),U);if(A.$$typeof===L)return J(O,Fr(O,A),U);Kr(O,A)}return null}function H(O,A,U,Z){var ye=A!==null?A.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return ye!==null?null:w(O,A,""+U,Z);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case k:return U.key===ye?N(O,A,U,Z):null;case z:return U.key===ye?B(O,A,U,Z):null;case te:return U=il(U),H(O,A,U,Z)}if(W(U)||K(U))return ye!==null?null:X(O,A,U,Z,null);if(typeof U.then=="function")return H(O,A,Ir(U),Z);if(U.$$typeof===L)return H(O,A,Fr(O,U),Z);Kr(O,U)}return null}function F(O,A,U,Z,ye){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return O=O.get(U)||null,w(A,O,""+Z,ye);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case k:return O=O.get(Z.key===null?U:Z.key)||null,N(A,O,Z,ye);case z:return O=O.get(Z.key===null?U:Z.key)||null,B(A,O,Z,ye);case te:return Z=il(Z),F(O,A,U,Z,ye)}if(W(Z)||K(Z))return O=O.get(U)||null,X(A,O,Z,ye,null);if(typeof Z.then=="function")return F(O,A,U,Ir(Z),ye);if(Z.$$typeof===L)return F(O,A,U,Fr(A,Z),ye);Kr(A,Z)}return null}function fe(O,A,U,Z){for(var ye=null,Ue=null,he=A,Ne=A=0,Oe=null;he!==null&&Ne<U.length;Ne++){he.index>Ne?(Oe=he,he=null):Oe=he.sibling;var Be=H(O,he,U[Ne],Z);if(Be===null){he===null&&(he=Oe);break}e&&he&&Be.alternate===null&&t(O,he),A=d(Be,A,Ne),Ue===null?ye=Be:Ue.sibling=Be,Ue=Be,he=Oe}if(Ne===U.length)return i(O,he),Re&&Jn(O,Ne),ye;if(he===null){for(;Ne<U.length;Ne++)he=J(O,U[Ne],Z),he!==null&&(A=d(he,A,Ne),Ue===null?ye=he:Ue.sibling=he,Ue=he);return Re&&Jn(O,Ne),ye}for(he=r(he);Ne<U.length;Ne++)Oe=F(he,O,Ne,U[Ne],Z),Oe!==null&&(e&&Oe.alternate!==null&&he.delete(Oe.key===null?Ne:Oe.key),A=d(Oe,A,Ne),Ue===null?ye=Oe:Ue.sibling=Oe,Ue=Oe);return e&&he.forEach(function(Bi){return t(O,Bi)}),Re&&Jn(O,Ne),ye}function ve(O,A,U,Z){if(U==null)throw Error(s(151));for(var ye=null,Ue=null,he=A,Ne=A=0,Oe=null,Be=U.next();he!==null&&!Be.done;Ne++,Be=U.next()){he.index>Ne?(Oe=he,he=null):Oe=he.sibling;var Bi=H(O,he,Be.value,Z);if(Bi===null){he===null&&(he=Oe);break}e&&he&&Bi.alternate===null&&t(O,he),A=d(Bi,A,Ne),Ue===null?ye=Bi:Ue.sibling=Bi,Ue=Bi,he=Oe}if(Be.done)return i(O,he),Re&&Jn(O,Ne),ye;if(he===null){for(;!Be.done;Ne++,Be=U.next())Be=J(O,Be.value,Z),Be!==null&&(A=d(Be,A,Ne),Ue===null?ye=Be:Ue.sibling=Be,Ue=Be);return Re&&Jn(O,Ne),ye}for(he=r(he);!Be.done;Ne++,Be=U.next())Be=F(he,O,Ne,Be.value,Z),Be!==null&&(e&&Be.alternate!==null&&he.delete(Be.key===null?Ne:Be.key),A=d(Be,A,Ne),Ue===null?ye=Be:Ue.sibling=Be,Ue=Be);return e&&he.forEach(function(J1){return t(O,J1)}),Re&&Jn(O,Ne),ye}function Ge(O,A,U,Z){if(typeof U=="object"&&U!==null&&U.type===E&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case k:e:{for(var ye=U.key;A!==null;){if(A.key===ye){if(ye=U.type,ye===E){if(A.tag===7){i(O,A.sibling),Z=u(A,U.props.children),Z.return=O,O=Z;break e}}else if(A.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===te&&il(ye)===A.type){i(O,A.sibling),Z=u(A,U.props),Oa(Z,U),Z.return=O,O=Z;break e}i(O,A);break}else t(O,A);A=A.sibling}U.type===E?(Z=Ji(U.props.children,O.mode,Z,U.key),Z.return=O,O=Z):(Z=Hr(U.type,U.key,U.props,null,O.mode,Z),Oa(Z,U),Z.return=O,O=Z)}return b(O);case z:e:{for(ye=U.key;A!==null;){if(A.key===ye)if(A.tag===4&&A.stateNode.containerInfo===U.containerInfo&&A.stateNode.implementation===U.implementation){i(O,A.sibling),Z=u(A,U.children||[]),Z.return=O,O=Z;break e}else{i(O,A);break}else t(O,A);A=A.sibling}Z=Bo(U,O.mode,Z),Z.return=O,O=Z}return b(O);case te:return U=il(U),Ge(O,A,U,Z)}if(W(U))return fe(O,A,U,Z);if(K(U)){if(ye=K(U),typeof ye!="function")throw Error(s(150));return U=ye.call(U),ve(O,A,U,Z)}if(typeof U.then=="function")return Ge(O,A,Ir(U),Z);if(U.$$typeof===L)return Ge(O,A,Fr(O,U),Z);Kr(O,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,A!==null&&A.tag===6?(i(O,A.sibling),Z=u(A,U),Z.return=O,O=Z):(i(O,A),Z=Uo(U,O.mode,Z),Z.return=O,O=Z),b(O)):i(O,A)}return function(O,A,U,Z){try{Ma=0;var ye=Ge(O,A,U,Z);return Fl=null,ye}catch(he){if(he===Yl||he===Gr)throw he;var Ue=nn(29,he,null,O.mode);return Ue.lanes=Z,Ue.return=O,Ue}}}var al=Pd(!0),Jd=Pd(!1),Si=!1;function $o(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Po(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 ki(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wi(e,t,i){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(qe&2)!==0){var u=r.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),r.pending=t,t=qr(e),Rd(e,null,i),t}return Br(e,r,t,i),qr(e)}function Ra(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,Ft(e,i)}}function Jo(e,t){var i=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,i===r)){var u=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var b={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?u=d=b:d=d.next=b,i=i.next}while(i!==null);d===null?u=d=t:d=d.next=t}else u=d=t;i={baseState:r.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:r.shared,callbacks:r.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var Wo=!1;function La(){if(Wo){var e=Ql;if(e!==null)throw e}}function Ua(e,t,i,r){Wo=!1;var u=e.updateQueue;Si=!1;var d=u.firstBaseUpdate,b=u.lastBaseUpdate,w=u.shared.pending;if(w!==null){u.shared.pending=null;var N=w,B=N.next;N.next=null,b===null?d=B:b.next=B,b=N;var X=e.alternate;X!==null&&(X=X.updateQueue,w=X.lastBaseUpdate,w!==b&&(w===null?X.firstBaseUpdate=B:w.next=B,X.lastBaseUpdate=N))}if(d!==null){var J=u.baseState;b=0,X=B=N=null,w=d;do{var H=w.lane&-536870913,F=H!==w.lane;if(F?(Me&H)===H:(r&H)===H){H!==0&&H===Hl&&(Wo=!0),X!==null&&(X=X.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var fe=e,ve=w;H=t;var Ge=i;switch(ve.tag){case 1:if(fe=ve.payload,typeof fe=="function"){J=fe.call(Ge,J,H);break e}J=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=ve.payload,H=typeof fe=="function"?fe.call(Ge,J,H):fe,H==null)break e;J=g({},J,H);break e;case 2:Si=!0}}H=w.callback,H!==null&&(e.flags|=64,F&&(e.flags|=8192),F=u.callbacks,F===null?u.callbacks=[H]:F.push(H))}else F={lane:H,tag:w.tag,payload:w.payload,callback:w.callback,next:null},X===null?(B=X=F,N=J):X=X.next=F,b|=H;if(w=w.next,w===null){if(w=u.shared.pending,w===null)break;F=w,w=F.next,F.next=null,u.lastBaseUpdate=F,u.shared.pending=null}}while(!0);X===null&&(N=J),u.baseState=N,u.firstBaseUpdate=B,u.lastBaseUpdate=X,d===null&&(u.shared.lanes=0),Ti|=b,e.lanes=b,e.memoizedState=J}}function Wd(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function eh(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Wd(i[e],t)}var Vl=T(null),Zr=T(0);function th(e,t){e=ui,S(Zr,e),S(Vl,t),ui=e|t.baseLanes}function eu(){S(Zr,ui),S(Vl,Vl.current)}function tu(){ui=Zr.current,V(Vl),V(Zr)}var ln=T(null),bn=null;function zi(e){var t=e.alternate;S(at,at.current&1),S(ln,e),bn===null&&(t===null||Vl.current!==null||t.memoizedState!==null)&&(bn=e)}function nu(e){S(at,at.current),S(ln,e),bn===null&&(bn=e)}function nh(e){e.tag===22?(S(at,at.current),S(ln,e),bn===null&&(bn=e)):ji()}function ji(){S(at,at.current),S(ln,ln.current)}function an(e){V(ln),bn===e&&(bn=null),V(at)}var at=T(0);function $r(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||oc(i)||uc(i)))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 ti=0,je=null,Fe=null,ot=null,Pr=!1,Gl=!1,rl=!1,Jr=0,Ba=0,Xl=null,Yx=0;function nt(){throw Error(s(321))}function iu(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!tn(e[i],t[i]))return!1;return!0}function lu(e,t,i,r,u,d){return ti=d,je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?qh:bu,rl=!1,d=i(r,u),rl=!1,Gl&&(d=lh(t,i,r,u)),ih(e),d}function ih(e){_.H=Qa;var t=Fe!==null&&Fe.next!==null;if(ti=0,ot=Fe=je=null,Pr=!1,Ba=0,Xl=null,t)throw Error(s(300));e===null||ut||(e=e.dependencies,e!==null&&Yr(e)&&(ut=!0))}function lh(e,t,i,r){je=e;var u=0;do{if(Gl&&(Xl=null),Ba=0,Gl=!1,25<=u)throw Error(s(301));if(u+=1,ot=Fe=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}_.H=Hh,d=t(i,r)}while(Gl);return d}function Fx(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?qa(t):t,e=e.useState()[0],(Fe!==null?Fe.memoizedState:null)!==e&&(je.flags|=1024),t}function au(){var e=Jr!==0;return Jr=0,e}function ru(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function su(e){if(Pr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Pr=!1}ti=0,ot=Fe=je=null,Gl=!1,Ba=Jr=0,Xl=null}function qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?je.memoizedState=ot=e:ot=ot.next=e,ot}function rt(){if(Fe===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=Fe.next;var t=ot===null?je.memoizedState:ot.next;if(t!==null)ot=t,Fe=e;else{if(e===null)throw je.alternate===null?Error(s(467)):Error(s(310));Fe=e,e={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},ot===null?je.memoizedState=ot=e:ot=ot.next=e}return ot}function Wr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function qa(e){var t=Ba;return Ba+=1,Xl===null&&(Xl=[]),e=Kd(Xl,e,t),t=je,(ot===null?t.memoizedState:ot.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?qh:bu),e}function es(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return qa(e);if(e.$$typeof===L)return Tt(e)}throw Error(s(438,String(e)))}function ou(e){var t=null,i=je.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var r=je.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=Wr(),je.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),r=0;r<e;r++)i[r]=R;return t.index++,i}function ni(e,t){return typeof t=="function"?t(e):t}function ts(e){var t=rt();return uu(t,Fe,e)}function uu(e,t,i){var r=e.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=i;var u=e.baseQueue,d=r.pending;if(d!==null){if(u!==null){var b=u.next;u.next=d.next,d.next=b}t.baseQueue=u=d,r.pending=null}if(d=e.baseState,u===null)e.memoizedState=d;else{t=u.next;var w=b=null,N=null,B=t,X=!1;do{var J=B.lane&-536870913;if(J!==B.lane?(Me&J)===J:(ti&J)===J){var H=B.revertLane;if(H===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),J===Hl&&(X=!0);else if((ti&H)===H){B=B.next,H===Hl&&(X=!0);continue}else J={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},N===null?(w=N=J,b=d):N=N.next=J,je.lanes|=H,Ti|=H;J=B.action,rl&&i(d,J),d=B.hasEagerState?B.eagerState:i(d,J)}else H={lane:J,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},N===null?(w=N=H,b=d):N=N.next=H,je.lanes|=J,Ti|=J;B=B.next}while(B!==null&&B!==t);if(N===null?b=d:N.next=w,!tn(d,e.memoizedState)&&(ut=!0,X&&(i=Ql,i!==null)))throw i;e.memoizedState=d,e.baseState=b,e.baseQueue=N,r.lastRenderedState=d}return u===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function cu(e){var t=rt(),i=t.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=e;var r=i.dispatch,u=i.pending,d=t.memoizedState;if(u!==null){i.pending=null;var b=u=u.next;do d=e(d,b.action),b=b.next;while(b!==u);tn(d,t.memoizedState)||(ut=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),i.lastRenderedState=d}return[d,r]}function ah(e,t,i){var r=je,u=rt(),d=Re;if(d){if(i===void 0)throw Error(s(407));i=i()}else i=t();var b=!tn((Fe||u).memoizedState,i);if(b&&(u.memoizedState=i,ut=!0),u=u.queue,hu(oh.bind(null,r,u,e),[e]),u.getSnapshot!==t||b||ot!==null&&ot.memoizedState.tag&1){if(r.flags|=2048,Il(9,{destroy:void 0},sh.bind(null,r,u,i,t),null),Ie===null)throw Error(s(349));d||(ti&127)!==0||rh(r,t,i)}return i}function rh(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=je.updateQueue,t===null?(t=Wr(),je.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function sh(e,t,i,r){t.value=i,t.getSnapshot=r,uh(t)&&ch(e)}function oh(e,t,i){return i(function(){uh(t)&&ch(e)})}function uh(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!tn(e,i)}catch{return!0}}function ch(e){var t=Pi(e,2);t!==null&&Pt(t,e,2)}function fu(e){var t=qt();if(typeof e=="function"){var i=e;if(e=i(),rl){jt(!0);try{i()}finally{jt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:e},t}function fh(e,t,i,r){return e.baseState=i,uu(e,Fe,typeof r=="function"?r:ni)}function Vx(e,t,i,r,u){if(ls(e))throw Error(s(485));if(e=t.action,e!==null){var d={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){d.listeners.push(b)}};_.T!==null?i(!0):d.isTransition=!1,r(d),i=t.pending,i===null?(d.next=t.pending=d,dh(t,d)):(d.next=i.next,t.pending=i.next=d)}}function dh(e,t){var i=t.action,r=t.payload,u=e.state;if(t.isTransition){var d=_.T,b={};_.T=b;try{var w=i(u,r),N=_.S;N!==null&&N(b,w),hh(e,t,w)}catch(B){du(e,t,B)}finally{d!==null&&b.types!==null&&(d.types=b.types),_.T=d}}else try{d=i(u,r),hh(e,t,d)}catch(B){du(e,t,B)}}function hh(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(r){mh(e,t,r)},function(r){return du(e,t,r)}):mh(e,t,i)}function mh(e,t,i){t.status="fulfilled",t.value=i,ph(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,dh(e,i)))}function du(e,t,i){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=i,ph(t),t=t.next;while(t!==r)}e.action=null}function ph(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gh(e,t){return t}function yh(e,t){if(Re){var i=Ie.formState;if(i!==null){e:{var r=je;if(Re){if($e){t:{for(var u=$e,d=xn;u.nodeType!==8;){if(!d){u=null;break t}if(u=vn(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d==="F!"||d==="F"?u:null}if(u){$e=vn(u.nextSibling),r=u.data==="F!";break e}}bi(r)}r=!1}r&&(t=i[0])}}return i=qt(),i.memoizedState=i.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gh,lastRenderedState:t},i.queue=r,i=Lh.bind(null,je,r),r.dispatch=i,r=fu(!1),d=xu.bind(null,je,!1,r.queue),r=qt(),u={state:t,dispatch:null,action:e,pending:null},r.queue=u,i=Vx.bind(null,je,u,d,i),u.dispatch=i,r.memoizedState=e,[t,i,!1]}function xh(e){var t=rt();return bh(t,Fe,e)}function bh(e,t,i){if(t=uu(e,t,gh)[0],e=ts(ni)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=qa(t)}catch(b){throw b===Yl?Gr:b}else r=t;t=rt();var u=t.queue,d=u.dispatch;return i!==t.memoizedState&&(je.flags|=2048,Il(9,{destroy:void 0},Gx.bind(null,u,i),null)),[r,d,e]}function Gx(e,t){e.action=t}function vh(e){var t=rt(),i=Fe;if(i!==null)return bh(t,i,e);rt(),t=t.memoizedState,i=rt();var r=i.queue.dispatch;return i.memoizedState=e,[t,r,!1]}function Il(e,t,i,r){return e={tag:e,create:i,deps:r,inst:t,next:null},t=je.updateQueue,t===null&&(t=Wr(),je.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(r=i.next,i.next=e,e.next=r,t.lastEffect=e),e}function Sh(){return rt().memoizedState}function ns(e,t,i,r){var u=qt();je.flags|=e,u.memoizedState=Il(1|t,{destroy:void 0},i,r===void 0?null:r)}function is(e,t,i,r){var u=rt();r=r===void 0?null:r;var d=u.memoizedState.inst;Fe!==null&&r!==null&&iu(r,Fe.memoizedState.deps)?u.memoizedState=Il(t,d,i,r):(je.flags|=e,u.memoizedState=Il(1|t,d,i,r))}function kh(e,t){ns(8390656,8,e,t)}function hu(e,t){is(2048,8,e,t)}function Xx(e){je.flags|=4;var t=je.updateQueue;if(t===null)t=Wr(),je.updateQueue=t,t.events=[e];else{var i=t.events;i===null?t.events=[e]:i.push(e)}}function wh(e){var t=rt().memoizedState;return Xx({ref:t,nextImpl:e}),function(){if((qe&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function zh(e,t){return is(4,2,e,t)}function jh(e,t){return is(4,4,e,t)}function Ch(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Nh(e,t,i){i=i!=null?i.concat([e]):null,is(4,4,Ch.bind(null,t,e),i)}function mu(){}function Th(e,t){var i=rt();t=t===void 0?null:t;var r=i.memoizedState;return t!==null&&iu(t,r[1])?r[0]:(i.memoizedState=[e,t],e)}function Eh(e,t){var i=rt();t=t===void 0?null:t;var r=i.memoizedState;if(t!==null&&iu(t,r[1]))return r[0];if(r=e(),rl){jt(!0);try{e()}finally{jt(!1)}}return i.memoizedState=[r,t],r}function pu(e,t,i){return i===void 0||(ti&1073741824)!==0&&(Me&261930)===0?e.memoizedState=t:(e.memoizedState=i,e=Am(),je.lanes|=e,Ti|=e,i)}function Ah(e,t,i,r){return tn(i,t)?i:Vl.current!==null?(e=pu(e,i,r),tn(e,t)||(ut=!0),e):(ti&42)===0||(ti&1073741824)!==0&&(Me&261930)===0?(ut=!0,e.memoizedState=i):(e=Am(),je.lanes|=e,Ti|=e,t)}function Dh(e,t,i,r,u){var d=$.p;$.p=d!==0&&8>d?d:8;var b=_.T,w={};_.T=w,xu(e,!1,t,i);try{var N=u(),B=_.S;if(B!==null&&B(w,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var X=Qx(N,r);Ha(e,t,X,on(e))}else Ha(e,t,r,on(e))}catch(J){Ha(e,t,{then:function(){},status:"rejected",reason:J},on())}finally{$.p=d,b!==null&&w.types!==null&&(b.types=w.types),_.T=b}}function Ix(){}function gu(e,t,i,r){if(e.tag!==5)throw Error(s(476));var u=_h(e).queue;Dh(e,u,t,ce,i===null?Ix:function(){return Mh(e),i(r)})}function _h(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:ce},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Mh(e){var t=_h(e);t.next===null&&(t=e.alternate.memoizedState),Ha(e,t.next.queue,{},on())}function yu(){return Tt(ir)}function Oh(){return rt().memoizedState}function Rh(){return rt().memoizedState}function Kx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=on();e=ki(i);var r=wi(t,e,i);r!==null&&(Pt(r,t,i),Ra(r,t,i)),t={cache:Xo()},e.payload=t;return}t=t.return}}function Zx(e,t,i){var r=on();i={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ls(e)?Uh(t,i):(i=Ro(e,t,i,r),i!==null&&(Pt(i,e,r),Bh(i,t,r)))}function Lh(e,t,i){var r=on();Ha(e,t,i,r)}function Ha(e,t,i,r){var u={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(ls(e))Uh(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var b=t.lastRenderedState,w=d(b,i);if(u.hasEagerState=!0,u.eagerState=w,tn(w,b))return Br(e,t,u,0),Ie===null&&Ur(),!1}catch{}if(i=Ro(e,t,u,r),i!==null)return Pt(i,e,r),Bh(i,t,r),!0}return!1}function xu(e,t,i,r){if(r={lane:2,revertLane:$u(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ls(e)){if(t)throw Error(s(479))}else t=Ro(e,i,r,2),t!==null&&Pt(t,e,2)}function ls(e){var t=e.alternate;return e===je||t!==null&&t===je}function Uh(e,t){Gl=Pr=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function Bh(e,t,i){if((i&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,Ft(e,i)}}var Qa={readContext:Tt,use:es,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};Qa.useEffectEvent=nt;var qh={readContext:Tt,use:es,useCallback:function(e,t){return qt().memoizedState=[e,t===void 0?null:t],e},useContext:Tt,useEffect:kh,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,ns(4194308,4,Ch.bind(null,t,e),i)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){ns(4,2,e,t)},useMemo:function(e,t){var i=qt();t=t===void 0?null:t;var r=e();if(rl){jt(!0);try{e()}finally{jt(!1)}}return i.memoizedState=[r,t],r},useReducer:function(e,t,i){var r=qt();if(i!==void 0){var u=i(t);if(rl){jt(!0);try{i(t)}finally{jt(!1)}}}else u=t;return r.memoizedState=r.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},r.queue=e,e=e.dispatch=Zx.bind(null,je,e),[r.memoizedState,e]},useRef:function(e){var t=qt();return e={current:e},t.memoizedState=e},useState:function(e){e=fu(e);var t=e.queue,i=Lh.bind(null,je,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:mu,useDeferredValue:function(e,t){var i=qt();return pu(i,e,t)},useTransition:function(){var e=fu(!1);return e=Dh.bind(null,je,e.queue,!0,!1),qt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var r=je,u=qt();if(Re){if(i===void 0)throw Error(s(407));i=i()}else{if(i=t(),Ie===null)throw Error(s(349));(Me&127)!==0||rh(r,t,i)}u.memoizedState=i;var d={value:i,getSnapshot:t};return u.queue=d,kh(oh.bind(null,r,d,e),[e]),r.flags|=2048,Il(9,{destroy:void 0},sh.bind(null,r,d,i,t),null),i},useId:function(){var e=qt(),t=Ie.identifierPrefix;if(Re){var i=Hn,r=qn;i=(r&~(1<<32-He(r)-1)).toString(32)+i,t="_"+t+"R_"+i,i=Jr++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=Yx++,t="_"+t+"r_"+i.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:yu,useFormState:yh,useActionState:yh,useOptimistic:function(e){var t=qt();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=xu.bind(null,je,!0,i),i.dispatch=t,[e,t]},useMemoCache:ou,useCacheRefresh:function(){return qt().memoizedState=Kx.bind(null,je)},useEffectEvent:function(e){var t=qt(),i={impl:e};return t.memoizedState=i,function(){if((qe&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}},bu={readContext:Tt,use:es,useCallback:Th,useContext:Tt,useEffect:hu,useImperativeHandle:Nh,useInsertionEffect:zh,useLayoutEffect:jh,useMemo:Eh,useReducer:ts,useRef:Sh,useState:function(){return ts(ni)},useDebugValue:mu,useDeferredValue:function(e,t){var i=rt();return Ah(i,Fe.memoizedState,e,t)},useTransition:function(){var e=ts(ni)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:qa(e),t]},useSyncExternalStore:ah,useId:Oh,useHostTransitionStatus:yu,useFormState:xh,useActionState:xh,useOptimistic:function(e,t){var i=rt();return fh(i,Fe,e,t)},useMemoCache:ou,useCacheRefresh:Rh};bu.useEffectEvent=wh;var Hh={readContext:Tt,use:es,useCallback:Th,useContext:Tt,useEffect:hu,useImperativeHandle:Nh,useInsertionEffect:zh,useLayoutEffect:jh,useMemo:Eh,useReducer:cu,useRef:Sh,useState:function(){return cu(ni)},useDebugValue:mu,useDeferredValue:function(e,t){var i=rt();return Fe===null?pu(i,e,t):Ah(i,Fe.memoizedState,e,t)},useTransition:function(){var e=cu(ni)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:qa(e),t]},useSyncExternalStore:ah,useId:Oh,useHostTransitionStatus:yu,useFormState:vh,useActionState:vh,useOptimistic:function(e,t){var i=rt();return Fe!==null?fh(i,Fe,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:ou,useCacheRefresh:Rh};Hh.useEffectEvent=wh;function vu(e,t,i,r){t=e.memoizedState,i=i(r,t),i=i==null?t:g({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Su={enqueueSetState:function(e,t,i){e=e._reactInternals;var r=on(),u=ki(r);u.payload=t,i!=null&&(u.callback=i),t=wi(e,u,r),t!==null&&(Pt(t,e,r),Ra(t,e,r))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var r=on(),u=ki(r);u.tag=1,u.payload=t,i!=null&&(u.callback=i),t=wi(e,u,r),t!==null&&(Pt(t,e,r),Ra(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=on(),r=ki(i);r.tag=2,t!=null&&(r.callback=t),t=wi(e,r,i),t!==null&&(Pt(t,e,i),Ra(t,e,i))}};function Qh(e,t,i,r,u,d,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,d,b):t.prototype&&t.prototype.isPureReactComponent?!Na(i,r)||!Na(u,d):!0}function Yh(e,t,i,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,r),t.state!==e&&Su.enqueueReplaceState(t,t.state,null)}function sl(e,t){var i=t;if("ref"in t){i={};for(var r in t)r!=="ref"&&(i[r]=t[r])}if(e=e.defaultProps){i===t&&(i=g({},i));for(var u in e)i[u]===void 0&&(i[u]=e[u])}return i}function Fh(e){Lr(e)}function Vh(e){console.error(e)}function Gh(e){Lr(e)}function as(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Xh(e,t,i){try{var r=e.onCaughtError;r(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function ku(e,t,i){return i=ki(i),i.tag=3,i.payload={element:null},i.callback=function(){as(e,t)},i}function Ih(e){return e=ki(e),e.tag=3,e}function Kh(e,t,i,r){var u=i.type.getDerivedStateFromError;if(typeof u=="function"){var d=r.value;e.payload=function(){return u(d)},e.callback=function(){Xh(t,i,r)}}var b=i.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){Xh(t,i,r),typeof u!="function"&&(Ei===null?Ei=new Set([this]):Ei.add(this));var w=r.stack;this.componentDidCatch(r.value,{componentStack:w!==null?w:""})})}function $x(e,t,i,r,u){if(i.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=i.alternate,t!==null&&ql(t,i,u,!0),i=ln.current,i!==null){switch(i.tag){case 31:case 13:return bn===null?ys():i.alternate===null&&it===0&&(it=3),i.flags&=-257,i.flags|=65536,i.lanes=u,r===Xr?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([r]):t.add(r),Iu(e,r,u)),!1;case 22:return i.flags|=65536,r===Xr?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([r]):i.add(r)),Iu(e,r,u)),!1}throw Error(s(435,i.tag))}return Iu(e,r,u),ys(),!1}if(Re)return t=ln.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,r!==Qo&&(e=Error(s(422),{cause:r}),Aa(pn(e,i)))):(r!==Qo&&(t=Error(s(423),{cause:r}),Aa(pn(t,i))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,r=pn(r,i),u=ku(e.stateNode,r,u),Jo(e,u),it!==4&&(it=2)),!1;var d=Error(s(520),{cause:r});if(d=pn(d,i),Za===null?Za=[d]:Za.push(d),it!==4&&(it=2),t===null)return!0;r=pn(r,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=u&-u,i.lanes|=e,e=ku(i.stateNode,r,e),Jo(i,e),!1;case 1:if(t=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Ei===null||!Ei.has(d))))return i.flags|=65536,u&=-u,i.lanes|=u,u=Ih(u),Kh(u,e,i,r),Jo(i,u),!1}i=i.return}while(i!==null);return!1}var wu=Error(s(461)),ut=!1;function Et(e,t,i,r){t.child=e===null?Jd(t,null,i,r):al(t,e.child,i,r)}function Zh(e,t,i,r,u){i=i.render;var d=t.ref;if("ref"in r){var b={};for(var w in r)w!=="ref"&&(b[w]=r[w])}else b=r;return tl(t),r=lu(e,t,i,b,d,u),w=au(),e!==null&&!ut?(ru(e,t,u),ii(e,t,u)):(Re&&w&&qo(t),t.flags|=1,Et(e,t,r,u),t.child)}function $h(e,t,i,r,u){if(e===null){var d=i.type;return typeof d=="function"&&!Lo(d)&&d.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=d,Ph(e,t,d,r,u)):(e=Hr(i.type,null,r,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!Du(e,u)){var b=d.memoizedProps;if(i=i.compare,i=i!==null?i:Na,i(b,r)&&e.ref===t.ref)return ii(e,t,u)}return t.flags|=1,e=Pn(d,r),e.ref=t.ref,e.return=t,t.child=e}function Ph(e,t,i,r,u){if(e!==null){var d=e.memoizedProps;if(Na(d,r)&&e.ref===t.ref)if(ut=!1,t.pendingProps=r=d,Du(e,u))(e.flags&131072)!==0&&(ut=!0);else return t.lanes=e.lanes,ii(e,t,u)}return zu(e,t,i,r,u)}function Jh(e,t,i,r){var u=r.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|i:i,e!==null){for(r=t.child=e.child,u=0;r!==null;)u=u|r.lanes|r.childLanes,r=r.sibling;r=u&~d}else r=0,t.child=null;return Wh(e,t,d,i,r)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Vr(t,d!==null?d.cachePool:null),d!==null?th(t,d):eu(),nh(t);else return r=t.lanes=536870912,Wh(e,t,d!==null?d.baseLanes|i:i,i,r)}else d!==null?(Vr(t,d.cachePool),th(t,d),ji(),t.memoizedState=null):(e!==null&&Vr(t,null),eu(),ji());return Et(e,t,u,i),t.child}function Ya(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wh(e,t,i,r,u){var d=Ko();return d=d===null?null:{parent:st._currentValue,pool:d},t.memoizedState={baseLanes:i,cachePool:d},e!==null&&Vr(t,null),eu(),nh(t),e!==null&&ql(e,t,r,!0),t.childLanes=u,null}function rs(e,t){return t=os({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function em(e,t,i){return al(t,e.child,null,i),e=rs(t,t.pendingProps),e.flags|=2,an(t),t.memoizedState=null,e}function Px(e,t,i){var r=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Re){if(r.mode==="hidden")return e=rs(t,r),t.lanes=536870912,Ya(null,e);if(nu(t),(e=$e)?(e=dp(e,xn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yi!==null?{id:qn,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},i=Ud(e),i.return=t,t.child=i,Nt=t,$e=null)):e=null,e===null)throw bi(t);return t.lanes=536870912,null}return rs(t,r)}var d=e.memoizedState;if(d!==null){var b=d.dehydrated;if(nu(t),u)if(t.flags&256)t.flags&=-257,t=em(e,t,i);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(ut||ql(e,t,i,!1),u=(i&e.childLanes)!==0,ut||u){if(r=Ie,r!==null&&(b=Vt(r,i),b!==0&&b!==d.retryLane))throw d.retryLane=b,Pi(e,b),Pt(r,e,b),wu;ys(),t=em(e,t,i)}else e=d.treeContext,$e=vn(b.nextSibling),Nt=t,Re=!0,xi=null,xn=!1,e!==null&&Hd(t,e),t=rs(t,r),t.flags|=4096;return t}return e=Pn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ss(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function zu(e,t,i,r,u){return tl(t),i=lu(e,t,i,r,void 0,u),r=au(),e!==null&&!ut?(ru(e,t,u),ii(e,t,u)):(Re&&r&&qo(t),t.flags|=1,Et(e,t,i,u),t.child)}function tm(e,t,i,r,u,d){return tl(t),t.updateQueue=null,i=lh(t,r,i,u),ih(e),r=au(),e!==null&&!ut?(ru(e,t,d),ii(e,t,d)):(Re&&r&&qo(t),t.flags|=1,Et(e,t,i,d),t.child)}function nm(e,t,i,r,u){if(tl(t),t.stateNode===null){var d=Rl,b=i.contextType;typeof b=="object"&&b!==null&&(d=Tt(b)),d=new i(r,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Su,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=r,d.state=t.memoizedState,d.refs={},$o(t),b=i.contextType,d.context=typeof b=="object"&&b!==null?Tt(b):Rl,d.state=t.memoizedState,b=i.getDerivedStateFromProps,typeof b=="function"&&(vu(t,i,b,r),d.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(b=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),b!==d.state&&Su.enqueueReplaceState(d,d.state,null),Ua(t,r,d,u),La(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){d=t.stateNode;var w=t.memoizedProps,N=sl(i,w);d.props=N;var B=d.context,X=i.contextType;b=Rl,typeof X=="object"&&X!==null&&(b=Tt(X));var J=i.getDerivedStateFromProps;X=typeof J=="function"||typeof d.getSnapshotBeforeUpdate=="function",w=t.pendingProps!==w,X||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(w||B!==b)&&Yh(t,d,r,b),Si=!1;var H=t.memoizedState;d.state=H,Ua(t,r,d,u),La(),B=t.memoizedState,w||H!==B||Si?(typeof J=="function"&&(vu(t,i,J,r),B=t.memoizedState),(N=Si||Qh(t,i,N,r,H,B,b))?(X||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=B),d.props=r,d.state=B,d.context=b,r=N):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{d=t.stateNode,Po(e,t),b=t.memoizedProps,X=sl(i,b),d.props=X,J=t.pendingProps,H=d.context,B=i.contextType,N=Rl,typeof B=="object"&&B!==null&&(N=Tt(B)),w=i.getDerivedStateFromProps,(B=typeof w=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b!==J||H!==N)&&Yh(t,d,r,N),Si=!1,H=t.memoizedState,d.state=H,Ua(t,r,d,u),La();var F=t.memoizedState;b!==J||H!==F||Si||e!==null&&e.dependencies!==null&&Yr(e.dependencies)?(typeof w=="function"&&(vu(t,i,w,r),F=t.memoizedState),(X=Si||Qh(t,i,X,r,H,F,N)||e!==null&&e.dependencies!==null&&Yr(e.dependencies))?(B||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(r,F,N),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(r,F,N)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=F),d.props=r,d.state=F,d.context=N,r=X):(typeof d.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),r=!1)}return d=r,ss(e,t),r=(t.flags&128)!==0,d||r?(d=t.stateNode,i=r&&typeof i.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&r?(t.child=al(t,e.child,null,u),t.child=al(t,null,i,u)):Et(e,t,i,u),t.memoizedState=d.state,e=t.child):e=ii(e,t,u),e}function im(e,t,i,r){return Wi(),t.flags|=256,Et(e,t,i,r),t.child}var ju={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cu(e){return{baseLanes:e,cachePool:Xd()}}function Nu(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=sn),e}function lm(e,t,i){var r=t.pendingProps,u=!1,d=(t.flags&128)!==0,b;if((b=d)||(b=e!==null&&e.memoizedState===null?!1:(at.current&2)!==0),b&&(u=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(Re){if(u?zi(t):ji(),(e=$e)?(e=dp(e,xn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yi!==null?{id:qn,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},i=Ud(e),i.return=t,t.child=i,Nt=t,$e=null)):e=null,e===null)throw bi(t);return uc(e)?t.lanes=32:t.lanes=536870912,null}var w=r.children;return r=r.fallback,u?(ji(),u=t.mode,w=os({mode:"hidden",children:w},u),r=Ji(r,u,i,null),w.return=t,r.return=t,w.sibling=r,t.child=w,r=t.child,r.memoizedState=Cu(i),r.childLanes=Nu(e,b,i),t.memoizedState=ju,Ya(null,r)):(zi(t),Tu(t,w))}var N=e.memoizedState;if(N!==null&&(w=N.dehydrated,w!==null)){if(d)t.flags&256?(zi(t),t.flags&=-257,t=Eu(e,t,i)):t.memoizedState!==null?(ji(),t.child=e.child,t.flags|=128,t=null):(ji(),w=r.fallback,u=t.mode,r=os({mode:"visible",children:r.children},u),w=Ji(w,u,i,null),w.flags|=2,r.return=t,w.return=t,r.sibling=w,t.child=r,al(t,e.child,null,i),r=t.child,r.memoizedState=Cu(i),r.childLanes=Nu(e,b,i),t.memoizedState=ju,t=Ya(null,r));else if(zi(t),uc(w)){if(b=w.nextSibling&&w.nextSibling.dataset,b)var B=b.dgst;b=B,r=Error(s(419)),r.stack="",r.digest=b,Aa({value:r,source:null,stack:null}),t=Eu(e,t,i)}else if(ut||ql(e,t,i,!1),b=(i&e.childLanes)!==0,ut||b){if(b=Ie,b!==null&&(r=Vt(b,i),r!==0&&r!==N.retryLane))throw N.retryLane=r,Pi(e,r),Pt(b,e,r),wu;oc(w)||ys(),t=Eu(e,t,i)}else oc(w)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,$e=vn(w.nextSibling),Nt=t,Re=!0,xi=null,xn=!1,e!==null&&Hd(t,e),t=Tu(t,r.children),t.flags|=4096);return t}return u?(ji(),w=r.fallback,u=t.mode,N=e.child,B=N.sibling,r=Pn(N,{mode:"hidden",children:r.children}),r.subtreeFlags=N.subtreeFlags&65011712,B!==null?w=Pn(B,w):(w=Ji(w,u,i,null),w.flags|=2),w.return=t,r.return=t,r.sibling=w,t.child=r,Ya(null,r),r=t.child,w=e.child.memoizedState,w===null?w=Cu(i):(u=w.cachePool,u!==null?(N=st._currentValue,u=u.parent!==N?{parent:N,pool:N}:u):u=Xd(),w={baseLanes:w.baseLanes|i,cachePool:u}),r.memoizedState=w,r.childLanes=Nu(e,b,i),t.memoizedState=ju,Ya(e.child,r)):(zi(t),i=e.child,e=i.sibling,i=Pn(i,{mode:"visible",children:r.children}),i.return=t,i.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=i,t.memoizedState=null,i)}function Tu(e,t){return t=os({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function os(e,t){return e=nn(22,e,null,t),e.lanes=0,e}function Eu(e,t,i){return al(t,e.child,null,i),e=Tu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function am(e,t,i){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Vo(e.return,t,i)}function Au(e,t,i,r,u,d){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:i,tailMode:u,treeForkCount:d}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=r,b.tail=i,b.tailMode=u,b.treeForkCount=d)}function rm(e,t,i){var r=t.pendingProps,u=r.revealOrder,d=r.tail;r=r.children;var b=at.current,w=(b&2)!==0;if(w?(b=b&1|2,t.flags|=128):b&=1,S(at,b),Et(e,t,r,i),r=Re?Ea:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&am(e,i,t);else if(e.tag===19)am(e,i,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(u){case"forwards":for(i=t.child,u=null;i!==null;)e=i.alternate,e!==null&&$r(e)===null&&(u=i),i=i.sibling;i=u,i===null?(u=t.child,t.child=null):(u=i.sibling,i.sibling=null),Au(t,!1,u,i,d,r);break;case"backwards":case"unstable_legacy-backwards":for(i=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&$r(e)===null){t.child=u;break}e=u.sibling,u.sibling=i,i=u,u=e}Au(t,!0,i,null,d,r);break;case"together":Au(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function ii(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),Ti|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(ql(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,i=Pn(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=Pn(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function Du(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Yr(e)))}function Jx(e,t,i){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),vi(t,st,e.memoizedState.cache),Wi();break;case 27:case 5:dt(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:vi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,nu(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(zi(t),t.flags|=128,null):(i&t.child.childLanes)!==0?lm(e,t,i):(zi(t),e=ii(e,t,i),e!==null?e.sibling:null);zi(t);break;case 19:var u=(e.flags&128)!==0;if(r=(i&t.childLanes)!==0,r||(ql(e,t,i,!1),r=(i&t.childLanes)!==0),u){if(r)return rm(e,t,i);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),S(at,at.current),r)break;return null;case 22:return t.lanes=0,Jh(e,t,i,t.pendingProps);case 24:vi(t,st,e.memoizedState.cache)}return ii(e,t,i)}function sm(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)ut=!0;else{if(!Du(e,i)&&(t.flags&128)===0)return ut=!1,Jx(e,t,i);ut=(e.flags&131072)!==0}else ut=!1,Re&&(t.flags&1048576)!==0&&qd(t,Ea,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=il(t.elementType),t.type=e,typeof e=="function")Lo(e)?(r=sl(e,r),t.tag=1,t=nm(null,t,e,r,i)):(t.tag=0,t=zu(null,t,e,r,i));else{if(e!=null){var u=e.$$typeof;if(u===ie){t.tag=11,t=Zh(null,t,e,r,i);break e}else if(u===P){t.tag=14,t=$h(null,t,e,r,i);break e}}throw t=se(e)||e,Error(s(306,t,""))}}return t;case 0:return zu(e,t,t.type,t.pendingProps,i);case 1:return r=t.type,u=sl(r,t.pendingProps),nm(e,t,r,u,i);case 3:e:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));r=t.pendingProps;var d=t.memoizedState;u=d.element,Po(e,t),Ua(t,r,null,i);var b=t.memoizedState;if(r=b.cache,vi(t,st,r),r!==d.cache&&Go(t,[st],i,!0),La(),r=b.element,d.isDehydrated)if(d={element:r,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=im(e,t,r,i);break e}else if(r!==u){u=pn(Error(s(424)),t),Aa(u),t=im(e,t,r,i);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,$e=vn(e.firstChild),Nt=t,Re=!0,xi=null,xn=!0,i=Jd(t,null,r,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Wi(),r===u){t=ii(e,t,i);break e}Et(e,t,r,i)}t=t.child}return t;case 26:return ss(e,t),e===null?(i=xp(t.type,null,t.pendingProps,null))?t.memoizedState=i:Re||(i=t.type,e=t.pendingProps,r=zs(ae.current).createElement(i),r[Ct]=t,r[Gt]=e,At(r,i,e),xt(r),t.stateNode=r):t.memoizedState=xp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return dt(t),e===null&&Re&&(r=t.stateNode=pp(t.type,t.pendingProps,ae.current),Nt=t,xn=!0,u=$e,Mi(t.type)?(cc=u,$e=vn(r.firstChild)):$e=u),Et(e,t,t.pendingProps.children,i),ss(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((u=r=$e)&&(r=T1(r,t.type,t.pendingProps,xn),r!==null?(t.stateNode=r,Nt=t,$e=vn(r.firstChild),xn=!1,u=!0):u=!1),u||bi(t)),dt(t),u=t.type,d=t.pendingProps,b=e!==null?e.memoizedProps:null,r=d.children,ac(u,d)?r=null:b!==null&&ac(u,b)&&(t.flags|=32),t.memoizedState!==null&&(u=lu(e,t,Fx,null,null,i),ir._currentValue=u),ss(e,t),Et(e,t,r,i),t.child;case 6:return e===null&&Re&&((e=i=$e)&&(i=E1(i,t.pendingProps,xn),i!==null?(t.stateNode=i,Nt=t,$e=null,e=!0):e=!1),e||bi(t)),null;case 13:return lm(e,t,i);case 4:return pe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=al(t,null,r,i):Et(e,t,r,i),t.child;case 11:return Zh(e,t,t.type,t.pendingProps,i);case 7:return Et(e,t,t.pendingProps,i),t.child;case 8:return Et(e,t,t.pendingProps.children,i),t.child;case 12:return Et(e,t,t.pendingProps.children,i),t.child;case 10:return r=t.pendingProps,vi(t,t.type,r.value),Et(e,t,r.children,i),t.child;case 9:return u=t.type._context,r=t.pendingProps.children,tl(t),u=Tt(u),r=r(u),t.flags|=1,Et(e,t,r,i),t.child;case 14:return $h(e,t,t.type,t.pendingProps,i);case 15:return Ph(e,t,t.type,t.pendingProps,i);case 19:return rm(e,t,i);case 31:return Px(e,t,i);case 22:return Jh(e,t,i,t.pendingProps);case 24:return tl(t),r=Tt(st),e===null?(u=Ko(),u===null&&(u=Ie,d=Xo(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=i),u=d),t.memoizedState={parent:r,cache:u},$o(t),vi(t,st,u)):((e.lanes&i)!==0&&(Po(e,t),Ua(t,null,null,i),La()),u=e.memoizedState,d=t.memoizedState,u.parent!==r?(u={parent:r,cache:r},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),vi(t,st,r)):(r=d.cache,vi(t,st,r),r!==u.cache&&Go(t,[st],i,!0))),Et(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function li(e){e.flags|=4}function _u(e,t,i,r,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Om())e.flags|=8192;else throw ll=Xr,Zo}else e.flags&=-16777217}function om(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!wp(t))if(Om())e.flags|=8192;else throw ll=Xr,Zo}function us(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ot():536870912,e.lanes|=t,Pl|=t)}function Fa(e,t){if(!Re)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var r=null;i!==null;)i.alternate!==null&&(r=i),i=i.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,r=0;if(t)for(var u=e.child;u!==null;)i|=u.lanes|u.childLanes,r|=u.subtreeFlags&65011712,r|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)i|=u.lanes|u.childLanes,r|=u.subtreeFlags,r|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=r,e.childLanes=i,t}function Wx(e,t,i){var r=t.pendingProps;switch(Ho(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return Pe(t),null;case 3:return i=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ei(st),we(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Bl(t)?li(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Yo())),Pe(t),null;case 26:var u=t.type,d=t.memoizedState;return e===null?(li(t),d!==null?(Pe(t),om(t,d)):(Pe(t),_u(t,u,null,r,i))):d?d!==e.memoizedState?(li(t),Pe(t),om(t,d)):(Pe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&li(t),Pe(t),_u(t,u,e,r,i)),null;case 27:if(St(t),i=ae.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&li(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return Pe(t),null}e=Q.current,Bl(t)?Qd(t):(e=pp(u,r,i),t.stateNode=e,li(t))}return Pe(t),null;case 5:if(St(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&li(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return Pe(t),null}if(d=Q.current,Bl(t))Qd(t);else{var b=zs(ae.current);switch(d){case 1:d=b.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:d=b.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":d=b.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":d=b.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":d=b.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof r.is=="string"?b.createElement("select",{is:r.is}):b.createElement("select"),r.multiple?d.multiple=!0:r.size&&(d.size=r.size);break;default:d=typeof r.is=="string"?b.createElement(u,{is:r.is}):b.createElement(u)}}d[Ct]=t,d[Gt]=r;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)d.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===t)break e;for(;b.sibling===null;){if(b.return===null||b.return===t)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}t.stateNode=d;e:switch(At(d,u,r),u){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&li(t)}}return Pe(t),_u(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&li(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(s(166));if(e=ae.current,Bl(t)){if(e=t.stateNode,i=t.memoizedProps,r=null,u=Nt,u!==null)switch(u.tag){case 27:case 5:r=u.memoizedProps}e[Ct]=t,e=!!(e.nodeValue===i||r!==null&&r.suppressHydrationWarning===!0||lp(e.nodeValue,i)),e||bi(t,!0)}else e=zs(e).createTextNode(r),e[Ct]=t,t.stateNode=e}return Pe(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(r=Bl(t),i!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Ct]=t}else Wi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),e=!1}else i=Yo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(an(t),t):(an(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Pe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Bl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[Ct]=t}else Wi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),u=!1}else u=Yo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(an(t),t):(an(t),null)}return an(t),(t.flags&128)!==0?(t.lanes=i,t):(i=r!==null,e=e!==null&&e.memoizedState!==null,i&&(r=t.child,u=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(u=r.alternate.memoizedState.cachePool.pool),d=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(d=r.memoizedState.cachePool.pool),d!==u&&(r.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),us(t,t.updateQueue),Pe(t),null);case 4:return we(),e===null&&ec(t.stateNode.containerInfo),Pe(t),null;case 10:return ei(t.type),Pe(t),null;case 19:if(V(at),r=t.memoizedState,r===null)return Pe(t),null;if(u=(t.flags&128)!==0,d=r.rendering,d===null)if(u)Fa(r,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=$r(e),d!==null){for(t.flags|=128,Fa(r,!1),e=d.updateQueue,t.updateQueue=e,us(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)Ld(i,e),i=i.sibling;return S(at,at.current&1|2),Re&&Jn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&wt()>ms&&(t.flags|=128,u=!0,Fa(r,!1),t.lanes=4194304)}else{if(!u)if(e=$r(d),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,us(t,e),Fa(r,!0),r.tail===null&&r.tailMode==="hidden"&&!d.alternate&&!Re)return Pe(t),null}else 2*wt()-r.renderingStartTime>ms&&i!==536870912&&(t.flags|=128,u=!0,Fa(r,!1),t.lanes=4194304);r.isBackwards?(d.sibling=t.child,t.child=d):(e=r.last,e!==null?e.sibling=d:t.child=d,r.last=d)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=wt(),e.sibling=null,i=at.current,S(at,u?i&1|2:i&1),Re&&Jn(t,r.treeForkCount),e):(Pe(t),null);case 22:case 23:return an(t),tu(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(i&536870912)!==0&&(t.flags&128)===0&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),i=t.updateQueue,i!==null&&us(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==i&&(t.flags|=2048),e!==null&&V(nl),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),ei(st),Pe(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function e1(e,t){switch(Ho(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ei(st),we(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return St(t),null;case 31:if(t.memoizedState!==null){if(an(t),t.alternate===null)throw Error(s(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(an(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(at),null;case 4:return we(),null;case 10:return ei(t.type),null;case 22:case 23:return an(t),tu(),e!==null&&V(nl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ei(st),null;case 25:return null;default:return null}}function um(e,t){switch(Ho(t),t.tag){case 3:ei(st),we();break;case 26:case 27:case 5:St(t);break;case 4:we();break;case 31:t.memoizedState!==null&&an(t);break;case 13:an(t);break;case 19:V(at);break;case 10:ei(t.type);break;case 22:case 23:an(t),tu(),e!==null&&V(nl);break;case 24:ei(st)}}function Va(e,t){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var u=r.next;i=u;do{if((i.tag&e)===e){r=void 0;var d=i.create,b=i.inst;r=d(),b.destroy=r}i=i.next}while(i!==u)}}catch(w){Ye(t,t.return,w)}}function Ci(e,t,i){try{var r=t.updateQueue,u=r!==null?r.lastEffect:null;if(u!==null){var d=u.next;r=d;do{if((r.tag&e)===e){var b=r.inst,w=b.destroy;if(w!==void 0){b.destroy=void 0,u=t;var N=i,B=w;try{B()}catch(X){Ye(u,N,X)}}}r=r.next}while(r!==d)}}catch(X){Ye(t,t.return,X)}}function cm(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{eh(t,i)}catch(r){Ye(e,e.return,r)}}}function fm(e,t,i){i.props=sl(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(r){Ye(e,t,r)}}function Ga(e,t){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof i=="function"?e.refCleanup=i(r):i.current=r}}catch(u){Ye(e,t,u)}}function Qn(e,t){var i=e.ref,r=e.refCleanup;if(i!==null)if(typeof r=="function")try{r()}catch(u){Ye(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(u){Ye(e,t,u)}else i.current=null}function dm(e){var t=e.type,i=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&r.focus();break e;case"img":i.src?r.src=i.src:i.srcSet&&(r.srcset=i.srcSet)}}catch(u){Ye(e,e.return,u)}}function Mu(e,t,i){try{var r=e.stateNode;k1(r,e.type,i,t),r[Gt]=t}catch(u){Ye(e,e.return,u)}}function hm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Mi(e.type)||e.tag===4}function Ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hm(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&&Mi(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 Ru(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=Zn));else if(r!==4&&(r===27&&Mi(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(Ru(e,t,i),e=e.sibling;e!==null;)Ru(e,t,i),e=e.sibling}function cs(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(r!==4&&(r===27&&Mi(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(cs(e,t,i),e=e.sibling;e!==null;)cs(e,t,i),e=e.sibling}function mm(e){var t=e.stateNode,i=e.memoizedProps;try{for(var r=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);At(t,r,i),t[Ct]=e,t[Gt]=i}catch(d){Ye(e,e.return,d)}}var ai=!1,ct=!1,Lu=!1,pm=typeof WeakSet=="function"?WeakSet:Set,bt=null;function t1(e,t){if(e=e.containerInfo,ic=Ds,e=Nd(e),Eo(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var r=i.getSelection&&i.getSelection();if(r&&r.rangeCount!==0){i=r.anchorNode;var u=r.anchorOffset,d=r.focusNode;r=r.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var b=0,w=-1,N=-1,B=0,X=0,J=e,H=null;t:for(;;){for(var F;J!==i||u!==0&&J.nodeType!==3||(w=b+u),J!==d||r!==0&&J.nodeType!==3||(N=b+r),J.nodeType===3&&(b+=J.nodeValue.length),(F=J.firstChild)!==null;)H=J,J=F;for(;;){if(J===e)break t;if(H===i&&++B===u&&(w=b),H===d&&++X===r&&(N=b),(F=J.nextSibling)!==null)break;J=H,H=J.parentNode}J=F}i=w===-1||N===-1?null:{start:w,end:N}}else i=null}i=i||{start:0,end:0}}else i=null;for(lc={focusedElem:e,selectionRange:i},Ds=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){switch(t=bt,d=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(i=0;i<e.length;i++)u=e[i],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,i=t,u=d.memoizedProps,d=d.memoizedState,r=i.stateNode;try{var fe=sl(i.type,u);e=r.getSnapshotBeforeUpdate(fe,d),r.__reactInternalSnapshotBeforeUpdate=e}catch(ve){Ye(i,i.return,ve)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)sc(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":sc(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}}function gm(e,t,i){var r=i.flags;switch(i.tag){case 0:case 11:case 15:si(e,i),r&4&&Va(5,i);break;case 1:if(si(e,i),r&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(b){Ye(i,i.return,b)}else{var u=sl(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Ye(i,i.return,b)}}r&64&&cm(i),r&512&&Ga(i,i.return);break;case 3:if(si(e,i),r&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{eh(e,t)}catch(b){Ye(i,i.return,b)}}break;case 27:t===null&&r&4&&mm(i);case 26:case 5:si(e,i),t===null&&r&4&&dm(i),r&512&&Ga(i,i.return);break;case 12:si(e,i);break;case 31:si(e,i),r&4&&bm(e,i);break;case 13:si(e,i),r&4&&vm(e,i),r&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=c1.bind(null,i),A1(e,i))));break;case 22:if(r=i.memoizedState!==null||ai,!r){t=t!==null&&t.memoizedState!==null||ct,u=ai;var d=ct;ai=r,(ct=t)&&!d?oi(e,i,(i.subtreeFlags&8772)!==0):si(e,i),ai=u,ct=d}break;case 30:break;default:si(e,i)}}function ym(e){var t=e.alternate;t!==null&&(e.alternate=null,ym(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&fo(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 We=null,It=!1;function ri(e,t,i){for(i=i.child;i!==null;)xm(e,t,i),i=i.sibling}function xm(e,t,i){if(lt&&typeof lt.onCommitFiberUnmount=="function")try{lt.onCommitFiberUnmount(zt,i)}catch{}switch(i.tag){case 26:ct||Qn(i,t),ri(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:ct||Qn(i,t);var r=We,u=It;Mi(i.type)&&(We=i.stateNode,It=!1),ri(e,t,i),er(i.stateNode),We=r,It=u;break;case 5:ct||Qn(i,t);case 6:if(r=We,u=It,We=null,ri(e,t,i),We=r,It=u,We!==null)if(It)try{(We.nodeType===9?We.body:We.nodeName==="HTML"?We.ownerDocument.body:We).removeChild(i.stateNode)}catch(d){Ye(i,t,d)}else try{We.removeChild(i.stateNode)}catch(d){Ye(i,t,d)}break;case 18:We!==null&&(It?(e=We,cp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),aa(e)):cp(We,i.stateNode));break;case 4:r=We,u=It,We=i.stateNode.containerInfo,It=!0,ri(e,t,i),We=r,It=u;break;case 0:case 11:case 14:case 15:Ci(2,i,t),ct||Ci(4,i,t),ri(e,t,i);break;case 1:ct||(Qn(i,t),r=i.stateNode,typeof r.componentWillUnmount=="function"&&fm(i,t,r)),ri(e,t,i);break;case 21:ri(e,t,i);break;case 22:ct=(r=ct)||i.memoizedState!==null,ri(e,t,i),ct=r;break;default:ri(e,t,i)}}function bm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{aa(e)}catch(i){Ye(t,t.return,i)}}}function vm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{aa(e)}catch(i){Ye(t,t.return,i)}}function n1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pm),t;default:throw Error(s(435,e.tag))}}function fs(e,t){var i=n1(e);t.forEach(function(r){if(!i.has(r)){i.add(r);var u=f1.bind(null,e,r);r.then(u,u)}})}function Kt(e,t){var i=t.deletions;if(i!==null)for(var r=0;r<i.length;r++){var u=i[r],d=e,b=t,w=b;e:for(;w!==null;){switch(w.tag){case 27:if(Mi(w.type)){We=w.stateNode,It=!1;break e}break;case 5:We=w.stateNode,It=!1;break e;case 3:case 4:We=w.stateNode.containerInfo,It=!0;break e}w=w.return}if(We===null)throw Error(s(160));xm(d,b,u),We=null,It=!1,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sm(t,e),t=t.sibling}var An=null;function Sm(e,t){var i=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Kt(t,e),Zt(e),r&4&&(Ci(3,e,e.return),Va(3,e),Ci(5,e,e.return));break;case 1:Kt(t,e),Zt(e),r&512&&(ct||i===null||Qn(i,i.return)),r&64&&ai&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?r:i.concat(r))));break;case 26:var u=An;if(Kt(t,e),Zt(e),r&512&&(ct||i===null||Qn(i,i.return)),r&4){var d=i!==null?i.memoizedState:null;if(r=e.memoizedState,i===null)if(r===null)if(e.stateNode===null){e:{r=e.type,i=e.memoizedProps,u=u.ownerDocument||u;t:switch(r){case"title":d=u.getElementsByTagName("title")[0],(!d||d[xa]||d[Ct]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(r),u.head.insertBefore(d,u.querySelector("head > title"))),At(d,r,i),d[Ct]=e,xt(d),r=d;break e;case"link":var b=Sp("link","href",u).get(r+(i.href||""));if(b){for(var w=0;w<b.length;w++)if(d=b[w],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice(w,1);break t}}d=u.createElement(r),At(d,r,i),u.head.appendChild(d);break;case"meta":if(b=Sp("meta","content",u).get(r+(i.content||""))){for(w=0;w<b.length;w++)if(d=b[w],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice(w,1);break t}}d=u.createElement(r),At(d,r,i),u.head.appendChild(d);break;default:throw Error(s(468,r))}d[Ct]=e,xt(d),r=d}e.stateNode=r}else kp(u,e.type,e.stateNode);else e.stateNode=vp(u,r,e.memoizedProps);else d!==r?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,r===null?kp(u,e.type,e.stateNode):vp(u,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Mu(e,e.memoizedProps,i.memoizedProps)}break;case 27:Kt(t,e),Zt(e),r&512&&(ct||i===null||Qn(i,i.return)),i!==null&&r&4&&Mu(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Kt(t,e),Zt(e),r&512&&(ct||i===null||Qn(i,i.return)),e.flags&32){u=e.stateNode;try{Tl(u,"")}catch(fe){Ye(e,e.return,fe)}}r&4&&e.stateNode!=null&&(u=e.memoizedProps,Mu(e,u,i!==null?i.memoizedProps:u)),r&1024&&(Lu=!0);break;case 6:if(Kt(t,e),Zt(e),r&4){if(e.stateNode===null)throw Error(s(162));r=e.memoizedProps,i=e.stateNode;try{i.nodeValue=r}catch(fe){Ye(e,e.return,fe)}}break;case 3:if(Ns=null,u=An,An=js(t.containerInfo),Kt(t,e),An=u,Zt(e),r&4&&i!==null&&i.memoizedState.isDehydrated)try{aa(t.containerInfo)}catch(fe){Ye(e,e.return,fe)}Lu&&(Lu=!1,km(e));break;case 4:r=An,An=js(e.stateNode.containerInfo),Kt(t,e),Zt(e),An=r;break;case 12:Kt(t,e),Zt(e);break;case 31:Kt(t,e),Zt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,fs(e,r)));break;case 13:Kt(t,e),Zt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(hs=wt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,fs(e,r)));break;case 22:u=e.memoizedState!==null;var N=i!==null&&i.memoizedState!==null,B=ai,X=ct;if(ai=B||u,ct=X||N,Kt(t,e),ct=X,ai=B,Zt(e),r&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(i===null||N||ai||ct||ol(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){N=i=t;try{if(d=N.stateNode,u)b=d.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{w=N.stateNode;var J=N.memoizedProps.style,H=J!=null&&J.hasOwnProperty("display")?J.display:null;w.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(fe){Ye(N,N.return,fe)}}}else if(t.tag===6){if(i===null){N=t;try{N.stateNode.nodeValue=u?"":N.memoizedProps}catch(fe){Ye(N,N.return,fe)}}}else if(t.tag===18){if(i===null){N=t;try{var F=N.stateNode;u?fp(F,!0):fp(N.stateNode,!1)}catch(fe){Ye(N,N.return,fe)}}}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;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(i=r.retryQueue,i!==null&&(r.retryQueue=null,fs(e,i))));break;case 19:Kt(t,e),Zt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,fs(e,r)));break;case 30:break;case 21:break;default:Kt(t,e),Zt(e)}}function Zt(e){var t=e.flags;if(t&2){try{for(var i,r=e.return;r!==null;){if(hm(r)){i=r;break}r=r.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var u=i.stateNode,d=Ou(e);cs(e,d,u);break;case 5:var b=i.stateNode;i.flags&32&&(Tl(b,""),i.flags&=-33);var w=Ou(e);cs(e,w,b);break;case 3:case 4:var N=i.stateNode.containerInfo,B=Ou(e);Ru(e,B,N);break;default:throw Error(s(161))}}catch(X){Ye(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function km(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;km(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function si(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gm(e,t.alternate,t),t=t.sibling}function ol(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ci(4,t,t.return),ol(t);break;case 1:Qn(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&fm(t,t.return,i),ol(t);break;case 27:er(t.stateNode);case 26:case 5:Qn(t,t.return),ol(t);break;case 22:t.memoizedState===null&&ol(t);break;case 30:ol(t);break;default:ol(t)}e=e.sibling}}function oi(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,u=e,d=t,b=d.flags;switch(d.tag){case 0:case 11:case 15:oi(u,d,i),Va(4,d);break;case 1:if(oi(u,d,i),r=d,u=r.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(B){Ye(r,r.return,B)}if(r=d,u=r.updateQueue,u!==null){var w=r.stateNode;try{var N=u.shared.hiddenCallbacks;if(N!==null)for(u.shared.hiddenCallbacks=null,u=0;u<N.length;u++)Wd(N[u],w)}catch(B){Ye(r,r.return,B)}}i&&b&64&&cm(d),Ga(d,d.return);break;case 27:mm(d);case 26:case 5:oi(u,d,i),i&&r===null&&b&4&&dm(d),Ga(d,d.return);break;case 12:oi(u,d,i);break;case 31:oi(u,d,i),i&&b&4&&bm(u,d);break;case 13:oi(u,d,i),i&&b&4&&vm(u,d);break;case 22:d.memoizedState===null&&oi(u,d,i),Ga(d,d.return);break;case 30:break;default:oi(u,d,i)}t=t.sibling}}function Uu(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&Da(i))}function Bu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Da(e))}function Dn(e,t,i,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wm(e,t,i,r),t=t.sibling}function wm(e,t,i,r){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Dn(e,t,i,r),u&2048&&Va(9,t);break;case 1:Dn(e,t,i,r);break;case 3:Dn(e,t,i,r),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Da(e)));break;case 12:if(u&2048){Dn(e,t,i,r),e=t.stateNode;try{var d=t.memoizedProps,b=d.id,w=d.onPostCommit;typeof w=="function"&&w(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){Ye(t,t.return,N)}}else Dn(e,t,i,r);break;case 31:Dn(e,t,i,r);break;case 13:Dn(e,t,i,r);break;case 23:break;case 22:d=t.stateNode,b=t.alternate,t.memoizedState!==null?d._visibility&2?Dn(e,t,i,r):Xa(e,t):d._visibility&2?Dn(e,t,i,r):(d._visibility|=2,Kl(e,t,i,r,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Uu(b,t);break;case 24:Dn(e,t,i,r),u&2048&&Bu(t.alternate,t);break;default:Dn(e,t,i,r)}}function Kl(e,t,i,r,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,b=t,w=i,N=r,B=b.flags;switch(b.tag){case 0:case 11:case 15:Kl(d,b,w,N,u),Va(8,b);break;case 23:break;case 22:var X=b.stateNode;b.memoizedState!==null?X._visibility&2?Kl(d,b,w,N,u):Xa(d,b):(X._visibility|=2,Kl(d,b,w,N,u)),u&&B&2048&&Uu(b.alternate,b);break;case 24:Kl(d,b,w,N,u),u&&B&2048&&Bu(b.alternate,b);break;default:Kl(d,b,w,N,u)}t=t.sibling}}function Xa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,r=t,u=r.flags;switch(r.tag){case 22:Xa(i,r),u&2048&&Uu(r.alternate,r);break;case 24:Xa(i,r),u&2048&&Bu(r.alternate,r);break;default:Xa(i,r)}t=t.sibling}}var Ia=8192;function Zl(e,t,i){if(e.subtreeFlags&Ia)for(e=e.child;e!==null;)zm(e,t,i),e=e.sibling}function zm(e,t,i){switch(e.tag){case 26:Zl(e,t,i),e.flags&Ia&&e.memoizedState!==null&&Y1(i,An,e.memoizedState,e.memoizedProps);break;case 5:Zl(e,t,i);break;case 3:case 4:var r=An;An=js(e.stateNode.containerInfo),Zl(e,t,i),An=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ia,Ia=16777216,Zl(e,t,i),Ia=r):Zl(e,t,i));break;default:Zl(e,t,i)}}function jm(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 Ka(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var r=t[i];bt=r,Nm(r,e)}jm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cm(e),e=e.sibling}function Cm(e){switch(e.tag){case 0:case 11:case 15:Ka(e),e.flags&2048&&Ci(9,e,e.return);break;case 3:Ka(e);break;case 12:Ka(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ds(e)):Ka(e);break;default:Ka(e)}}function ds(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var r=t[i];bt=r,Nm(r,e)}jm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ci(8,t,t.return),ds(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,ds(t));break;default:ds(t)}e=e.sibling}}function Nm(e,t){for(;bt!==null;){var i=bt;switch(i.tag){case 0:case 11:case 15:Ci(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var r=i.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Da(i.memoizedState.cache)}if(r=i.child,r!==null)r.return=i,bt=r;else e:for(i=e;bt!==null;){r=bt;var u=r.sibling,d=r.return;if(ym(r),r===i){bt=null;break e}if(u!==null){u.return=d,bt=u;break e}bt=d}}}var i1={getCacheForType:function(e){var t=Tt(st),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return Tt(st).controller.signal}},l1=typeof WeakMap=="function"?WeakMap:Map,qe=0,Ie=null,Ae=null,Me=0,Qe=0,rn=null,Ni=!1,$l=!1,qu=!1,ui=0,it=0,Ti=0,ul=0,Hu=0,sn=0,Pl=0,Za=null,$t=null,Qu=!1,hs=0,Tm=0,ms=1/0,ps=null,Ei=null,mt=0,Ai=null,Jl=null,ci=0,Yu=0,Fu=null,Em=null,$a=0,Vu=null;function on(){return(qe&2)!==0&&Me!==0?Me&-Me:_.T!==null?$u():uo()}function Am(){if(sn===0)if((Me&536870912)===0||Re){var e=vl;vl<<=1,(vl&3932160)===0&&(vl=262144),sn=e}else sn=536870912;return e=ln.current,e!==null&&(e.flags|=32),sn}function Pt(e,t,i){(e===Ie&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)&&(Wl(e,0),Di(e,Me,sn,!1)),et(e,i),((qe&2)===0||e!==Ie)&&(e===Ie&&((qe&2)===0&&(ul|=i),it===4&&Di(e,Me,sn,!1)),Yn(e))}function Dm(e,t,i){if((qe&6)!==0)throw Error(s(327));var r=!i&&(t&127)===0&&(t&e.expiredLanes)===0||Je(e,t),u=r?s1(e,t):Xu(e,t,!0),d=r;do{if(u===0){$l&&!r&&Di(e,t,0,!1);break}else{if(i=e.current.alternate,d&&!a1(i)){u=Xu(e,t,!1),d=!1;continue}if(u===2){if(d=t,e.errorRecoveryDisabledLanes&d)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){t=b;e:{var w=e;u=Za;var N=w.current.memoizedState.isDehydrated;if(N&&(Wl(w,b).flags|=256),b=Xu(w,b,!1),b!==2){if(qu&&!N){w.errorRecoveryDisabledLanes|=d,ul|=d,u=4;break e}d=$t,$t=u,d!==null&&($t===null?$t=d:$t.push.apply($t,d))}u=b}if(d=!1,u!==2)continue}}if(u===1){Wl(e,0),Di(e,t,0,!0);break}e:{switch(r=e,d=u,d){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Di(r,t,sn,!Ni);break e;case 2:$t=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=hs+300-wt(),10<u)){if(Di(r,t,sn,!Ni),ke(r,0,!0)!==0)break e;ci=t,r.timeoutHandle=op(_m.bind(null,r,i,$t,ps,Qu,t,sn,ul,Pl,Ni,d,"Throttled",-0,0),u);break e}_m(r,i,$t,ps,Qu,t,sn,ul,Pl,Ni,d,null,-0,0)}}break}while(!0);Yn(e)}function _m(e,t,i,r,u,d,b,w,N,B,X,J,H,F){if(e.timeoutHandle=-1,J=t.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zn},zm(t,d,J);var fe=(d&62914560)===d?hs-wt():(d&4194048)===d?Tm-wt():0;if(fe=F1(J,fe),fe!==null){ci=d,e.cancelPendingCommit=fe(Hm.bind(null,e,t,d,i,r,u,b,w,N,X,J,null,H,F)),Di(e,d,b,!B);return}}Hm(e,t,d,i,r,u,b,w,N)}function a1(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var r=0;r<i.length;r++){var u=i[r],d=u.getSnapshot;u=u.value;try{if(!tn(d(),u))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;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 Di(e,t,i,r){t&=~Hu,t&=~ul,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var u=t;0<u;){var d=31-He(u),b=1<<d;r[d]=-1,u&=~b}i!==0&&Xi(e,i,t)}function gs(){return(qe&6)===0?(Pa(0),!1):!0}function Gu(){if(Ae!==null){if(Qe===0)var e=Ae.return;else e=Ae,Wn=el=null,su(e),Fl=null,Ma=0,e=Ae;for(;e!==null;)um(e.alternate,e),e=e.return;Ae=null}}function Wl(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,j1(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),ci=0,Gu(),Ie=e,Ae=i=Pn(e.current,null),Me=t,Qe=0,rn=null,Ni=!1,$l=Je(e,t),qu=!1,Pl=sn=Hu=ul=Ti=it=0,$t=Za=null,Qu=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var u=31-He(r),d=1<<u;t|=e[u],r&=~d}return ui=t,Ur(),i}function Mm(e,t){je=null,_.H=Qa,t===Yl||t===Gr?(t=Zd(),Qe=3):t===Zo?(t=Zd(),Qe=4):Qe=t===wu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,rn=t,Ae===null&&(it=1,as(e,pn(t,e.current)))}function Om(){var e=ln.current;return e===null?!0:(Me&4194048)===Me?bn===null:(Me&62914560)===Me||(Me&536870912)!==0?e===bn:!1}function Rm(){var e=_.H;return _.H=Qa,e===null?Qa:e}function Lm(){var e=_.A;return _.A=i1,e}function ys(){it=4,Ni||(Me&4194048)!==Me&&ln.current!==null||($l=!0),(Ti&134217727)===0&&(ul&134217727)===0||Ie===null||Di(Ie,Me,sn,!1)}function Xu(e,t,i){var r=qe;qe|=2;var u=Rm(),d=Lm();(Ie!==e||Me!==t)&&(ps=null,Wl(e,t)),t=!1;var b=it;e:do try{if(Qe!==0&&Ae!==null){var w=Ae,N=rn;switch(Qe){case 8:Gu(),b=6;break e;case 3:case 2:case 9:case 6:ln.current===null&&(t=!0);var B=Qe;if(Qe=0,rn=null,ea(e,w,N,B),i&&$l){b=0;break e}break;default:B=Qe,Qe=0,rn=null,ea(e,w,N,B)}}r1(),b=it;break}catch(X){Mm(e,X)}while(!0);return t&&e.shellSuspendCounter++,Wn=el=null,qe=r,_.H=u,_.A=d,Ae===null&&(Ie=null,Me=0,Ur()),b}function r1(){for(;Ae!==null;)Um(Ae)}function s1(e,t){var i=qe;qe|=2;var r=Rm(),u=Lm();Ie!==e||Me!==t?(ps=null,ms=wt()+500,Wl(e,t)):$l=Je(e,t);e:do try{if(Qe!==0&&Ae!==null){t=Ae;var d=rn;t:switch(Qe){case 1:Qe=0,rn=null,ea(e,t,d,1);break;case 2:case 9:if(Id(d)){Qe=0,rn=null,Bm(t);break}t=function(){Qe!==2&&Qe!==9||Ie!==e||(Qe=7),Yn(e)},d.then(t,t);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:Id(d)?(Qe=0,rn=null,Bm(t)):(Qe=0,rn=null,ea(e,t,d,7));break;case 5:var b=null;switch(Ae.tag){case 26:b=Ae.memoizedState;case 5:case 27:var w=Ae;if(b?wp(b):w.stateNode.complete){Qe=0,rn=null;var N=w.sibling;if(N!==null)Ae=N;else{var B=w.return;B!==null?(Ae=B,xs(B)):Ae=null}break t}}Qe=0,rn=null,ea(e,t,d,5);break;case 6:Qe=0,rn=null,ea(e,t,d,6);break;case 8:Gu(),it=6;break e;default:throw Error(s(462))}}o1();break}catch(X){Mm(e,X)}while(!0);return Wn=el=null,_.H=r,_.A=u,qe=i,Ae!==null?0:(Ie=null,Me=0,Ur(),it)}function o1(){for(;Ae!==null&&!kt();)Um(Ae)}function Um(e){var t=sm(e.alternate,e,ui);e.memoizedProps=e.pendingProps,t===null?xs(e):Ae=t}function Bm(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=tm(i,t,t.pendingProps,t.type,void 0,Me);break;case 11:t=tm(i,t,t.pendingProps,t.type.render,t.ref,Me);break;case 5:su(t);default:um(i,t),t=Ae=Ld(t,ui),t=sm(i,t,ui)}e.memoizedProps=e.pendingProps,t===null?xs(e):Ae=t}function ea(e,t,i,r){Wn=el=null,su(t),Fl=null,Ma=0;var u=t.return;try{if($x(e,u,t,i,Me)){it=1,as(e,pn(i,e.current)),Ae=null;return}}catch(d){if(u!==null)throw Ae=u,d;it=1,as(e,pn(i,e.current)),Ae=null;return}t.flags&32768?(Re||r===1?e=!0:$l||(Me&536870912)!==0?e=!1:(Ni=e=!0,(r===2||r===9||r===3||r===6)&&(r=ln.current,r!==null&&r.tag===13&&(r.flags|=16384))),qm(t,e)):xs(t)}function xs(e){var t=e;do{if((t.flags&32768)!==0){qm(t,Ni);return}e=t.return;var i=Wx(t.alternate,t,ui);if(i!==null){Ae=i;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);it===0&&(it=5)}function qm(e,t){do{var i=e1(e.alternate,e);if(i!==null){i.flags&=32767,Ae=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=i}while(e!==null);it=6,Ae=null}function Hm(e,t,i,r,u,d,b,w,N){e.cancelPendingCommit=null;do bs();while(mt!==0);if((qe&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(d=t.lanes|t.childLanes,d|=Oo,Yt(e,i,d,b,w,N),e===Ie&&(Ae=Ie=null,Me=0),Jl=t,Ai=e,ci=i,Yu=d,Fu=u,Em=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,d1(be,function(){return Gm(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=_.T,_.T=null,u=$.p,$.p=2,b=qe,qe|=4;try{t1(e,t,i)}finally{qe=b,$.p=u,_.T=r}}mt=1,Qm(),Ym(),Fm()}}function Qm(){if(mt===1){mt=0;var e=Ai,t=Jl,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=_.T,_.T=null;var r=$.p;$.p=2;var u=qe;qe|=4;try{Sm(t,e);var d=lc,b=Nd(e.containerInfo),w=d.focusedElem,N=d.selectionRange;if(b!==w&&w&&w.ownerDocument&&Cd(w.ownerDocument.documentElement,w)){if(N!==null&&Eo(w)){var B=N.start,X=N.end;if(X===void 0&&(X=B),"selectionStart"in w)w.selectionStart=B,w.selectionEnd=Math.min(X,w.value.length);else{var J=w.ownerDocument||document,H=J&&J.defaultView||window;if(H.getSelection){var F=H.getSelection(),fe=w.textContent.length,ve=Math.min(N.start,fe),Ge=N.end===void 0?ve:Math.min(N.end,fe);!F.extend&&ve>Ge&&(b=Ge,Ge=ve,ve=b);var O=jd(w,ve),A=jd(w,Ge);if(O&&A&&(F.rangeCount!==1||F.anchorNode!==O.node||F.anchorOffset!==O.offset||F.focusNode!==A.node||F.focusOffset!==A.offset)){var U=J.createRange();U.setStart(O.node,O.offset),F.removeAllRanges(),ve>Ge?(F.addRange(U),F.extend(A.node,A.offset)):(U.setEnd(A.node,A.offset),F.addRange(U))}}}}for(J=[],F=w;F=F.parentNode;)F.nodeType===1&&J.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<J.length;w++){var Z=J[w];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Ds=!!ic,lc=ic=null}finally{qe=u,$.p=r,_.T=i}}e.current=t,mt=2}}function Ym(){if(mt===2){mt=0;var e=Ai,t=Jl,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=_.T,_.T=null;var r=$.p;$.p=2;var u=qe;qe|=4;try{gm(e,t.alternate,t)}finally{qe=u,$.p=r,_.T=i}}mt=3}}function Fm(){if(mt===4||mt===3){mt=0,Rn();var e=Ai,t=Jl,i=ci,r=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?mt=5:(mt=0,Jl=Ai=null,Vm(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Ei=null),Tn(i),t=t.stateNode,lt&&typeof lt.onCommitFiberRoot=="function")try{lt.onCommitFiberRoot(zt,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=_.T,u=$.p,$.p=2,_.T=null;try{for(var d=e.onRecoverableError,b=0;b<r.length;b++){var w=r[b];d(w.value,{componentStack:w.stack})}}finally{_.T=t,$.p=u}}(ci&3)!==0&&bs(),Yn(e),u=e.pendingLanes,(i&261930)!==0&&(u&42)!==0?e===Vu?$a++:($a=0,Vu=e):$a=0,Pa(0)}}function Vm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Da(t)))}function bs(){return Qm(),Ym(),Fm(),Gm()}function Gm(){if(mt!==5)return!1;var e=Ai,t=Yu;Yu=0;var i=Tn(ci),r=_.T,u=$.p;try{$.p=32>i?32:i,_.T=null,i=Fu,Fu=null;var d=Ai,b=ci;if(mt=0,Jl=Ai=null,ci=0,(qe&6)!==0)throw Error(s(331));var w=qe;if(qe|=4,Cm(d.current),wm(d,d.current,b,i),qe=w,Pa(0,!1),lt&&typeof lt.onPostCommitFiberRoot=="function")try{lt.onPostCommitFiberRoot(zt,d)}catch{}return!0}finally{$.p=u,_.T=r,Vm(e,t)}}function Xm(e,t,i){t=pn(i,t),t=ku(e.stateNode,t,2),e=wi(e,t,2),e!==null&&(et(e,2),Yn(e))}function Ye(e,t,i){if(e.tag===3)Xm(e,e,i);else for(;t!==null;){if(t.tag===3){Xm(t,e,i);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ei===null||!Ei.has(r))){e=pn(i,e),i=Ih(2),r=wi(t,i,2),r!==null&&(Kh(i,r,t,e),et(r,2),Yn(r));break}}t=t.return}}function Iu(e,t,i){var r=e.pingCache;if(r===null){r=e.pingCache=new l1;var u=new Set;r.set(t,u)}else u=r.get(t),u===void 0&&(u=new Set,r.set(t,u));u.has(i)||(qu=!0,u.add(i),e=u1.bind(null,e,t,i),t.then(e,e))}function u1(e,t,i){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Ie===e&&(Me&i)===i&&(it===4||it===3&&(Me&62914560)===Me&&300>wt()-hs?(qe&2)===0&&Wl(e,0):Hu|=i,Pl===Me&&(Pl=0)),Yn(e)}function Im(e,t){t===0&&(t=Ot()),e=Pi(e,t),e!==null&&(et(e,t),Yn(e))}function c1(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),Im(e,i)}function f1(e,t){var i=0;switch(e.tag){case 31:case 13:var r=e.stateNode,u=e.memoizedState;u!==null&&(i=u.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),Im(e,i)}function d1(e,t){return hi(e,t)}var vs=null,ta=null,Ku=!1,Ss=!1,Zu=!1,_i=0;function Yn(e){e!==ta&&e.next===null&&(ta===null?vs=ta=e:ta=ta.next=e),Ss=!0,Ku||(Ku=!0,m1())}function Pa(e,t){if(!Zu&&Ss){Zu=!0;do for(var i=!1,r=vs;r!==null;){if(e!==0){var u=r.pendingLanes;if(u===0)var d=0;else{var b=r.suspendedLanes,w=r.pingedLanes;d=(1<<31-He(42|e)+1)-1,d&=u&~(b&~w),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,Pm(r,d))}else d=Me,d=ke(r,r===Ie?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(d&3)===0||Je(r,d)||(i=!0,Pm(r,d));r=r.next}while(i);Zu=!1}}function h1(){Km()}function Km(){Ss=Ku=!1;var e=0;_i!==0&&z1()&&(e=_i);for(var t=wt(),i=null,r=vs;r!==null;){var u=r.next,d=Zm(r,t);d===0?(r.next=null,i===null?vs=u:i.next=u,u===null&&(ta=i)):(i=r,(e!==0||(d&3)!==0)&&(Ss=!0)),r=u}mt!==0&&mt!==5||Pa(e),_i!==0&&(_i=0)}function Zm(e,t){for(var i=e.suspendedLanes,r=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var b=31-He(d),w=1<<b,N=u[b];N===-1?((w&i)===0||(w&r)!==0)&&(u[b]=yt(w,t)):N<=t&&(e.expiredLanes|=w),d&=~w}if(t=Ie,i=Me,i=ke(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,i===0||e===t&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Vi(r),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||Je(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(r!==null&&Vi(r),Tn(i)){case 2:case 8:i=re;break;case 32:i=be;break;case 268435456:i=Ee;break;default:i=be}return r=$m.bind(null,e),i=hi(i,r),e.callbackPriority=t,e.callbackNode=i,t}return r!==null&&r!==null&&Vi(r),e.callbackPriority=2,e.callbackNode=null,2}function $m(e,t){if(mt!==0&&mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(bs()&&e.callbackNode!==i)return null;var r=Me;return r=ke(e,e===Ie?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Dm(e,r,t),Zm(e,wt()),e.callbackNode!=null&&e.callbackNode===i?$m.bind(null,e):null)}function Pm(e,t){if(bs())return null;Dm(e,t,!0)}function m1(){C1(function(){(qe&6)!==0?hi(I,h1):Km()})}function $u(){if(_i===0){var e=Hl;e===0&&(e=bl,bl<<=1,(bl&261888)===0&&(bl=256)),_i=e}return _i}function Jm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Er(""+e)}function Wm(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function p1(e,t,i,r,u){if(t==="submit"&&i&&i.stateNode===u){var d=Jm((u[Gt]||null).action),b=r.submitter;b&&(t=(t=b[Gt]||null)?Jm(t.formAction):b.getAttribute("formAction"),t!==null&&(d=t,b=null));var w=new Mr("action","action",null,r,u);e.push({event:w,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(_i!==0){var N=b?Wm(u,b):new FormData(u);gu(i,{pending:!0,data:N,method:u.method,action:d},null,N)}}else typeof d=="function"&&(w.preventDefault(),N=b?Wm(u,b):new FormData(u),gu(i,{pending:!0,data:N,method:u.method,action:d},d,N))},currentTarget:u}]})}}for(var Pu=0;Pu<Mo.length;Pu++){var Ju=Mo[Pu],g1=Ju.toLowerCase(),y1=Ju[0].toUpperCase()+Ju.slice(1);En(g1,"on"+y1)}En(Ad,"onAnimationEnd"),En(Dd,"onAnimationIteration"),En(_d,"onAnimationStart"),En("dblclick","onDoubleClick"),En("focusin","onFocus"),En("focusout","onBlur"),En(Mx,"onTransitionRun"),En(Ox,"onTransitionStart"),En(Rx,"onTransitionCancel"),En(Md,"onTransitionEnd"),Cl("onMouseEnter",["mouseout","mouseover"]),Cl("onMouseLeave",["mouseout","mouseover"]),Cl("onPointerEnter",["pointerout","pointerover"]),Cl("onPointerLeave",["pointerout","pointerover"]),Ii("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ii("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ii("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ii("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ii("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ii("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ja="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(" "),x1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ja));function ep(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var r=e[i],u=r.event;r=r.listeners;e:{var d=void 0;if(t)for(var b=r.length-1;0<=b;b--){var w=r[b],N=w.instance,B=w.currentTarget;if(w=w.listener,N!==d&&u.isPropagationStopped())break e;d=w,u.currentTarget=B;try{d(u)}catch(X){Lr(X)}u.currentTarget=null,d=N}else for(b=0;b<r.length;b++){if(w=r[b],N=w.instance,B=w.currentTarget,w=w.listener,N!==d&&u.isPropagationStopped())break e;d=w,u.currentTarget=B;try{d(u)}catch(X){Lr(X)}u.currentTarget=null,d=N}}}}function De(e,t){var i=t[co];i===void 0&&(i=t[co]=new Set);var r=e+"__bubble";i.has(r)||(tp(t,e,2,!1),i.add(r))}function Wu(e,t,i){var r=0;t&&(r|=4),tp(i,e,r,t)}var ks="_reactListening"+Math.random().toString(36).slice(2);function ec(e){if(!e[ks]){e[ks]=!0,Kf.forEach(function(i){i!=="selectionchange"&&(x1.has(i)||Wu(i,!1,e),Wu(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ks]||(t[ks]=!0,Wu("selectionchange",!1,t))}}function tp(e,t,i,r){switch(Ap(t)){case 2:var u=X1;break;case 8:u=I1;break;default:u=pc}i=u.bind(null,t,i,e),u=void 0,!vo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),r?u!==void 0?e.addEventListener(t,i,{capture:!0,passive:u}):e.addEventListener(t,i,!0):u!==void 0?e.addEventListener(t,i,{passive:u}):e.addEventListener(t,i,!1)}function tc(e,t,i,r,u){var d=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var b=r.tag;if(b===3||b===4){var w=r.stateNode.containerInfo;if(w===u)break;if(b===4)for(b=r.return;b!==null;){var N=b.tag;if((N===3||N===4)&&b.stateNode.containerInfo===u)return;b=b.return}for(;w!==null;){if(b=wl(w),b===null)return;if(N=b.tag,N===5||N===6||N===26||N===27){r=d=b;continue e}w=w.parentNode}}r=r.return}rd(function(){var B=d,X=xo(i),J=[];e:{var H=Od.get(e);if(H!==void 0){var F=Mr,fe=e;switch(e){case"keypress":if(Dr(i)===0)break e;case"keydown":case"keyup":F=fx;break;case"focusin":fe="focus",F=zo;break;case"focusout":fe="blur",F=zo;break;case"beforeblur":case"afterblur":F=zo;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=ud;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=Wy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=mx;break;case Ad:case Dd:case _d:F=nx;break;case Md:F=gx;break;case"scroll":case"scrollend":F=Py;break;case"wheel":F=xx;break;case"copy":case"cut":case"paste":F=lx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=fd;break;case"toggle":case"beforetoggle":F=vx}var ve=(t&4)!==0,Ge=!ve&&(e==="scroll"||e==="scrollend"),O=ve?H!==null?H+"Capture":null:H;ve=[];for(var A=B,U;A!==null;){var Z=A;if(U=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||U===null||O===null||(Z=va(A,O),Z!=null&&ve.push(Wa(A,Z,U))),Ge)break;A=A.return}0<ve.length&&(H=new F(H,fe,null,i,X),J.push({event:H,listeners:ve}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",H&&i!==yo&&(fe=i.relatedTarget||i.fromElement)&&(wl(fe)||fe[kl]))break e;if((F||H)&&(H=X.window===X?X:(H=X.ownerDocument)?H.defaultView||H.parentWindow:window,F?(fe=i.relatedTarget||i.toElement,F=B,fe=fe?wl(fe):null,fe!==null&&(Ge=c(fe),ve=fe.tag,fe!==Ge||ve!==5&&ve!==27&&ve!==6)&&(fe=null)):(F=null,fe=B),F!==fe)){if(ve=ud,Z="onMouseLeave",O="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(ve=fd,Z="onPointerLeave",O="onPointerEnter",A="pointer"),Ge=F==null?H:ba(F),U=fe==null?H:ba(fe),H=new ve(Z,A+"leave",F,i,X),H.target=Ge,H.relatedTarget=U,Z=null,wl(X)===B&&(ve=new ve(O,A+"enter",fe,i,X),ve.target=U,ve.relatedTarget=Ge,Z=ve),Ge=Z,F&&fe)t:{for(ve=b1,O=F,A=fe,U=0,Z=O;Z;Z=ve(Z))U++;Z=0;for(var ye=A;ye;ye=ve(ye))Z++;for(;0<U-Z;)O=ve(O),U--;for(;0<Z-U;)A=ve(A),Z--;for(;U--;){if(O===A||A!==null&&O===A.alternate){ve=O;break t}O=ve(O),A=ve(A)}ve=null}else ve=null;F!==null&&np(J,H,F,ve,!1),fe!==null&&Ge!==null&&np(J,Ge,fe,ve,!0)}}e:{if(H=B?ba(B):window,F=H.nodeName&&H.nodeName.toLowerCase(),F==="select"||F==="input"&&H.type==="file")var Ue=bd;else if(yd(H))if(vd)Ue=Ax;else{Ue=Tx;var he=Nx}else F=H.nodeName,!F||F.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?B&&go(B.elementType)&&(Ue=bd):Ue=Ex;if(Ue&&(Ue=Ue(e,B))){xd(J,Ue,i,X);break e}he&&he(e,H,B),e==="focusout"&&B&&H.type==="number"&&B.memoizedProps.value!=null&&po(H,"number",H.value)}switch(he=B?ba(B):window,e){case"focusin":(yd(he)||he.contentEditable==="true")&&(_l=he,Ao=B,Ta=null);break;case"focusout":Ta=Ao=_l=null;break;case"mousedown":Do=!0;break;case"contextmenu":case"mouseup":case"dragend":Do=!1,Td(J,i,X);break;case"selectionchange":if(_x)break;case"keydown":case"keyup":Td(J,i,X)}var Ne;if(Co)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else Dl?pd(e,i)&&(Oe="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Oe="onCompositionStart");Oe&&(dd&&i.locale!=="ko"&&(Dl||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Dl&&(Ne=sd()):(gi=X,So="value"in gi?gi.value:gi.textContent,Dl=!0)),he=ws(B,Oe),0<he.length&&(Oe=new cd(Oe,e,null,i,X),J.push({event:Oe,listeners:he}),Ne?Oe.data=Ne:(Ne=gd(i),Ne!==null&&(Oe.data=Ne)))),(Ne=kx?wx(e,i):zx(e,i))&&(Oe=ws(B,"onBeforeInput"),0<Oe.length&&(he=new cd("onBeforeInput","beforeinput",null,i,X),J.push({event:he,listeners:Oe}),he.data=Ne)),p1(J,e,B,i,X)}ep(J,t)})}function Wa(e,t,i){return{instance:e,listener:t,currentTarget:i}}function ws(e,t){for(var i=t+"Capture",r=[];e!==null;){var u=e,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=va(e,i),u!=null&&r.unshift(Wa(e,u,d)),u=va(e,t),u!=null&&r.push(Wa(e,u,d))),e.tag===3)return r;e=e.return}return[]}function b1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function np(e,t,i,r,u){for(var d=t._reactName,b=[];i!==null&&i!==r;){var w=i,N=w.alternate,B=w.stateNode;if(w=w.tag,N!==null&&N===r)break;w!==5&&w!==26&&w!==27||B===null||(N=B,u?(B=va(i,d),B!=null&&b.unshift(Wa(i,B,N))):u||(B=va(i,d),B!=null&&b.push(Wa(i,B,N)))),i=i.return}b.length!==0&&e.push({event:t,listeners:b})}var v1=/\r\n?/g,S1=/\u0000|\uFFFD/g;function ip(e){return(typeof e=="string"?e:""+e).replace(v1,`
|
|
9
|
-
`).replace(S1,"")}function lp(e,t){return t=ip(t),ip(e)===t}function Ve(e,t,i,r,u,d){switch(i){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Tl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Tl(e,""+r);break;case"className":Nr(e,"class",r);break;case"tabIndex":Nr(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Nr(e,i,r);break;case"style":ld(e,r,d);break;case"data":if(t!=="object"){Nr(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Er(""+r),e.setAttribute(i,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(i,"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 d=="function"&&(i==="formAction"?(t!=="input"&&Ve(e,t,"name",u.name,u,null),Ve(e,t,"formEncType",u.formEncType,u,null),Ve(e,t,"formMethod",u.formMethod,u,null),Ve(e,t,"formTarget",u.formTarget,u,null)):(Ve(e,t,"encType",u.encType,u,null),Ve(e,t,"method",u.method,u,null),Ve(e,t,"target",u.target,u,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Er(""+r),e.setAttribute(i,r);break;case"onClick":r!=null&&(e.onclick=Zn);break;case"onScroll":r!=null&&De("scroll",e);break;case"onScrollEnd":r!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(i=r.__html,i!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=i}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}i=Er(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,""+r):e.removeAttribute(i);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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":r===!0?e.setAttribute(i,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,r):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(i,r):e.removeAttribute(i);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(i):e.setAttribute(i,r);break;case"popover":De("beforetoggle",e),De("toggle",e),Cr(e,"popover",r);break;case"xlinkActuate":Kn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Kn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Kn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Kn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Kn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Kn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Kn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Kn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Kn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Cr(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=Zy.get(i)||i,Cr(e,i,r))}}function nc(e,t,i,r,u,d){switch(i){case"style":ld(e,r,d);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(i=r.__html,i!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=i}}break;case"children":typeof r=="string"?Tl(e,r):(typeof r=="number"||typeof r=="bigint")&&Tl(e,""+r);break;case"onScroll":r!=null&&De("scroll",e);break;case"onScrollEnd":r!=null&&De("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Zn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zf.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(u=i.endsWith("Capture"),t=i.slice(2,u?i.length-7:void 0),d=e[Gt]||null,d=d!=null?d[i]:null,typeof d=="function"&&e.removeEventListener(t,d,u),typeof r=="function")){typeof d!="function"&&d!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,r,u);break e}i in e?e[i]=r:r===!0?e.setAttribute(i,""):Cr(e,i,r)}}}function At(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("load",e);var r=!1,u=!1,d;for(d in i)if(i.hasOwnProperty(d)){var b=i[d];if(b!=null)switch(d){case"src":r=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ve(e,t,d,b,i,null)}}u&&Ve(e,t,"srcSet",i.srcSet,i,null),r&&Ve(e,t,"src",i.src,i,null);return;case"input":De("invalid",e);var w=d=b=u=null,N=null,B=null;for(r in i)if(i.hasOwnProperty(r)){var X=i[r];if(X!=null)switch(r){case"name":u=X;break;case"type":b=X;break;case"checked":N=X;break;case"defaultChecked":B=X;break;case"value":d=X;break;case"defaultValue":w=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(s(137,t));break;default:Ve(e,t,r,X,i,null)}}ed(e,d,w,N,B,b,u,!1);return;case"select":De("invalid",e),r=b=d=null;for(u in i)if(i.hasOwnProperty(u)&&(w=i[u],w!=null))switch(u){case"value":d=w;break;case"defaultValue":b=w;break;case"multiple":r=w;default:Ve(e,t,u,w,i,null)}t=d,i=b,e.multiple=!!r,t!=null?Nl(e,!!r,t,!1):i!=null&&Nl(e,!!r,i,!0);return;case"textarea":De("invalid",e),d=u=r=null;for(b in i)if(i.hasOwnProperty(b)&&(w=i[b],w!=null))switch(b){case"value":r=w;break;case"defaultValue":u=w;break;case"children":d=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(s(91));break;default:Ve(e,t,b,w,i,null)}nd(e,r,u,d);return;case"option":for(N in i)i.hasOwnProperty(N)&&(r=i[N],r!=null)&&(N==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":Ve(e,t,N,r,i,null));return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(r=0;r<Ja.length;r++)De(Ja[r],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("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(B in i)if(i.hasOwnProperty(B)&&(r=i[B],r!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ve(e,t,B,r,i,null)}return;default:if(go(t)){for(X in i)i.hasOwnProperty(X)&&(r=i[X],r!==void 0&&nc(e,t,X,r,i,void 0));return}}for(w in i)i.hasOwnProperty(w)&&(r=i[w],r!=null&&Ve(e,t,w,r,i,null))}function k1(e,t,i,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,d=null,b=null,w=null,N=null,B=null,X=null;for(F in i){var J=i[F];if(i.hasOwnProperty(F)&&J!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":N=J;default:r.hasOwnProperty(F)||Ve(e,t,F,null,r,J)}}for(var H in r){var F=r[H];if(J=i[H],r.hasOwnProperty(H)&&(F!=null||J!=null))switch(H){case"type":d=F;break;case"name":u=F;break;case"checked":B=F;break;case"defaultChecked":X=F;break;case"value":b=F;break;case"defaultValue":w=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(s(137,t));break;default:F!==J&&Ve(e,t,H,F,r,J)}}mo(e,b,w,N,B,X,d,u);return;case"select":F=b=w=H=null;for(d in i)if(N=i[d],i.hasOwnProperty(d)&&N!=null)switch(d){case"value":break;case"multiple":F=N;default:r.hasOwnProperty(d)||Ve(e,t,d,null,r,N)}for(u in r)if(d=r[u],N=i[u],r.hasOwnProperty(u)&&(d!=null||N!=null))switch(u){case"value":H=d;break;case"defaultValue":w=d;break;case"multiple":b=d;default:d!==N&&Ve(e,t,u,d,r,N)}t=w,i=b,r=F,H!=null?Nl(e,!!i,H,!1):!!r!=!!i&&(t!=null?Nl(e,!!i,t,!0):Nl(e,!!i,i?[]:"",!1));return;case"textarea":F=H=null;for(w in i)if(u=i[w],i.hasOwnProperty(w)&&u!=null&&!r.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ve(e,t,w,null,r,u)}for(b in r)if(u=r[b],d=i[b],r.hasOwnProperty(b)&&(u!=null||d!=null))switch(b){case"value":H=u;break;case"defaultValue":F=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==d&&Ve(e,t,b,u,r,d)}td(e,H,F);return;case"option":for(var fe in i)H=i[fe],i.hasOwnProperty(fe)&&H!=null&&!r.hasOwnProperty(fe)&&(fe==="selected"?e.selected=!1:Ve(e,t,fe,null,r,H));for(N in r)H=r[N],F=i[N],r.hasOwnProperty(N)&&H!==F&&(H!=null||F!=null)&&(N==="selected"?e.selected=H&&typeof H!="function"&&typeof H!="symbol":Ve(e,t,N,H,r,F));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ve in i)H=i[ve],i.hasOwnProperty(ve)&&H!=null&&!r.hasOwnProperty(ve)&&Ve(e,t,ve,null,r,H);for(B in r)if(H=r[B],F=i[B],r.hasOwnProperty(B)&&H!==F&&(H!=null||F!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:Ve(e,t,B,H,r,F)}return;default:if(go(t)){for(var Ge in i)H=i[Ge],i.hasOwnProperty(Ge)&&H!==void 0&&!r.hasOwnProperty(Ge)&&nc(e,t,Ge,void 0,r,H);for(X in r)H=r[X],F=i[X],!r.hasOwnProperty(X)||H===F||H===void 0&&F===void 0||nc(e,t,X,H,r,F);return}}for(var O in i)H=i[O],i.hasOwnProperty(O)&&H!=null&&!r.hasOwnProperty(O)&&Ve(e,t,O,null,r,H);for(J in r)H=r[J],F=i[J],!r.hasOwnProperty(J)||H===F||H==null&&F==null||Ve(e,t,J,H,r,F)}function ap(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function w1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,i=performance.getEntriesByType("resource"),r=0;r<i.length;r++){var u=i[r],d=u.transferSize,b=u.initiatorType,w=u.duration;if(d&&w&&ap(b)){for(b=0,w=u.responseEnd,r+=1;r<i.length;r++){var N=i[r],B=N.startTime;if(B>w)break;var X=N.transferSize,J=N.initiatorType;X&&ap(J)&&(N=N.responseEnd,b+=X*(N<w?1:(w-B)/(N-B)))}if(--r,t+=8*(d+b)/(u.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 ic=null,lc=null;function zs(e){return e.nodeType===9?e:e.ownerDocument}function rp(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 sp(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 ac(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 rc=null;function z1(){var e=window.event;return e&&e.type==="popstate"?e===rc?!1:(rc=e,!0):(rc=null,!1)}var op=typeof setTimeout=="function"?setTimeout:void 0,j1=typeof clearTimeout=="function"?clearTimeout:void 0,up=typeof Promise=="function"?Promise:void 0,C1=typeof queueMicrotask=="function"?queueMicrotask:typeof up<"u"?function(e){return up.resolve(null).then(e).catch(N1)}:op;function N1(e){setTimeout(function(){throw e})}function Mi(e){return e==="head"}function cp(e,t){var i=t,r=0;do{var u=i.nextSibling;if(e.removeChild(i),u&&u.nodeType===8)if(i=u.data,i==="/$"||i==="/&"){if(r===0){e.removeChild(u),aa(t);return}r--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")r++;else if(i==="html")er(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,er(i);for(var d=i.firstChild;d;){var b=d.nextSibling,w=d.nodeName;d[xa]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&d.rel.toLowerCase()==="stylesheet"||i.removeChild(d),d=b}}else i==="body"&&er(e.ownerDocument.body);i=u}while(i);aa(t)}function fp(e,t){var i=e;e=0;do{var r=i.nextSibling;if(i.nodeType===1?t?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(t?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),r&&r.nodeType===8)if(i=r.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=r}while(i)}function sc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":sc(i),fo(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function T1(e,t,i,r){for(;e.nodeType===1;){var u=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[xa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=vn(e.nextSibling),e===null)break}return null}function E1(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=vn(e.nextSibling),e===null))return null;return e}function dp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=vn(e.nextSibling),e===null))return null;return e}function oc(e){return e.data==="$?"||e.data==="$~"}function uc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function A1(e,t){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||i.readyState!=="loading")t();else{var r=function(){t(),i.removeEventListener("DOMContentLoaded",r)};i.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function vn(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 cc=null;function hp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(t===0)return vn(e.nextSibling);t--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||t++}e=e.nextSibling}return null}function mp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(t===0)return e;t--}else i!=="/$"&&i!=="/&"||t++}e=e.previousSibling}return null}function pp(e,t,i){switch(t=zs(i),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function er(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);fo(e)}var Sn=new Map,gp=new Set;function js(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var fi=$.d;$.d={f:D1,r:_1,D:M1,C:O1,L:R1,m:L1,X:B1,S:U1,M:q1};function D1(){var e=fi.f(),t=gs();return e||t}function _1(e){var t=zl(e);t!==null&&t.tag===5&&t.type==="form"?Mh(t):fi.r(e)}var na=typeof document>"u"?null:document;function yp(e,t,i){var r=na;if(r&&typeof t=="string"&&t){var u=hn(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof i=="string"&&(u+='[crossorigin="'+i+'"]'),gp.has(u)||(gp.add(u),e={rel:e,crossOrigin:i,href:t},r.querySelector(u)===null&&(t=r.createElement("link"),At(t,"link",e),xt(t),r.head.appendChild(t)))}}function M1(e){fi.D(e),yp("dns-prefetch",e,null)}function O1(e,t){fi.C(e,t),yp("preconnect",e,t)}function R1(e,t,i){fi.L(e,t,i);var r=na;if(r&&e&&t){var u='link[rel="preload"][as="'+hn(t)+'"]';t==="image"&&i&&i.imageSrcSet?(u+='[imagesrcset="'+hn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(u+='[imagesizes="'+hn(i.imageSizes)+'"]')):u+='[href="'+hn(e)+'"]';var d=u;switch(t){case"style":d=ia(e);break;case"script":d=la(e)}Sn.has(d)||(e=g({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),Sn.set(d,e),r.querySelector(u)!==null||t==="style"&&r.querySelector(tr(d))||t==="script"&&r.querySelector(nr(d))||(t=r.createElement("link"),At(t,"link",e),xt(t),r.head.appendChild(t)))}}function L1(e,t){fi.m(e,t);var i=na;if(i&&e){var r=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+hn(r)+'"][href="'+hn(e)+'"]',d=u;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=la(e)}if(!Sn.has(d)&&(e=g({rel:"modulepreload",href:e},t),Sn.set(d,e),i.querySelector(u)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(nr(d)))return}r=i.createElement("link"),At(r,"link",e),xt(r),i.head.appendChild(r)}}}function U1(e,t,i){fi.S(e,t,i);var r=na;if(r&&e){var u=jl(r).hoistableStyles,d=ia(e);t=t||"default";var b=u.get(d);if(!b){var w={loading:0,preload:null};if(b=r.querySelector(tr(d)))w.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},i),(i=Sn.get(d))&&fc(e,i);var N=b=r.createElement("link");xt(N),At(N,"link",e),N._p=new Promise(function(B,X){N.onload=B,N.onerror=X}),N.addEventListener("load",function(){w.loading|=1}),N.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Cs(b,t,r)}b={type:"stylesheet",instance:b,count:1,state:w},u.set(d,b)}}}function B1(e,t){fi.X(e,t);var i=na;if(i&&e){var r=jl(i).hoistableScripts,u=la(e),d=r.get(u);d||(d=i.querySelector(nr(u)),d||(e=g({src:e,async:!0},t),(t=Sn.get(u))&&dc(e,t),d=i.createElement("script"),xt(d),At(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(u,d))}}function q1(e,t){fi.M(e,t);var i=na;if(i&&e){var r=jl(i).hoistableScripts,u=la(e),d=r.get(u);d||(d=i.querySelector(nr(u)),d||(e=g({src:e,async:!0,type:"module"},t),(t=Sn.get(u))&&dc(e,t),d=i.createElement("script"),xt(d),At(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(u,d))}}function xp(e,t,i,r){var u=(u=ae.current)?js(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=ia(i.href),i=jl(u).hoistableStyles,r=i.get(t),r||(r={type:"style",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=ia(i.href);var d=jl(u).hoistableStyles,b=d.get(e);if(b||(u=u.ownerDocument||u,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,b),(d=u.querySelector(tr(e)))&&!d._p&&(b.instance=d,b.state.loading=5),Sn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Sn.set(e,i),d||H1(u,e,i,b.state))),t&&r===null)throw Error(s(528,""));return b}if(t&&r!==null)throw Error(s(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=la(i),i=jl(u).hoistableScripts,r=i.get(t),r||(r={type:"script",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function ia(e){return'href="'+hn(e)+'"'}function tr(e){return'link[rel="stylesheet"]['+e+"]"}function bp(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function H1(e,t,i,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),At(t,"link",i),xt(t),e.head.appendChild(t))}function la(e){return'[src="'+hn(e)+'"]'}function nr(e){return"script[async]"+e}function vp(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+hn(i.href)+'"]');if(r)return t.instance=r,xt(r),r;var u=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),xt(r),At(r,"style",u),Cs(r,i.precedence,e),t.instance=r;case"stylesheet":u=ia(i.href);var d=e.querySelector(tr(u));if(d)return t.state.loading|=4,t.instance=d,xt(d),d;r=bp(i),(u=Sn.get(u))&&fc(r,u),d=(e.ownerDocument||e).createElement("link"),xt(d);var b=d;return b._p=new Promise(function(w,N){b.onload=w,b.onerror=N}),At(d,"link",r),t.state.loading|=4,Cs(d,i.precedence,e),t.instance=d;case"script":return d=la(i.src),(u=e.querySelector(nr(d)))?(t.instance=u,xt(u),u):(r=i,(u=Sn.get(d))&&(r=g({},i),dc(r,u)),e=e.ownerDocument||e,u=e.createElement("script"),xt(u),At(u,"link",r),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Cs(r,i.precedence,e));return t.instance}function Cs(e,t,i){for(var r=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=r.length?r[r.length-1]:null,d=u,b=0;b<r.length;b++){var w=r[b];if(w.dataset.precedence===t)d=w;else if(d!==u)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function fc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function dc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ns=null;function Sp(e,t,i){if(Ns===null){var r=new Map,u=Ns=new Map;u.set(i,r)}else u=Ns,r=u.get(i),r||(r=new Map,u.set(i,r));if(r.has(e))return r;for(r.set(e,null),i=i.getElementsByTagName(e),u=0;u<i.length;u++){var d=i[u];if(!(d[xa]||d[Ct]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var b=d.getAttribute(t)||"";b=e+b;var w=r.get(b);w?w.push(d):r.set(b,[d])}}return r}function kp(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function Q1(e,t,i){if(i===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 wp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Y1(e,t,i,r){if(i.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var u=ia(r.href),d=t.querySelector(tr(u));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ts.bind(e),t.then(e,e)),i.state.loading|=4,i.instance=d,xt(d);return}d=t.ownerDocument||t,r=bp(r),(u=Sn.get(u))&&fc(r,u),d=d.createElement("link"),xt(d);var b=d;b._p=new Promise(function(w,N){b.onload=w,b.onerror=N}),At(d,"link",r),i.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Ts.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}var hc=0;function F1(e,t){return e.stylesheets&&e.count===0&&As(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var r=setTimeout(function(){if(e.stylesheets&&As(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&hc===0&&(hc=62500*w1());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&As(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>hc?50:800)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(u)}}:null}function Ts(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)As(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Es=null;function As(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Es=new Map,t.forEach(V1,e),Es=null,Ts.call(e))}function V1(e,t){if(!(t.state.loading&4)){var i=Es.get(e);if(i)var r=i.get(null);else{i=new Map,Es.set(e,i);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var b=u[d];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(i.set(b.dataset.precedence,b),r=b)}r&&i.set(null,r)}u=t.instance,b=u.getAttribute("data-precedence"),d=i.get(b)||r,d===r&&i.set(null,u),i.set(b,u),this.count++,r=Ts.bind(this),u.addEventListener("load",r),u.addEventListener("error",r),d?d.parentNode.insertBefore(u,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var ir={$$typeof:L,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function G1(e,t,i,r,u,d,b,w,N){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=mi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mi(0),this.hiddenUpdates=mi(null),this.identifierPrefix=r,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function zp(e,t,i,r,u,d,b,w,N,B,X,J){return e=new G1(e,t,i,b,N,B,X,J,w),t=1,d===!0&&(t|=24),d=nn(3,null,null,t),e.current=d,d.stateNode=e,t=Xo(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:r,isDehydrated:i,cache:t},$o(d),e}function jp(e){return e?(e=Rl,e):Rl}function Cp(e,t,i,r,u,d){u=jp(u),r.context===null?r.context=u:r.pendingContext=u,r=ki(t),r.payload={element:i},d=d===void 0?null:d,d!==null&&(r.callback=d),i=wi(e,r,t),i!==null&&(Pt(i,e,t),Ra(i,e,t))}function Np(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function mc(e,t){Np(e,t),(e=e.alternate)&&Np(e,t)}function Tp(e){if(e.tag===13||e.tag===31){var t=Pi(e,67108864);t!==null&&Pt(t,e,67108864),mc(e,67108864)}}function Ep(e){if(e.tag===13||e.tag===31){var t=on();t=Sl(t);var i=Pi(e,t);i!==null&&Pt(i,e,t),mc(e,t)}}var Ds=!0;function X1(e,t,i,r){var u=_.T;_.T=null;var d=$.p;try{$.p=2,pc(e,t,i,r)}finally{$.p=d,_.T=u}}function I1(e,t,i,r){var u=_.T;_.T=null;var d=$.p;try{$.p=8,pc(e,t,i,r)}finally{$.p=d,_.T=u}}function pc(e,t,i,r){if(Ds){var u=gc(r);if(u===null)tc(e,t,r,_s,i),Dp(e,r);else if(Z1(u,e,t,i,r))r.stopPropagation();else if(Dp(e,r),t&4&&-1<K1.indexOf(e)){for(;u!==null;){var d=zl(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var b=Bn(d.pendingLanes);if(b!==0){var w=d;for(w.pendingLanes|=2,w.entangledLanes|=2;b;){var N=1<<31-He(b);w.entanglements[1]|=N,b&=~N}Yn(d),(qe&6)===0&&(ms=wt()+500,Pa(0))}}break;case 31:case 13:w=Pi(d,2),w!==null&&Pt(w,d,2),gs(),mc(d,2)}if(d=gc(r),d===null&&tc(e,t,r,_s,i),d===u)break;u=d}u!==null&&r.stopPropagation()}else tc(e,t,r,null,i)}}function gc(e){return e=xo(e),yc(e)}var _s=null;function yc(e){if(_s=null,e=wl(e),e!==null){var t=c(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=f(t),e!==null)return e;e=null}else if(i===31){if(e=m(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _s=e,null}function Ap(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(ya()){case I:return 2;case re:return 8;case be:case Ce:return 32;case Ee:return 268435456;default:return 32}default:return 32}}var xc=!1,Oi=null,Ri=null,Li=null,lr=new Map,ar=new Map,Ui=[],K1="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 Dp(e,t){switch(e){case"focusin":case"focusout":Oi=null;break;case"dragenter":case"dragleave":Ri=null;break;case"mouseover":case"mouseout":Li=null;break;case"pointerover":case"pointerout":lr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ar.delete(t.pointerId)}}function rr(e,t,i,r,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:i,eventSystemFlags:r,nativeEvent:d,targetContainers:[u]},t!==null&&(t=zl(t),t!==null&&Tp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Z1(e,t,i,r,u){switch(t){case"focusin":return Oi=rr(Oi,e,t,i,r,u),!0;case"dragenter":return Ri=rr(Ri,e,t,i,r,u),!0;case"mouseover":return Li=rr(Li,e,t,i,r,u),!0;case"pointerover":var d=u.pointerId;return lr.set(d,rr(lr.get(d)||null,e,t,i,r,u)),!0;case"gotpointercapture":return d=u.pointerId,ar.set(d,rr(ar.get(d)||null,e,t,i,r,u)),!0}return!1}function _p(e){var t=wl(e.target);if(t!==null){var i=c(t);if(i!==null){if(t=i.tag,t===13){if(t=f(i),t!==null){e.blockedOn=t,Xf(e.priority,function(){Ep(i)});return}}else if(t===31){if(t=m(i),t!==null){e.blockedOn=t,Xf(e.priority,function(){Ep(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ms(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=gc(e.nativeEvent);if(i===null){i=e.nativeEvent;var r=new i.constructor(i.type,i);yo=r,i.target.dispatchEvent(r),yo=null}else return t=zl(i),t!==null&&Tp(t),e.blockedOn=i,!1;t.shift()}return!0}function Mp(e,t,i){Ms(e)&&i.delete(t)}function $1(){xc=!1,Oi!==null&&Ms(Oi)&&(Oi=null),Ri!==null&&Ms(Ri)&&(Ri=null),Li!==null&&Ms(Li)&&(Li=null),lr.forEach(Mp),ar.forEach(Mp)}function Os(e,t){e.blockedOn===t&&(e.blockedOn=null,xc||(xc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,$1)))}var Rs=null;function Op(e){Rs!==e&&(Rs=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Rs===e&&(Rs=null);for(var t=0;t<e.length;t+=3){var i=e[t],r=e[t+1],u=e[t+2];if(typeof r!="function"){if(yc(r||i)===null)continue;break}var d=zl(i);d!==null&&(e.splice(t,3),t-=3,gu(d,{pending:!0,data:u,method:i.method,action:r},r,u))}}))}function aa(e){function t(N){return Os(N,e)}Oi!==null&&Os(Oi,e),Ri!==null&&Os(Ri,e),Li!==null&&Os(Li,e),lr.forEach(t),ar.forEach(t);for(var i=0;i<Ui.length;i++){var r=Ui[i];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ui.length&&(i=Ui[0],i.blockedOn===null);)_p(i),i.blockedOn===null&&Ui.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(r=0;r<i.length;r+=3){var u=i[r],d=i[r+1],b=u[Gt]||null;if(typeof d=="function")b||Op(i);else if(b){var w=null;if(d&&d.hasAttribute("formAction")){if(u=d,b=d[Gt]||null)w=b.formAction;else if(yc(u)!==null)continue}else w=b.action;typeof w=="function"?i[r+1]=w:(i.splice(r,3),r-=3),Op(i)}}}function Rp(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(b){return u=b})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),r||setTimeout(i,20)}function i(){if(!r&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(i,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function bc(e){this._internalRoot=e}Ls.prototype.render=bc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var i=t.current,r=on();Cp(i,r,e,t,null,null)},Ls.prototype.unmount=bc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cp(e.current,2,null,e,null,null),gs(),t[kl]=null}};function Ls(e){this._internalRoot=e}Ls.prototype.unstable_scheduleHydration=function(e){if(e){var t=uo();e={blockedOn:null,target:e,priority:t};for(var i=0;i<Ui.length&&t!==0&&t<Ui[i].priority;i++);Ui.splice(i,0,e),i===0&&_p(e)}};var Lp=l.version;if(Lp!=="19.2.3")throw Error(s(527,Lp,"19.2.3"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var P1={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Us=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Us.isDisabled&&Us.supportsFiber)try{zt=Us.inject(P1),lt=Us}catch{}}return or.createRoot=function(e,t){if(!o(e))throw Error(s(299));var i=!1,r="",u=Fh,d=Vh,b=Gh;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=zp(e,1,!1,null,null,i,r,null,u,d,b,Rp),e[kl]=t.current,ec(e),new bc(t)},or.hydrateRoot=function(e,t,i){if(!o(e))throw Error(s(299));var r=!1,u="",d=Fh,b=Vh,w=Gh,N=null;return i!=null&&(i.unstable_strictMode===!0&&(r=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(w=i.onRecoverableError),i.formState!==void 0&&(N=i.formState)),t=zp(e,1,!0,t,i??null,r,u,N,d,b,w,Rp),t.context=jp(null),i=t.current,r=on(),r=Sl(r),u=ki(r),u.callback=null,wi(i,u,r),i=r,t.current.lanes=i,et(t,i),Yn(t),e[kl]=t.current,ec(e),new Ls(t)},or.version="19.2.3",or}var Xp;function rb(){if(Xp)return kc.exports;Xp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),kc.exports=ab(),kc.exports}var sb=rb(),ma=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ob={setTimeout:(n,l)=>setTimeout(n,l),clearTimeout:n=>clearTimeout(n),setInterval:(n,l)=>setInterval(n,l),clearInterval:n=>clearInterval(n)},ub=class{#e=ob;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,l){return this.#e.setTimeout(n,l)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,l){return this.#e.setInterval(n,l)}clearInterval(n){this.#e.clearInterval(n)}},fl=new ub;function cb(n){setTimeout(n,0)}var ml=typeof window>"u"||"Deno"in globalThis;function Ht(){}function fb(n,l){return typeof n=="function"?n(l):n}function Xc(n){return typeof n=="number"&&n>=0&&n!==1/0}function sg(n,l){return Math.max(n+(l||0)-Date.now(),0)}function Hi(n,l){return typeof n=="function"?n(l):n}function kn(n,l){return typeof n=="function"?n(l):n}function Ip(n,l){const{type:a="all",exact:s,fetchStatus:o,predicate:c,queryKey:f,stale:m}=n;if(f){if(s){if(l.queryHash!==hf(f,l.options))return!1}else if(!yr(l.queryKey,f))return!1}if(a!=="all"){const y=l.isActive();if(a==="active"&&!y||a==="inactive"&&y)return!1}return!(typeof m=="boolean"&&l.isStale()!==m||o&&o!==l.state.fetchStatus||c&&!c(l))}function Kp(n,l){const{exact:a,status:s,predicate:o,mutationKey:c}=n;if(c){if(!l.options.mutationKey)return!1;if(a){if(pl(l.options.mutationKey)!==pl(c))return!1}else if(!yr(l.options.mutationKey,c))return!1}return!(s&&l.state.status!==s||o&&!o(l))}function hf(n,l){return(l?.queryKeyHashFn||pl)(n)}function pl(n){return JSON.stringify(n,(l,a)=>Ic(a)?Object.keys(a).sort().reduce((s,o)=>(s[o]=a[o],s),{}):a)}function yr(n,l){return n===l?!0:typeof n!=typeof l?!1:n&&l&&typeof n=="object"&&typeof l=="object"?Object.keys(l).every(a=>yr(n[a],l[a])):!1}var db=Object.prototype.hasOwnProperty;function og(n,l){if(n===l)return n;const a=Zp(n)&&Zp(l);if(!a&&!(Ic(n)&&Ic(l)))return l;const o=(a?n:Object.keys(n)).length,c=a?l:Object.keys(l),f=c.length,m=a?new Array(f):{};let y=0;for(let p=0;p<f;p++){const x=a?p:c[p],g=n[x],v=l[x];if(g===v){m[x]=g,(a?p<o:db.call(n,x))&&y++;continue}if(g===null||v===null||typeof g!="object"||typeof v!="object"){m[x]=v;continue}const k=og(g,v);m[x]=k,k===g&&y++}return o===f&&y===o?n:m}function Ks(n,l){if(!l||Object.keys(n).length!==Object.keys(l).length)return!1;for(const a in n)if(n[a]!==l[a])return!1;return!0}function Zp(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Ic(n){if(!$p(n))return!1;const l=n.constructor;if(l===void 0)return!0;const a=l.prototype;return!(!$p(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function $p(n){return Object.prototype.toString.call(n)==="[object Object]"}function hb(n){return new Promise(l=>{fl.setTimeout(l,n)})}function Kc(n,l,a){return typeof a.structuralSharing=="function"?a.structuralSharing(n,l):a.structuralSharing!==!1?og(n,l):l}function mb(n,l,a=0){const s=[...n,l];return a&&s.length>a?s.slice(1):s}function pb(n,l,a=0){const s=[l,...n];return a&&s.length>a?s.slice(0,-1):s}var mf=Symbol();function ug(n,l){return!n.queryFn&&l?.initialPromise?()=>l.initialPromise:!n.queryFn||n.queryFn===mf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function pf(n,l){return typeof n=="function"?n(...l):!!n}function gb(n,l,a){let s=!1,o;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(o??=l(),s||(s=!0,o.aborted?a():o.addEventListener("abort",a,{once:!0})),o)}),n}var yb=class extends ma{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!ml&&window.addEventListener){const l=()=>n();return window.addEventListener("visibilitychange",l,!1),()=>{window.removeEventListener("visibilitychange",l)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(l=>{l(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},gf=new yb;function Zc(){let n,l;const a=new Promise((o,c)=>{n=o,l=c});a.status="pending",a.catch(()=>{});function s(o){Object.assign(a,o),delete a.resolve,delete a.reject}return a.resolve=o=>{s({status:"fulfilled",value:o}),n(o)},a.reject=o=>{s({status:"rejected",reason:o}),l(o)},a}var xb=cb;function bb(){let n=[],l=0,a=m=>{m()},s=m=>{m()},o=xb;const c=m=>{l?n.push(m):o(()=>{a(m)})},f=()=>{const m=n;n=[],m.length&&o(()=>{s(()=>{m.forEach(y=>{a(y)})})})};return{batch:m=>{let y;l++;try{y=m()}finally{l--,l||f()}return y},batchCalls:m=>(...y)=>{c(()=>{m(...y)})},schedule:c,setNotifyFunction:m=>{a=m},setBatchNotifyFunction:m=>{s=m},setScheduler:m=>{o=m}}}var pt=bb(),vb=class extends ma{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!ml&&window.addEventListener){const l=()=>n(!0),a=()=>n(!1);return window.addEventListener("online",l,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",l),window.removeEventListener("offline",a)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(a=>{a(n)}))}isOnline(){return this.#e}},Zs=new vb;function Sb(n){return Math.min(1e3*2**n,3e4)}function cg(n){return(n??"online")==="online"?Zs.isOnline():!0}var $c=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function fg(n){let l=!1,a=0,s;const o=Zc(),c=()=>o.status!=="pending",f=E=>{if(!c()){const M=new $c(E);v(M),n.onCancel?.(M)}},m=()=>{l=!0},y=()=>{l=!1},p=()=>gf.isFocused()&&(n.networkMode==="always"||Zs.isOnline())&&n.canRun(),x=()=>cg(n.networkMode)&&n.canRun(),g=E=>{c()||(s?.(),o.resolve(E))},v=E=>{c()||(s?.(),o.reject(E))},k=()=>new Promise(E=>{s=M=>{(c()||p())&&E(M)},n.onPause?.()}).then(()=>{s=void 0,c()||n.onContinue?.()}),z=()=>{if(c())return;let E;const M=a===0?n.initialPromise:void 0;try{E=M??n.fn()}catch(j){E=Promise.reject(j)}Promise.resolve(E).then(g).catch(j=>{if(c())return;const q=n.retry??(ml?0:3),L=n.retryDelay??Sb,ie=typeof L=="function"?L(a,j):L,ee=q===!0||typeof q=="number"&&a<q||typeof q=="function"&&q(a,j);if(l||!ee){v(j);return}a++,n.onFail?.(a,j),hb(ie).then(()=>p()?void 0:k()).then(()=>{l?v(j):z()})})};return{promise:o,status:()=>o.status,cancel:f,continue:()=>(s?.(),o),cancelRetry:m,continueRetry:y,canStart:x,start:()=>(x()?z():k().then(z),o)}}var dg=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Xc(this.gcTime)&&(this.#e=fl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(ml?1/0:300*1e3))}clearGcTimeout(){this.#e&&(fl.clearTimeout(this.#e),this.#e=void 0)}},kb=class extends dg{#e;#t;#n;#l;#i;#r;#s;constructor(n){super(),this.#s=!1,this.#r=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#l=n.client,this.#n=this.#l.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=Jp(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(n){if(this.options={...this.#r,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const l=Jp(this.options);l.data!==void 0&&(this.setState(Pp(l.data,l.dataUpdatedAt)),this.#e=l)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,l){const a=Kc(this.state.data,n,this.options);return this.#a({data:a,type:"success",dataUpdatedAt:l?.updatedAt,manual:l?.manual}),a}setState(n,l){this.#a({type:"setState",state:n,setStateOptions:l})}cancel(n){const l=this.#i?.promise;return this.#i?.cancel(n),l?l.then(Ht).catch(Ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>kn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===mf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Hi(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!sg(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(l=>l.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(l=>l.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(l=>l!==n),this.observers.length||(this.#i&&(this.#s?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(n,l){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&l?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(n&&this.setOptions(n),!this.options.queryFn){const m=this.observers.find(y=>y.options.queryFn);m&&this.setOptions(m.options)}const a=new AbortController,s=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#s=!0,a.signal)})},o=()=>{const m=ug(this.options,l),p=(()=>{const x={client:this.#l,queryKey:this.queryKey,meta:this.meta};return s(x),x})();return this.#s=!1,this.options.persister?this.options.persister(m,p,this):m(p)},f=(()=>{const m={fetchOptions:l,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:o};return s(m),m})();this.options.behavior?.onFetch(f,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==f.fetchOptions?.meta)&&this.#a({type:"fetch",meta:f.fetchOptions?.meta}),this.#i=fg({initialPromise:l?.initialPromise,fn:f.fetchFn,onCancel:m=>{m instanceof $c&&m.revert&&this.setState({...this.#t,fetchStatus:"idle"}),a.abort()},onFail:(m,y)=>{this.#a({type:"failed",failureCount:m,error:y})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0});try{const m=await this.#i.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#n.config.onSuccess?.(m,this),this.#n.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof $c){if(m.silent)return this.#i.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#a({type:"error",error:m}),this.#n.config.onError?.(m,this),this.#n.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#a(n){const l=a=>{switch(n.type){case"failed":return{...a,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...hg(a.data,this.options),fetchMeta:n.meta??null};case"success":const s={...a,...Pp(n.data,n.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?s:void 0,s;case"error":const o=n.error;return{...a,error:o,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...n.state}}};this.state=l(this.state),pt.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function hg(n,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cg(l.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Pp(n,l){return{data:n,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Jp(n){const l=typeof n.initialData=="function"?n.initialData():n.initialData,a=l!==void 0,s=a?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:a?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var wb=class extends ma{constructor(n,l){super(),this.options=l,this.#e=n,this.#a=null,this.#s=Zc(),this.bindMethods(),this.setOptions(l)}#e;#t=void 0;#n=void 0;#l=void 0;#i;#r;#s;#a;#p;#d;#h;#u;#c;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Wp(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Pc(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Pc(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#S(),this.#t.removeObserver(this)}setOptions(n){const l=this.options,a=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof kn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#k(),this.#t.setOptions(this.options),l._defaulted&&!Ks(this.options,l)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&e0(this.#t,a,this.options,l)&&this.#f(),this.updateResult(),s&&(this.#t!==a||kn(this.options.enabled,this.#t)!==kn(l.enabled,this.#t)||Hi(this.options.staleTime,this.#t)!==Hi(l.staleTime,this.#t))&&this.#g();const o=this.#y();s&&(this.#t!==a||kn(this.options.enabled,this.#t)!==kn(l.enabled,this.#t)||o!==this.#o)&&this.#x(o)}getOptimisticResult(n){const l=this.#e.getQueryCache().build(this.#e,n),a=this.createResult(l,n);return jb(this,a)&&(this.#l=a,this.#r=this.options,this.#i=this.#t.state),a}getCurrentResult(){return this.#l}trackResult(n,l){return new Proxy(n,{get:(a,s)=>(this.trackProp(s),l?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,s))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const l=this.#e.defaultQueryOptions(n),a=this.#e.getQueryCache().build(this.#e,l);return a.fetch().then(()=>this.createResult(a,l))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#f(n){this.#k();let l=this.#t.fetch(this.options,n);return n?.throwOnError||(l=l.catch(Ht)),l}#g(){this.#v();const n=Hi(this.options.staleTime,this.#t);if(ml||this.#l.isStale||!Xc(n))return;const a=sg(this.#l.dataUpdatedAt,n)+1;this.#u=fl.setTimeout(()=>{this.#l.isStale||this.updateResult()},a)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#x(n){this.#S(),this.#o=n,!(ml||kn(this.options.enabled,this.#t)===!1||!Xc(this.#o)||this.#o===0)&&(this.#c=fl.setInterval(()=>{(this.options.refetchIntervalInBackground||gf.isFocused())&&this.#f()},this.#o))}#b(){this.#g(),this.#x(this.#y())}#v(){this.#u&&(fl.clearTimeout(this.#u),this.#u=void 0)}#S(){this.#c&&(fl.clearInterval(this.#c),this.#c=void 0)}createResult(n,l){const a=this.#t,s=this.options,o=this.#l,c=this.#i,f=this.#r,y=n!==a?n.state:this.#n,{state:p}=n;let x={...p},g=!1,v;if(l._optimisticResults){const te=this.hasListeners(),ue=!te&&Wp(n,l),R=te&&e0(n,a,l,s);(ue||R)&&(x={...x,...hg(p.data,n.options)}),l._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:k,errorUpdatedAt:z,status:E}=x;v=x.data;let M=!1;if(l.placeholderData!==void 0&&v===void 0&&E==="pending"){let te;o?.isPlaceholderData&&l.placeholderData===f?.placeholderData?(te=o.data,M=!0):te=typeof l.placeholderData=="function"?l.placeholderData(this.#h?.state.data,this.#h):l.placeholderData,te!==void 0&&(E="success",v=Kc(o?.data,te,l),g=!0)}if(l.select&&v!==void 0&&!M)if(o&&v===c?.data&&l.select===this.#p)v=this.#d;else try{this.#p=l.select,v=l.select(v),v=Kc(o?.data,v,l),this.#d=v,this.#a=null}catch(te){this.#a=te}this.#a&&(k=this.#a,v=this.#d,z=Date.now(),E="error");const j=x.fetchStatus==="fetching",q=E==="pending",L=E==="error",ie=q&&j,ee=v!==void 0,P={status:E,fetchStatus:x.fetchStatus,isPending:q,isSuccess:E==="success",isError:L,isInitialLoading:ie,isLoading:ie,data:v,dataUpdatedAt:x.dataUpdatedAt,error:k,errorUpdatedAt:z,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>y.dataUpdateCount||x.errorUpdateCount>y.errorUpdateCount,isFetching:j,isRefetching:j&&!q,isLoadingError:L&&!ee,isPaused:x.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:L&&ee,isStale:yf(n,l),refetch:this.refetch,promise:this.#s,isEnabled:kn(l.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const te=G=>{P.status==="error"?G.reject(P.error):P.data!==void 0&&G.resolve(P.data)},ue=()=>{const G=this.#s=P.promise=Zc();te(G)},R=this.#s;switch(R.status){case"pending":n.queryHash===a.queryHash&&te(R);break;case"fulfilled":(P.status==="error"||P.data!==R.value)&&ue();break;case"rejected":(P.status!=="error"||P.error!==R.reason)&&ue();break}}return P}updateResult(){const n=this.#l,l=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#r=this.options,this.#i.data!==void 0&&(this.#h=this.#t),Ks(l,n))return;this.#l=l;const a=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!this.#m.size)return!0;const c=new Set(o??this.#m);return this.options.throwOnError&&c.add("error"),Object.keys(this.#l).some(f=>{const m=f;return this.#l[m]!==n[m]&&c.has(m)})};this.#w({listeners:a()})}#k(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const l=this.#t;this.#t=n,this.#n=n.state,this.hasListeners()&&(l?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(n){pt.batch(()=>{n.listeners&&this.listeners.forEach(l=>{l(this.#l)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function zb(n,l){return kn(l.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&l.retryOnMount===!1)}function Wp(n,l){return zb(n,l)||n.state.data!==void 0&&Pc(n,l,l.refetchOnMount)}function Pc(n,l,a){if(kn(l.enabled,n)!==!1&&Hi(l.staleTime,n)!=="static"){const s=typeof a=="function"?a(n):a;return s==="always"||s!==!1&&yf(n,l)}return!1}function e0(n,l,a,s){return(n!==l||kn(s.enabled,n)===!1)&&(!a.suspense||n.state.status!=="error")&&yf(n,a)}function yf(n,l){return kn(l.enabled,n)!==!1&&n.isStaleByTime(Hi(l.staleTime,n))}function jb(n,l){return!Ks(n.getCurrentResult(),l)}function t0(n){return{onFetch:(l,a)=>{const s=l.options,o=l.fetchOptions?.meta?.fetchMore?.direction,c=l.state.data?.pages||[],f=l.state.data?.pageParams||[];let m={pages:[],pageParams:[]},y=0;const p=async()=>{let x=!1;const g=z=>{gb(z,()=>l.signal,()=>x=!0)},v=ug(l.options,l.fetchOptions),k=async(z,E,M)=>{if(x)return Promise.reject();if(E==null&&z.pages.length)return Promise.resolve(z);const q=(()=>{const D={client:l.client,queryKey:l.queryKey,pageParam:E,direction:M?"backward":"forward",meta:l.options.meta};return g(D),D})(),L=await v(q),{maxPages:ie}=l.options,ee=M?pb:mb;return{pages:ee(z.pages,L,ie),pageParams:ee(z.pageParams,E,ie)}};if(o&&c.length){const z=o==="backward",E=z?Cb:n0,M={pages:c,pageParams:f},j=E(s,M);m=await k(M,j,z)}else{const z=n??c.length;do{const E=y===0?f[0]??s.initialPageParam:n0(s,m);if(y>0&&E==null)break;m=await k(m,E),y++}while(y<z)}return m};l.options.persister?l.fetchFn=()=>l.options.persister?.(p,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},a):l.fetchFn=p}}}function n0(n,{pages:l,pageParams:a}){const s=l.length-1;return l.length>0?n.getNextPageParam(l[s],l,a[s],a):void 0}function Cb(n,{pages:l,pageParams:a}){return l.length>0?n.getPreviousPageParam?.(l[0],l,a[0],a):void 0}var Nb=class extends dg{#e;#t;#n;#l;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#t=[],this.state=n.state||mg(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(l=>l!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(n){const l=()=>{this.#i({type:"continue"})},a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=fg({fn:()=>this.options.mutationFn?this.options.mutationFn(n,a):Promise.reject(new Error("No mutationFn found")),onFail:(c,f)=>{this.#i({type:"failed",failureCount:c,error:f})},onPause:()=>{this.#i({type:"pause"})},onContinue:l,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",o=!this.#l.canStart();try{if(s)l();else{this.#i({type:"pending",variables:n,isPaused:o}),await this.#n.config.onMutate?.(n,this,a);const f=await this.options.onMutate?.(n,a);f!==this.state.context&&this.#i({type:"pending",context:f,variables:n,isPaused:o})}const c=await this.#l.start();return await this.#n.config.onSuccess?.(c,n,this.state.context,this,a),await this.options.onSuccess?.(c,n,this.state.context,a),await this.#n.config.onSettled?.(c,null,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(c,null,n,this.state.context,a),this.#i({type:"success",data:c}),c}catch(c){try{await this.#n.config.onError?.(c,n,this.state.context,this,a)}catch(f){Promise.reject(f)}try{await this.options.onError?.(c,n,this.state.context,a)}catch(f){Promise.reject(f)}try{await this.#n.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,a)}catch(f){Promise.reject(f)}try{await this.options.onSettled?.(void 0,c,n,this.state.context,a)}catch(f){Promise.reject(f)}throw this.#i({type:"error",error:c}),c}finally{this.#n.runNext(this)}}#i(n){const l=a=>{switch(n.type){case"failed":return{...a,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...a,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:n.error,failureCount:a.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=l(this.state),pt.batch(()=>{this.#t.forEach(a=>{a.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function mg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Tb=class extends ma{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,l,a){const s=new Nb({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(l),state:a});return this.add(s),s}add(n){this.#e.add(n);const l=Bs(n);if(typeof l=="string"){const a=this.#t.get(l);a?a.push(n):this.#t.set(l,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const l=Bs(n);if(typeof l=="string"){const a=this.#t.get(l);if(a)if(a.length>1){const s=a.indexOf(n);s!==-1&&a.splice(s,1)}else a[0]===n&&this.#t.delete(l)}}this.notify({type:"removed",mutation:n})}canRun(n){const l=Bs(n);if(typeof l=="string"){const s=this.#t.get(l)?.find(o=>o.state.status==="pending");return!s||s===n}else return!0}runNext(n){const l=Bs(n);return typeof l=="string"?this.#t.get(l)?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){pt.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const l={exact:!0,...n};return this.getAll().find(a=>Kp(l,a))}findAll(n={}){return this.getAll().filter(l=>Kp(n,l))}notify(n){pt.batch(()=>{this.listeners.forEach(l=>{l(n)})})}resumePausedMutations(){const n=this.getAll().filter(l=>l.state.isPaused);return pt.batch(()=>Promise.all(n.map(l=>l.continue().catch(Ht))))}};function Bs(n){return n.options.scope?.id}var Eb=class extends ma{#e;#t=void 0;#n;#l;constructor(l,a){super(),this.#e=l,this.setOptions(a),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(l){const a=this.options;this.options=this.#e.defaultMutationOptions(l),Ks(this.options,a)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),a?.mutationKey&&this.options.mutationKey&&pl(a.mutationKey)!==pl(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(l){this.#i(),this.#r(l)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#r()}mutate(l,a){return this.#l=a,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(l)}#i(){const l=this.#n?.state??mg();this.#t={...l,isPending:l.status==="pending",isSuccess:l.status==="success",isError:l.status==="error",isIdle:l.status==="idle",mutate:this.mutate,reset:this.reset}}#r(l){pt.batch(()=>{if(this.#l&&this.hasListeners()){const a=this.#t.variables,s=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(l?.type==="success"){try{this.#l.onSuccess?.(l.data,a,s,o)}catch(c){Promise.reject(c)}try{this.#l.onSettled?.(l.data,null,a,s,o)}catch(c){Promise.reject(c)}}else if(l?.type==="error"){try{this.#l.onError?.(l.error,a,s,o)}catch(c){Promise.reject(c)}try{this.#l.onSettled?.(void 0,l.error,a,s,o)}catch(c){Promise.reject(c)}}}this.listeners.forEach(a=>{a(this.#t)})})}},Ab=class extends ma{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,l,a){const s=l.queryKey,o=l.queryHash??hf(s,l);let c=this.get(o);return c||(c=new kb({client:n,queryKey:s,queryHash:o,options:n.defaultQueryOptions(l),state:a,defaultOptions:n.getQueryDefaults(s)}),this.add(c)),c}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const l=this.#e.get(n.queryHash);l&&(n.destroy(),l===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){pt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const l={exact:!0,...n};return this.getAll().find(a=>Ip(l,a))}findAll(n={}){const l=this.getAll();return Object.keys(n).length>0?l.filter(a=>Ip(n,a)):l}notify(n){pt.batch(()=>{this.listeners.forEach(l=>{l(n)})})}onFocus(){pt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){pt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Db=class{#e;#t;#n;#l;#i;#r;#s;#a;constructor(n={}){this.#e=n.queryCache||new Ab,this.#t=n.mutationCache||new Tb,this.#n=n.defaultOptions||{},this.#l=new Map,this.#i=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#s=gf.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Zs.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const l=this.defaultQueryOptions({queryKey:n});return this.#e.get(l.queryHash)?.state.data}ensureQueryData(n){const l=this.defaultQueryOptions(n),a=this.#e.build(this,l),s=a.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&a.isStaleByTime(Hi(l.staleTime,a))&&this.prefetchQuery(l),Promise.resolve(s))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:l,state:a})=>{const s=a.data;return[l,s]})}setQueryData(n,l,a){const s=this.defaultQueryOptions({queryKey:n}),c=this.#e.get(s.queryHash)?.state.data,f=fb(l,c);if(f!==void 0)return this.#e.build(this,s).setData(f,{...a,manual:!0})}setQueriesData(n,l,a){return pt.batch(()=>this.#e.findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,l,a)]))}getQueryState(n){const l=this.defaultQueryOptions({queryKey:n});return this.#e.get(l.queryHash)?.state}removeQueries(n){const l=this.#e;pt.batch(()=>{l.findAll(n).forEach(a=>{l.remove(a)})})}resetQueries(n,l){const a=this.#e;return pt.batch(()=>(a.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},l)))}cancelQueries(n,l={}){const a={revert:!0,...l},s=pt.batch(()=>this.#e.findAll(n).map(o=>o.cancel(a)));return Promise.all(s).then(Ht).catch(Ht)}invalidateQueries(n,l={}){return pt.batch(()=>(this.#e.findAll(n).forEach(a=>{a.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},l)))}refetchQueries(n,l={}){const a={...l,cancelRefetch:l.cancelRefetch??!0},s=pt.batch(()=>this.#e.findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,a);return a.throwOnError||(c=c.catch(Ht)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(Ht)}fetchQuery(n){const l=this.defaultQueryOptions(n);l.retry===void 0&&(l.retry=!1);const a=this.#e.build(this,l);return a.isStaleByTime(Hi(l.staleTime,a))?a.fetch(l):Promise.resolve(a.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Ht).catch(Ht)}fetchInfiniteQuery(n){return n.behavior=t0(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Ht).catch(Ht)}ensureInfiniteQueryData(n){return n.behavior=t0(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Zs.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,l){this.#l.set(pl(n),{queryKey:n,defaultOptions:l})}getQueryDefaults(n){const l=[...this.#l.values()],a={};return l.forEach(s=>{yr(n,s.queryKey)&&Object.assign(a,s.defaultOptions)}),a}setMutationDefaults(n,l){this.#i.set(pl(n),{mutationKey:n,defaultOptions:l})}getMutationDefaults(n){const l=[...this.#i.values()],a={};return l.forEach(s=>{yr(n,s.mutationKey)&&Object.assign(a,s.defaultOptions)}),a}defaultQueryOptions(n){if(n._defaulted)return n;const l={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return l.queryHash||(l.queryHash=hf(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===mf&&(l.enabled=!1),l}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},pg=Y.createContext(void 0),tt=n=>{const l=Y.useContext(pg);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},_b=({client:n,children:l})=>(Y.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),h.jsx(pg.Provider,{value:n,children:l})),gg=Y.createContext(!1),Mb=()=>Y.useContext(gg);gg.Provider;function Ob(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var Rb=Y.createContext(Ob()),Lb=()=>Y.useContext(Rb),Ub=(n,l,a)=>{const s=a?.state.error&&typeof n.throwOnError=="function"?pf(n.throwOnError,[a.state.error,a]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||s)&&(l.isReset()||(n.retryOnMount=!1))},Bb=n=>{Y.useEffect(()=>{n.clearReset()},[n])},qb=({result:n,errorResetBoundary:l,throwOnError:a,query:s,suspense:o})=>n.isError&&!l.isReset()&&!n.isFetching&&s&&(o&&n.data===void 0||pf(a,[n.error,s])),Hb=n=>{if(n.suspense){const a=o=>o==="static"?o:Math.max(o??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...o)=>a(s(...o)):a(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},Qb=(n,l)=>n.isLoading&&n.isFetching&&!l,Yb=(n,l)=>n?.suspense&&l.isPending,i0=(n,l,a)=>l.fetchOptimistic(n).catch(()=>{a.clearReset()});function Fb(n,l,a){const s=Mb(),o=Lb(),c=tt(),f=c.defaultQueryOptions(n);c.getDefaultOptions().queries?._experimental_beforeQuery?.(f);const m=c.getQueryCache().get(f.queryHash);f._optimisticResults=s?"isRestoring":"optimistic",Hb(f),Ub(f,o,m),Bb(o);const y=!c.getQueryCache().get(f.queryHash),[p]=Y.useState(()=>new l(c,f)),x=p.getOptimisticResult(f),g=!s&&n.subscribed!==!1;if(Y.useSyncExternalStore(Y.useCallback(v=>{const k=g?p.subscribe(pt.batchCalls(v)):Ht;return p.updateResult(),k},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),Y.useEffect(()=>{p.setOptions(f)},[f,p]),Yb(f,x))throw i0(f,p,o);if(qb({result:x,errorResetBoundary:o,throwOnError:f.throwOnError,query:m,suspense:f.suspense}))throw x.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(f,x),f.experimental_prefetchInRender&&!ml&&Qb(x,s)&&(y?i0(f,p,o):m?.promise)?.catch(Ht).finally(()=>{p.updateResult()}),f.notifyOnChangeProps?x:p.trackResult(x)}function Mn(n,l){return Fb(n,wb)}function vt(n,l){const a=tt(),[s]=Y.useState(()=>new Eb(a,n));Y.useEffect(()=>{s.setOptions(n)},[s,n]);const o=Y.useSyncExternalStore(Y.useCallback(f=>s.subscribe(pt.batchCalls(f)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),c=Y.useCallback((f,m)=>{s.mutate(f,m).catch(Ht)},[s]);if(o.error&&pf(s.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}const Vb=new Db({defaultOptions:{queries:{retry:!1,refetchOnMount:!1}}});var yg=rg();const Gb=to(yg);function Xb(n){if(typeof document>"u")return;let l=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",l.appendChild(a),a.styleSheet?a.styleSheet.cssText=n:a.appendChild(document.createTextNode(n))}const Ib=n=>{switch(n){case"success":return $b;case"info":return Jb;case"warning":return Pb;case"error":return Wb;default:return null}},Kb=Array(12).fill(0),Zb=({visible:n,className:l})=>oe.createElement("div",{className:["sonner-loading-wrapper",l].filter(Boolean).join(" "),"data-visible":n},oe.createElement("div",{className:"sonner-spinner"},Kb.map((a,s)=>oe.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),$b=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},oe.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Pb=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},oe.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Jb=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},oe.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Wb=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},oe.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),ev=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},oe.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),oe.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),tv=()=>{const[n,l]=oe.useState(document.hidden);return oe.useEffect(()=>{const a=()=>{l(document.hidden)};return document.addEventListener("visibilitychange",a),()=>window.removeEventListener("visibilitychange",a)},[]),n};let Jc=1;class nv{constructor(){this.subscribe=l=>(this.subscribers.push(l),()=>{const a=this.subscribers.indexOf(l);this.subscribers.splice(a,1)}),this.publish=l=>{this.subscribers.forEach(a=>a(l))},this.addToast=l=>{this.publish(l),this.toasts=[...this.toasts,l]},this.create=l=>{var a;const{message:s,...o}=l,c=typeof l?.id=="number"||((a=l.id)==null?void 0:a.length)>0?l.id:Jc++,f=this.toasts.find(y=>y.id===c),m=l.dismissible===void 0?!0:l.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),f?this.toasts=this.toasts.map(y=>y.id===c?(this.publish({...y,...l,id:c,title:s}),{...y,...l,id:c,dismissible:m,title:s}):y):this.addToast({title:s,...o,dismissible:m,id:c}),c},this.dismiss=l=>(l?(this.dismissedToasts.add(l),requestAnimationFrame(()=>this.subscribers.forEach(a=>a({id:l,dismiss:!0})))):this.toasts.forEach(a=>{this.subscribers.forEach(s=>s({id:a.id,dismiss:!0}))}),l),this.message=(l,a)=>this.create({...a,message:l}),this.error=(l,a)=>this.create({...a,message:l,type:"error"}),this.success=(l,a)=>this.create({...a,type:"success",message:l}),this.info=(l,a)=>this.create({...a,type:"info",message:l}),this.warning=(l,a)=>this.create({...a,type:"warning",message:l}),this.loading=(l,a)=>this.create({...a,type:"loading",message:l}),this.promise=(l,a)=>{if(!a)return;let s;a.loading!==void 0&&(s=this.create({...a,promise:l,type:"loading",message:a.loading,description:typeof a.description!="function"?a.description:void 0}));const o=Promise.resolve(l instanceof Function?l():l);let c=s!==void 0,f;const m=o.then(async p=>{if(f=["resolve",p],oe.isValidElement(p))c=!1,this.create({id:s,type:"default",message:p});else if(lv(p)&&!p.ok){c=!1;const g=typeof a.error=="function"?await a.error(`HTTP error! status: ${p.status}`):a.error,v=typeof a.description=="function"?await a.description(`HTTP error! status: ${p.status}`):a.description,z=typeof g=="object"&&!oe.isValidElement(g)?g:{message:g};this.create({id:s,type:"error",description:v,...z})}else if(p instanceof Error){c=!1;const g=typeof a.error=="function"?await a.error(p):a.error,v=typeof a.description=="function"?await a.description(p):a.description,z=typeof g=="object"&&!oe.isValidElement(g)?g:{message:g};this.create({id:s,type:"error",description:v,...z})}else if(a.success!==void 0){c=!1;const g=typeof a.success=="function"?await a.success(p):a.success,v=typeof a.description=="function"?await a.description(p):a.description,z=typeof g=="object"&&!oe.isValidElement(g)?g:{message:g};this.create({id:s,type:"success",description:v,...z})}}).catch(async p=>{if(f=["reject",p],a.error!==void 0){c=!1;const x=typeof a.error=="function"?await a.error(p):a.error,g=typeof a.description=="function"?await a.description(p):a.description,k=typeof x=="object"&&!oe.isValidElement(x)?x:{message:x};this.create({id:s,type:"error",description:g,...k})}}).finally(()=>{c&&(this.dismiss(s),s=void 0),a.finally==null||a.finally.call(a)}),y=()=>new Promise((p,x)=>m.then(()=>f[0]==="reject"?x(f[1]):p(f[1])).catch(x));return typeof s!="string"&&typeof s!="number"?{unwrap:y}:Object.assign(s,{unwrap:y})},this.custom=(l,a)=>{const s=a?.id||Jc++;return this.create({jsx:l(s),id:s,...a}),s},this.getActiveToasts=()=>this.toasts.filter(l=>!this.dismissedToasts.has(l.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Wt=new nv,iv=(n,l)=>{const a=l?.id||Jc++;return Wt.addToast({title:n,...l,id:a}),a},lv=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",av=iv,rv=()=>Wt.toasts,sv=()=>Wt.getActiveToasts();Object.assign(av,{success:Wt.success,info:Wt.info,warning:Wt.warning,error:Wt.error,custom:Wt.custom,message:Wt.message,promise:Wt.promise,dismiss:Wt.dismiss,loading:Wt.loading},{getHistory:rv,getToasts:sv});Xb("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function qs(n){return n.label!==void 0}const ov=3,uv="24px",cv="16px",l0=4e3,fv=356,dv=14,hv=45,mv=200;function Fn(...n){return n.filter(Boolean).join(" ")}function pv(n){const[l,a]=n.split("-"),s=[];return l&&s.push(l),a&&s.push(a),s}const gv=n=>{var l,a,s,o,c,f,m,y,p;const{invert:x,toast:g,unstyled:v,interacting:k,setHeights:z,visibleToasts:E,heights:M,index:j,toasts:q,expanded:L,removeToast:ie,defaultRichColors:ee,closeButton:D,style:P,cancelButtonStyle:te,actionButtonStyle:ue,className:R="",descriptionClassName:G="",duration:K,position:de,gap:se,expandByDefault:W,classNames:_,icons:$,closeButtonAriaLabel:ce="Close toast"}=n,[Se,C]=oe.useState(null),[T,V]=oe.useState(null),[S,Q]=oe.useState(!1),[ne,ae]=oe.useState(!1),[me,pe]=oe.useState(!1),[we,dt]=oe.useState(!1),[St,Xe]=oe.useState(!1),[gt,ht]=oe.useState(0),[fn,Nn]=oe.useState(0),On=oe.useRef(g.duration||K||l0),Fi=oe.useRef(null),Dt=oe.useRef(null),hi=j===0,Vi=j+1<=E,kt=g.type,Rn=g.dismissible!==!1,wt=g.className||"",ya=g.descriptionClassName||"",I=oe.useMemo(()=>M.findIndex(ke=>ke.toastId===g.id)||0,[M,g.id]),re=oe.useMemo(()=>{var ke;return(ke=g.closeButton)!=null?ke:D},[g.closeButton,D]),be=oe.useMemo(()=>g.duration||K||l0,[g.duration,K]),Ce=oe.useRef(0),Ee=oe.useRef(0),_t=oe.useRef(0),Mt=oe.useRef(null),[zt,lt]=de.split("-"),jt=oe.useMemo(()=>M.reduce((ke,Je,yt)=>yt>=I?ke:ke+Je.height,0),[M,I]),He=tv(),Ln=g.invert||x,Bt=kt==="loading";Ee.current=oe.useMemo(()=>I*se+jt,[I,jt]),oe.useEffect(()=>{On.current=be},[be]),oe.useEffect(()=>{Q(!0)},[]),oe.useEffect(()=>{const ke=Dt.current;if(ke){const Je=ke.getBoundingClientRect().height;return Nn(Je),z(yt=>[{toastId:g.id,height:Je,position:g.position},...yt]),()=>z(yt=>yt.filter(Ot=>Ot.toastId!==g.id))}},[z,g.id]),oe.useLayoutEffect(()=>{if(!S)return;const ke=Dt.current,Je=ke.style.height;ke.style.height="auto";const yt=ke.getBoundingClientRect().height;ke.style.height=Je,Nn(yt),z(Ot=>Ot.find(et=>et.toastId===g.id)?Ot.map(et=>et.toastId===g.id?{...et,height:yt}:et):[{toastId:g.id,height:yt,position:g.position},...Ot])},[S,g.title,g.description,z,g.id,g.jsx,g.action,g.cancel]);const Un=oe.useCallback(()=>{ae(!0),ht(Ee.current),z(ke=>ke.filter(Je=>Je.toastId!==g.id)),setTimeout(()=>{ie(g)},mv)},[g,ie,z,Ee]);oe.useEffect(()=>{if(g.promise&&kt==="loading"||g.duration===1/0||g.type==="loading")return;let ke;return L||k||He?(()=>{if(_t.current<Ce.current){const Ot=new Date().getTime()-Ce.current;On.current=On.current-Ot}_t.current=new Date().getTime()})():On.current!==1/0&&(Ce.current=new Date().getTime(),ke=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),Un()},On.current)),()=>clearTimeout(ke)},[L,k,g,kt,He,Un]),oe.useEffect(()=>{g.delete&&(Un(),g.onDismiss==null||g.onDismiss.call(g,g))},[Un,g.delete]);function bl(){var ke;if($?.loading){var Je;return oe.createElement("div",{className:Fn(_?.loader,g==null||(Je=g.classNames)==null?void 0:Je.loader,"sonner-loader"),"data-visible":kt==="loading"},$.loading)}return oe.createElement(Zb,{className:Fn(_?.loader,g==null||(ke=g.classNames)==null?void 0:ke.loader),visible:kt==="loading"})}const vl=g.icon||$?.[kt]||Ib(kt);var Gi,Bn;return oe.createElement("li",{tabIndex:0,ref:Dt,className:Fn(R,wt,_?.toast,g==null||(l=g.classNames)==null?void 0:l.toast,_?.default,_?.[kt],g==null||(a=g.classNames)==null?void 0:a[kt]),"data-sonner-toast":"","data-rich-colors":(Gi=g.richColors)!=null?Gi:ee,"data-styled":!(g.jsx||g.unstyled||v),"data-mounted":S,"data-promise":!!g.promise,"data-swiped":St,"data-removed":ne,"data-visible":Vi,"data-y-position":zt,"data-x-position":lt,"data-index":j,"data-front":hi,"data-swiping":me,"data-dismissible":Rn,"data-type":kt,"data-invert":Ln,"data-swipe-out":we,"data-swipe-direction":T,"data-expanded":!!(L||W&&S),"data-testid":g.testId,style:{"--index":j,"--toasts-before":j,"--z-index":q.length-j,"--offset":`${ne?gt:Ee.current}px`,"--initial-height":W?"auto":`${fn}px`,...P,...g.style},onDragEnd:()=>{pe(!1),C(null),Mt.current=null},onPointerDown:ke=>{ke.button!==2&&(Bt||!Rn||(Fi.current=new Date,ht(Ee.current),ke.target.setPointerCapture(ke.pointerId),ke.target.tagName!=="BUTTON"&&(pe(!0),Mt.current={x:ke.clientX,y:ke.clientY})))},onPointerUp:()=>{var ke,Je,yt;if(we||!Rn)return;Mt.current=null;const Ot=Number(((ke=Dt.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),mi=Number(((Je=Dt.current)==null?void 0:Je.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),et=new Date().getTime()-((yt=Fi.current)==null?void 0:yt.getTime()),Yt=Se==="x"?Ot:mi,Xi=Math.abs(Yt)/et;if(Math.abs(Yt)>=hv||Xi>.11){ht(Ee.current),g.onDismiss==null||g.onDismiss.call(g,g),V(Se==="x"?Ot>0?"right":"left":mi>0?"down":"up"),Un(),dt(!0);return}else{var Ft,Vt;(Ft=Dt.current)==null||Ft.style.setProperty("--swipe-amount-x","0px"),(Vt=Dt.current)==null||Vt.style.setProperty("--swipe-amount-y","0px")}Xe(!1),pe(!1),C(null)},onPointerMove:ke=>{var Je,yt,Ot;if(!Mt.current||!Rn||((Je=window.getSelection())==null?void 0:Je.toString().length)>0)return;const et=ke.clientY-Mt.current.y,Yt=ke.clientX-Mt.current.x;var Xi;const Ft=(Xi=n.swipeDirections)!=null?Xi:pv(de);!Se&&(Math.abs(Yt)>1||Math.abs(et)>1)&&C(Math.abs(Yt)>Math.abs(et)?"x":"y");let Vt={x:0,y:0};const Sl=Tn=>1/(1.5+Math.abs(Tn)/20);if(Se==="y"){if(Ft.includes("top")||Ft.includes("bottom"))if(Ft.includes("top")&&et<0||Ft.includes("bottom")&&et>0)Vt.y=et;else{const Tn=et*Sl(et);Vt.y=Math.abs(Tn)<Math.abs(et)?Tn:et}}else if(Se==="x"&&(Ft.includes("left")||Ft.includes("right")))if(Ft.includes("left")&&Yt<0||Ft.includes("right")&&Yt>0)Vt.x=Yt;else{const Tn=Yt*Sl(Yt);Vt.x=Math.abs(Tn)<Math.abs(Yt)?Tn:Yt}(Math.abs(Vt.x)>0||Math.abs(Vt.y)>0)&&Xe(!0),(yt=Dt.current)==null||yt.style.setProperty("--swipe-amount-x",`${Vt.x}px`),(Ot=Dt.current)==null||Ot.style.setProperty("--swipe-amount-y",`${Vt.y}px`)}},re&&!g.jsx&&kt!=="loading"?oe.createElement("button",{"aria-label":ce,"data-disabled":Bt,"data-close-button":!0,onClick:Bt||!Rn?()=>{}:()=>{Un(),g.onDismiss==null||g.onDismiss.call(g,g)},className:Fn(_?.closeButton,g==null||(s=g.classNames)==null?void 0:s.closeButton)},(Bn=$?.close)!=null?Bn:ev):null,(kt||g.icon||g.promise)&&g.icon!==null&&($?.[kt]!==null||g.icon)?oe.createElement("div",{"data-icon":"",className:Fn(_?.icon,g==null||(o=g.classNames)==null?void 0:o.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||bl():null,g.type!=="loading"?vl:null):null,oe.createElement("div",{"data-content":"",className:Fn(_?.content,g==null||(c=g.classNames)==null?void 0:c.content)},oe.createElement("div",{"data-title":"",className:Fn(_?.title,g==null||(f=g.classNames)==null?void 0:f.title)},g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title),g.description?oe.createElement("div",{"data-description":"",className:Fn(G,ya,_?.description,g==null||(m=g.classNames)==null?void 0:m.description)},typeof g.description=="function"?g.description():g.description):null),oe.isValidElement(g.cancel)?g.cancel:g.cancel&&qs(g.cancel)?oe.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||te,onClick:ke=>{qs(g.cancel)&&Rn&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,ke),Un())},className:Fn(_?.cancelButton,g==null||(y=g.classNames)==null?void 0:y.cancelButton)},g.cancel.label):null,oe.isValidElement(g.action)?g.action:g.action&&qs(g.action)?oe.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||ue,onClick:ke=>{qs(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,ke),!ke.defaultPrevented&&Un())},className:Fn(_?.actionButton,g==null||(p=g.classNames)==null?void 0:p.actionButton)},g.action.label):null)};function a0(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function yv(n,l){const a={};return[n,l].forEach((s,o)=>{const c=o===1,f=c?"--mobile-offset":"--offset",m=c?cv:uv;function y(p){["top","right","bottom","left"].forEach(x=>{a[`${f}-${x}`]=typeof p=="number"?`${p}px`:p})}typeof s=="number"||typeof s=="string"?y(s):typeof s=="object"?["top","right","bottom","left"].forEach(p=>{s[p]===void 0?a[`${f}-${p}`]=m:a[`${f}-${p}`]=typeof s[p]=="number"?`${s[p]}px`:s[p]}):y(m)}),a}const xv=oe.forwardRef(function(l,a){const{id:s,invert:o,position:c="bottom-right",hotkey:f=["altKey","KeyT"],expand:m,closeButton:y,className:p,offset:x,mobileOffset:g,theme:v="light",richColors:k,duration:z,style:E,visibleToasts:M=ov,toastOptions:j,dir:q=a0(),gap:L=dv,icons:ie,containerAriaLabel:ee="Notifications"}=l,[D,P]=oe.useState([]),te=oe.useMemo(()=>s?D.filter(S=>S.toasterId===s):D.filter(S=>!S.toasterId),[D,s]),ue=oe.useMemo(()=>Array.from(new Set([c].concat(te.filter(S=>S.position).map(S=>S.position)))),[te,c]),[R,G]=oe.useState([]),[K,de]=oe.useState(!1),[se,W]=oe.useState(!1),[_,$]=oe.useState(v!=="system"?v:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ce=oe.useRef(null),Se=f.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=oe.useRef(null),T=oe.useRef(!1),V=oe.useCallback(S=>{P(Q=>{var ne;return(ne=Q.find(ae=>ae.id===S.id))!=null&&ne.delete||Wt.dismiss(S.id),Q.filter(({id:ae})=>ae!==S.id)})},[]);return oe.useEffect(()=>Wt.subscribe(S=>{if(S.dismiss){requestAnimationFrame(()=>{P(Q=>Q.map(ne=>ne.id===S.id?{...ne,delete:!0}:ne))});return}setTimeout(()=>{Gb.flushSync(()=>{P(Q=>{const ne=Q.findIndex(ae=>ae.id===S.id);return ne!==-1?[...Q.slice(0,ne),{...Q[ne],...S},...Q.slice(ne+1)]:[S,...Q]})})})}),[D]),oe.useEffect(()=>{if(v!=="system"){$(v);return}if(v==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;const S=window.matchMedia("(prefers-color-scheme: dark)");try{S.addEventListener("change",({matches:Q})=>{$(Q?"dark":"light")})}catch{S.addListener(({matches:ne})=>{try{$(ne?"dark":"light")}catch(ae){console.error(ae)}})}},[v]),oe.useEffect(()=>{D.length<=1&&de(!1)},[D]),oe.useEffect(()=>{const S=Q=>{var ne;if(f.every(pe=>Q[pe]||Q.code===pe)){var me;de(!0),(me=ce.current)==null||me.focus()}Q.code==="Escape"&&(document.activeElement===ce.current||(ne=ce.current)!=null&&ne.contains(document.activeElement))&&de(!1)};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[f]),oe.useEffect(()=>{if(ce.current)return()=>{C.current&&(C.current.focus({preventScroll:!0}),C.current=null,T.current=!1)}},[ce.current]),oe.createElement("section",{ref:a,"aria-label":`${ee} ${Se}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ue.map((S,Q)=>{var ne;const[ae,me]=S.split("-");return te.length?oe.createElement("ol",{key:S,dir:q==="auto"?a0():q,tabIndex:-1,ref:ce,className:p,"data-sonner-toaster":!0,"data-sonner-theme":_,"data-y-position":ae,"data-x-position":me,style:{"--front-toast-height":`${((ne=R[0])==null?void 0:ne.height)||0}px`,"--width":`${fv}px`,"--gap":`${L}px`,...E,...yv(x,g)},onBlur:pe=>{T.current&&!pe.currentTarget.contains(pe.relatedTarget)&&(T.current=!1,C.current&&(C.current.focus({preventScroll:!0}),C.current=null))},onFocus:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||T.current||(T.current=!0,C.current=pe.relatedTarget)},onMouseEnter:()=>de(!0),onMouseMove:()=>de(!0),onMouseLeave:()=>{se||de(!1)},onDragEnd:()=>de(!1),onPointerDown:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||W(!0)},onPointerUp:()=>W(!1)},te.filter(pe=>!pe.position&&Q===0||pe.position===S).map((pe,we)=>{var dt,St;return oe.createElement(gv,{key:pe.id,icons:ie,index:we,toast:pe,defaultRichColors:k,duration:(dt=j?.duration)!=null?dt:z,className:j?.className,descriptionClassName:j?.descriptionClassName,invert:o,visibleToasts:M,closeButton:(St=j?.closeButton)!=null?St:y,interacting:se,position:S,style:j?.style,unstyled:j?.unstyled,classNames:j?.classNames,cancelButtonStyle:j?.cancelButtonStyle,actionButtonStyle:j?.actionButtonStyle,closeButtonAriaLabel:j?.closeButtonAriaLabel,removeToast:V,toasts:te.filter(Xe=>Xe.position==pe.position),heights:R.filter(Xe=>Xe.position==pe.position),setHeights:G,expandByDefault:m,gap:L,expanded:K,swipeDirections:l.swipeDirections})})):null}))}),vr="/api";class yl extends Error{status;constructor(l,a){super(a),this.status=l,this.name="FetchError"}static isFetchError(l){return l instanceof yl}}async function Xn(n,l){const s=await fetch(`${vr}${n}`);if(!s.ok){const o=await s.text();throw new yl(s.status,o)}return s.json()}async function jn(n,l){const a=await fetch(`${vr}${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!a.ok){const s=await a.text();throw new yl(a.status,s)}return a.json()}async function xg(n,l){const a=await fetch(`${vr}${n}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!a.ok){const s=await a.text();throw new yl(a.status,s)}return a.json()}async function bg(n,l){const a=await fetch(`${vr}${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!a.ok){const s=await a.text();throw new yl(a.status,s)}return a.json()}async function Gn(n){const l=await fetch(`${vr}${n}`,{method:"DELETE"});if(!l.ok){const a=await l.text();throw new yl(l.status,a)}if(l.status!==204)return l.json()}function bv(){return{queryKey:["projects"],queryFn:()=>Xn("/projects")}}function no(n){return{queryKey:["tasks",n],queryFn:()=>Xn(`/tasks/project/${n}`),enabled:!!n}}function xf(){return 2e3}function vv(n){return{queryKey:["task",n],queryFn:()=>Xn(`/tasks/${n}`),enabled:!!n,refetchInterval:2e3}}function Sv(n){const l=tt();return vt({mutationFn:a=>jn(`/tasks/project/${n}`,a),onSuccess:()=>{l.invalidateQueries({queryKey:["tasks",n]})}})}function kv(){const n=tt();return vt({mutationFn:({taskId:l,...a})=>xg(`/tasks/${l}`,a),onSuccess:l=>{n.invalidateQueries({queryKey:["tasks",l.project_id]}),n.invalidateQueries({queryKey:["task",l.id]})}})}function wv(){const n=tt();return vt({mutationKey:["moveTask"],mutationFn:({taskId:l,status:a,position:s})=>jn(`/tasks/${l}/move`,{status:a,position:s}),onSuccess:l=>{n.invalidateQueries({queryKey:["tasks",l.project_id]})}})}function zv(){const n=tt();return vt({mutationFn:l=>Gn(`/tasks/${l}`),onSuccess:()=>{n.invalidateQueries({queryKey:["tasks"]})}})}function jv(n){const l=tt();return vt({mutationFn:a=>Gn(`/tasks/project/${n}/status/${a}`),onSuccess:()=>{l.invalidateQueries({queryKey:["tasks",n]})}})}function vg(n){const l=tt();return vt({mutationFn:a=>jn(`/comments/task/${n}`,{author:"user",content:a}),onSuccess:()=>{l.invalidateQueries({queryKey:["task",n]})}})}function Cv(n){const l=tt();return vt({mutationFn:a=>Gn(`/comments/${a}`),onSuccess:()=>{l.invalidateQueries({queryKey:["task",n]})}})}function Nv(){const n=tt();return vt({mutationFn:({taskId:l,status:a="backlog"})=>jn(`/tasks/${l}/force-reset`,{status:a}),onSuccess:l=>{n.invalidateQueries({queryKey:["tasks",l.project_id]}),n.invalidateQueries({queryKey:["task",l.id]})}})}function Tv(n){const{onHelp:l,onAddTask:a,onAddTemplate:s,onCloseModal:o,onTroubleshooting:c,onStats:f}=n,m=Y.useCallback(y=>{const p=y.target;if(p.tagName==="INPUT"||p.tagName==="TEXTAREA"||p.isContentEditable){y.key==="Escape"&&o&&o();return}if(!(y.metaKey||y.ctrlKey||y.altKey))switch(y.key.toLowerCase()){case"?":case"h":y.preventDefault(),l?.();break;case"n":case"a":y.preventDefault(),a?.();break;case"t":y.preventDefault(),s?.();break;case"escape":y.preventDefault(),o?.();break;case"d":y.preventDefault(),c?.();break;case"s":y.preventDefault(),f?.();break}},[l,a,s,o,c,f]);Y.useEffect(()=>(window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)),[m])}const r0='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" rx="20" fill="%2318181b"/><rect x="15" y="25" width="70" height="10" rx="3" fill="%2327272a"/><rect x="15" y="45" width="70" height="10" rx="3" fill="%2327272a"/><rect x="15" y="65" width="70" height="10" rx="3" fill="%2327272a"/></svg>',Ev='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" rx="20" fill="%2318181b"/><rect x="15" y="25" width="70" height="10" rx="3" fill="%2327272a"/><rect x="15" y="45" width="70" height="10" rx="3" fill="%2327272a"/><rect x="15" y="65" width="70" height="10" rx="3" fill="%2327272a"/><circle cx="85" cy="15" r="12" fill="%23ef4444"/></svg>';function Av(n){const l=n.some(o=>o.blocked),a=Y.useRef(null),s=Y.useRef(document.title);return Y.useEffect(()=>{let o=document.querySelector('link[rel="icon"]');return o||(o=document.createElement("link"),o.rel="icon",o.type="image/svg+xml",document.head.appendChild(o)),a.current=o,s.current=document.title.replace(/^\(\!\) /,""),()=>{a.current&&(a.current.href=r0),document.title=s.current}},[]),Y.useEffect(()=>{a.current&&(a.current.href=l?Ev:r0);const o=s.current;l?document.title=`(!) ${o}`:document.title=o},[l]),l}const Dv=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_v=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,a,s)=>s?s.toUpperCase():a.toLowerCase()),s0=n=>{const l=_v(n);return l.charAt(0).toUpperCase()+l.slice(1)},Sg=(...n)=>n.filter((l,a,s)=>!!l&&l.trim()!==""&&s.indexOf(l)===a).join(" ").trim(),Mv=n=>{for(const l in n)if(l.startsWith("aria-")||l==="role"||l==="title")return!0};var Ov={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Rv=Y.forwardRef(({color:n="currentColor",size:l=24,strokeWidth:a=2,absoluteStrokeWidth:s,className:o="",children:c,iconNode:f,...m},y)=>Y.createElement("svg",{ref:y,...Ov,width:l,height:l,stroke:n,strokeWidth:s?Number(a)*24/Number(l):a,className:Sg("lucide",o),...!c&&!Mv(m)&&{"aria-hidden":"true"},...m},[...f.map(([p,x])=>Y.createElement(p,x)),...Array.isArray(c)?c:[c]]));const ge=(n,l)=>{const a=Y.forwardRef(({className:s,...o},c)=>Y.createElement(Rv,{ref:c,iconNode:l,className:Sg(`lucide-${Dv(s0(n))}`,`lucide-${n}`,s),...o}));return a.displayName=s0(n),a};const Lv=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],kg=ge("activity",Lv);const Uv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Bv=ge("arrow-right",Uv);const qv=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Hv=ge("bot",qv);const Qv=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Yv=ge("calendar",Qv);const Fv=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Vv=ge("chart-column",Fv);const Gv=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],bf=ge("check-check",Gv);const Xv=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Iv=ge("check",Xv);const Kv=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Sr=ge("chevron-down",Kv);const Zv=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],wg=ge("chevron-left",Zv);const $v=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],zg=ge("circle-alert",$v);const Pv=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],jg=ge("circle-check-big",Pv);const Jv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],vf=ge("circle-check",Jv);const Wv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Sf=ge("circle-question-mark",Wv);const e2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Cg=ge("circle-x",e2);const t2=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Qi=ge("clock",t2);const n2=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],i2=ge("copy",n2);const l2=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],a2=ge("database",l2);const r2=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],s2=ge("ellipsis-vertical",r2);const o2=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ng=ge("external-link",o2);const u2=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],c2=ge("eye",u2);const f2=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],kf=ge("file-image",f2);const d2=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],kr=ge("file-text",d2);const h2=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],m2=ge("git-branch",h2);const p2=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],g2=ge("history",p2);const y2=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Tg=ge("image",y2);const x2=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],wf=ge("inbox",x2);const b2=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],v2=ge("keyboard",b2);const S2=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],k2=ge("layout-template",S2);const w2=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],z2=ge("lightbulb",w2);const j2=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],Eg=ge("list-todo",j2);const C2=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],da=ge("loader-circle",C2);const N2=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],T2=ge("lock",N2);const E2=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Ag=ge("message-circle",E2);const A2=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],D2=ge("message-square",A2);const _2=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Dg=ge("pencil",_2);const M2=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],_g=ge("play",M2);const O2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],zf=ge("plus",O2);const R2=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],L2=ge("puzzle",R2);const U2=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Mg=ge("refresh-cw",U2);const B2=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],q2=ge("rocket",B2);const H2=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Q2=ge("rotate-ccw",H2);const Y2=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],F2=ge("send",Y2);const V2=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],G2=ge("server",V2);const X2=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],I2=ge("settings",X2);const K2=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],Z2=ge("settings-2",K2);const $2=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],P2=ge("sparkles",$2);const J2=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],W2=ge("terminal",J2);const eS=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],dl=ge("trash-2",eS);const tS=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],nS=ge("trending-up",tS);const iS=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],lS=ge("triangle-alert",iS);const aS=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],jf=ge("upload",aS);const rS=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],sS=ge("user",rS);const oS=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],uS=ge("volume-2",oS);const cS=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]],fS=ge("volume-x",cS);const dS=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Og=ge("wrench",dS);const hS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Cn=ge("x",hS);const mS=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],pS=ge("zap",mS),gS="3333";function io(){return"/queue"}function yS(){return"claude-queue"}function xS(){return gS}function bS(n=2e3){const[l,a]=Y.useState(!1),s=Y.useCallback(o=>{navigator.clipboard.writeText(o),a(!0),setTimeout(()=>a(!1),n)},[n]);return{copied:l,copy:s}}function zn(n){const{text:l,className:a=""}=n,{copied:s,copy:o}=bS();return h.jsx("button",{onClick:c=>{c.stopPropagation(),o(l)},className:`p-1 rounded transition-colors ${a}`,title:"Copy to clipboard",children:s?h.jsx(Iv,{className:"w-3.5 h-3.5 text-green-400"}):h.jsx(i2,{className:"w-3.5 h-3.5 text-zinc-500 hover:text-zinc-300"})})}function vS(n){const{project:l,tasks:a}=n,[s,o]=Y.useState(!1),c=io();if(!l)return null;const f=a.find(x=>x.status==="in_progress"),m=()=>[{label:"Work on tasks",description:"Start working through ready tasks",command:`${c} ${l.id}`,icon:h.jsx(_g,{className:"w-3.5 h-3.5"})},{label:"Plan tasks",description:"Describe a feature and create tasks",command:`${c} plan ${l.id}`,icon:h.jsx(Eg,{className:"w-3.5 h-3.5"})}],p=f?f.blocked?{icon:h.jsx(zg,{className:"w-3.5 h-3.5"}),label:"Needs reply",color:"text-red-400",bgColor:"bg-red-900/20",description:"Claude is waiting for your response.",action:"Click on the task in progress and reply to Claude's question."}:{icon:h.jsx(da,{className:"w-3.5 h-3.5 animate-spin"}),label:"Working",color:"text-green-400",bgColor:"bg-green-900/20",description:f.current_activity||`Working on: ${f.title}`}:{icon:h.jsx(W2,{className:"w-3.5 h-3.5"}),label:"Idle",color:"text-zinc-400",bgColor:"bg-zinc-800",description:"Run a command in Claude Code:",commands:m()};return h.jsxs("div",{className:"relative",children:[h.jsxs("button",{onClick:()=>o(!s),className:`flex items-center gap-2 px-3 py-1.5 rounded-lg ${p.bgColor} hover:opacity-90 transition-opacity`,children:[h.jsx("span",{className:p.color,children:p.icon}),h.jsx("span",{className:`text-xs font-medium ${p.color}`,children:p.label}),h.jsx(Sr,{className:`w-3 h-3 ${p.color} transition-transform ${s?"rotate-180":""}`})]}),s&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>o(!1)}),h.jsx("div",{className:"absolute right-0 top-full mt-2 z-50 w-80 bg-zinc-900 border border-zinc-800 rounded-lg shadow-xl",children:h.jsxs("div",{className:"p-3 space-y-3",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:p.color,children:p.icon}),h.jsx("span",{className:`font-medium ${p.color}`,children:p.label})]}),h.jsx("p",{className:"text-sm text-zinc-300",children:p.description}),"commands"in p&&p.commands&&h.jsx("div",{className:"space-y-2",children:p.commands.map(x=>h.jsxs("div",{className:"bg-zinc-800 rounded-lg border border-zinc-700 overflow-hidden",children:[h.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50",children:[h.jsx("span",{className:"text-orange-400",children:x.icon}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("div",{className:"text-sm font-medium text-zinc-200",children:x.label}),h.jsx("div",{className:"text-xs text-zinc-500",children:x.description})]})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("code",{className:"flex-1 text-sm font-mono text-orange-400 px-3 py-2",children:x.command}),h.jsx(zn,{text:x.command,className:"mr-2"})]})]},x.command))}),p.action&&h.jsx("p",{className:"text-xs text-zinc-500",children:p.action})]})})]})]})}function SS(n){const{project:l,projects:a,onProjectChange:s,onHelpClick:o,onTroubleshootClick:c,onStatsClick:f,onSettingsClick:m}=n,[y,p]=Y.useState(!1),x=Y.useRef(null),g=xf(),{data:v=[]}=Mn({...no(l?.id||""),enabled:!!l,refetchInterval:g}),k=io(),z=l?`${k} ${l.id}`:"",E=l?`${k} plan ${l.id}`:"";return Y.useEffect(()=>{if(!y)return;function M(j){x.current&&!x.current.contains(j.target)&&p(!1)}return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[y]),h.jsxs("header",{className:"sticky top-0 z-20 h-14 border-b border-zinc-800 bg-zinc-950 flex items-center justify-between px-4",children:[h.jsxs("div",{className:"flex items-center gap-4",children:[h.jsx("h1",{className:"text-sm font-medium text-zinc-300",children:"claude-queue"}),a.length>0&&h.jsx("select",{value:l?.id||"",onChange:M=>s(M.target.value),className:"bg-zinc-900 border border-zinc-800 rounded-lg px-3 py-1.5 text-sm text-zinc-300 focus:outline-none focus:border-zinc-700",children:a.map(M=>h.jsx("option",{value:M.id,children:M.name},M.id))})]}),h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx(vS,{project:l,tasks:v}),l&&h.jsxs("div",{className:"relative",ref:x,children:[h.jsxs("button",{onClick:()=>p(!y),className:"flex items-center gap-1.5 bg-zinc-800/50 rounded-lg border border-zinc-700/50 px-2 py-1 hover:bg-zinc-800 transition-colors",children:[h.jsx("code",{className:"text-xs font-mono text-zinc-400",children:z}),h.jsx(Sr,{className:`w-3 h-3 text-zinc-500 transition-transform ${y?"rotate-180":""}`})]}),y&&h.jsxs("div",{className:"absolute right-0 top-full mt-1 bg-zinc-800 border border-zinc-700 rounded-lg shadow-xl z-50 min-w-[280px]",children:[h.jsxs("div",{className:"p-2 border-b border-zinc-700",children:[h.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[h.jsx(_g,{className:"w-3 h-3 text-orange-400"}),h.jsx("span",{className:"text-xs text-zinc-300 font-medium",children:"Work Mode"})]}),h.jsx("p",{className:"text-[10px] text-zinc-500 mb-2",children:"Start working through tasks"}),h.jsxs("div",{className:"flex items-center justify-between bg-zinc-900 rounded px-2 py-1.5",children:[h.jsx("code",{className:"text-xs font-mono text-zinc-400",children:z}),h.jsx(zn,{text:z})]})]}),h.jsxs("div",{className:"p-2",children:[h.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[h.jsx(P2,{className:"w-3 h-3 text-purple-400"}),h.jsx("span",{className:"text-xs text-zinc-300 font-medium",children:"Planning Mode"})]}),h.jsx("p",{className:"text-[10px] text-zinc-500 mb-2",children:"Auto-generate tasks from a description"}),h.jsxs("div",{className:"flex items-center justify-between bg-zinc-900 rounded px-2 py-1.5",children:[h.jsx("code",{className:"text-xs font-mono text-zinc-400",children:E}),h.jsx(zn,{text:E})]})]})]})]}),l&&h.jsx("button",{onClick:f,className:"p-1.5 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded-lg transition-colors",title:"Project Statistics",children:h.jsx(Vv,{className:"w-4 h-4"})}),h.jsx("button",{onClick:m,className:"p-1.5 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded-lg transition-colors",title:"Settings",children:h.jsx(I2,{className:"w-4 h-4"})}),h.jsx("button",{onClick:c,className:"p-1.5 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded-lg transition-colors",title:"Troubleshooting",children:h.jsx(Og,{className:"w-4 h-4"})}),h.jsx("button",{onClick:o,className:"p-1.5 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded-lg transition-colors",title:"Help",children:h.jsx(Sf,{className:"w-4 h-4"})})]})]})}function kS(n){return{queryKey:["templates",n],queryFn:()=>Xn(`/templates/project/${n}`),enabled:!!n}}function wS(n){const l=tt();return vt({mutationFn:a=>jn(`/templates/project/${n}`,a),onSuccess:()=>{l.invalidateQueries({queryKey:["templates",n]})}})}function zS(){const n=tt();return vt({mutationFn:({templateId:l,...a})=>xg(`/templates/${l}`,a),onSuccess:l=>{n.invalidateQueries({queryKey:["templates",l.project_id]})}})}function jS(){const n=tt();return vt({mutationFn:({templateId:l,position:a})=>jn(`/templates/${l}/move`,{position:a}),onSuccess:l=>{n.invalidateQueries({queryKey:["templates",l.project_id]})}})}function CS(){const n=tt();return vt({mutationFn:l=>Gn(`/templates/${l}`),onSuccess:()=>{n.invalidateQueries({queryKey:["templates"]})}})}const Rg="claude-queue-sound-enabled",NS={complete:"/sounds/complete.mp3",question:"/sounds/question.mp3",start:"/sounds/start.mp3"};function Wc(){const n=localStorage.getItem(Rg);return n===null?!0:n==="true"}function TS(n){localStorage.setItem(Rg,String(n)),window.dispatchEvent(new Event("sound-settings-changed"))}const o0=new Map;function ES(n){let l=o0.get(n);return l||(l=new Audio(NS[n]),o0.set(n,l)),l}function AS(n){return window.addEventListener("sound-settings-changed",n),window.addEventListener("storage",n),()=>{window.removeEventListener("sound-settings-changed",n),window.removeEventListener("storage",n)}}function DS(){return[Y.useSyncExternalStore(AS,Wc,()=>!0),TS]}function _S(){const n=Y.useRef(Wc());return Y.useEffect(()=>{const a=()=>{n.current=Wc()};return window.addEventListener("sound-settings-changed",a),window.addEventListener("storage",a),()=>{window.removeEventListener("sound-settings-changed",a),window.removeEventListener("storage",a)}},[]),Y.useCallback(a=>{if(!n.current)return;const s=ES(a);s.currentTime=0,s.play().catch(()=>{})},[])}function MS(n){const l=_S(),a=Y.useRef(new Map),s=Y.useRef(!0);Y.useEffect(()=>{if(n.length===0)return;if(s.current){s.current=!1;const f=new Map;for(const m of n)f.set(m.id,m);a.current=f;return}const o=a.current;for(const f of n){const m=o.get(f.id);if(m){if(f.status==="done"&&m.status!=="done"){l("complete");break}if(f.status==="in_progress"&&m.status==="ready"){l("start");break}if(f.blocked&&!m.blocked){l("question");break}}}const c=new Map;for(const f of n)c.set(f.id,f);a.current=c},[n,l])}const u0=[{id:"backlog",title:"Backlog"},{id:"ready",title:"Ready"},{id:"in_progress",title:"In Progress"},{id:"done",title:"Done"}];function Cf(n){const l=new Date(n),s=new Date().getTime()-l.getTime(),o=Math.floor(s/6e4);if(o<1)return"just now";if(o<60)return`${o}m ago`;const c=Math.floor(o/60);return c<24?`${c}h ago`:l.toLocaleDateString()}function hl(n){const{title:l,message:a,confirmLabel:s="Confirm",cancelLabel:o="Cancel",confirmVariant:c="danger",isLoading:f=!1,onConfirm:m,onCancel:y}=n,p={danger:"bg-red-600 hover:bg-red-500",warning:"bg-yellow-600 hover:bg-yellow-500",default:"bg-zinc-700 hover:bg-zinc-600"}[c];return h.jsxs("div",{className:"fixed inset-0 z-[60] flex items-center justify-center",children:[h.jsx("div",{className:"absolute inset-0 bg-black/60",onClick:y}),h.jsxs("div",{className:"relative w-full max-w-sm mx-4 bg-zinc-900 border border-zinc-800 rounded-xl p-5",children:[h.jsx("h3",{className:"text-lg font-medium text-zinc-100 mb-2",children:l}),h.jsx("div",{className:"text-sm text-zinc-400 mb-5",children:a}),h.jsxs("div",{className:"flex items-center justify-end gap-3",children:[h.jsx("button",{onClick:y,className:"px-4 py-2 text-sm text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 rounded-lg transition-colors",children:o}),h.jsx("button",{onClick:m,disabled:f,className:`px-4 py-2 text-sm font-medium text-white ${p} rounded-lg transition-colors`,children:f?"...":s})]})]})]})}function OS(n){const{content:l,children:a,delay:s=300,maxWidth:o=300}=n,[c,f]=Y.useState(!1),[m,y]=Y.useState({top:0,left:0}),p=Y.useRef(null),x=Y.useRef(null);Y.useEffect(()=>()=>{x.current&&clearTimeout(x.current)},[]);const g=()=>{x.current=window.setTimeout(()=>{if(p.current){const k=p.current.getBoundingClientRect(),z=k.top-8;let E=k.left+k.width/2;E+o/2>window.innerWidth&&(E=window.innerWidth-o/2-16),E-o/2<0&&(E=o/2+16),y({top:z,left:E}),f(!0)}},s)},v=()=>{x.current&&(clearTimeout(x.current),x.current=null),f(!1)};return h.jsxs(h.Fragment,{children:[h.jsx("div",{ref:p,onMouseEnter:g,onMouseLeave:v,className:"contents",children:a}),c&&yg.createPortal(h.jsxs("div",{className:"fixed z-[9999] pointer-events-none animate-in fade-in zoom-in-95 duration-150",style:{top:m.top,left:m.left,transform:"translate(-50%, -100%)",maxWidth:o},children:[h.jsx("div",{className:"bg-zinc-800 border border-zinc-700 rounded-lg px-3 py-2 text-sm text-zinc-200 shadow-lg",children:l}),h.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 -bottom-1.5 w-3 h-3 bg-zinc-800 border-r border-b border-zinc-700 rotate-45"})]}),document.body)]})}function RS(n,l){if(!n||!l)return null;const a=new Date(n).getTime(),o=new Date(l).getTime()-a;if(o<0)return null;const c=Math.floor(o/1e3),f=Math.floor(c/60),m=Math.floor(f/60);if(m>0){const y=f%60;return`${m}h ${y}m`}return f>0?`${f}m`:`${c}s`}function LS(n){const{task:l,onClick:a}=n,[s,o]=Y.useState(!1),[c,f]=Y.useState(!1),[m,y]=Y.useState(!1),[p,x]=Y.useState(!1),g=Y.useRef(null),v=l.status==="in_progress",z=l.status==="done"?RS(l.started_at,l.completed_at):null,E=vg(l.id),M=Nv();Y.useEffect(()=>{if(!p)return;function te(ue){g.current&&!g.current.contains(ue.target)&&x(!1)}return document.addEventListener("mousedown",te),()=>document.removeEventListener("mousedown",te)},[p]);const j=te=>{te.stopPropagation(),x(!p)},q=te=>{te.stopPropagation(),x(!1),o(!0)},L=te=>{te.stopPropagation(),x(!1),f(!0)},ie=te=>{te.stopPropagation(),x(!1),y(!0)},ee=()=>{E.mutate("[ACTION:RESET] Please reset all changes and start this task fresh.",{onSuccess:()=>o(!1)})},D=()=>{E.mutate("[ACTION:CANCEL] Please stop working on this task and move it to backlog.",{onSuccess:()=>f(!1)})},P=()=>{M.mutate({taskId:l.id,status:"backlog"},{onSuccess:()=>y(!1)})};return h.jsxs(h.Fragment,{children:[h.jsxs("div",{onClick:a,className:`
|
|
8
|
+
`+r.stack}}var Dt=Object.prototype.hasOwnProperty,mi=n.unstable_scheduleCallback,Vi=n.unstable_cancelCallback,kt=n.unstable_shouldYield,Rn=n.unstable_requestPaint,wt=n.unstable_now,ya=n.unstable_getCurrentPriorityLevel,K=n.unstable_ImmediatePriority,se=n.unstable_UserBlockingPriority,be=n.unstable_NormalPriority,Ce=n.unstable_LowPriority,Ee=n.unstable_IdlePriority,_t=n.log,Mt=n.unstable_setDisableYieldValue,zt=null,lt=null;function jt(e){if(typeof _t=="function"&&Mt(e),lt&&typeof lt.setStrictMode=="function")try{lt.setStrictMode(zt,e)}catch{}}var He=Math.clz32?Math.clz32:Un,Ln=Math.log,Bt=Math.LN2;function Un(e){return e>>>=0,e===0?32:31-(Ln(e)/Bt|0)|0}var bl=256,vl=262144,Gi=4194304;function Bn(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 ke(e,t,i){var r=e.pendingLanes;if(r===0)return 0;var u=0,d=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var w=r&134217727;return w!==0?(r=w&~d,r!==0?u=Bn(r):(b&=w,b!==0?u=Bn(b):i||(i=w&~e,i!==0&&(u=Bn(i))))):(w=r&~d,w!==0?u=Bn(w):b!==0?u=Bn(b):i||(i=r&~e,i!==0&&(u=Bn(i)))),u===0?0:t!==0&&t!==u&&(t&d)===0&&(d=u&-u,i=t&-t,d>=i||d===32&&(i&4194048)!==0)?t:u}function Je(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function yt(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 Ot(){var e=Gi;return Gi<<=1,(Gi&62914560)===0&&(Gi=4194304),e}function pi(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function et(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Yt(e,t,i,r,u,d){var b=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var w=e.entanglements,N=e.expirationTimes,q=e.hiddenUpdates;for(i=b&~i;0<i;){var I=31-He(i),J=1<<I;w[I]=0,N[I]=-1;var H=q[I];if(H!==null)for(q[I]=null,I=0;I<H.length;I++){var F=H[I];F!==null&&(F.lane&=-536870913)}i&=~J}r!==0&&Xi(e,r,0),d!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=d&~(b&~t))}function Xi(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-He(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|i&261930}function Ft(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var r=31-He(i),u=1<<r;u&t|e[r]&t&&(e[r]|=t),i&=~u}}function Vt(e,t){var i=t&-t;return i=(i&42)!==0?1:Sl(i),(i&(e.suspendedLanes|t))!==0?0:i}function Sl(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 Tn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function co(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:Dp(e.type))}function If(e,t){var i=$.p;try{return $.p=e,t()}finally{$.p=i}}var gi=Math.random().toString(36).slice(2),Ct="__reactFiber$"+gi,Gt="__reactProps$"+gi,kl="__reactContainer$"+gi,fo="__reactEvents$"+gi,Yy="__reactListeners$"+gi,Fy="__reactHandles$"+gi,Kf="__reactResources$"+gi,xa="__reactMarker$"+gi;function ho(e){delete e[Ct],delete e[Gt],delete e[fo],delete e[Yy],delete e[Fy]}function wl(e){var t=e[Ct];if(t)return t;for(var i=e.parentNode;i;){if(t=i[kl]||i[Ct]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=pp(e);e!==null;){if(i=e[Ct])return i;e=pp(e)}return t}e=i,i=e.parentNode}return null}function zl(e){if(e=e[Ct]||e[kl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ba(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function jl(e){var t=e[Kf];return t||(t=e[Kf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xt(e){e[xa]=!0}var Zf=new Set,$f={};function Ii(e,t){Cl(e,t),Cl(e+"Capture",t)}function Cl(e,t){for($f[e]=t,e=0;e<t.length;e++)Zf.add(t[e])}var Vy=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]*$"),Pf={},Jf={};function Gy(e){return Dt.call(Jf,e)?!0:Dt.call(Pf,e)?!1:Vy.test(e)?Jf[e]=!0:(Pf[e]=!0,!1)}function Cr(e,t,i){if(Gy(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+i)}}function Nr(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function Kn(e,t,i,r){if(r===null)e.removeAttribute(i);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+r)}}function dn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xy(e,t,i){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var u=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(b){i=""+b,d.call(this,b)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(b){i=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mo(e){if(!e._valueTracker){var t=Wf(e)?"checked":"value";e._valueTracker=Xy(e,t,""+e[t])}}function ed(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),r="";return e&&(r=Wf(e)?e.checked?"true":"false":e.value),e=r,e!==i?(t.setValue(e),!0):!1}function Tr(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 Iy=/[\n"\\]/g;function hn(e){return e.replace(Iy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function po(e,t,i,r,u,d,b,w){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),t!=null?b==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+dn(t)):e.value!==""+dn(t)&&(e.value=""+dn(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?go(e,b,dn(t)):i!=null?go(e,b,dn(i)):r!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+dn(w):e.removeAttribute("name")}function td(e,t,i,r,u,d,b,w){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){mo(e);return}i=i!=null?""+dn(i):"",t=t!=null?""+dn(t):i,w||t===e.value||(e.value=t),e.defaultValue=t}r=r??u,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=w?e.checked:!!r,e.defaultChecked=!!r,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),mo(e)}function go(e,t,i){t==="number"&&Tr(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Nl(e,t,i,r){if(e=e.options,t){t={};for(var u=0;u<i.length;u++)t["$"+i[u]]=!0;for(i=0;i<e.length;i++)u=t.hasOwnProperty("$"+e[i].value),e[i].selected!==u&&(e[i].selected=u),u&&r&&(e[i].defaultSelected=!0)}else{for(i=""+dn(i),t=null,u=0;u<e.length;u++){if(e[u].value===i){e[u].selected=!0,r&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function nd(e,t,i){if(t!=null&&(t=""+dn(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+dn(i):""}function id(e,t,i,r){if(t==null){if(r!=null){if(i!=null)throw Error(s(92));if(W(r)){if(1<r.length)throw Error(s(93));r=r[0]}i=r}i==null&&(i=""),t=i}i=dn(t),e.defaultValue=i,r=e.textContent,r===i&&r!==""&&r!==null&&(e.value=r),mo(e)}function Tl(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Ky=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 ld(e,t,i){var r=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,i):typeof i!="number"||i===0||Ky.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function ad(e,t,i){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,i!=null){for(var r in i)!i.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var u in t)r=t[u],t.hasOwnProperty(u)&&i[u]!==r&&ld(e,u,r)}else for(var d in t)t.hasOwnProperty(d)&&ld(e,d,t[d])}function yo(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 Zy=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"]]),$y=/^[\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 Er(e){return $y.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Zn(){}var xo=null;function bo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var El=null,Al=null;function rd(e){var t=zl(e);if(t&&(e=t.stateNode)){var i=e[Gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(po(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+hn(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var r=i[t];if(r!==e&&r.form===e.form){var u=r[Gt]||null;if(!u)throw Error(s(90));po(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<i.length;t++)r=i[t],r.form===e.form&&ed(r)}break e;case"textarea":nd(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&Nl(e,!!i.multiple,t,!1)}}}var vo=!1;function sd(e,t,i){if(vo)return e(t,i);vo=!0;try{var r=e(t);return r}finally{if(vo=!1,(El!==null||Al!==null)&&(gs(),El&&(t=El,e=Al,Al=El=null,rd(t),e)))for(t=0;t<e.length;t++)rd(e[t])}}function va(e,t){var i=e.stateNode;if(i===null)return null;var r=i[Gt]||null;if(r===null)return null;i=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(s(231,t,typeof i));return i}var $n=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),So=!1;if($n)try{var Sa={};Object.defineProperty(Sa,"passive",{get:function(){So=!0}}),window.addEventListener("test",Sa,Sa),window.removeEventListener("test",Sa,Sa)}catch{So=!1}var yi=null,ko=null,Ar=null;function od(){if(Ar)return Ar;var e,t=ko,i=t.length,r,u="value"in yi?yi.value:yi.textContent,d=u.length;for(e=0;e<i&&t[e]===u[e];e++);var b=i-e;for(r=1;r<=b&&t[i-r]===u[d-r];r++);return Ar=u.slice(e,1<r?1-r:void 0)}function Dr(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 _r(){return!0}function ud(){return!1}function Xt(e){function t(i,r,u,d,b){this._reactName=i,this._targetInst=u,this.type=r,this.nativeEvent=d,this.target=b,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(i=e[w],this[w]=i?i(d):d[w]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?_r:ud,this.isPropagationStopped=ud,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=_r)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=_r)},persist:function(){},isPersistent:_r}),t}var Ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mr=Xt(Ki),ka=g({},Ki,{view:0,detail:0}),Py=Xt(ka),wo,zo,wa,Or=g({},ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Co,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!==wa&&(wa&&e.type==="mousemove"?(wo=e.screenX-wa.screenX,zo=e.screenY-wa.screenY):zo=wo=0,wa=e),wo)},movementY:function(e){return"movementY"in e?e.movementY:zo}}),cd=Xt(Or),Jy=g({},Or,{dataTransfer:0}),Wy=Xt(Jy),ex=g({},ka,{relatedTarget:0}),jo=Xt(ex),tx=g({},Ki,{animationName:0,elapsedTime:0,pseudoElement:0}),nx=Xt(tx),ix=g({},Ki,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lx=Xt(ix),ax=g({},Ki,{data:0}),fd=Xt(ax),rx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sx={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"},ox={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ux(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ox[e])?!!t[e]:!1}function Co(){return ux}var cx=g({},ka,{key:function(e){if(e.key){var t=rx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Dr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Co,charCode:function(e){return e.type==="keypress"?Dr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Dr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fx=Xt(cx),dx=g({},Or,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dd=Xt(dx),hx=g({},ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Co}),mx=Xt(hx),px=g({},Ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),gx=Xt(px),yx=g({},Or,{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}),xx=Xt(yx),bx=g({},Ki,{newState:0,oldState:0}),vx=Xt(bx),Sx=[9,13,27,32],No=$n&&"CompositionEvent"in window,za=null;$n&&"documentMode"in document&&(za=document.documentMode);var kx=$n&&"TextEvent"in window&&!za,hd=$n&&(!No||za&&8<za&&11>=za),md=" ",pd=!1;function gd(e,t){switch(e){case"keyup":return Sx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dl=!1;function wx(e,t){switch(e){case"compositionend":return yd(t);case"keypress":return t.which!==32?null:(pd=!0,md);case"textInput":return e=t.data,e===md&&pd?null:e;default:return null}}function zx(e,t){if(Dl)return e==="compositionend"||!No&&gd(e,t)?(e=od(),Ar=ko=yi=null,Dl=!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 hd&&t.locale!=="ko"?null:t.data;default:return null}}var jx={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 xd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jx[e.type]:t==="textarea"}function bd(e,t,i,r){El?Al?Al.push(r):Al=[r]:El=r,t=ws(t,"onChange"),0<t.length&&(i=new Mr("onChange","change",null,i,r),e.push({event:i,listeners:t}))}var ja=null,Ca=null;function Cx(e){tp(e,0)}function Rr(e){var t=ba(e);if(ed(t))return e}function vd(e,t){if(e==="change")return t}var Sd=!1;if($n){var To;if($n){var Eo="oninput"in document;if(!Eo){var kd=document.createElement("div");kd.setAttribute("oninput","return;"),Eo=typeof kd.oninput=="function"}To=Eo}else To=!1;Sd=To&&(!document.documentMode||9<document.documentMode)}function wd(){ja&&(ja.detachEvent("onpropertychange",zd),Ca=ja=null)}function zd(e){if(e.propertyName==="value"&&Rr(Ca)){var t=[];bd(t,Ca,e,bo(e)),sd(Cx,t)}}function Nx(e,t,i){e==="focusin"?(wd(),ja=t,Ca=i,ja.attachEvent("onpropertychange",zd)):e==="focusout"&&wd()}function Tx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Rr(Ca)}function Ex(e,t){if(e==="click")return Rr(t)}function Ax(e,t){if(e==="input"||e==="change")return Rr(t)}function Dx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:Dx;function Na(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;for(r=0;r<i.length;r++){var u=i[r];if(!Dt.call(t,u)||!tn(e[u],t[u]))return!1}return!0}function jd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cd(e,t){var i=jd(e);e=0;for(var r;i;){if(i.nodeType===3){if(r=e+i.textContent.length,e<=t&&r>=t)return{node:i,offset:t-e};e=r}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=jd(i)}}function Nd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Td(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Tr(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=Tr(e.document)}return t}function Ao(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 _x=$n&&"documentMode"in document&&11>=document.documentMode,_l=null,Do=null,Ta=null,_o=!1;function Ed(e,t,i){var r=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;_o||_l==null||_l!==Tr(r)||(r=_l,"selectionStart"in r&&Ao(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ta&&Na(Ta,r)||(Ta=r,r=ws(Do,"onSelect"),0<r.length&&(t=new Mr("onSelect","select",null,t,i),e.push({event:t,listeners:r}),t.target=_l)))}function Zi(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var Ml={animationend:Zi("Animation","AnimationEnd"),animationiteration:Zi("Animation","AnimationIteration"),animationstart:Zi("Animation","AnimationStart"),transitionrun:Zi("Transition","TransitionRun"),transitionstart:Zi("Transition","TransitionStart"),transitioncancel:Zi("Transition","TransitionCancel"),transitionend:Zi("Transition","TransitionEnd")},Mo={},Ad={};$n&&(Ad=document.createElement("div").style,"AnimationEvent"in window||(delete Ml.animationend.animation,delete Ml.animationiteration.animation,delete Ml.animationstart.animation),"TransitionEvent"in window||delete Ml.transitionend.transition);function $i(e){if(Mo[e])return Mo[e];if(!Ml[e])return e;var t=Ml[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in Ad)return Mo[e]=t[i];return e}var Dd=$i("animationend"),_d=$i("animationiteration"),Md=$i("animationstart"),Mx=$i("transitionrun"),Ox=$i("transitionstart"),Rx=$i("transitioncancel"),Od=$i("transitionend"),Rd=new Map,Oo="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(" ");Oo.push("scrollEnd");function En(e,t){Rd.set(e,t),Ii(t,[e])}var Lr=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)},mn=[],Ol=0,Ro=0;function Ur(){for(var e=Ol,t=Ro=Ol=0;t<e;){var i=mn[t];mn[t++]=null;var r=mn[t];mn[t++]=null;var u=mn[t];mn[t++]=null;var d=mn[t];if(mn[t++]=null,r!==null&&u!==null){var b=r.pending;b===null?u.next=u:(u.next=b.next,b.next=u),r.pending=u}d!==0&&Ld(i,u,d)}}function Br(e,t,i,r){mn[Ol++]=e,mn[Ol++]=t,mn[Ol++]=i,mn[Ol++]=r,Ro|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Lo(e,t,i,r){return Br(e,t,i,r),qr(e)}function Pi(e,t){return Br(e,null,null,t),qr(e)}function Ld(e,t,i){e.lanes|=i;var r=e.alternate;r!==null&&(r.lanes|=i);for(var u=!1,d=e.return;d!==null;)d.childLanes|=i,r=d.alternate,r!==null&&(r.childLanes|=i),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(u=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,u&&t!==null&&(u=31-He(i),e=d.hiddenUpdates,r=e[u],r===null?e[u]=[t]:r.push(t),t.lane=i|536870912),d):null}function qr(e){if(50<$a)throw $a=0,Gu=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Rl={};function Lx(e,t,i,r){this.tag=e,this.key=i,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,t,i,r){return new Lx(e,t,i,r)}function Uo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pn(e,t){var i=e.alternate;return i===null?(i=nn(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function Ud(e,t){e.flags&=65011714;var i=e.alternate;return i===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=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Hr(e,t,i,r,u,d){var b=0;if(r=e,typeof e=="function")Uo(e)&&(b=1);else if(typeof e=="string")b=Q1(e,i,Y.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ue:return e=nn(31,i,t,u),e.elementType=ue,e.lanes=d,e;case E:return Ji(i.children,u,d,t);case M:b=8,u|=24;break;case j:return e=nn(12,i,t,u|2),e.elementType=j,e.lanes=d,e;case ee:return e=nn(13,i,t,u),e.elementType=ee,e.lanes=d,e;case D:return e=nn(19,i,t,u),e.elementType=D,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:b=10;break e;case U:b=9;break e;case ne:b=11;break e;case P:b=14;break e;case le:b=16,r=null;break e}b=29,i=Error(s(130,e===null?"null":typeof e,"")),r=null}return t=nn(b,i,t,u),t.elementType=e,t.type=r,t.lanes=d,t}function Ji(e,t,i,r){return e=nn(7,e,r,t),e.lanes=i,e}function Bo(e,t,i){return e=nn(6,e,null,t),e.lanes=i,e}function Bd(e){var t=nn(18,null,null,0);return t.stateNode=e,t}function qo(e,t,i){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qd=new WeakMap;function pn(e,t){if(typeof e=="object"&&e!==null){var i=qd.get(e);return i!==void 0?i:(t={value:e,source:t,stack:Fi(t)},qd.set(e,t),t)}return{value:e,source:t,stack:Fi(t)}}var Ll=[],Ul=0,Qr=null,Ea=0,gn=[],yn=0,xi=null,qn=1,Hn="";function Jn(e,t){Ll[Ul++]=Ea,Ll[Ul++]=Qr,Qr=e,Ea=t}function Hd(e,t,i){gn[yn++]=qn,gn[yn++]=Hn,gn[yn++]=xi,xi=e;var r=qn;e=Hn;var u=32-He(r)-1;r&=~(1<<u),i+=1;var d=32-He(t)+u;if(30<d){var b=u-u%5;d=(r&(1<<b)-1).toString(32),r>>=b,u-=b,qn=1<<32-He(t)+u|i<<u|r,Hn=d+e}else qn=1<<d|i<<u|r,Hn=e}function Ho(e){e.return!==null&&(Jn(e,1),Hd(e,1,0))}function Qo(e){for(;e===Qr;)Qr=Ll[--Ul],Ll[Ul]=null,Ea=Ll[--Ul],Ll[Ul]=null;for(;e===xi;)xi=gn[--yn],gn[yn]=null,Hn=gn[--yn],gn[yn]=null,qn=gn[--yn],gn[yn]=null}function Qd(e,t){gn[yn++]=qn,gn[yn++]=Hn,gn[yn++]=xi,qn=t.id,Hn=t.overflow,xi=e}var Nt=null,$e=null,Re=!1,bi=null,xn=!1,Yo=Error(s(519));function vi(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Aa(pn(t,e)),Yo}function Yd(e){var t=e.stateNode,i=e.type,r=e.memoizedProps;switch(t[Ct]=e,t[Gt]=r,i){case"dialog":De("cancel",t),De("close",t);break;case"iframe":case"object":case"embed":De("load",t);break;case"video":case"audio":for(i=0;i<Ja.length;i++)De(Ja[i],t);break;case"source":De("error",t);break;case"img":case"image":case"link":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"input":De("invalid",t),td(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":De("invalid",t);break;case"textarea":De("invalid",t),id(t,r.value,r.defaultValue,r.children)}i=r.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||r.suppressHydrationWarning===!0||ap(t.textContent,i)?(r.popover!=null&&(De("beforetoggle",t),De("toggle",t)),r.onScroll!=null&&De("scroll",t),r.onScrollEnd!=null&&De("scrollend",t),r.onClick!=null&&(t.onclick=Zn),t=!0):t=!1,t||vi(e,!0)}function Fd(e){for(Nt=e.return;Nt;)switch(Nt.tag){case 5:case 31:case 13:xn=!1;return;case 27:case 3:xn=!0;return;default:Nt=Nt.return}}function Bl(e){if(e!==Nt)return!1;if(!Re)return Fd(e),Re=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||rc(e.type,e.memoizedProps)),i=!i),i&&$e&&vi(e),Fd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));$e=mp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));$e=mp(e)}else t===27?(t=$e,Oi(e.type)?(e=fc,fc=null,$e=e):$e=t):$e=Nt?vn(e.stateNode.nextSibling):null;return!0}function Wi(){$e=Nt=null,Re=!1}function Fo(){var e=bi;return e!==null&&($t===null?$t=e:$t.push.apply($t,e),bi=null),e}function Aa(e){bi===null?bi=[e]:bi.push(e)}var Vo=T(null),el=null,Wn=null;function Si(e,t,i){v(Vo,t._currentValue),t._currentValue=i}function ei(e){e._currentValue=Vo.current,G(Vo)}function Go(e,t,i){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===i)break;e=e.return}}function Xo(e,t,i,r){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var d=u.dependencies;if(d!==null){var b=u.child;d=d.firstContext;e:for(;d!==null;){var w=d;d=u;for(var N=0;N<t.length;N++)if(w.context===t[N]){d.lanes|=i,w=d.alternate,w!==null&&(w.lanes|=i),Go(d.return,i,e),r||(b=null);break e}d=w.next}}else if(u.tag===18){if(b=u.return,b===null)throw Error(s(341));b.lanes|=i,d=b.alternate,d!==null&&(d.lanes|=i),Go(b,i,e),b=null}else b=u.child;if(b!==null)b.return=u;else for(b=u;b!==null;){if(b===e){b=null;break}if(u=b.sibling,u!==null){u.return=b.return,b=u;break}b=b.return}u=b}}function ql(e,t,i,r){e=null;for(var u=t,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var b=u.alternate;if(b===null)throw Error(s(387));if(b=b.memoizedProps,b!==null){var w=u.type;tn(u.pendingProps.value,b.value)||(e!==null?e.push(w):e=[w])}}else if(u===me.current){if(b=u.alternate,b===null)throw Error(s(387));b.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(ir):e=[ir])}u=u.return}e!==null&&Xo(t,e,i,r),t.flags|=262144}function Yr(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function tl(e){el=e,Wn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Tt(e){return Vd(el,e)}function Fr(e,t){return el===null&&tl(e),Vd(e,t)}function Vd(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},Wn===null){if(e===null)throw Error(s(308));Wn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wn=Wn.next=t;return i}var Ux=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},Bx=n.unstable_scheduleCallback,qx=n.unstable_NormalPriority,st={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Io(){return{controller:new Ux,data:new Map,refCount:0}}function Da(e){e.refCount--,e.refCount===0&&Bx(qx,function(){e.controller.abort()})}var _a=null,Ko=0,Hl=0,Ql=null;function Hx(e,t){if(_a===null){var i=_a=[];Ko=0,Hl=Pu(),Ql={status:"pending",value:void 0,then:function(r){i.push(r)}}}return Ko++,t.then(Gd,Gd),t}function Gd(){if(--Ko===0&&_a!==null){Ql!==null&&(Ql.status="fulfilled");var e=_a;_a=null,Hl=0,Ql=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Qx(e,t){var i=[],r={status:"pending",value:null,reason:null,then:function(u){i.push(u)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var u=0;u<i.length;u++)(0,i[u])(t)},function(u){for(r.status="rejected",r.reason=u,u=0;u<i.length;u++)(0,i[u])(void 0)}),r}var Xd=_.S;_.S=function(e,t){Em=wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Hx(e,t),Xd!==null&&Xd(e,t)};var nl=T(null);function Zo(){var e=nl.current;return e!==null?e:Ie.pooledCache}function Vr(e,t){t===null?v(nl,nl.current):v(nl,t.pool)}function Id(){var e=Zo();return e===null?null:{parent:st._currentValue,pool:e}}var Yl=Error(s(460)),$o=Error(s(474)),Gr=Error(s(542)),Xr={then:function(){}};function Kd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Zd(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(Zn,Zn),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pd(e),e;default:if(typeof t.status=="string")t.then(Zn,Zn);else{if(e=Ie,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=r}},function(r){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pd(e),e}throw ll=t,Yl}}function il(e){try{var t=e._init;return t(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(ll=i,Yl):i}}var ll=null;function $d(){if(ll===null)throw Error(s(459));var e=ll;return ll=null,e}function Pd(e){if(e===Yl||e===Gr)throw Error(s(483))}var Fl=null,Ma=0;function Ir(e){var t=Ma;return Ma+=1,Fl===null&&(Fl=[]),Zd(Fl,e,t)}function Oa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Kr(e,t){throw t.$$typeof===S?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Jd(e){function t(O,A){if(e){var B=O.deletions;B===null?(O.deletions=[A],O.flags|=16):B.push(A)}}function i(O,A){if(!e)return null;for(;A!==null;)t(O,A),A=A.sibling;return null}function r(O){for(var A=new Map;O!==null;)O.key!==null?A.set(O.key,O):A.set(O.index,O),O=O.sibling;return A}function u(O,A){return O=Pn(O,A),O.index=0,O.sibling=null,O}function d(O,A,B){return O.index=B,e?(B=O.alternate,B!==null?(B=B.index,B<A?(O.flags|=67108866,A):B):(O.flags|=67108866,A)):(O.flags|=1048576,A)}function b(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function w(O,A,B,Z){return A===null||A.tag!==6?(A=Bo(B,O.mode,Z),A.return=O,A):(A=u(A,B),A.return=O,A)}function N(O,A,B,Z){var ye=B.type;return ye===E?I(O,A,B.props.children,Z,B.key):A!==null&&(A.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===le&&il(ye)===A.type)?(A=u(A,B.props),Oa(A,B),A.return=O,A):(A=Hr(B.type,B.key,B.props,null,O.mode,Z),Oa(A,B),A.return=O,A)}function q(O,A,B,Z){return A===null||A.tag!==4||A.stateNode.containerInfo!==B.containerInfo||A.stateNode.implementation!==B.implementation?(A=qo(B,O.mode,Z),A.return=O,A):(A=u(A,B.children||[]),A.return=O,A)}function I(O,A,B,Z,ye){return A===null||A.tag!==7?(A=Ji(B,O.mode,Z,ye),A.return=O,A):(A=u(A,B),A.return=O,A)}function J(O,A,B){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Bo(""+A,O.mode,B),A.return=O,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case k:return B=Hr(A.type,A.key,A.props,null,O.mode,B),Oa(B,A),B.return=O,B;case z:return A=qo(A,O.mode,B),A.return=O,A;case le:return A=il(A),J(O,A,B)}if(W(A)||X(A))return A=Ji(A,O.mode,B,null),A.return=O,A;if(typeof A.then=="function")return J(O,Ir(A),B);if(A.$$typeof===L)return J(O,Fr(O,A),B);Kr(O,A)}return null}function H(O,A,B,Z){var ye=A!==null?A.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return ye!==null?null:w(O,A,""+B,Z);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case k:return B.key===ye?N(O,A,B,Z):null;case z:return B.key===ye?q(O,A,B,Z):null;case le:return B=il(B),H(O,A,B,Z)}if(W(B)||X(B))return ye!==null?null:I(O,A,B,Z,null);if(typeof B.then=="function")return H(O,A,Ir(B),Z);if(B.$$typeof===L)return H(O,A,Fr(O,B),Z);Kr(O,B)}return null}function F(O,A,B,Z,ye){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return O=O.get(B)||null,w(A,O,""+Z,ye);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case k:return O=O.get(Z.key===null?B:Z.key)||null,N(A,O,Z,ye);case z:return O=O.get(Z.key===null?B:Z.key)||null,q(A,O,Z,ye);case le:return Z=il(Z),F(O,A,B,Z,ye)}if(W(Z)||X(Z))return O=O.get(B)||null,I(A,O,Z,ye,null);if(typeof Z.then=="function")return F(O,A,B,Ir(Z),ye);if(Z.$$typeof===L)return F(O,A,B,Fr(A,Z),ye);Kr(A,Z)}return null}function de(O,A,B,Z){for(var ye=null,Ue=null,he=A,Ne=A=0,Oe=null;he!==null&&Ne<B.length;Ne++){he.index>Ne?(Oe=he,he=null):Oe=he.sibling;var Be=H(O,he,B[Ne],Z);if(Be===null){he===null&&(he=Oe);break}e&&he&&Be.alternate===null&&t(O,he),A=d(Be,A,Ne),Ue===null?ye=Be:Ue.sibling=Be,Ue=Be,he=Oe}if(Ne===B.length)return i(O,he),Re&&Jn(O,Ne),ye;if(he===null){for(;Ne<B.length;Ne++)he=J(O,B[Ne],Z),he!==null&&(A=d(he,A,Ne),Ue===null?ye=he:Ue.sibling=he,Ue=he);return Re&&Jn(O,Ne),ye}for(he=r(he);Ne<B.length;Ne++)Oe=F(he,O,Ne,B[Ne],Z),Oe!==null&&(e&&Oe.alternate!==null&&he.delete(Oe.key===null?Ne:Oe.key),A=d(Oe,A,Ne),Ue===null?ye=Oe:Ue.sibling=Oe,Ue=Oe);return e&&he.forEach(function(qi){return t(O,qi)}),Re&&Jn(O,Ne),ye}function ve(O,A,B,Z){if(B==null)throw Error(s(151));for(var ye=null,Ue=null,he=A,Ne=A=0,Oe=null,Be=B.next();he!==null&&!Be.done;Ne++,Be=B.next()){he.index>Ne?(Oe=he,he=null):Oe=he.sibling;var qi=H(O,he,Be.value,Z);if(qi===null){he===null&&(he=Oe);break}e&&he&&qi.alternate===null&&t(O,he),A=d(qi,A,Ne),Ue===null?ye=qi:Ue.sibling=qi,Ue=qi,he=Oe}if(Be.done)return i(O,he),Re&&Jn(O,Ne),ye;if(he===null){for(;!Be.done;Ne++,Be=B.next())Be=J(O,Be.value,Z),Be!==null&&(A=d(Be,A,Ne),Ue===null?ye=Be:Ue.sibling=Be,Ue=Be);return Re&&Jn(O,Ne),ye}for(he=r(he);!Be.done;Ne++,Be=B.next())Be=F(he,O,Ne,Be.value,Z),Be!==null&&(e&&Be.alternate!==null&&he.delete(Be.key===null?Ne:Be.key),A=d(Be,A,Ne),Ue===null?ye=Be:Ue.sibling=Be,Ue=Be);return e&&he.forEach(function(J1){return t(O,J1)}),Re&&Jn(O,Ne),ye}function Ge(O,A,B,Z){if(typeof B=="object"&&B!==null&&B.type===E&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case k:e:{for(var ye=B.key;A!==null;){if(A.key===ye){if(ye=B.type,ye===E){if(A.tag===7){i(O,A.sibling),Z=u(A,B.props.children),Z.return=O,O=Z;break e}}else if(A.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===le&&il(ye)===A.type){i(O,A.sibling),Z=u(A,B.props),Oa(Z,B),Z.return=O,O=Z;break e}i(O,A);break}else t(O,A);A=A.sibling}B.type===E?(Z=Ji(B.props.children,O.mode,Z,B.key),Z.return=O,O=Z):(Z=Hr(B.type,B.key,B.props,null,O.mode,Z),Oa(Z,B),Z.return=O,O=Z)}return b(O);case z:e:{for(ye=B.key;A!==null;){if(A.key===ye)if(A.tag===4&&A.stateNode.containerInfo===B.containerInfo&&A.stateNode.implementation===B.implementation){i(O,A.sibling),Z=u(A,B.children||[]),Z.return=O,O=Z;break e}else{i(O,A);break}else t(O,A);A=A.sibling}Z=qo(B,O.mode,Z),Z.return=O,O=Z}return b(O);case le:return B=il(B),Ge(O,A,B,Z)}if(W(B))return de(O,A,B,Z);if(X(B)){if(ye=X(B),typeof ye!="function")throw Error(s(150));return B=ye.call(B),ve(O,A,B,Z)}if(typeof B.then=="function")return Ge(O,A,Ir(B),Z);if(B.$$typeof===L)return Ge(O,A,Fr(O,B),Z);Kr(O,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,A!==null&&A.tag===6?(i(O,A.sibling),Z=u(A,B),Z.return=O,O=Z):(i(O,A),Z=Bo(B,O.mode,Z),Z.return=O,O=Z),b(O)):i(O,A)}return function(O,A,B,Z){try{Ma=0;var ye=Ge(O,A,B,Z);return Fl=null,ye}catch(he){if(he===Yl||he===Gr)throw he;var Ue=nn(29,he,null,O.mode);return Ue.lanes=Z,Ue.return=O,Ue}}}var al=Jd(!0),Wd=Jd(!1),ki=!1;function Po(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jo(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 wi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function zi(e,t,i){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(qe&2)!==0){var u=r.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),r.pending=t,t=qr(e),Ld(e,null,i),t}return Br(e,r,t,i),qr(e)}function Ra(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,Ft(e,i)}}function Wo(e,t){var i=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,i===r)){var u=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var b={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?u=d=b:d=d.next=b,i=i.next}while(i!==null);d===null?u=d=t:d=d.next=t}else u=d=t;i={baseState:r.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:r.shared,callbacks:r.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var eu=!1;function La(){if(eu){var e=Ql;if(e!==null)throw e}}function Ua(e,t,i,r){eu=!1;var u=e.updateQueue;ki=!1;var d=u.firstBaseUpdate,b=u.lastBaseUpdate,w=u.shared.pending;if(w!==null){u.shared.pending=null;var N=w,q=N.next;N.next=null,b===null?d=q:b.next=q,b=N;var I=e.alternate;I!==null&&(I=I.updateQueue,w=I.lastBaseUpdate,w!==b&&(w===null?I.firstBaseUpdate=q:w.next=q,I.lastBaseUpdate=N))}if(d!==null){var J=u.baseState;b=0,I=q=N=null,w=d;do{var H=w.lane&-536870913,F=H!==w.lane;if(F?(Me&H)===H:(r&H)===H){H!==0&&H===Hl&&(eu=!0),I!==null&&(I=I.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var de=e,ve=w;H=t;var Ge=i;switch(ve.tag){case 1:if(de=ve.payload,typeof de=="function"){J=de.call(Ge,J,H);break e}J=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=ve.payload,H=typeof de=="function"?de.call(Ge,J,H):de,H==null)break e;J=g({},J,H);break e;case 2:ki=!0}}H=w.callback,H!==null&&(e.flags|=64,F&&(e.flags|=8192),F=u.callbacks,F===null?u.callbacks=[H]:F.push(H))}else F={lane:H,tag:w.tag,payload:w.payload,callback:w.callback,next:null},I===null?(q=I=F,N=J):I=I.next=F,b|=H;if(w=w.next,w===null){if(w=u.shared.pending,w===null)break;F=w,w=F.next,F.next=null,u.lastBaseUpdate=F,u.shared.pending=null}}while(!0);I===null&&(N=J),u.baseState=N,u.firstBaseUpdate=q,u.lastBaseUpdate=I,d===null&&(u.shared.lanes=0),Ei|=b,e.lanes=b,e.memoizedState=J}}function eh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function th(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)eh(i[e],t)}var Vl=T(null),Zr=T(0);function nh(e,t){e=ui,v(Zr,e),v(Vl,t),ui=e|t.baseLanes}function tu(){v(Zr,ui),v(Vl,Vl.current)}function nu(){ui=Zr.current,G(Vl),G(Zr)}var ln=T(null),bn=null;function ji(e){var t=e.alternate;v(at,at.current&1),v(ln,e),bn===null&&(t===null||Vl.current!==null||t.memoizedState!==null)&&(bn=e)}function iu(e){v(at,at.current),v(ln,e),bn===null&&(bn=e)}function ih(e){e.tag===22?(v(at,at.current),v(ln,e),bn===null&&(bn=e)):Ci()}function Ci(){v(at,at.current),v(ln,ln.current)}function an(e){G(ln),bn===e&&(bn=null),G(at)}var at=T(0);function $r(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||uc(i)||cc(i)))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 ti=0,je=null,Fe=null,ot=null,Pr=!1,Gl=!1,rl=!1,Jr=0,Ba=0,Xl=null,Yx=0;function nt(){throw Error(s(321))}function lu(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!tn(e[i],t[i]))return!1;return!0}function au(e,t,i,r,u,d){return ti=d,je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?Hh:vu,rl=!1,d=i(r,u),rl=!1,Gl&&(d=ah(t,i,r,u)),lh(e),d}function lh(e){_.H=Qa;var t=Fe!==null&&Fe.next!==null;if(ti=0,ot=Fe=je=null,Pr=!1,Ba=0,Xl=null,t)throw Error(s(300));e===null||ut||(e=e.dependencies,e!==null&&Yr(e)&&(ut=!0))}function ah(e,t,i,r){je=e;var u=0;do{if(Gl&&(Xl=null),Ba=0,Gl=!1,25<=u)throw Error(s(301));if(u+=1,ot=Fe=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}_.H=Qh,d=t(i,r)}while(Gl);return d}function Fx(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?qa(t):t,e=e.useState()[0],(Fe!==null?Fe.memoizedState:null)!==e&&(je.flags|=1024),t}function ru(){var e=Jr!==0;return Jr=0,e}function su(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function ou(e){if(Pr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Pr=!1}ti=0,ot=Fe=je=null,Gl=!1,Ba=Jr=0,Xl=null}function qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?je.memoizedState=ot=e:ot=ot.next=e,ot}function rt(){if(Fe===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=Fe.next;var t=ot===null?je.memoizedState:ot.next;if(t!==null)ot=t,Fe=e;else{if(e===null)throw je.alternate===null?Error(s(467)):Error(s(310));Fe=e,e={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},ot===null?je.memoizedState=ot=e:ot=ot.next=e}return ot}function Wr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function qa(e){var t=Ba;return Ba+=1,Xl===null&&(Xl=[]),e=Zd(Xl,e,t),t=je,(ot===null?t.memoizedState:ot.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?Hh:vu),e}function es(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return qa(e);if(e.$$typeof===L)return Tt(e)}throw Error(s(438,String(e)))}function uu(e){var t=null,i=je.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var r=je.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=Wr(),je.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),r=0;r<e;r++)i[r]=R;return t.index++,i}function ni(e,t){return typeof t=="function"?t(e):t}function ts(e){var t=rt();return cu(t,Fe,e)}function cu(e,t,i){var r=e.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=i;var u=e.baseQueue,d=r.pending;if(d!==null){if(u!==null){var b=u.next;u.next=d.next,d.next=b}t.baseQueue=u=d,r.pending=null}if(d=e.baseState,u===null)e.memoizedState=d;else{t=u.next;var w=b=null,N=null,q=t,I=!1;do{var J=q.lane&-536870913;if(J!==q.lane?(Me&J)===J:(ti&J)===J){var H=q.revertLane;if(H===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),J===Hl&&(I=!0);else if((ti&H)===H){q=q.next,H===Hl&&(I=!0);continue}else J={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},N===null?(w=N=J,b=d):N=N.next=J,je.lanes|=H,Ei|=H;J=q.action,rl&&i(d,J),d=q.hasEagerState?q.eagerState:i(d,J)}else H={lane:J,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},N===null?(w=N=H,b=d):N=N.next=H,je.lanes|=J,Ei|=J;q=q.next}while(q!==null&&q!==t);if(N===null?b=d:N.next=w,!tn(d,e.memoizedState)&&(ut=!0,I&&(i=Ql,i!==null)))throw i;e.memoizedState=d,e.baseState=b,e.baseQueue=N,r.lastRenderedState=d}return u===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function fu(e){var t=rt(),i=t.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=e;var r=i.dispatch,u=i.pending,d=t.memoizedState;if(u!==null){i.pending=null;var b=u=u.next;do d=e(d,b.action),b=b.next;while(b!==u);tn(d,t.memoizedState)||(ut=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),i.lastRenderedState=d}return[d,r]}function rh(e,t,i){var r=je,u=rt(),d=Re;if(d){if(i===void 0)throw Error(s(407));i=i()}else i=t();var b=!tn((Fe||u).memoizedState,i);if(b&&(u.memoizedState=i,ut=!0),u=u.queue,mu(uh.bind(null,r,u,e),[e]),u.getSnapshot!==t||b||ot!==null&&ot.memoizedState.tag&1){if(r.flags|=2048,Il(9,{destroy:void 0},oh.bind(null,r,u,i,t),null),Ie===null)throw Error(s(349));d||(ti&127)!==0||sh(r,t,i)}return i}function sh(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=je.updateQueue,t===null?(t=Wr(),je.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function oh(e,t,i,r){t.value=i,t.getSnapshot=r,ch(t)&&fh(e)}function uh(e,t,i){return i(function(){ch(t)&&fh(e)})}function ch(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!tn(e,i)}catch{return!0}}function fh(e){var t=Pi(e,2);t!==null&&Pt(t,e,2)}function du(e){var t=qt();if(typeof e=="function"){var i=e;if(e=i(),rl){jt(!0);try{i()}finally{jt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:e},t}function dh(e,t,i,r){return e.baseState=i,cu(e,Fe,typeof r=="function"?r:ni)}function Vx(e,t,i,r,u){if(ls(e))throw Error(s(485));if(e=t.action,e!==null){var d={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){d.listeners.push(b)}};_.T!==null?i(!0):d.isTransition=!1,r(d),i=t.pending,i===null?(d.next=t.pending=d,hh(t,d)):(d.next=i.next,t.pending=i.next=d)}}function hh(e,t){var i=t.action,r=t.payload,u=e.state;if(t.isTransition){var d=_.T,b={};_.T=b;try{var w=i(u,r),N=_.S;N!==null&&N(b,w),mh(e,t,w)}catch(q){hu(e,t,q)}finally{d!==null&&b.types!==null&&(d.types=b.types),_.T=d}}else try{d=i(u,r),mh(e,t,d)}catch(q){hu(e,t,q)}}function mh(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(r){ph(e,t,r)},function(r){return hu(e,t,r)}):ph(e,t,i)}function ph(e,t,i){t.status="fulfilled",t.value=i,gh(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,hh(e,i)))}function hu(e,t,i){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=i,gh(t),t=t.next;while(t!==r)}e.action=null}function gh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function yh(e,t){return t}function xh(e,t){if(Re){var i=Ie.formState;if(i!==null){e:{var r=je;if(Re){if($e){t:{for(var u=$e,d=xn;u.nodeType!==8;){if(!d){u=null;break t}if(u=vn(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d==="F!"||d==="F"?u:null}if(u){$e=vn(u.nextSibling),r=u.data==="F!";break e}}vi(r)}r=!1}r&&(t=i[0])}}return i=qt(),i.memoizedState=i.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yh,lastRenderedState:t},i.queue=r,i=Uh.bind(null,je,r),r.dispatch=i,r=du(!1),d=bu.bind(null,je,!1,r.queue),r=qt(),u={state:t,dispatch:null,action:e,pending:null},r.queue=u,i=Vx.bind(null,je,u,d,i),u.dispatch=i,r.memoizedState=e,[t,i,!1]}function bh(e){var t=rt();return vh(t,Fe,e)}function vh(e,t,i){if(t=cu(e,t,yh)[0],e=ts(ni)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=qa(t)}catch(b){throw b===Yl?Gr:b}else r=t;t=rt();var u=t.queue,d=u.dispatch;return i!==t.memoizedState&&(je.flags|=2048,Il(9,{destroy:void 0},Gx.bind(null,u,i),null)),[r,d,e]}function Gx(e,t){e.action=t}function Sh(e){var t=rt(),i=Fe;if(i!==null)return vh(t,i,e);rt(),t=t.memoizedState,i=rt();var r=i.queue.dispatch;return i.memoizedState=e,[t,r,!1]}function Il(e,t,i,r){return e={tag:e,create:i,deps:r,inst:t,next:null},t=je.updateQueue,t===null&&(t=Wr(),je.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(r=i.next,i.next=e,e.next=r,t.lastEffect=e),e}function kh(){return rt().memoizedState}function ns(e,t,i,r){var u=qt();je.flags|=e,u.memoizedState=Il(1|t,{destroy:void 0},i,r===void 0?null:r)}function is(e,t,i,r){var u=rt();r=r===void 0?null:r;var d=u.memoizedState.inst;Fe!==null&&r!==null&&lu(r,Fe.memoizedState.deps)?u.memoizedState=Il(t,d,i,r):(je.flags|=e,u.memoizedState=Il(1|t,d,i,r))}function wh(e,t){ns(8390656,8,e,t)}function mu(e,t){is(2048,8,e,t)}function Xx(e){je.flags|=4;var t=je.updateQueue;if(t===null)t=Wr(),je.updateQueue=t,t.events=[e];else{var i=t.events;i===null?t.events=[e]:i.push(e)}}function zh(e){var t=rt().memoizedState;return Xx({ref:t,nextImpl:e}),function(){if((qe&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function jh(e,t){return is(4,2,e,t)}function Ch(e,t){return is(4,4,e,t)}function Nh(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Th(e,t,i){i=i!=null?i.concat([e]):null,is(4,4,Nh.bind(null,t,e),i)}function pu(){}function Eh(e,t){var i=rt();t=t===void 0?null:t;var r=i.memoizedState;return t!==null&&lu(t,r[1])?r[0]:(i.memoizedState=[e,t],e)}function Ah(e,t){var i=rt();t=t===void 0?null:t;var r=i.memoizedState;if(t!==null&&lu(t,r[1]))return r[0];if(r=e(),rl){jt(!0);try{e()}finally{jt(!1)}}return i.memoizedState=[r,t],r}function gu(e,t,i){return i===void 0||(ti&1073741824)!==0&&(Me&261930)===0?e.memoizedState=t:(e.memoizedState=i,e=Dm(),je.lanes|=e,Ei|=e,i)}function Dh(e,t,i,r){return tn(i,t)?i:Vl.current!==null?(e=gu(e,i,r),tn(e,t)||(ut=!0),e):(ti&42)===0||(ti&1073741824)!==0&&(Me&261930)===0?(ut=!0,e.memoizedState=i):(e=Dm(),je.lanes|=e,Ei|=e,t)}function _h(e,t,i,r,u){var d=$.p;$.p=d!==0&&8>d?d:8;var b=_.T,w={};_.T=w,bu(e,!1,t,i);try{var N=u(),q=_.S;if(q!==null&&q(w,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var I=Qx(N,r);Ha(e,t,I,on(e))}else Ha(e,t,r,on(e))}catch(J){Ha(e,t,{then:function(){},status:"rejected",reason:J},on())}finally{$.p=d,b!==null&&w.types!==null&&(b.types=w.types),_.T=b}}function Ix(){}function yu(e,t,i,r){if(e.tag!==5)throw Error(s(476));var u=Mh(e).queue;_h(e,u,t,ce,i===null?Ix:function(){return Oh(e),i(r)})}function Mh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:ce},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Oh(e){var t=Mh(e);t.next===null&&(t=e.alternate.memoizedState),Ha(e,t.next.queue,{},on())}function xu(){return Tt(ir)}function Rh(){return rt().memoizedState}function Lh(){return rt().memoizedState}function Kx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=on();e=wi(i);var r=zi(t,e,i);r!==null&&(Pt(r,t,i),Ra(r,t,i)),t={cache:Io()},e.payload=t;return}t=t.return}}function Zx(e,t,i){var r=on();i={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ls(e)?Bh(t,i):(i=Lo(e,t,i,r),i!==null&&(Pt(i,e,r),qh(i,t,r)))}function Uh(e,t,i){var r=on();Ha(e,t,i,r)}function Ha(e,t,i,r){var u={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(ls(e))Bh(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var b=t.lastRenderedState,w=d(b,i);if(u.hasEagerState=!0,u.eagerState=w,tn(w,b))return Br(e,t,u,0),Ie===null&&Ur(),!1}catch{}if(i=Lo(e,t,u,r),i!==null)return Pt(i,e,r),qh(i,t,r),!0}return!1}function bu(e,t,i,r){if(r={lane:2,revertLane:Pu(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ls(e)){if(t)throw Error(s(479))}else t=Lo(e,i,r,2),t!==null&&Pt(t,e,2)}function ls(e){var t=e.alternate;return e===je||t!==null&&t===je}function Bh(e,t){Gl=Pr=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function qh(e,t,i){if((i&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,Ft(e,i)}}var Qa={readContext:Tt,use:es,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};Qa.useEffectEvent=nt;var Hh={readContext:Tt,use:es,useCallback:function(e,t){return qt().memoizedState=[e,t===void 0?null:t],e},useContext:Tt,useEffect:wh,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,ns(4194308,4,Nh.bind(null,t,e),i)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){ns(4,2,e,t)},useMemo:function(e,t){var i=qt();t=t===void 0?null:t;var r=e();if(rl){jt(!0);try{e()}finally{jt(!1)}}return i.memoizedState=[r,t],r},useReducer:function(e,t,i){var r=qt();if(i!==void 0){var u=i(t);if(rl){jt(!0);try{i(t)}finally{jt(!1)}}}else u=t;return r.memoizedState=r.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},r.queue=e,e=e.dispatch=Zx.bind(null,je,e),[r.memoizedState,e]},useRef:function(e){var t=qt();return e={current:e},t.memoizedState=e},useState:function(e){e=du(e);var t=e.queue,i=Uh.bind(null,je,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:pu,useDeferredValue:function(e,t){var i=qt();return gu(i,e,t)},useTransition:function(){var e=du(!1);return e=_h.bind(null,je,e.queue,!0,!1),qt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var r=je,u=qt();if(Re){if(i===void 0)throw Error(s(407));i=i()}else{if(i=t(),Ie===null)throw Error(s(349));(Me&127)!==0||sh(r,t,i)}u.memoizedState=i;var d={value:i,getSnapshot:t};return u.queue=d,wh(uh.bind(null,r,d,e),[e]),r.flags|=2048,Il(9,{destroy:void 0},oh.bind(null,r,d,i,t),null),i},useId:function(){var e=qt(),t=Ie.identifierPrefix;if(Re){var i=Hn,r=qn;i=(r&~(1<<32-He(r)-1)).toString(32)+i,t="_"+t+"R_"+i,i=Jr++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=Yx++,t="_"+t+"r_"+i.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:xu,useFormState:xh,useActionState:xh,useOptimistic:function(e){var t=qt();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=bu.bind(null,je,!0,i),i.dispatch=t,[e,t]},useMemoCache:uu,useCacheRefresh:function(){return qt().memoizedState=Kx.bind(null,je)},useEffectEvent:function(e){var t=qt(),i={impl:e};return t.memoizedState=i,function(){if((qe&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}},vu={readContext:Tt,use:es,useCallback:Eh,useContext:Tt,useEffect:mu,useImperativeHandle:Th,useInsertionEffect:jh,useLayoutEffect:Ch,useMemo:Ah,useReducer:ts,useRef:kh,useState:function(){return ts(ni)},useDebugValue:pu,useDeferredValue:function(e,t){var i=rt();return Dh(i,Fe.memoizedState,e,t)},useTransition:function(){var e=ts(ni)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:qa(e),t]},useSyncExternalStore:rh,useId:Rh,useHostTransitionStatus:xu,useFormState:bh,useActionState:bh,useOptimistic:function(e,t){var i=rt();return dh(i,Fe,e,t)},useMemoCache:uu,useCacheRefresh:Lh};vu.useEffectEvent=zh;var Qh={readContext:Tt,use:es,useCallback:Eh,useContext:Tt,useEffect:mu,useImperativeHandle:Th,useInsertionEffect:jh,useLayoutEffect:Ch,useMemo:Ah,useReducer:fu,useRef:kh,useState:function(){return fu(ni)},useDebugValue:pu,useDeferredValue:function(e,t){var i=rt();return Fe===null?gu(i,e,t):Dh(i,Fe.memoizedState,e,t)},useTransition:function(){var e=fu(ni)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:qa(e),t]},useSyncExternalStore:rh,useId:Rh,useHostTransitionStatus:xu,useFormState:Sh,useActionState:Sh,useOptimistic:function(e,t){var i=rt();return Fe!==null?dh(i,Fe,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:uu,useCacheRefresh:Lh};Qh.useEffectEvent=zh;function Su(e,t,i,r){t=e.memoizedState,i=i(r,t),i=i==null?t:g({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var ku={enqueueSetState:function(e,t,i){e=e._reactInternals;var r=on(),u=wi(r);u.payload=t,i!=null&&(u.callback=i),t=zi(e,u,r),t!==null&&(Pt(t,e,r),Ra(t,e,r))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var r=on(),u=wi(r);u.tag=1,u.payload=t,i!=null&&(u.callback=i),t=zi(e,u,r),t!==null&&(Pt(t,e,r),Ra(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=on(),r=wi(i);r.tag=2,t!=null&&(r.callback=t),t=zi(e,r,i),t!==null&&(Pt(t,e,i),Ra(t,e,i))}};function Yh(e,t,i,r,u,d,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,d,b):t.prototype&&t.prototype.isPureReactComponent?!Na(i,r)||!Na(u,d):!0}function Fh(e,t,i,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,r),t.state!==e&&ku.enqueueReplaceState(t,t.state,null)}function sl(e,t){var i=t;if("ref"in t){i={};for(var r in t)r!=="ref"&&(i[r]=t[r])}if(e=e.defaultProps){i===t&&(i=g({},i));for(var u in e)i[u]===void 0&&(i[u]=e[u])}return i}function Vh(e){Lr(e)}function Gh(e){console.error(e)}function Xh(e){Lr(e)}function as(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Ih(e,t,i){try{var r=e.onCaughtError;r(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function wu(e,t,i){return i=wi(i),i.tag=3,i.payload={element:null},i.callback=function(){as(e,t)},i}function Kh(e){return e=wi(e),e.tag=3,e}function Zh(e,t,i,r){var u=i.type.getDerivedStateFromError;if(typeof u=="function"){var d=r.value;e.payload=function(){return u(d)},e.callback=function(){Ih(t,i,r)}}var b=i.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){Ih(t,i,r),typeof u!="function"&&(Ai===null?Ai=new Set([this]):Ai.add(this));var w=r.stack;this.componentDidCatch(r.value,{componentStack:w!==null?w:""})})}function $x(e,t,i,r,u){if(i.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=i.alternate,t!==null&&ql(t,i,u,!0),i=ln.current,i!==null){switch(i.tag){case 31:case 13:return bn===null?ys():i.alternate===null&&it===0&&(it=3),i.flags&=-257,i.flags|=65536,i.lanes=u,r===Xr?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([r]):t.add(r),Ku(e,r,u)),!1;case 22:return i.flags|=65536,r===Xr?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([r]):i.add(r)),Ku(e,r,u)),!1}throw Error(s(435,i.tag))}return Ku(e,r,u),ys(),!1}if(Re)return t=ln.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,r!==Yo&&(e=Error(s(422),{cause:r}),Aa(pn(e,i)))):(r!==Yo&&(t=Error(s(423),{cause:r}),Aa(pn(t,i))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,r=pn(r,i),u=wu(e.stateNode,r,u),Wo(e,u),it!==4&&(it=2)),!1;var d=Error(s(520),{cause:r});if(d=pn(d,i),Za===null?Za=[d]:Za.push(d),it!==4&&(it=2),t===null)return!0;r=pn(r,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=u&-u,i.lanes|=e,e=wu(i.stateNode,r,e),Wo(i,e),!1;case 1:if(t=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Ai===null||!Ai.has(d))))return i.flags|=65536,u&=-u,i.lanes|=u,u=Kh(u),Zh(u,e,i,r),Wo(i,u),!1}i=i.return}while(i!==null);return!1}var zu=Error(s(461)),ut=!1;function Et(e,t,i,r){t.child=e===null?Wd(t,null,i,r):al(t,e.child,i,r)}function $h(e,t,i,r,u){i=i.render;var d=t.ref;if("ref"in r){var b={};for(var w in r)w!=="ref"&&(b[w]=r[w])}else b=r;return tl(t),r=au(e,t,i,b,d,u),w=ru(),e!==null&&!ut?(su(e,t,u),ii(e,t,u)):(Re&&w&&Ho(t),t.flags|=1,Et(e,t,r,u),t.child)}function Ph(e,t,i,r,u){if(e===null){var d=i.type;return typeof d=="function"&&!Uo(d)&&d.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=d,Jh(e,t,d,r,u)):(e=Hr(i.type,null,r,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!_u(e,u)){var b=d.memoizedProps;if(i=i.compare,i=i!==null?i:Na,i(b,r)&&e.ref===t.ref)return ii(e,t,u)}return t.flags|=1,e=Pn(d,r),e.ref=t.ref,e.return=t,t.child=e}function Jh(e,t,i,r,u){if(e!==null){var d=e.memoizedProps;if(Na(d,r)&&e.ref===t.ref)if(ut=!1,t.pendingProps=r=d,_u(e,u))(e.flags&131072)!==0&&(ut=!0);else return t.lanes=e.lanes,ii(e,t,u)}return ju(e,t,i,r,u)}function Wh(e,t,i,r){var u=r.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|i:i,e!==null){for(r=t.child=e.child,u=0;r!==null;)u=u|r.lanes|r.childLanes,r=r.sibling;r=u&~d}else r=0,t.child=null;return em(e,t,d,i,r)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Vr(t,d!==null?d.cachePool:null),d!==null?nh(t,d):tu(),ih(t);else return r=t.lanes=536870912,em(e,t,d!==null?d.baseLanes|i:i,i,r)}else d!==null?(Vr(t,d.cachePool),nh(t,d),Ci(),t.memoizedState=null):(e!==null&&Vr(t,null),tu(),Ci());return Et(e,t,u,i),t.child}function Ya(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function em(e,t,i,r,u){var d=Zo();return d=d===null?null:{parent:st._currentValue,pool:d},t.memoizedState={baseLanes:i,cachePool:d},e!==null&&Vr(t,null),tu(),ih(t),e!==null&&ql(e,t,r,!0),t.childLanes=u,null}function rs(e,t){return t=os({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function tm(e,t,i){return al(t,e.child,null,i),e=rs(t,t.pendingProps),e.flags|=2,an(t),t.memoizedState=null,e}function Px(e,t,i){var r=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Re){if(r.mode==="hidden")return e=rs(t,r),t.lanes=536870912,Ya(null,e);if(iu(t),(e=$e)?(e=hp(e,xn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xi!==null?{id:qn,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},i=Bd(e),i.return=t,t.child=i,Nt=t,$e=null)):e=null,e===null)throw vi(t);return t.lanes=536870912,null}return rs(t,r)}var d=e.memoizedState;if(d!==null){var b=d.dehydrated;if(iu(t),u)if(t.flags&256)t.flags&=-257,t=tm(e,t,i);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(ut||ql(e,t,i,!1),u=(i&e.childLanes)!==0,ut||u){if(r=Ie,r!==null&&(b=Vt(r,i),b!==0&&b!==d.retryLane))throw d.retryLane=b,Pi(e,b),Pt(r,e,b),zu;ys(),t=tm(e,t,i)}else e=d.treeContext,$e=vn(b.nextSibling),Nt=t,Re=!0,bi=null,xn=!1,e!==null&&Qd(t,e),t=rs(t,r),t.flags|=4096;return t}return e=Pn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ss(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function ju(e,t,i,r,u){return tl(t),i=au(e,t,i,r,void 0,u),r=ru(),e!==null&&!ut?(su(e,t,u),ii(e,t,u)):(Re&&r&&Ho(t),t.flags|=1,Et(e,t,i,u),t.child)}function nm(e,t,i,r,u,d){return tl(t),t.updateQueue=null,i=ah(t,r,i,u),lh(e),r=ru(),e!==null&&!ut?(su(e,t,d),ii(e,t,d)):(Re&&r&&Ho(t),t.flags|=1,Et(e,t,i,d),t.child)}function im(e,t,i,r,u){if(tl(t),t.stateNode===null){var d=Rl,b=i.contextType;typeof b=="object"&&b!==null&&(d=Tt(b)),d=new i(r,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=ku,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=r,d.state=t.memoizedState,d.refs={},Po(t),b=i.contextType,d.context=typeof b=="object"&&b!==null?Tt(b):Rl,d.state=t.memoizedState,b=i.getDerivedStateFromProps,typeof b=="function"&&(Su(t,i,b,r),d.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(b=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),b!==d.state&&ku.enqueueReplaceState(d,d.state,null),Ua(t,r,d,u),La(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){d=t.stateNode;var w=t.memoizedProps,N=sl(i,w);d.props=N;var q=d.context,I=i.contextType;b=Rl,typeof I=="object"&&I!==null&&(b=Tt(I));var J=i.getDerivedStateFromProps;I=typeof J=="function"||typeof d.getSnapshotBeforeUpdate=="function",w=t.pendingProps!==w,I||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(w||q!==b)&&Fh(t,d,r,b),ki=!1;var H=t.memoizedState;d.state=H,Ua(t,r,d,u),La(),q=t.memoizedState,w||H!==q||ki?(typeof J=="function"&&(Su(t,i,J,r),q=t.memoizedState),(N=ki||Yh(t,i,N,r,H,q,b))?(I||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=q),d.props=r,d.state=q,d.context=b,r=N):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{d=t.stateNode,Jo(e,t),b=t.memoizedProps,I=sl(i,b),d.props=I,J=t.pendingProps,H=d.context,q=i.contextType,N=Rl,typeof q=="object"&&q!==null&&(N=Tt(q)),w=i.getDerivedStateFromProps,(q=typeof w=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b!==J||H!==N)&&Fh(t,d,r,N),ki=!1,H=t.memoizedState,d.state=H,Ua(t,r,d,u),La();var F=t.memoizedState;b!==J||H!==F||ki||e!==null&&e.dependencies!==null&&Yr(e.dependencies)?(typeof w=="function"&&(Su(t,i,w,r),F=t.memoizedState),(I=ki||Yh(t,i,I,r,H,F,N)||e!==null&&e.dependencies!==null&&Yr(e.dependencies))?(q||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(r,F,N),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(r,F,N)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=F),d.props=r,d.state=F,d.context=N,r=I):(typeof d.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),r=!1)}return d=r,ss(e,t),r=(t.flags&128)!==0,d||r?(d=t.stateNode,i=r&&typeof i.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&r?(t.child=al(t,e.child,null,u),t.child=al(t,null,i,u)):Et(e,t,i,u),t.memoizedState=d.state,e=t.child):e=ii(e,t,u),e}function lm(e,t,i,r){return Wi(),t.flags|=256,Et(e,t,i,r),t.child}var Cu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nu(e){return{baseLanes:e,cachePool:Id()}}function Tu(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=sn),e}function am(e,t,i){var r=t.pendingProps,u=!1,d=(t.flags&128)!==0,b;if((b=d)||(b=e!==null&&e.memoizedState===null?!1:(at.current&2)!==0),b&&(u=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(Re){if(u?ji(t):Ci(),(e=$e)?(e=hp(e,xn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xi!==null?{id:qn,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},i=Bd(e),i.return=t,t.child=i,Nt=t,$e=null)):e=null,e===null)throw vi(t);return cc(e)?t.lanes=32:t.lanes=536870912,null}var w=r.children;return r=r.fallback,u?(Ci(),u=t.mode,w=os({mode:"hidden",children:w},u),r=Ji(r,u,i,null),w.return=t,r.return=t,w.sibling=r,t.child=w,r=t.child,r.memoizedState=Nu(i),r.childLanes=Tu(e,b,i),t.memoizedState=Cu,Ya(null,r)):(ji(t),Eu(t,w))}var N=e.memoizedState;if(N!==null&&(w=N.dehydrated,w!==null)){if(d)t.flags&256?(ji(t),t.flags&=-257,t=Au(e,t,i)):t.memoizedState!==null?(Ci(),t.child=e.child,t.flags|=128,t=null):(Ci(),w=r.fallback,u=t.mode,r=os({mode:"visible",children:r.children},u),w=Ji(w,u,i,null),w.flags|=2,r.return=t,w.return=t,r.sibling=w,t.child=r,al(t,e.child,null,i),r=t.child,r.memoizedState=Nu(i),r.childLanes=Tu(e,b,i),t.memoizedState=Cu,t=Ya(null,r));else if(ji(t),cc(w)){if(b=w.nextSibling&&w.nextSibling.dataset,b)var q=b.dgst;b=q,r=Error(s(419)),r.stack="",r.digest=b,Aa({value:r,source:null,stack:null}),t=Au(e,t,i)}else if(ut||ql(e,t,i,!1),b=(i&e.childLanes)!==0,ut||b){if(b=Ie,b!==null&&(r=Vt(b,i),r!==0&&r!==N.retryLane))throw N.retryLane=r,Pi(e,r),Pt(b,e,r),zu;uc(w)||ys(),t=Au(e,t,i)}else uc(w)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,$e=vn(w.nextSibling),Nt=t,Re=!0,bi=null,xn=!1,e!==null&&Qd(t,e),t=Eu(t,r.children),t.flags|=4096);return t}return u?(Ci(),w=r.fallback,u=t.mode,N=e.child,q=N.sibling,r=Pn(N,{mode:"hidden",children:r.children}),r.subtreeFlags=N.subtreeFlags&65011712,q!==null?w=Pn(q,w):(w=Ji(w,u,i,null),w.flags|=2),w.return=t,r.return=t,r.sibling=w,t.child=r,Ya(null,r),r=t.child,w=e.child.memoizedState,w===null?w=Nu(i):(u=w.cachePool,u!==null?(N=st._currentValue,u=u.parent!==N?{parent:N,pool:N}:u):u=Id(),w={baseLanes:w.baseLanes|i,cachePool:u}),r.memoizedState=w,r.childLanes=Tu(e,b,i),t.memoizedState=Cu,Ya(e.child,r)):(ji(t),i=e.child,e=i.sibling,i=Pn(i,{mode:"visible",children:r.children}),i.return=t,i.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=i,t.memoizedState=null,i)}function Eu(e,t){return t=os({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function os(e,t){return e=nn(22,e,null,t),e.lanes=0,e}function Au(e,t,i){return al(t,e.child,null,i),e=Eu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function rm(e,t,i){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Go(e.return,t,i)}function Du(e,t,i,r,u,d){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:i,tailMode:u,treeForkCount:d}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=r,b.tail=i,b.tailMode=u,b.treeForkCount=d)}function sm(e,t,i){var r=t.pendingProps,u=r.revealOrder,d=r.tail;r=r.children;var b=at.current,w=(b&2)!==0;if(w?(b=b&1|2,t.flags|=128):b&=1,v(at,b),Et(e,t,r,i),r=Re?Ea:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rm(e,i,t);else if(e.tag===19)rm(e,i,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(u){case"forwards":for(i=t.child,u=null;i!==null;)e=i.alternate,e!==null&&$r(e)===null&&(u=i),i=i.sibling;i=u,i===null?(u=t.child,t.child=null):(u=i.sibling,i.sibling=null),Du(t,!1,u,i,d,r);break;case"backwards":case"unstable_legacy-backwards":for(i=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&$r(e)===null){t.child=u;break}e=u.sibling,u.sibling=i,i=u,u=e}Du(t,!0,i,null,d,r);break;case"together":Du(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function ii(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),Ei|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(ql(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,i=Pn(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=Pn(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function _u(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Yr(e)))}function Jx(e,t,i){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),Si(t,st,e.memoizedState.cache),Wi();break;case 27:case 5:dt(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:Si(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,iu(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(ji(t),t.flags|=128,null):(i&t.child.childLanes)!==0?am(e,t,i):(ji(t),e=ii(e,t,i),e!==null?e.sibling:null);ji(t);break;case 19:var u=(e.flags&128)!==0;if(r=(i&t.childLanes)!==0,r||(ql(e,t,i,!1),r=(i&t.childLanes)!==0),u){if(r)return sm(e,t,i);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),v(at,at.current),r)break;return null;case 22:return t.lanes=0,Wh(e,t,i,t.pendingProps);case 24:Si(t,st,e.memoizedState.cache)}return ii(e,t,i)}function om(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)ut=!0;else{if(!_u(e,i)&&(t.flags&128)===0)return ut=!1,Jx(e,t,i);ut=(e.flags&131072)!==0}else ut=!1,Re&&(t.flags&1048576)!==0&&Hd(t,Ea,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=il(t.elementType),t.type=e,typeof e=="function")Uo(e)?(r=sl(e,r),t.tag=1,t=im(null,t,e,r,i)):(t.tag=0,t=ju(null,t,e,r,i));else{if(e!=null){var u=e.$$typeof;if(u===ne){t.tag=11,t=$h(null,t,e,r,i);break e}else if(u===P){t.tag=14,t=Ph(null,t,e,r,i);break e}}throw t=re(e)||e,Error(s(306,t,""))}}return t;case 0:return ju(e,t,t.type,t.pendingProps,i);case 1:return r=t.type,u=sl(r,t.pendingProps),im(e,t,r,u,i);case 3:e:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));r=t.pendingProps;var d=t.memoizedState;u=d.element,Jo(e,t),Ua(t,r,null,i);var b=t.memoizedState;if(r=b.cache,Si(t,st,r),r!==d.cache&&Xo(t,[st],i,!0),La(),r=b.element,d.isDehydrated)if(d={element:r,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=lm(e,t,r,i);break e}else if(r!==u){u=pn(Error(s(424)),t),Aa(u),t=lm(e,t,r,i);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,$e=vn(e.firstChild),Nt=t,Re=!0,bi=null,xn=!0,i=Wd(t,null,r,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Wi(),r===u){t=ii(e,t,i);break e}Et(e,t,r,i)}t=t.child}return t;case 26:return ss(e,t),e===null?(i=bp(t.type,null,t.pendingProps,null))?t.memoizedState=i:Re||(i=t.type,e=t.pendingProps,r=zs(ae.current).createElement(i),r[Ct]=t,r[Gt]=e,At(r,i,e),xt(r),t.stateNode=r):t.memoizedState=bp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return dt(t),e===null&&Re&&(r=t.stateNode=gp(t.type,t.pendingProps,ae.current),Nt=t,xn=!0,u=$e,Oi(t.type)?(fc=u,$e=vn(r.firstChild)):$e=u),Et(e,t,t.pendingProps.children,i),ss(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((u=r=$e)&&(r=T1(r,t.type,t.pendingProps,xn),r!==null?(t.stateNode=r,Nt=t,$e=vn(r.firstChild),xn=!1,u=!0):u=!1),u||vi(t)),dt(t),u=t.type,d=t.pendingProps,b=e!==null?e.memoizedProps:null,r=d.children,rc(u,d)?r=null:b!==null&&rc(u,b)&&(t.flags|=32),t.memoizedState!==null&&(u=au(e,t,Fx,null,null,i),ir._currentValue=u),ss(e,t),Et(e,t,r,i),t.child;case 6:return e===null&&Re&&((e=i=$e)&&(i=E1(i,t.pendingProps,xn),i!==null?(t.stateNode=i,Nt=t,$e=null,e=!0):e=!1),e||vi(t)),null;case 13:return am(e,t,i);case 4:return pe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=al(t,null,r,i):Et(e,t,r,i),t.child;case 11:return $h(e,t,t.type,t.pendingProps,i);case 7:return Et(e,t,t.pendingProps,i),t.child;case 8:return Et(e,t,t.pendingProps.children,i),t.child;case 12:return Et(e,t,t.pendingProps.children,i),t.child;case 10:return r=t.pendingProps,Si(t,t.type,r.value),Et(e,t,r.children,i),t.child;case 9:return u=t.type._context,r=t.pendingProps.children,tl(t),u=Tt(u),r=r(u),t.flags|=1,Et(e,t,r,i),t.child;case 14:return Ph(e,t,t.type,t.pendingProps,i);case 15:return Jh(e,t,t.type,t.pendingProps,i);case 19:return sm(e,t,i);case 31:return Px(e,t,i);case 22:return Wh(e,t,i,t.pendingProps);case 24:return tl(t),r=Tt(st),e===null?(u=Zo(),u===null&&(u=Ie,d=Io(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=i),u=d),t.memoizedState={parent:r,cache:u},Po(t),Si(t,st,u)):((e.lanes&i)!==0&&(Jo(e,t),Ua(t,null,null,i),La()),u=e.memoizedState,d=t.memoizedState,u.parent!==r?(u={parent:r,cache:r},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Si(t,st,r)):(r=d.cache,Si(t,st,r),r!==u.cache&&Xo(t,[st],i,!0))),Et(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function li(e){e.flags|=4}function Mu(e,t,i,r,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Rm())e.flags|=8192;else throw ll=Xr,$o}else e.flags&=-16777217}function um(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!zp(t))if(Rm())e.flags|=8192;else throw ll=Xr,$o}function us(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ot():536870912,e.lanes|=t,Pl|=t)}function Fa(e,t){if(!Re)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var r=null;i!==null;)i.alternate!==null&&(r=i),i=i.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,r=0;if(t)for(var u=e.child;u!==null;)i|=u.lanes|u.childLanes,r|=u.subtreeFlags&65011712,r|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)i|=u.lanes|u.childLanes,r|=u.subtreeFlags,r|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=r,e.childLanes=i,t}function Wx(e,t,i){var r=t.pendingProps;switch(Qo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return Pe(t),null;case 3:return i=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ei(st),we(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Bl(t)?li(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Fo())),Pe(t),null;case 26:var u=t.type,d=t.memoizedState;return e===null?(li(t),d!==null?(Pe(t),um(t,d)):(Pe(t),Mu(t,u,null,r,i))):d?d!==e.memoizedState?(li(t),Pe(t),um(t,d)):(Pe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&li(t),Pe(t),Mu(t,u,e,r,i)),null;case 27:if(St(t),i=ae.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&li(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return Pe(t),null}e=Y.current,Bl(t)?Yd(t):(e=gp(u,r,i),t.stateNode=e,li(t))}return Pe(t),null;case 5:if(St(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&li(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return Pe(t),null}if(d=Y.current,Bl(t))Yd(t);else{var b=zs(ae.current);switch(d){case 1:d=b.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:d=b.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":d=b.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":d=b.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":d=b.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof r.is=="string"?b.createElement("select",{is:r.is}):b.createElement("select"),r.multiple?d.multiple=!0:r.size&&(d.size=r.size);break;default:d=typeof r.is=="string"?b.createElement(u,{is:r.is}):b.createElement(u)}}d[Ct]=t,d[Gt]=r;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)d.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===t)break e;for(;b.sibling===null;){if(b.return===null||b.return===t)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}t.stateNode=d;e:switch(At(d,u,r),u){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&li(t)}}return Pe(t),Mu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&li(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(s(166));if(e=ae.current,Bl(t)){if(e=t.stateNode,i=t.memoizedProps,r=null,u=Nt,u!==null)switch(u.tag){case 27:case 5:r=u.memoizedProps}e[Ct]=t,e=!!(e.nodeValue===i||r!==null&&r.suppressHydrationWarning===!0||ap(e.nodeValue,i)),e||vi(t,!0)}else e=zs(e).createTextNode(r),e[Ct]=t,t.stateNode=e}return Pe(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(r=Bl(t),i!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Ct]=t}else Wi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),e=!1}else i=Fo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(an(t),t):(an(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Pe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Bl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[Ct]=t}else Wi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),u=!1}else u=Fo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(an(t),t):(an(t),null)}return an(t),(t.flags&128)!==0?(t.lanes=i,t):(i=r!==null,e=e!==null&&e.memoizedState!==null,i&&(r=t.child,u=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(u=r.alternate.memoizedState.cachePool.pool),d=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(d=r.memoizedState.cachePool.pool),d!==u&&(r.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),us(t,t.updateQueue),Pe(t),null);case 4:return we(),e===null&&tc(t.stateNode.containerInfo),Pe(t),null;case 10:return ei(t.type),Pe(t),null;case 19:if(G(at),r=t.memoizedState,r===null)return Pe(t),null;if(u=(t.flags&128)!==0,d=r.rendering,d===null)if(u)Fa(r,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=$r(e),d!==null){for(t.flags|=128,Fa(r,!1),e=d.updateQueue,t.updateQueue=e,us(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)Ud(i,e),i=i.sibling;return v(at,at.current&1|2),Re&&Jn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&wt()>ms&&(t.flags|=128,u=!0,Fa(r,!1),t.lanes=4194304)}else{if(!u)if(e=$r(d),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,us(t,e),Fa(r,!0),r.tail===null&&r.tailMode==="hidden"&&!d.alternate&&!Re)return Pe(t),null}else 2*wt()-r.renderingStartTime>ms&&i!==536870912&&(t.flags|=128,u=!0,Fa(r,!1),t.lanes=4194304);r.isBackwards?(d.sibling=t.child,t.child=d):(e=r.last,e!==null?e.sibling=d:t.child=d,r.last=d)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=wt(),e.sibling=null,i=at.current,v(at,u?i&1|2:i&1),Re&&Jn(t,r.treeForkCount),e):(Pe(t),null);case 22:case 23:return an(t),nu(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(i&536870912)!==0&&(t.flags&128)===0&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),i=t.updateQueue,i!==null&&us(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==i&&(t.flags|=2048),e!==null&&G(nl),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),ei(st),Pe(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function e1(e,t){switch(Qo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ei(st),we(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return St(t),null;case 31:if(t.memoizedState!==null){if(an(t),t.alternate===null)throw Error(s(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(an(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(at),null;case 4:return we(),null;case 10:return ei(t.type),null;case 22:case 23:return an(t),nu(),e!==null&&G(nl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ei(st),null;case 25:return null;default:return null}}function cm(e,t){switch(Qo(t),t.tag){case 3:ei(st),we();break;case 26:case 27:case 5:St(t);break;case 4:we();break;case 31:t.memoizedState!==null&&an(t);break;case 13:an(t);break;case 19:G(at);break;case 10:ei(t.type);break;case 22:case 23:an(t),nu(),e!==null&&G(nl);break;case 24:ei(st)}}function Va(e,t){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var u=r.next;i=u;do{if((i.tag&e)===e){r=void 0;var d=i.create,b=i.inst;r=d(),b.destroy=r}i=i.next}while(i!==u)}}catch(w){Ye(t,t.return,w)}}function Ni(e,t,i){try{var r=t.updateQueue,u=r!==null?r.lastEffect:null;if(u!==null){var d=u.next;r=d;do{if((r.tag&e)===e){var b=r.inst,w=b.destroy;if(w!==void 0){b.destroy=void 0,u=t;var N=i,q=w;try{q()}catch(I){Ye(u,N,I)}}}r=r.next}while(r!==d)}}catch(I){Ye(t,t.return,I)}}function fm(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{th(t,i)}catch(r){Ye(e,e.return,r)}}}function dm(e,t,i){i.props=sl(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(r){Ye(e,t,r)}}function Ga(e,t){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof i=="function"?e.refCleanup=i(r):i.current=r}}catch(u){Ye(e,t,u)}}function Qn(e,t){var i=e.ref,r=e.refCleanup;if(i!==null)if(typeof r=="function")try{r()}catch(u){Ye(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(u){Ye(e,t,u)}else i.current=null}function hm(e){var t=e.type,i=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&r.focus();break e;case"img":i.src?r.src=i.src:i.srcSet&&(r.srcset=i.srcSet)}}catch(u){Ye(e,e.return,u)}}function Ou(e,t,i){try{var r=e.stateNode;k1(r,e.type,i,t),r[Gt]=t}catch(u){Ye(e,e.return,u)}}function mm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Oi(e.type)||e.tag===4}function Ru(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mm(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&&Oi(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 Lu(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=Zn));else if(r!==4&&(r===27&&Oi(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(Lu(e,t,i),e=e.sibling;e!==null;)Lu(e,t,i),e=e.sibling}function cs(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(r!==4&&(r===27&&Oi(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(cs(e,t,i),e=e.sibling;e!==null;)cs(e,t,i),e=e.sibling}function pm(e){var t=e.stateNode,i=e.memoizedProps;try{for(var r=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);At(t,r,i),t[Ct]=e,t[Gt]=i}catch(d){Ye(e,e.return,d)}}var ai=!1,ct=!1,Uu=!1,gm=typeof WeakSet=="function"?WeakSet:Set,bt=null;function t1(e,t){if(e=e.containerInfo,lc=Ds,e=Td(e),Ao(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var r=i.getSelection&&i.getSelection();if(r&&r.rangeCount!==0){i=r.anchorNode;var u=r.anchorOffset,d=r.focusNode;r=r.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var b=0,w=-1,N=-1,q=0,I=0,J=e,H=null;t:for(;;){for(var F;J!==i||u!==0&&J.nodeType!==3||(w=b+u),J!==d||r!==0&&J.nodeType!==3||(N=b+r),J.nodeType===3&&(b+=J.nodeValue.length),(F=J.firstChild)!==null;)H=J,J=F;for(;;){if(J===e)break t;if(H===i&&++q===u&&(w=b),H===d&&++I===r&&(N=b),(F=J.nextSibling)!==null)break;J=H,H=J.parentNode}J=F}i=w===-1||N===-1?null:{start:w,end:N}}else i=null}i=i||{start:0,end:0}}else i=null;for(ac={focusedElem:e,selectionRange:i},Ds=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){switch(t=bt,d=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(i=0;i<e.length;i++)u=e[i],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,i=t,u=d.memoizedProps,d=d.memoizedState,r=i.stateNode;try{var de=sl(i.type,u);e=r.getSnapshotBeforeUpdate(de,d),r.__reactInternalSnapshotBeforeUpdate=e}catch(ve){Ye(i,i.return,ve)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)oc(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":oc(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}}function ym(e,t,i){var r=i.flags;switch(i.tag){case 0:case 11:case 15:si(e,i),r&4&&Va(5,i);break;case 1:if(si(e,i),r&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(b){Ye(i,i.return,b)}else{var u=sl(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Ye(i,i.return,b)}}r&64&&fm(i),r&512&&Ga(i,i.return);break;case 3:if(si(e,i),r&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{th(e,t)}catch(b){Ye(i,i.return,b)}}break;case 27:t===null&&r&4&&pm(i);case 26:case 5:si(e,i),t===null&&r&4&&hm(i),r&512&&Ga(i,i.return);break;case 12:si(e,i);break;case 31:si(e,i),r&4&&vm(e,i);break;case 13:si(e,i),r&4&&Sm(e,i),r&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=c1.bind(null,i),A1(e,i))));break;case 22:if(r=i.memoizedState!==null||ai,!r){t=t!==null&&t.memoizedState!==null||ct,u=ai;var d=ct;ai=r,(ct=t)&&!d?oi(e,i,(i.subtreeFlags&8772)!==0):si(e,i),ai=u,ct=d}break;case 30:break;default:si(e,i)}}function xm(e){var t=e.alternate;t!==null&&(e.alternate=null,xm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ho(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 We=null,It=!1;function ri(e,t,i){for(i=i.child;i!==null;)bm(e,t,i),i=i.sibling}function bm(e,t,i){if(lt&&typeof lt.onCommitFiberUnmount=="function")try{lt.onCommitFiberUnmount(zt,i)}catch{}switch(i.tag){case 26:ct||Qn(i,t),ri(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:ct||Qn(i,t);var r=We,u=It;Oi(i.type)&&(We=i.stateNode,It=!1),ri(e,t,i),er(i.stateNode),We=r,It=u;break;case 5:ct||Qn(i,t);case 6:if(r=We,u=It,We=null,ri(e,t,i),We=r,It=u,We!==null)if(It)try{(We.nodeType===9?We.body:We.nodeName==="HTML"?We.ownerDocument.body:We).removeChild(i.stateNode)}catch(d){Ye(i,t,d)}else try{We.removeChild(i.stateNode)}catch(d){Ye(i,t,d)}break;case 18:We!==null&&(It?(e=We,fp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),aa(e)):fp(We,i.stateNode));break;case 4:r=We,u=It,We=i.stateNode.containerInfo,It=!0,ri(e,t,i),We=r,It=u;break;case 0:case 11:case 14:case 15:Ni(2,i,t),ct||Ni(4,i,t),ri(e,t,i);break;case 1:ct||(Qn(i,t),r=i.stateNode,typeof r.componentWillUnmount=="function"&&dm(i,t,r)),ri(e,t,i);break;case 21:ri(e,t,i);break;case 22:ct=(r=ct)||i.memoizedState!==null,ri(e,t,i),ct=r;break;default:ri(e,t,i)}}function vm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{aa(e)}catch(i){Ye(t,t.return,i)}}}function Sm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{aa(e)}catch(i){Ye(t,t.return,i)}}function n1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gm),t;default:throw Error(s(435,e.tag))}}function fs(e,t){var i=n1(e);t.forEach(function(r){if(!i.has(r)){i.add(r);var u=f1.bind(null,e,r);r.then(u,u)}})}function Kt(e,t){var i=t.deletions;if(i!==null)for(var r=0;r<i.length;r++){var u=i[r],d=e,b=t,w=b;e:for(;w!==null;){switch(w.tag){case 27:if(Oi(w.type)){We=w.stateNode,It=!1;break e}break;case 5:We=w.stateNode,It=!1;break e;case 3:case 4:We=w.stateNode.containerInfo,It=!0;break e}w=w.return}if(We===null)throw Error(s(160));bm(d,b,u),We=null,It=!1,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)km(t,e),t=t.sibling}var An=null;function km(e,t){var i=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Kt(t,e),Zt(e),r&4&&(Ni(3,e,e.return),Va(3,e),Ni(5,e,e.return));break;case 1:Kt(t,e),Zt(e),r&512&&(ct||i===null||Qn(i,i.return)),r&64&&ai&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?r:i.concat(r))));break;case 26:var u=An;if(Kt(t,e),Zt(e),r&512&&(ct||i===null||Qn(i,i.return)),r&4){var d=i!==null?i.memoizedState:null;if(r=e.memoizedState,i===null)if(r===null)if(e.stateNode===null){e:{r=e.type,i=e.memoizedProps,u=u.ownerDocument||u;t:switch(r){case"title":d=u.getElementsByTagName("title")[0],(!d||d[xa]||d[Ct]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(r),u.head.insertBefore(d,u.querySelector("head > title"))),At(d,r,i),d[Ct]=e,xt(d),r=d;break e;case"link":var b=kp("link","href",u).get(r+(i.href||""));if(b){for(var w=0;w<b.length;w++)if(d=b[w],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice(w,1);break t}}d=u.createElement(r),At(d,r,i),u.head.appendChild(d);break;case"meta":if(b=kp("meta","content",u).get(r+(i.content||""))){for(w=0;w<b.length;w++)if(d=b[w],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice(w,1);break t}}d=u.createElement(r),At(d,r,i),u.head.appendChild(d);break;default:throw Error(s(468,r))}d[Ct]=e,xt(d),r=d}e.stateNode=r}else wp(u,e.type,e.stateNode);else e.stateNode=Sp(u,r,e.memoizedProps);else d!==r?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,r===null?wp(u,e.type,e.stateNode):Sp(u,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Ou(e,e.memoizedProps,i.memoizedProps)}break;case 27:Kt(t,e),Zt(e),r&512&&(ct||i===null||Qn(i,i.return)),i!==null&&r&4&&Ou(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Kt(t,e),Zt(e),r&512&&(ct||i===null||Qn(i,i.return)),e.flags&32){u=e.stateNode;try{Tl(u,"")}catch(de){Ye(e,e.return,de)}}r&4&&e.stateNode!=null&&(u=e.memoizedProps,Ou(e,u,i!==null?i.memoizedProps:u)),r&1024&&(Uu=!0);break;case 6:if(Kt(t,e),Zt(e),r&4){if(e.stateNode===null)throw Error(s(162));r=e.memoizedProps,i=e.stateNode;try{i.nodeValue=r}catch(de){Ye(e,e.return,de)}}break;case 3:if(Ns=null,u=An,An=js(t.containerInfo),Kt(t,e),An=u,Zt(e),r&4&&i!==null&&i.memoizedState.isDehydrated)try{aa(t.containerInfo)}catch(de){Ye(e,e.return,de)}Uu&&(Uu=!1,wm(e));break;case 4:r=An,An=js(e.stateNode.containerInfo),Kt(t,e),Zt(e),An=r;break;case 12:Kt(t,e),Zt(e);break;case 31:Kt(t,e),Zt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,fs(e,r)));break;case 13:Kt(t,e),Zt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(hs=wt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,fs(e,r)));break;case 22:u=e.memoizedState!==null;var N=i!==null&&i.memoizedState!==null,q=ai,I=ct;if(ai=q||u,ct=I||N,Kt(t,e),ct=I,ai=q,Zt(e),r&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(i===null||N||ai||ct||ol(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){N=i=t;try{if(d=N.stateNode,u)b=d.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{w=N.stateNode;var J=N.memoizedProps.style,H=J!=null&&J.hasOwnProperty("display")?J.display:null;w.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(de){Ye(N,N.return,de)}}}else if(t.tag===6){if(i===null){N=t;try{N.stateNode.nodeValue=u?"":N.memoizedProps}catch(de){Ye(N,N.return,de)}}}else if(t.tag===18){if(i===null){N=t;try{var F=N.stateNode;u?dp(F,!0):dp(N.stateNode,!1)}catch(de){Ye(N,N.return,de)}}}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;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(i=r.retryQueue,i!==null&&(r.retryQueue=null,fs(e,i))));break;case 19:Kt(t,e),Zt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,fs(e,r)));break;case 30:break;case 21:break;default:Kt(t,e),Zt(e)}}function Zt(e){var t=e.flags;if(t&2){try{for(var i,r=e.return;r!==null;){if(mm(r)){i=r;break}r=r.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var u=i.stateNode,d=Ru(e);cs(e,d,u);break;case 5:var b=i.stateNode;i.flags&32&&(Tl(b,""),i.flags&=-33);var w=Ru(e);cs(e,w,b);break;case 3:case 4:var N=i.stateNode.containerInfo,q=Ru(e);Lu(e,q,N);break;default:throw Error(s(161))}}catch(I){Ye(e,e.return,I)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;wm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function si(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ym(e,t.alternate,t),t=t.sibling}function ol(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ni(4,t,t.return),ol(t);break;case 1:Qn(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&dm(t,t.return,i),ol(t);break;case 27:er(t.stateNode);case 26:case 5:Qn(t,t.return),ol(t);break;case 22:t.memoizedState===null&&ol(t);break;case 30:ol(t);break;default:ol(t)}e=e.sibling}}function oi(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,u=e,d=t,b=d.flags;switch(d.tag){case 0:case 11:case 15:oi(u,d,i),Va(4,d);break;case 1:if(oi(u,d,i),r=d,u=r.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(q){Ye(r,r.return,q)}if(r=d,u=r.updateQueue,u!==null){var w=r.stateNode;try{var N=u.shared.hiddenCallbacks;if(N!==null)for(u.shared.hiddenCallbacks=null,u=0;u<N.length;u++)eh(N[u],w)}catch(q){Ye(r,r.return,q)}}i&&b&64&&fm(d),Ga(d,d.return);break;case 27:pm(d);case 26:case 5:oi(u,d,i),i&&r===null&&b&4&&hm(d),Ga(d,d.return);break;case 12:oi(u,d,i);break;case 31:oi(u,d,i),i&&b&4&&vm(u,d);break;case 13:oi(u,d,i),i&&b&4&&Sm(u,d);break;case 22:d.memoizedState===null&&oi(u,d,i),Ga(d,d.return);break;case 30:break;default:oi(u,d,i)}t=t.sibling}}function Bu(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&Da(i))}function qu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Da(e))}function Dn(e,t,i,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zm(e,t,i,r),t=t.sibling}function zm(e,t,i,r){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Dn(e,t,i,r),u&2048&&Va(9,t);break;case 1:Dn(e,t,i,r);break;case 3:Dn(e,t,i,r),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Da(e)));break;case 12:if(u&2048){Dn(e,t,i,r),e=t.stateNode;try{var d=t.memoizedProps,b=d.id,w=d.onPostCommit;typeof w=="function"&&w(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){Ye(t,t.return,N)}}else Dn(e,t,i,r);break;case 31:Dn(e,t,i,r);break;case 13:Dn(e,t,i,r);break;case 23:break;case 22:d=t.stateNode,b=t.alternate,t.memoizedState!==null?d._visibility&2?Dn(e,t,i,r):Xa(e,t):d._visibility&2?Dn(e,t,i,r):(d._visibility|=2,Kl(e,t,i,r,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Bu(b,t);break;case 24:Dn(e,t,i,r),u&2048&&qu(t.alternate,t);break;default:Dn(e,t,i,r)}}function Kl(e,t,i,r,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,b=t,w=i,N=r,q=b.flags;switch(b.tag){case 0:case 11:case 15:Kl(d,b,w,N,u),Va(8,b);break;case 23:break;case 22:var I=b.stateNode;b.memoizedState!==null?I._visibility&2?Kl(d,b,w,N,u):Xa(d,b):(I._visibility|=2,Kl(d,b,w,N,u)),u&&q&2048&&Bu(b.alternate,b);break;case 24:Kl(d,b,w,N,u),u&&q&2048&&qu(b.alternate,b);break;default:Kl(d,b,w,N,u)}t=t.sibling}}function Xa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,r=t,u=r.flags;switch(r.tag){case 22:Xa(i,r),u&2048&&Bu(r.alternate,r);break;case 24:Xa(i,r),u&2048&&qu(r.alternate,r);break;default:Xa(i,r)}t=t.sibling}}var Ia=8192;function Zl(e,t,i){if(e.subtreeFlags&Ia)for(e=e.child;e!==null;)jm(e,t,i),e=e.sibling}function jm(e,t,i){switch(e.tag){case 26:Zl(e,t,i),e.flags&Ia&&e.memoizedState!==null&&Y1(i,An,e.memoizedState,e.memoizedProps);break;case 5:Zl(e,t,i);break;case 3:case 4:var r=An;An=js(e.stateNode.containerInfo),Zl(e,t,i),An=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ia,Ia=16777216,Zl(e,t,i),Ia=r):Zl(e,t,i));break;default:Zl(e,t,i)}}function Cm(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 Ka(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var r=t[i];bt=r,Tm(r,e)}Cm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nm(e),e=e.sibling}function Nm(e){switch(e.tag){case 0:case 11:case 15:Ka(e),e.flags&2048&&Ni(9,e,e.return);break;case 3:Ka(e);break;case 12:Ka(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ds(e)):Ka(e);break;default:Ka(e)}}function ds(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var r=t[i];bt=r,Tm(r,e)}Cm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ni(8,t,t.return),ds(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,ds(t));break;default:ds(t)}e=e.sibling}}function Tm(e,t){for(;bt!==null;){var i=bt;switch(i.tag){case 0:case 11:case 15:Ni(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var r=i.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Da(i.memoizedState.cache)}if(r=i.child,r!==null)r.return=i,bt=r;else e:for(i=e;bt!==null;){r=bt;var u=r.sibling,d=r.return;if(xm(r),r===i){bt=null;break e}if(u!==null){u.return=d,bt=u;break e}bt=d}}}var i1={getCacheForType:function(e){var t=Tt(st),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return Tt(st).controller.signal}},l1=typeof WeakMap=="function"?WeakMap:Map,qe=0,Ie=null,Ae=null,Me=0,Qe=0,rn=null,Ti=!1,$l=!1,Hu=!1,ui=0,it=0,Ei=0,ul=0,Qu=0,sn=0,Pl=0,Za=null,$t=null,Yu=!1,hs=0,Em=0,ms=1/0,ps=null,Ai=null,mt=0,Di=null,Jl=null,ci=0,Fu=0,Vu=null,Am=null,$a=0,Gu=null;function on(){return(qe&2)!==0&&Me!==0?Me&-Me:_.T!==null?Pu():co()}function Dm(){if(sn===0)if((Me&536870912)===0||Re){var e=vl;vl<<=1,(vl&3932160)===0&&(vl=262144),sn=e}else sn=536870912;return e=ln.current,e!==null&&(e.flags|=32),sn}function Pt(e,t,i){(e===Ie&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)&&(Wl(e,0),_i(e,Me,sn,!1)),et(e,i),((qe&2)===0||e!==Ie)&&(e===Ie&&((qe&2)===0&&(ul|=i),it===4&&_i(e,Me,sn,!1)),Yn(e))}function _m(e,t,i){if((qe&6)!==0)throw Error(s(327));var r=!i&&(t&127)===0&&(t&e.expiredLanes)===0||Je(e,t),u=r?s1(e,t):Iu(e,t,!0),d=r;do{if(u===0){$l&&!r&&_i(e,t,0,!1);break}else{if(i=e.current.alternate,d&&!a1(i)){u=Iu(e,t,!1),d=!1;continue}if(u===2){if(d=t,e.errorRecoveryDisabledLanes&d)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){t=b;e:{var w=e;u=Za;var N=w.current.memoizedState.isDehydrated;if(N&&(Wl(w,b).flags|=256),b=Iu(w,b,!1),b!==2){if(Hu&&!N){w.errorRecoveryDisabledLanes|=d,ul|=d,u=4;break e}d=$t,$t=u,d!==null&&($t===null?$t=d:$t.push.apply($t,d))}u=b}if(d=!1,u!==2)continue}}if(u===1){Wl(e,0),_i(e,t,0,!0);break}e:{switch(r=e,d=u,d){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:_i(r,t,sn,!Ti);break e;case 2:$t=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=hs+300-wt(),10<u)){if(_i(r,t,sn,!Ti),ke(r,0,!0)!==0)break e;ci=t,r.timeoutHandle=up(Mm.bind(null,r,i,$t,ps,Yu,t,sn,ul,Pl,Ti,d,"Throttled",-0,0),u);break e}Mm(r,i,$t,ps,Yu,t,sn,ul,Pl,Ti,d,null,-0,0)}}break}while(!0);Yn(e)}function Mm(e,t,i,r,u,d,b,w,N,q,I,J,H,F){if(e.timeoutHandle=-1,J=t.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zn},jm(t,d,J);var de=(d&62914560)===d?hs-wt():(d&4194048)===d?Em-wt():0;if(de=F1(J,de),de!==null){ci=d,e.cancelPendingCommit=de(Qm.bind(null,e,t,d,i,r,u,b,w,N,I,J,null,H,F)),_i(e,d,b,!q);return}}Qm(e,t,d,i,r,u,b,w,N)}function a1(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var r=0;r<i.length;r++){var u=i[r],d=u.getSnapshot;u=u.value;try{if(!tn(d(),u))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;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 _i(e,t,i,r){t&=~Qu,t&=~ul,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var u=t;0<u;){var d=31-He(u),b=1<<d;r[d]=-1,u&=~b}i!==0&&Xi(e,i,t)}function gs(){return(qe&6)===0?(Pa(0),!1):!0}function Xu(){if(Ae!==null){if(Qe===0)var e=Ae.return;else e=Ae,Wn=el=null,ou(e),Fl=null,Ma=0,e=Ae;for(;e!==null;)cm(e.alternate,e),e=e.return;Ae=null}}function Wl(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,j1(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),ci=0,Xu(),Ie=e,Ae=i=Pn(e.current,null),Me=t,Qe=0,rn=null,Ti=!1,$l=Je(e,t),Hu=!1,Pl=sn=Qu=ul=Ei=it=0,$t=Za=null,Yu=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var u=31-He(r),d=1<<u;t|=e[u],r&=~d}return ui=t,Ur(),i}function Om(e,t){je=null,_.H=Qa,t===Yl||t===Gr?(t=$d(),Qe=3):t===$o?(t=$d(),Qe=4):Qe=t===zu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,rn=t,Ae===null&&(it=1,as(e,pn(t,e.current)))}function Rm(){var e=ln.current;return e===null?!0:(Me&4194048)===Me?bn===null:(Me&62914560)===Me||(Me&536870912)!==0?e===bn:!1}function Lm(){var e=_.H;return _.H=Qa,e===null?Qa:e}function Um(){var e=_.A;return _.A=i1,e}function ys(){it=4,Ti||(Me&4194048)!==Me&&ln.current!==null||($l=!0),(Ei&134217727)===0&&(ul&134217727)===0||Ie===null||_i(Ie,Me,sn,!1)}function Iu(e,t,i){var r=qe;qe|=2;var u=Lm(),d=Um();(Ie!==e||Me!==t)&&(ps=null,Wl(e,t)),t=!1;var b=it;e:do try{if(Qe!==0&&Ae!==null){var w=Ae,N=rn;switch(Qe){case 8:Xu(),b=6;break e;case 3:case 2:case 9:case 6:ln.current===null&&(t=!0);var q=Qe;if(Qe=0,rn=null,ea(e,w,N,q),i&&$l){b=0;break e}break;default:q=Qe,Qe=0,rn=null,ea(e,w,N,q)}}r1(),b=it;break}catch(I){Om(e,I)}while(!0);return t&&e.shellSuspendCounter++,Wn=el=null,qe=r,_.H=u,_.A=d,Ae===null&&(Ie=null,Me=0,Ur()),b}function r1(){for(;Ae!==null;)Bm(Ae)}function s1(e,t){var i=qe;qe|=2;var r=Lm(),u=Um();Ie!==e||Me!==t?(ps=null,ms=wt()+500,Wl(e,t)):$l=Je(e,t);e:do try{if(Qe!==0&&Ae!==null){t=Ae;var d=rn;t:switch(Qe){case 1:Qe=0,rn=null,ea(e,t,d,1);break;case 2:case 9:if(Kd(d)){Qe=0,rn=null,qm(t);break}t=function(){Qe!==2&&Qe!==9||Ie!==e||(Qe=7),Yn(e)},d.then(t,t);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:Kd(d)?(Qe=0,rn=null,qm(t)):(Qe=0,rn=null,ea(e,t,d,7));break;case 5:var b=null;switch(Ae.tag){case 26:b=Ae.memoizedState;case 5:case 27:var w=Ae;if(b?zp(b):w.stateNode.complete){Qe=0,rn=null;var N=w.sibling;if(N!==null)Ae=N;else{var q=w.return;q!==null?(Ae=q,xs(q)):Ae=null}break t}}Qe=0,rn=null,ea(e,t,d,5);break;case 6:Qe=0,rn=null,ea(e,t,d,6);break;case 8:Xu(),it=6;break e;default:throw Error(s(462))}}o1();break}catch(I){Om(e,I)}while(!0);return Wn=el=null,_.H=r,_.A=u,qe=i,Ae!==null?0:(Ie=null,Me=0,Ur(),it)}function o1(){for(;Ae!==null&&!kt();)Bm(Ae)}function Bm(e){var t=om(e.alternate,e,ui);e.memoizedProps=e.pendingProps,t===null?xs(e):Ae=t}function qm(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=nm(i,t,t.pendingProps,t.type,void 0,Me);break;case 11:t=nm(i,t,t.pendingProps,t.type.render,t.ref,Me);break;case 5:ou(t);default:cm(i,t),t=Ae=Ud(t,ui),t=om(i,t,ui)}e.memoizedProps=e.pendingProps,t===null?xs(e):Ae=t}function ea(e,t,i,r){Wn=el=null,ou(t),Fl=null,Ma=0;var u=t.return;try{if($x(e,u,t,i,Me)){it=1,as(e,pn(i,e.current)),Ae=null;return}}catch(d){if(u!==null)throw Ae=u,d;it=1,as(e,pn(i,e.current)),Ae=null;return}t.flags&32768?(Re||r===1?e=!0:$l||(Me&536870912)!==0?e=!1:(Ti=e=!0,(r===2||r===9||r===3||r===6)&&(r=ln.current,r!==null&&r.tag===13&&(r.flags|=16384))),Hm(t,e)):xs(t)}function xs(e){var t=e;do{if((t.flags&32768)!==0){Hm(t,Ti);return}e=t.return;var i=Wx(t.alternate,t,ui);if(i!==null){Ae=i;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);it===0&&(it=5)}function Hm(e,t){do{var i=e1(e.alternate,e);if(i!==null){i.flags&=32767,Ae=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=i}while(e!==null);it=6,Ae=null}function Qm(e,t,i,r,u,d,b,w,N){e.cancelPendingCommit=null;do bs();while(mt!==0);if((qe&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(d=t.lanes|t.childLanes,d|=Ro,Yt(e,i,d,b,w,N),e===Ie&&(Ae=Ie=null,Me=0),Jl=t,Di=e,ci=i,Fu=d,Vu=u,Am=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,d1(be,function(){return Xm(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=_.T,_.T=null,u=$.p,$.p=2,b=qe,qe|=4;try{t1(e,t,i)}finally{qe=b,$.p=u,_.T=r}}mt=1,Ym(),Fm(),Vm()}}function Ym(){if(mt===1){mt=0;var e=Di,t=Jl,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=_.T,_.T=null;var r=$.p;$.p=2;var u=qe;qe|=4;try{km(t,e);var d=ac,b=Td(e.containerInfo),w=d.focusedElem,N=d.selectionRange;if(b!==w&&w&&w.ownerDocument&&Nd(w.ownerDocument.documentElement,w)){if(N!==null&&Ao(w)){var q=N.start,I=N.end;if(I===void 0&&(I=q),"selectionStart"in w)w.selectionStart=q,w.selectionEnd=Math.min(I,w.value.length);else{var J=w.ownerDocument||document,H=J&&J.defaultView||window;if(H.getSelection){var F=H.getSelection(),de=w.textContent.length,ve=Math.min(N.start,de),Ge=N.end===void 0?ve:Math.min(N.end,de);!F.extend&&ve>Ge&&(b=Ge,Ge=ve,ve=b);var O=Cd(w,ve),A=Cd(w,Ge);if(O&&A&&(F.rangeCount!==1||F.anchorNode!==O.node||F.anchorOffset!==O.offset||F.focusNode!==A.node||F.focusOffset!==A.offset)){var B=J.createRange();B.setStart(O.node,O.offset),F.removeAllRanges(),ve>Ge?(F.addRange(B),F.extend(A.node,A.offset)):(B.setEnd(A.node,A.offset),F.addRange(B))}}}}for(J=[],F=w;F=F.parentNode;)F.nodeType===1&&J.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<J.length;w++){var Z=J[w];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Ds=!!lc,ac=lc=null}finally{qe=u,$.p=r,_.T=i}}e.current=t,mt=2}}function Fm(){if(mt===2){mt=0;var e=Di,t=Jl,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=_.T,_.T=null;var r=$.p;$.p=2;var u=qe;qe|=4;try{ym(e,t.alternate,t)}finally{qe=u,$.p=r,_.T=i}}mt=3}}function Vm(){if(mt===4||mt===3){mt=0,Rn();var e=Di,t=Jl,i=ci,r=Am;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?mt=5:(mt=0,Jl=Di=null,Gm(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Ai=null),Tn(i),t=t.stateNode,lt&&typeof lt.onCommitFiberRoot=="function")try{lt.onCommitFiberRoot(zt,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=_.T,u=$.p,$.p=2,_.T=null;try{for(var d=e.onRecoverableError,b=0;b<r.length;b++){var w=r[b];d(w.value,{componentStack:w.stack})}}finally{_.T=t,$.p=u}}(ci&3)!==0&&bs(),Yn(e),u=e.pendingLanes,(i&261930)!==0&&(u&42)!==0?e===Gu?$a++:($a=0,Gu=e):$a=0,Pa(0)}}function Gm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Da(t)))}function bs(){return Ym(),Fm(),Vm(),Xm()}function Xm(){if(mt!==5)return!1;var e=Di,t=Fu;Fu=0;var i=Tn(ci),r=_.T,u=$.p;try{$.p=32>i?32:i,_.T=null,i=Vu,Vu=null;var d=Di,b=ci;if(mt=0,Jl=Di=null,ci=0,(qe&6)!==0)throw Error(s(331));var w=qe;if(qe|=4,Nm(d.current),zm(d,d.current,b,i),qe=w,Pa(0,!1),lt&&typeof lt.onPostCommitFiberRoot=="function")try{lt.onPostCommitFiberRoot(zt,d)}catch{}return!0}finally{$.p=u,_.T=r,Gm(e,t)}}function Im(e,t,i){t=pn(i,t),t=wu(e.stateNode,t,2),e=zi(e,t,2),e!==null&&(et(e,2),Yn(e))}function Ye(e,t,i){if(e.tag===3)Im(e,e,i);else for(;t!==null;){if(t.tag===3){Im(t,e,i);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ai===null||!Ai.has(r))){e=pn(i,e),i=Kh(2),r=zi(t,i,2),r!==null&&(Zh(i,r,t,e),et(r,2),Yn(r));break}}t=t.return}}function Ku(e,t,i){var r=e.pingCache;if(r===null){r=e.pingCache=new l1;var u=new Set;r.set(t,u)}else u=r.get(t),u===void 0&&(u=new Set,r.set(t,u));u.has(i)||(Hu=!0,u.add(i),e=u1.bind(null,e,t,i),t.then(e,e))}function u1(e,t,i){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Ie===e&&(Me&i)===i&&(it===4||it===3&&(Me&62914560)===Me&&300>wt()-hs?(qe&2)===0&&Wl(e,0):Qu|=i,Pl===Me&&(Pl=0)),Yn(e)}function Km(e,t){t===0&&(t=Ot()),e=Pi(e,t),e!==null&&(et(e,t),Yn(e))}function c1(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),Km(e,i)}function f1(e,t){var i=0;switch(e.tag){case 31:case 13:var r=e.stateNode,u=e.memoizedState;u!==null&&(i=u.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),Km(e,i)}function d1(e,t){return mi(e,t)}var vs=null,ta=null,Zu=!1,Ss=!1,$u=!1,Mi=0;function Yn(e){e!==ta&&e.next===null&&(ta===null?vs=ta=e:ta=ta.next=e),Ss=!0,Zu||(Zu=!0,m1())}function Pa(e,t){if(!$u&&Ss){$u=!0;do for(var i=!1,r=vs;r!==null;){if(e!==0){var u=r.pendingLanes;if(u===0)var d=0;else{var b=r.suspendedLanes,w=r.pingedLanes;d=(1<<31-He(42|e)+1)-1,d&=u&~(b&~w),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,Jm(r,d))}else d=Me,d=ke(r,r===Ie?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(d&3)===0||Je(r,d)||(i=!0,Jm(r,d));r=r.next}while(i);$u=!1}}function h1(){Zm()}function Zm(){Ss=Zu=!1;var e=0;Mi!==0&&z1()&&(e=Mi);for(var t=wt(),i=null,r=vs;r!==null;){var u=r.next,d=$m(r,t);d===0?(r.next=null,i===null?vs=u:i.next=u,u===null&&(ta=i)):(i=r,(e!==0||(d&3)!==0)&&(Ss=!0)),r=u}mt!==0&&mt!==5||Pa(e),Mi!==0&&(Mi=0)}function $m(e,t){for(var i=e.suspendedLanes,r=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var b=31-He(d),w=1<<b,N=u[b];N===-1?((w&i)===0||(w&r)!==0)&&(u[b]=yt(w,t)):N<=t&&(e.expiredLanes|=w),d&=~w}if(t=Ie,i=Me,i=ke(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,i===0||e===t&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Vi(r),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||Je(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(r!==null&&Vi(r),Tn(i)){case 2:case 8:i=se;break;case 32:i=be;break;case 268435456:i=Ee;break;default:i=be}return r=Pm.bind(null,e),i=mi(i,r),e.callbackPriority=t,e.callbackNode=i,t}return r!==null&&r!==null&&Vi(r),e.callbackPriority=2,e.callbackNode=null,2}function Pm(e,t){if(mt!==0&&mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(bs()&&e.callbackNode!==i)return null;var r=Me;return r=ke(e,e===Ie?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(_m(e,r,t),$m(e,wt()),e.callbackNode!=null&&e.callbackNode===i?Pm.bind(null,e):null)}function Jm(e,t){if(bs())return null;_m(e,t,!0)}function m1(){C1(function(){(qe&6)!==0?mi(K,h1):Zm()})}function Pu(){if(Mi===0){var e=Hl;e===0&&(e=bl,bl<<=1,(bl&261888)===0&&(bl=256)),Mi=e}return Mi}function Wm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Er(""+e)}function ep(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function p1(e,t,i,r,u){if(t==="submit"&&i&&i.stateNode===u){var d=Wm((u[Gt]||null).action),b=r.submitter;b&&(t=(t=b[Gt]||null)?Wm(t.formAction):b.getAttribute("formAction"),t!==null&&(d=t,b=null));var w=new Mr("action","action",null,r,u);e.push({event:w,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Mi!==0){var N=b?ep(u,b):new FormData(u);yu(i,{pending:!0,data:N,method:u.method,action:d},null,N)}}else typeof d=="function"&&(w.preventDefault(),N=b?ep(u,b):new FormData(u),yu(i,{pending:!0,data:N,method:u.method,action:d},d,N))},currentTarget:u}]})}}for(var Ju=0;Ju<Oo.length;Ju++){var Wu=Oo[Ju],g1=Wu.toLowerCase(),y1=Wu[0].toUpperCase()+Wu.slice(1);En(g1,"on"+y1)}En(Dd,"onAnimationEnd"),En(_d,"onAnimationIteration"),En(Md,"onAnimationStart"),En("dblclick","onDoubleClick"),En("focusin","onFocus"),En("focusout","onBlur"),En(Mx,"onTransitionRun"),En(Ox,"onTransitionStart"),En(Rx,"onTransitionCancel"),En(Od,"onTransitionEnd"),Cl("onMouseEnter",["mouseout","mouseover"]),Cl("onMouseLeave",["mouseout","mouseover"]),Cl("onPointerEnter",["pointerout","pointerover"]),Cl("onPointerLeave",["pointerout","pointerover"]),Ii("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ii("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ii("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ii("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ii("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ii("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ja="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(" "),x1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ja));function tp(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var r=e[i],u=r.event;r=r.listeners;e:{var d=void 0;if(t)for(var b=r.length-1;0<=b;b--){var w=r[b],N=w.instance,q=w.currentTarget;if(w=w.listener,N!==d&&u.isPropagationStopped())break e;d=w,u.currentTarget=q;try{d(u)}catch(I){Lr(I)}u.currentTarget=null,d=N}else for(b=0;b<r.length;b++){if(w=r[b],N=w.instance,q=w.currentTarget,w=w.listener,N!==d&&u.isPropagationStopped())break e;d=w,u.currentTarget=q;try{d(u)}catch(I){Lr(I)}u.currentTarget=null,d=N}}}}function De(e,t){var i=t[fo];i===void 0&&(i=t[fo]=new Set);var r=e+"__bubble";i.has(r)||(np(t,e,2,!1),i.add(r))}function ec(e,t,i){var r=0;t&&(r|=4),np(i,e,r,t)}var ks="_reactListening"+Math.random().toString(36).slice(2);function tc(e){if(!e[ks]){e[ks]=!0,Zf.forEach(function(i){i!=="selectionchange"&&(x1.has(i)||ec(i,!1,e),ec(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ks]||(t[ks]=!0,ec("selectionchange",!1,t))}}function np(e,t,i,r){switch(Dp(t)){case 2:var u=X1;break;case 8:u=I1;break;default:u=gc}i=u.bind(null,t,i,e),u=void 0,!So||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),r?u!==void 0?e.addEventListener(t,i,{capture:!0,passive:u}):e.addEventListener(t,i,!0):u!==void 0?e.addEventListener(t,i,{passive:u}):e.addEventListener(t,i,!1)}function nc(e,t,i,r,u){var d=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var b=r.tag;if(b===3||b===4){var w=r.stateNode.containerInfo;if(w===u)break;if(b===4)for(b=r.return;b!==null;){var N=b.tag;if((N===3||N===4)&&b.stateNode.containerInfo===u)return;b=b.return}for(;w!==null;){if(b=wl(w),b===null)return;if(N=b.tag,N===5||N===6||N===26||N===27){r=d=b;continue e}w=w.parentNode}}r=r.return}sd(function(){var q=d,I=bo(i),J=[];e:{var H=Rd.get(e);if(H!==void 0){var F=Mr,de=e;switch(e){case"keypress":if(Dr(i)===0)break e;case"keydown":case"keyup":F=fx;break;case"focusin":de="focus",F=jo;break;case"focusout":de="blur",F=jo;break;case"beforeblur":case"afterblur":F=jo;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=cd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=Wy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=mx;break;case Dd:case _d:case Md:F=nx;break;case Od:F=gx;break;case"scroll":case"scrollend":F=Py;break;case"wheel":F=xx;break;case"copy":case"cut":case"paste":F=lx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=dd;break;case"toggle":case"beforetoggle":F=vx}var ve=(t&4)!==0,Ge=!ve&&(e==="scroll"||e==="scrollend"),O=ve?H!==null?H+"Capture":null:H;ve=[];for(var A=q,B;A!==null;){var Z=A;if(B=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||B===null||O===null||(Z=va(A,O),Z!=null&&ve.push(Wa(A,Z,B))),Ge)break;A=A.return}0<ve.length&&(H=new F(H,de,null,i,I),J.push({event:H,listeners:ve}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",H&&i!==xo&&(de=i.relatedTarget||i.fromElement)&&(wl(de)||de[kl]))break e;if((F||H)&&(H=I.window===I?I:(H=I.ownerDocument)?H.defaultView||H.parentWindow:window,F?(de=i.relatedTarget||i.toElement,F=q,de=de?wl(de):null,de!==null&&(Ge=c(de),ve=de.tag,de!==Ge||ve!==5&&ve!==27&&ve!==6)&&(de=null)):(F=null,de=q),F!==de)){if(ve=cd,Z="onMouseLeave",O="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(ve=dd,Z="onPointerLeave",O="onPointerEnter",A="pointer"),Ge=F==null?H:ba(F),B=de==null?H:ba(de),H=new ve(Z,A+"leave",F,i,I),H.target=Ge,H.relatedTarget=B,Z=null,wl(I)===q&&(ve=new ve(O,A+"enter",de,i,I),ve.target=B,ve.relatedTarget=Ge,Z=ve),Ge=Z,F&&de)t:{for(ve=b1,O=F,A=de,B=0,Z=O;Z;Z=ve(Z))B++;Z=0;for(var ye=A;ye;ye=ve(ye))Z++;for(;0<B-Z;)O=ve(O),B--;for(;0<Z-B;)A=ve(A),Z--;for(;B--;){if(O===A||A!==null&&O===A.alternate){ve=O;break t}O=ve(O),A=ve(A)}ve=null}else ve=null;F!==null&&ip(J,H,F,ve,!1),de!==null&&Ge!==null&&ip(J,Ge,de,ve,!0)}}e:{if(H=q?ba(q):window,F=H.nodeName&&H.nodeName.toLowerCase(),F==="select"||F==="input"&&H.type==="file")var Ue=vd;else if(xd(H))if(Sd)Ue=Ax;else{Ue=Tx;var he=Nx}else F=H.nodeName,!F||F.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?q&&yo(q.elementType)&&(Ue=vd):Ue=Ex;if(Ue&&(Ue=Ue(e,q))){bd(J,Ue,i,I);break e}he&&he(e,H,q),e==="focusout"&&q&&H.type==="number"&&q.memoizedProps.value!=null&&go(H,"number",H.value)}switch(he=q?ba(q):window,e){case"focusin":(xd(he)||he.contentEditable==="true")&&(_l=he,Do=q,Ta=null);break;case"focusout":Ta=Do=_l=null;break;case"mousedown":_o=!0;break;case"contextmenu":case"mouseup":case"dragend":_o=!1,Ed(J,i,I);break;case"selectionchange":if(_x)break;case"keydown":case"keyup":Ed(J,i,I)}var Ne;if(No)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else Dl?gd(e,i)&&(Oe="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Oe="onCompositionStart");Oe&&(hd&&i.locale!=="ko"&&(Dl||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Dl&&(Ne=od()):(yi=I,ko="value"in yi?yi.value:yi.textContent,Dl=!0)),he=ws(q,Oe),0<he.length&&(Oe=new fd(Oe,e,null,i,I),J.push({event:Oe,listeners:he}),Ne?Oe.data=Ne:(Ne=yd(i),Ne!==null&&(Oe.data=Ne)))),(Ne=kx?wx(e,i):zx(e,i))&&(Oe=ws(q,"onBeforeInput"),0<Oe.length&&(he=new fd("onBeforeInput","beforeinput",null,i,I),J.push({event:he,listeners:Oe}),he.data=Ne)),p1(J,e,q,i,I)}tp(J,t)})}function Wa(e,t,i){return{instance:e,listener:t,currentTarget:i}}function ws(e,t){for(var i=t+"Capture",r=[];e!==null;){var u=e,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=va(e,i),u!=null&&r.unshift(Wa(e,u,d)),u=va(e,t),u!=null&&r.push(Wa(e,u,d))),e.tag===3)return r;e=e.return}return[]}function b1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ip(e,t,i,r,u){for(var d=t._reactName,b=[];i!==null&&i!==r;){var w=i,N=w.alternate,q=w.stateNode;if(w=w.tag,N!==null&&N===r)break;w!==5&&w!==26&&w!==27||q===null||(N=q,u?(q=va(i,d),q!=null&&b.unshift(Wa(i,q,N))):u||(q=va(i,d),q!=null&&b.push(Wa(i,q,N)))),i=i.return}b.length!==0&&e.push({event:t,listeners:b})}var v1=/\r\n?/g,S1=/\u0000|\uFFFD/g;function lp(e){return(typeof e=="string"?e:""+e).replace(v1,`
|
|
9
|
+
`).replace(S1,"")}function ap(e,t){return t=lp(t),lp(e)===t}function Ve(e,t,i,r,u,d){switch(i){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Tl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Tl(e,""+r);break;case"className":Nr(e,"class",r);break;case"tabIndex":Nr(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Nr(e,i,r);break;case"style":ad(e,r,d);break;case"data":if(t!=="object"){Nr(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Er(""+r),e.setAttribute(i,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(i,"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 d=="function"&&(i==="formAction"?(t!=="input"&&Ve(e,t,"name",u.name,u,null),Ve(e,t,"formEncType",u.formEncType,u,null),Ve(e,t,"formMethod",u.formMethod,u,null),Ve(e,t,"formTarget",u.formTarget,u,null)):(Ve(e,t,"encType",u.encType,u,null),Ve(e,t,"method",u.method,u,null),Ve(e,t,"target",u.target,u,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Er(""+r),e.setAttribute(i,r);break;case"onClick":r!=null&&(e.onclick=Zn);break;case"onScroll":r!=null&&De("scroll",e);break;case"onScrollEnd":r!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(i=r.__html,i!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=i}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}i=Er(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,""+r):e.removeAttribute(i);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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":r===!0?e.setAttribute(i,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,r):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(i,r):e.removeAttribute(i);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(i):e.setAttribute(i,r);break;case"popover":De("beforetoggle",e),De("toggle",e),Cr(e,"popover",r);break;case"xlinkActuate":Kn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Kn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Kn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Kn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Kn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Kn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Kn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Kn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Kn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Cr(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=Zy.get(i)||i,Cr(e,i,r))}}function ic(e,t,i,r,u,d){switch(i){case"style":ad(e,r,d);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(i=r.__html,i!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=i}}break;case"children":typeof r=="string"?Tl(e,r):(typeof r=="number"||typeof r=="bigint")&&Tl(e,""+r);break;case"onScroll":r!=null&&De("scroll",e);break;case"onScrollEnd":r!=null&&De("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Zn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$f.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(u=i.endsWith("Capture"),t=i.slice(2,u?i.length-7:void 0),d=e[Gt]||null,d=d!=null?d[i]:null,typeof d=="function"&&e.removeEventListener(t,d,u),typeof r=="function")){typeof d!="function"&&d!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,r,u);break e}i in e?e[i]=r:r===!0?e.setAttribute(i,""):Cr(e,i,r)}}}function At(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("load",e);var r=!1,u=!1,d;for(d in i)if(i.hasOwnProperty(d)){var b=i[d];if(b!=null)switch(d){case"src":r=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ve(e,t,d,b,i,null)}}u&&Ve(e,t,"srcSet",i.srcSet,i,null),r&&Ve(e,t,"src",i.src,i,null);return;case"input":De("invalid",e);var w=d=b=u=null,N=null,q=null;for(r in i)if(i.hasOwnProperty(r)){var I=i[r];if(I!=null)switch(r){case"name":u=I;break;case"type":b=I;break;case"checked":N=I;break;case"defaultChecked":q=I;break;case"value":d=I;break;case"defaultValue":w=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(s(137,t));break;default:Ve(e,t,r,I,i,null)}}td(e,d,w,N,q,b,u,!1);return;case"select":De("invalid",e),r=b=d=null;for(u in i)if(i.hasOwnProperty(u)&&(w=i[u],w!=null))switch(u){case"value":d=w;break;case"defaultValue":b=w;break;case"multiple":r=w;default:Ve(e,t,u,w,i,null)}t=d,i=b,e.multiple=!!r,t!=null?Nl(e,!!r,t,!1):i!=null&&Nl(e,!!r,i,!0);return;case"textarea":De("invalid",e),d=u=r=null;for(b in i)if(i.hasOwnProperty(b)&&(w=i[b],w!=null))switch(b){case"value":r=w;break;case"defaultValue":u=w;break;case"children":d=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(s(91));break;default:Ve(e,t,b,w,i,null)}id(e,r,u,d);return;case"option":for(N in i)i.hasOwnProperty(N)&&(r=i[N],r!=null)&&(N==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":Ve(e,t,N,r,i,null));return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(r=0;r<Ja.length;r++)De(Ja[r],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("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(q in i)if(i.hasOwnProperty(q)&&(r=i[q],r!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ve(e,t,q,r,i,null)}return;default:if(yo(t)){for(I in i)i.hasOwnProperty(I)&&(r=i[I],r!==void 0&&ic(e,t,I,r,i,void 0));return}}for(w in i)i.hasOwnProperty(w)&&(r=i[w],r!=null&&Ve(e,t,w,r,i,null))}function k1(e,t,i,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,d=null,b=null,w=null,N=null,q=null,I=null;for(F in i){var J=i[F];if(i.hasOwnProperty(F)&&J!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":N=J;default:r.hasOwnProperty(F)||Ve(e,t,F,null,r,J)}}for(var H in r){var F=r[H];if(J=i[H],r.hasOwnProperty(H)&&(F!=null||J!=null))switch(H){case"type":d=F;break;case"name":u=F;break;case"checked":q=F;break;case"defaultChecked":I=F;break;case"value":b=F;break;case"defaultValue":w=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(s(137,t));break;default:F!==J&&Ve(e,t,H,F,r,J)}}po(e,b,w,N,q,I,d,u);return;case"select":F=b=w=H=null;for(d in i)if(N=i[d],i.hasOwnProperty(d)&&N!=null)switch(d){case"value":break;case"multiple":F=N;default:r.hasOwnProperty(d)||Ve(e,t,d,null,r,N)}for(u in r)if(d=r[u],N=i[u],r.hasOwnProperty(u)&&(d!=null||N!=null))switch(u){case"value":H=d;break;case"defaultValue":w=d;break;case"multiple":b=d;default:d!==N&&Ve(e,t,u,d,r,N)}t=w,i=b,r=F,H!=null?Nl(e,!!i,H,!1):!!r!=!!i&&(t!=null?Nl(e,!!i,t,!0):Nl(e,!!i,i?[]:"",!1));return;case"textarea":F=H=null;for(w in i)if(u=i[w],i.hasOwnProperty(w)&&u!=null&&!r.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ve(e,t,w,null,r,u)}for(b in r)if(u=r[b],d=i[b],r.hasOwnProperty(b)&&(u!=null||d!=null))switch(b){case"value":H=u;break;case"defaultValue":F=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==d&&Ve(e,t,b,u,r,d)}nd(e,H,F);return;case"option":for(var de in i)H=i[de],i.hasOwnProperty(de)&&H!=null&&!r.hasOwnProperty(de)&&(de==="selected"?e.selected=!1:Ve(e,t,de,null,r,H));for(N in r)H=r[N],F=i[N],r.hasOwnProperty(N)&&H!==F&&(H!=null||F!=null)&&(N==="selected"?e.selected=H&&typeof H!="function"&&typeof H!="symbol":Ve(e,t,N,H,r,F));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ve in i)H=i[ve],i.hasOwnProperty(ve)&&H!=null&&!r.hasOwnProperty(ve)&&Ve(e,t,ve,null,r,H);for(q in r)if(H=r[q],F=i[q],r.hasOwnProperty(q)&&H!==F&&(H!=null||F!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:Ve(e,t,q,H,r,F)}return;default:if(yo(t)){for(var Ge in i)H=i[Ge],i.hasOwnProperty(Ge)&&H!==void 0&&!r.hasOwnProperty(Ge)&&ic(e,t,Ge,void 0,r,H);for(I in r)H=r[I],F=i[I],!r.hasOwnProperty(I)||H===F||H===void 0&&F===void 0||ic(e,t,I,H,r,F);return}}for(var O in i)H=i[O],i.hasOwnProperty(O)&&H!=null&&!r.hasOwnProperty(O)&&Ve(e,t,O,null,r,H);for(J in r)H=r[J],F=i[J],!r.hasOwnProperty(J)||H===F||H==null&&F==null||Ve(e,t,J,H,r,F)}function rp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function w1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,i=performance.getEntriesByType("resource"),r=0;r<i.length;r++){var u=i[r],d=u.transferSize,b=u.initiatorType,w=u.duration;if(d&&w&&rp(b)){for(b=0,w=u.responseEnd,r+=1;r<i.length;r++){var N=i[r],q=N.startTime;if(q>w)break;var I=N.transferSize,J=N.initiatorType;I&&rp(J)&&(N=N.responseEnd,b+=I*(N<w?1:(w-q)/(N-q)))}if(--r,t+=8*(d+b)/(u.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 lc=null,ac=null;function zs(e){return e.nodeType===9?e:e.ownerDocument}function sp(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 op(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 rc(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 sc=null;function z1(){var e=window.event;return e&&e.type==="popstate"?e===sc?!1:(sc=e,!0):(sc=null,!1)}var up=typeof setTimeout=="function"?setTimeout:void 0,j1=typeof clearTimeout=="function"?clearTimeout:void 0,cp=typeof Promise=="function"?Promise:void 0,C1=typeof queueMicrotask=="function"?queueMicrotask:typeof cp<"u"?function(e){return cp.resolve(null).then(e).catch(N1)}:up;function N1(e){setTimeout(function(){throw e})}function Oi(e){return e==="head"}function fp(e,t){var i=t,r=0;do{var u=i.nextSibling;if(e.removeChild(i),u&&u.nodeType===8)if(i=u.data,i==="/$"||i==="/&"){if(r===0){e.removeChild(u),aa(t);return}r--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")r++;else if(i==="html")er(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,er(i);for(var d=i.firstChild;d;){var b=d.nextSibling,w=d.nodeName;d[xa]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&d.rel.toLowerCase()==="stylesheet"||i.removeChild(d),d=b}}else i==="body"&&er(e.ownerDocument.body);i=u}while(i);aa(t)}function dp(e,t){var i=e;e=0;do{var r=i.nextSibling;if(i.nodeType===1?t?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(t?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),r&&r.nodeType===8)if(i=r.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=r}while(i)}function oc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":oc(i),ho(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function T1(e,t,i,r){for(;e.nodeType===1;){var u=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[xa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=vn(e.nextSibling),e===null)break}return null}function E1(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=vn(e.nextSibling),e===null))return null;return e}function hp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=vn(e.nextSibling),e===null))return null;return e}function uc(e){return e.data==="$?"||e.data==="$~"}function cc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function A1(e,t){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||i.readyState!=="loading")t();else{var r=function(){t(),i.removeEventListener("DOMContentLoaded",r)};i.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function vn(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 fc=null;function mp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(t===0)return vn(e.nextSibling);t--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||t++}e=e.nextSibling}return null}function pp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(t===0)return e;t--}else i!=="/$"&&i!=="/&"||t++}e=e.previousSibling}return null}function gp(e,t,i){switch(t=zs(i),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function er(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ho(e)}var Sn=new Map,yp=new Set;function js(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var fi=$.d;$.d={f:D1,r:_1,D:M1,C:O1,L:R1,m:L1,X:B1,S:U1,M:q1};function D1(){var e=fi.f(),t=gs();return e||t}function _1(e){var t=zl(e);t!==null&&t.tag===5&&t.type==="form"?Oh(t):fi.r(e)}var na=typeof document>"u"?null:document;function xp(e,t,i){var r=na;if(r&&typeof t=="string"&&t){var u=hn(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof i=="string"&&(u+='[crossorigin="'+i+'"]'),yp.has(u)||(yp.add(u),e={rel:e,crossOrigin:i,href:t},r.querySelector(u)===null&&(t=r.createElement("link"),At(t,"link",e),xt(t),r.head.appendChild(t)))}}function M1(e){fi.D(e),xp("dns-prefetch",e,null)}function O1(e,t){fi.C(e,t),xp("preconnect",e,t)}function R1(e,t,i){fi.L(e,t,i);var r=na;if(r&&e&&t){var u='link[rel="preload"][as="'+hn(t)+'"]';t==="image"&&i&&i.imageSrcSet?(u+='[imagesrcset="'+hn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(u+='[imagesizes="'+hn(i.imageSizes)+'"]')):u+='[href="'+hn(e)+'"]';var d=u;switch(t){case"style":d=ia(e);break;case"script":d=la(e)}Sn.has(d)||(e=g({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),Sn.set(d,e),r.querySelector(u)!==null||t==="style"&&r.querySelector(tr(d))||t==="script"&&r.querySelector(nr(d))||(t=r.createElement("link"),At(t,"link",e),xt(t),r.head.appendChild(t)))}}function L1(e,t){fi.m(e,t);var i=na;if(i&&e){var r=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+hn(r)+'"][href="'+hn(e)+'"]',d=u;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=la(e)}if(!Sn.has(d)&&(e=g({rel:"modulepreload",href:e},t),Sn.set(d,e),i.querySelector(u)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(nr(d)))return}r=i.createElement("link"),At(r,"link",e),xt(r),i.head.appendChild(r)}}}function U1(e,t,i){fi.S(e,t,i);var r=na;if(r&&e){var u=jl(r).hoistableStyles,d=ia(e);t=t||"default";var b=u.get(d);if(!b){var w={loading:0,preload:null};if(b=r.querySelector(tr(d)))w.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},i),(i=Sn.get(d))&&dc(e,i);var N=b=r.createElement("link");xt(N),At(N,"link",e),N._p=new Promise(function(q,I){N.onload=q,N.onerror=I}),N.addEventListener("load",function(){w.loading|=1}),N.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Cs(b,t,r)}b={type:"stylesheet",instance:b,count:1,state:w},u.set(d,b)}}}function B1(e,t){fi.X(e,t);var i=na;if(i&&e){var r=jl(i).hoistableScripts,u=la(e),d=r.get(u);d||(d=i.querySelector(nr(u)),d||(e=g({src:e,async:!0},t),(t=Sn.get(u))&&hc(e,t),d=i.createElement("script"),xt(d),At(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(u,d))}}function q1(e,t){fi.M(e,t);var i=na;if(i&&e){var r=jl(i).hoistableScripts,u=la(e),d=r.get(u);d||(d=i.querySelector(nr(u)),d||(e=g({src:e,async:!0,type:"module"},t),(t=Sn.get(u))&&hc(e,t),d=i.createElement("script"),xt(d),At(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(u,d))}}function bp(e,t,i,r){var u=(u=ae.current)?js(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=ia(i.href),i=jl(u).hoistableStyles,r=i.get(t),r||(r={type:"style",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=ia(i.href);var d=jl(u).hoistableStyles,b=d.get(e);if(b||(u=u.ownerDocument||u,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,b),(d=u.querySelector(tr(e)))&&!d._p&&(b.instance=d,b.state.loading=5),Sn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Sn.set(e,i),d||H1(u,e,i,b.state))),t&&r===null)throw Error(s(528,""));return b}if(t&&r!==null)throw Error(s(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=la(i),i=jl(u).hoistableScripts,r=i.get(t),r||(r={type:"script",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function ia(e){return'href="'+hn(e)+'"'}function tr(e){return'link[rel="stylesheet"]['+e+"]"}function vp(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function H1(e,t,i,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),At(t,"link",i),xt(t),e.head.appendChild(t))}function la(e){return'[src="'+hn(e)+'"]'}function nr(e){return"script[async]"+e}function Sp(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+hn(i.href)+'"]');if(r)return t.instance=r,xt(r),r;var u=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),xt(r),At(r,"style",u),Cs(r,i.precedence,e),t.instance=r;case"stylesheet":u=ia(i.href);var d=e.querySelector(tr(u));if(d)return t.state.loading|=4,t.instance=d,xt(d),d;r=vp(i),(u=Sn.get(u))&&dc(r,u),d=(e.ownerDocument||e).createElement("link"),xt(d);var b=d;return b._p=new Promise(function(w,N){b.onload=w,b.onerror=N}),At(d,"link",r),t.state.loading|=4,Cs(d,i.precedence,e),t.instance=d;case"script":return d=la(i.src),(u=e.querySelector(nr(d)))?(t.instance=u,xt(u),u):(r=i,(u=Sn.get(d))&&(r=g({},i),hc(r,u)),e=e.ownerDocument||e,u=e.createElement("script"),xt(u),At(u,"link",r),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Cs(r,i.precedence,e));return t.instance}function Cs(e,t,i){for(var r=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=r.length?r[r.length-1]:null,d=u,b=0;b<r.length;b++){var w=r[b];if(w.dataset.precedence===t)d=w;else if(d!==u)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function dc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function hc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ns=null;function kp(e,t,i){if(Ns===null){var r=new Map,u=Ns=new Map;u.set(i,r)}else u=Ns,r=u.get(i),r||(r=new Map,u.set(i,r));if(r.has(e))return r;for(r.set(e,null),i=i.getElementsByTagName(e),u=0;u<i.length;u++){var d=i[u];if(!(d[xa]||d[Ct]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var b=d.getAttribute(t)||"";b=e+b;var w=r.get(b);w?w.push(d):r.set(b,[d])}}return r}function wp(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function Q1(e,t,i){if(i===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 zp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Y1(e,t,i,r){if(i.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var u=ia(r.href),d=t.querySelector(tr(u));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ts.bind(e),t.then(e,e)),i.state.loading|=4,i.instance=d,xt(d);return}d=t.ownerDocument||t,r=vp(r),(u=Sn.get(u))&&dc(r,u),d=d.createElement("link"),xt(d);var b=d;b._p=new Promise(function(w,N){b.onload=w,b.onerror=N}),At(d,"link",r),i.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Ts.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}var mc=0;function F1(e,t){return e.stylesheets&&e.count===0&&As(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var r=setTimeout(function(){if(e.stylesheets&&As(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&mc===0&&(mc=62500*w1());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&As(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>mc?50:800)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(u)}}:null}function Ts(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)As(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Es=null;function As(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Es=new Map,t.forEach(V1,e),Es=null,Ts.call(e))}function V1(e,t){if(!(t.state.loading&4)){var i=Es.get(e);if(i)var r=i.get(null);else{i=new Map,Es.set(e,i);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var b=u[d];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(i.set(b.dataset.precedence,b),r=b)}r&&i.set(null,r)}u=t.instance,b=u.getAttribute("data-precedence"),d=i.get(b)||r,d===r&&i.set(null,u),i.set(b,u),this.count++,r=Ts.bind(this),u.addEventListener("load",r),u.addEventListener("error",r),d?d.parentNode.insertBefore(u,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var ir={$$typeof:L,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function G1(e,t,i,r,u,d,b,w,N){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=pi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pi(0),this.hiddenUpdates=pi(null),this.identifierPrefix=r,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function jp(e,t,i,r,u,d,b,w,N,q,I,J){return e=new G1(e,t,i,b,N,q,I,J,w),t=1,d===!0&&(t|=24),d=nn(3,null,null,t),e.current=d,d.stateNode=e,t=Io(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:r,isDehydrated:i,cache:t},Po(d),e}function Cp(e){return e?(e=Rl,e):Rl}function Np(e,t,i,r,u,d){u=Cp(u),r.context===null?r.context=u:r.pendingContext=u,r=wi(t),r.payload={element:i},d=d===void 0?null:d,d!==null&&(r.callback=d),i=zi(e,r,t),i!==null&&(Pt(i,e,t),Ra(i,e,t))}function Tp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function pc(e,t){Tp(e,t),(e=e.alternate)&&Tp(e,t)}function Ep(e){if(e.tag===13||e.tag===31){var t=Pi(e,67108864);t!==null&&Pt(t,e,67108864),pc(e,67108864)}}function Ap(e){if(e.tag===13||e.tag===31){var t=on();t=Sl(t);var i=Pi(e,t);i!==null&&Pt(i,e,t),pc(e,t)}}var Ds=!0;function X1(e,t,i,r){var u=_.T;_.T=null;var d=$.p;try{$.p=2,gc(e,t,i,r)}finally{$.p=d,_.T=u}}function I1(e,t,i,r){var u=_.T;_.T=null;var d=$.p;try{$.p=8,gc(e,t,i,r)}finally{$.p=d,_.T=u}}function gc(e,t,i,r){if(Ds){var u=yc(r);if(u===null)nc(e,t,r,_s,i),_p(e,r);else if(Z1(u,e,t,i,r))r.stopPropagation();else if(_p(e,r),t&4&&-1<K1.indexOf(e)){for(;u!==null;){var d=zl(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var b=Bn(d.pendingLanes);if(b!==0){var w=d;for(w.pendingLanes|=2,w.entangledLanes|=2;b;){var N=1<<31-He(b);w.entanglements[1]|=N,b&=~N}Yn(d),(qe&6)===0&&(ms=wt()+500,Pa(0))}}break;case 31:case 13:w=Pi(d,2),w!==null&&Pt(w,d,2),gs(),pc(d,2)}if(d=yc(r),d===null&&nc(e,t,r,_s,i),d===u)break;u=d}u!==null&&r.stopPropagation()}else nc(e,t,r,null,i)}}function yc(e){return e=bo(e),xc(e)}var _s=null;function xc(e){if(_s=null,e=wl(e),e!==null){var t=c(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=f(t),e!==null)return e;e=null}else if(i===31){if(e=m(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _s=e,null}function Dp(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(ya()){case K:return 2;case se:return 8;case be:case Ce:return 32;case Ee:return 268435456;default:return 32}default:return 32}}var bc=!1,Ri=null,Li=null,Ui=null,lr=new Map,ar=new Map,Bi=[],K1="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 _p(e,t){switch(e){case"focusin":case"focusout":Ri=null;break;case"dragenter":case"dragleave":Li=null;break;case"mouseover":case"mouseout":Ui=null;break;case"pointerover":case"pointerout":lr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ar.delete(t.pointerId)}}function rr(e,t,i,r,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:i,eventSystemFlags:r,nativeEvent:d,targetContainers:[u]},t!==null&&(t=zl(t),t!==null&&Ep(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Z1(e,t,i,r,u){switch(t){case"focusin":return Ri=rr(Ri,e,t,i,r,u),!0;case"dragenter":return Li=rr(Li,e,t,i,r,u),!0;case"mouseover":return Ui=rr(Ui,e,t,i,r,u),!0;case"pointerover":var d=u.pointerId;return lr.set(d,rr(lr.get(d)||null,e,t,i,r,u)),!0;case"gotpointercapture":return d=u.pointerId,ar.set(d,rr(ar.get(d)||null,e,t,i,r,u)),!0}return!1}function Mp(e){var t=wl(e.target);if(t!==null){var i=c(t);if(i!==null){if(t=i.tag,t===13){if(t=f(i),t!==null){e.blockedOn=t,If(e.priority,function(){Ap(i)});return}}else if(t===31){if(t=m(i),t!==null){e.blockedOn=t,If(e.priority,function(){Ap(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ms(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=yc(e.nativeEvent);if(i===null){i=e.nativeEvent;var r=new i.constructor(i.type,i);xo=r,i.target.dispatchEvent(r),xo=null}else return t=zl(i),t!==null&&Ep(t),e.blockedOn=i,!1;t.shift()}return!0}function Op(e,t,i){Ms(e)&&i.delete(t)}function $1(){bc=!1,Ri!==null&&Ms(Ri)&&(Ri=null),Li!==null&&Ms(Li)&&(Li=null),Ui!==null&&Ms(Ui)&&(Ui=null),lr.forEach(Op),ar.forEach(Op)}function Os(e,t){e.blockedOn===t&&(e.blockedOn=null,bc||(bc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,$1)))}var Rs=null;function Rp(e){Rs!==e&&(Rs=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Rs===e&&(Rs=null);for(var t=0;t<e.length;t+=3){var i=e[t],r=e[t+1],u=e[t+2];if(typeof r!="function"){if(xc(r||i)===null)continue;break}var d=zl(i);d!==null&&(e.splice(t,3),t-=3,yu(d,{pending:!0,data:u,method:i.method,action:r},r,u))}}))}function aa(e){function t(N){return Os(N,e)}Ri!==null&&Os(Ri,e),Li!==null&&Os(Li,e),Ui!==null&&Os(Ui,e),lr.forEach(t),ar.forEach(t);for(var i=0;i<Bi.length;i++){var r=Bi[i];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Bi.length&&(i=Bi[0],i.blockedOn===null);)Mp(i),i.blockedOn===null&&Bi.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(r=0;r<i.length;r+=3){var u=i[r],d=i[r+1],b=u[Gt]||null;if(typeof d=="function")b||Rp(i);else if(b){var w=null;if(d&&d.hasAttribute("formAction")){if(u=d,b=d[Gt]||null)w=b.formAction;else if(xc(u)!==null)continue}else w=b.action;typeof w=="function"?i[r+1]=w:(i.splice(r,3),r-=3),Rp(i)}}}function Lp(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(b){return u=b})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),r||setTimeout(i,20)}function i(){if(!r&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(i,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function vc(e){this._internalRoot=e}Ls.prototype.render=vc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var i=t.current,r=on();Np(i,r,e,t,null,null)},Ls.prototype.unmount=vc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Np(e.current,2,null,e,null,null),gs(),t[kl]=null}};function Ls(e){this._internalRoot=e}Ls.prototype.unstable_scheduleHydration=function(e){if(e){var t=co();e={blockedOn:null,target:e,priority:t};for(var i=0;i<Bi.length&&t!==0&&t<Bi[i].priority;i++);Bi.splice(i,0,e),i===0&&Mp(e)}};var Up=l.version;if(Up!=="19.2.3")throw Error(s(527,Up,"19.2.3"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var P1={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Us=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Us.isDisabled&&Us.supportsFiber)try{zt=Us.inject(P1),lt=Us}catch{}}return or.createRoot=function(e,t){if(!o(e))throw Error(s(299));var i=!1,r="",u=Vh,d=Gh,b=Xh;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=jp(e,1,!1,null,null,i,r,null,u,d,b,Lp),e[kl]=t.current,tc(e),new vc(t)},or.hydrateRoot=function(e,t,i){if(!o(e))throw Error(s(299));var r=!1,u="",d=Vh,b=Gh,w=Xh,N=null;return i!=null&&(i.unstable_strictMode===!0&&(r=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(w=i.onRecoverableError),i.formState!==void 0&&(N=i.formState)),t=jp(e,1,!0,t,i??null,r,u,N,d,b,w,Lp),t.context=Cp(null),i=t.current,r=on(),r=Sl(r),u=wi(r),u.callback=null,zi(i,u,r),i=r,t.current.lanes=i,et(t,i),Yn(t),e[kl]=t.current,tc(e),new Ls(t)},or.version="19.2.3",or}var Ip;function rb(){if(Ip)return wc.exports;Ip=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),wc.exports=ab(),wc.exports}var sb=rb(),ma=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ob={setTimeout:(n,l)=>setTimeout(n,l),clearTimeout:n=>clearTimeout(n),setInterval:(n,l)=>setInterval(n,l),clearInterval:n=>clearInterval(n)},ub=class{#e=ob;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,l){return this.#e.setTimeout(n,l)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,l){return this.#e.setInterval(n,l)}clearInterval(n){this.#e.clearInterval(n)}},fl=new ub;function cb(n){setTimeout(n,0)}var ml=typeof window>"u"||"Deno"in globalThis;function Ht(){}function fb(n,l){return typeof n=="function"?n(l):n}function Ic(n){return typeof n=="number"&&n>=0&&n!==1/0}function og(n,l){return Math.max(n+(l||0)-Date.now(),0)}function Qi(n,l){return typeof n=="function"?n(l):n}function kn(n,l){return typeof n=="function"?n(l):n}function Kp(n,l){const{type:a="all",exact:s,fetchStatus:o,predicate:c,queryKey:f,stale:m}=n;if(f){if(s){if(l.queryHash!==mf(f,l.options))return!1}else if(!yr(l.queryKey,f))return!1}if(a!=="all"){const y=l.isActive();if(a==="active"&&!y||a==="inactive"&&y)return!1}return!(typeof m=="boolean"&&l.isStale()!==m||o&&o!==l.state.fetchStatus||c&&!c(l))}function Zp(n,l){const{exact:a,status:s,predicate:o,mutationKey:c}=n;if(c){if(!l.options.mutationKey)return!1;if(a){if(pl(l.options.mutationKey)!==pl(c))return!1}else if(!yr(l.options.mutationKey,c))return!1}return!(s&&l.state.status!==s||o&&!o(l))}function mf(n,l){return(l?.queryKeyHashFn||pl)(n)}function pl(n){return JSON.stringify(n,(l,a)=>Kc(a)?Object.keys(a).sort().reduce((s,o)=>(s[o]=a[o],s),{}):a)}function yr(n,l){return n===l?!0:typeof n!=typeof l?!1:n&&l&&typeof n=="object"&&typeof l=="object"?Object.keys(l).every(a=>yr(n[a],l[a])):!1}var db=Object.prototype.hasOwnProperty;function ug(n,l){if(n===l)return n;const a=$p(n)&&$p(l);if(!a&&!(Kc(n)&&Kc(l)))return l;const o=(a?n:Object.keys(n)).length,c=a?l:Object.keys(l),f=c.length,m=a?new Array(f):{};let y=0;for(let p=0;p<f;p++){const x=a?p:c[p],g=n[x],S=l[x];if(g===S){m[x]=g,(a?p<o:db.call(n,x))&&y++;continue}if(g===null||S===null||typeof g!="object"||typeof S!="object"){m[x]=S;continue}const k=ug(g,S);m[x]=k,k===g&&y++}return o===f&&y===o?n:m}function Ks(n,l){if(!l||Object.keys(n).length!==Object.keys(l).length)return!1;for(const a in n)if(n[a]!==l[a])return!1;return!0}function $p(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Kc(n){if(!Pp(n))return!1;const l=n.constructor;if(l===void 0)return!0;const a=l.prototype;return!(!Pp(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Pp(n){return Object.prototype.toString.call(n)==="[object Object]"}function hb(n){return new Promise(l=>{fl.setTimeout(l,n)})}function Zc(n,l,a){return typeof a.structuralSharing=="function"?a.structuralSharing(n,l):a.structuralSharing!==!1?ug(n,l):l}function mb(n,l,a=0){const s=[...n,l];return a&&s.length>a?s.slice(1):s}function pb(n,l,a=0){const s=[l,...n];return a&&s.length>a?s.slice(0,-1):s}var pf=Symbol();function cg(n,l){return!n.queryFn&&l?.initialPromise?()=>l.initialPromise:!n.queryFn||n.queryFn===pf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function gf(n,l){return typeof n=="function"?n(...l):!!n}function gb(n,l,a){let s=!1,o;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(o??=l(),s||(s=!0,o.aborted?a():o.addEventListener("abort",a,{once:!0})),o)}),n}var yb=class extends ma{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!ml&&window.addEventListener){const l=()=>n();return window.addEventListener("visibilitychange",l,!1),()=>{window.removeEventListener("visibilitychange",l)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(l=>{l(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},yf=new yb;function $c(){let n,l;const a=new Promise((o,c)=>{n=o,l=c});a.status="pending",a.catch(()=>{});function s(o){Object.assign(a,o),delete a.resolve,delete a.reject}return a.resolve=o=>{s({status:"fulfilled",value:o}),n(o)},a.reject=o=>{s({status:"rejected",reason:o}),l(o)},a}var xb=cb;function bb(){let n=[],l=0,a=m=>{m()},s=m=>{m()},o=xb;const c=m=>{l?n.push(m):o(()=>{a(m)})},f=()=>{const m=n;n=[],m.length&&o(()=>{s(()=>{m.forEach(y=>{a(y)})})})};return{batch:m=>{let y;l++;try{y=m()}finally{l--,l||f()}return y},batchCalls:m=>(...y)=>{c(()=>{m(...y)})},schedule:c,setNotifyFunction:m=>{a=m},setBatchNotifyFunction:m=>{s=m},setScheduler:m=>{o=m}}}var pt=bb(),vb=class extends ma{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!ml&&window.addEventListener){const l=()=>n(!0),a=()=>n(!1);return window.addEventListener("online",l,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",l),window.removeEventListener("offline",a)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(a=>{a(n)}))}isOnline(){return this.#e}},Zs=new vb;function Sb(n){return Math.min(1e3*2**n,3e4)}function fg(n){return(n??"online")==="online"?Zs.isOnline():!0}var Pc=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function dg(n){let l=!1,a=0,s;const o=$c(),c=()=>o.status!=="pending",f=E=>{if(!c()){const M=new Pc(E);S(M),n.onCancel?.(M)}},m=()=>{l=!0},y=()=>{l=!1},p=()=>yf.isFocused()&&(n.networkMode==="always"||Zs.isOnline())&&n.canRun(),x=()=>fg(n.networkMode)&&n.canRun(),g=E=>{c()||(s?.(),o.resolve(E))},S=E=>{c()||(s?.(),o.reject(E))},k=()=>new Promise(E=>{s=M=>{(c()||p())&&E(M)},n.onPause?.()}).then(()=>{s=void 0,c()||n.onContinue?.()}),z=()=>{if(c())return;let E;const M=a===0?n.initialPromise:void 0;try{E=M??n.fn()}catch(j){E=Promise.reject(j)}Promise.resolve(E).then(g).catch(j=>{if(c())return;const U=n.retry??(ml?0:3),L=n.retryDelay??Sb,ne=typeof L=="function"?L(a,j):L,ee=U===!0||typeof U=="number"&&a<U||typeof U=="function"&&U(a,j);if(l||!ee){S(j);return}a++,n.onFail?.(a,j),hb(ne).then(()=>p()?void 0:k()).then(()=>{l?S(j):z()})})};return{promise:o,status:()=>o.status,cancel:f,continue:()=>(s?.(),o),cancelRetry:m,continueRetry:y,canStart:x,start:()=>(x()?z():k().then(z),o)}}var hg=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ic(this.gcTime)&&(this.#e=fl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(ml?1/0:300*1e3))}clearGcTimeout(){this.#e&&(fl.clearTimeout(this.#e),this.#e=void 0)}},kb=class extends hg{#e;#t;#n;#l;#i;#r;#s;constructor(n){super(),this.#s=!1,this.#r=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#l=n.client,this.#n=this.#l.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=Wp(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(n){if(this.options={...this.#r,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const l=Wp(this.options);l.data!==void 0&&(this.setState(Jp(l.data,l.dataUpdatedAt)),this.#e=l)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,l){const a=Zc(this.state.data,n,this.options);return this.#a({data:a,type:"success",dataUpdatedAt:l?.updatedAt,manual:l?.manual}),a}setState(n,l){this.#a({type:"setState",state:n,setStateOptions:l})}cancel(n){const l=this.#i?.promise;return this.#i?.cancel(n),l?l.then(Ht).catch(Ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>kn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===pf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Qi(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!og(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(l=>l.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(l=>l.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(l=>l!==n),this.observers.length||(this.#i&&(this.#s?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(n,l){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&l?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(n&&this.setOptions(n),!this.options.queryFn){const m=this.observers.find(y=>y.options.queryFn);m&&this.setOptions(m.options)}const a=new AbortController,s=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#s=!0,a.signal)})},o=()=>{const m=cg(this.options,l),p=(()=>{const x={client:this.#l,queryKey:this.queryKey,meta:this.meta};return s(x),x})();return this.#s=!1,this.options.persister?this.options.persister(m,p,this):m(p)},f=(()=>{const m={fetchOptions:l,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:o};return s(m),m})();this.options.behavior?.onFetch(f,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==f.fetchOptions?.meta)&&this.#a({type:"fetch",meta:f.fetchOptions?.meta}),this.#i=dg({initialPromise:l?.initialPromise,fn:f.fetchFn,onCancel:m=>{m instanceof Pc&&m.revert&&this.setState({...this.#t,fetchStatus:"idle"}),a.abort()},onFail:(m,y)=>{this.#a({type:"failed",failureCount:m,error:y})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0});try{const m=await this.#i.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#n.config.onSuccess?.(m,this),this.#n.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof Pc){if(m.silent)return this.#i.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#a({type:"error",error:m}),this.#n.config.onError?.(m,this),this.#n.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#a(n){const l=a=>{switch(n.type){case"failed":return{...a,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...mg(a.data,this.options),fetchMeta:n.meta??null};case"success":const s={...a,...Jp(n.data,n.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?s:void 0,s;case"error":const o=n.error;return{...a,error:o,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...n.state}}};this.state=l(this.state),pt.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function mg(n,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:fg(l.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Jp(n,l){return{data:n,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Wp(n){const l=typeof n.initialData=="function"?n.initialData():n.initialData,a=l!==void 0,s=a?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:a?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var wb=class extends ma{constructor(n,l){super(),this.options=l,this.#e=n,this.#a=null,this.#s=$c(),this.bindMethods(),this.setOptions(l)}#e;#t=void 0;#n=void 0;#l=void 0;#i;#r;#s;#a;#p;#d;#h;#u;#c;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),e0(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Jc(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Jc(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#S(),this.#t.removeObserver(this)}setOptions(n){const l=this.options,a=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof kn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#k(),this.#t.setOptions(this.options),l._defaulted&&!Ks(this.options,l)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&t0(this.#t,a,this.options,l)&&this.#f(),this.updateResult(),s&&(this.#t!==a||kn(this.options.enabled,this.#t)!==kn(l.enabled,this.#t)||Qi(this.options.staleTime,this.#t)!==Qi(l.staleTime,this.#t))&&this.#g();const o=this.#y();s&&(this.#t!==a||kn(this.options.enabled,this.#t)!==kn(l.enabled,this.#t)||o!==this.#o)&&this.#x(o)}getOptimisticResult(n){const l=this.#e.getQueryCache().build(this.#e,n),a=this.createResult(l,n);return jb(this,a)&&(this.#l=a,this.#r=this.options,this.#i=this.#t.state),a}getCurrentResult(){return this.#l}trackResult(n,l){return new Proxy(n,{get:(a,s)=>(this.trackProp(s),l?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,s))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const l=this.#e.defaultQueryOptions(n),a=this.#e.getQueryCache().build(this.#e,l);return a.fetch().then(()=>this.createResult(a,l))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#f(n){this.#k();let l=this.#t.fetch(this.options,n);return n?.throwOnError||(l=l.catch(Ht)),l}#g(){this.#v();const n=Qi(this.options.staleTime,this.#t);if(ml||this.#l.isStale||!Ic(n))return;const a=og(this.#l.dataUpdatedAt,n)+1;this.#u=fl.setTimeout(()=>{this.#l.isStale||this.updateResult()},a)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#x(n){this.#S(),this.#o=n,!(ml||kn(this.options.enabled,this.#t)===!1||!Ic(this.#o)||this.#o===0)&&(this.#c=fl.setInterval(()=>{(this.options.refetchIntervalInBackground||yf.isFocused())&&this.#f()},this.#o))}#b(){this.#g(),this.#x(this.#y())}#v(){this.#u&&(fl.clearTimeout(this.#u),this.#u=void 0)}#S(){this.#c&&(fl.clearInterval(this.#c),this.#c=void 0)}createResult(n,l){const a=this.#t,s=this.options,o=this.#l,c=this.#i,f=this.#r,y=n!==a?n.state:this.#n,{state:p}=n;let x={...p},g=!1,S;if(l._optimisticResults){const le=this.hasListeners(),ue=!le&&e0(n,l),R=le&&t0(n,a,l,s);(ue||R)&&(x={...x,...mg(p.data,n.options)}),l._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:k,errorUpdatedAt:z,status:E}=x;S=x.data;let M=!1;if(l.placeholderData!==void 0&&S===void 0&&E==="pending"){let le;o?.isPlaceholderData&&l.placeholderData===f?.placeholderData?(le=o.data,M=!0):le=typeof l.placeholderData=="function"?l.placeholderData(this.#h?.state.data,this.#h):l.placeholderData,le!==void 0&&(E="success",S=Zc(o?.data,le,l),g=!0)}if(l.select&&S!==void 0&&!M)if(o&&S===c?.data&&l.select===this.#p)S=this.#d;else try{this.#p=l.select,S=l.select(S),S=Zc(o?.data,S,l),this.#d=S,this.#a=null}catch(le){this.#a=le}this.#a&&(k=this.#a,S=this.#d,z=Date.now(),E="error");const j=x.fetchStatus==="fetching",U=E==="pending",L=E==="error",ne=U&&j,ee=S!==void 0,P={status:E,fetchStatus:x.fetchStatus,isPending:U,isSuccess:E==="success",isError:L,isInitialLoading:ne,isLoading:ne,data:S,dataUpdatedAt:x.dataUpdatedAt,error:k,errorUpdatedAt:z,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>y.dataUpdateCount||x.errorUpdateCount>y.errorUpdateCount,isFetching:j,isRefetching:j&&!U,isLoadingError:L&&!ee,isPaused:x.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:L&&ee,isStale:xf(n,l),refetch:this.refetch,promise:this.#s,isEnabled:kn(l.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const le=V=>{P.status==="error"?V.reject(P.error):P.data!==void 0&&V.resolve(P.data)},ue=()=>{const V=this.#s=P.promise=$c();le(V)},R=this.#s;switch(R.status){case"pending":n.queryHash===a.queryHash&&le(R);break;case"fulfilled":(P.status==="error"||P.data!==R.value)&&ue();break;case"rejected":(P.status!=="error"||P.error!==R.reason)&&ue();break}}return P}updateResult(){const n=this.#l,l=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#r=this.options,this.#i.data!==void 0&&(this.#h=this.#t),Ks(l,n))return;this.#l=l;const a=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!this.#m.size)return!0;const c=new Set(o??this.#m);return this.options.throwOnError&&c.add("error"),Object.keys(this.#l).some(f=>{const m=f;return this.#l[m]!==n[m]&&c.has(m)})};this.#w({listeners:a()})}#k(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const l=this.#t;this.#t=n,this.#n=n.state,this.hasListeners()&&(l?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(n){pt.batch(()=>{n.listeners&&this.listeners.forEach(l=>{l(this.#l)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function zb(n,l){return kn(l.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&l.retryOnMount===!1)}function e0(n,l){return zb(n,l)||n.state.data!==void 0&&Jc(n,l,l.refetchOnMount)}function Jc(n,l,a){if(kn(l.enabled,n)!==!1&&Qi(l.staleTime,n)!=="static"){const s=typeof a=="function"?a(n):a;return s==="always"||s!==!1&&xf(n,l)}return!1}function t0(n,l,a,s){return(n!==l||kn(s.enabled,n)===!1)&&(!a.suspense||n.state.status!=="error")&&xf(n,a)}function xf(n,l){return kn(l.enabled,n)!==!1&&n.isStaleByTime(Qi(l.staleTime,n))}function jb(n,l){return!Ks(n.getCurrentResult(),l)}function n0(n){return{onFetch:(l,a)=>{const s=l.options,o=l.fetchOptions?.meta?.fetchMore?.direction,c=l.state.data?.pages||[],f=l.state.data?.pageParams||[];let m={pages:[],pageParams:[]},y=0;const p=async()=>{let x=!1;const g=z=>{gb(z,()=>l.signal,()=>x=!0)},S=cg(l.options,l.fetchOptions),k=async(z,E,M)=>{if(x)return Promise.reject();if(E==null&&z.pages.length)return Promise.resolve(z);const U=(()=>{const D={client:l.client,queryKey:l.queryKey,pageParam:E,direction:M?"backward":"forward",meta:l.options.meta};return g(D),D})(),L=await S(U),{maxPages:ne}=l.options,ee=M?pb:mb;return{pages:ee(z.pages,L,ne),pageParams:ee(z.pageParams,E,ne)}};if(o&&c.length){const z=o==="backward",E=z?Cb:i0,M={pages:c,pageParams:f},j=E(s,M);m=await k(M,j,z)}else{const z=n??c.length;do{const E=y===0?f[0]??s.initialPageParam:i0(s,m);if(y>0&&E==null)break;m=await k(m,E),y++}while(y<z)}return m};l.options.persister?l.fetchFn=()=>l.options.persister?.(p,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},a):l.fetchFn=p}}}function i0(n,{pages:l,pageParams:a}){const s=l.length-1;return l.length>0?n.getNextPageParam(l[s],l,a[s],a):void 0}function Cb(n,{pages:l,pageParams:a}){return l.length>0?n.getPreviousPageParam?.(l[0],l,a[0],a):void 0}var Nb=class extends hg{#e;#t;#n;#l;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#t=[],this.state=n.state||pg(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(l=>l!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(n){const l=()=>{this.#i({type:"continue"})},a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=dg({fn:()=>this.options.mutationFn?this.options.mutationFn(n,a):Promise.reject(new Error("No mutationFn found")),onFail:(c,f)=>{this.#i({type:"failed",failureCount:c,error:f})},onPause:()=>{this.#i({type:"pause"})},onContinue:l,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",o=!this.#l.canStart();try{if(s)l();else{this.#i({type:"pending",variables:n,isPaused:o}),await this.#n.config.onMutate?.(n,this,a);const f=await this.options.onMutate?.(n,a);f!==this.state.context&&this.#i({type:"pending",context:f,variables:n,isPaused:o})}const c=await this.#l.start();return await this.#n.config.onSuccess?.(c,n,this.state.context,this,a),await this.options.onSuccess?.(c,n,this.state.context,a),await this.#n.config.onSettled?.(c,null,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(c,null,n,this.state.context,a),this.#i({type:"success",data:c}),c}catch(c){try{await this.#n.config.onError?.(c,n,this.state.context,this,a)}catch(f){Promise.reject(f)}try{await this.options.onError?.(c,n,this.state.context,a)}catch(f){Promise.reject(f)}try{await this.#n.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,a)}catch(f){Promise.reject(f)}try{await this.options.onSettled?.(void 0,c,n,this.state.context,a)}catch(f){Promise.reject(f)}throw this.#i({type:"error",error:c}),c}finally{this.#n.runNext(this)}}#i(n){const l=a=>{switch(n.type){case"failed":return{...a,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...a,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:n.error,failureCount:a.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=l(this.state),pt.batch(()=>{this.#t.forEach(a=>{a.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function pg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Tb=class extends ma{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,l,a){const s=new Nb({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(l),state:a});return this.add(s),s}add(n){this.#e.add(n);const l=Bs(n);if(typeof l=="string"){const a=this.#t.get(l);a?a.push(n):this.#t.set(l,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const l=Bs(n);if(typeof l=="string"){const a=this.#t.get(l);if(a)if(a.length>1){const s=a.indexOf(n);s!==-1&&a.splice(s,1)}else a[0]===n&&this.#t.delete(l)}}this.notify({type:"removed",mutation:n})}canRun(n){const l=Bs(n);if(typeof l=="string"){const s=this.#t.get(l)?.find(o=>o.state.status==="pending");return!s||s===n}else return!0}runNext(n){const l=Bs(n);return typeof l=="string"?this.#t.get(l)?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){pt.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const l={exact:!0,...n};return this.getAll().find(a=>Zp(l,a))}findAll(n={}){return this.getAll().filter(l=>Zp(n,l))}notify(n){pt.batch(()=>{this.listeners.forEach(l=>{l(n)})})}resumePausedMutations(){const n=this.getAll().filter(l=>l.state.isPaused);return pt.batch(()=>Promise.all(n.map(l=>l.continue().catch(Ht))))}};function Bs(n){return n.options.scope?.id}var Eb=class extends ma{#e;#t=void 0;#n;#l;constructor(l,a){super(),this.#e=l,this.setOptions(a),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(l){const a=this.options;this.options=this.#e.defaultMutationOptions(l),Ks(this.options,a)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),a?.mutationKey&&this.options.mutationKey&&pl(a.mutationKey)!==pl(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(l){this.#i(),this.#r(l)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#r()}mutate(l,a){return this.#l=a,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(l)}#i(){const l=this.#n?.state??pg();this.#t={...l,isPending:l.status==="pending",isSuccess:l.status==="success",isError:l.status==="error",isIdle:l.status==="idle",mutate:this.mutate,reset:this.reset}}#r(l){pt.batch(()=>{if(this.#l&&this.hasListeners()){const a=this.#t.variables,s=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(l?.type==="success"){try{this.#l.onSuccess?.(l.data,a,s,o)}catch(c){Promise.reject(c)}try{this.#l.onSettled?.(l.data,null,a,s,o)}catch(c){Promise.reject(c)}}else if(l?.type==="error"){try{this.#l.onError?.(l.error,a,s,o)}catch(c){Promise.reject(c)}try{this.#l.onSettled?.(void 0,l.error,a,s,o)}catch(c){Promise.reject(c)}}}this.listeners.forEach(a=>{a(this.#t)})})}},Ab=class extends ma{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,l,a){const s=l.queryKey,o=l.queryHash??mf(s,l);let c=this.get(o);return c||(c=new kb({client:n,queryKey:s,queryHash:o,options:n.defaultQueryOptions(l),state:a,defaultOptions:n.getQueryDefaults(s)}),this.add(c)),c}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const l=this.#e.get(n.queryHash);l&&(n.destroy(),l===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){pt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const l={exact:!0,...n};return this.getAll().find(a=>Kp(l,a))}findAll(n={}){const l=this.getAll();return Object.keys(n).length>0?l.filter(a=>Kp(n,a)):l}notify(n){pt.batch(()=>{this.listeners.forEach(l=>{l(n)})})}onFocus(){pt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){pt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Db=class{#e;#t;#n;#l;#i;#r;#s;#a;constructor(n={}){this.#e=n.queryCache||new Ab,this.#t=n.mutationCache||new Tb,this.#n=n.defaultOptions||{},this.#l=new Map,this.#i=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#s=yf.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Zs.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const l=this.defaultQueryOptions({queryKey:n});return this.#e.get(l.queryHash)?.state.data}ensureQueryData(n){const l=this.defaultQueryOptions(n),a=this.#e.build(this,l),s=a.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&a.isStaleByTime(Qi(l.staleTime,a))&&this.prefetchQuery(l),Promise.resolve(s))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:l,state:a})=>{const s=a.data;return[l,s]})}setQueryData(n,l,a){const s=this.defaultQueryOptions({queryKey:n}),c=this.#e.get(s.queryHash)?.state.data,f=fb(l,c);if(f!==void 0)return this.#e.build(this,s).setData(f,{...a,manual:!0})}setQueriesData(n,l,a){return pt.batch(()=>this.#e.findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,l,a)]))}getQueryState(n){const l=this.defaultQueryOptions({queryKey:n});return this.#e.get(l.queryHash)?.state}removeQueries(n){const l=this.#e;pt.batch(()=>{l.findAll(n).forEach(a=>{l.remove(a)})})}resetQueries(n,l){const a=this.#e;return pt.batch(()=>(a.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},l)))}cancelQueries(n,l={}){const a={revert:!0,...l},s=pt.batch(()=>this.#e.findAll(n).map(o=>o.cancel(a)));return Promise.all(s).then(Ht).catch(Ht)}invalidateQueries(n,l={}){return pt.batch(()=>(this.#e.findAll(n).forEach(a=>{a.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},l)))}refetchQueries(n,l={}){const a={...l,cancelRefetch:l.cancelRefetch??!0},s=pt.batch(()=>this.#e.findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,a);return a.throwOnError||(c=c.catch(Ht)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(Ht)}fetchQuery(n){const l=this.defaultQueryOptions(n);l.retry===void 0&&(l.retry=!1);const a=this.#e.build(this,l);return a.isStaleByTime(Qi(l.staleTime,a))?a.fetch(l):Promise.resolve(a.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Ht).catch(Ht)}fetchInfiniteQuery(n){return n.behavior=n0(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Ht).catch(Ht)}ensureInfiniteQueryData(n){return n.behavior=n0(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Zs.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,l){this.#l.set(pl(n),{queryKey:n,defaultOptions:l})}getQueryDefaults(n){const l=[...this.#l.values()],a={};return l.forEach(s=>{yr(n,s.queryKey)&&Object.assign(a,s.defaultOptions)}),a}setMutationDefaults(n,l){this.#i.set(pl(n),{mutationKey:n,defaultOptions:l})}getMutationDefaults(n){const l=[...this.#i.values()],a={};return l.forEach(s=>{yr(n,s.mutationKey)&&Object.assign(a,s.defaultOptions)}),a}defaultQueryOptions(n){if(n._defaulted)return n;const l={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return l.queryHash||(l.queryHash=mf(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===pf&&(l.enabled=!1),l}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},gg=Q.createContext(void 0),tt=n=>{const l=Q.useContext(gg);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},_b=({client:n,children:l})=>(Q.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),h.jsx(gg.Provider,{value:n,children:l})),yg=Q.createContext(!1),Mb=()=>Q.useContext(yg);yg.Provider;function Ob(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var Rb=Q.createContext(Ob()),Lb=()=>Q.useContext(Rb),Ub=(n,l,a)=>{const s=a?.state.error&&typeof n.throwOnError=="function"?gf(n.throwOnError,[a.state.error,a]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||s)&&(l.isReset()||(n.retryOnMount=!1))},Bb=n=>{Q.useEffect(()=>{n.clearReset()},[n])},qb=({result:n,errorResetBoundary:l,throwOnError:a,query:s,suspense:o})=>n.isError&&!l.isReset()&&!n.isFetching&&s&&(o&&n.data===void 0||gf(a,[n.error,s])),Hb=n=>{if(n.suspense){const a=o=>o==="static"?o:Math.max(o??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...o)=>a(s(...o)):a(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},Qb=(n,l)=>n.isLoading&&n.isFetching&&!l,Yb=(n,l)=>n?.suspense&&l.isPending,l0=(n,l,a)=>l.fetchOptimistic(n).catch(()=>{a.clearReset()});function Fb(n,l,a){const s=Mb(),o=Lb(),c=tt(),f=c.defaultQueryOptions(n);c.getDefaultOptions().queries?._experimental_beforeQuery?.(f);const m=c.getQueryCache().get(f.queryHash);f._optimisticResults=s?"isRestoring":"optimistic",Hb(f),Ub(f,o,m),Bb(o);const y=!c.getQueryCache().get(f.queryHash),[p]=Q.useState(()=>new l(c,f)),x=p.getOptimisticResult(f),g=!s&&n.subscribed!==!1;if(Q.useSyncExternalStore(Q.useCallback(S=>{const k=g?p.subscribe(pt.batchCalls(S)):Ht;return p.updateResult(),k},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),Q.useEffect(()=>{p.setOptions(f)},[f,p]),Yb(f,x))throw l0(f,p,o);if(qb({result:x,errorResetBoundary:o,throwOnError:f.throwOnError,query:m,suspense:f.suspense}))throw x.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(f,x),f.experimental_prefetchInRender&&!ml&&Qb(x,s)&&(y?l0(f,p,o):m?.promise)?.catch(Ht).finally(()=>{p.updateResult()}),f.notifyOnChangeProps?x:p.trackResult(x)}function Mn(n,l){return Fb(n,wb)}function vt(n,l){const a=tt(),[s]=Q.useState(()=>new Eb(a,n));Q.useEffect(()=>{s.setOptions(n)},[s,n]);const o=Q.useSyncExternalStore(Q.useCallback(f=>s.subscribe(pt.batchCalls(f)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),c=Q.useCallback((f,m)=>{s.mutate(f,m).catch(Ht)},[s]);if(o.error&&gf(s.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}const Vb=new Db({defaultOptions:{queries:{retry:!1,refetchOnMount:!1}}});var bf=sg();const Gb=to(bf);function Xb(n){if(typeof document>"u")return;let l=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",l.appendChild(a),a.styleSheet?a.styleSheet.cssText=n:a.appendChild(document.createTextNode(n))}const Ib=n=>{switch(n){case"success":return $b;case"info":return Jb;case"warning":return Pb;case"error":return Wb;default:return null}},Kb=Array(12).fill(0),Zb=({visible:n,className:l})=>oe.createElement("div",{className:["sonner-loading-wrapper",l].filter(Boolean).join(" "),"data-visible":n},oe.createElement("div",{className:"sonner-spinner"},Kb.map((a,s)=>oe.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),$b=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},oe.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Pb=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},oe.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Jb=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},oe.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Wb=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},oe.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),ev=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},oe.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),oe.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),tv=()=>{const[n,l]=oe.useState(document.hidden);return oe.useEffect(()=>{const a=()=>{l(document.hidden)};return document.addEventListener("visibilitychange",a),()=>window.removeEventListener("visibilitychange",a)},[]),n};let Wc=1;class nv{constructor(){this.subscribe=l=>(this.subscribers.push(l),()=>{const a=this.subscribers.indexOf(l);this.subscribers.splice(a,1)}),this.publish=l=>{this.subscribers.forEach(a=>a(l))},this.addToast=l=>{this.publish(l),this.toasts=[...this.toasts,l]},this.create=l=>{var a;const{message:s,...o}=l,c=typeof l?.id=="number"||((a=l.id)==null?void 0:a.length)>0?l.id:Wc++,f=this.toasts.find(y=>y.id===c),m=l.dismissible===void 0?!0:l.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),f?this.toasts=this.toasts.map(y=>y.id===c?(this.publish({...y,...l,id:c,title:s}),{...y,...l,id:c,dismissible:m,title:s}):y):this.addToast({title:s,...o,dismissible:m,id:c}),c},this.dismiss=l=>(l?(this.dismissedToasts.add(l),requestAnimationFrame(()=>this.subscribers.forEach(a=>a({id:l,dismiss:!0})))):this.toasts.forEach(a=>{this.subscribers.forEach(s=>s({id:a.id,dismiss:!0}))}),l),this.message=(l,a)=>this.create({...a,message:l}),this.error=(l,a)=>this.create({...a,message:l,type:"error"}),this.success=(l,a)=>this.create({...a,type:"success",message:l}),this.info=(l,a)=>this.create({...a,type:"info",message:l}),this.warning=(l,a)=>this.create({...a,type:"warning",message:l}),this.loading=(l,a)=>this.create({...a,type:"loading",message:l}),this.promise=(l,a)=>{if(!a)return;let s;a.loading!==void 0&&(s=this.create({...a,promise:l,type:"loading",message:a.loading,description:typeof a.description!="function"?a.description:void 0}));const o=Promise.resolve(l instanceof Function?l():l);let c=s!==void 0,f;const m=o.then(async p=>{if(f=["resolve",p],oe.isValidElement(p))c=!1,this.create({id:s,type:"default",message:p});else if(lv(p)&&!p.ok){c=!1;const g=typeof a.error=="function"?await a.error(`HTTP error! status: ${p.status}`):a.error,S=typeof a.description=="function"?await a.description(`HTTP error! status: ${p.status}`):a.description,z=typeof g=="object"&&!oe.isValidElement(g)?g:{message:g};this.create({id:s,type:"error",description:S,...z})}else if(p instanceof Error){c=!1;const g=typeof a.error=="function"?await a.error(p):a.error,S=typeof a.description=="function"?await a.description(p):a.description,z=typeof g=="object"&&!oe.isValidElement(g)?g:{message:g};this.create({id:s,type:"error",description:S,...z})}else if(a.success!==void 0){c=!1;const g=typeof a.success=="function"?await a.success(p):a.success,S=typeof a.description=="function"?await a.description(p):a.description,z=typeof g=="object"&&!oe.isValidElement(g)?g:{message:g};this.create({id:s,type:"success",description:S,...z})}}).catch(async p=>{if(f=["reject",p],a.error!==void 0){c=!1;const x=typeof a.error=="function"?await a.error(p):a.error,g=typeof a.description=="function"?await a.description(p):a.description,k=typeof x=="object"&&!oe.isValidElement(x)?x:{message:x};this.create({id:s,type:"error",description:g,...k})}}).finally(()=>{c&&(this.dismiss(s),s=void 0),a.finally==null||a.finally.call(a)}),y=()=>new Promise((p,x)=>m.then(()=>f[0]==="reject"?x(f[1]):p(f[1])).catch(x));return typeof s!="string"&&typeof s!="number"?{unwrap:y}:Object.assign(s,{unwrap:y})},this.custom=(l,a)=>{const s=a?.id||Wc++;return this.create({jsx:l(s),id:s,...a}),s},this.getActiveToasts=()=>this.toasts.filter(l=>!this.dismissedToasts.has(l.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Wt=new nv,iv=(n,l)=>{const a=l?.id||Wc++;return Wt.addToast({title:n,...l,id:a}),a},lv=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",av=iv,rv=()=>Wt.toasts,sv=()=>Wt.getActiveToasts();Object.assign(av,{success:Wt.success,info:Wt.info,warning:Wt.warning,error:Wt.error,custom:Wt.custom,message:Wt.message,promise:Wt.promise,dismiss:Wt.dismiss,loading:Wt.loading},{getHistory:rv,getToasts:sv});Xb("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function qs(n){return n.label!==void 0}const ov=3,uv="24px",cv="16px",a0=4e3,fv=356,dv=14,hv=45,mv=200;function Fn(...n){return n.filter(Boolean).join(" ")}function pv(n){const[l,a]=n.split("-"),s=[];return l&&s.push(l),a&&s.push(a),s}const gv=n=>{var l,a,s,o,c,f,m,y,p;const{invert:x,toast:g,unstyled:S,interacting:k,setHeights:z,visibleToasts:E,heights:M,index:j,toasts:U,expanded:L,removeToast:ne,defaultRichColors:ee,closeButton:D,style:P,cancelButtonStyle:le,actionButtonStyle:ue,className:R="",descriptionClassName:V="",duration:X,position:fe,gap:re,expandByDefault:W,classNames:_,icons:$,closeButtonAriaLabel:ce="Close toast"}=n,[Se,C]=oe.useState(null),[T,G]=oe.useState(null),[v,Y]=oe.useState(!1),[te,ae]=oe.useState(!1),[me,pe]=oe.useState(!1),[we,dt]=oe.useState(!1),[St,Xe]=oe.useState(!1),[gt,ht]=oe.useState(0),[fn,Nn]=oe.useState(0),On=oe.useRef(g.duration||X||a0),Fi=oe.useRef(null),Dt=oe.useRef(null),mi=j===0,Vi=j+1<=E,kt=g.type,Rn=g.dismissible!==!1,wt=g.className||"",ya=g.descriptionClassName||"",K=oe.useMemo(()=>M.findIndex(ke=>ke.toastId===g.id)||0,[M,g.id]),se=oe.useMemo(()=>{var ke;return(ke=g.closeButton)!=null?ke:D},[g.closeButton,D]),be=oe.useMemo(()=>g.duration||X||a0,[g.duration,X]),Ce=oe.useRef(0),Ee=oe.useRef(0),_t=oe.useRef(0),Mt=oe.useRef(null),[zt,lt]=fe.split("-"),jt=oe.useMemo(()=>M.reduce((ke,Je,yt)=>yt>=K?ke:ke+Je.height,0),[M,K]),He=tv(),Ln=g.invert||x,Bt=kt==="loading";Ee.current=oe.useMemo(()=>K*re+jt,[K,jt]),oe.useEffect(()=>{On.current=be},[be]),oe.useEffect(()=>{Y(!0)},[]),oe.useEffect(()=>{const ke=Dt.current;if(ke){const Je=ke.getBoundingClientRect().height;return Nn(Je),z(yt=>[{toastId:g.id,height:Je,position:g.position},...yt]),()=>z(yt=>yt.filter(Ot=>Ot.toastId!==g.id))}},[z,g.id]),oe.useLayoutEffect(()=>{if(!v)return;const ke=Dt.current,Je=ke.style.height;ke.style.height="auto";const yt=ke.getBoundingClientRect().height;ke.style.height=Je,Nn(yt),z(Ot=>Ot.find(et=>et.toastId===g.id)?Ot.map(et=>et.toastId===g.id?{...et,height:yt}:et):[{toastId:g.id,height:yt,position:g.position},...Ot])},[v,g.title,g.description,z,g.id,g.jsx,g.action,g.cancel]);const Un=oe.useCallback(()=>{ae(!0),ht(Ee.current),z(ke=>ke.filter(Je=>Je.toastId!==g.id)),setTimeout(()=>{ne(g)},mv)},[g,ne,z,Ee]);oe.useEffect(()=>{if(g.promise&&kt==="loading"||g.duration===1/0||g.type==="loading")return;let ke;return L||k||He?(()=>{if(_t.current<Ce.current){const Ot=new Date().getTime()-Ce.current;On.current=On.current-Ot}_t.current=new Date().getTime()})():On.current!==1/0&&(Ce.current=new Date().getTime(),ke=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),Un()},On.current)),()=>clearTimeout(ke)},[L,k,g,kt,He,Un]),oe.useEffect(()=>{g.delete&&(Un(),g.onDismiss==null||g.onDismiss.call(g,g))},[Un,g.delete]);function bl(){var ke;if($?.loading){var Je;return oe.createElement("div",{className:Fn(_?.loader,g==null||(Je=g.classNames)==null?void 0:Je.loader,"sonner-loader"),"data-visible":kt==="loading"},$.loading)}return oe.createElement(Zb,{className:Fn(_?.loader,g==null||(ke=g.classNames)==null?void 0:ke.loader),visible:kt==="loading"})}const vl=g.icon||$?.[kt]||Ib(kt);var Gi,Bn;return oe.createElement("li",{tabIndex:0,ref:Dt,className:Fn(R,wt,_?.toast,g==null||(l=g.classNames)==null?void 0:l.toast,_?.default,_?.[kt],g==null||(a=g.classNames)==null?void 0:a[kt]),"data-sonner-toast":"","data-rich-colors":(Gi=g.richColors)!=null?Gi:ee,"data-styled":!(g.jsx||g.unstyled||S),"data-mounted":v,"data-promise":!!g.promise,"data-swiped":St,"data-removed":te,"data-visible":Vi,"data-y-position":zt,"data-x-position":lt,"data-index":j,"data-front":mi,"data-swiping":me,"data-dismissible":Rn,"data-type":kt,"data-invert":Ln,"data-swipe-out":we,"data-swipe-direction":T,"data-expanded":!!(L||W&&v),"data-testid":g.testId,style:{"--index":j,"--toasts-before":j,"--z-index":U.length-j,"--offset":`${te?gt:Ee.current}px`,"--initial-height":W?"auto":`${fn}px`,...P,...g.style},onDragEnd:()=>{pe(!1),C(null),Mt.current=null},onPointerDown:ke=>{ke.button!==2&&(Bt||!Rn||(Fi.current=new Date,ht(Ee.current),ke.target.setPointerCapture(ke.pointerId),ke.target.tagName!=="BUTTON"&&(pe(!0),Mt.current={x:ke.clientX,y:ke.clientY})))},onPointerUp:()=>{var ke,Je,yt;if(we||!Rn)return;Mt.current=null;const Ot=Number(((ke=Dt.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),pi=Number(((Je=Dt.current)==null?void 0:Je.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),et=new Date().getTime()-((yt=Fi.current)==null?void 0:yt.getTime()),Yt=Se==="x"?Ot:pi,Xi=Math.abs(Yt)/et;if(Math.abs(Yt)>=hv||Xi>.11){ht(Ee.current),g.onDismiss==null||g.onDismiss.call(g,g),G(Se==="x"?Ot>0?"right":"left":pi>0?"down":"up"),Un(),dt(!0);return}else{var Ft,Vt;(Ft=Dt.current)==null||Ft.style.setProperty("--swipe-amount-x","0px"),(Vt=Dt.current)==null||Vt.style.setProperty("--swipe-amount-y","0px")}Xe(!1),pe(!1),C(null)},onPointerMove:ke=>{var Je,yt,Ot;if(!Mt.current||!Rn||((Je=window.getSelection())==null?void 0:Je.toString().length)>0)return;const et=ke.clientY-Mt.current.y,Yt=ke.clientX-Mt.current.x;var Xi;const Ft=(Xi=n.swipeDirections)!=null?Xi:pv(fe);!Se&&(Math.abs(Yt)>1||Math.abs(et)>1)&&C(Math.abs(Yt)>Math.abs(et)?"x":"y");let Vt={x:0,y:0};const Sl=Tn=>1/(1.5+Math.abs(Tn)/20);if(Se==="y"){if(Ft.includes("top")||Ft.includes("bottom"))if(Ft.includes("top")&&et<0||Ft.includes("bottom")&&et>0)Vt.y=et;else{const Tn=et*Sl(et);Vt.y=Math.abs(Tn)<Math.abs(et)?Tn:et}}else if(Se==="x"&&(Ft.includes("left")||Ft.includes("right")))if(Ft.includes("left")&&Yt<0||Ft.includes("right")&&Yt>0)Vt.x=Yt;else{const Tn=Yt*Sl(Yt);Vt.x=Math.abs(Tn)<Math.abs(Yt)?Tn:Yt}(Math.abs(Vt.x)>0||Math.abs(Vt.y)>0)&&Xe(!0),(yt=Dt.current)==null||yt.style.setProperty("--swipe-amount-x",`${Vt.x}px`),(Ot=Dt.current)==null||Ot.style.setProperty("--swipe-amount-y",`${Vt.y}px`)}},se&&!g.jsx&&kt!=="loading"?oe.createElement("button",{"aria-label":ce,"data-disabled":Bt,"data-close-button":!0,onClick:Bt||!Rn?()=>{}:()=>{Un(),g.onDismiss==null||g.onDismiss.call(g,g)},className:Fn(_?.closeButton,g==null||(s=g.classNames)==null?void 0:s.closeButton)},(Bn=$?.close)!=null?Bn:ev):null,(kt||g.icon||g.promise)&&g.icon!==null&&($?.[kt]!==null||g.icon)?oe.createElement("div",{"data-icon":"",className:Fn(_?.icon,g==null||(o=g.classNames)==null?void 0:o.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||bl():null,g.type!=="loading"?vl:null):null,oe.createElement("div",{"data-content":"",className:Fn(_?.content,g==null||(c=g.classNames)==null?void 0:c.content)},oe.createElement("div",{"data-title":"",className:Fn(_?.title,g==null||(f=g.classNames)==null?void 0:f.title)},g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title),g.description?oe.createElement("div",{"data-description":"",className:Fn(V,ya,_?.description,g==null||(m=g.classNames)==null?void 0:m.description)},typeof g.description=="function"?g.description():g.description):null),oe.isValidElement(g.cancel)?g.cancel:g.cancel&&qs(g.cancel)?oe.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||le,onClick:ke=>{qs(g.cancel)&&Rn&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,ke),Un())},className:Fn(_?.cancelButton,g==null||(y=g.classNames)==null?void 0:y.cancelButton)},g.cancel.label):null,oe.isValidElement(g.action)?g.action:g.action&&qs(g.action)?oe.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||ue,onClick:ke=>{qs(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,ke),!ke.defaultPrevented&&Un())},className:Fn(_?.actionButton,g==null||(p=g.classNames)==null?void 0:p.actionButton)},g.action.label):null)};function r0(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function yv(n,l){const a={};return[n,l].forEach((s,o)=>{const c=o===1,f=c?"--mobile-offset":"--offset",m=c?cv:uv;function y(p){["top","right","bottom","left"].forEach(x=>{a[`${f}-${x}`]=typeof p=="number"?`${p}px`:p})}typeof s=="number"||typeof s=="string"?y(s):typeof s=="object"?["top","right","bottom","left"].forEach(p=>{s[p]===void 0?a[`${f}-${p}`]=m:a[`${f}-${p}`]=typeof s[p]=="number"?`${s[p]}px`:s[p]}):y(m)}),a}const xv=oe.forwardRef(function(l,a){const{id:s,invert:o,position:c="bottom-right",hotkey:f=["altKey","KeyT"],expand:m,closeButton:y,className:p,offset:x,mobileOffset:g,theme:S="light",richColors:k,duration:z,style:E,visibleToasts:M=ov,toastOptions:j,dir:U=r0(),gap:L=dv,icons:ne,containerAriaLabel:ee="Notifications"}=l,[D,P]=oe.useState([]),le=oe.useMemo(()=>s?D.filter(v=>v.toasterId===s):D.filter(v=>!v.toasterId),[D,s]),ue=oe.useMemo(()=>Array.from(new Set([c].concat(le.filter(v=>v.position).map(v=>v.position)))),[le,c]),[R,V]=oe.useState([]),[X,fe]=oe.useState(!1),[re,W]=oe.useState(!1),[_,$]=oe.useState(S!=="system"?S:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ce=oe.useRef(null),Se=f.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=oe.useRef(null),T=oe.useRef(!1),G=oe.useCallback(v=>{P(Y=>{var te;return(te=Y.find(ae=>ae.id===v.id))!=null&&te.delete||Wt.dismiss(v.id),Y.filter(({id:ae})=>ae!==v.id)})},[]);return oe.useEffect(()=>Wt.subscribe(v=>{if(v.dismiss){requestAnimationFrame(()=>{P(Y=>Y.map(te=>te.id===v.id?{...te,delete:!0}:te))});return}setTimeout(()=>{Gb.flushSync(()=>{P(Y=>{const te=Y.findIndex(ae=>ae.id===v.id);return te!==-1?[...Y.slice(0,te),{...Y[te],...v},...Y.slice(te+1)]:[v,...Y]})})})}),[D]),oe.useEffect(()=>{if(S!=="system"){$(S);return}if(S==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;const v=window.matchMedia("(prefers-color-scheme: dark)");try{v.addEventListener("change",({matches:Y})=>{$(Y?"dark":"light")})}catch{v.addListener(({matches:te})=>{try{$(te?"dark":"light")}catch(ae){console.error(ae)}})}},[S]),oe.useEffect(()=>{D.length<=1&&fe(!1)},[D]),oe.useEffect(()=>{const v=Y=>{var te;if(f.every(pe=>Y[pe]||Y.code===pe)){var me;fe(!0),(me=ce.current)==null||me.focus()}Y.code==="Escape"&&(document.activeElement===ce.current||(te=ce.current)!=null&&te.contains(document.activeElement))&&fe(!1)};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[f]),oe.useEffect(()=>{if(ce.current)return()=>{C.current&&(C.current.focus({preventScroll:!0}),C.current=null,T.current=!1)}},[ce.current]),oe.createElement("section",{ref:a,"aria-label":`${ee} ${Se}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ue.map((v,Y)=>{var te;const[ae,me]=v.split("-");return le.length?oe.createElement("ol",{key:v,dir:U==="auto"?r0():U,tabIndex:-1,ref:ce,className:p,"data-sonner-toaster":!0,"data-sonner-theme":_,"data-y-position":ae,"data-x-position":me,style:{"--front-toast-height":`${((te=R[0])==null?void 0:te.height)||0}px`,"--width":`${fv}px`,"--gap":`${L}px`,...E,...yv(x,g)},onBlur:pe=>{T.current&&!pe.currentTarget.contains(pe.relatedTarget)&&(T.current=!1,C.current&&(C.current.focus({preventScroll:!0}),C.current=null))},onFocus:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||T.current||(T.current=!0,C.current=pe.relatedTarget)},onMouseEnter:()=>fe(!0),onMouseMove:()=>fe(!0),onMouseLeave:()=>{re||fe(!1)},onDragEnd:()=>fe(!1),onPointerDown:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||W(!0)},onPointerUp:()=>W(!1)},le.filter(pe=>!pe.position&&Y===0||pe.position===v).map((pe,we)=>{var dt,St;return oe.createElement(gv,{key:pe.id,icons:ne,index:we,toast:pe,defaultRichColors:k,duration:(dt=j?.duration)!=null?dt:z,className:j?.className,descriptionClassName:j?.descriptionClassName,invert:o,visibleToasts:M,closeButton:(St=j?.closeButton)!=null?St:y,interacting:re,position:v,style:j?.style,unstyled:j?.unstyled,classNames:j?.classNames,cancelButtonStyle:j?.cancelButtonStyle,actionButtonStyle:j?.actionButtonStyle,closeButtonAriaLabel:j?.closeButtonAriaLabel,removeToast:G,toasts:le.filter(Xe=>Xe.position==pe.position),heights:R.filter(Xe=>Xe.position==pe.position),setHeights:V,expandByDefault:m,gap:L,expanded:X,swipeDirections:l.swipeDirections})})):null}))}),vr="/api";class yl extends Error{status;constructor(l,a){super(a),this.status=l,this.name="FetchError"}static isFetchError(l){return l instanceof yl}}async function Xn(n,l){const s=await fetch(`${vr}${n}`);if(!s.ok){const o=await s.text();throw new yl(s.status,o)}return s.json()}async function jn(n,l){const a=await fetch(`${vr}${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!a.ok){const s=await a.text();throw new yl(a.status,s)}return a.json()}async function xg(n,l){const a=await fetch(`${vr}${n}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!a.ok){const s=await a.text();throw new yl(a.status,s)}return a.json()}async function bg(n,l){const a=await fetch(`${vr}${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!a.ok){const s=await a.text();throw new yl(a.status,s)}return a.json()}async function Gn(n){const l=await fetch(`${vr}${n}`,{method:"DELETE"});if(!l.ok){const a=await l.text();throw new yl(l.status,a)}if(l.status!==204)return l.json()}function bv(){return{queryKey:["projects"],queryFn:()=>Xn("/projects")}}function no(n){return{queryKey:["tasks",n],queryFn:()=>Xn(`/tasks/project/${n}`),enabled:!!n}}function vf(){return 2e3}function vv(n){return{queryKey:["task",n],queryFn:()=>Xn(`/tasks/${n}`),enabled:!!n,refetchInterval:2e3}}function Sv(n){const l=tt();return vt({mutationFn:a=>jn(`/tasks/project/${n}`,a),onSuccess:()=>{l.invalidateQueries({queryKey:["tasks",n]})}})}function kv(){const n=tt();return vt({mutationFn:({taskId:l,...a})=>xg(`/tasks/${l}`,a),onSuccess:l=>{n.invalidateQueries({queryKey:["tasks",l.project_id]}),n.invalidateQueries({queryKey:["task",l.id]})}})}function wv(){const n=tt();return vt({mutationKey:["moveTask"],mutationFn:({taskId:l,status:a,position:s})=>jn(`/tasks/${l}/move`,{status:a,position:s}),onSuccess:l=>{n.invalidateQueries({queryKey:["tasks",l.project_id]})}})}function zv(){const n=tt();return vt({mutationFn:l=>Gn(`/tasks/${l}`),onSuccess:()=>{n.invalidateQueries({queryKey:["tasks"]})}})}function jv(n){const l=tt();return vt({mutationFn:a=>Gn(`/tasks/project/${n}/status/${a}`),onSuccess:()=>{l.invalidateQueries({queryKey:["tasks",n]})}})}function vg(n){const l=tt();return vt({mutationFn:a=>jn(`/comments/task/${n}`,{author:"user",content:a}),onSuccess:()=>{l.invalidateQueries({queryKey:["task",n]})}})}function Cv(n){const l=tt();return vt({mutationFn:a=>Gn(`/comments/${a}`),onSuccess:()=>{l.invalidateQueries({queryKey:["task",n]})}})}function Nv(){const n=tt();return vt({mutationFn:({taskId:l,status:a="backlog"})=>jn(`/tasks/${l}/force-reset`,{status:a}),onSuccess:l=>{n.invalidateQueries({queryKey:["tasks",l.project_id]}),n.invalidateQueries({queryKey:["task",l.id]})}})}function Tv(n){const{onHelp:l,onAddTask:a,onAddTemplate:s,onCloseModal:o,onTroubleshooting:c,onStats:f}=n,m=Q.useCallback(y=>{const p=y.target;if(p.tagName==="INPUT"||p.tagName==="TEXTAREA"||p.isContentEditable){y.key==="Escape"&&o&&o();return}if(!(y.metaKey||y.ctrlKey||y.altKey))switch(y.key.toLowerCase()){case"?":case"h":y.preventDefault(),l?.();break;case"n":case"a":y.preventDefault(),a?.();break;case"t":y.preventDefault(),s?.();break;case"escape":y.preventDefault(),o?.();break;case"d":y.preventDefault(),c?.();break;case"s":y.preventDefault(),f?.();break}},[l,a,s,o,c,f]);Q.useEffect(()=>(window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)),[m])}const s0='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" rx="20" fill="%2318181b"/><rect x="15" y="25" width="70" height="10" rx="3" fill="%2327272a"/><rect x="15" y="45" width="70" height="10" rx="3" fill="%2327272a"/><rect x="15" y="65" width="70" height="10" rx="3" fill="%2327272a"/></svg>',Ev='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" rx="20" fill="%2318181b"/><rect x="15" y="25" width="70" height="10" rx="3" fill="%2327272a"/><rect x="15" y="45" width="70" height="10" rx="3" fill="%2327272a"/><rect x="15" y="65" width="70" height="10" rx="3" fill="%2327272a"/><circle cx="85" cy="15" r="12" fill="%23ef4444"/></svg>';function Av(n){const l=n.some(o=>o.blocked),a=Q.useRef(null),s=Q.useRef(document.title);return Q.useEffect(()=>{let o=document.querySelector('link[rel="icon"]');return o||(o=document.createElement("link"),o.rel="icon",o.type="image/svg+xml",document.head.appendChild(o)),a.current=o,s.current=document.title.replace(/^\(\!\) /,""),()=>{a.current&&(a.current.href=s0),document.title=s.current}},[]),Q.useEffect(()=>{a.current&&(a.current.href=l?Ev:s0);const o=s.current;l?document.title=`(!) ${o}`:document.title=o},[l]),l}const Dv=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_v=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,a,s)=>s?s.toUpperCase():a.toLowerCase()),o0=n=>{const l=_v(n);return l.charAt(0).toUpperCase()+l.slice(1)},Sg=(...n)=>n.filter((l,a,s)=>!!l&&l.trim()!==""&&s.indexOf(l)===a).join(" ").trim(),Mv=n=>{for(const l in n)if(l.startsWith("aria-")||l==="role"||l==="title")return!0};var Ov={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Rv=Q.forwardRef(({color:n="currentColor",size:l=24,strokeWidth:a=2,absoluteStrokeWidth:s,className:o="",children:c,iconNode:f,...m},y)=>Q.createElement("svg",{ref:y,...Ov,width:l,height:l,stroke:n,strokeWidth:s?Number(a)*24/Number(l):a,className:Sg("lucide",o),...!c&&!Mv(m)&&{"aria-hidden":"true"},...m},[...f.map(([p,x])=>Q.createElement(p,x)),...Array.isArray(c)?c:[c]]));const ge=(n,l)=>{const a=Q.forwardRef(({className:s,...o},c)=>Q.createElement(Rv,{ref:c,iconNode:l,className:Sg(`lucide-${Dv(o0(n))}`,`lucide-${n}`,s),...o}));return a.displayName=o0(n),a};const Lv=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],kg=ge("activity",Lv);const Uv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Bv=ge("arrow-right",Uv);const qv=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Hv=ge("bot",qv);const Qv=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Yv=ge("calendar",Qv);const Fv=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Vv=ge("chart-column",Fv);const Gv=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],Sf=ge("check-check",Gv);const Xv=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Iv=ge("check",Xv);const Kv=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Sr=ge("chevron-down",Kv);const Zv=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],wg=ge("chevron-left",Zv);const $v=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],zg=ge("circle-alert",$v);const Pv=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],jg=ge("circle-check-big",Pv);const Jv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],kf=ge("circle-check",Jv);const Wv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],wf=ge("circle-question-mark",Wv);const e2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Cg=ge("circle-x",e2);const t2=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],di=ge("clock",t2);const n2=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],i2=ge("copy",n2);const l2=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],a2=ge("database",l2);const r2=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],s2=ge("ellipsis-vertical",r2);const o2=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ng=ge("external-link",o2);const u2=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],c2=ge("eye",u2);const f2=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],zf=ge("file-image",f2);const d2=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],kr=ge("file-text",d2);const h2=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],m2=ge("git-branch",h2);const p2=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],g2=ge("history",p2);const y2=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Tg=ge("image",y2);const x2=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],jf=ge("inbox",x2);const b2=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],v2=ge("keyboard",b2);const S2=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],k2=ge("layout-template",S2);const w2=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],z2=ge("lightbulb",w2);const j2=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],Eg=ge("list-todo",j2);const C2=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],da=ge("loader-circle",C2);const N2=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],T2=ge("lock",N2);const E2=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Ag=ge("message-circle",E2);const A2=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],D2=ge("message-square",A2);const _2=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Dg=ge("pencil",_2);const M2=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],_g=ge("play",M2);const O2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Cf=ge("plus",O2);const R2=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],L2=ge("puzzle",R2);const U2=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Mg=ge("refresh-cw",U2);const B2=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],q2=ge("rocket",B2);const H2=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Q2=ge("rotate-ccw",H2);const Y2=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],F2=ge("send",Y2);const V2=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],G2=ge("server",V2);const X2=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],I2=ge("settings",X2);const K2=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],Z2=ge("settings-2",K2);const $2=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],P2=ge("sparkles",$2);const J2=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],W2=ge("terminal",J2);const eS=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],dl=ge("trash-2",eS);const tS=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],nS=ge("trending-up",tS);const iS=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],lS=ge("triangle-alert",iS);const aS=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Nf=ge("upload",aS);const rS=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],sS=ge("user",rS);const oS=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],uS=ge("volume-2",oS);const cS=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]],fS=ge("volume-x",cS);const dS=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Og=ge("wrench",dS);const hS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Cn=ge("x",hS);const mS=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],pS=ge("zap",mS),gS="3333";function io(){return"/queue"}function yS(){return"claude-queue"}function xS(){return gS}function bS(n=2e3){const[l,a]=Q.useState(!1),s=Q.useCallback(o=>{navigator.clipboard.writeText(o),a(!0),setTimeout(()=>a(!1),n)},[n]);return{copied:l,copy:s}}function zn(n){const{text:l,className:a=""}=n,{copied:s,copy:o}=bS();return h.jsx("button",{onClick:c=>{c.stopPropagation(),o(l)},className:`p-1 rounded transition-colors ${a}`,title:"Copy to clipboard",children:s?h.jsx(Iv,{className:"w-3.5 h-3.5 text-green-400"}):h.jsx(i2,{className:"w-3.5 h-3.5 text-zinc-500 hover:text-zinc-300"})})}function vS(n){const{project:l,tasks:a}=n,[s,o]=Q.useState(!1),c=io();if(!l)return null;const f=a.find(x=>x.status==="in_progress"),m=()=>[{label:"Work on tasks",description:"Start working through ready tasks",command:`${c} ${l.id}`,icon:h.jsx(_g,{className:"w-3.5 h-3.5"})},{label:"Plan tasks",description:"Describe a feature and create tasks",command:`${c} plan ${l.id}`,icon:h.jsx(Eg,{className:"w-3.5 h-3.5"})}],p=f?f.blocked?{icon:h.jsx(zg,{className:"w-3.5 h-3.5"}),label:"Needs reply",color:"text-red-400",bgColor:"bg-red-900/20",description:"Claude is waiting for your response.",action:"Click on the task in progress and reply to Claude's question."}:{icon:h.jsx(da,{className:"w-3.5 h-3.5 animate-spin"}),label:"Working",color:"text-green-400",bgColor:"bg-green-900/20",description:f.current_activity||`Working on: ${f.title}`}:{icon:h.jsx(W2,{className:"w-3.5 h-3.5"}),label:"Idle",color:"text-zinc-400",bgColor:"bg-zinc-800",description:"Run a command in Claude Code:",commands:m()};return h.jsxs("div",{className:"relative",children:[h.jsxs("button",{onClick:()=>o(!s),className:`flex items-center gap-2 px-3 py-1.5 rounded-lg ${p.bgColor} hover:opacity-90 transition-opacity`,children:[h.jsx("span",{className:p.color,children:p.icon}),h.jsx("span",{className:`text-xs font-medium ${p.color}`,children:p.label}),h.jsx(Sr,{className:`w-3 h-3 ${p.color} transition-transform ${s?"rotate-180":""}`})]}),s&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>o(!1)}),h.jsx("div",{className:"absolute right-0 top-full mt-2 z-50 w-80 bg-zinc-900 border border-zinc-800 rounded-lg shadow-xl",children:h.jsxs("div",{className:"p-3 space-y-3",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:p.color,children:p.icon}),h.jsx("span",{className:`font-medium ${p.color}`,children:p.label})]}),h.jsx("p",{className:"text-sm text-zinc-300",children:p.description}),"commands"in p&&p.commands&&h.jsx("div",{className:"space-y-2",children:p.commands.map(x=>h.jsxs("div",{className:"bg-zinc-800 rounded-lg border border-zinc-700 overflow-hidden",children:[h.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50",children:[h.jsx("span",{className:"text-orange-400",children:x.icon}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("div",{className:"text-sm font-medium text-zinc-200",children:x.label}),h.jsx("div",{className:"text-xs text-zinc-500",children:x.description})]})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("code",{className:"flex-1 text-sm font-mono text-orange-400 px-3 py-2",children:x.command}),h.jsx(zn,{text:x.command,className:"mr-2"})]})]},x.command))}),p.action&&h.jsx("p",{className:"text-xs text-zinc-500",children:p.action})]})})]})]})}function SS(n){const{project:l,projects:a,onProjectChange:s,onHelpClick:o,onTroubleshootClick:c,onStatsClick:f,onSettingsClick:m}=n,[y,p]=Q.useState(!1),x=Q.useRef(null),g=vf(),{data:S=[]}=Mn({...no(l?.id||""),enabled:!!l,refetchInterval:g}),k=io(),z=l?`${k} ${l.id}`:"",E=l?`${k} plan ${l.id}`:"";return Q.useEffect(()=>{if(!y)return;function M(j){x.current&&!x.current.contains(j.target)&&p(!1)}return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[y]),h.jsxs("header",{className:"sticky top-0 z-20 h-14 border-b border-zinc-800 bg-zinc-950 flex items-center justify-between px-4",children:[h.jsxs("div",{className:"flex items-center gap-4",children:[h.jsx("h1",{className:"text-sm font-medium text-zinc-300",children:"claude-queue"}),a.length>0&&h.jsx("select",{value:l?.id||"",onChange:M=>s(M.target.value),className:"bg-zinc-900 border border-zinc-800 rounded-lg px-3 py-1.5 text-sm text-zinc-300 focus:outline-none focus:border-zinc-700",children:a.map(M=>h.jsx("option",{value:M.id,children:M.name},M.id))})]}),h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx(vS,{project:l,tasks:S}),l&&h.jsxs("div",{className:"relative",ref:x,children:[h.jsxs("button",{onClick:()=>p(!y),className:"flex items-center gap-1.5 bg-zinc-800/50 rounded-lg border border-zinc-700/50 px-2 py-1 hover:bg-zinc-800 transition-colors",children:[h.jsx("code",{className:"text-xs font-mono text-zinc-400",children:z}),h.jsx(Sr,{className:`w-3 h-3 text-zinc-500 transition-transform ${y?"rotate-180":""}`})]}),y&&h.jsxs("div",{className:"absolute right-0 top-full mt-1 bg-zinc-800 border border-zinc-700 rounded-lg shadow-xl z-50 min-w-[280px]",children:[h.jsxs("div",{className:"p-2 border-b border-zinc-700",children:[h.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[h.jsx(_g,{className:"w-3 h-3 text-orange-400"}),h.jsx("span",{className:"text-xs text-zinc-300 font-medium",children:"Work Mode"})]}),h.jsx("p",{className:"text-[10px] text-zinc-500 mb-2",children:"Start working through tasks"}),h.jsxs("div",{className:"flex items-center justify-between bg-zinc-900 rounded px-2 py-1.5",children:[h.jsx("code",{className:"text-xs font-mono text-zinc-400",children:z}),h.jsx(zn,{text:z})]})]}),h.jsxs("div",{className:"p-2",children:[h.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[h.jsx(P2,{className:"w-3 h-3 text-purple-400"}),h.jsx("span",{className:"text-xs text-zinc-300 font-medium",children:"Planning Mode"})]}),h.jsx("p",{className:"text-[10px] text-zinc-500 mb-2",children:"Auto-generate tasks from a description"}),h.jsxs("div",{className:"flex items-center justify-between bg-zinc-900 rounded px-2 py-1.5",children:[h.jsx("code",{className:"text-xs font-mono text-zinc-400",children:E}),h.jsx(zn,{text:E})]})]})]})]}),l&&h.jsx("button",{onClick:f,className:"p-1.5 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded-lg transition-colors",title:"Project Statistics",children:h.jsx(Vv,{className:"w-4 h-4"})}),h.jsx("button",{onClick:m,className:"p-1.5 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded-lg transition-colors",title:"Settings",children:h.jsx(I2,{className:"w-4 h-4"})}),h.jsx("button",{onClick:c,className:"p-1.5 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded-lg transition-colors",title:"Troubleshooting",children:h.jsx(Og,{className:"w-4 h-4"})}),h.jsx("button",{onClick:o,className:"p-1.5 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded-lg transition-colors",title:"Help",children:h.jsx(wf,{className:"w-4 h-4"})})]})]})}function kS(n){return{queryKey:["templates",n],queryFn:()=>Xn(`/templates/project/${n}`),enabled:!!n}}function wS(n){const l=tt();return vt({mutationFn:a=>jn(`/templates/project/${n}`,a),onSuccess:()=>{l.invalidateQueries({queryKey:["templates",n]})}})}function zS(){const n=tt();return vt({mutationFn:({templateId:l,...a})=>xg(`/templates/${l}`,a),onSuccess:l=>{n.invalidateQueries({queryKey:["templates",l.project_id]})}})}function jS(){const n=tt();return vt({mutationFn:({templateId:l,position:a})=>jn(`/templates/${l}/move`,{position:a}),onSuccess:l=>{n.invalidateQueries({queryKey:["templates",l.project_id]})}})}function CS(){const n=tt();return vt({mutationFn:l=>Gn(`/templates/${l}`),onSuccess:()=>{n.invalidateQueries({queryKey:["templates"]})}})}const Rg="claude-queue-sound-enabled",NS={complete:"/sounds/complete.mp3",question:"/sounds/question.mp3",start:"/sounds/start.mp3"};function ef(){const n=localStorage.getItem(Rg);return n===null?!0:n==="true"}function TS(n){localStorage.setItem(Rg,String(n)),window.dispatchEvent(new Event("sound-settings-changed"))}const u0=new Map;function ES(n){let l=u0.get(n);return l||(l=new Audio(NS[n]),u0.set(n,l)),l}function AS(n){return window.addEventListener("sound-settings-changed",n),window.addEventListener("storage",n),()=>{window.removeEventListener("sound-settings-changed",n),window.removeEventListener("storage",n)}}function DS(){return[Q.useSyncExternalStore(AS,ef,()=>!0),TS]}function _S(){const n=Q.useRef(ef());return Q.useEffect(()=>{const a=()=>{n.current=ef()};return window.addEventListener("sound-settings-changed",a),window.addEventListener("storage",a),()=>{window.removeEventListener("sound-settings-changed",a),window.removeEventListener("storage",a)}},[]),Q.useCallback(a=>{if(!n.current)return;const s=ES(a);s.currentTime=0,s.play().catch(()=>{})},[])}function MS(n){const l=_S(),a=Q.useRef(new Map),s=Q.useRef(!0);Q.useEffect(()=>{if(n.length===0)return;if(s.current){s.current=!1;const f=new Map;for(const m of n)f.set(m.id,m);a.current=f;return}const o=a.current;for(const f of n){const m=o.get(f.id);if(m){if(f.status==="done"&&m.status!=="done"){l("complete");break}if(f.status==="in_progress"&&m.status==="ready"){l("start");break}if(f.blocked&&!m.blocked){l("question");break}}}const c=new Map;for(const f of n)c.set(f.id,f);a.current=c},[n,l])}const c0=[{id:"backlog",title:"Backlog"},{id:"ready",title:"Ready"},{id:"in_progress",title:"In Progress"},{id:"done",title:"Done"}];function lo(n){const l=new Date(n),s=new Date().getTime()-l.getTime(),o=Math.floor(s/6e4);if(o<1)return"just now";if(o<60)return`${o}m ago`;const c=Math.floor(o/60);return c<24?`${c}h ago`:l.toLocaleDateString()}function hl(n){const{title:l,message:a,confirmLabel:s="Confirm",cancelLabel:o="Cancel",confirmVariant:c="danger",isLoading:f=!1,onConfirm:m,onCancel:y}=n,p={danger:"bg-red-600 hover:bg-red-500",warning:"bg-yellow-600 hover:bg-yellow-500",default:"bg-zinc-700 hover:bg-zinc-600"}[c];return h.jsxs("div",{className:"fixed inset-0 z-[60] flex items-center justify-center",children:[h.jsx("div",{className:"absolute inset-0 bg-black/60",onClick:y}),h.jsxs("div",{className:"relative w-full max-w-sm mx-4 bg-zinc-900 border border-zinc-800 rounded-xl p-5",children:[h.jsx("h3",{className:"text-lg font-medium text-zinc-100 mb-2",children:l}),h.jsx("div",{className:"text-sm text-zinc-400 mb-5",children:a}),h.jsxs("div",{className:"flex items-center justify-end gap-3",children:[h.jsx("button",{onClick:y,className:"px-4 py-2 text-sm text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 rounded-lg transition-colors",children:o}),h.jsx("button",{onClick:m,disabled:f,className:`px-4 py-2 text-sm font-medium text-white ${p} rounded-lg transition-colors`,children:f?"...":s})]})]})]})}function OS(n){const{content:l,children:a,delay:s=300,maxWidth:o=300}=n,[c,f]=Q.useState(!1),[m,y]=Q.useState({top:0,left:0}),p=Q.useRef(null),x=Q.useRef(null);Q.useEffect(()=>()=>{x.current&&clearTimeout(x.current)},[]);const g=()=>{x.current=window.setTimeout(()=>{if(p.current){const k=p.current.getBoundingClientRect(),z=k.top-8;let E=k.left+k.width/2;E+o/2>window.innerWidth&&(E=window.innerWidth-o/2-16),E-o/2<0&&(E=o/2+16),y({top:z,left:E}),f(!0)}},s)},S=()=>{x.current&&(clearTimeout(x.current),x.current=null),f(!1)};return h.jsxs(h.Fragment,{children:[h.jsx("div",{ref:p,onMouseEnter:g,onMouseLeave:S,className:"contents",children:a}),c&&bf.createPortal(h.jsxs("div",{className:"fixed z-[9999] pointer-events-none animate-in fade-in zoom-in-95 duration-150",style:{top:m.top,left:m.left,transform:"translate(-50%, -100%)",maxWidth:o},children:[h.jsx("div",{className:"bg-zinc-800 border border-zinc-700 rounded-lg px-3 py-2 text-sm text-zinc-200 shadow-lg",children:l}),h.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 -bottom-1.5 w-3 h-3 bg-zinc-800 border-r border-b border-zinc-700 rotate-45"})]}),document.body)]})}function RS(n,l){if(!n||!l)return null;const a=new Date(n).getTime(),o=new Date(l).getTime()-a;if(o<0)return null;const c=Math.floor(o/1e3),f=Math.floor(c/60),m=Math.floor(f/60);if(m>0){const y=f%60;return`${m}h ${y}m`}return f>0?`${f}m`:`${c}s`}function LS(n){const{task:l,onClick:a}=n,[s,o]=Q.useState(!1),[c,f]=Q.useState(!1),[m,y]=Q.useState(!1),[p,x]=Q.useState(!1),[g,S]=Q.useState({top:0,left:0}),k=Q.useRef(null),z=Q.useRef(null),E=l.status==="in_progress",j=l.status==="done"?RS(l.started_at,l.completed_at):null,U=vg(l.id),L=Nv();Q.useEffect(()=>{if(!p)return;function V(X){const fe=X.target,re=k.current&&!k.current.contains(fe),W=z.current&&!z.current.contains(fe);re&&W&&x(!1)}return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[p]);const ne=V=>{if(V.stopPropagation(),!p&&z.current){const X=z.current.getBoundingClientRect();S({top:X.bottom+4,left:X.right})}x(!p)},ee=V=>{V.stopPropagation(),x(!1),o(!0)},D=V=>{V.stopPropagation(),x(!1),f(!0)},P=V=>{V.stopPropagation(),x(!1),y(!0)},le=()=>{U.mutate("[ACTION:RESET] Please reset all changes and start this task fresh.",{onSuccess:()=>o(!1)})},ue=()=>{U.mutate("[ACTION:CANCEL] Please stop working on this task and move it to backlog.",{onSuccess:()=>f(!1)})},R=()=>{L.mutate({taskId:l.id,status:"backlog"},{onSuccess:()=>y(!1)})};return h.jsxs(h.Fragment,{children:[h.jsxs("div",{onClick:a,className:`
|
|
10
10
|
p-3 rounded-lg border select-none cursor-pointer
|
|
11
|
-
${
|
|
11
|
+
${E&&!l.blocked?"in-progress-glow":""}
|
|
12
12
|
${l.blocked?"blocked-glow":""}
|
|
13
|
-
${l.blocked?"bg-red-900/20 border-red-500/50 hover:border-red-500":
|
|
14
|
-
`,children:[h.jsxs("div",{className:"flex items-start gap-2",children:[l.blocked&&h.jsx("span",{className:"shrink-0 w-2 h-2 mt-1.5 rounded-full bg-red-500 animate-pulse"}),
|
|
13
|
+
${l.blocked?"bg-red-900/20 border-red-500/50 hover:border-red-500":E?"bg-zinc-900 border-orange-500/30":"bg-zinc-900 border-zinc-800 hover:border-zinc-700"}
|
|
14
|
+
`,children:[h.jsxs("div",{className:"flex items-start gap-2",children:[l.blocked&&h.jsx("span",{className:"shrink-0 w-2 h-2 mt-1.5 rounded-full bg-red-500 animate-pulse"}),E&&!l.blocked&&h.jsx(T2,{className:"shrink-0 w-3 h-3 mt-1 text-orange-500"}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("h4",{className:"text-sm text-zinc-200 font-medium truncate",children:l.title}),l.current_activity&&h.jsx("p",{className:"mt-1 text-xs text-zinc-500 truncate",children:l.current_activity})]})]}),l.description&&!E&&!j&&h.jsx(OS,{content:h.jsx("div",{className:"whitespace-pre-wrap max-h-48 overflow-y-auto",children:l.description}),maxWidth:350,children:h.jsx("div",{className:"mt-2 flex items-center gap-1 text-zinc-600",children:h.jsx("span",{className:"text-xs line-clamp-2",children:l.description})})}),j&&h.jsxs("div",{className:"mt-2 flex items-center gap-1.5 text-zinc-500",children:[h.jsx(di,{className:"w-3 h-3"}),h.jsx("span",{className:"text-xs",children:j})]}),E&&l.pending_action&&h.jsx("div",{className:"mt-3 flex items-center gap-2 pt-2 border-t border-zinc-800",children:h.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 text-xs text-zinc-400",children:[h.jsx(da,{className:"w-3 h-3 animate-spin"}),l.pending_action==="cancel"?"Aborting...":"Restarting..."]})}),E&&!l.pending_action&&h.jsxs("div",{className:"mt-3 flex items-center justify-between pt-2 border-t border-zinc-800",children:[l.started_at&&h.jsxs("div",{className:"flex items-center gap-1.5 text-zinc-500",children:[h.jsx(di,{className:"w-3 h-3"}),h.jsx("span",{className:"text-xs",children:lo(l.started_at)})]}),h.jsx("button",{ref:z,onClick:ne,className:"p-1.5 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition-colors ml-auto",title:"Task actions",children:h.jsx(s2,{className:"w-4 h-4"})})]})]}),p&&bf.createPortal(h.jsxs("div",{ref:k,className:"fixed w-44 bg-zinc-800 border border-zinc-700 rounded-lg shadow-xl z-[9999] py-1",style:{top:g.top,left:g.left,transform:"translateX(-100%)"},children:[h.jsxs("button",{onClick:ee,disabled:U.isPending,className:"w-full flex items-center gap-2 px-3 py-2 text-xs text-zinc-300 hover:bg-zinc-700 transition-colors text-left",children:[h.jsx(Q2,{className:"w-3.5 h-3.5 text-yellow-400"}),"Start Over"]}),h.jsxs("button",{onClick:D,disabled:U.isPending,className:"w-full flex items-center gap-2 px-3 py-2 text-xs text-zinc-300 hover:bg-zinc-700 transition-colors text-left",children:[h.jsx(Cg,{className:"w-3.5 h-3.5 text-red-400"}),"Abort Task"]}),h.jsx("div",{className:"my-1 border-t border-zinc-700"}),h.jsxs("button",{onClick:P,disabled:L.isPending,className:"w-full flex items-center gap-2 px-3 py-2 text-xs text-zinc-300 hover:bg-zinc-700 transition-colors text-left",children:[h.jsx(pS,{className:"w-3.5 h-3.5 text-orange-400"}),"Force Reset"]})]}),document.body),s&&h.jsx(hl,{title:"Start Over?",message:h.jsxs("div",{className:"space-y-2",children:[h.jsx("p",{children:"This will ask Claude to:"}),h.jsxs("ul",{className:"list-disc list-inside text-zinc-500",children:[h.jsx("li",{children:"Discard all uncommitted code changes"}),h.jsx("li",{children:"Start the task fresh from the beginning"})]})]}),confirmLabel:"Start Over",cancelLabel:"Go Back",confirmVariant:"warning",isLoading:U.isPending,onConfirm:le,onCancel:()=>o(!1)}),c&&h.jsx(hl,{title:"Abort Task?",message:h.jsxs("div",{className:"space-y-2",children:[h.jsx("p",{children:"This will ask Claude to:"}),h.jsxs("ul",{className:"list-disc list-inside text-zinc-500",children:[h.jsx("li",{children:"Stop working on this task"}),h.jsx("li",{children:"Discard all uncommitted code changes"}),h.jsx("li",{children:"Move the task to Backlog"})]})]}),confirmLabel:"Abort Task",cancelLabel:"Keep Working",isLoading:U.isPending,onConfirm:ue,onCancel:()=>f(!1)}),m&&h.jsx(hl,{title:"Force Reset Task?",message:h.jsxs("div",{className:"space-y-2",children:[h.jsx("p",{children:"Use this when Claude has stopped responding. This will immediately:"}),h.jsxs("ul",{className:"list-disc list-inside text-zinc-500",children:[h.jsx("li",{children:"Move the task back to Backlog"}),h.jsx("li",{children:"Clear the in-progress state"})]}),h.jsx("p",{className:"text-yellow-500 text-sm mt-2",children:"Note: This will NOT reset any code changes. You may need to manually run git reset if needed."})]}),confirmLabel:"Force Reset",cancelLabel:"Cancel",confirmVariant:"warning",isLoading:L.isPending,onConfirm:R,onCancel:()=>y(!1)})]})}const ra="application/x-task",f0="application/x-template",US={backlog:h.jsx(jf,{className:"w-4 h-4"}),ready:h.jsx(kf,{className:"w-4 h-4"}),in_progress:h.jsx(di,{className:"w-4 h-4"}),done:h.jsx(Sf,{className:"w-4 h-4"})},BS={backlog:{title:"Backlog",description:"Tasks waiting to be prioritized. Move them to Ready when you want Claude to work on them.",tip:"Auto-generate tasks with planning mode: /queue plan <project-id>"},ready:{title:"Ready",description:"Tasks ready for Claude to pick up. Claude will claim tasks from here in order.",tip:"Auto-generate tasks with planning mode: /queue plan <project-id>"},in_progress:{title:"In Progress",description:"Tasks Claude is actively working on. You can add comments or abort if needed."},done:{title:"Done",description:"Completed tasks. Claude commits changes before moving tasks here."}},d0="claude-queue-column-collapsed-";function qS(n){const{id:l,title:a,tasks:s,onTaskClick:o,onDeleteAll:c,isDeleting:f,showBorder:m,onMoveTask:y,onTemplateDropOnColumn:p,isDragging:x,onDragStart:g,onDragEnd:S,justDroppedTaskId:k,onAddTask:z}=n,[E,M]=Q.useState(!1),[j,U]=Q.useState(!1),[L,ne]=Q.useState(()=>localStorage.getItem(`${d0}${l}`)==="true"),[ee,D]=Q.useState(null),[P,le]=Q.useState(null),ue=Q.useRef(null),R=l==="in_progress",V=()=>{const v=!L;ne(v),localStorage.setItem(`${d0}${l}`,String(v))};Q.useEffect(()=>{if(!j)return;function v(Y){ue.current&&!ue.current.contains(Y.target)&&U(!1)}return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[j]);const X=BS[l],fe=Q.useMemo(()=>{if(s.length===0)return null;let v=s[0].updated_at;for(const Y of s)Y.updated_at>v&&(v=Y.updated_at);return v},[s]),re=()=>{c&&(c(),M(!1))},W=v=>{const Y=v.dataTransfer.types.includes(ra),te=v.dataTransfer.types.includes(f0);if(!(!Y&&!te)){if(R){v.dataTransfer.dropEffect="none";return}if(te&&l!=="backlog"&&l!=="ready"){v.dataTransfer.dropEffect="none";return}v.preventDefault(),v.dataTransfer.dropEffect="move",Y&&ee===null&&D(s.length)}},_=v=>{v.currentTarget.contains(v.relatedTarget)||D(null)},$=v=>{if(v.preventDefault(),D(null),le(null),R)return;const Y=v.dataTransfer.getData(f0);if(Y&&p&&(l==="backlog"||l==="ready")){const{template:pe}=JSON.parse(Y);p(pe,l);return}const te=v.dataTransfer.getData(ra);if(!te)return;const{taskId:ae}=JSON.parse(te);let me;s.length===0?me=0:ee===null||ee>=s.length?me=s[s.length-1].position+1:me=s[ee].position,y(ae,l,me)},ce=(v,Y)=>{v.dataTransfer.effectAllowed="move",v.dataTransfer.setData(ra,JSON.stringify({taskId:Y.id})),le(Y.id),g()},Se=()=>{le(null),D(null),S()},C=v=>{v.dataTransfer.types.includes(ra)&&(R||(v.preventDefault(),v.stopPropagation(),ee!==0&&D(0)))},T=v=>{if(!v.dataTransfer.types.includes(ra)||R)return;v.preventDefault(),v.stopPropagation();const Y=s.length;ee!==Y&&D(Y)},G=(v,Y)=>{if(!v.dataTransfer.types.includes(ra)||R)return;v.preventDefault(),v.stopPropagation();const te=v.currentTarget.getBoundingClientRect(),ae=(te.top+te.bottom)/2,me=v.clientY<=ae?Y:Y+1;me!==ee&&D(me)};return L?h.jsxs("div",{onDragOver:W,onDragLeave:_,onDrop:$,className:`
|
|
15
15
|
shrink-0 flex flex-col items-center px-2 py-3 select-none cursor-pointer
|
|
16
16
|
hover:bg-zinc-800/50 transition-colors
|
|
17
17
|
${m?"border-r border-zinc-800":""}
|
|
18
|
-
`,onClick:G,title:`Expand ${a}`,children:[h.jsx("span",{className:"text-zinc-500",children:US[l]}),h.jsx("span",{className:"text-xs text-zinc-500 font-medium writing-mode-vertical whitespace-nowrap mt-2",children:a}),h.jsx("span",{className:"text-xs text-zinc-600 bg-zinc-800 px-1.5 py-0.5 rounded mt-2",children:s.length})]}):h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:`w-[300px] shrink-0 select-none flex flex-col pl-3 ${m?"border-r border-zinc-800 pr-3":""}`,children:[h.jsxs("div",{className:`sticky top-0 bg-zinc-950 py-3 px-1 ${j?"z-20":"z-10"}`,children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("button",{onClick:G,className:"p-1 text-zinc-500 hover:text-zinc-400 hover:bg-zinc-800 rounded transition-colors",title:`Collapse ${a}`,children:h.jsx(wg,{className:"w-3.5 h-3.5"})}),h.jsx("h3",{className:"text-sm font-medium text-zinc-400",children:a}),h.jsxs("div",{className:"relative",ref:ue,children:[h.jsx("button",{onClick:()=>q(!j),className:"p-1 text-zinc-600 hover:text-zinc-400 rounded transition-colors",children:h.jsx(Sf,{className:"w-3 h-3"})}),j&&h.jsxs("div",{className:"absolute left-0 top-full mt-1 w-64 p-3 bg-zinc-800 border border-zinc-700 rounded-lg shadow-xl z-50",children:[h.jsx("p",{className:"text-xs text-zinc-300 leading-relaxed",children:h.jsx("strong",{className:"text-zinc-200",children:K.title})}),h.jsx("p",{className:"mt-1 text-xs text-zinc-400 leading-relaxed",children:K.description}),K.tip&&h.jsxs("p",{className:"mt-2 pt-2 border-t border-zinc-700 text-xs text-zinc-500 leading-relaxed",children:[h.jsx("span",{className:"text-zinc-400",children:"Tip:"})," ",K.tip]})]})]})]}),s.length>0&&c&&h.jsx("button",{onClick:()=>M(!0),className:"p-1 text-zinc-600 hover:text-red-400 hover:bg-red-900/20 rounded transition-colors",title:"Clear all tasks",children:h.jsx(dl,{className:"w-3.5 h-3.5"})})]}),de&&h.jsxs("p",{className:"text-[10px] text-zinc-600 mt-0.5",children:["Last activity: ",Cf(de)]})]}),h.jsxs("div",{onDragOver:W,onDragLeave:_,onDrop:$,className:"flex-1 px-1 pb-4 rounded-lg min-h-[100px]",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx("div",{onDragOver:C,className:"h-1 -mb-1 relative",children:ee===0&&x&&s.length>0&&(!P||s[0].id!==P)&&h.jsx("div",{className:"absolute top-full left-0 right-0 h-0.5 bg-blue-500 rounded-full z-10"})}),s.map((S,Q)=>{const ne=S.id===P,ae=S.id===k,me=ee===Q&&Q>0&&(!P||P!==S.id);return h.jsxs("div",{onDragOver:pe=>V(pe,Q),className:"relative",children:[me&&h.jsx("div",{className:"absolute -top-1.5 left-0 right-0 h-0.5 bg-blue-500 rounded-full"}),h.jsx("div",{draggable:S.status!=="in_progress",onDragStart:pe=>ce(pe,S),onDragEnd:Se,className:`${ne?"opacity-50":""} ${ae?"just-dropped rounded-lg":""}`,children:h.jsx(LS,{task:S,onClick:()=>o(S)})})]},S.id)}),h.jsxs("div",{className:"relative",children:[ee!==null&&ee>=s.length&&x&&h.jsx("div",{className:"absolute -top-1 left-0 right-0 h-0.5 bg-blue-500 rounded-full z-10"}),z&&h.jsxs("button",{onClick:z,onDragOver:T,className:"w-full mt-2 p-2 flex items-center justify-center gap-2 text-xs text-zinc-500 hover:text-zinc-400 hover:bg-zinc-800 rounded-lg transition-colors",children:[h.jsx(zf,{className:"w-3 h-3"}),"Add task"]})]})]}),h.jsx("div",{onDragOver:T,className:"flex-1 min-h-[20px]"})]})]}),E&&h.jsx(hl,{title:`Clear all ${a.toLowerCase()} tasks?`,message:`This will delete ${s.length} task${s.length!==1?"s":""}. This action cannot be undone.`,confirmLabel:"Delete All",isLoading:f,onConfirm:se,onCancel:()=>M(!1)})]})}function HS(n){const{template:l,onClick:a}=n,[s,o]=Y.useState(!1),c=CS(),f=y=>{y.stopPropagation(),o(!0)},m=()=>{c.mutate(l.id,{onSuccess:()=>o(!1)})};return h.jsxs(h.Fragment,{children:[h.jsx("div",{onClick:a,className:"group p-3 rounded-lg border select-none cursor-pointer bg-indigo-900/20 border-indigo-700/30 hover:border-indigo-600/50",children:h.jsxs("div",{className:"flex items-start gap-2",children:[h.jsx(kr,{className:"shrink-0 w-3.5 h-3.5 mt-0.5 text-indigo-400"}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("h4",{className:"text-sm text-zinc-200 font-medium truncate",children:l.title}),l.description&&h.jsx("p",{className:"mt-1 text-xs text-zinc-500 truncate",children:l.description})]}),h.jsx("button",{onClick:f,className:"shrink-0 p-1 text-zinc-600 hover:text-red-400 hover:bg-red-900/20 rounded opacity-0 group-hover:opacity-100 transition-all",title:"Delete template",children:h.jsx(dl,{className:"w-3 h-3"})})]})}),s&&h.jsx(hl,{title:"Delete Template?",message:"This will permanently delete this template. This action cannot be undone.",confirmLabel:"Delete",isLoading:c.isPending,onConfirm:m,onCancel:()=>o(!1)})]})}const d0="claude-queue-templates-collapsed",sa="application/x-template";function QS(n){const{templates:l,onTemplateClick:a,onAddClick:s,onMoveTemplate:o,onTemplateDropOnColumn:c,isDragging:f,onDragStart:m,onDragEnd:y}=n,[p,x]=Y.useState(!1),[g,v]=Y.useState(()=>localStorage.getItem(d0)==="true"),[k,z]=Y.useState(null),[E,M]=Y.useState(null),j=Y.useRef(null);Y.useEffect(()=>{if(!p)return;function G(K){j.current&&!j.current.contains(K.target)&&x(!1)}return document.addEventListener("mousedown",G),()=>document.removeEventListener("mousedown",G)},[p]);const q=()=>{const G=!g;v(G),localStorage.setItem(d0,String(G))},L=G=>{G.dataTransfer.types.includes(sa)&&(G.preventDefault(),G.dataTransfer.dropEffect="move")},ie=G=>{G.currentTarget.contains(G.relatedTarget)||z(null)},ee=G=>{G.preventDefault(),z(null),M(null);const K=G.dataTransfer.getData(sa);if(!K)return;const{templateId:de}=JSON.parse(K);let se;l.length===0?se=0:k===null||k>=l.length?se=l[l.length-1].position+1:se=l[k].position,o(de,se)},D=(G,K)=>{G.dataTransfer.effectAllowed="move",G.dataTransfer.setData(sa,JSON.stringify({templateId:K.id,template:K})),M(K.id),m()},P=()=>{M(null),z(null),y()},te=G=>{G.dataTransfer.types.includes(sa)&&(G.preventDefault(),G.stopPropagation(),k!==0&&z(0))},ue=G=>{if(!G.dataTransfer.types.includes(sa))return;G.preventDefault(),G.stopPropagation();const K=l.length;k!==K&&z(K)},R=(G,K)=>{if(!G.dataTransfer.types.includes(sa))return;G.preventDefault(),G.stopPropagation();const de=G.currentTarget.getBoundingClientRect(),se=(de.top+de.bottom)/2,W=G.clientY<=se?K:K+1;W!==k&&z(W)};return g?h.jsxs("div",{onDragOver:L,onDragLeave:ie,onDrop:ee,className:"shrink-0 flex flex-col items-center px-2 py-3 select-none cursor-pointer border-r border-zinc-800 hover:bg-indigo-900/20 transition-colors",onClick:q,title:"Expand templates",children:[h.jsx(k2,{className:"w-4 h-4 text-indigo-400"}),h.jsx("span",{className:"text-xs text-indigo-400 font-medium writing-mode-vertical whitespace-nowrap mt-2",children:"Templates"}),h.jsx("span",{className:"text-xs text-zinc-600 bg-zinc-800 px-1.5 py-0.5 rounded mt-2",children:l.length})]}):h.jsxs("div",{className:"w-[300px] shrink-0 select-none flex flex-col border-r border-zinc-800 pr-3",children:[h.jsxs("div",{className:`sticky top-0 bg-zinc-950 flex items-center justify-between py-3 px-1 ${p?"z-20":"z-10"}`,children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("button",{onClick:q,className:"p-1 text-zinc-500 hover:text-indigo-400 hover:bg-indigo-900/20 rounded transition-colors",title:"Collapse templates",children:h.jsx(wg,{className:"w-3.5 h-3.5"})}),h.jsx("h3",{className:"text-sm font-medium text-indigo-400",children:"Templates"}),h.jsxs("div",{className:"relative",ref:j,children:[h.jsx("button",{onClick:()=>x(!p),className:"p-1 text-zinc-600 hover:text-indigo-400 rounded transition-colors",children:h.jsx(Sf,{className:"w-3 h-3"})}),p&&h.jsxs("div",{className:"absolute left-0 top-full mt-1 w-64 p-3 bg-zinc-800 border border-zinc-700 rounded-lg shadow-xl z-50",children:[h.jsxs("p",{className:"text-xs text-zinc-300 leading-relaxed",children:[h.jsx("strong",{className:"text-indigo-400",children:"Templates"})," are reusable task blueprints."]}),h.jsxs("ul",{className:"mt-2 space-y-1 text-xs text-zinc-400",children:[h.jsx("li",{children:"• Click a template to edit it"}),h.jsx("li",{children:"• Drag to Backlog or Ready to create a task"})]})]})]})]}),h.jsx("span",{className:"text-xs text-zinc-600",children:l.length})]}),h.jsxs("div",{onDragOver:L,onDragLeave:ie,onDrop:ee,className:"flex-1 px-1 min-h-[100px] rounded-lg transition-colors",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx("div",{onDragOver:te,className:"h-1 -mb-1 relative",children:k===0&&E&&l.length>0&&l[0].id!==E&&h.jsx("div",{className:"absolute top-full left-0 right-0 h-0.5 bg-indigo-500 rounded-full z-10"})}),l.map((G,K)=>{const de=G.id===E,se=k===K&&K>0&&E!==G.id;return h.jsxs("div",{onDragOver:W=>R(W,K),className:"relative",children:[se&&h.jsx("div",{className:"absolute -top-1 left-0 right-0 h-0.5 bg-indigo-500 rounded-full"}),h.jsx("div",{draggable:!0,onDragStart:W=>D(W,G),onDragEnd:P,className:de?"opacity-50":"",children:h.jsx(HS,{template:G,onClick:()=>a(G)})})]},G.id)}),h.jsxs("div",{className:"relative",children:[k!==null&&k>=l.length&&E&&h.jsx("div",{className:"absolute -top-1 left-0 right-0 h-0.5 bg-indigo-500 rounded-full z-10"}),h.jsxs("button",{onClick:s,onDragOver:ue,className:"w-full mt-2 p-2 flex items-center justify-center gap-2 text-xs text-indigo-500 hover:text-indigo-400 hover:bg-indigo-900/20 rounded-lg transition-colors",children:[h.jsx(zf,{className:"w-3 h-3"}),"Add template"]})]})]}),h.jsx("div",{onDragOver:ue,className:"flex-1 min-h-[20px]"})]})]})}function YS(n,l){const a={};return(n[n.length-1]===""?[...n,""]:n).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const FS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,GS={};function h0(n,l){return(GS.jsx?VS:FS).test(n)}const XS=/[ \t\n\f\r]/g;function IS(n){return typeof n=="object"?n.type==="text"?m0(n.value):!1:m0(n)}function m0(n){return n.replace(XS,"")===""}class wr{constructor(l,a,s){this.normal=a,this.property=l,s&&(this.space=s)}}wr.prototype.normal={};wr.prototype.property={};wr.prototype.space=void 0;function Lg(n,l){const a={},s={};for(const o of n)Object.assign(a,o.property),Object.assign(s,o.normal);return new wr(a,s,l)}function ef(n){return n.toLowerCase()}class en{constructor(l,a){this.attribute=a,this.property=l}}en.prototype.attribute="";en.prototype.booleanish=!1;en.prototype.boolean=!1;en.prototype.commaOrSpaceSeparated=!1;en.prototype.commaSeparated=!1;en.prototype.defined=!1;en.prototype.mustUseProperty=!1;en.prototype.number=!1;en.prototype.overloadedBoolean=!1;en.prototype.property="";en.prototype.spaceSeparated=!1;en.prototype.space=void 0;let KS=0;const Te=xl(),ft=xl(),tf=xl(),le=xl(),Ze=xl(),fa=xl(),un=xl();function xl(){return 2**++KS}const nf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Te,booleanish:ft,commaOrSpaceSeparated:un,commaSeparated:fa,number:le,overloadedBoolean:tf,spaceSeparated:Ze},Symbol.toStringTag,{value:"Module"})),Cc=Object.keys(nf);class Nf extends en{constructor(l,a,s,o){let c=-1;if(super(l,a),p0(this,"space",o),typeof s=="number")for(;++c<Cc.length;){const f=Cc[c];p0(this,Cc[c],(s&nf[f])===nf[f])}}}Nf.prototype.defined=!0;function p0(n,l,a){a&&(n[l]=a)}function pa(n){const l={},a={};for(const[s,o]of Object.entries(n.properties)){const c=new Nf(s,n.transform(n.attributes||{},s),o,n.space);n.mustUseProperty&&n.mustUseProperty.includes(s)&&(c.mustUseProperty=!0),l[s]=c,a[ef(s)]=s,a[ef(c.attribute)]=s}return new wr(l,a,n.space)}const Ug=pa({properties:{ariaActiveDescendant:null,ariaAtomic:ft,ariaAutoComplete:null,ariaBusy:ft,ariaChecked:ft,ariaColCount:le,ariaColIndex:le,ariaColSpan:le,ariaControls:Ze,ariaCurrent:null,ariaDescribedBy:Ze,ariaDetails:null,ariaDisabled:ft,ariaDropEffect:Ze,ariaErrorMessage:null,ariaExpanded:ft,ariaFlowTo:Ze,ariaGrabbed:ft,ariaHasPopup:null,ariaHidden:ft,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ze,ariaLevel:le,ariaLive:null,ariaModal:ft,ariaMultiLine:ft,ariaMultiSelectable:ft,ariaOrientation:null,ariaOwns:Ze,ariaPlaceholder:null,ariaPosInSet:le,ariaPressed:ft,ariaReadOnly:ft,ariaRelevant:null,ariaRequired:ft,ariaRoleDescription:Ze,ariaRowCount:le,ariaRowIndex:le,ariaRowSpan:le,ariaSelected:ft,ariaSetSize:le,ariaSort:null,ariaValueMax:le,ariaValueMin:le,ariaValueNow:le,ariaValueText:null,role:null},transform(n,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function Bg(n,l){return l in n?n[l]:l}function qg(n,l){return Bg(n,l.toLowerCase())}const ZS=pa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fa,acceptCharset:Ze,accessKey:Ze,action:null,allow:null,allowFullScreen:Te,allowPaymentRequest:Te,allowUserMedia:Te,alt:null,as:null,async:Te,autoCapitalize:null,autoComplete:Ze,autoFocus:Te,autoPlay:Te,blocking:Ze,capture:null,charSet:null,checked:Te,cite:null,className:Ze,cols:le,colSpan:null,content:null,contentEditable:ft,controls:Te,controlsList:Ze,coords:le|fa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te,defer:Te,dir:null,dirName:null,disabled:Te,download:tf,draggable:ft,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te,formTarget:null,headers:Ze,height:le,hidden:tf,high:le,href:null,hrefLang:null,htmlFor:Ze,httpEquiv:Ze,id:null,imageSizes:null,imageSrcSet:null,inert:Te,inputMode:null,integrity:null,is:null,isMap:Te,itemId:null,itemProp:Ze,itemRef:Ze,itemScope:Te,itemType:Ze,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te,low:le,manifest:null,max:null,maxLength:le,media:null,method:null,min:null,minLength:le,multiple:Te,muted:Te,name:null,nonce:null,noModule:Te,noValidate:Te,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Te,optimum:le,pattern:null,ping:Ze,placeholder:null,playsInline:Te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te,referrerPolicy:null,rel:Ze,required:Te,reversed:Te,rows:le,rowSpan:le,sandbox:Ze,scope:null,scoped:Te,seamless:Te,selected:Te,shadowRootClonable:Te,shadowRootDelegatesFocus:Te,shadowRootMode:null,shape:null,size:le,sizes:null,slot:null,span:le,spellCheck:ft,src:null,srcDoc:null,srcLang:null,srcSet:null,start:le,step:null,style:null,tabIndex:le,target:null,title:null,translate:null,type:null,typeMustMatch:Te,useMap:null,value:ft,width:le,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ze,axis:null,background:null,bgColor:null,border:le,borderColor:null,bottomMargin:le,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te,declare:Te,event:null,face:null,frame:null,frameBorder:null,hSpace:le,leftMargin:le,link:null,longDesc:null,lowSrc:null,marginHeight:le,marginWidth:le,noResize:Te,noHref:Te,noShade:Te,noWrap:Te,object:null,profile:null,prompt:null,rev:null,rightMargin:le,rules:null,scheme:null,scrolling:ft,standby:null,summary:null,text:null,topMargin:le,valueType:null,version:null,vAlign:null,vLink:null,vSpace:le,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te,disableRemotePlayback:Te,prefix:null,property:null,results:le,security:null,unselectable:null},space:"html",transform:qg}),$S=pa({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:un,accentHeight:le,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:le,amplitude:le,arabicForm:null,ascent:le,attributeName:null,attributeType:null,azimuth:le,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:le,by:null,calcMode:null,capHeight:le,className:Ze,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:le,diffuseConstant:le,direction:null,display:null,dur:null,divisor:le,dominantBaseline:null,download:Te,dx:null,dy:null,edgeMode:null,editable:null,elevation:le,enableBackground:null,end:null,event:null,exponent:le,externalResourcesRequired:null,fill:null,fillOpacity:le,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:fa,g2:fa,glyphName:fa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:le,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:le,horizOriginX:le,horizOriginY:le,id:null,ideographic:le,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:le,k:le,k1:le,k2:le,k3:le,k4:le,kernelMatrix:un,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:le,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:le,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:le,overlineThickness:le,paintOrder:null,panose1:null,path:null,pathLength:le,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:le,pointsAtY:le,pointsAtZ:le,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:un,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:un,rev:un,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:un,requiredFeatures:un,requiredFonts:un,requiredFormats:un,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:le,specularExponent:le,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:le,strikethroughThickness:le,string:null,stroke:null,strokeDashArray:un,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:le,strokeOpacity:le,strokeWidth:null,style:null,surfaceScale:le,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:un,tabIndex:le,tableValues:null,target:null,targetX:le,targetY:le,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:un,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:le,underlineThickness:le,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:le,values:null,vAlphabetic:le,vMathematical:le,vectorEffect:null,vHanging:le,vIdeographic:le,version:null,vertAdvY:le,vertOriginX:le,vertOriginY:le,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:le,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Bg}),Hg=pa({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,l){return"xlink:"+l.slice(5).toLowerCase()}}),Qg=pa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:qg}),Yg=pa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,l){return"xml:"+l.slice(3).toLowerCase()}}),PS={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},JS=/[A-Z]/g,g0=/-[a-z]/g,WS=/^data[-\w.:]+$/i;function ek(n,l){const a=ef(l);let s=l,o=en;if(a in n.normal)return n.property[n.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&WS.test(l)){if(l.charAt(4)==="-"){const c=l.slice(5).replace(g0,nk);s="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=l.slice(4);if(!g0.test(c)){let f=c.replace(JS,tk);f.charAt(0)!=="-"&&(f="-"+f),l="data"+f}}o=Nf}return new o(s,l)}function tk(n){return"-"+n.toLowerCase()}function nk(n){return n.charAt(1).toUpperCase()}const ik=Lg([Ug,ZS,Hg,Qg,Yg],"html"),Tf=Lg([Ug,$S,Hg,Qg,Yg],"svg");function lk(n){return n.join(" ").trim()}var oa={},Nc,y0;function ak(){if(y0)return Nc;y0=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,a=/^\s*/,s=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,m=/^\s+|\s+$/g,y=`
|
|
19
|
-
`,p="/",x="*",g="",v="comment",k="declaration";function z(M,j){if(typeof M!="string")throw new TypeError("First argument must be a string");if(!M)return[];j=j||{};var q=1,L=1;function ie(se){var W=se.match(l);W&&(q+=W.length);var _=se.lastIndexOf(y);L=~_?se.length-_:L+se.length}function ee(){var se={line:q,column:L};return function(W){return W.position=new D(se),ue(),W}}function D(se){this.start=se,this.end={line:q,column:L},this.source=j.source}D.prototype.content=M;function P(se){var W=new Error(j.source+":"+q+":"+L+": "+se);if(W.reason=se,W.filename=j.source,W.line=q,W.column=L,W.source=M,!j.silent)throw W}function te(se){var W=se.exec(M);if(W){var _=W[0];return ie(_),M=M.slice(_.length),W}}function ue(){te(a)}function R(se){var W;for(se=se||[];W=G();)W!==!1&&se.push(W);return se}function G(){var se=ee();if(!(p!=M.charAt(0)||x!=M.charAt(1))){for(var W=2;g!=M.charAt(W)&&(x!=M.charAt(W)||p!=M.charAt(W+1));)++W;if(W+=2,g===M.charAt(W-1))return P("End of comment missing");var _=M.slice(2,W-2);return L+=2,ie(_),M=M.slice(W),L+=2,se({type:v,comment:_})}}function K(){var se=ee(),W=te(s);if(W){if(G(),!te(o))return P("property missing ':'");var _=te(c),$=se({type:k,property:E(W[0].replace(n,g)),value:_?E(_[0].replace(n,g)):g});return te(f),$}}function de(){var se=[];R(se);for(var W;W=K();)W!==!1&&(se.push(W),R(se));return se}return ue(),de()}function E(M){return M?M.replace(m,g):g}return Nc=z,Nc}var x0;function rk(){if(x0)return oa;x0=1;var n=oa&&oa.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(oa,"__esModule",{value:!0}),oa.default=a;const l=n(ak());function a(s,o){let c=null;if(!s||typeof s!="string")return c;const f=(0,l.default)(s),m=typeof o=="function";return f.forEach(y=>{if(y.type!=="declaration")return;const{property:p,value:x}=y;m?o(p,x,y):x&&(c=c||{},c[p]=x)}),c}return oa}var ur={},b0;function sk(){if(b0)return ur;b0=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,a=/^[^-]+$/,s=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,c=function(p){return!p||a.test(p)||n.test(p)},f=function(p,x){return x.toUpperCase()},m=function(p,x){return"".concat(x,"-")},y=function(p,x){return x===void 0&&(x={}),c(p)?p:(p=p.toLowerCase(),x.reactCompat?p=p.replace(o,m):p=p.replace(s,m),p.replace(l,f))};return ur.camelCase=y,ur}var cr,v0;function ok(){if(v0)return cr;v0=1;var n=cr&&cr.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},l=n(rk()),a=sk();function s(o,c){var f={};return!o||typeof o!="string"||(0,l.default)(o,function(m,y){m&&y&&(f[(0,a.camelCase)(m,c)]=y)}),f}return s.default=s,cr=s,cr}var uk=ok();const ck=to(uk),Fg=Vg("end"),Ef=Vg("start");function Vg(n){return l;function l(a){const s=a&&a.position&&a.position[n]||{};if(typeof s.line=="number"&&s.line>0&&typeof s.column=="number"&&s.column>0)return{line:s.line,column:s.column,offset:typeof s.offset=="number"&&s.offset>-1?s.offset:void 0}}}function fk(n){const l=Ef(n),a=Fg(n);if(l&&a)return{start:l,end:a}}function mr(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?S0(n.position):"start"in n||"end"in n?S0(n):"line"in n||"column"in n?lf(n):""}function lf(n){return k0(n&&n.line)+":"+k0(n&&n.column)}function S0(n){return lf(n&&n.start)+"-"+lf(n&&n.end)}function k0(n){return n&&typeof n=="number"?n:1}class Ut extends Error{constructor(l,a,s){super(),typeof a=="string"&&(s=a,a=void 0);let o="",c={},f=!1;if(a&&("line"in a&&"column"in a?c={place:a}:"start"in a&&"end"in a?c={place:a}:"type"in a?c={ancestors:[a],place:a.position}:c={...a}),typeof l=="string"?o=l:!c.cause&&l&&(f=!0,o=l.message,c.cause=l),!c.ruleId&&!c.source&&typeof s=="string"){const y=s.indexOf(":");y===-1?c.ruleId=s:(c.source=s.slice(0,y),c.ruleId=s.slice(y+1))}if(!c.place&&c.ancestors&&c.ancestors){const y=c.ancestors[c.ancestors.length-1];y&&(c.place=y.position)}const m=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=m?m.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=m?m.line:void 0,this.name=mr(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=f&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ut.prototype.file="";Ut.prototype.name="";Ut.prototype.reason="";Ut.prototype.message="";Ut.prototype.stack="";Ut.prototype.column=void 0;Ut.prototype.line=void 0;Ut.prototype.ancestors=void 0;Ut.prototype.cause=void 0;Ut.prototype.fatal=void 0;Ut.prototype.place=void 0;Ut.prototype.ruleId=void 0;Ut.prototype.source=void 0;const Af={}.hasOwnProperty,dk=new Map,hk=/[A-Z]/g,mk=new Set(["table","tbody","thead","tfoot","tr"]),pk=new Set(["td","th"]),Gg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function gk(n,l){if(!l||l.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=l.filePath||void 0;let s;if(l.development){if(typeof l.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");s=zk(a,l.jsxDEV)}else{if(typeof l.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof l.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");s=wk(a,l.jsx,l.jsxs)}const o={Fragment:l.Fragment,ancestors:[],components:l.components||{},create:s,elementAttributeNameCase:l.elementAttributeNameCase||"react",evaluater:l.createEvaluater?l.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:l.ignoreInvalidStyle||!1,passKeys:l.passKeys!==!1,passNode:l.passNode||!1,schema:l.space==="svg"?Tf:ik,stylePropertyNameCase:l.stylePropertyNameCase||"dom",tableCellAlignToStyle:l.tableCellAlignToStyle!==!1},c=Xg(o,n,void 0);return c&&typeof c!="string"?c:o.create(n,o.Fragment,{children:c||void 0},void 0)}function Xg(n,l,a){if(l.type==="element")return yk(n,l,a);if(l.type==="mdxFlowExpression"||l.type==="mdxTextExpression")return xk(n,l);if(l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement")return vk(n,l,a);if(l.type==="mdxjsEsm")return bk(n,l);if(l.type==="root")return Sk(n,l,a);if(l.type==="text")return kk(n,l)}function yk(n,l,a){const s=n.schema;let o=s;l.tagName.toLowerCase()==="svg"&&s.space==="html"&&(o=Tf,n.schema=o),n.ancestors.push(l);const c=Kg(n,l.tagName,!1),f=jk(n,l);let m=_f(n,l);return mk.has(l.tagName)&&(m=m.filter(function(y){return typeof y=="string"?!IS(y):!0})),Ig(n,f,c,l),Df(f,m),n.ancestors.pop(),n.schema=s,n.create(l,c,f,a)}function xk(n,l){if(l.data&&l.data.estree&&n.evaluater){const s=l.data.estree.body[0];return s.type,n.evaluater.evaluateExpression(s.expression)}xr(n,l.position)}function bk(n,l){if(l.data&&l.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(l.data.estree);xr(n,l.position)}function vk(n,l,a){const s=n.schema;let o=s;l.name==="svg"&&s.space==="html"&&(o=Tf,n.schema=o),n.ancestors.push(l);const c=l.name===null?n.Fragment:Kg(n,l.name,!0),f=Ck(n,l),m=_f(n,l);return Ig(n,f,c,l),Df(f,m),n.ancestors.pop(),n.schema=s,n.create(l,c,f,a)}function Sk(n,l,a){const s={};return Df(s,_f(n,l)),n.create(l,n.Fragment,s,a)}function kk(n,l){return l.value}function Ig(n,l,a,s){typeof a!="string"&&a!==n.Fragment&&n.passNode&&(l.node=s)}function Df(n,l){if(l.length>0){const a=l.length>1?l:l[0];a&&(n.children=a)}}function wk(n,l,a){return s;function s(o,c,f,m){const p=Array.isArray(f.children)?a:l;return m?p(c,f,m):p(c,f)}}function zk(n,l){return a;function a(s,o,c,f){const m=Array.isArray(c.children),y=Ef(s);return l(o,c,f,m,{columnNumber:y?y.column-1:void 0,fileName:n,lineNumber:y?y.line:void 0},void 0)}}function jk(n,l){const a={};let s,o;for(o in l.properties)if(o!=="children"&&Af.call(l.properties,o)){const c=Nk(n,o,l.properties[o]);if(c){const[f,m]=c;n.tableCellAlignToStyle&&f==="align"&&typeof m=="string"&&pk.has(l.tagName)?s=m:a[f]=m}}if(s){const c=a.style||(a.style={});c[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=s}return a}function Ck(n,l){const a={};for(const s of l.attributes)if(s.type==="mdxJsxExpressionAttribute")if(s.data&&s.data.estree&&n.evaluater){const c=s.data.estree.body[0];c.type;const f=c.expression;f.type;const m=f.properties[0];m.type,Object.assign(a,n.evaluater.evaluateExpression(m.argument))}else xr(n,l.position);else{const o=s.name;let c;if(s.value&&typeof s.value=="object")if(s.value.data&&s.value.data.estree&&n.evaluater){const m=s.value.data.estree.body[0];m.type,c=n.evaluater.evaluateExpression(m.expression)}else xr(n,l.position);else c=s.value===null?!0:s.value;a[o]=c}return a}function _f(n,l){const a=[];let s=-1;const o=n.passKeys?new Map:dk;for(;++s<l.children.length;){const c=l.children[s];let f;if(n.passKeys){const y=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(y){const p=o.get(y)||0;f=y+"-"+p,o.set(y,p+1)}}const m=Xg(n,c,f);m!==void 0&&a.push(m)}return a}function Nk(n,l,a){const s=ek(n.schema,l);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=s.commaSeparated?YS(a):lk(a)),s.property==="style"){let o=typeof a=="object"?a:Tk(n,String(a));return n.stylePropertyNameCase==="css"&&(o=Ek(o)),["style",o]}return[n.elementAttributeNameCase==="react"&&s.space?PS[s.property]||s.property:s.attribute,a]}}function Tk(n,l){try{return ck(l,{reactCompat:!0})}catch(a){if(n.ignoreInvalidStyle)return{};const s=a,o=new Ut("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:s,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=n.filePath||void 0,o.url=Gg+"#cannot-parse-style-attribute",o}}function Kg(n,l,a){let s;if(!a)s={type:"Literal",value:l};else if(l.includes(".")){const o=l.split(".");let c=-1,f;for(;++c<o.length;){const m=h0(o[c])?{type:"Identifier",name:o[c]}:{type:"Literal",value:o[c]};f=f?{type:"MemberExpression",object:f,property:m,computed:!!(c&&m.type==="Literal"),optional:!1}:m}s=f}else s=h0(l)&&!/^[a-z]/.test(l)?{type:"Identifier",name:l}:{type:"Literal",value:l};if(s.type==="Literal"){const o=s.value;return Af.call(n.components,o)?n.components[o]:o}if(n.evaluater)return n.evaluater.evaluateExpression(s);xr(n)}function xr(n,l){const a=new Ut("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:l,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=n.filePath||void 0,a.url=Gg+"#cannot-handle-mdx-estrees-without-createevaluater",a}function Ek(n){const l={};let a;for(a in n)Af.call(n,a)&&(l[Ak(a)]=n[a]);return l}function Ak(n){let l=n.replace(hk,Dk);return l.slice(0,3)==="ms-"&&(l="-"+l),l}function Dk(n){return"-"+n.toLowerCase()}const Tc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},_k={};function Mf(n,l){const a=_k,s=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,o=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return Zg(n,s,o)}function Zg(n,l,a){if(Mk(n)){if("value"in n)return n.type==="html"&&!a?"":n.value;if(l&&"alt"in n&&n.alt)return n.alt;if("children"in n)return w0(n.children,l,a)}return Array.isArray(n)?w0(n,l,a):""}function w0(n,l,a){const s=[];let o=-1;for(;++o<n.length;)s[o]=Zg(n[o],l,a);return s.join("")}function Mk(n){return!!(n&&typeof n=="object")}const z0=document.createElement("i");function Of(n){const l="&"+n+";";z0.innerHTML=l;const a=z0.textContent;return a.charCodeAt(a.length-1)===59&&n!=="semi"||a===l?!1:a}function cn(n,l,a,s){const o=n.length;let c=0,f;if(l<0?l=-l>o?0:o+l:l=l>o?o:l,a=a>0?a:0,s.length<1e4)f=Array.from(s),f.unshift(l,a),n.splice(...f);else for(a&&n.splice(l,a);c<s.length;)f=s.slice(c,c+1e4),f.unshift(l,0),n.splice(...f),c+=1e4,l+=1e4}function wn(n,l){return n.length>0?(cn(n,n.length,0,l),n):l}const j0={}.hasOwnProperty;function $g(n){const l={};let a=-1;for(;++a<n.length;)Ok(l,n[a]);return l}function Ok(n,l){let a;for(a in l){const o=(j0.call(n,a)?n[a]:void 0)||(n[a]={}),c=l[a];let f;if(c)for(f in c){j0.call(o,f)||(o[f]=[]);const m=c[f];Rk(o[f],Array.isArray(m)?m:m?[m]:[])}}}function Rk(n,l){let a=-1;const s=[];for(;++a<l.length;)(l[a].add==="after"?n:s).push(l[a]);cn(n,0,0,s)}function Pg(n,l){const a=Number.parseInt(n,l);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function _n(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qt=Yi(/[A-Za-z]/),Lt=Yi(/[\dA-Za-z]/),Lk=Yi(/[#-'*+\--9=?A-Z^-~]/);function $s(n){return n!==null&&(n<32||n===127)}const af=Yi(/\d/),Uk=Yi(/[\dA-Fa-f]/),Bk=Yi(/[!-/:-@[-`{-~]/);function xe(n){return n!==null&&n<-2}function Ke(n){return n!==null&&(n<0||n===32)}function _e(n){return n===-2||n===-1||n===32}const lo=Yi(new RegExp("\\p{P}|\\p{S}","u")),gl=Yi(/\s/);function Yi(n){return l;function l(a){return a!==null&&a>-1&&n.test(String.fromCharCode(a))}}function ga(n){const l=[];let a=-1,s=0,o=0;for(;++a<n.length;){const c=n.charCodeAt(a);let f="";if(c===37&&Lt(n.charCodeAt(a+1))&&Lt(n.charCodeAt(a+2)))o=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(f=String.fromCharCode(c));else if(c>55295&&c<57344){const m=n.charCodeAt(a+1);c<56320&&m>56319&&m<57344?(f=String.fromCharCode(c,m),o=1):f="�"}else f=String.fromCharCode(c);f&&(l.push(n.slice(s,a),encodeURIComponent(f)),s=a+o+1,f=""),o&&(a+=o,o=0)}return l.join("")+n.slice(s)}function Le(n,l,a,s){const o=s?s-1:Number.POSITIVE_INFINITY;let c=0;return f;function f(y){return _e(y)?(n.enter(a),m(y)):l(y)}function m(y){return _e(y)&&c++<o?(n.consume(y),m):(n.exit(a),l(y))}}const qk={tokenize:Hk};function Hk(n){const l=n.attempt(this.parser.constructs.contentInitial,s,o);let a;return l;function s(m){if(m===null){n.consume(m);return}return n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),Le(n,l,"linePrefix")}function o(m){return n.enter("paragraph"),c(m)}function c(m){const y=n.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=y),a=y,f(m)}function f(m){if(m===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(m);return}return xe(m)?(n.consume(m),n.exit("chunkText"),c):(n.consume(m),f)}}const Qk={tokenize:Yk},C0={tokenize:Fk};function Yk(n){const l=this,a=[];let s=0,o,c,f;return m;function m(L){if(s<a.length){const ie=a[s];return l.containerState=ie[1],n.attempt(ie[0].continuation,y,p)(L)}return p(L)}function y(L){if(s++,l.containerState._closeFlow){l.containerState._closeFlow=void 0,o&&q();const ie=l.events.length;let ee=ie,D;for(;ee--;)if(l.events[ee][0]==="exit"&&l.events[ee][1].type==="chunkFlow"){D=l.events[ee][1].end;break}j(s);let P=ie;for(;P<l.events.length;)l.events[P][1].end={...D},P++;return cn(l.events,ee+1,0,l.events.slice(ie)),l.events.length=P,p(L)}return m(L)}function p(L){if(s===a.length){if(!o)return v(L);if(o.currentConstruct&&o.currentConstruct.concrete)return z(L);l.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return l.containerState={},n.check(C0,x,g)(L)}function x(L){return o&&q(),j(s),v(L)}function g(L){return l.parser.lazy[l.now().line]=s!==a.length,f=l.now().offset,z(L)}function v(L){return l.containerState={},n.attempt(C0,k,z)(L)}function k(L){return s++,a.push([l.currentConstruct,l.containerState]),v(L)}function z(L){if(L===null){o&&q(),j(0),n.consume(L);return}return o=o||l.parser.flow(l.now()),n.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:c}),E(L)}function E(L){if(L===null){M(n.exit("chunkFlow"),!0),j(0),n.consume(L);return}return xe(L)?(n.consume(L),M(n.exit("chunkFlow")),s=0,l.interrupt=void 0,m):(n.consume(L),E)}function M(L,ie){const ee=l.sliceStream(L);if(ie&&ee.push(null),L.previous=c,c&&(c.next=L),c=L,o.defineSkip(L.start),o.write(ee),l.parser.lazy[L.start.line]){let D=o.events.length;for(;D--;)if(o.events[D][1].start.offset<f&&(!o.events[D][1].end||o.events[D][1].end.offset>f))return;const P=l.events.length;let te=P,ue,R;for(;te--;)if(l.events[te][0]==="exit"&&l.events[te][1].type==="chunkFlow"){if(ue){R=l.events[te][1].end;break}ue=!0}for(j(s),D=P;D<l.events.length;)l.events[D][1].end={...R},D++;cn(l.events,te+1,0,l.events.slice(P)),l.events.length=D}}function j(L){let ie=a.length;for(;ie-- >L;){const ee=a[ie];l.containerState=ee[1],ee[0].exit.call(l,n)}a.length=L}function q(){o.write([null]),c=void 0,o=void 0,l.containerState._closeFlow=void 0}}function Fk(n,l,a){return Le(n,n.attempt(this.parser.constructs.document,l,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ha(n){if(n===null||Ke(n)||gl(n))return 1;if(lo(n))return 2}function ao(n,l,a){const s=[];let o=-1;for(;++o<n.length;){const c=n[o].resolveAll;c&&!s.includes(c)&&(l=c(l,a),s.push(c))}return l}const rf={name:"attention",resolveAll:Vk,tokenize:Gk};function Vk(n,l){let a=-1,s,o,c,f,m,y,p,x;for(;++a<n.length;)if(n[a][0]==="enter"&&n[a][1].type==="attentionSequence"&&n[a][1]._close){for(s=a;s--;)if(n[s][0]==="exit"&&n[s][1].type==="attentionSequence"&&n[s][1]._open&&l.sliceSerialize(n[s][1]).charCodeAt(0)===l.sliceSerialize(n[a][1]).charCodeAt(0)){if((n[s][1]._close||n[a][1]._open)&&(n[a][1].end.offset-n[a][1].start.offset)%3&&!((n[s][1].end.offset-n[s][1].start.offset+n[a][1].end.offset-n[a][1].start.offset)%3))continue;y=n[s][1].end.offset-n[s][1].start.offset>1&&n[a][1].end.offset-n[a][1].start.offset>1?2:1;const g={...n[s][1].end},v={...n[a][1].start};N0(g,-y),N0(v,y),f={type:y>1?"strongSequence":"emphasisSequence",start:g,end:{...n[s][1].end}},m={type:y>1?"strongSequence":"emphasisSequence",start:{...n[a][1].start},end:v},c={type:y>1?"strongText":"emphasisText",start:{...n[s][1].end},end:{...n[a][1].start}},o={type:y>1?"strong":"emphasis",start:{...f.start},end:{...m.end}},n[s][1].end={...f.start},n[a][1].start={...m.end},p=[],n[s][1].end.offset-n[s][1].start.offset&&(p=wn(p,[["enter",n[s][1],l],["exit",n[s][1],l]])),p=wn(p,[["enter",o,l],["enter",f,l],["exit",f,l],["enter",c,l]]),p=wn(p,ao(l.parser.constructs.insideSpan.null,n.slice(s+1,a),l)),p=wn(p,[["exit",c,l],["enter",m,l],["exit",m,l],["exit",o,l]]),n[a][1].end.offset-n[a][1].start.offset?(x=2,p=wn(p,[["enter",n[a][1],l],["exit",n[a][1],l]])):x=0,cn(n,s-1,a-s+3,p),a=s+p.length-x-2;break}}for(a=-1;++a<n.length;)n[a][1].type==="attentionSequence"&&(n[a][1].type="data");return n}function Gk(n,l){const a=this.parser.constructs.attentionMarkers.null,s=this.previous,o=ha(s);let c;return f;function f(y){return c=y,n.enter("attentionSequence"),m(y)}function m(y){if(y===c)return n.consume(y),m;const p=n.exit("attentionSequence"),x=ha(y),g=!x||x===2&&o||a.includes(y),v=!o||o===2&&x||a.includes(s);return p._open=!!(c===42?g:g&&(o||!v)),p._close=!!(c===42?v:v&&(x||!g)),l(y)}}function N0(n,l){n.column+=l,n.offset+=l,n._bufferIndex+=l}const Xk={name:"autolink",tokenize:Ik};function Ik(n,l,a){let s=0;return o;function o(k){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(k),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),c}function c(k){return Qt(k)?(n.consume(k),f):k===64?a(k):p(k)}function f(k){return k===43||k===45||k===46||Lt(k)?(s=1,m(k)):p(k)}function m(k){return k===58?(n.consume(k),s=0,y):(k===43||k===45||k===46||Lt(k))&&s++<32?(n.consume(k),m):(s=0,p(k))}function y(k){return k===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(k),n.exit("autolinkMarker"),n.exit("autolink"),l):k===null||k===32||k===60||$s(k)?a(k):(n.consume(k),y)}function p(k){return k===64?(n.consume(k),x):Lk(k)?(n.consume(k),p):a(k)}function x(k){return Lt(k)?g(k):a(k)}function g(k){return k===46?(n.consume(k),s=0,x):k===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(k),n.exit("autolinkMarker"),n.exit("autolink"),l):v(k)}function v(k){if((k===45||Lt(k))&&s++<63){const z=k===45?v:g;return n.consume(k),z}return a(k)}}const zr={partial:!0,tokenize:Kk};function Kk(n,l,a){return s;function s(c){return _e(c)?Le(n,o,"linePrefix")(c):o(c)}function o(c){return c===null||xe(c)?l(c):a(c)}}const Jg={continuation:{tokenize:$k},exit:Pk,name:"blockQuote",tokenize:Zk};function Zk(n,l,a){const s=this;return o;function o(f){if(f===62){const m=s.containerState;return m.open||(n.enter("blockQuote",{_container:!0}),m.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(f),n.exit("blockQuoteMarker"),c}return a(f)}function c(f){return _e(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),l):(n.exit("blockQuotePrefix"),l(f))}}function $k(n,l,a){const s=this;return o;function o(f){return _e(f)?Le(n,c,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):c(f)}function c(f){return n.attempt(Jg,l,a)(f)}}function Pk(n){n.exit("blockQuote")}const Wg={name:"characterEscape",tokenize:Jk};function Jk(n,l,a){return s;function s(c){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(c),n.exit("escapeMarker"),o}function o(c){return Bk(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),l):a(c)}}const ey={name:"characterReference",tokenize:Wk};function Wk(n,l,a){const s=this;let o=0,c,f;return m;function m(g){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),y}function y(g){return g===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(g),n.exit("characterReferenceMarkerNumeric"),p):(n.enter("characterReferenceValue"),c=31,f=Lt,x(g))}function p(g){return g===88||g===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(g),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),c=6,f=Uk,x):(n.enter("characterReferenceValue"),c=7,f=af,x(g))}function x(g){if(g===59&&o){const v=n.exit("characterReferenceValue");return f===Lt&&!Of(s.sliceSerialize(v))?a(g):(n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),n.exit("characterReference"),l)}return f(g)&&o++<c?(n.consume(g),x):a(g)}}const T0={partial:!0,tokenize:tw},E0={concrete:!0,name:"codeFenced",tokenize:ew};function ew(n,l,a){const s=this,o={partial:!0,tokenize:ee};let c=0,f=0,m;return y;function y(D){return p(D)}function p(D){const P=s.events[s.events.length-1];return c=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,m=D,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),x(D)}function x(D){return D===m?(f++,n.consume(D),x):f<3?a(D):(n.exit("codeFencedFenceSequence"),_e(D)?Le(n,g,"whitespace")(D):g(D))}function g(D){return D===null||xe(D)?(n.exit("codeFencedFence"),s.interrupt?l(D):n.check(T0,E,ie)(D)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),v(D))}function v(D){return D===null||xe(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),g(D)):_e(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Le(n,k,"whitespace")(D)):D===96&&D===m?a(D):(n.consume(D),v)}function k(D){return D===null||xe(D)?g(D):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),z(D))}function z(D){return D===null||xe(D)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),g(D)):D===96&&D===m?a(D):(n.consume(D),z)}function E(D){return n.attempt(o,ie,M)(D)}function M(D){return n.enter("lineEnding"),n.consume(D),n.exit("lineEnding"),j}function j(D){return c>0&&_e(D)?Le(n,q,"linePrefix",c+1)(D):q(D)}function q(D){return D===null||xe(D)?n.check(T0,E,ie)(D):(n.enter("codeFlowValue"),L(D))}function L(D){return D===null||xe(D)?(n.exit("codeFlowValue"),q(D)):(n.consume(D),L)}function ie(D){return n.exit("codeFenced"),l(D)}function ee(D,P,te){let ue=0;return R;function R(W){return D.enter("lineEnding"),D.consume(W),D.exit("lineEnding"),G}function G(W){return D.enter("codeFencedFence"),_e(W)?Le(D,K,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):K(W)}function K(W){return W===m?(D.enter("codeFencedFenceSequence"),de(W)):te(W)}function de(W){return W===m?(ue++,D.consume(W),de):ue>=f?(D.exit("codeFencedFenceSequence"),_e(W)?Le(D,se,"whitespace")(W):se(W)):te(W)}function se(W){return W===null||xe(W)?(D.exit("codeFencedFence"),P(W)):te(W)}}}function tw(n,l,a){const s=this;return o;function o(f){return f===null?a(f):(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),c)}function c(f){return s.parser.lazy[s.now().line]?a(f):l(f)}}const Ec={name:"codeIndented",tokenize:iw},nw={partial:!0,tokenize:lw};function iw(n,l,a){const s=this;return o;function o(p){return n.enter("codeIndented"),Le(n,c,"linePrefix",5)(p)}function c(p){const x=s.events[s.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?f(p):a(p)}function f(p){return p===null?y(p):xe(p)?n.attempt(nw,f,y)(p):(n.enter("codeFlowValue"),m(p))}function m(p){return p===null||xe(p)?(n.exit("codeFlowValue"),f(p)):(n.consume(p),m)}function y(p){return n.exit("codeIndented"),l(p)}}function lw(n,l,a){const s=this;return o;function o(f){return s.parser.lazy[s.now().line]?a(f):xe(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),o):Le(n,c,"linePrefix",5)(f)}function c(f){const m=s.events[s.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?l(f):xe(f)?o(f):a(f)}}const aw={name:"codeText",previous:sw,resolve:rw,tokenize:ow};function rw(n){let l=n.length-4,a=3,s,o;if((n[a][1].type==="lineEnding"||n[a][1].type==="space")&&(n[l][1].type==="lineEnding"||n[l][1].type==="space")){for(s=a;++s<l;)if(n[s][1].type==="codeTextData"){n[a][1].type="codeTextPadding",n[l][1].type="codeTextPadding",a+=2,l-=2;break}}for(s=a-1,l++;++s<=l;)o===void 0?s!==l&&n[s][1].type!=="lineEnding"&&(o=s):(s===l||n[s][1].type==="lineEnding")&&(n[o][1].type="codeTextData",s!==o+2&&(n[o][1].end=n[s-1][1].end,n.splice(o+2,s-o-2),l-=s-o-2,s=o+2),o=void 0);return n}function sw(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ow(n,l,a){let s=0,o,c;return f;function f(g){return n.enter("codeText"),n.enter("codeTextSequence"),m(g)}function m(g){return g===96?(n.consume(g),s++,m):(n.exit("codeTextSequence"),y(g))}function y(g){return g===null?a(g):g===32?(n.enter("space"),n.consume(g),n.exit("space"),y):g===96?(c=n.enter("codeTextSequence"),o=0,x(g)):xe(g)?(n.enter("lineEnding"),n.consume(g),n.exit("lineEnding"),y):(n.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||xe(g)?(n.exit("codeTextData"),y(g)):(n.consume(g),p)}function x(g){return g===96?(n.consume(g),o++,x):o===s?(n.exit("codeTextSequence"),n.exit("codeText"),l(g)):(c.type="codeTextData",p(g))}}class uw{constructor(l){this.left=l?[...l]:[],this.right=[]}get(l){if(l<0||l>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+l+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return l<this.left.length?this.left[l]:this.right[this.right.length-l+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(l,a){const s=a??Number.POSITIVE_INFINITY;return s<this.left.length?this.left.slice(l,s):l>this.left.length?this.right.slice(this.right.length-s+this.left.length,this.right.length-l+this.left.length).reverse():this.left.slice(l).concat(this.right.slice(this.right.length-s+this.left.length).reverse())}splice(l,a,s){const o=a||0;this.setCursor(Math.trunc(l));const c=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return s&&fr(this.left,s),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(l){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(l)}pushMany(l){this.setCursor(Number.POSITIVE_INFINITY),fr(this.left,l)}unshift(l){this.setCursor(0),this.right.push(l)}unshiftMany(l){this.setCursor(0),fr(this.right,l.reverse())}setCursor(l){if(!(l===this.left.length||l>this.left.length&&this.right.length===0||l<0&&this.left.length===0))if(l<this.left.length){const a=this.left.splice(l,Number.POSITIVE_INFINITY);fr(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-l,Number.POSITIVE_INFINITY);fr(this.left,a.reverse())}}}function fr(n,l){let a=0;if(l.length<1e4)n.push(...l);else for(;a<l.length;)n.push(...l.slice(a,a+1e4)),a+=1e4}function ty(n){const l={};let a=-1,s,o,c,f,m,y,p;const x=new uw(n);for(;++a<x.length;){for(;a in l;)a=l[a];if(s=x.get(a),a&&s[1].type==="chunkFlow"&&x.get(a-1)[1].type==="listItemPrefix"&&(y=s[1]._tokenizer.events,c=0,c<y.length&&y[c][1].type==="lineEndingBlank"&&(c+=2),c<y.length&&y[c][1].type==="content"))for(;++c<y.length&&y[c][1].type!=="content";)y[c][1].type==="chunkText"&&(y[c][1]._isInFirstContentOfListItem=!0,c++);if(s[0]==="enter")s[1].contentType&&(Object.assign(l,cw(x,a)),a=l[a],p=!0);else if(s[1]._container){for(c=a,o=void 0;c--;)if(f=x.get(c),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(o&&(x.get(o)[1].type="lineEndingBlank"),f[1].type="lineEnding",o=c);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;o&&(s[1].end={...x.get(o)[1].start},m=x.slice(o,a),m.unshift(s),x.splice(o,a-o+1,m))}}return cn(n,0,Number.POSITIVE_INFINITY,x.slice(0)),!p}function cw(n,l){const a=n.get(l)[1],s=n.get(l)[2];let o=l-1;const c=[];let f=a._tokenizer;f||(f=s.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const m=f.events,y=[],p={};let x,g,v=-1,k=a,z=0,E=0;const M=[E];for(;k;){for(;n.get(++o)[1]!==k;);c.push(o),k._tokenizer||(x=s.sliceStream(k),k.next||x.push(null),g&&f.defineSkip(k.start),k._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(x),k._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),g=k,k=k.next}for(k=a;++v<m.length;)m[v][0]==="exit"&&m[v-1][0]==="enter"&&m[v][1].type===m[v-1][1].type&&m[v][1].start.line!==m[v][1].end.line&&(E=v+1,M.push(E),k._tokenizer=void 0,k.previous=void 0,k=k.next);for(f.events=[],k?(k._tokenizer=void 0,k.previous=void 0):M.pop(),v=M.length;v--;){const j=m.slice(M[v],M[v+1]),q=c.pop();y.push([q,q+j.length-1]),n.splice(q,2,j)}for(y.reverse(),v=-1;++v<y.length;)p[z+y[v][0]]=z+y[v][1],z+=y[v][1]-y[v][0]-1;return p}const fw={resolve:hw,tokenize:mw},dw={partial:!0,tokenize:pw};function hw(n){return ty(n),n}function mw(n,l){let a;return s;function s(m){return n.enter("content"),a=n.enter("chunkContent",{contentType:"content"}),o(m)}function o(m){return m===null?c(m):xe(m)?n.check(dw,f,c)(m):(n.consume(m),o)}function c(m){return n.exit("chunkContent"),n.exit("content"),l(m)}function f(m){return n.consume(m),n.exit("chunkContent"),a.next=n.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,o}}function pw(n,l,a){const s=this;return o;function o(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),Le(n,c,"linePrefix")}function c(f){if(f===null||xe(f))return a(f);const m=s.events[s.events.length-1];return!s.parser.constructs.disable.null.includes("codeIndented")&&m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?l(f):n.interrupt(s.parser.constructs.flow,a,l)(f)}}function ny(n,l,a,s,o,c,f,m,y){const p=y||Number.POSITIVE_INFINITY;let x=0;return g;function g(j){return j===60?(n.enter(s),n.enter(o),n.enter(c),n.consume(j),n.exit(c),v):j===null||j===32||j===41||$s(j)?a(j):(n.enter(s),n.enter(f),n.enter(m),n.enter("chunkString",{contentType:"string"}),E(j))}function v(j){return j===62?(n.enter(c),n.consume(j),n.exit(c),n.exit(o),n.exit(s),l):(n.enter(m),n.enter("chunkString",{contentType:"string"}),k(j))}function k(j){return j===62?(n.exit("chunkString"),n.exit(m),v(j)):j===null||j===60||xe(j)?a(j):(n.consume(j),j===92?z:k)}function z(j){return j===60||j===62||j===92?(n.consume(j),k):k(j)}function E(j){return!x&&(j===null||j===41||Ke(j))?(n.exit("chunkString"),n.exit(m),n.exit(f),n.exit(s),l(j)):x<p&&j===40?(n.consume(j),x++,E):j===41?(n.consume(j),x--,E):j===null||j===32||j===40||$s(j)?a(j):(n.consume(j),j===92?M:E)}function M(j){return j===40||j===41||j===92?(n.consume(j),E):E(j)}}function iy(n,l,a,s,o,c){const f=this;let m=0,y;return p;function p(k){return n.enter(s),n.enter(o),n.consume(k),n.exit(o),n.enter(c),x}function x(k){return m>999||k===null||k===91||k===93&&!y||k===94&&!m&&"_hiddenFootnoteSupport"in f.parser.constructs?a(k):k===93?(n.exit(c),n.enter(o),n.consume(k),n.exit(o),n.exit(s),l):xe(k)?(n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),x):(n.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===null||k===91||k===93||xe(k)||m++>999?(n.exit("chunkString"),x(k)):(n.consume(k),y||(y=!_e(k)),k===92?v:g)}function v(k){return k===91||k===92||k===93?(n.consume(k),m++,g):g(k)}}function ly(n,l,a,s,o,c){let f;return m;function m(v){return v===34||v===39||v===40?(n.enter(s),n.enter(o),n.consume(v),n.exit(o),f=v===40?41:v,y):a(v)}function y(v){return v===f?(n.enter(o),n.consume(v),n.exit(o),n.exit(s),l):(n.enter(c),p(v))}function p(v){return v===f?(n.exit(c),y(f)):v===null?a(v):xe(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),Le(n,p,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),x(v))}function x(v){return v===f||v===null||xe(v)?(n.exit("chunkString"),p(v)):(n.consume(v),v===92?g:x)}function g(v){return v===f||v===92?(n.consume(v),x):x(v)}}function pr(n,l){let a;return s;function s(o){return xe(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),a=!0,s):_e(o)?Le(n,s,a?"linePrefix":"lineSuffix")(o):l(o)}}const gw={name:"definition",tokenize:xw},yw={partial:!0,tokenize:bw};function xw(n,l,a){const s=this;let o;return c;function c(k){return n.enter("definition"),f(k)}function f(k){return iy.call(s,n,m,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(k)}function m(k){return o=_n(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)),k===58?(n.enter("definitionMarker"),n.consume(k),n.exit("definitionMarker"),y):a(k)}function y(k){return Ke(k)?pr(n,p)(k):p(k)}function p(k){return ny(n,x,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(k)}function x(k){return n.attempt(yw,g,g)(k)}function g(k){return _e(k)?Le(n,v,"whitespace")(k):v(k)}function v(k){return k===null||xe(k)?(n.exit("definition"),s.parser.defined.push(o),l(k)):a(k)}}function bw(n,l,a){return s;function s(m){return Ke(m)?pr(n,o)(m):a(m)}function o(m){return ly(n,c,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(m)}function c(m){return _e(m)?Le(n,f,"whitespace")(m):f(m)}function f(m){return m===null||xe(m)?l(m):a(m)}}const vw={name:"hardBreakEscape",tokenize:Sw};function Sw(n,l,a){return s;function s(c){return n.enter("hardBreakEscape"),n.consume(c),o}function o(c){return xe(c)?(n.exit("hardBreakEscape"),l(c)):a(c)}}const kw={name:"headingAtx",resolve:ww,tokenize:zw};function ww(n,l){let a=n.length-2,s=3,o,c;return n[s][1].type==="whitespace"&&(s+=2),a-2>s&&n[a][1].type==="whitespace"&&(a-=2),n[a][1].type==="atxHeadingSequence"&&(s===a-1||a-4>s&&n[a-2][1].type==="whitespace")&&(a-=s+1===a?2:4),a>s&&(o={type:"atxHeadingText",start:n[s][1].start,end:n[a][1].end},c={type:"chunkText",start:n[s][1].start,end:n[a][1].end,contentType:"text"},cn(n,s,a-s+1,[["enter",o,l],["enter",c,l],["exit",c,l],["exit",o,l]])),n}function zw(n,l,a){let s=0;return o;function o(x){return n.enter("atxHeading"),c(x)}function c(x){return n.enter("atxHeadingSequence"),f(x)}function f(x){return x===35&&s++<6?(n.consume(x),f):x===null||Ke(x)?(n.exit("atxHeadingSequence"),m(x)):a(x)}function m(x){return x===35?(n.enter("atxHeadingSequence"),y(x)):x===null||xe(x)?(n.exit("atxHeading"),l(x)):_e(x)?Le(n,m,"whitespace")(x):(n.enter("atxHeadingText"),p(x))}function y(x){return x===35?(n.consume(x),y):(n.exit("atxHeadingSequence"),m(x))}function p(x){return x===null||x===35||Ke(x)?(n.exit("atxHeadingText"),m(x)):(n.consume(x),p)}}const jw=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],A0=["pre","script","style","textarea"],Cw={concrete:!0,name:"htmlFlow",resolveTo:Ew,tokenize:Aw},Nw={partial:!0,tokenize:_w},Tw={partial:!0,tokenize:Dw};function Ew(n){let l=n.length;for(;l--&&!(n[l][0]==="enter"&&n[l][1].type==="htmlFlow"););return l>1&&n[l-2][1].type==="linePrefix"&&(n[l][1].start=n[l-2][1].start,n[l+1][1].start=n[l-2][1].start,n.splice(l-2,2)),n}function Aw(n,l,a){const s=this;let o,c,f,m,y;return p;function p(S){return x(S)}function x(S){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(S),g}function g(S){return S===33?(n.consume(S),v):S===47?(n.consume(S),c=!0,E):S===63?(n.consume(S),o=3,s.interrupt?l:C):Qt(S)?(n.consume(S),f=String.fromCharCode(S),M):a(S)}function v(S){return S===45?(n.consume(S),o=2,k):S===91?(n.consume(S),o=5,m=0,z):Qt(S)?(n.consume(S),o=4,s.interrupt?l:C):a(S)}function k(S){return S===45?(n.consume(S),s.interrupt?l:C):a(S)}function z(S){const Q="CDATA[";return S===Q.charCodeAt(m++)?(n.consume(S),m===Q.length?s.interrupt?l:K:z):a(S)}function E(S){return Qt(S)?(n.consume(S),f=String.fromCharCode(S),M):a(S)}function M(S){if(S===null||S===47||S===62||Ke(S)){const Q=S===47,ne=f.toLowerCase();return!Q&&!c&&A0.includes(ne)?(o=1,s.interrupt?l(S):K(S)):jw.includes(f.toLowerCase())?(o=6,Q?(n.consume(S),j):s.interrupt?l(S):K(S)):(o=7,s.interrupt&&!s.parser.lazy[s.now().line]?a(S):c?q(S):L(S))}return S===45||Lt(S)?(n.consume(S),f+=String.fromCharCode(S),M):a(S)}function j(S){return S===62?(n.consume(S),s.interrupt?l:K):a(S)}function q(S){return _e(S)?(n.consume(S),q):R(S)}function L(S){return S===47?(n.consume(S),R):S===58||S===95||Qt(S)?(n.consume(S),ie):_e(S)?(n.consume(S),L):R(S)}function ie(S){return S===45||S===46||S===58||S===95||Lt(S)?(n.consume(S),ie):ee(S)}function ee(S){return S===61?(n.consume(S),D):_e(S)?(n.consume(S),ee):L(S)}function D(S){return S===null||S===60||S===61||S===62||S===96?a(S):S===34||S===39?(n.consume(S),y=S,P):_e(S)?(n.consume(S),D):te(S)}function P(S){return S===y?(n.consume(S),y=null,ue):S===null||xe(S)?a(S):(n.consume(S),P)}function te(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||Ke(S)?ee(S):(n.consume(S),te)}function ue(S){return S===47||S===62||_e(S)?L(S):a(S)}function R(S){return S===62?(n.consume(S),G):a(S)}function G(S){return S===null||xe(S)?K(S):_e(S)?(n.consume(S),G):a(S)}function K(S){return S===45&&o===2?(n.consume(S),_):S===60&&o===1?(n.consume(S),$):S===62&&o===4?(n.consume(S),T):S===63&&o===3?(n.consume(S),C):S===93&&o===5?(n.consume(S),Se):xe(S)&&(o===6||o===7)?(n.exit("htmlFlowData"),n.check(Nw,V,de)(S)):S===null||xe(S)?(n.exit("htmlFlowData"),de(S)):(n.consume(S),K)}function de(S){return n.check(Tw,se,V)(S)}function se(S){return n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),W}function W(S){return S===null||xe(S)?de(S):(n.enter("htmlFlowData"),K(S))}function _(S){return S===45?(n.consume(S),C):K(S)}function $(S){return S===47?(n.consume(S),f="",ce):K(S)}function ce(S){if(S===62){const Q=f.toLowerCase();return A0.includes(Q)?(n.consume(S),T):K(S)}return Qt(S)&&f.length<8?(n.consume(S),f+=String.fromCharCode(S),ce):K(S)}function Se(S){return S===93?(n.consume(S),C):K(S)}function C(S){return S===62?(n.consume(S),T):S===45&&o===2?(n.consume(S),C):K(S)}function T(S){return S===null||xe(S)?(n.exit("htmlFlowData"),V(S)):(n.consume(S),T)}function V(S){return n.exit("htmlFlow"),l(S)}}function Dw(n,l,a){const s=this;return o;function o(f){return xe(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),c):a(f)}function c(f){return s.parser.lazy[s.now().line]?a(f):l(f)}}function _w(n,l,a){return s;function s(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),n.attempt(zr,l,a)}}const Mw={name:"htmlText",tokenize:Ow};function Ow(n,l,a){const s=this;let o,c,f;return m;function m(C){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(C),y}function y(C){return C===33?(n.consume(C),p):C===47?(n.consume(C),ee):C===63?(n.consume(C),L):Qt(C)?(n.consume(C),te):a(C)}function p(C){return C===45?(n.consume(C),x):C===91?(n.consume(C),c=0,z):Qt(C)?(n.consume(C),q):a(C)}function x(C){return C===45?(n.consume(C),k):a(C)}function g(C){return C===null?a(C):C===45?(n.consume(C),v):xe(C)?(f=g,$(C)):(n.consume(C),g)}function v(C){return C===45?(n.consume(C),k):g(C)}function k(C){return C===62?_(C):C===45?v(C):g(C)}function z(C){const T="CDATA[";return C===T.charCodeAt(c++)?(n.consume(C),c===T.length?E:z):a(C)}function E(C){return C===null?a(C):C===93?(n.consume(C),M):xe(C)?(f=E,$(C)):(n.consume(C),E)}function M(C){return C===93?(n.consume(C),j):E(C)}function j(C){return C===62?_(C):C===93?(n.consume(C),j):E(C)}function q(C){return C===null||C===62?_(C):xe(C)?(f=q,$(C)):(n.consume(C),q)}function L(C){return C===null?a(C):C===63?(n.consume(C),ie):xe(C)?(f=L,$(C)):(n.consume(C),L)}function ie(C){return C===62?_(C):L(C)}function ee(C){return Qt(C)?(n.consume(C),D):a(C)}function D(C){return C===45||Lt(C)?(n.consume(C),D):P(C)}function P(C){return xe(C)?(f=P,$(C)):_e(C)?(n.consume(C),P):_(C)}function te(C){return C===45||Lt(C)?(n.consume(C),te):C===47||C===62||Ke(C)?ue(C):a(C)}function ue(C){return C===47?(n.consume(C),_):C===58||C===95||Qt(C)?(n.consume(C),R):xe(C)?(f=ue,$(C)):_e(C)?(n.consume(C),ue):_(C)}function R(C){return C===45||C===46||C===58||C===95||Lt(C)?(n.consume(C),R):G(C)}function G(C){return C===61?(n.consume(C),K):xe(C)?(f=G,$(C)):_e(C)?(n.consume(C),G):ue(C)}function K(C){return C===null||C===60||C===61||C===62||C===96?a(C):C===34||C===39?(n.consume(C),o=C,de):xe(C)?(f=K,$(C)):_e(C)?(n.consume(C),K):(n.consume(C),se)}function de(C){return C===o?(n.consume(C),o=void 0,W):C===null?a(C):xe(C)?(f=de,$(C)):(n.consume(C),de)}function se(C){return C===null||C===34||C===39||C===60||C===61||C===96?a(C):C===47||C===62||Ke(C)?ue(C):(n.consume(C),se)}function W(C){return C===47||C===62||Ke(C)?ue(C):a(C)}function _(C){return C===62?(n.consume(C),n.exit("htmlTextData"),n.exit("htmlText"),l):a(C)}function $(C){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(C),n.exit("lineEnding"),ce}function ce(C){return _e(C)?Le(n,Se,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):Se(C)}function Se(C){return n.enter("htmlTextData"),f(C)}}const Rf={name:"labelEnd",resolveAll:Bw,resolveTo:qw,tokenize:Hw},Rw={tokenize:Qw},Lw={tokenize:Yw},Uw={tokenize:Fw};function Bw(n){let l=-1;const a=[];for(;++l<n.length;){const s=n[l][1];if(a.push(n[l]),s.type==="labelImage"||s.type==="labelLink"||s.type==="labelEnd"){const o=s.type==="labelImage"?4:2;s.type="data",l+=o}}return n.length!==a.length&&cn(n,0,n.length,a),n}function qw(n,l){let a=n.length,s=0,o,c,f,m;for(;a--;)if(o=n[a][1],c){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;n[a][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(f){if(n[a][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(c=a,o.type!=="labelLink")){s=2;break}}else o.type==="labelEnd"&&(f=a);const y={type:n[c][1].type==="labelLink"?"link":"image",start:{...n[c][1].start},end:{...n[n.length-1][1].end}},p={type:"label",start:{...n[c][1].start},end:{...n[f][1].end}},x={type:"labelText",start:{...n[c+s+2][1].end},end:{...n[f-2][1].start}};return m=[["enter",y,l],["enter",p,l]],m=wn(m,n.slice(c+1,c+s+3)),m=wn(m,[["enter",x,l]]),m=wn(m,ao(l.parser.constructs.insideSpan.null,n.slice(c+s+4,f-3),l)),m=wn(m,[["exit",x,l],n[f-2],n[f-1],["exit",p,l]]),m=wn(m,n.slice(f+1)),m=wn(m,[["exit",y,l]]),cn(n,c,n.length,m),n}function Hw(n,l,a){const s=this;let o=s.events.length,c,f;for(;o--;)if((s.events[o][1].type==="labelImage"||s.events[o][1].type==="labelLink")&&!s.events[o][1]._balanced){c=s.events[o][1];break}return m;function m(v){return c?c._inactive?g(v):(f=s.parser.defined.includes(_n(s.sliceSerialize({start:c.end,end:s.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(v),n.exit("labelMarker"),n.exit("labelEnd"),y):a(v)}function y(v){return v===40?n.attempt(Rw,x,f?x:g)(v):v===91?n.attempt(Lw,x,f?p:g)(v):f?x(v):g(v)}function p(v){return n.attempt(Uw,x,g)(v)}function x(v){return l(v)}function g(v){return c._balanced=!0,a(v)}}function Qw(n,l,a){return s;function s(g){return n.enter("resource"),n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),o}function o(g){return Ke(g)?pr(n,c)(g):c(g)}function c(g){return g===41?x(g):ny(n,f,m,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function f(g){return Ke(g)?pr(n,y)(g):x(g)}function m(g){return a(g)}function y(g){return g===34||g===39||g===40?ly(n,p,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):x(g)}function p(g){return Ke(g)?pr(n,x)(g):x(g)}function x(g){return g===41?(n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),n.exit("resource"),l):a(g)}}function Yw(n,l,a){const s=this;return o;function o(m){return iy.call(s,n,c,f,"reference","referenceMarker","referenceString")(m)}function c(m){return s.parser.defined.includes(_n(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)))?l(m):a(m)}function f(m){return a(m)}}function Fw(n,l,a){return s;function s(c){return n.enter("reference"),n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),o}function o(c){return c===93?(n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),n.exit("reference"),l):a(c)}}const Vw={name:"labelStartImage",resolveAll:Rf.resolveAll,tokenize:Gw};function Gw(n,l,a){const s=this;return o;function o(m){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(m),n.exit("labelImageMarker"),c}function c(m){return m===91?(n.enter("labelMarker"),n.consume(m),n.exit("labelMarker"),n.exit("labelImage"),f):a(m)}function f(m){return m===94&&"_hiddenFootnoteSupport"in s.parser.constructs?a(m):l(m)}}const Xw={name:"labelStartLink",resolveAll:Rf.resolveAll,tokenize:Iw};function Iw(n,l,a){const s=this;return o;function o(f){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(f),n.exit("labelMarker"),n.exit("labelLink"),c}function c(f){return f===94&&"_hiddenFootnoteSupport"in s.parser.constructs?a(f):l(f)}}const Ac={name:"lineEnding",tokenize:Kw};function Kw(n,l){return a;function a(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),Le(n,l,"linePrefix")}}const Is={name:"thematicBreak",tokenize:Zw};function Zw(n,l,a){let s=0,o;return c;function c(p){return n.enter("thematicBreak"),f(p)}function f(p){return o=p,m(p)}function m(p){return p===o?(n.enter("thematicBreakSequence"),y(p)):s>=3&&(p===null||xe(p))?(n.exit("thematicBreak"),l(p)):a(p)}function y(p){return p===o?(n.consume(p),s++,y):(n.exit("thematicBreakSequence"),_e(p)?Le(n,m,"whitespace")(p):m(p))}}const Jt={continuation:{tokenize:Ww},exit:tz,name:"list",tokenize:Jw},$w={partial:!0,tokenize:nz},Pw={partial:!0,tokenize:ez};function Jw(n,l,a){const s=this,o=s.events[s.events.length-1];let c=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,f=0;return m;function m(k){const z=s.containerState.type||(k===42||k===43||k===45?"listUnordered":"listOrdered");if(z==="listUnordered"?!s.containerState.marker||k===s.containerState.marker:af(k)){if(s.containerState.type||(s.containerState.type=z,n.enter(z,{_container:!0})),z==="listUnordered")return n.enter("listItemPrefix"),k===42||k===45?n.check(Is,a,p)(k):p(k);if(!s.interrupt||k===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),y(k)}return a(k)}function y(k){return af(k)&&++f<10?(n.consume(k),y):(!s.interrupt||f<2)&&(s.containerState.marker?k===s.containerState.marker:k===41||k===46)?(n.exit("listItemValue"),p(k)):a(k)}function p(k){return n.enter("listItemMarker"),n.consume(k),n.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||k,n.check(zr,s.interrupt?a:x,n.attempt($w,v,g))}function x(k){return s.containerState.initialBlankLine=!0,c++,v(k)}function g(k){return _e(k)?(n.enter("listItemPrefixWhitespace"),n.consume(k),n.exit("listItemPrefixWhitespace"),v):a(k)}function v(k){return s.containerState.size=c+s.sliceSerialize(n.exit("listItemPrefix"),!0).length,l(k)}}function Ww(n,l,a){const s=this;return s.containerState._closeFlow=void 0,n.check(zr,o,c);function o(m){return s.containerState.furtherBlankLines=s.containerState.furtherBlankLines||s.containerState.initialBlankLine,Le(n,l,"listItemIndent",s.containerState.size+1)(m)}function c(m){return s.containerState.furtherBlankLines||!_e(m)?(s.containerState.furtherBlankLines=void 0,s.containerState.initialBlankLine=void 0,f(m)):(s.containerState.furtherBlankLines=void 0,s.containerState.initialBlankLine=void 0,n.attempt(Pw,l,f)(m))}function f(m){return s.containerState._closeFlow=!0,s.interrupt=void 0,Le(n,n.attempt(Jt,l,a),"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m)}}function ez(n,l,a){const s=this;return Le(n,o,"listItemIndent",s.containerState.size+1);function o(c){const f=s.events[s.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===s.containerState.size?l(c):a(c)}}function tz(n){n.exit(this.containerState.type)}function nz(n,l,a){const s=this;return Le(n,o,"listItemPrefixWhitespace",s.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(c){const f=s.events[s.events.length-1];return!_e(c)&&f&&f[1].type==="listItemPrefixWhitespace"?l(c):a(c)}}const D0={name:"setextUnderline",resolveTo:iz,tokenize:lz};function iz(n,l){let a=n.length,s,o,c;for(;a--;)if(n[a][0]==="enter"){if(n[a][1].type==="content"){s=a;break}n[a][1].type==="paragraph"&&(o=a)}else n[a][1].type==="content"&&n.splice(a,1),!c&&n[a][1].type==="definition"&&(c=a);const f={type:"setextHeading",start:{...n[s][1].start},end:{...n[n.length-1][1].end}};return n[o][1].type="setextHeadingText",c?(n.splice(o,0,["enter",f,l]),n.splice(c+1,0,["exit",n[s][1],l]),n[s][1].end={...n[c][1].end}):n[s][1]=f,n.push(["exit",f,l]),n}function lz(n,l,a){const s=this;let o;return c;function c(p){let x=s.events.length,g;for(;x--;)if(s.events[x][1].type!=="lineEnding"&&s.events[x][1].type!=="linePrefix"&&s.events[x][1].type!=="content"){g=s.events[x][1].type==="paragraph";break}return!s.parser.lazy[s.now().line]&&(s.interrupt||g)?(n.enter("setextHeadingLine"),o=p,f(p)):a(p)}function f(p){return n.enter("setextHeadingLineSequence"),m(p)}function m(p){return p===o?(n.consume(p),m):(n.exit("setextHeadingLineSequence"),_e(p)?Le(n,y,"lineSuffix")(p):y(p))}function y(p){return p===null||xe(p)?(n.exit("setextHeadingLine"),l(p)):a(p)}}const az={tokenize:rz};function rz(n){const l=this,a=n.attempt(zr,s,n.attempt(this.parser.constructs.flowInitial,o,Le(n,n.attempt(this.parser.constructs.flow,o,n.attempt(fw,o)),"linePrefix")));return a;function s(c){if(c===null){n.consume(c);return}return n.enter("lineEndingBlank"),n.consume(c),n.exit("lineEndingBlank"),l.currentConstruct=void 0,a}function o(c){if(c===null){n.consume(c);return}return n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),l.currentConstruct=void 0,a}}const sz={resolveAll:ry()},oz=ay("string"),uz=ay("text");function ay(n){return{resolveAll:ry(n==="text"?cz:void 0),tokenize:l};function l(a){const s=this,o=this.parser.constructs[n],c=a.attempt(o,f,m);return f;function f(x){return p(x)?c(x):m(x)}function m(x){if(x===null){a.consume(x);return}return a.enter("data"),a.consume(x),y}function y(x){return p(x)?(a.exit("data"),c(x)):(a.consume(x),y)}function p(x){if(x===null)return!0;const g=o[x];let v=-1;if(g)for(;++v<g.length;){const k=g[v];if(!k.previous||k.previous.call(s,s.previous))return!0}return!1}}}function ry(n){return l;function l(a,s){let o=-1,c;for(;++o<=a.length;)c===void 0?a[o]&&a[o][1].type==="data"&&(c=o,o++):(!a[o]||a[o][1].type!=="data")&&(o!==c+2&&(a[c][1].end=a[o-1][1].end,a.splice(c+2,o-c-2),o=c+2),c=void 0);return n?n(a,s):a}}function cz(n,l){let a=0;for(;++a<=n.length;)if((a===n.length||n[a][1].type==="lineEnding")&&n[a-1][1].type==="data"){const s=n[a-1][1],o=l.sliceStream(s);let c=o.length,f=-1,m=0,y;for(;c--;){const p=o[c];if(typeof p=="string"){for(f=p.length;p.charCodeAt(f-1)===32;)m++,f--;if(f)break;f=-1}else if(p===-2)y=!0,m++;else if(p!==-1){c++;break}}if(l._contentTypeTextTrailing&&a===n.length&&(m=0),m){const p={type:a===n.length||y||m<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?f:s.start._bufferIndex+f,_index:s.start._index+c,line:s.end.line,column:s.end.column-m,offset:s.end.offset-m},end:{...s.end}};s.end={...p.start},s.start.offset===s.end.offset?Object.assign(s,p):(n.splice(a,0,["enter",p,l],["exit",p,l]),a+=2)}a++}return n}const fz={42:Jt,43:Jt,45:Jt,48:Jt,49:Jt,50:Jt,51:Jt,52:Jt,53:Jt,54:Jt,55:Jt,56:Jt,57:Jt,62:Jg},dz={91:gw},hz={[-2]:Ec,[-1]:Ec,32:Ec},mz={35:kw,42:Is,45:[D0,Is],60:Cw,61:D0,95:Is,96:E0,126:E0},pz={38:ey,92:Wg},gz={[-5]:Ac,[-4]:Ac,[-3]:Ac,33:Vw,38:ey,42:rf,60:[Xk,Mw],91:Xw,92:[vw,Wg],93:Rf,95:rf,96:aw},yz={null:[rf,sz]},xz={null:[42,95]},bz={null:[]},vz=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:xz,contentInitial:dz,disable:bz,document:fz,flow:mz,flowInitial:hz,insideSpan:yz,string:pz,text:gz},Symbol.toStringTag,{value:"Module"}));function Sz(n,l,a){let s={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const o={},c=[];let f=[],m=[];const y={attempt:P(ee),check:P(D),consume:q,enter:L,exit:ie,interrupt:P(D,{interrupt:!0})},p={code:null,containerState:{},defineSkip:E,events:[],now:z,parser:n,previous:null,sliceSerialize:v,sliceStream:k,write:g};let x=l.tokenize.call(p,y);return l.resolveAll&&c.push(l),p;function g(G){return f=wn(f,G),M(),f[f.length-1]!==null?[]:(te(l,0),p.events=ao(c,p.events,p),p.events)}function v(G,K){return wz(k(G),K)}function k(G){return kz(f,G)}function z(){const{_bufferIndex:G,_index:K,line:de,column:se,offset:W}=s;return{_bufferIndex:G,_index:K,line:de,column:se,offset:W}}function E(G){o[G.line]=G.column,R()}function M(){let G;for(;s._index<f.length;){const K=f[s._index];if(typeof K=="string")for(G=s._index,s._bufferIndex<0&&(s._bufferIndex=0);s._index===G&&s._bufferIndex<K.length;)j(K.charCodeAt(s._bufferIndex));else j(K)}}function j(G){x=x(G)}function q(G){xe(G)?(s.line++,s.column=1,s.offset+=G===-3?2:1,R()):G!==-1&&(s.column++,s.offset++),s._bufferIndex<0?s._index++:(s._bufferIndex++,s._bufferIndex===f[s._index].length&&(s._bufferIndex=-1,s._index++)),p.previous=G}function L(G,K){const de=K||{};return de.type=G,de.start=z(),p.events.push(["enter",de,p]),m.push(de),de}function ie(G){const K=m.pop();return K.end=z(),p.events.push(["exit",K,p]),K}function ee(G,K){te(G,K.from)}function D(G,K){K.restore()}function P(G,K){return de;function de(se,W,_){let $,ce,Se,C;return Array.isArray(se)?V(se):"tokenize"in se?V([se]):T(se);function T(ae){return me;function me(pe){const we=pe!==null&&ae[pe],dt=pe!==null&&ae.null,St=[...Array.isArray(we)?we:we?[we]:[],...Array.isArray(dt)?dt:dt?[dt]:[]];return V(St)(pe)}}function V(ae){return $=ae,ce=0,ae.length===0?_:S(ae[ce])}function S(ae){return me;function me(pe){return C=ue(),Se=ae,ae.partial||(p.currentConstruct=ae),ae.name&&p.parser.constructs.disable.null.includes(ae.name)?ne():ae.tokenize.call(K?Object.assign(Object.create(p),K):p,y,Q,ne)(pe)}}function Q(ae){return G(Se,C),W}function ne(ae){return C.restore(),++ce<$.length?S($[ce]):_}}}function te(G,K){G.resolveAll&&!c.includes(G)&&c.push(G),G.resolve&&cn(p.events,K,p.events.length-K,G.resolve(p.events.slice(K),p)),G.resolveTo&&(p.events=G.resolveTo(p.events,p))}function ue(){const G=z(),K=p.previous,de=p.currentConstruct,se=p.events.length,W=Array.from(m);return{from:se,restore:_};function _(){s=G,p.previous=K,p.currentConstruct=de,p.events.length=se,m=W,R()}}function R(){s.line in o&&s.column<2&&(s.column=o[s.line],s.offset+=o[s.line]-1)}}function kz(n,l){const a=l.start._index,s=l.start._bufferIndex,o=l.end._index,c=l.end._bufferIndex;let f;if(a===o)f=[n[a].slice(s,c)];else{if(f=n.slice(a,o),s>-1){const m=f[0];typeof m=="string"?f[0]=m.slice(s):f.shift()}c>0&&f.push(n[o].slice(0,c))}return f}function wz(n,l){let a=-1;const s=[];let o;for(;++a<n.length;){const c=n[a];let f;if(typeof c=="string")f=c;else switch(c){case-5:{f="\r";break}case-4:{f=`
|
|
18
|
+
`,onClick:V,title:`Expand ${a}`,children:[h.jsx("span",{className:"text-zinc-500",children:US[l]}),h.jsx("span",{className:"text-xs text-zinc-500 font-medium writing-mode-vertical whitespace-nowrap mt-2",children:a}),h.jsx("span",{className:"text-xs text-zinc-600 bg-zinc-800 px-1.5 py-0.5 rounded mt-2",children:s.length})]}):h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:`w-[300px] shrink-0 select-none flex flex-col pl-3 ${m?"border-r border-zinc-800 pr-3":""}`,children:[h.jsxs("div",{className:`sticky top-0 bg-zinc-950 py-3 px-1 ${j?"z-20":"z-10"}`,children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("button",{onClick:V,className:"p-1 text-zinc-500 hover:text-zinc-400 hover:bg-zinc-800 rounded transition-colors",title:`Collapse ${a}`,children:h.jsx(wg,{className:"w-3.5 h-3.5"})}),h.jsx("h3",{className:"text-sm font-medium text-zinc-400",children:a}),h.jsxs("div",{className:"relative",ref:ue,children:[h.jsx("button",{onClick:()=>U(!j),className:"p-1 text-zinc-600 hover:text-zinc-400 rounded transition-colors",children:h.jsx(wf,{className:"w-3 h-3"})}),j&&h.jsxs("div",{className:"absolute left-0 top-full mt-1 w-64 p-3 bg-zinc-800 border border-zinc-700 rounded-lg shadow-xl z-50",children:[h.jsx("p",{className:"text-xs text-zinc-300 leading-relaxed",children:h.jsx("strong",{className:"text-zinc-200",children:X.title})}),h.jsx("p",{className:"mt-1 text-xs text-zinc-400 leading-relaxed",children:X.description}),X.tip&&h.jsxs("p",{className:"mt-2 pt-2 border-t border-zinc-700 text-xs text-zinc-500 leading-relaxed",children:[h.jsx("span",{className:"text-zinc-400",children:"Tip:"})," ",X.tip]})]})]})]}),s.length>0&&c&&h.jsx("button",{onClick:()=>M(!0),className:"p-1 text-zinc-600 hover:text-red-400 hover:bg-red-900/20 rounded transition-colors",title:"Clear all tasks",children:h.jsx(dl,{className:"w-3.5 h-3.5"})})]}),fe&&h.jsxs("p",{className:"text-[10px] text-zinc-600 mt-0.5",children:["Last activity: ",lo(fe)]})]}),h.jsxs("div",{onDragOver:W,onDragLeave:_,onDrop:$,className:"flex-1 px-1 pb-4 rounded-lg min-h-[100px]",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx("div",{onDragOver:C,className:"h-1 -mb-1 relative",children:ee===0&&x&&s.length>0&&(!P||s[0].id!==P)&&h.jsx("div",{className:"absolute top-full left-0 right-0 h-0.5 bg-blue-500 rounded-full z-10"})}),s.map((v,Y)=>{const te=v.id===P,ae=v.id===k,me=ee===Y&&Y>0&&(!P||P!==v.id);return h.jsxs("div",{onDragOver:pe=>G(pe,Y),className:"relative",children:[me&&h.jsx("div",{className:"absolute -top-1.5 left-0 right-0 h-0.5 bg-blue-500 rounded-full"}),h.jsx("div",{draggable:v.status!=="in_progress",onDragStart:pe=>ce(pe,v),onDragEnd:Se,className:`${te?"opacity-50":""} ${ae?"just-dropped rounded-lg":""}`,children:h.jsx(LS,{task:v,onClick:()=>o(v)})})]},v.id)}),h.jsxs("div",{className:"relative",children:[ee!==null&&ee>=s.length&&x&&h.jsx("div",{className:"absolute -top-1 left-0 right-0 h-0.5 bg-blue-500 rounded-full z-10"}),z&&h.jsxs("button",{onClick:z,onDragOver:T,className:"w-full mt-2 p-2 flex items-center justify-center gap-2 text-xs text-zinc-500 hover:text-zinc-400 hover:bg-zinc-800 rounded-lg transition-colors",children:[h.jsx(Cf,{className:"w-3 h-3"}),"Add task"]})]})]}),h.jsx("div",{onDragOver:T,className:"flex-1 min-h-[20px]"})]})]}),E&&h.jsx(hl,{title:`Clear all ${a.toLowerCase()} tasks?`,message:`This will delete ${s.length} task${s.length!==1?"s":""}. This action cannot be undone.`,confirmLabel:"Delete All",isLoading:f,onConfirm:re,onCancel:()=>M(!1)})]})}function HS(n){const{template:l,onClick:a}=n,[s,o]=Q.useState(!1),c=CS(),f=y=>{y.stopPropagation(),o(!0)},m=()=>{c.mutate(l.id,{onSuccess:()=>o(!1)})};return h.jsxs(h.Fragment,{children:[h.jsx("div",{onClick:a,className:"group p-3 rounded-lg border select-none cursor-pointer bg-indigo-900/20 border-indigo-700/30 hover:border-indigo-600/50",children:h.jsxs("div",{className:"flex items-start gap-2",children:[h.jsx(kr,{className:"shrink-0 w-3.5 h-3.5 mt-0.5 text-indigo-400"}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("h4",{className:"text-sm text-zinc-200 font-medium truncate",children:l.title}),l.description&&h.jsx("p",{className:"mt-1 text-xs text-zinc-500 truncate",children:l.description})]}),h.jsx("button",{onClick:f,className:"shrink-0 p-1 text-zinc-600 hover:text-red-400 hover:bg-red-900/20 rounded opacity-0 group-hover:opacity-100 transition-all",title:"Delete template",children:h.jsx(dl,{className:"w-3 h-3"})})]})}),s&&h.jsx(hl,{title:"Delete Template?",message:"This will permanently delete this template. This action cannot be undone.",confirmLabel:"Delete",isLoading:c.isPending,onConfirm:m,onCancel:()=>o(!1)})]})}const h0="claude-queue-templates-collapsed",sa="application/x-template";function QS(n){const{templates:l,onTemplateClick:a,onAddClick:s,onMoveTemplate:o,onTemplateDropOnColumn:c,isDragging:f,onDragStart:m,onDragEnd:y}=n,[p,x]=Q.useState(!1),[g,S]=Q.useState(()=>localStorage.getItem(h0)==="true"),[k,z]=Q.useState(null),[E,M]=Q.useState(null),j=Q.useRef(null);Q.useEffect(()=>{if(!p)return;function V(X){j.current&&!j.current.contains(X.target)&&x(!1)}return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[p]);const U=()=>{const V=!g;S(V),localStorage.setItem(h0,String(V))},L=V=>{V.dataTransfer.types.includes(sa)&&(V.preventDefault(),V.dataTransfer.dropEffect="move")},ne=V=>{V.currentTarget.contains(V.relatedTarget)||z(null)},ee=V=>{V.preventDefault(),z(null),M(null);const X=V.dataTransfer.getData(sa);if(!X)return;const{templateId:fe}=JSON.parse(X);let re;l.length===0?re=0:k===null||k>=l.length?re=l[l.length-1].position+1:re=l[k].position,o(fe,re)},D=(V,X)=>{V.dataTransfer.effectAllowed="move",V.dataTransfer.setData(sa,JSON.stringify({templateId:X.id,template:X})),M(X.id),m()},P=()=>{M(null),z(null),y()},le=V=>{V.dataTransfer.types.includes(sa)&&(V.preventDefault(),V.stopPropagation(),k!==0&&z(0))},ue=V=>{if(!V.dataTransfer.types.includes(sa))return;V.preventDefault(),V.stopPropagation();const X=l.length;k!==X&&z(X)},R=(V,X)=>{if(!V.dataTransfer.types.includes(sa))return;V.preventDefault(),V.stopPropagation();const fe=V.currentTarget.getBoundingClientRect(),re=(fe.top+fe.bottom)/2,W=V.clientY<=re?X:X+1;W!==k&&z(W)};return g?h.jsxs("div",{onDragOver:L,onDragLeave:ne,onDrop:ee,className:"shrink-0 flex flex-col items-center px-2 py-3 select-none cursor-pointer border-r border-zinc-800 hover:bg-indigo-900/20 transition-colors",onClick:U,title:"Expand templates",children:[h.jsx(k2,{className:"w-4 h-4 text-indigo-400"}),h.jsx("span",{className:"text-xs text-indigo-400 font-medium writing-mode-vertical whitespace-nowrap mt-2",children:"Templates"}),h.jsx("span",{className:"text-xs text-zinc-600 bg-zinc-800 px-1.5 py-0.5 rounded mt-2",children:l.length})]}):h.jsxs("div",{className:"w-[300px] shrink-0 select-none flex flex-col border-r border-zinc-800 pr-3",children:[h.jsxs("div",{className:`sticky top-0 bg-zinc-950 flex items-center justify-between py-3 px-1 ${p?"z-20":"z-10"}`,children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("button",{onClick:U,className:"p-1 text-zinc-500 hover:text-indigo-400 hover:bg-indigo-900/20 rounded transition-colors",title:"Collapse templates",children:h.jsx(wg,{className:"w-3.5 h-3.5"})}),h.jsx("h3",{className:"text-sm font-medium text-indigo-400",children:"Templates"}),h.jsxs("div",{className:"relative",ref:j,children:[h.jsx("button",{onClick:()=>x(!p),className:"p-1 text-zinc-600 hover:text-indigo-400 rounded transition-colors",children:h.jsx(wf,{className:"w-3 h-3"})}),p&&h.jsxs("div",{className:"absolute left-0 top-full mt-1 w-64 p-3 bg-zinc-800 border border-zinc-700 rounded-lg shadow-xl z-50",children:[h.jsxs("p",{className:"text-xs text-zinc-300 leading-relaxed",children:[h.jsx("strong",{className:"text-indigo-400",children:"Templates"})," are reusable task blueprints."]}),h.jsxs("ul",{className:"mt-2 space-y-1 text-xs text-zinc-400",children:[h.jsx("li",{children:"• Click a template to edit it"}),h.jsx("li",{children:"• Drag to Backlog or Ready to create a task"})]})]})]})]}),h.jsx("span",{className:"text-xs text-zinc-600",children:l.length})]}),h.jsxs("div",{onDragOver:L,onDragLeave:ne,onDrop:ee,className:"flex-1 px-1 min-h-[100px] rounded-lg transition-colors",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx("div",{onDragOver:le,className:"h-1 -mb-1 relative",children:k===0&&E&&l.length>0&&l[0].id!==E&&h.jsx("div",{className:"absolute top-full left-0 right-0 h-0.5 bg-indigo-500 rounded-full z-10"})}),l.map((V,X)=>{const fe=V.id===E,re=k===X&&X>0&&E!==V.id;return h.jsxs("div",{onDragOver:W=>R(W,X),className:"relative",children:[re&&h.jsx("div",{className:"absolute -top-1 left-0 right-0 h-0.5 bg-indigo-500 rounded-full"}),h.jsx("div",{draggable:!0,onDragStart:W=>D(W,V),onDragEnd:P,className:fe?"opacity-50":"",children:h.jsx(HS,{template:V,onClick:()=>a(V)})})]},V.id)}),h.jsxs("div",{className:"relative",children:[k!==null&&k>=l.length&&E&&h.jsx("div",{className:"absolute -top-1 left-0 right-0 h-0.5 bg-indigo-500 rounded-full z-10"}),h.jsxs("button",{onClick:s,onDragOver:ue,className:"w-full mt-2 p-2 flex items-center justify-center gap-2 text-xs text-indigo-500 hover:text-indigo-400 hover:bg-indigo-900/20 rounded-lg transition-colors",children:[h.jsx(Cf,{className:"w-3 h-3"}),"Add template"]})]})]}),h.jsx("div",{onDragOver:ue,className:"flex-1 min-h-[20px]"})]})]})}function YS(n,l){const a={};return(n[n.length-1]===""?[...n,""]:n).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const FS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,GS={};function m0(n,l){return(GS.jsx?VS:FS).test(n)}const XS=/[ \t\n\f\r]/g;function IS(n){return typeof n=="object"?n.type==="text"?p0(n.value):!1:p0(n)}function p0(n){return n.replace(XS,"")===""}class wr{constructor(l,a,s){this.normal=a,this.property=l,s&&(this.space=s)}}wr.prototype.normal={};wr.prototype.property={};wr.prototype.space=void 0;function Lg(n,l){const a={},s={};for(const o of n)Object.assign(a,o.property),Object.assign(s,o.normal);return new wr(a,s,l)}function tf(n){return n.toLowerCase()}class en{constructor(l,a){this.attribute=a,this.property=l}}en.prototype.attribute="";en.prototype.booleanish=!1;en.prototype.boolean=!1;en.prototype.commaOrSpaceSeparated=!1;en.prototype.commaSeparated=!1;en.prototype.defined=!1;en.prototype.mustUseProperty=!1;en.prototype.number=!1;en.prototype.overloadedBoolean=!1;en.prototype.property="";en.prototype.spaceSeparated=!1;en.prototype.space=void 0;let KS=0;const Te=xl(),ft=xl(),nf=xl(),ie=xl(),Ze=xl(),fa=xl(),un=xl();function xl(){return 2**++KS}const lf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Te,booleanish:ft,commaOrSpaceSeparated:un,commaSeparated:fa,number:ie,overloadedBoolean:nf,spaceSeparated:Ze},Symbol.toStringTag,{value:"Module"})),Nc=Object.keys(lf);class Tf extends en{constructor(l,a,s,o){let c=-1;if(super(l,a),g0(this,"space",o),typeof s=="number")for(;++c<Nc.length;){const f=Nc[c];g0(this,Nc[c],(s&lf[f])===lf[f])}}}Tf.prototype.defined=!0;function g0(n,l,a){a&&(n[l]=a)}function pa(n){const l={},a={};for(const[s,o]of Object.entries(n.properties)){const c=new Tf(s,n.transform(n.attributes||{},s),o,n.space);n.mustUseProperty&&n.mustUseProperty.includes(s)&&(c.mustUseProperty=!0),l[s]=c,a[tf(s)]=s,a[tf(c.attribute)]=s}return new wr(l,a,n.space)}const Ug=pa({properties:{ariaActiveDescendant:null,ariaAtomic:ft,ariaAutoComplete:null,ariaBusy:ft,ariaChecked:ft,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:Ze,ariaCurrent:null,ariaDescribedBy:Ze,ariaDetails:null,ariaDisabled:ft,ariaDropEffect:Ze,ariaErrorMessage:null,ariaExpanded:ft,ariaFlowTo:Ze,ariaGrabbed:ft,ariaHasPopup:null,ariaHidden:ft,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ze,ariaLevel:ie,ariaLive:null,ariaModal:ft,ariaMultiLine:ft,ariaMultiSelectable:ft,ariaOrientation:null,ariaOwns:Ze,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:ft,ariaReadOnly:ft,ariaRelevant:null,ariaRequired:ft,ariaRoleDescription:Ze,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:ft,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(n,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function Bg(n,l){return l in n?n[l]:l}function qg(n,l){return Bg(n,l.toLowerCase())}const ZS=pa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fa,acceptCharset:Ze,accessKey:Ze,action:null,allow:null,allowFullScreen:Te,allowPaymentRequest:Te,allowUserMedia:Te,alt:null,as:null,async:Te,autoCapitalize:null,autoComplete:Ze,autoFocus:Te,autoPlay:Te,blocking:Ze,capture:null,charSet:null,checked:Te,cite:null,className:Ze,cols:ie,colSpan:null,content:null,contentEditable:ft,controls:Te,controlsList:Ze,coords:ie|fa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te,defer:Te,dir:null,dirName:null,disabled:Te,download:nf,draggable:ft,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te,formTarget:null,headers:Ze,height:ie,hidden:nf,high:ie,href:null,hrefLang:null,htmlFor:Ze,httpEquiv:Ze,id:null,imageSizes:null,imageSrcSet:null,inert:Te,inputMode:null,integrity:null,is:null,isMap:Te,itemId:null,itemProp:Ze,itemRef:Ze,itemScope:Te,itemType:Ze,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Te,muted:Te,name:null,nonce:null,noModule:Te,noValidate:Te,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Te,optimum:ie,pattern:null,ping:Ze,placeholder:null,playsInline:Te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te,referrerPolicy:null,rel:Ze,required:Te,reversed:Te,rows:ie,rowSpan:ie,sandbox:Ze,scope:null,scoped:Te,seamless:Te,selected:Te,shadowRootClonable:Te,shadowRootDelegatesFocus:Te,shadowRootMode:null,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:ft,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Te,useMap:null,value:ft,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ze,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te,declare:Te,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Te,noHref:Te,noShade:Te,noWrap:Te,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:ft,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te,disableRemotePlayback:Te,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:qg}),$S=pa({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:un,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:Ze,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Te,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:fa,g2:fa,glyphName:fa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:un,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ie,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:un,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:un,rev:un,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:un,requiredFeatures:un,requiredFonts:un,requiredFormats:un,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:un,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:un,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:un,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Bg}),Hg=pa({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,l){return"xlink:"+l.slice(5).toLowerCase()}}),Qg=pa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:qg}),Yg=pa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,l){return"xml:"+l.slice(3).toLowerCase()}}),PS={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},JS=/[A-Z]/g,y0=/-[a-z]/g,WS=/^data[-\w.:]+$/i;function ek(n,l){const a=tf(l);let s=l,o=en;if(a in n.normal)return n.property[n.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&WS.test(l)){if(l.charAt(4)==="-"){const c=l.slice(5).replace(y0,nk);s="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=l.slice(4);if(!y0.test(c)){let f=c.replace(JS,tk);f.charAt(0)!=="-"&&(f="-"+f),l="data"+f}}o=Tf}return new o(s,l)}function tk(n){return"-"+n.toLowerCase()}function nk(n){return n.charAt(1).toUpperCase()}const ik=Lg([Ug,ZS,Hg,Qg,Yg],"html"),Ef=Lg([Ug,$S,Hg,Qg,Yg],"svg");function lk(n){return n.join(" ").trim()}var oa={},Tc,x0;function ak(){if(x0)return Tc;x0=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,a=/^\s*/,s=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,m=/^\s+|\s+$/g,y=`
|
|
19
|
+
`,p="/",x="*",g="",S="comment",k="declaration";function z(M,j){if(typeof M!="string")throw new TypeError("First argument must be a string");if(!M)return[];j=j||{};var U=1,L=1;function ne(re){var W=re.match(l);W&&(U+=W.length);var _=re.lastIndexOf(y);L=~_?re.length-_:L+re.length}function ee(){var re={line:U,column:L};return function(W){return W.position=new D(re),ue(),W}}function D(re){this.start=re,this.end={line:U,column:L},this.source=j.source}D.prototype.content=M;function P(re){var W=new Error(j.source+":"+U+":"+L+": "+re);if(W.reason=re,W.filename=j.source,W.line=U,W.column=L,W.source=M,!j.silent)throw W}function le(re){var W=re.exec(M);if(W){var _=W[0];return ne(_),M=M.slice(_.length),W}}function ue(){le(a)}function R(re){var W;for(re=re||[];W=V();)W!==!1&&re.push(W);return re}function V(){var re=ee();if(!(p!=M.charAt(0)||x!=M.charAt(1))){for(var W=2;g!=M.charAt(W)&&(x!=M.charAt(W)||p!=M.charAt(W+1));)++W;if(W+=2,g===M.charAt(W-1))return P("End of comment missing");var _=M.slice(2,W-2);return L+=2,ne(_),M=M.slice(W),L+=2,re({type:S,comment:_})}}function X(){var re=ee(),W=le(s);if(W){if(V(),!le(o))return P("property missing ':'");var _=le(c),$=re({type:k,property:E(W[0].replace(n,g)),value:_?E(_[0].replace(n,g)):g});return le(f),$}}function fe(){var re=[];R(re);for(var W;W=X();)W!==!1&&(re.push(W),R(re));return re}return ue(),fe()}function E(M){return M?M.replace(m,g):g}return Tc=z,Tc}var b0;function rk(){if(b0)return oa;b0=1;var n=oa&&oa.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(oa,"__esModule",{value:!0}),oa.default=a;const l=n(ak());function a(s,o){let c=null;if(!s||typeof s!="string")return c;const f=(0,l.default)(s),m=typeof o=="function";return f.forEach(y=>{if(y.type!=="declaration")return;const{property:p,value:x}=y;m?o(p,x,y):x&&(c=c||{},c[p]=x)}),c}return oa}var ur={},v0;function sk(){if(v0)return ur;v0=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,a=/^[^-]+$/,s=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,c=function(p){return!p||a.test(p)||n.test(p)},f=function(p,x){return x.toUpperCase()},m=function(p,x){return"".concat(x,"-")},y=function(p,x){return x===void 0&&(x={}),c(p)?p:(p=p.toLowerCase(),x.reactCompat?p=p.replace(o,m):p=p.replace(s,m),p.replace(l,f))};return ur.camelCase=y,ur}var cr,S0;function ok(){if(S0)return cr;S0=1;var n=cr&&cr.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},l=n(rk()),a=sk();function s(o,c){var f={};return!o||typeof o!="string"||(0,l.default)(o,function(m,y){m&&y&&(f[(0,a.camelCase)(m,c)]=y)}),f}return s.default=s,cr=s,cr}var uk=ok();const ck=to(uk),Fg=Vg("end"),Af=Vg("start");function Vg(n){return l;function l(a){const s=a&&a.position&&a.position[n]||{};if(typeof s.line=="number"&&s.line>0&&typeof s.column=="number"&&s.column>0)return{line:s.line,column:s.column,offset:typeof s.offset=="number"&&s.offset>-1?s.offset:void 0}}}function fk(n){const l=Af(n),a=Fg(n);if(l&&a)return{start:l,end:a}}function mr(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?k0(n.position):"start"in n||"end"in n?k0(n):"line"in n||"column"in n?af(n):""}function af(n){return w0(n&&n.line)+":"+w0(n&&n.column)}function k0(n){return af(n&&n.start)+"-"+af(n&&n.end)}function w0(n){return n&&typeof n=="number"?n:1}class Ut extends Error{constructor(l,a,s){super(),typeof a=="string"&&(s=a,a=void 0);let o="",c={},f=!1;if(a&&("line"in a&&"column"in a?c={place:a}:"start"in a&&"end"in a?c={place:a}:"type"in a?c={ancestors:[a],place:a.position}:c={...a}),typeof l=="string"?o=l:!c.cause&&l&&(f=!0,o=l.message,c.cause=l),!c.ruleId&&!c.source&&typeof s=="string"){const y=s.indexOf(":");y===-1?c.ruleId=s:(c.source=s.slice(0,y),c.ruleId=s.slice(y+1))}if(!c.place&&c.ancestors&&c.ancestors){const y=c.ancestors[c.ancestors.length-1];y&&(c.place=y.position)}const m=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=m?m.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=m?m.line:void 0,this.name=mr(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=f&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ut.prototype.file="";Ut.prototype.name="";Ut.prototype.reason="";Ut.prototype.message="";Ut.prototype.stack="";Ut.prototype.column=void 0;Ut.prototype.line=void 0;Ut.prototype.ancestors=void 0;Ut.prototype.cause=void 0;Ut.prototype.fatal=void 0;Ut.prototype.place=void 0;Ut.prototype.ruleId=void 0;Ut.prototype.source=void 0;const Df={}.hasOwnProperty,dk=new Map,hk=/[A-Z]/g,mk=new Set(["table","tbody","thead","tfoot","tr"]),pk=new Set(["td","th"]),Gg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function gk(n,l){if(!l||l.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=l.filePath||void 0;let s;if(l.development){if(typeof l.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");s=zk(a,l.jsxDEV)}else{if(typeof l.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof l.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");s=wk(a,l.jsx,l.jsxs)}const o={Fragment:l.Fragment,ancestors:[],components:l.components||{},create:s,elementAttributeNameCase:l.elementAttributeNameCase||"react",evaluater:l.createEvaluater?l.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:l.ignoreInvalidStyle||!1,passKeys:l.passKeys!==!1,passNode:l.passNode||!1,schema:l.space==="svg"?Ef:ik,stylePropertyNameCase:l.stylePropertyNameCase||"dom",tableCellAlignToStyle:l.tableCellAlignToStyle!==!1},c=Xg(o,n,void 0);return c&&typeof c!="string"?c:o.create(n,o.Fragment,{children:c||void 0},void 0)}function Xg(n,l,a){if(l.type==="element")return yk(n,l,a);if(l.type==="mdxFlowExpression"||l.type==="mdxTextExpression")return xk(n,l);if(l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement")return vk(n,l,a);if(l.type==="mdxjsEsm")return bk(n,l);if(l.type==="root")return Sk(n,l,a);if(l.type==="text")return kk(n,l)}function yk(n,l,a){const s=n.schema;let o=s;l.tagName.toLowerCase()==="svg"&&s.space==="html"&&(o=Ef,n.schema=o),n.ancestors.push(l);const c=Kg(n,l.tagName,!1),f=jk(n,l);let m=Mf(n,l);return mk.has(l.tagName)&&(m=m.filter(function(y){return typeof y=="string"?!IS(y):!0})),Ig(n,f,c,l),_f(f,m),n.ancestors.pop(),n.schema=s,n.create(l,c,f,a)}function xk(n,l){if(l.data&&l.data.estree&&n.evaluater){const s=l.data.estree.body[0];return s.type,n.evaluater.evaluateExpression(s.expression)}xr(n,l.position)}function bk(n,l){if(l.data&&l.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(l.data.estree);xr(n,l.position)}function vk(n,l,a){const s=n.schema;let o=s;l.name==="svg"&&s.space==="html"&&(o=Ef,n.schema=o),n.ancestors.push(l);const c=l.name===null?n.Fragment:Kg(n,l.name,!0),f=Ck(n,l),m=Mf(n,l);return Ig(n,f,c,l),_f(f,m),n.ancestors.pop(),n.schema=s,n.create(l,c,f,a)}function Sk(n,l,a){const s={};return _f(s,Mf(n,l)),n.create(l,n.Fragment,s,a)}function kk(n,l){return l.value}function Ig(n,l,a,s){typeof a!="string"&&a!==n.Fragment&&n.passNode&&(l.node=s)}function _f(n,l){if(l.length>0){const a=l.length>1?l:l[0];a&&(n.children=a)}}function wk(n,l,a){return s;function s(o,c,f,m){const p=Array.isArray(f.children)?a:l;return m?p(c,f,m):p(c,f)}}function zk(n,l){return a;function a(s,o,c,f){const m=Array.isArray(c.children),y=Af(s);return l(o,c,f,m,{columnNumber:y?y.column-1:void 0,fileName:n,lineNumber:y?y.line:void 0},void 0)}}function jk(n,l){const a={};let s,o;for(o in l.properties)if(o!=="children"&&Df.call(l.properties,o)){const c=Nk(n,o,l.properties[o]);if(c){const[f,m]=c;n.tableCellAlignToStyle&&f==="align"&&typeof m=="string"&&pk.has(l.tagName)?s=m:a[f]=m}}if(s){const c=a.style||(a.style={});c[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=s}return a}function Ck(n,l){const a={};for(const s of l.attributes)if(s.type==="mdxJsxExpressionAttribute")if(s.data&&s.data.estree&&n.evaluater){const c=s.data.estree.body[0];c.type;const f=c.expression;f.type;const m=f.properties[0];m.type,Object.assign(a,n.evaluater.evaluateExpression(m.argument))}else xr(n,l.position);else{const o=s.name;let c;if(s.value&&typeof s.value=="object")if(s.value.data&&s.value.data.estree&&n.evaluater){const m=s.value.data.estree.body[0];m.type,c=n.evaluater.evaluateExpression(m.expression)}else xr(n,l.position);else c=s.value===null?!0:s.value;a[o]=c}return a}function Mf(n,l){const a=[];let s=-1;const o=n.passKeys?new Map:dk;for(;++s<l.children.length;){const c=l.children[s];let f;if(n.passKeys){const y=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(y){const p=o.get(y)||0;f=y+"-"+p,o.set(y,p+1)}}const m=Xg(n,c,f);m!==void 0&&a.push(m)}return a}function Nk(n,l,a){const s=ek(n.schema,l);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=s.commaSeparated?YS(a):lk(a)),s.property==="style"){let o=typeof a=="object"?a:Tk(n,String(a));return n.stylePropertyNameCase==="css"&&(o=Ek(o)),["style",o]}return[n.elementAttributeNameCase==="react"&&s.space?PS[s.property]||s.property:s.attribute,a]}}function Tk(n,l){try{return ck(l,{reactCompat:!0})}catch(a){if(n.ignoreInvalidStyle)return{};const s=a,o=new Ut("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:s,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=n.filePath||void 0,o.url=Gg+"#cannot-parse-style-attribute",o}}function Kg(n,l,a){let s;if(!a)s={type:"Literal",value:l};else if(l.includes(".")){const o=l.split(".");let c=-1,f;for(;++c<o.length;){const m=m0(o[c])?{type:"Identifier",name:o[c]}:{type:"Literal",value:o[c]};f=f?{type:"MemberExpression",object:f,property:m,computed:!!(c&&m.type==="Literal"),optional:!1}:m}s=f}else s=m0(l)&&!/^[a-z]/.test(l)?{type:"Identifier",name:l}:{type:"Literal",value:l};if(s.type==="Literal"){const o=s.value;return Df.call(n.components,o)?n.components[o]:o}if(n.evaluater)return n.evaluater.evaluateExpression(s);xr(n)}function xr(n,l){const a=new Ut("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:l,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=n.filePath||void 0,a.url=Gg+"#cannot-handle-mdx-estrees-without-createevaluater",a}function Ek(n){const l={};let a;for(a in n)Df.call(n,a)&&(l[Ak(a)]=n[a]);return l}function Ak(n){let l=n.replace(hk,Dk);return l.slice(0,3)==="ms-"&&(l="-"+l),l}function Dk(n){return"-"+n.toLowerCase()}const Ec={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},_k={};function Of(n,l){const a=_k,s=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,o=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return Zg(n,s,o)}function Zg(n,l,a){if(Mk(n)){if("value"in n)return n.type==="html"&&!a?"":n.value;if(l&&"alt"in n&&n.alt)return n.alt;if("children"in n)return z0(n.children,l,a)}return Array.isArray(n)?z0(n,l,a):""}function z0(n,l,a){const s=[];let o=-1;for(;++o<n.length;)s[o]=Zg(n[o],l,a);return s.join("")}function Mk(n){return!!(n&&typeof n=="object")}const j0=document.createElement("i");function Rf(n){const l="&"+n+";";j0.innerHTML=l;const a=j0.textContent;return a.charCodeAt(a.length-1)===59&&n!=="semi"||a===l?!1:a}function cn(n,l,a,s){const o=n.length;let c=0,f;if(l<0?l=-l>o?0:o+l:l=l>o?o:l,a=a>0?a:0,s.length<1e4)f=Array.from(s),f.unshift(l,a),n.splice(...f);else for(a&&n.splice(l,a);c<s.length;)f=s.slice(c,c+1e4),f.unshift(l,0),n.splice(...f),c+=1e4,l+=1e4}function wn(n,l){return n.length>0?(cn(n,n.length,0,l),n):l}const C0={}.hasOwnProperty;function $g(n){const l={};let a=-1;for(;++a<n.length;)Ok(l,n[a]);return l}function Ok(n,l){let a;for(a in l){const o=(C0.call(n,a)?n[a]:void 0)||(n[a]={}),c=l[a];let f;if(c)for(f in c){C0.call(o,f)||(o[f]=[]);const m=c[f];Rk(o[f],Array.isArray(m)?m:m?[m]:[])}}}function Rk(n,l){let a=-1;const s=[];for(;++a<l.length;)(l[a].add==="after"?n:s).push(l[a]);cn(n,0,0,s)}function Pg(n,l){const a=Number.parseInt(n,l);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function _n(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qt=Yi(/[A-Za-z]/),Lt=Yi(/[\dA-Za-z]/),Lk=Yi(/[#-'*+\--9=?A-Z^-~]/);function $s(n){return n!==null&&(n<32||n===127)}const rf=Yi(/\d/),Uk=Yi(/[\dA-Fa-f]/),Bk=Yi(/[!-/:-@[-`{-~]/);function xe(n){return n!==null&&n<-2}function Ke(n){return n!==null&&(n<0||n===32)}function _e(n){return n===-2||n===-1||n===32}const ao=Yi(new RegExp("\\p{P}|\\p{S}","u")),gl=Yi(/\s/);function Yi(n){return l;function l(a){return a!==null&&a>-1&&n.test(String.fromCharCode(a))}}function ga(n){const l=[];let a=-1,s=0,o=0;for(;++a<n.length;){const c=n.charCodeAt(a);let f="";if(c===37&&Lt(n.charCodeAt(a+1))&&Lt(n.charCodeAt(a+2)))o=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(f=String.fromCharCode(c));else if(c>55295&&c<57344){const m=n.charCodeAt(a+1);c<56320&&m>56319&&m<57344?(f=String.fromCharCode(c,m),o=1):f="�"}else f=String.fromCharCode(c);f&&(l.push(n.slice(s,a),encodeURIComponent(f)),s=a+o+1,f=""),o&&(a+=o,o=0)}return l.join("")+n.slice(s)}function Le(n,l,a,s){const o=s?s-1:Number.POSITIVE_INFINITY;let c=0;return f;function f(y){return _e(y)?(n.enter(a),m(y)):l(y)}function m(y){return _e(y)&&c++<o?(n.consume(y),m):(n.exit(a),l(y))}}const qk={tokenize:Hk};function Hk(n){const l=n.attempt(this.parser.constructs.contentInitial,s,o);let a;return l;function s(m){if(m===null){n.consume(m);return}return n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),Le(n,l,"linePrefix")}function o(m){return n.enter("paragraph"),c(m)}function c(m){const y=n.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=y),a=y,f(m)}function f(m){if(m===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(m);return}return xe(m)?(n.consume(m),n.exit("chunkText"),c):(n.consume(m),f)}}const Qk={tokenize:Yk},N0={tokenize:Fk};function Yk(n){const l=this,a=[];let s=0,o,c,f;return m;function m(L){if(s<a.length){const ne=a[s];return l.containerState=ne[1],n.attempt(ne[0].continuation,y,p)(L)}return p(L)}function y(L){if(s++,l.containerState._closeFlow){l.containerState._closeFlow=void 0,o&&U();const ne=l.events.length;let ee=ne,D;for(;ee--;)if(l.events[ee][0]==="exit"&&l.events[ee][1].type==="chunkFlow"){D=l.events[ee][1].end;break}j(s);let P=ne;for(;P<l.events.length;)l.events[P][1].end={...D},P++;return cn(l.events,ee+1,0,l.events.slice(ne)),l.events.length=P,p(L)}return m(L)}function p(L){if(s===a.length){if(!o)return S(L);if(o.currentConstruct&&o.currentConstruct.concrete)return z(L);l.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return l.containerState={},n.check(N0,x,g)(L)}function x(L){return o&&U(),j(s),S(L)}function g(L){return l.parser.lazy[l.now().line]=s!==a.length,f=l.now().offset,z(L)}function S(L){return l.containerState={},n.attempt(N0,k,z)(L)}function k(L){return s++,a.push([l.currentConstruct,l.containerState]),S(L)}function z(L){if(L===null){o&&U(),j(0),n.consume(L);return}return o=o||l.parser.flow(l.now()),n.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:c}),E(L)}function E(L){if(L===null){M(n.exit("chunkFlow"),!0),j(0),n.consume(L);return}return xe(L)?(n.consume(L),M(n.exit("chunkFlow")),s=0,l.interrupt=void 0,m):(n.consume(L),E)}function M(L,ne){const ee=l.sliceStream(L);if(ne&&ee.push(null),L.previous=c,c&&(c.next=L),c=L,o.defineSkip(L.start),o.write(ee),l.parser.lazy[L.start.line]){let D=o.events.length;for(;D--;)if(o.events[D][1].start.offset<f&&(!o.events[D][1].end||o.events[D][1].end.offset>f))return;const P=l.events.length;let le=P,ue,R;for(;le--;)if(l.events[le][0]==="exit"&&l.events[le][1].type==="chunkFlow"){if(ue){R=l.events[le][1].end;break}ue=!0}for(j(s),D=P;D<l.events.length;)l.events[D][1].end={...R},D++;cn(l.events,le+1,0,l.events.slice(P)),l.events.length=D}}function j(L){let ne=a.length;for(;ne-- >L;){const ee=a[ne];l.containerState=ee[1],ee[0].exit.call(l,n)}a.length=L}function U(){o.write([null]),c=void 0,o=void 0,l.containerState._closeFlow=void 0}}function Fk(n,l,a){return Le(n,n.attempt(this.parser.constructs.document,l,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ha(n){if(n===null||Ke(n)||gl(n))return 1;if(ao(n))return 2}function ro(n,l,a){const s=[];let o=-1;for(;++o<n.length;){const c=n[o].resolveAll;c&&!s.includes(c)&&(l=c(l,a),s.push(c))}return l}const sf={name:"attention",resolveAll:Vk,tokenize:Gk};function Vk(n,l){let a=-1,s,o,c,f,m,y,p,x;for(;++a<n.length;)if(n[a][0]==="enter"&&n[a][1].type==="attentionSequence"&&n[a][1]._close){for(s=a;s--;)if(n[s][0]==="exit"&&n[s][1].type==="attentionSequence"&&n[s][1]._open&&l.sliceSerialize(n[s][1]).charCodeAt(0)===l.sliceSerialize(n[a][1]).charCodeAt(0)){if((n[s][1]._close||n[a][1]._open)&&(n[a][1].end.offset-n[a][1].start.offset)%3&&!((n[s][1].end.offset-n[s][1].start.offset+n[a][1].end.offset-n[a][1].start.offset)%3))continue;y=n[s][1].end.offset-n[s][1].start.offset>1&&n[a][1].end.offset-n[a][1].start.offset>1?2:1;const g={...n[s][1].end},S={...n[a][1].start};T0(g,-y),T0(S,y),f={type:y>1?"strongSequence":"emphasisSequence",start:g,end:{...n[s][1].end}},m={type:y>1?"strongSequence":"emphasisSequence",start:{...n[a][1].start},end:S},c={type:y>1?"strongText":"emphasisText",start:{...n[s][1].end},end:{...n[a][1].start}},o={type:y>1?"strong":"emphasis",start:{...f.start},end:{...m.end}},n[s][1].end={...f.start},n[a][1].start={...m.end},p=[],n[s][1].end.offset-n[s][1].start.offset&&(p=wn(p,[["enter",n[s][1],l],["exit",n[s][1],l]])),p=wn(p,[["enter",o,l],["enter",f,l],["exit",f,l],["enter",c,l]]),p=wn(p,ro(l.parser.constructs.insideSpan.null,n.slice(s+1,a),l)),p=wn(p,[["exit",c,l],["enter",m,l],["exit",m,l],["exit",o,l]]),n[a][1].end.offset-n[a][1].start.offset?(x=2,p=wn(p,[["enter",n[a][1],l],["exit",n[a][1],l]])):x=0,cn(n,s-1,a-s+3,p),a=s+p.length-x-2;break}}for(a=-1;++a<n.length;)n[a][1].type==="attentionSequence"&&(n[a][1].type="data");return n}function Gk(n,l){const a=this.parser.constructs.attentionMarkers.null,s=this.previous,o=ha(s);let c;return f;function f(y){return c=y,n.enter("attentionSequence"),m(y)}function m(y){if(y===c)return n.consume(y),m;const p=n.exit("attentionSequence"),x=ha(y),g=!x||x===2&&o||a.includes(y),S=!o||o===2&&x||a.includes(s);return p._open=!!(c===42?g:g&&(o||!S)),p._close=!!(c===42?S:S&&(x||!g)),l(y)}}function T0(n,l){n.column+=l,n.offset+=l,n._bufferIndex+=l}const Xk={name:"autolink",tokenize:Ik};function Ik(n,l,a){let s=0;return o;function o(k){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(k),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),c}function c(k){return Qt(k)?(n.consume(k),f):k===64?a(k):p(k)}function f(k){return k===43||k===45||k===46||Lt(k)?(s=1,m(k)):p(k)}function m(k){return k===58?(n.consume(k),s=0,y):(k===43||k===45||k===46||Lt(k))&&s++<32?(n.consume(k),m):(s=0,p(k))}function y(k){return k===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(k),n.exit("autolinkMarker"),n.exit("autolink"),l):k===null||k===32||k===60||$s(k)?a(k):(n.consume(k),y)}function p(k){return k===64?(n.consume(k),x):Lk(k)?(n.consume(k),p):a(k)}function x(k){return Lt(k)?g(k):a(k)}function g(k){return k===46?(n.consume(k),s=0,x):k===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(k),n.exit("autolinkMarker"),n.exit("autolink"),l):S(k)}function S(k){if((k===45||Lt(k))&&s++<63){const z=k===45?S:g;return n.consume(k),z}return a(k)}}const zr={partial:!0,tokenize:Kk};function Kk(n,l,a){return s;function s(c){return _e(c)?Le(n,o,"linePrefix")(c):o(c)}function o(c){return c===null||xe(c)?l(c):a(c)}}const Jg={continuation:{tokenize:$k},exit:Pk,name:"blockQuote",tokenize:Zk};function Zk(n,l,a){const s=this;return o;function o(f){if(f===62){const m=s.containerState;return m.open||(n.enter("blockQuote",{_container:!0}),m.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(f),n.exit("blockQuoteMarker"),c}return a(f)}function c(f){return _e(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),l):(n.exit("blockQuotePrefix"),l(f))}}function $k(n,l,a){const s=this;return o;function o(f){return _e(f)?Le(n,c,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):c(f)}function c(f){return n.attempt(Jg,l,a)(f)}}function Pk(n){n.exit("blockQuote")}const Wg={name:"characterEscape",tokenize:Jk};function Jk(n,l,a){return s;function s(c){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(c),n.exit("escapeMarker"),o}function o(c){return Bk(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),l):a(c)}}const ey={name:"characterReference",tokenize:Wk};function Wk(n,l,a){const s=this;let o=0,c,f;return m;function m(g){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),y}function y(g){return g===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(g),n.exit("characterReferenceMarkerNumeric"),p):(n.enter("characterReferenceValue"),c=31,f=Lt,x(g))}function p(g){return g===88||g===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(g),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),c=6,f=Uk,x):(n.enter("characterReferenceValue"),c=7,f=rf,x(g))}function x(g){if(g===59&&o){const S=n.exit("characterReferenceValue");return f===Lt&&!Rf(s.sliceSerialize(S))?a(g):(n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),n.exit("characterReference"),l)}return f(g)&&o++<c?(n.consume(g),x):a(g)}}const E0={partial:!0,tokenize:tw},A0={concrete:!0,name:"codeFenced",tokenize:ew};function ew(n,l,a){const s=this,o={partial:!0,tokenize:ee};let c=0,f=0,m;return y;function y(D){return p(D)}function p(D){const P=s.events[s.events.length-1];return c=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,m=D,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),x(D)}function x(D){return D===m?(f++,n.consume(D),x):f<3?a(D):(n.exit("codeFencedFenceSequence"),_e(D)?Le(n,g,"whitespace")(D):g(D))}function g(D){return D===null||xe(D)?(n.exit("codeFencedFence"),s.interrupt?l(D):n.check(E0,E,ne)(D)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),S(D))}function S(D){return D===null||xe(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),g(D)):_e(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Le(n,k,"whitespace")(D)):D===96&&D===m?a(D):(n.consume(D),S)}function k(D){return D===null||xe(D)?g(D):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),z(D))}function z(D){return D===null||xe(D)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),g(D)):D===96&&D===m?a(D):(n.consume(D),z)}function E(D){return n.attempt(o,ne,M)(D)}function M(D){return n.enter("lineEnding"),n.consume(D),n.exit("lineEnding"),j}function j(D){return c>0&&_e(D)?Le(n,U,"linePrefix",c+1)(D):U(D)}function U(D){return D===null||xe(D)?n.check(E0,E,ne)(D):(n.enter("codeFlowValue"),L(D))}function L(D){return D===null||xe(D)?(n.exit("codeFlowValue"),U(D)):(n.consume(D),L)}function ne(D){return n.exit("codeFenced"),l(D)}function ee(D,P,le){let ue=0;return R;function R(W){return D.enter("lineEnding"),D.consume(W),D.exit("lineEnding"),V}function V(W){return D.enter("codeFencedFence"),_e(W)?Le(D,X,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):X(W)}function X(W){return W===m?(D.enter("codeFencedFenceSequence"),fe(W)):le(W)}function fe(W){return W===m?(ue++,D.consume(W),fe):ue>=f?(D.exit("codeFencedFenceSequence"),_e(W)?Le(D,re,"whitespace")(W):re(W)):le(W)}function re(W){return W===null||xe(W)?(D.exit("codeFencedFence"),P(W)):le(W)}}}function tw(n,l,a){const s=this;return o;function o(f){return f===null?a(f):(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),c)}function c(f){return s.parser.lazy[s.now().line]?a(f):l(f)}}const Ac={name:"codeIndented",tokenize:iw},nw={partial:!0,tokenize:lw};function iw(n,l,a){const s=this;return o;function o(p){return n.enter("codeIndented"),Le(n,c,"linePrefix",5)(p)}function c(p){const x=s.events[s.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?f(p):a(p)}function f(p){return p===null?y(p):xe(p)?n.attempt(nw,f,y)(p):(n.enter("codeFlowValue"),m(p))}function m(p){return p===null||xe(p)?(n.exit("codeFlowValue"),f(p)):(n.consume(p),m)}function y(p){return n.exit("codeIndented"),l(p)}}function lw(n,l,a){const s=this;return o;function o(f){return s.parser.lazy[s.now().line]?a(f):xe(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),o):Le(n,c,"linePrefix",5)(f)}function c(f){const m=s.events[s.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?l(f):xe(f)?o(f):a(f)}}const aw={name:"codeText",previous:sw,resolve:rw,tokenize:ow};function rw(n){let l=n.length-4,a=3,s,o;if((n[a][1].type==="lineEnding"||n[a][1].type==="space")&&(n[l][1].type==="lineEnding"||n[l][1].type==="space")){for(s=a;++s<l;)if(n[s][1].type==="codeTextData"){n[a][1].type="codeTextPadding",n[l][1].type="codeTextPadding",a+=2,l-=2;break}}for(s=a-1,l++;++s<=l;)o===void 0?s!==l&&n[s][1].type!=="lineEnding"&&(o=s):(s===l||n[s][1].type==="lineEnding")&&(n[o][1].type="codeTextData",s!==o+2&&(n[o][1].end=n[s-1][1].end,n.splice(o+2,s-o-2),l-=s-o-2,s=o+2),o=void 0);return n}function sw(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ow(n,l,a){let s=0,o,c;return f;function f(g){return n.enter("codeText"),n.enter("codeTextSequence"),m(g)}function m(g){return g===96?(n.consume(g),s++,m):(n.exit("codeTextSequence"),y(g))}function y(g){return g===null?a(g):g===32?(n.enter("space"),n.consume(g),n.exit("space"),y):g===96?(c=n.enter("codeTextSequence"),o=0,x(g)):xe(g)?(n.enter("lineEnding"),n.consume(g),n.exit("lineEnding"),y):(n.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||xe(g)?(n.exit("codeTextData"),y(g)):(n.consume(g),p)}function x(g){return g===96?(n.consume(g),o++,x):o===s?(n.exit("codeTextSequence"),n.exit("codeText"),l(g)):(c.type="codeTextData",p(g))}}class uw{constructor(l){this.left=l?[...l]:[],this.right=[]}get(l){if(l<0||l>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+l+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return l<this.left.length?this.left[l]:this.right[this.right.length-l+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(l,a){const s=a??Number.POSITIVE_INFINITY;return s<this.left.length?this.left.slice(l,s):l>this.left.length?this.right.slice(this.right.length-s+this.left.length,this.right.length-l+this.left.length).reverse():this.left.slice(l).concat(this.right.slice(this.right.length-s+this.left.length).reverse())}splice(l,a,s){const o=a||0;this.setCursor(Math.trunc(l));const c=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return s&&fr(this.left,s),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(l){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(l)}pushMany(l){this.setCursor(Number.POSITIVE_INFINITY),fr(this.left,l)}unshift(l){this.setCursor(0),this.right.push(l)}unshiftMany(l){this.setCursor(0),fr(this.right,l.reverse())}setCursor(l){if(!(l===this.left.length||l>this.left.length&&this.right.length===0||l<0&&this.left.length===0))if(l<this.left.length){const a=this.left.splice(l,Number.POSITIVE_INFINITY);fr(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-l,Number.POSITIVE_INFINITY);fr(this.left,a.reverse())}}}function fr(n,l){let a=0;if(l.length<1e4)n.push(...l);else for(;a<l.length;)n.push(...l.slice(a,a+1e4)),a+=1e4}function ty(n){const l={};let a=-1,s,o,c,f,m,y,p;const x=new uw(n);for(;++a<x.length;){for(;a in l;)a=l[a];if(s=x.get(a),a&&s[1].type==="chunkFlow"&&x.get(a-1)[1].type==="listItemPrefix"&&(y=s[1]._tokenizer.events,c=0,c<y.length&&y[c][1].type==="lineEndingBlank"&&(c+=2),c<y.length&&y[c][1].type==="content"))for(;++c<y.length&&y[c][1].type!=="content";)y[c][1].type==="chunkText"&&(y[c][1]._isInFirstContentOfListItem=!0,c++);if(s[0]==="enter")s[1].contentType&&(Object.assign(l,cw(x,a)),a=l[a],p=!0);else if(s[1]._container){for(c=a,o=void 0;c--;)if(f=x.get(c),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(o&&(x.get(o)[1].type="lineEndingBlank"),f[1].type="lineEnding",o=c);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;o&&(s[1].end={...x.get(o)[1].start},m=x.slice(o,a),m.unshift(s),x.splice(o,a-o+1,m))}}return cn(n,0,Number.POSITIVE_INFINITY,x.slice(0)),!p}function cw(n,l){const a=n.get(l)[1],s=n.get(l)[2];let o=l-1;const c=[];let f=a._tokenizer;f||(f=s.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const m=f.events,y=[],p={};let x,g,S=-1,k=a,z=0,E=0;const M=[E];for(;k;){for(;n.get(++o)[1]!==k;);c.push(o),k._tokenizer||(x=s.sliceStream(k),k.next||x.push(null),g&&f.defineSkip(k.start),k._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(x),k._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),g=k,k=k.next}for(k=a;++S<m.length;)m[S][0]==="exit"&&m[S-1][0]==="enter"&&m[S][1].type===m[S-1][1].type&&m[S][1].start.line!==m[S][1].end.line&&(E=S+1,M.push(E),k._tokenizer=void 0,k.previous=void 0,k=k.next);for(f.events=[],k?(k._tokenizer=void 0,k.previous=void 0):M.pop(),S=M.length;S--;){const j=m.slice(M[S],M[S+1]),U=c.pop();y.push([U,U+j.length-1]),n.splice(U,2,j)}for(y.reverse(),S=-1;++S<y.length;)p[z+y[S][0]]=z+y[S][1],z+=y[S][1]-y[S][0]-1;return p}const fw={resolve:hw,tokenize:mw},dw={partial:!0,tokenize:pw};function hw(n){return ty(n),n}function mw(n,l){let a;return s;function s(m){return n.enter("content"),a=n.enter("chunkContent",{contentType:"content"}),o(m)}function o(m){return m===null?c(m):xe(m)?n.check(dw,f,c)(m):(n.consume(m),o)}function c(m){return n.exit("chunkContent"),n.exit("content"),l(m)}function f(m){return n.consume(m),n.exit("chunkContent"),a.next=n.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,o}}function pw(n,l,a){const s=this;return o;function o(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),Le(n,c,"linePrefix")}function c(f){if(f===null||xe(f))return a(f);const m=s.events[s.events.length-1];return!s.parser.constructs.disable.null.includes("codeIndented")&&m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?l(f):n.interrupt(s.parser.constructs.flow,a,l)(f)}}function ny(n,l,a,s,o,c,f,m,y){const p=y||Number.POSITIVE_INFINITY;let x=0;return g;function g(j){return j===60?(n.enter(s),n.enter(o),n.enter(c),n.consume(j),n.exit(c),S):j===null||j===32||j===41||$s(j)?a(j):(n.enter(s),n.enter(f),n.enter(m),n.enter("chunkString",{contentType:"string"}),E(j))}function S(j){return j===62?(n.enter(c),n.consume(j),n.exit(c),n.exit(o),n.exit(s),l):(n.enter(m),n.enter("chunkString",{contentType:"string"}),k(j))}function k(j){return j===62?(n.exit("chunkString"),n.exit(m),S(j)):j===null||j===60||xe(j)?a(j):(n.consume(j),j===92?z:k)}function z(j){return j===60||j===62||j===92?(n.consume(j),k):k(j)}function E(j){return!x&&(j===null||j===41||Ke(j))?(n.exit("chunkString"),n.exit(m),n.exit(f),n.exit(s),l(j)):x<p&&j===40?(n.consume(j),x++,E):j===41?(n.consume(j),x--,E):j===null||j===32||j===40||$s(j)?a(j):(n.consume(j),j===92?M:E)}function M(j){return j===40||j===41||j===92?(n.consume(j),E):E(j)}}function iy(n,l,a,s,o,c){const f=this;let m=0,y;return p;function p(k){return n.enter(s),n.enter(o),n.consume(k),n.exit(o),n.enter(c),x}function x(k){return m>999||k===null||k===91||k===93&&!y||k===94&&!m&&"_hiddenFootnoteSupport"in f.parser.constructs?a(k):k===93?(n.exit(c),n.enter(o),n.consume(k),n.exit(o),n.exit(s),l):xe(k)?(n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),x):(n.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===null||k===91||k===93||xe(k)||m++>999?(n.exit("chunkString"),x(k)):(n.consume(k),y||(y=!_e(k)),k===92?S:g)}function S(k){return k===91||k===92||k===93?(n.consume(k),m++,g):g(k)}}function ly(n,l,a,s,o,c){let f;return m;function m(S){return S===34||S===39||S===40?(n.enter(s),n.enter(o),n.consume(S),n.exit(o),f=S===40?41:S,y):a(S)}function y(S){return S===f?(n.enter(o),n.consume(S),n.exit(o),n.exit(s),l):(n.enter(c),p(S))}function p(S){return S===f?(n.exit(c),y(f)):S===null?a(S):xe(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),Le(n,p,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),x(S))}function x(S){return S===f||S===null||xe(S)?(n.exit("chunkString"),p(S)):(n.consume(S),S===92?g:x)}function g(S){return S===f||S===92?(n.consume(S),x):x(S)}}function pr(n,l){let a;return s;function s(o){return xe(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),a=!0,s):_e(o)?Le(n,s,a?"linePrefix":"lineSuffix")(o):l(o)}}const gw={name:"definition",tokenize:xw},yw={partial:!0,tokenize:bw};function xw(n,l,a){const s=this;let o;return c;function c(k){return n.enter("definition"),f(k)}function f(k){return iy.call(s,n,m,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(k)}function m(k){return o=_n(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)),k===58?(n.enter("definitionMarker"),n.consume(k),n.exit("definitionMarker"),y):a(k)}function y(k){return Ke(k)?pr(n,p)(k):p(k)}function p(k){return ny(n,x,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(k)}function x(k){return n.attempt(yw,g,g)(k)}function g(k){return _e(k)?Le(n,S,"whitespace")(k):S(k)}function S(k){return k===null||xe(k)?(n.exit("definition"),s.parser.defined.push(o),l(k)):a(k)}}function bw(n,l,a){return s;function s(m){return Ke(m)?pr(n,o)(m):a(m)}function o(m){return ly(n,c,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(m)}function c(m){return _e(m)?Le(n,f,"whitespace")(m):f(m)}function f(m){return m===null||xe(m)?l(m):a(m)}}const vw={name:"hardBreakEscape",tokenize:Sw};function Sw(n,l,a){return s;function s(c){return n.enter("hardBreakEscape"),n.consume(c),o}function o(c){return xe(c)?(n.exit("hardBreakEscape"),l(c)):a(c)}}const kw={name:"headingAtx",resolve:ww,tokenize:zw};function ww(n,l){let a=n.length-2,s=3,o,c;return n[s][1].type==="whitespace"&&(s+=2),a-2>s&&n[a][1].type==="whitespace"&&(a-=2),n[a][1].type==="atxHeadingSequence"&&(s===a-1||a-4>s&&n[a-2][1].type==="whitespace")&&(a-=s+1===a?2:4),a>s&&(o={type:"atxHeadingText",start:n[s][1].start,end:n[a][1].end},c={type:"chunkText",start:n[s][1].start,end:n[a][1].end,contentType:"text"},cn(n,s,a-s+1,[["enter",o,l],["enter",c,l],["exit",c,l],["exit",o,l]])),n}function zw(n,l,a){let s=0;return o;function o(x){return n.enter("atxHeading"),c(x)}function c(x){return n.enter("atxHeadingSequence"),f(x)}function f(x){return x===35&&s++<6?(n.consume(x),f):x===null||Ke(x)?(n.exit("atxHeadingSequence"),m(x)):a(x)}function m(x){return x===35?(n.enter("atxHeadingSequence"),y(x)):x===null||xe(x)?(n.exit("atxHeading"),l(x)):_e(x)?Le(n,m,"whitespace")(x):(n.enter("atxHeadingText"),p(x))}function y(x){return x===35?(n.consume(x),y):(n.exit("atxHeadingSequence"),m(x))}function p(x){return x===null||x===35||Ke(x)?(n.exit("atxHeadingText"),m(x)):(n.consume(x),p)}}const jw=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],D0=["pre","script","style","textarea"],Cw={concrete:!0,name:"htmlFlow",resolveTo:Ew,tokenize:Aw},Nw={partial:!0,tokenize:_w},Tw={partial:!0,tokenize:Dw};function Ew(n){let l=n.length;for(;l--&&!(n[l][0]==="enter"&&n[l][1].type==="htmlFlow"););return l>1&&n[l-2][1].type==="linePrefix"&&(n[l][1].start=n[l-2][1].start,n[l+1][1].start=n[l-2][1].start,n.splice(l-2,2)),n}function Aw(n,l,a){const s=this;let o,c,f,m,y;return p;function p(v){return x(v)}function x(v){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(v),g}function g(v){return v===33?(n.consume(v),S):v===47?(n.consume(v),c=!0,E):v===63?(n.consume(v),o=3,s.interrupt?l:C):Qt(v)?(n.consume(v),f=String.fromCharCode(v),M):a(v)}function S(v){return v===45?(n.consume(v),o=2,k):v===91?(n.consume(v),o=5,m=0,z):Qt(v)?(n.consume(v),o=4,s.interrupt?l:C):a(v)}function k(v){return v===45?(n.consume(v),s.interrupt?l:C):a(v)}function z(v){const Y="CDATA[";return v===Y.charCodeAt(m++)?(n.consume(v),m===Y.length?s.interrupt?l:X:z):a(v)}function E(v){return Qt(v)?(n.consume(v),f=String.fromCharCode(v),M):a(v)}function M(v){if(v===null||v===47||v===62||Ke(v)){const Y=v===47,te=f.toLowerCase();return!Y&&!c&&D0.includes(te)?(o=1,s.interrupt?l(v):X(v)):jw.includes(f.toLowerCase())?(o=6,Y?(n.consume(v),j):s.interrupt?l(v):X(v)):(o=7,s.interrupt&&!s.parser.lazy[s.now().line]?a(v):c?U(v):L(v))}return v===45||Lt(v)?(n.consume(v),f+=String.fromCharCode(v),M):a(v)}function j(v){return v===62?(n.consume(v),s.interrupt?l:X):a(v)}function U(v){return _e(v)?(n.consume(v),U):R(v)}function L(v){return v===47?(n.consume(v),R):v===58||v===95||Qt(v)?(n.consume(v),ne):_e(v)?(n.consume(v),L):R(v)}function ne(v){return v===45||v===46||v===58||v===95||Lt(v)?(n.consume(v),ne):ee(v)}function ee(v){return v===61?(n.consume(v),D):_e(v)?(n.consume(v),ee):L(v)}function D(v){return v===null||v===60||v===61||v===62||v===96?a(v):v===34||v===39?(n.consume(v),y=v,P):_e(v)?(n.consume(v),D):le(v)}function P(v){return v===y?(n.consume(v),y=null,ue):v===null||xe(v)?a(v):(n.consume(v),P)}function le(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||Ke(v)?ee(v):(n.consume(v),le)}function ue(v){return v===47||v===62||_e(v)?L(v):a(v)}function R(v){return v===62?(n.consume(v),V):a(v)}function V(v){return v===null||xe(v)?X(v):_e(v)?(n.consume(v),V):a(v)}function X(v){return v===45&&o===2?(n.consume(v),_):v===60&&o===1?(n.consume(v),$):v===62&&o===4?(n.consume(v),T):v===63&&o===3?(n.consume(v),C):v===93&&o===5?(n.consume(v),Se):xe(v)&&(o===6||o===7)?(n.exit("htmlFlowData"),n.check(Nw,G,fe)(v)):v===null||xe(v)?(n.exit("htmlFlowData"),fe(v)):(n.consume(v),X)}function fe(v){return n.check(Tw,re,G)(v)}function re(v){return n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),W}function W(v){return v===null||xe(v)?fe(v):(n.enter("htmlFlowData"),X(v))}function _(v){return v===45?(n.consume(v),C):X(v)}function $(v){return v===47?(n.consume(v),f="",ce):X(v)}function ce(v){if(v===62){const Y=f.toLowerCase();return D0.includes(Y)?(n.consume(v),T):X(v)}return Qt(v)&&f.length<8?(n.consume(v),f+=String.fromCharCode(v),ce):X(v)}function Se(v){return v===93?(n.consume(v),C):X(v)}function C(v){return v===62?(n.consume(v),T):v===45&&o===2?(n.consume(v),C):X(v)}function T(v){return v===null||xe(v)?(n.exit("htmlFlowData"),G(v)):(n.consume(v),T)}function G(v){return n.exit("htmlFlow"),l(v)}}function Dw(n,l,a){const s=this;return o;function o(f){return xe(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),c):a(f)}function c(f){return s.parser.lazy[s.now().line]?a(f):l(f)}}function _w(n,l,a){return s;function s(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),n.attempt(zr,l,a)}}const Mw={name:"htmlText",tokenize:Ow};function Ow(n,l,a){const s=this;let o,c,f;return m;function m(C){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(C),y}function y(C){return C===33?(n.consume(C),p):C===47?(n.consume(C),ee):C===63?(n.consume(C),L):Qt(C)?(n.consume(C),le):a(C)}function p(C){return C===45?(n.consume(C),x):C===91?(n.consume(C),c=0,z):Qt(C)?(n.consume(C),U):a(C)}function x(C){return C===45?(n.consume(C),k):a(C)}function g(C){return C===null?a(C):C===45?(n.consume(C),S):xe(C)?(f=g,$(C)):(n.consume(C),g)}function S(C){return C===45?(n.consume(C),k):g(C)}function k(C){return C===62?_(C):C===45?S(C):g(C)}function z(C){const T="CDATA[";return C===T.charCodeAt(c++)?(n.consume(C),c===T.length?E:z):a(C)}function E(C){return C===null?a(C):C===93?(n.consume(C),M):xe(C)?(f=E,$(C)):(n.consume(C),E)}function M(C){return C===93?(n.consume(C),j):E(C)}function j(C){return C===62?_(C):C===93?(n.consume(C),j):E(C)}function U(C){return C===null||C===62?_(C):xe(C)?(f=U,$(C)):(n.consume(C),U)}function L(C){return C===null?a(C):C===63?(n.consume(C),ne):xe(C)?(f=L,$(C)):(n.consume(C),L)}function ne(C){return C===62?_(C):L(C)}function ee(C){return Qt(C)?(n.consume(C),D):a(C)}function D(C){return C===45||Lt(C)?(n.consume(C),D):P(C)}function P(C){return xe(C)?(f=P,$(C)):_e(C)?(n.consume(C),P):_(C)}function le(C){return C===45||Lt(C)?(n.consume(C),le):C===47||C===62||Ke(C)?ue(C):a(C)}function ue(C){return C===47?(n.consume(C),_):C===58||C===95||Qt(C)?(n.consume(C),R):xe(C)?(f=ue,$(C)):_e(C)?(n.consume(C),ue):_(C)}function R(C){return C===45||C===46||C===58||C===95||Lt(C)?(n.consume(C),R):V(C)}function V(C){return C===61?(n.consume(C),X):xe(C)?(f=V,$(C)):_e(C)?(n.consume(C),V):ue(C)}function X(C){return C===null||C===60||C===61||C===62||C===96?a(C):C===34||C===39?(n.consume(C),o=C,fe):xe(C)?(f=X,$(C)):_e(C)?(n.consume(C),X):(n.consume(C),re)}function fe(C){return C===o?(n.consume(C),o=void 0,W):C===null?a(C):xe(C)?(f=fe,$(C)):(n.consume(C),fe)}function re(C){return C===null||C===34||C===39||C===60||C===61||C===96?a(C):C===47||C===62||Ke(C)?ue(C):(n.consume(C),re)}function W(C){return C===47||C===62||Ke(C)?ue(C):a(C)}function _(C){return C===62?(n.consume(C),n.exit("htmlTextData"),n.exit("htmlText"),l):a(C)}function $(C){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(C),n.exit("lineEnding"),ce}function ce(C){return _e(C)?Le(n,Se,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):Se(C)}function Se(C){return n.enter("htmlTextData"),f(C)}}const Lf={name:"labelEnd",resolveAll:Bw,resolveTo:qw,tokenize:Hw},Rw={tokenize:Qw},Lw={tokenize:Yw},Uw={tokenize:Fw};function Bw(n){let l=-1;const a=[];for(;++l<n.length;){const s=n[l][1];if(a.push(n[l]),s.type==="labelImage"||s.type==="labelLink"||s.type==="labelEnd"){const o=s.type==="labelImage"?4:2;s.type="data",l+=o}}return n.length!==a.length&&cn(n,0,n.length,a),n}function qw(n,l){let a=n.length,s=0,o,c,f,m;for(;a--;)if(o=n[a][1],c){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;n[a][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(f){if(n[a][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(c=a,o.type!=="labelLink")){s=2;break}}else o.type==="labelEnd"&&(f=a);const y={type:n[c][1].type==="labelLink"?"link":"image",start:{...n[c][1].start},end:{...n[n.length-1][1].end}},p={type:"label",start:{...n[c][1].start},end:{...n[f][1].end}},x={type:"labelText",start:{...n[c+s+2][1].end},end:{...n[f-2][1].start}};return m=[["enter",y,l],["enter",p,l]],m=wn(m,n.slice(c+1,c+s+3)),m=wn(m,[["enter",x,l]]),m=wn(m,ro(l.parser.constructs.insideSpan.null,n.slice(c+s+4,f-3),l)),m=wn(m,[["exit",x,l],n[f-2],n[f-1],["exit",p,l]]),m=wn(m,n.slice(f+1)),m=wn(m,[["exit",y,l]]),cn(n,c,n.length,m),n}function Hw(n,l,a){const s=this;let o=s.events.length,c,f;for(;o--;)if((s.events[o][1].type==="labelImage"||s.events[o][1].type==="labelLink")&&!s.events[o][1]._balanced){c=s.events[o][1];break}return m;function m(S){return c?c._inactive?g(S):(f=s.parser.defined.includes(_n(s.sliceSerialize({start:c.end,end:s.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(S),n.exit("labelMarker"),n.exit("labelEnd"),y):a(S)}function y(S){return S===40?n.attempt(Rw,x,f?x:g)(S):S===91?n.attempt(Lw,x,f?p:g)(S):f?x(S):g(S)}function p(S){return n.attempt(Uw,x,g)(S)}function x(S){return l(S)}function g(S){return c._balanced=!0,a(S)}}function Qw(n,l,a){return s;function s(g){return n.enter("resource"),n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),o}function o(g){return Ke(g)?pr(n,c)(g):c(g)}function c(g){return g===41?x(g):ny(n,f,m,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function f(g){return Ke(g)?pr(n,y)(g):x(g)}function m(g){return a(g)}function y(g){return g===34||g===39||g===40?ly(n,p,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):x(g)}function p(g){return Ke(g)?pr(n,x)(g):x(g)}function x(g){return g===41?(n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),n.exit("resource"),l):a(g)}}function Yw(n,l,a){const s=this;return o;function o(m){return iy.call(s,n,c,f,"reference","referenceMarker","referenceString")(m)}function c(m){return s.parser.defined.includes(_n(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)))?l(m):a(m)}function f(m){return a(m)}}function Fw(n,l,a){return s;function s(c){return n.enter("reference"),n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),o}function o(c){return c===93?(n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),n.exit("reference"),l):a(c)}}const Vw={name:"labelStartImage",resolveAll:Lf.resolveAll,tokenize:Gw};function Gw(n,l,a){const s=this;return o;function o(m){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(m),n.exit("labelImageMarker"),c}function c(m){return m===91?(n.enter("labelMarker"),n.consume(m),n.exit("labelMarker"),n.exit("labelImage"),f):a(m)}function f(m){return m===94&&"_hiddenFootnoteSupport"in s.parser.constructs?a(m):l(m)}}const Xw={name:"labelStartLink",resolveAll:Lf.resolveAll,tokenize:Iw};function Iw(n,l,a){const s=this;return o;function o(f){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(f),n.exit("labelMarker"),n.exit("labelLink"),c}function c(f){return f===94&&"_hiddenFootnoteSupport"in s.parser.constructs?a(f):l(f)}}const Dc={name:"lineEnding",tokenize:Kw};function Kw(n,l){return a;function a(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),Le(n,l,"linePrefix")}}const Is={name:"thematicBreak",tokenize:Zw};function Zw(n,l,a){let s=0,o;return c;function c(p){return n.enter("thematicBreak"),f(p)}function f(p){return o=p,m(p)}function m(p){return p===o?(n.enter("thematicBreakSequence"),y(p)):s>=3&&(p===null||xe(p))?(n.exit("thematicBreak"),l(p)):a(p)}function y(p){return p===o?(n.consume(p),s++,y):(n.exit("thematicBreakSequence"),_e(p)?Le(n,m,"whitespace")(p):m(p))}}const Jt={continuation:{tokenize:Ww},exit:tz,name:"list",tokenize:Jw},$w={partial:!0,tokenize:nz},Pw={partial:!0,tokenize:ez};function Jw(n,l,a){const s=this,o=s.events[s.events.length-1];let c=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,f=0;return m;function m(k){const z=s.containerState.type||(k===42||k===43||k===45?"listUnordered":"listOrdered");if(z==="listUnordered"?!s.containerState.marker||k===s.containerState.marker:rf(k)){if(s.containerState.type||(s.containerState.type=z,n.enter(z,{_container:!0})),z==="listUnordered")return n.enter("listItemPrefix"),k===42||k===45?n.check(Is,a,p)(k):p(k);if(!s.interrupt||k===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),y(k)}return a(k)}function y(k){return rf(k)&&++f<10?(n.consume(k),y):(!s.interrupt||f<2)&&(s.containerState.marker?k===s.containerState.marker:k===41||k===46)?(n.exit("listItemValue"),p(k)):a(k)}function p(k){return n.enter("listItemMarker"),n.consume(k),n.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||k,n.check(zr,s.interrupt?a:x,n.attempt($w,S,g))}function x(k){return s.containerState.initialBlankLine=!0,c++,S(k)}function g(k){return _e(k)?(n.enter("listItemPrefixWhitespace"),n.consume(k),n.exit("listItemPrefixWhitespace"),S):a(k)}function S(k){return s.containerState.size=c+s.sliceSerialize(n.exit("listItemPrefix"),!0).length,l(k)}}function Ww(n,l,a){const s=this;return s.containerState._closeFlow=void 0,n.check(zr,o,c);function o(m){return s.containerState.furtherBlankLines=s.containerState.furtherBlankLines||s.containerState.initialBlankLine,Le(n,l,"listItemIndent",s.containerState.size+1)(m)}function c(m){return s.containerState.furtherBlankLines||!_e(m)?(s.containerState.furtherBlankLines=void 0,s.containerState.initialBlankLine=void 0,f(m)):(s.containerState.furtherBlankLines=void 0,s.containerState.initialBlankLine=void 0,n.attempt(Pw,l,f)(m))}function f(m){return s.containerState._closeFlow=!0,s.interrupt=void 0,Le(n,n.attempt(Jt,l,a),"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m)}}function ez(n,l,a){const s=this;return Le(n,o,"listItemIndent",s.containerState.size+1);function o(c){const f=s.events[s.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===s.containerState.size?l(c):a(c)}}function tz(n){n.exit(this.containerState.type)}function nz(n,l,a){const s=this;return Le(n,o,"listItemPrefixWhitespace",s.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(c){const f=s.events[s.events.length-1];return!_e(c)&&f&&f[1].type==="listItemPrefixWhitespace"?l(c):a(c)}}const _0={name:"setextUnderline",resolveTo:iz,tokenize:lz};function iz(n,l){let a=n.length,s,o,c;for(;a--;)if(n[a][0]==="enter"){if(n[a][1].type==="content"){s=a;break}n[a][1].type==="paragraph"&&(o=a)}else n[a][1].type==="content"&&n.splice(a,1),!c&&n[a][1].type==="definition"&&(c=a);const f={type:"setextHeading",start:{...n[s][1].start},end:{...n[n.length-1][1].end}};return n[o][1].type="setextHeadingText",c?(n.splice(o,0,["enter",f,l]),n.splice(c+1,0,["exit",n[s][1],l]),n[s][1].end={...n[c][1].end}):n[s][1]=f,n.push(["exit",f,l]),n}function lz(n,l,a){const s=this;let o;return c;function c(p){let x=s.events.length,g;for(;x--;)if(s.events[x][1].type!=="lineEnding"&&s.events[x][1].type!=="linePrefix"&&s.events[x][1].type!=="content"){g=s.events[x][1].type==="paragraph";break}return!s.parser.lazy[s.now().line]&&(s.interrupt||g)?(n.enter("setextHeadingLine"),o=p,f(p)):a(p)}function f(p){return n.enter("setextHeadingLineSequence"),m(p)}function m(p){return p===o?(n.consume(p),m):(n.exit("setextHeadingLineSequence"),_e(p)?Le(n,y,"lineSuffix")(p):y(p))}function y(p){return p===null||xe(p)?(n.exit("setextHeadingLine"),l(p)):a(p)}}const az={tokenize:rz};function rz(n){const l=this,a=n.attempt(zr,s,n.attempt(this.parser.constructs.flowInitial,o,Le(n,n.attempt(this.parser.constructs.flow,o,n.attempt(fw,o)),"linePrefix")));return a;function s(c){if(c===null){n.consume(c);return}return n.enter("lineEndingBlank"),n.consume(c),n.exit("lineEndingBlank"),l.currentConstruct=void 0,a}function o(c){if(c===null){n.consume(c);return}return n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),l.currentConstruct=void 0,a}}const sz={resolveAll:ry()},oz=ay("string"),uz=ay("text");function ay(n){return{resolveAll:ry(n==="text"?cz:void 0),tokenize:l};function l(a){const s=this,o=this.parser.constructs[n],c=a.attempt(o,f,m);return f;function f(x){return p(x)?c(x):m(x)}function m(x){if(x===null){a.consume(x);return}return a.enter("data"),a.consume(x),y}function y(x){return p(x)?(a.exit("data"),c(x)):(a.consume(x),y)}function p(x){if(x===null)return!0;const g=o[x];let S=-1;if(g)for(;++S<g.length;){const k=g[S];if(!k.previous||k.previous.call(s,s.previous))return!0}return!1}}}function ry(n){return l;function l(a,s){let o=-1,c;for(;++o<=a.length;)c===void 0?a[o]&&a[o][1].type==="data"&&(c=o,o++):(!a[o]||a[o][1].type!=="data")&&(o!==c+2&&(a[c][1].end=a[o-1][1].end,a.splice(c+2,o-c-2),o=c+2),c=void 0);return n?n(a,s):a}}function cz(n,l){let a=0;for(;++a<=n.length;)if((a===n.length||n[a][1].type==="lineEnding")&&n[a-1][1].type==="data"){const s=n[a-1][1],o=l.sliceStream(s);let c=o.length,f=-1,m=0,y;for(;c--;){const p=o[c];if(typeof p=="string"){for(f=p.length;p.charCodeAt(f-1)===32;)m++,f--;if(f)break;f=-1}else if(p===-2)y=!0,m++;else if(p!==-1){c++;break}}if(l._contentTypeTextTrailing&&a===n.length&&(m=0),m){const p={type:a===n.length||y||m<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?f:s.start._bufferIndex+f,_index:s.start._index+c,line:s.end.line,column:s.end.column-m,offset:s.end.offset-m},end:{...s.end}};s.end={...p.start},s.start.offset===s.end.offset?Object.assign(s,p):(n.splice(a,0,["enter",p,l],["exit",p,l]),a+=2)}a++}return n}const fz={42:Jt,43:Jt,45:Jt,48:Jt,49:Jt,50:Jt,51:Jt,52:Jt,53:Jt,54:Jt,55:Jt,56:Jt,57:Jt,62:Jg},dz={91:gw},hz={[-2]:Ac,[-1]:Ac,32:Ac},mz={35:kw,42:Is,45:[_0,Is],60:Cw,61:_0,95:Is,96:A0,126:A0},pz={38:ey,92:Wg},gz={[-5]:Dc,[-4]:Dc,[-3]:Dc,33:Vw,38:ey,42:sf,60:[Xk,Mw],91:Xw,92:[vw,Wg],93:Lf,95:sf,96:aw},yz={null:[sf,sz]},xz={null:[42,95]},bz={null:[]},vz=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:xz,contentInitial:dz,disable:bz,document:fz,flow:mz,flowInitial:hz,insideSpan:yz,string:pz,text:gz},Symbol.toStringTag,{value:"Module"}));function Sz(n,l,a){let s={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const o={},c=[];let f=[],m=[];const y={attempt:P(ee),check:P(D),consume:U,enter:L,exit:ne,interrupt:P(D,{interrupt:!0})},p={code:null,containerState:{},defineSkip:E,events:[],now:z,parser:n,previous:null,sliceSerialize:S,sliceStream:k,write:g};let x=l.tokenize.call(p,y);return l.resolveAll&&c.push(l),p;function g(V){return f=wn(f,V),M(),f[f.length-1]!==null?[]:(le(l,0),p.events=ro(c,p.events,p),p.events)}function S(V,X){return wz(k(V),X)}function k(V){return kz(f,V)}function z(){const{_bufferIndex:V,_index:X,line:fe,column:re,offset:W}=s;return{_bufferIndex:V,_index:X,line:fe,column:re,offset:W}}function E(V){o[V.line]=V.column,R()}function M(){let V;for(;s._index<f.length;){const X=f[s._index];if(typeof X=="string")for(V=s._index,s._bufferIndex<0&&(s._bufferIndex=0);s._index===V&&s._bufferIndex<X.length;)j(X.charCodeAt(s._bufferIndex));else j(X)}}function j(V){x=x(V)}function U(V){xe(V)?(s.line++,s.column=1,s.offset+=V===-3?2:1,R()):V!==-1&&(s.column++,s.offset++),s._bufferIndex<0?s._index++:(s._bufferIndex++,s._bufferIndex===f[s._index].length&&(s._bufferIndex=-1,s._index++)),p.previous=V}function L(V,X){const fe=X||{};return fe.type=V,fe.start=z(),p.events.push(["enter",fe,p]),m.push(fe),fe}function ne(V){const X=m.pop();return X.end=z(),p.events.push(["exit",X,p]),X}function ee(V,X){le(V,X.from)}function D(V,X){X.restore()}function P(V,X){return fe;function fe(re,W,_){let $,ce,Se,C;return Array.isArray(re)?G(re):"tokenize"in re?G([re]):T(re);function T(ae){return me;function me(pe){const we=pe!==null&&ae[pe],dt=pe!==null&&ae.null,St=[...Array.isArray(we)?we:we?[we]:[],...Array.isArray(dt)?dt:dt?[dt]:[]];return G(St)(pe)}}function G(ae){return $=ae,ce=0,ae.length===0?_:v(ae[ce])}function v(ae){return me;function me(pe){return C=ue(),Se=ae,ae.partial||(p.currentConstruct=ae),ae.name&&p.parser.constructs.disable.null.includes(ae.name)?te():ae.tokenize.call(X?Object.assign(Object.create(p),X):p,y,Y,te)(pe)}}function Y(ae){return V(Se,C),W}function te(ae){return C.restore(),++ce<$.length?v($[ce]):_}}}function le(V,X){V.resolveAll&&!c.includes(V)&&c.push(V),V.resolve&&cn(p.events,X,p.events.length-X,V.resolve(p.events.slice(X),p)),V.resolveTo&&(p.events=V.resolveTo(p.events,p))}function ue(){const V=z(),X=p.previous,fe=p.currentConstruct,re=p.events.length,W=Array.from(m);return{from:re,restore:_};function _(){s=V,p.previous=X,p.currentConstruct=fe,p.events.length=re,m=W,R()}}function R(){s.line in o&&s.column<2&&(s.column=o[s.line],s.offset+=o[s.line]-1)}}function kz(n,l){const a=l.start._index,s=l.start._bufferIndex,o=l.end._index,c=l.end._bufferIndex;let f;if(a===o)f=[n[a].slice(s,c)];else{if(f=n.slice(a,o),s>-1){const m=f[0];typeof m=="string"?f[0]=m.slice(s):f.shift()}c>0&&f.push(n[o].slice(0,c))}return f}function wz(n,l){let a=-1;const s=[];let o;for(;++a<n.length;){const c=n[a];let f;if(typeof c=="string")f=c;else switch(c){case-5:{f="\r";break}case-4:{f=`
|
|
20
20
|
`;break}case-3:{f=`\r
|
|
21
|
-
`;break}case-2:{f=l?" ":" ";break}case-1:{if(!l&&o)continue;f=" ";break}default:f=String.fromCharCode(c)}o=c===-2,s.push(f)}return s.join("")}function zz(n){const s={constructs:$g([vz,...(n||{}).extensions||[]]),content:o(qk),defined:[],document:o(Qk),flow:o(az),lazy:{},string:o(oz),text:o(uz)};return s;function o(c){return f;function f(m){return Sz(s,c,m)}}}function jz(n){for(;!ty(n););return n}const _0=/[\0\t\n\r]/g;function Cz(){let n=1,l="",a=!0,s;return o;function o(c,f,m){const y=[];let p,x,g,v,k;for(c=l+(typeof c=="string"?c.toString():new TextDecoder(f||void 0).decode(c)),g=0,l="",a&&(c.charCodeAt(0)===65279&&g++,a=void 0);g<c.length;){if(_0.lastIndex=g,p=_0.exec(c),v=p&&p.index!==void 0?p.index:c.length,k=c.charCodeAt(v),!p){l=c.slice(g);break}if(k===10&&g===v&&s)y.push(-3),s=void 0;else switch(s&&(y.push(-5),s=void 0),g<v&&(y.push(c.slice(g,v)),n+=v-g),k){case 0:{y.push(65533),n++;break}case 9:{for(x=Math.ceil(n/4)*4,y.push(-2);n++<x;)y.push(-1);break}case 10:{y.push(-4),n=1;break}default:s=!0,n=1}g=v+1}return m&&(s&&y.push(-5),l&&y.push(l),y.push(null)),y}}const Nz=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Tz(n){return n.replace(Nz,Ez)}function Ez(n,l,a){if(l)return l;if(a.charCodeAt(0)===35){const o=a.charCodeAt(1),c=o===120||o===88;return Pg(a.slice(c?2:1),c?16:10)}return Of(a)||n}const sy={}.hasOwnProperty;function Az(n,l,a){return typeof l!="string"&&(a=l,l=void 0),Dz(a)(jz(zz(a).document().write(Cz()(n,l,!0))))}function Dz(n){const l={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Dt),autolinkProtocol:ue,autolinkEmail:ue,atxHeading:c(fn),blockQuote:c(dt),characterEscape:ue,characterReference:ue,codeFenced:c(St),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:c(St,f),codeText:c(Xe,f),codeTextData:ue,data:ue,codeFlowValue:ue,definition:c(gt),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:c(ht),hardBreakEscape:c(Nn),hardBreakTrailing:c(Nn),htmlFlow:c(On,f),htmlFlowData:ue,htmlText:c(On,f),htmlTextData:ue,image:c(Fi),label:f,link:c(Dt),listItem:c(Vi),listItemValue:v,listOrdered:c(hi,g),listUnordered:c(hi),paragraph:c(kt),reference:S,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:c(fn),strong:c(Rn),thematicBreak:c(ya)},exit:{atxHeading:y(),atxHeadingSequence:ee,autolink:y(),autolinkEmail:we,autolinkProtocol:pe,blockQuote:y(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:ne,characterReferenceMarkerNumeric:ne,characterReferenceValue:ae,characterReference:me,codeFenced:y(M),codeFencedFence:E,codeFencedFenceInfo:k,codeFencedFenceMeta:z,codeFlowValue:R,codeIndented:y(j),codeText:y(W),codeTextData:R,data:R,definition:y(),definitionDestinationString:ie,definitionLabelString:q,definitionTitleString:L,emphasis:y(),hardBreakEscape:y(K),hardBreakTrailing:y(K),htmlFlow:y(de),htmlFlowData:R,htmlText:y(se),htmlTextData:R,image:y($),label:Se,labelText:ce,lineEnding:G,link:y(_),listItem:y(),listOrdered:y(),listUnordered:y(),paragraph:y(),referenceString:Q,resourceDestinationString:C,resourceTitleString:T,resource:V,setextHeading:y(te),setextHeadingLineSequence:P,setextHeadingText:D,strong:y(),thematicBreak:y()}};oy(l,(n||{}).mdastExtensions||[]);const a={};return s;function s(I){let re={type:"root",children:[]};const be={stack:[re],tokenStack:[],config:l,enter:m,exit:p,buffer:f,resume:x,data:a},Ce=[];let Ee=-1;for(;++Ee<I.length;)if(I[Ee][1].type==="listOrdered"||I[Ee][1].type==="listUnordered")if(I[Ee][0]==="enter")Ce.push(Ee);else{const _t=Ce.pop();Ee=o(I,_t,Ee)}for(Ee=-1;++Ee<I.length;){const _t=l[I[Ee][0]];sy.call(_t,I[Ee][1].type)&&_t[I[Ee][1].type].call(Object.assign({sliceSerialize:I[Ee][2].sliceSerialize},be),I[Ee][1])}if(be.tokenStack.length>0){const _t=be.tokenStack[be.tokenStack.length-1];(_t[1]||M0).call(be,void 0,_t[0])}for(re.position={start:qi(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:qi(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},Ee=-1;++Ee<l.transforms.length;)re=l.transforms[Ee](re)||re;return re}function o(I,re,be){let Ce=re-1,Ee=-1,_t=!1,Mt,zt,lt,jt;for(;++Ce<=be;){const He=I[Ce];switch(He[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{He[0]==="enter"?Ee++:Ee--,jt=void 0;break}case"lineEndingBlank":{He[0]==="enter"&&(Mt&&!jt&&!Ee&&!lt&&(lt=Ce),jt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:jt=void 0}if(!Ee&&He[0]==="enter"&&He[1].type==="listItemPrefix"||Ee===-1&&He[0]==="exit"&&(He[1].type==="listUnordered"||He[1].type==="listOrdered")){if(Mt){let Ln=Ce;for(zt=void 0;Ln--;){const Bt=I[Ln];if(Bt[1].type==="lineEnding"||Bt[1].type==="lineEndingBlank"){if(Bt[0]==="exit")continue;zt&&(I[zt][1].type="lineEndingBlank",_t=!0),Bt[1].type="lineEnding",zt=Ln}else if(!(Bt[1].type==="linePrefix"||Bt[1].type==="blockQuotePrefix"||Bt[1].type==="blockQuotePrefixWhitespace"||Bt[1].type==="blockQuoteMarker"||Bt[1].type==="listItemIndent"))break}lt&&(!zt||lt<zt)&&(Mt._spread=!0),Mt.end=Object.assign({},zt?I[zt][1].start:He[1].end),I.splice(zt||Ce,0,["exit",Mt,He[2]]),Ce++,be++}if(He[1].type==="listItemPrefix"){const Ln={type:"listItem",_spread:!1,start:Object.assign({},He[1].start),end:void 0};Mt=Ln,I.splice(Ce,0,["enter",Ln,He[2]]),Ce++,be++,lt=void 0,jt=!0}}}return I[re][1]._spread=_t,be}function c(I,re){return be;function be(Ce){m.call(this,I(Ce),Ce),re&&re.call(this,Ce)}}function f(){this.stack.push({type:"fragment",children:[]})}function m(I,re,be){this.stack[this.stack.length-1].children.push(I),this.stack.push(I),this.tokenStack.push([re,be||void 0]),I.position={start:qi(re.start),end:void 0}}function y(I){return re;function re(be){I&&I.call(this,be),p.call(this,be)}}function p(I,re){const be=this.stack.pop(),Ce=this.tokenStack.pop();if(Ce)Ce[0].type!==I.type&&(re?re.call(this,I,Ce[0]):(Ce[1]||M0).call(this,I,Ce[0]));else throw new Error("Cannot close `"+I.type+"` ("+mr({start:I.start,end:I.end})+"): it’s not open");be.position.end=qi(I.end)}function x(){return Mf(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(I){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(I),10),this.data.expectingFirstListItemValue=void 0}}function k(){const I=this.resume(),re=this.stack[this.stack.length-1];re.lang=I}function z(){const I=this.resume(),re=this.stack[this.stack.length-1];re.meta=I}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function M(){const I=this.resume(),re=this.stack[this.stack.length-1];re.value=I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function j(){const I=this.resume(),re=this.stack[this.stack.length-1];re.value=I.replace(/(\r?\n|\r)$/g,"")}function q(I){const re=this.resume(),be=this.stack[this.stack.length-1];be.label=re,be.identifier=_n(this.sliceSerialize(I)).toLowerCase()}function L(){const I=this.resume(),re=this.stack[this.stack.length-1];re.title=I}function ie(){const I=this.resume(),re=this.stack[this.stack.length-1];re.url=I}function ee(I){const re=this.stack[this.stack.length-1];if(!re.depth){const be=this.sliceSerialize(I).length;re.depth=be}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function P(I){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(I).codePointAt(0)===61?1:2}function te(){this.data.setextHeadingSlurpLineEnding=void 0}function ue(I){const be=this.stack[this.stack.length-1].children;let Ce=be[be.length-1];(!Ce||Ce.type!=="text")&&(Ce=wt(),Ce.position={start:qi(I.start),end:void 0},be.push(Ce)),this.stack.push(Ce)}function R(I){const re=this.stack.pop();re.value+=this.sliceSerialize(I),re.position.end=qi(I.end)}function G(I){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const be=re.children[re.children.length-1];be.position.end=qi(I.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&l.canContainEols.includes(re.type)&&(ue.call(this,I),R.call(this,I))}function K(){this.data.atHardBreak=!0}function de(){const I=this.resume(),re=this.stack[this.stack.length-1];re.value=I}function se(){const I=this.resume(),re=this.stack[this.stack.length-1];re.value=I}function W(){const I=this.resume(),re=this.stack[this.stack.length-1];re.value=I}function _(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=re,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function $(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=re,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function ce(I){const re=this.sliceSerialize(I),be=this.stack[this.stack.length-2];be.label=Tz(re),be.identifier=_n(re).toLowerCase()}function Se(){const I=this.stack[this.stack.length-1],re=this.resume(),be=this.stack[this.stack.length-1];if(this.data.inReference=!0,be.type==="link"){const Ce=I.children;be.children=Ce}else be.alt=re}function C(){const I=this.resume(),re=this.stack[this.stack.length-1];re.url=I}function T(){const I=this.resume(),re=this.stack[this.stack.length-1];re.title=I}function V(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function Q(I){const re=this.resume(),be=this.stack[this.stack.length-1];be.label=re,be.identifier=_n(this.sliceSerialize(I)).toLowerCase(),this.data.referenceType="full"}function ne(I){this.data.characterReferenceType=I.type}function ae(I){const re=this.sliceSerialize(I),be=this.data.characterReferenceType;let Ce;be?(Ce=Pg(re,be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ce=Of(re);const Ee=this.stack[this.stack.length-1];Ee.value+=Ce}function me(I){const re=this.stack.pop();re.position.end=qi(I.end)}function pe(I){R.call(this,I);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(I)}function we(I){R.call(this,I);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(I)}function dt(){return{type:"blockquote",children:[]}}function St(){return{type:"code",lang:null,meta:null,value:""}}function Xe(){return{type:"inlineCode",value:""}}function gt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ht(){return{type:"emphasis",children:[]}}function fn(){return{type:"heading",depth:0,children:[]}}function Nn(){return{type:"break"}}function On(){return{type:"html",value:""}}function Fi(){return{type:"image",title:null,url:"",alt:null}}function Dt(){return{type:"link",title:null,url:"",children:[]}}function hi(I){return{type:"list",ordered:I.type==="listOrdered",start:null,spread:I._spread,children:[]}}function Vi(I){return{type:"listItem",spread:I._spread,checked:null,children:[]}}function kt(){return{type:"paragraph",children:[]}}function Rn(){return{type:"strong",children:[]}}function wt(){return{type:"text",value:""}}function ya(){return{type:"thematicBreak"}}}function qi(n){return{line:n.line,column:n.column,offset:n.offset}}function oy(n,l){let a=-1;for(;++a<l.length;){const s=l[a];Array.isArray(s)?oy(n,s):_z(n,s)}}function _z(n,l){let a;for(a in l)if(sy.call(l,a))switch(a){case"canContainEols":{const s=l[a];s&&n[a].push(...s);break}case"transforms":{const s=l[a];s&&n[a].push(...s);break}case"enter":case"exit":{const s=l[a];s&&Object.assign(n[a],s);break}}}function M0(n,l){throw n?new Error("Cannot close `"+n.type+"` ("+mr({start:n.start,end:n.end})+"): a different token (`"+l.type+"`, "+mr({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+mr({start:l.start,end:l.end})+") is still open")}function Mz(n){const l=this;l.parser=a;function a(s){return Az(s,{...l.data("settings"),...n,extensions:l.data("micromarkExtensions")||[],mdastExtensions:l.data("fromMarkdownExtensions")||[]})}}function Oz(n,l){const a={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(l),!0)};return n.patch(l,a),n.applyData(l,a)}function Rz(n,l){const a={type:"element",tagName:"br",properties:{},children:[]};return n.patch(l,a),[n.applyData(l,a),{type:"text",value:`
|
|
21
|
+
`;break}case-2:{f=l?" ":" ";break}case-1:{if(!l&&o)continue;f=" ";break}default:f=String.fromCharCode(c)}o=c===-2,s.push(f)}return s.join("")}function zz(n){const s={constructs:$g([vz,...(n||{}).extensions||[]]),content:o(qk),defined:[],document:o(Qk),flow:o(az),lazy:{},string:o(oz),text:o(uz)};return s;function o(c){return f;function f(m){return Sz(s,c,m)}}}function jz(n){for(;!ty(n););return n}const M0=/[\0\t\n\r]/g;function Cz(){let n=1,l="",a=!0,s;return o;function o(c,f,m){const y=[];let p,x,g,S,k;for(c=l+(typeof c=="string"?c.toString():new TextDecoder(f||void 0).decode(c)),g=0,l="",a&&(c.charCodeAt(0)===65279&&g++,a=void 0);g<c.length;){if(M0.lastIndex=g,p=M0.exec(c),S=p&&p.index!==void 0?p.index:c.length,k=c.charCodeAt(S),!p){l=c.slice(g);break}if(k===10&&g===S&&s)y.push(-3),s=void 0;else switch(s&&(y.push(-5),s=void 0),g<S&&(y.push(c.slice(g,S)),n+=S-g),k){case 0:{y.push(65533),n++;break}case 9:{for(x=Math.ceil(n/4)*4,y.push(-2);n++<x;)y.push(-1);break}case 10:{y.push(-4),n=1;break}default:s=!0,n=1}g=S+1}return m&&(s&&y.push(-5),l&&y.push(l),y.push(null)),y}}const Nz=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Tz(n){return n.replace(Nz,Ez)}function Ez(n,l,a){if(l)return l;if(a.charCodeAt(0)===35){const o=a.charCodeAt(1),c=o===120||o===88;return Pg(a.slice(c?2:1),c?16:10)}return Rf(a)||n}const sy={}.hasOwnProperty;function Az(n,l,a){return typeof l!="string"&&(a=l,l=void 0),Dz(a)(jz(zz(a).document().write(Cz()(n,l,!0))))}function Dz(n){const l={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Dt),autolinkProtocol:ue,autolinkEmail:ue,atxHeading:c(fn),blockQuote:c(dt),characterEscape:ue,characterReference:ue,codeFenced:c(St),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:c(St,f),codeText:c(Xe,f),codeTextData:ue,data:ue,codeFlowValue:ue,definition:c(gt),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:c(ht),hardBreakEscape:c(Nn),hardBreakTrailing:c(Nn),htmlFlow:c(On,f),htmlFlowData:ue,htmlText:c(On,f),htmlTextData:ue,image:c(Fi),label:f,link:c(Dt),listItem:c(Vi),listItemValue:S,listOrdered:c(mi,g),listUnordered:c(mi),paragraph:c(kt),reference:v,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:c(fn),strong:c(Rn),thematicBreak:c(ya)},exit:{atxHeading:y(),atxHeadingSequence:ee,autolink:y(),autolinkEmail:we,autolinkProtocol:pe,blockQuote:y(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:te,characterReferenceMarkerNumeric:te,characterReferenceValue:ae,characterReference:me,codeFenced:y(M),codeFencedFence:E,codeFencedFenceInfo:k,codeFencedFenceMeta:z,codeFlowValue:R,codeIndented:y(j),codeText:y(W),codeTextData:R,data:R,definition:y(),definitionDestinationString:ne,definitionLabelString:U,definitionTitleString:L,emphasis:y(),hardBreakEscape:y(X),hardBreakTrailing:y(X),htmlFlow:y(fe),htmlFlowData:R,htmlText:y(re),htmlTextData:R,image:y($),label:Se,labelText:ce,lineEnding:V,link:y(_),listItem:y(),listOrdered:y(),listUnordered:y(),paragraph:y(),referenceString:Y,resourceDestinationString:C,resourceTitleString:T,resource:G,setextHeading:y(le),setextHeadingLineSequence:P,setextHeadingText:D,strong:y(),thematicBreak:y()}};oy(l,(n||{}).mdastExtensions||[]);const a={};return s;function s(K){let se={type:"root",children:[]};const be={stack:[se],tokenStack:[],config:l,enter:m,exit:p,buffer:f,resume:x,data:a},Ce=[];let Ee=-1;for(;++Ee<K.length;)if(K[Ee][1].type==="listOrdered"||K[Ee][1].type==="listUnordered")if(K[Ee][0]==="enter")Ce.push(Ee);else{const _t=Ce.pop();Ee=o(K,_t,Ee)}for(Ee=-1;++Ee<K.length;){const _t=l[K[Ee][0]];sy.call(_t,K[Ee][1].type)&&_t[K[Ee][1].type].call(Object.assign({sliceSerialize:K[Ee][2].sliceSerialize},be),K[Ee][1])}if(be.tokenStack.length>0){const _t=be.tokenStack[be.tokenStack.length-1];(_t[1]||O0).call(be,void 0,_t[0])}for(se.position={start:Hi(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Hi(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Ee=-1;++Ee<l.transforms.length;)se=l.transforms[Ee](se)||se;return se}function o(K,se,be){let Ce=se-1,Ee=-1,_t=!1,Mt,zt,lt,jt;for(;++Ce<=be;){const He=K[Ce];switch(He[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{He[0]==="enter"?Ee++:Ee--,jt=void 0;break}case"lineEndingBlank":{He[0]==="enter"&&(Mt&&!jt&&!Ee&&!lt&&(lt=Ce),jt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:jt=void 0}if(!Ee&&He[0]==="enter"&&He[1].type==="listItemPrefix"||Ee===-1&&He[0]==="exit"&&(He[1].type==="listUnordered"||He[1].type==="listOrdered")){if(Mt){let Ln=Ce;for(zt=void 0;Ln--;){const Bt=K[Ln];if(Bt[1].type==="lineEnding"||Bt[1].type==="lineEndingBlank"){if(Bt[0]==="exit")continue;zt&&(K[zt][1].type="lineEndingBlank",_t=!0),Bt[1].type="lineEnding",zt=Ln}else if(!(Bt[1].type==="linePrefix"||Bt[1].type==="blockQuotePrefix"||Bt[1].type==="blockQuotePrefixWhitespace"||Bt[1].type==="blockQuoteMarker"||Bt[1].type==="listItemIndent"))break}lt&&(!zt||lt<zt)&&(Mt._spread=!0),Mt.end=Object.assign({},zt?K[zt][1].start:He[1].end),K.splice(zt||Ce,0,["exit",Mt,He[2]]),Ce++,be++}if(He[1].type==="listItemPrefix"){const Ln={type:"listItem",_spread:!1,start:Object.assign({},He[1].start),end:void 0};Mt=Ln,K.splice(Ce,0,["enter",Ln,He[2]]),Ce++,be++,lt=void 0,jt=!0}}}return K[se][1]._spread=_t,be}function c(K,se){return be;function be(Ce){m.call(this,K(Ce),Ce),se&&se.call(this,Ce)}}function f(){this.stack.push({type:"fragment",children:[]})}function m(K,se,be){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([se,be||void 0]),K.position={start:Hi(se.start),end:void 0}}function y(K){return se;function se(be){K&&K.call(this,be),p.call(this,be)}}function p(K,se){const be=this.stack.pop(),Ce=this.tokenStack.pop();if(Ce)Ce[0].type!==K.type&&(se?se.call(this,K,Ce[0]):(Ce[1]||O0).call(this,K,Ce[0]));else throw new Error("Cannot close `"+K.type+"` ("+mr({start:K.start,end:K.end})+"): it’s not open");be.position.end=Hi(K.end)}function x(){return Of(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function S(K){if(this.data.expectingFirstListItemValue){const se=this.stack[this.stack.length-2];se.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function k(){const K=this.resume(),se=this.stack[this.stack.length-1];se.lang=K}function z(){const K=this.resume(),se=this.stack[this.stack.length-1];se.meta=K}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function M(){const K=this.resume(),se=this.stack[this.stack.length-1];se.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function j(){const K=this.resume(),se=this.stack[this.stack.length-1];se.value=K.replace(/(\r?\n|\r)$/g,"")}function U(K){const se=this.resume(),be=this.stack[this.stack.length-1];be.label=se,be.identifier=_n(this.sliceSerialize(K)).toLowerCase()}function L(){const K=this.resume(),se=this.stack[this.stack.length-1];se.title=K}function ne(){const K=this.resume(),se=this.stack[this.stack.length-1];se.url=K}function ee(K){const se=this.stack[this.stack.length-1];if(!se.depth){const be=this.sliceSerialize(K).length;se.depth=be}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function P(K){const se=this.stack[this.stack.length-1];se.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function le(){this.data.setextHeadingSlurpLineEnding=void 0}function ue(K){const be=this.stack[this.stack.length-1].children;let Ce=be[be.length-1];(!Ce||Ce.type!=="text")&&(Ce=wt(),Ce.position={start:Hi(K.start),end:void 0},be.push(Ce)),this.stack.push(Ce)}function R(K){const se=this.stack.pop();se.value+=this.sliceSerialize(K),se.position.end=Hi(K.end)}function V(K){const se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const be=se.children[se.children.length-1];be.position.end=Hi(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&l.canContainEols.includes(se.type)&&(ue.call(this,K),R.call(this,K))}function X(){this.data.atHardBreak=!0}function fe(){const K=this.resume(),se=this.stack[this.stack.length-1];se.value=K}function re(){const K=this.resume(),se=this.stack[this.stack.length-1];se.value=K}function W(){const K=this.resume(),se=this.stack[this.stack.length-1];se.value=K}function _(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=se,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function $(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=se,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function ce(K){const se=this.sliceSerialize(K),be=this.stack[this.stack.length-2];be.label=Tz(se),be.identifier=_n(se).toLowerCase()}function Se(){const K=this.stack[this.stack.length-1],se=this.resume(),be=this.stack[this.stack.length-1];if(this.data.inReference=!0,be.type==="link"){const Ce=K.children;be.children=Ce}else be.alt=se}function C(){const K=this.resume(),se=this.stack[this.stack.length-1];se.url=K}function T(){const K=this.resume(),se=this.stack[this.stack.length-1];se.title=K}function G(){this.data.inReference=void 0}function v(){this.data.referenceType="collapsed"}function Y(K){const se=this.resume(),be=this.stack[this.stack.length-1];be.label=se,be.identifier=_n(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function te(K){this.data.characterReferenceType=K.type}function ae(K){const se=this.sliceSerialize(K),be=this.data.characterReferenceType;let Ce;be?(Ce=Pg(se,be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ce=Rf(se);const Ee=this.stack[this.stack.length-1];Ee.value+=Ce}function me(K){const se=this.stack.pop();se.position.end=Hi(K.end)}function pe(K){R.call(this,K);const se=this.stack[this.stack.length-1];se.url=this.sliceSerialize(K)}function we(K){R.call(this,K);const se=this.stack[this.stack.length-1];se.url="mailto:"+this.sliceSerialize(K)}function dt(){return{type:"blockquote",children:[]}}function St(){return{type:"code",lang:null,meta:null,value:""}}function Xe(){return{type:"inlineCode",value:""}}function gt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ht(){return{type:"emphasis",children:[]}}function fn(){return{type:"heading",depth:0,children:[]}}function Nn(){return{type:"break"}}function On(){return{type:"html",value:""}}function Fi(){return{type:"image",title:null,url:"",alt:null}}function Dt(){return{type:"link",title:null,url:"",children:[]}}function mi(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Vi(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function kt(){return{type:"paragraph",children:[]}}function Rn(){return{type:"strong",children:[]}}function wt(){return{type:"text",value:""}}function ya(){return{type:"thematicBreak"}}}function Hi(n){return{line:n.line,column:n.column,offset:n.offset}}function oy(n,l){let a=-1;for(;++a<l.length;){const s=l[a];Array.isArray(s)?oy(n,s):_z(n,s)}}function _z(n,l){let a;for(a in l)if(sy.call(l,a))switch(a){case"canContainEols":{const s=l[a];s&&n[a].push(...s);break}case"transforms":{const s=l[a];s&&n[a].push(...s);break}case"enter":case"exit":{const s=l[a];s&&Object.assign(n[a],s);break}}}function O0(n,l){throw n?new Error("Cannot close `"+n.type+"` ("+mr({start:n.start,end:n.end})+"): a different token (`"+l.type+"`, "+mr({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+mr({start:l.start,end:l.end})+") is still open")}function Mz(n){const l=this;l.parser=a;function a(s){return Az(s,{...l.data("settings"),...n,extensions:l.data("micromarkExtensions")||[],mdastExtensions:l.data("fromMarkdownExtensions")||[]})}}function Oz(n,l){const a={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(l),!0)};return n.patch(l,a),n.applyData(l,a)}function Rz(n,l){const a={type:"element",tagName:"br",properties:{},children:[]};return n.patch(l,a),[n.applyData(l,a),{type:"text",value:`
|
|
22
22
|
`}]}function Lz(n,l){const a=l.value?l.value+`
|
|
23
23
|
`:"",s={},o=l.lang?l.lang.split(/\s+/):[];o.length>0&&(s.className=["language-"+o[0]]);let c={type:"element",tagName:"code",properties:s,children:[{type:"text",value:a}]};return l.meta&&(c.data={meta:l.meta}),n.patch(l,c),c=n.applyData(l,c),c={type:"element",tagName:"pre",properties:{},children:[c]},n.patch(l,c),c}function Uz(n,l){const a={type:"element",tagName:"del",properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}function Bz(n,l){const a={type:"element",tagName:"em",properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}function qz(n,l){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",s=String(l.identifier).toUpperCase(),o=ga(s.toLowerCase()),c=n.footnoteOrder.indexOf(s);let f,m=n.footnoteCounts.get(s);m===void 0?(m=0,n.footnoteOrder.push(s),f=n.footnoteOrder.length):f=c+1,m+=1,n.footnoteCounts.set(s,m);const y={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+o,id:a+"fnref-"+o+(m>1?"-"+m:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};n.patch(l,y);const p={type:"element",tagName:"sup",properties:{},children:[y]};return n.patch(l,p),n.applyData(l,p)}function Hz(n,l){const a={type:"element",tagName:"h"+l.depth,properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}function Qz(n,l){if(n.options.allowDangerousHtml){const a={type:"raw",value:l.value};return n.patch(l,a),n.applyData(l,a)}}function uy(n,l){const a=l.referenceType;let s="]";if(a==="collapsed"?s+="[]":a==="full"&&(s+="["+(l.label||l.identifier)+"]"),l.type==="imageReference")return[{type:"text",value:"!["+l.alt+s}];const o=n.all(l),c=o[0];c&&c.type==="text"?c.value="["+c.value:o.unshift({type:"text",value:"["});const f=o[o.length-1];return f&&f.type==="text"?f.value+=s:o.push({type:"text",value:s}),o}function Yz(n,l){const a=String(l.identifier).toUpperCase(),s=n.definitionById.get(a);if(!s)return uy(n,l);const o={src:ga(s.url||""),alt:l.alt};s.title!==null&&s.title!==void 0&&(o.title=s.title);const c={type:"element",tagName:"img",properties:o,children:[]};return n.patch(l,c),n.applyData(l,c)}function Fz(n,l){const a={src:ga(l.url)};l.alt!==null&&l.alt!==void 0&&(a.alt=l.alt),l.title!==null&&l.title!==void 0&&(a.title=l.title);const s={type:"element",tagName:"img",properties:a,children:[]};return n.patch(l,s),n.applyData(l,s)}function Vz(n,l){const a={type:"text",value:l.value.replace(/\r?\n|\r/g," ")};n.patch(l,a);const s={type:"element",tagName:"code",properties:{},children:[a]};return n.patch(l,s),n.applyData(l,s)}function Gz(n,l){const a=String(l.identifier).toUpperCase(),s=n.definitionById.get(a);if(!s)return uy(n,l);const o={href:ga(s.url||"")};s.title!==null&&s.title!==void 0&&(o.title=s.title);const c={type:"element",tagName:"a",properties:o,children:n.all(l)};return n.patch(l,c),n.applyData(l,c)}function Xz(n,l){const a={href:ga(l.url)};l.title!==null&&l.title!==void 0&&(a.title=l.title);const s={type:"element",tagName:"a",properties:a,children:n.all(l)};return n.patch(l,s),n.applyData(l,s)}function Iz(n,l,a){const s=n.all(l),o=a?Kz(a):cy(l),c={},f=[];if(typeof l.checked=="boolean"){const x=s[0];let g;x&&x.type==="element"&&x.tagName==="p"?g=x:(g={type:"element",tagName:"p",properties:{},children:[]},s.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:l.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let m=-1;for(;++m<s.length;){const x=s[m];(o||m!==0||x.type!=="element"||x.tagName!=="p")&&f.push({type:"text",value:`
|
|
24
24
|
`}),x.type==="element"&&x.tagName==="p"&&!o?f.push(...x.children):f.push(x)}const y=s[s.length-1];y&&(o||y.type!=="element"||y.tagName!=="p")&&f.push({type:"text",value:`
|
|
25
|
-
`});const p={type:"element",tagName:"li",properties:c,children:f};return n.patch(l,p),n.applyData(l,p)}function Kz(n){let l=!1;if(n.type==="list"){l=n.spread||!1;const a=n.children;let s=-1;for(;!l&&++s<a.length;)l=cy(a[s])}return l}function cy(n){const l=n.spread;return l??n.children.length>1}function Zz(n,l){const a={},s=n.all(l);let o=-1;for(typeof l.start=="number"&&l.start!==1&&(a.start=l.start);++o<s.length;){const f=s[o];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const c={type:"element",tagName:l.ordered?"ol":"ul",properties:a,children:n.wrap(s,!0)};return n.patch(l,c),n.applyData(l,c)}function $z(n,l){const a={type:"element",tagName:"p",properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}function Pz(n,l){const a={type:"root",children:n.wrap(n.all(l))};return n.patch(l,a),n.applyData(l,a)}function Jz(n,l){const a={type:"element",tagName:"strong",properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}function Wz(n,l){const a=n.all(l),s=a.shift(),o=[];if(s){const f={type:"element",tagName:"thead",properties:{},children:n.wrap([s],!0)};n.patch(l.children[0],f),o.push(f)}if(a.length>0){const f={type:"element",tagName:"tbody",properties:{},children:n.wrap(a,!0)},m=
|
|
25
|
+
`});const p={type:"element",tagName:"li",properties:c,children:f};return n.patch(l,p),n.applyData(l,p)}function Kz(n){let l=!1;if(n.type==="list"){l=n.spread||!1;const a=n.children;let s=-1;for(;!l&&++s<a.length;)l=cy(a[s])}return l}function cy(n){const l=n.spread;return l??n.children.length>1}function Zz(n,l){const a={},s=n.all(l);let o=-1;for(typeof l.start=="number"&&l.start!==1&&(a.start=l.start);++o<s.length;){const f=s[o];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const c={type:"element",tagName:l.ordered?"ol":"ul",properties:a,children:n.wrap(s,!0)};return n.patch(l,c),n.applyData(l,c)}function $z(n,l){const a={type:"element",tagName:"p",properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}function Pz(n,l){const a={type:"root",children:n.wrap(n.all(l))};return n.patch(l,a),n.applyData(l,a)}function Jz(n,l){const a={type:"element",tagName:"strong",properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}function Wz(n,l){const a=n.all(l),s=a.shift(),o=[];if(s){const f={type:"element",tagName:"thead",properties:{},children:n.wrap([s],!0)};n.patch(l.children[0],f),o.push(f)}if(a.length>0){const f={type:"element",tagName:"tbody",properties:{},children:n.wrap(a,!0)},m=Af(l.children[1]),y=Fg(l.children[l.children.length-1]);m&&y&&(f.position={start:m,end:y}),o.push(f)}const c={type:"element",tagName:"table",properties:{},children:n.wrap(o,!0)};return n.patch(l,c),n.applyData(l,c)}function e3(n,l,a){const s=a?a.children:void 0,c=(s?s.indexOf(l):1)===0?"th":"td",f=a&&a.type==="table"?a.align:void 0,m=f?f.length:l.children.length;let y=-1;const p=[];for(;++y<m;){const g=l.children[y],S={},k=f?f[y]:void 0;k&&(S.align=k);let z={type:"element",tagName:c,properties:S,children:[]};g&&(z.children=n.all(g),n.patch(g,z),z=n.applyData(g,z)),p.push(z)}const x={type:"element",tagName:"tr",properties:{},children:n.wrap(p,!0)};return n.patch(l,x),n.applyData(l,x)}function t3(n,l){const a={type:"element",tagName:"td",properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}const R0=9,L0=32;function n3(n){const l=String(n),a=/\r?\n|\r/g;let s=a.exec(l),o=0;const c=[];for(;s;)c.push(U0(l.slice(o,s.index),o>0,!0),s[0]),o=s.index+s[0].length,s=a.exec(l);return c.push(U0(l.slice(o),o>0,!1)),c.join("")}function U0(n,l,a){let s=0,o=n.length;if(l){let c=n.codePointAt(s);for(;c===R0||c===L0;)s++,c=n.codePointAt(s)}if(a){let c=n.codePointAt(o-1);for(;c===R0||c===L0;)o--,c=n.codePointAt(o-1)}return o>s?n.slice(s,o):""}function i3(n,l){const a={type:"text",value:n3(String(l.value))};return n.patch(l,a),n.applyData(l,a)}function l3(n,l){const a={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(l,a),n.applyData(l,a)}const a3={blockquote:Oz,break:Rz,code:Lz,delete:Uz,emphasis:Bz,footnoteReference:qz,heading:Hz,html:Qz,imageReference:Yz,image:Fz,inlineCode:Vz,linkReference:Gz,link:Xz,listItem:Iz,list:Zz,paragraph:$z,root:Pz,strong:Jz,table:Wz,tableCell:t3,tableRow:e3,text:i3,thematicBreak:l3,toml:Hs,yaml:Hs,definition:Hs,footnoteDefinition:Hs};function Hs(){}const fy=-1,so=0,gr=1,Ps=2,Uf=3,Bf=4,qf=5,Hf=6,dy=7,hy=8,B0=typeof self=="object"?self:globalThis,r3=(n,l)=>{const a=(o,c)=>(n.set(c,o),o),s=o=>{if(n.has(o))return n.get(o);const[c,f]=l[o];switch(c){case so:case fy:return a(f,o);case gr:{const m=a([],o);for(const y of f)m.push(s(y));return m}case Ps:{const m=a({},o);for(const[y,p]of f)m[s(y)]=s(p);return m}case Uf:return a(new Date(f),o);case Bf:{const{source:m,flags:y}=f;return a(new RegExp(m,y),o)}case qf:{const m=a(new Map,o);for(const[y,p]of f)m.set(s(y),s(p));return m}case Hf:{const m=a(new Set,o);for(const y of f)m.add(s(y));return m}case dy:{const{name:m,message:y}=f;return a(new B0[m](y),o)}case hy:return a(BigInt(f),o);case"BigInt":return a(Object(BigInt(f)),o);case"ArrayBuffer":return a(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:m}=new Uint8Array(f);return a(new DataView(m),f)}}return a(new B0[c](f),o)};return s},q0=n=>r3(new Map,n)(0),ua="",{toString:s3}={},{keys:o3}=Object,dr=n=>{const l=typeof n;if(l!=="object"||!n)return[so,l];const a=s3.call(n).slice(8,-1);switch(a){case"Array":return[gr,ua];case"Object":return[Ps,ua];case"Date":return[Uf,ua];case"RegExp":return[Bf,ua];case"Map":return[qf,ua];case"Set":return[Hf,ua];case"DataView":return[gr,a]}return a.includes("Array")?[gr,a]:a.includes("Error")?[dy,a]:[Ps,a]},Qs=([n,l])=>n===so&&(l==="function"||l==="symbol"),u3=(n,l,a,s)=>{const o=(f,m)=>{const y=s.push(f)-1;return a.set(m,y),y},c=f=>{if(a.has(f))return a.get(f);let[m,y]=dr(f);switch(m){case so:{let x=f;switch(y){case"bigint":m=hy,x=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+y);x=null;break;case"undefined":return o([fy],f)}return o([m,x],f)}case gr:{if(y){let S=f;return y==="DataView"?S=new Uint8Array(f.buffer):y==="ArrayBuffer"&&(S=new Uint8Array(f)),o([y,[...S]],f)}const x=[],g=o([m,x],f);for(const S of f)x.push(c(S));return g}case Ps:{if(y)switch(y){case"BigInt":return o([y,f.toString()],f);case"Boolean":case"Number":case"String":return o([y,f.valueOf()],f)}if(l&&"toJSON"in f)return c(f.toJSON());const x=[],g=o([m,x],f);for(const S of o3(f))(n||!Qs(dr(f[S])))&&x.push([c(S),c(f[S])]);return g}case Uf:return o([m,f.toISOString()],f);case Bf:{const{source:x,flags:g}=f;return o([m,{source:x,flags:g}],f)}case qf:{const x=[],g=o([m,x],f);for(const[S,k]of f)(n||!(Qs(dr(S))||Qs(dr(k))))&&x.push([c(S),c(k)]);return g}case Hf:{const x=[],g=o([m,x],f);for(const S of f)(n||!Qs(dr(S)))&&x.push(c(S));return g}}const{message:p}=f;return o([m,{name:y,message:p}],f)};return c},H0=(n,{json:l,lossy:a}={})=>{const s=[];return u3(!(l||a),!!l,new Map,s)(n),s},Js=typeof structuredClone=="function"?(n,l)=>l&&("json"in l||"lossy"in l)?q0(H0(n,l)):structuredClone(n):(n,l)=>q0(H0(n,l));function c3(n,l){const a=[{type:"text",value:"↩"}];return l>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(l)}]}),a}function f3(n,l){return"Back to reference "+(n+1)+(l>1?"-"+l:"")}function d3(n){const l=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",a=n.options.footnoteBackContent||c3,s=n.options.footnoteBackLabel||f3,o=n.options.footnoteLabel||"Footnotes",c=n.options.footnoteLabelTagName||"h2",f=n.options.footnoteLabelProperties||{className:["sr-only"]},m=[];let y=-1;for(;++y<n.footnoteOrder.length;){const p=n.footnoteById.get(n.footnoteOrder[y]);if(!p)continue;const x=n.all(p),g=String(p.identifier).toUpperCase(),S=ga(g.toLowerCase());let k=0;const z=[],E=n.footnoteCounts.get(g);for(;E!==void 0&&++k<=E;){z.length>0&&z.push({type:"text",value:" "});let U=typeof a=="string"?a:a(y,k);typeof U=="string"&&(U={type:"text",value:U}),z.push({type:"element",tagName:"a",properties:{href:"#"+l+"fnref-"+S+(k>1?"-"+k:""),dataFootnoteBackref:"",ariaLabel:typeof s=="string"?s:s(y,k),className:["data-footnote-backref"]},children:Array.isArray(U)?U:[U]})}const M=x[x.length-1];if(M&&M.type==="element"&&M.tagName==="p"){const U=M.children[M.children.length-1];U&&U.type==="text"?U.value+=" ":M.children.push({type:"text",value:" "}),M.children.push(...z)}else x.push(...z);const j={type:"element",tagName:"li",properties:{id:l+"fn-"+S},children:n.wrap(x,!0)};n.patch(p,j),m.push(j)}if(m.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...Js(f),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
26
26
|
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(m,!0)},{type:"text",value:`
|
|
27
|
-
`}]}}const
|
|
27
|
+
`}]}}const oo=(function(n){if(n==null)return g3;if(typeof n=="function")return uo(n);if(typeof n=="object")return Array.isArray(n)?h3(n):m3(n);if(typeof n=="string")return p3(n);throw new Error("Expected function, string, or object as test")});function h3(n){const l=[];let a=-1;for(;++a<n.length;)l[a]=oo(n[a]);return uo(s);function s(...o){let c=-1;for(;++c<l.length;)if(l[c].apply(this,o))return!0;return!1}}function m3(n){const l=n;return uo(a);function a(s){const o=s;let c;for(c in n)if(o[c]!==l[c])return!1;return!0}}function p3(n){return uo(l);function l(a){return a&&a.type===n}}function uo(n){return l;function l(a,s,o){return!!(y3(a)&&n.call(this,a,typeof s=="number"?s:void 0,o||void 0))}}function g3(){return!0}function y3(n){return n!==null&&typeof n=="object"&&"type"in n}const my=[],x3=!0,of=!1,b3="skip";function py(n,l,a,s){let o;typeof l=="function"&&typeof a!="function"?(s=a,a=l):o=l;const c=oo(o),f=s?-1:1;m(n,void 0,[])();function m(y,p,x){const g=y&&typeof y=="object"?y:{};if(typeof g.type=="string"){const k=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(y.type+(k?"<"+k+">":""))+")"})}return S;function S(){let k=my,z,E,M;if((!l||c(y,p,x[x.length-1]||void 0))&&(k=v3(a(y,x)),k[0]===of))return k;if("children"in y&&y.children){const j=y;if(j.children&&k[0]!==b3)for(E=(s?j.children.length:-1)+f,M=x.concat(j);E>-1&&E<j.children.length;){const U=j.children[E];if(z=m(U,E,M)(),z[0]===of)return z;E=typeof z[1]=="number"?z[1]:E+f}}return k}}}function v3(n){return Array.isArray(n)?n:typeof n=="number"?[x3,n]:n==null?my:[n]}function Qf(n,l,a,s){let o,c,f;typeof l=="function"&&typeof a!="function"?(c=void 0,f=l,o=a):(c=l,f=a,o=s),py(n,c,m,o);function m(y,p){const x=p[p.length-1],g=x?x.children.indexOf(y):void 0;return f(y,g,x)}}const uf={}.hasOwnProperty,S3={};function k3(n,l){const a=l||S3,s=new Map,o=new Map,c=new Map,f={...a3,...a.handlers},m={all:p,applyData:z3,definitionById:s,footnoteById:o,footnoteCounts:c,footnoteOrder:[],handlers:f,one:y,options:a,patch:w3,wrap:C3};return Qf(n,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const g=x.type==="definition"?s:o,S=String(x.identifier).toUpperCase();g.has(S)||g.set(S,x)}}),m;function y(x,g){const S=x.type,k=m.handlers[S];if(uf.call(m.handlers,S)&&k)return k(m,x,g);if(m.options.passThrough&&m.options.passThrough.includes(S)){if("children"in x){const{children:E,...M}=x,j=Js(M);return j.children=m.all(x),j}return Js(x)}return(m.options.unknownHandler||j3)(m,x,g)}function p(x){const g=[];if("children"in x){const S=x.children;let k=-1;for(;++k<S.length;){const z=m.one(S[k],x);if(z){if(k&&S[k-1].type==="break"&&(!Array.isArray(z)&&z.type==="text"&&(z.value=Q0(z.value)),!Array.isArray(z)&&z.type==="element")){const E=z.children[0];E&&E.type==="text"&&(E.value=Q0(E.value))}Array.isArray(z)?g.push(...z):g.push(z)}}}return g}}function w3(n,l){n.position&&(l.position=fk(n))}function z3(n,l){let a=l;if(n&&n.data){const s=n.data.hName,o=n.data.hChildren,c=n.data.hProperties;if(typeof s=="string")if(a.type==="element")a.tagName=s;else{const f="children"in a?a.children:[a];a={type:"element",tagName:s,properties:{},children:f}}a.type==="element"&&c&&Object.assign(a.properties,Js(c)),"children"in a&&a.children&&o!==null&&o!==void 0&&(a.children=o)}return a}function j3(n,l){const a=l.data||{},s="value"in l&&!(uf.call(a,"hProperties")||uf.call(a,"hChildren"))?{type:"text",value:l.value}:{type:"element",tagName:"div",properties:{},children:n.all(l)};return n.patch(l,s),n.applyData(l,s)}function C3(n,l){const a=[];let s=-1;for(l&&a.push({type:"text",value:`
|
|
28
28
|
`});++s<n.length;)s&&a.push({type:"text",value:`
|
|
29
29
|
`}),a.push(n[s]);return l&&n.length>0&&a.push({type:"text",value:`
|
|
30
|
-
`}),a}function
|
|
31
|
-
`},o),c}function N3(n,l){return n&&"run"in n?async function(a,s){const o=Q0(a,{file:s,...l});await n.run(o,s)}:function(a,s){return Q0(a,{file:s,...n||l})}}function Y0(n){if(n)throw n}var Dc,F0;function T3(){if(F0)return Dc;F0=1;var n=Object.prototype.hasOwnProperty,l=Object.prototype.toString,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):l.call(p)==="[object Array]"},c=function(p){if(!p||l.call(p)!=="[object Object]")return!1;var x=n.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&n.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!x&&!g)return!1;var v;for(v in p);return typeof v>"u"||n.call(p,v)},f=function(p,x){a&&x.name==="__proto__"?a(p,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):p[x.name]=x.newValue},m=function(p,x){if(x==="__proto__")if(n.call(p,x)){if(s)return s(p,x).value}else return;return p[x]};return Dc=function y(){var p,x,g,v,k,z,E=arguments[0],M=1,j=arguments.length,q=!1;for(typeof E=="boolean"&&(q=E,E=arguments[1]||{},M=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});M<j;++M)if(p=arguments[M],p!=null)for(x in p)g=m(E,x),v=m(p,x),E!==v&&(q&&v&&(c(v)||(k=o(v)))?(k?(k=!1,z=g&&o(g)?g:[]):z=g&&c(g)?g:{},f(E,{name:x,newValue:y(q,z,v)})):typeof v<"u"&&f(E,{name:x,newValue:v}));return E},Dc}var E3=T3();const _c=to(E3);function uf(n){if(typeof n!="object"||n===null)return!1;const l=Object.getPrototypeOf(n);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function A3(){const n=[],l={run:a,use:s};return l;function a(...o){let c=-1;const f=o.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);m(null,...o);function m(y,...p){const x=n[++c];let g=-1;if(y){f(y);return}for(;++g<o.length;)(p[g]===null||p[g]===void 0)&&(p[g]=o[g]);o=p,x?D3(x,m)(...p):f(null,...p)}}function s(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return n.push(o),l}}function D3(n,l){let a;return s;function s(...f){const m=n.length>f.length;let y;m&&f.push(o);try{y=n.apply(this,f)}catch(p){const x=p;if(m&&a)throw x;return o(x)}m||(y&&y.then&&typeof y.then=="function"?y.then(c,o):y instanceof Error?o(y):c(y))}function o(f,...m){a||(a=!0,l(f,...m))}function c(f){o(null,f)}}const Vn={basename:_3,dirname:M3,extname:O3,join:R3,sep:"/"};function _3(n,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');jr(n);let a=0,s=-1,o=n.length,c;if(l===void 0||l.length===0||l.length>n.length){for(;o--;)if(n.codePointAt(o)===47){if(c){a=o+1;break}}else s<0&&(c=!0,s=o+1);return s<0?"":n.slice(a,s)}if(l===n)return"";let f=-1,m=l.length-1;for(;o--;)if(n.codePointAt(o)===47){if(c){a=o+1;break}}else f<0&&(c=!0,f=o+1),m>-1&&(n.codePointAt(o)===l.codePointAt(m--)?m<0&&(s=o):(m=-1,s=f));return a===s?s=f:s<0&&(s=n.length),n.slice(a,s)}function M3(n){if(jr(n),n.length===0)return".";let l=-1,a=n.length,s;for(;--a;)if(n.codePointAt(a)===47){if(s){l=a;break}}else s||(s=!0);return l<0?n.codePointAt(0)===47?"/":".":l===1&&n.codePointAt(0)===47?"//":n.slice(0,l)}function O3(n){jr(n);let l=n.length,a=-1,s=0,o=-1,c=0,f;for(;l--;){const m=n.codePointAt(l);if(m===47){if(f){s=l+1;break}continue}a<0&&(f=!0,a=l+1),m===46?o<0?o=l:c!==1&&(c=1):o>-1&&(c=-1)}return o<0||a<0||c===0||c===1&&o===a-1&&o===s+1?"":n.slice(o,a)}function R3(...n){let l=-1,a;for(;++l<n.length;)jr(n[l]),n[l]&&(a=a===void 0?n[l]:a+"/"+n[l]);return a===void 0?".":L3(a)}function L3(n){jr(n);const l=n.codePointAt(0)===47;let a=U3(n,!l);return a.length===0&&!l&&(a="."),a.length>0&&n.codePointAt(n.length-1)===47&&(a+="/"),l?"/"+a:a}function U3(n,l){let a="",s=0,o=-1,c=0,f=-1,m,y;for(;++f<=n.length;){if(f<n.length)m=n.codePointAt(f);else{if(m===47)break;m=47}if(m===47){if(!(o===f-1||c===1))if(o!==f-1&&c===2){if(a.length<2||s!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(y=a.lastIndexOf("/"),y!==a.length-1){y<0?(a="",s=0):(a=a.slice(0,y),s=a.length-1-a.lastIndexOf("/")),o=f,c=0;continue}}else if(a.length>0){a="",s=0,o=f,c=0;continue}}l&&(a=a.length>0?a+"/..":"..",s=2)}else a.length>0?a+="/"+n.slice(o+1,f):a=n.slice(o+1,f),s=f-o-1;o=f,c=0}else m===46&&c>-1?c++:c=-1}return a}function jr(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const B3={cwd:q3};function q3(){return"/"}function cf(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function H3(n){if(typeof n=="string")n=new URL(n);else if(!cf(n)){const l=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw l.code="ERR_INVALID_ARG_TYPE",l}if(n.protocol!=="file:"){const l=new TypeError("The URL must be of scheme file");throw l.code="ERR_INVALID_URL_SCHEME",l}return Q3(n)}function Q3(n){if(n.hostname!==""){const s=new TypeError('File URL host must be "localhost" or empty on darwin');throw s.code="ERR_INVALID_FILE_URL_HOST",s}const l=n.pathname;let a=-1;for(;++a<l.length;)if(l.codePointAt(a)===37&&l.codePointAt(a+1)===50){const s=l.codePointAt(a+2);if(s===70||s===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(l)}const Mc=["history","path","basename","stem","extname","dirname"];class gy{constructor(l){let a;l?cf(l)?a={path:l}:typeof l=="string"||Y3(l)?a={value:l}:a=l:a={},this.cwd="cwd"in a?"":B3.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let s=-1;for(;++s<Mc.length;){const c=Mc[s];c in a&&a[c]!==void 0&&a[c]!==null&&(this[c]=c==="history"?[...a[c]]:a[c])}let o;for(o in a)Mc.includes(o)||(this[o]=a[o])}get basename(){return typeof this.path=="string"?Vn.basename(this.path):void 0}set basename(l){Rc(l,"basename"),Oc(l,"basename"),this.path=Vn.join(this.dirname||"",l)}get dirname(){return typeof this.path=="string"?Vn.dirname(this.path):void 0}set dirname(l){V0(this.basename,"dirname"),this.path=Vn.join(l||"",this.basename)}get extname(){return typeof this.path=="string"?Vn.extname(this.path):void 0}set extname(l){if(Oc(l,"extname"),V0(this.dirname,"extname"),l){if(l.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(l.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Vn.join(this.dirname,this.stem+(l||""))}get path(){return this.history[this.history.length-1]}set path(l){cf(l)&&(l=H3(l)),Rc(l,"path"),this.path!==l&&this.history.push(l)}get stem(){return typeof this.path=="string"?Vn.basename(this.path,this.extname):void 0}set stem(l){Rc(l,"stem"),Oc(l,"stem"),this.path=Vn.join(this.dirname||"",l+(this.extname||""))}fail(l,a,s){const o=this.message(l,a,s);throw o.fatal=!0,o}info(l,a,s){const o=this.message(l,a,s);return o.fatal=void 0,o}message(l,a,s){const o=new Ut(l,a,s);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(l){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(l||void 0).decode(this.value)}}function Oc(n,l){if(n&&n.includes(Vn.sep))throw new Error("`"+l+"` cannot be a path: did not expect `"+Vn.sep+"`")}function Rc(n,l){if(!n)throw new Error("`"+l+"` cannot be empty")}function V0(n,l){if(!n)throw new Error("Setting `"+l+"` requires `path` to be set too")}function Y3(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const F3=(function(n){const s=this.constructor.prototype,o=s[n],c=function(){return o.apply(c,arguments)};return Object.setPrototypeOf(c,s),c}),V3={}.hasOwnProperty;class Qf extends F3{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=A3()}copy(){const l=new Qf;let a=-1;for(;++a<this.attachers.length;){const s=this.attachers[a];l.use(...s)}return l.data(_c(!0,{},this.namespace)),l}data(l,a){return typeof l=="string"?arguments.length===2?(Bc("data",this.frozen),this.namespace[l]=a,this):V3.call(this.namespace,l)&&this.namespace[l]||void 0:l?(Bc("data",this.frozen),this.namespace=l,this):this.namespace}freeze(){if(this.frozen)return this;const l=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...s]=this.attachers[this.freezeIndex];if(s[0]===!1)continue;s[0]===!0&&(s[0]=void 0);const o=a.call(l,...s);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(l){this.freeze();const a=Ys(l),s=this.parser||this.Parser;return Lc("parse",s),s(String(a),a)}process(l,a){const s=this;return this.freeze(),Lc("process",this.parser||this.Parser),Uc("process",this.compiler||this.Compiler),a?o(void 0,a):new Promise(o);function o(c,f){const m=Ys(l),y=s.parse(m);s.run(y,m,function(x,g,v){if(x||!g||!v)return p(x);const k=g,z=s.stringify(k,v);I3(z)?v.value=z:v.result=z,p(x,v)});function p(x,g){x||!g?f(x):c?c(g):a(void 0,g)}}}processSync(l){let a=!1,s;return this.freeze(),Lc("processSync",this.parser||this.Parser),Uc("processSync",this.compiler||this.Compiler),this.process(l,o),X0("processSync","process",a),s;function o(c,f){a=!0,Y0(c),s=f}}run(l,a,s){G0(l),this.freeze();const o=this.transformers;return!s&&typeof a=="function"&&(s=a,a=void 0),s?c(void 0,s):new Promise(c);function c(f,m){const y=Ys(a);o.run(l,y,p);function p(x,g,v){const k=g||l;x?m(x):f?f(k):s(void 0,k,v)}}}runSync(l,a){let s=!1,o;return this.run(l,a,c),X0("runSync","run",s),o;function c(f,m){Y0(f),o=m,s=!0}}stringify(l,a){this.freeze();const s=Ys(a),o=this.compiler||this.Compiler;return Uc("stringify",o),G0(l),o(l,s)}use(l,...a){const s=this.attachers,o=this.namespace;if(Bc("use",this.frozen),l!=null)if(typeof l=="function")y(l,a);else if(typeof l=="object")Array.isArray(l)?m(l):f(l);else throw new TypeError("Expected usable value, not `"+l+"`");return this;function c(p){if(typeof p=="function")y(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[x,...g]=p;y(x,g)}else f(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function f(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");m(p.plugins),p.settings&&(o.settings=_c(!0,o.settings,p.settings))}function m(p){let x=-1;if(p!=null)if(Array.isArray(p))for(;++x<p.length;){const g=p[x];c(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function y(p,x){let g=-1,v=-1;for(;++g<s.length;)if(s[g][0]===p){v=g;break}if(v===-1)s.push([p,...x]);else if(x.length>0){let[k,...z]=x;const E=s[v][1];uf(E)&&uf(k)&&(k=_c(!0,E,k)),s[v]=[p,k,...z]}}}}const G3=new Qf().freeze();function Lc(n,l){if(typeof l!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Uc(n,l){if(typeof l!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Bc(n,l){if(l)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function G0(n){if(!uf(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function X0(n,l,a){if(!a)throw new Error("`"+n+"` finished async. Use `"+l+"` instead")}function Ys(n){return X3(n)?n:new gy(n)}function X3(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function I3(n){return typeof n=="string"||K3(n)}function K3(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const Z3="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",I0=[],K0={allowDangerousHtml:!0},$3=/^(https?|ircs?|mailto|xmpp)$/i,P3=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function J3(n){const l=W3(n),a=e4(n);return t4(l.runSync(l.parse(a),a),n)}function W3(n){const l=n.rehypePlugins||I0,a=n.remarkPlugins||I0,s=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...K0}:K0;return G3().use(Mz).use(a).use(N3,s).use(l)}function e4(n){const l=n.children||"",a=new gy;return typeof l=="string"&&(a.value=l),a}function t4(n,l){const a=l.allowedElements,s=l.allowElement,o=l.components,c=l.disallowedElements,f=l.skipHtml,m=l.unwrapDisallowed,y=l.urlTransform||n4;for(const x of P3)Object.hasOwn(l,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+Z3+x.id,void 0);return Hf(n,p),gk(n,{Fragment:h.Fragment,components:o,ignoreInvalidStyle:!0,jsx:h.jsx,jsxs:h.jsxs,passKeys:!0,passNode:!0});function p(x,g,v){if(x.type==="raw"&&v&&typeof g=="number")return f?v.children.splice(g,1):v.children[g]={type:"text",value:x.value},g;if(x.type==="element"){let k;for(k in Tc)if(Object.hasOwn(Tc,k)&&Object.hasOwn(x.properties,k)){const z=x.properties[k],E=Tc[k];(E===null||E.includes(x.tagName))&&(x.properties[k]=y(String(z||""),k,x))}}if(x.type==="element"){let k=a?!a.includes(x.tagName):c?c.includes(x.tagName):!1;if(!k&&s&&typeof g=="number"&&(k=!s(x,g,v)),k&&v&&typeof g=="number")return m&&x.children?v.children.splice(g,1,...x.children):v.children.splice(g,1),g}}}function n4(n){const l=n.indexOf(":"),a=n.indexOf("?"),s=n.indexOf("#"),o=n.indexOf("/");return l===-1||o!==-1&&l>o||a!==-1&&l>a||s!==-1&&l>s||$3.test(n.slice(0,l))?n:""}function Z0(n,l){const a=String(n);if(typeof l!="string")throw new TypeError("Expected character");let s=0,o=a.indexOf(l);for(;o!==-1;)s++,o=a.indexOf(l,o+l.length);return s}function i4(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function l4(n,l,a){const o=so((a||{}).ignore||[]),c=a4(l);let f=-1;for(;++f<c.length;)py(n,"text",m);function m(p,x){let g=-1,v;for(;++g<x.length;){const k=x[g],z=v?v.children:void 0;if(o(k,z?z.indexOf(k):void 0,v))return;v=k}if(v)return y(p,x)}function y(p,x){const g=x[x.length-1],v=c[f][0],k=c[f][1];let z=0;const M=g.children.indexOf(p);let j=!1,q=[];v.lastIndex=0;let L=v.exec(p.value);for(;L;){const ie=L.index,ee={index:L.index,input:L.input,stack:[...x,p]};let D=k(...L,ee);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?v.lastIndex=ie+1:(z!==ie&&q.push({type:"text",value:p.value.slice(z,ie)}),Array.isArray(D)?q.push(...D):D&&q.push(D),z=ie+L[0].length,j=!0),!v.global)break;L=v.exec(p.value)}return j?(z<p.value.length&&q.push({type:"text",value:p.value.slice(z)}),g.children.splice(M,1,...q)):q=[p],M+q.length}}function a4(n){const l=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!n[0]||Array.isArray(n[0])?n:[n];let s=-1;for(;++s<a.length;){const o=a[s];l.push([r4(o[0]),s4(o[1])])}return l}function r4(n){return typeof n=="string"?new RegExp(i4(n),"g"):n}function s4(n){return typeof n=="function"?n:function(){return n}}const qc="phrasing",Hc=["autolink","link","image","label"];function o4(){return{transforms:[p4],enter:{literalAutolink:c4,literalAutolinkEmail:Qc,literalAutolinkHttp:Qc,literalAutolinkWww:Qc},exit:{literalAutolink:m4,literalAutolinkEmail:h4,literalAutolinkHttp:f4,literalAutolinkWww:d4}}}function u4(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:qc,notInConstruct:Hc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:qc,notInConstruct:Hc},{character:":",before:"[ps]",after:"\\/",inConstruct:qc,notInConstruct:Hc}]}}function c4(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Qc(n){this.config.enter.autolinkProtocol.call(this,n)}function f4(n){this.config.exit.autolinkProtocol.call(this,n)}function d4(n){this.config.exit.data.call(this,n);const l=this.stack[this.stack.length-1];l.type,l.url="http://"+this.sliceSerialize(n)}function h4(n){this.config.exit.autolinkEmail.call(this,n)}function m4(n){this.exit(n)}function p4(n){l4(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,g4],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),y4]],{ignore:["link","linkReference"]})}function g4(n,l,a,s,o){let c="";if(!yy(o)||(/^w/i.test(l)&&(a=l+a,l="",c="http://"),!x4(a)))return!1;const f=b4(a+s);if(!f[0])return!1;const m={type:"link",title:null,url:c+l+f[0],children:[{type:"text",value:l+f[0]}]};return f[1]?[m,{type:"text",value:f[1]}]:m}function y4(n,l,a,s){return!yy(s,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+l+"@"+a,children:[{type:"text",value:l+"@"+a}]}}function x4(n){const l=n.split(".");return!(l.length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))}function b4(n){const l=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!l)return[n,void 0];n=n.slice(0,l.index);let a=l[0],s=a.indexOf(")");const o=Z0(n,"(");let c=Z0(n,")");for(;s!==-1&&o>c;)n+=a.slice(0,s+1),a=a.slice(s+1),s=a.indexOf(")"),c++;return[n,a]}function yy(n,l){const a=n.input.charCodeAt(n.index-1);return(n.index===0||gl(a)||lo(a))&&(!l||a!==47)}xy.peek=T4;function v4(){this.buffer()}function S4(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function k4(){this.buffer()}function w4(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function z4(n){const l=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=_n(this.sliceSerialize(n)).toLowerCase(),a.label=l}function j4(n){this.exit(n)}function C4(n){const l=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=_n(this.sliceSerialize(n)).toLowerCase(),a.label=l}function N4(n){this.exit(n)}function T4(){return"["}function xy(n,l,a,s){const o=a.createTracker(s);let c=o.move("[^");const f=a.enter("footnoteReference"),m=a.enter("reference");return c+=o.move(a.safe(a.associationId(n),{after:"]",before:c})),m(),f(),c+=o.move("]"),c}function E4(){return{enter:{gfmFootnoteCallString:v4,gfmFootnoteCall:S4,gfmFootnoteDefinitionLabelString:k4,gfmFootnoteDefinition:w4},exit:{gfmFootnoteCallString:z4,gfmFootnoteCall:j4,gfmFootnoteDefinitionLabelString:C4,gfmFootnoteDefinition:N4}}}function A4(n){let l=!1;return n&&n.firstLineBlank&&(l=!0),{handlers:{footnoteDefinition:a,footnoteReference:xy},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(s,o,c,f){const m=c.createTracker(f);let y=m.move("[^");const p=c.enter("footnoteDefinition"),x=c.enter("label");return y+=m.move(c.safe(c.associationId(s),{before:y,after:"]"})),x(),y+=m.move("]:"),s.children&&s.children.length>0&&(m.shift(4),y+=m.move((l?`
|
|
32
|
-
`:" ")+c.indentLines(c.containerFlow(s,m.current()),l?by:D4))),p(),y}}function D4(n,l,a){return l===0?n:by(n,l,a)}function by(n,l,a){return(a?"":" ")+n}const _4=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];vy.peek=U4;function M4(){return{canContainEols:["delete"],enter:{strikethrough:R4},exit:{strikethrough:L4}}}function O4(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:_4}],handlers:{delete:vy}}}function R4(n){this.enter({type:"delete",children:[]},n)}function L4(n){this.exit(n)}function vy(n,l,a,s){const o=a.createTracker(s),c=a.enter("strikethrough");let f=o.move("~~");return f+=a.containerPhrasing(n,{...o.current(),before:f,after:"~"}),f+=o.move("~~"),c(),f}function U4(){return"~"}function B4(n){return n.length}function q4(n,l){const a=l||{},s=(a.align||[]).concat(),o=a.stringLength||B4,c=[],f=[],m=[],y=[];let p=0,x=-1;for(;++x<n.length;){const E=[],M=[];let j=-1;for(n[x].length>p&&(p=n[x].length);++j<n[x].length;){const
|
|
33
|
-
`)}function H4(n){return n==null?"":String(n)}function
|
|
30
|
+
`}),a}function Q0(n){let l=0,a=n.charCodeAt(l);for(;a===9||a===32;)l++,a=n.charCodeAt(l);return n.slice(l)}function Y0(n,l){const a=k3(n,l),s=a.one(n,void 0),o=d3(a),c=Array.isArray(s)?{type:"root",children:s}:s||{type:"root",children:[]};return o&&c.children.push({type:"text",value:`
|
|
31
|
+
`},o),c}function N3(n,l){return n&&"run"in n?async function(a,s){const o=Y0(a,{file:s,...l});await n.run(o,s)}:function(a,s){return Y0(a,{file:s,...n||l})}}function F0(n){if(n)throw n}var _c,V0;function T3(){if(V0)return _c;V0=1;var n=Object.prototype.hasOwnProperty,l=Object.prototype.toString,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):l.call(p)==="[object Array]"},c=function(p){if(!p||l.call(p)!=="[object Object]")return!1;var x=n.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&n.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!x&&!g)return!1;var S;for(S in p);return typeof S>"u"||n.call(p,S)},f=function(p,x){a&&x.name==="__proto__"?a(p,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):p[x.name]=x.newValue},m=function(p,x){if(x==="__proto__")if(n.call(p,x)){if(s)return s(p,x).value}else return;return p[x]};return _c=function y(){var p,x,g,S,k,z,E=arguments[0],M=1,j=arguments.length,U=!1;for(typeof E=="boolean"&&(U=E,E=arguments[1]||{},M=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});M<j;++M)if(p=arguments[M],p!=null)for(x in p)g=m(E,x),S=m(p,x),E!==S&&(U&&S&&(c(S)||(k=o(S)))?(k?(k=!1,z=g&&o(g)?g:[]):z=g&&c(g)?g:{},f(E,{name:x,newValue:y(U,z,S)})):typeof S<"u"&&f(E,{name:x,newValue:S}));return E},_c}var E3=T3();const Mc=to(E3);function cf(n){if(typeof n!="object"||n===null)return!1;const l=Object.getPrototypeOf(n);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function A3(){const n=[],l={run:a,use:s};return l;function a(...o){let c=-1;const f=o.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);m(null,...o);function m(y,...p){const x=n[++c];let g=-1;if(y){f(y);return}for(;++g<o.length;)(p[g]===null||p[g]===void 0)&&(p[g]=o[g]);o=p,x?D3(x,m)(...p):f(null,...p)}}function s(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return n.push(o),l}}function D3(n,l){let a;return s;function s(...f){const m=n.length>f.length;let y;m&&f.push(o);try{y=n.apply(this,f)}catch(p){const x=p;if(m&&a)throw x;return o(x)}m||(y&&y.then&&typeof y.then=="function"?y.then(c,o):y instanceof Error?o(y):c(y))}function o(f,...m){a||(a=!0,l(f,...m))}function c(f){o(null,f)}}const Vn={basename:_3,dirname:M3,extname:O3,join:R3,sep:"/"};function _3(n,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');jr(n);let a=0,s=-1,o=n.length,c;if(l===void 0||l.length===0||l.length>n.length){for(;o--;)if(n.codePointAt(o)===47){if(c){a=o+1;break}}else s<0&&(c=!0,s=o+1);return s<0?"":n.slice(a,s)}if(l===n)return"";let f=-1,m=l.length-1;for(;o--;)if(n.codePointAt(o)===47){if(c){a=o+1;break}}else f<0&&(c=!0,f=o+1),m>-1&&(n.codePointAt(o)===l.codePointAt(m--)?m<0&&(s=o):(m=-1,s=f));return a===s?s=f:s<0&&(s=n.length),n.slice(a,s)}function M3(n){if(jr(n),n.length===0)return".";let l=-1,a=n.length,s;for(;--a;)if(n.codePointAt(a)===47){if(s){l=a;break}}else s||(s=!0);return l<0?n.codePointAt(0)===47?"/":".":l===1&&n.codePointAt(0)===47?"//":n.slice(0,l)}function O3(n){jr(n);let l=n.length,a=-1,s=0,o=-1,c=0,f;for(;l--;){const m=n.codePointAt(l);if(m===47){if(f){s=l+1;break}continue}a<0&&(f=!0,a=l+1),m===46?o<0?o=l:c!==1&&(c=1):o>-1&&(c=-1)}return o<0||a<0||c===0||c===1&&o===a-1&&o===s+1?"":n.slice(o,a)}function R3(...n){let l=-1,a;for(;++l<n.length;)jr(n[l]),n[l]&&(a=a===void 0?n[l]:a+"/"+n[l]);return a===void 0?".":L3(a)}function L3(n){jr(n);const l=n.codePointAt(0)===47;let a=U3(n,!l);return a.length===0&&!l&&(a="."),a.length>0&&n.codePointAt(n.length-1)===47&&(a+="/"),l?"/"+a:a}function U3(n,l){let a="",s=0,o=-1,c=0,f=-1,m,y;for(;++f<=n.length;){if(f<n.length)m=n.codePointAt(f);else{if(m===47)break;m=47}if(m===47){if(!(o===f-1||c===1))if(o!==f-1&&c===2){if(a.length<2||s!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(y=a.lastIndexOf("/"),y!==a.length-1){y<0?(a="",s=0):(a=a.slice(0,y),s=a.length-1-a.lastIndexOf("/")),o=f,c=0;continue}}else if(a.length>0){a="",s=0,o=f,c=0;continue}}l&&(a=a.length>0?a+"/..":"..",s=2)}else a.length>0?a+="/"+n.slice(o+1,f):a=n.slice(o+1,f),s=f-o-1;o=f,c=0}else m===46&&c>-1?c++:c=-1}return a}function jr(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const B3={cwd:q3};function q3(){return"/"}function ff(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function H3(n){if(typeof n=="string")n=new URL(n);else if(!ff(n)){const l=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw l.code="ERR_INVALID_ARG_TYPE",l}if(n.protocol!=="file:"){const l=new TypeError("The URL must be of scheme file");throw l.code="ERR_INVALID_URL_SCHEME",l}return Q3(n)}function Q3(n){if(n.hostname!==""){const s=new TypeError('File URL host must be "localhost" or empty on darwin');throw s.code="ERR_INVALID_FILE_URL_HOST",s}const l=n.pathname;let a=-1;for(;++a<l.length;)if(l.codePointAt(a)===37&&l.codePointAt(a+1)===50){const s=l.codePointAt(a+2);if(s===70||s===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(l)}const Oc=["history","path","basename","stem","extname","dirname"];class gy{constructor(l){let a;l?ff(l)?a={path:l}:typeof l=="string"||Y3(l)?a={value:l}:a=l:a={},this.cwd="cwd"in a?"":B3.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let s=-1;for(;++s<Oc.length;){const c=Oc[s];c in a&&a[c]!==void 0&&a[c]!==null&&(this[c]=c==="history"?[...a[c]]:a[c])}let o;for(o in a)Oc.includes(o)||(this[o]=a[o])}get basename(){return typeof this.path=="string"?Vn.basename(this.path):void 0}set basename(l){Lc(l,"basename"),Rc(l,"basename"),this.path=Vn.join(this.dirname||"",l)}get dirname(){return typeof this.path=="string"?Vn.dirname(this.path):void 0}set dirname(l){G0(this.basename,"dirname"),this.path=Vn.join(l||"",this.basename)}get extname(){return typeof this.path=="string"?Vn.extname(this.path):void 0}set extname(l){if(Rc(l,"extname"),G0(this.dirname,"extname"),l){if(l.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(l.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Vn.join(this.dirname,this.stem+(l||""))}get path(){return this.history[this.history.length-1]}set path(l){ff(l)&&(l=H3(l)),Lc(l,"path"),this.path!==l&&this.history.push(l)}get stem(){return typeof this.path=="string"?Vn.basename(this.path,this.extname):void 0}set stem(l){Lc(l,"stem"),Rc(l,"stem"),this.path=Vn.join(this.dirname||"",l+(this.extname||""))}fail(l,a,s){const o=this.message(l,a,s);throw o.fatal=!0,o}info(l,a,s){const o=this.message(l,a,s);return o.fatal=void 0,o}message(l,a,s){const o=new Ut(l,a,s);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(l){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(l||void 0).decode(this.value)}}function Rc(n,l){if(n&&n.includes(Vn.sep))throw new Error("`"+l+"` cannot be a path: did not expect `"+Vn.sep+"`")}function Lc(n,l){if(!n)throw new Error("`"+l+"` cannot be empty")}function G0(n,l){if(!n)throw new Error("Setting `"+l+"` requires `path` to be set too")}function Y3(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const F3=(function(n){const s=this.constructor.prototype,o=s[n],c=function(){return o.apply(c,arguments)};return Object.setPrototypeOf(c,s),c}),V3={}.hasOwnProperty;class Yf extends F3{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=A3()}copy(){const l=new Yf;let a=-1;for(;++a<this.attachers.length;){const s=this.attachers[a];l.use(...s)}return l.data(Mc(!0,{},this.namespace)),l}data(l,a){return typeof l=="string"?arguments.length===2?(qc("data",this.frozen),this.namespace[l]=a,this):V3.call(this.namespace,l)&&this.namespace[l]||void 0:l?(qc("data",this.frozen),this.namespace=l,this):this.namespace}freeze(){if(this.frozen)return this;const l=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...s]=this.attachers[this.freezeIndex];if(s[0]===!1)continue;s[0]===!0&&(s[0]=void 0);const o=a.call(l,...s);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(l){this.freeze();const a=Ys(l),s=this.parser||this.Parser;return Uc("parse",s),s(String(a),a)}process(l,a){const s=this;return this.freeze(),Uc("process",this.parser||this.Parser),Bc("process",this.compiler||this.Compiler),a?o(void 0,a):new Promise(o);function o(c,f){const m=Ys(l),y=s.parse(m);s.run(y,m,function(x,g,S){if(x||!g||!S)return p(x);const k=g,z=s.stringify(k,S);I3(z)?S.value=z:S.result=z,p(x,S)});function p(x,g){x||!g?f(x):c?c(g):a(void 0,g)}}}processSync(l){let a=!1,s;return this.freeze(),Uc("processSync",this.parser||this.Parser),Bc("processSync",this.compiler||this.Compiler),this.process(l,o),I0("processSync","process",a),s;function o(c,f){a=!0,F0(c),s=f}}run(l,a,s){X0(l),this.freeze();const o=this.transformers;return!s&&typeof a=="function"&&(s=a,a=void 0),s?c(void 0,s):new Promise(c);function c(f,m){const y=Ys(a);o.run(l,y,p);function p(x,g,S){const k=g||l;x?m(x):f?f(k):s(void 0,k,S)}}}runSync(l,a){let s=!1,o;return this.run(l,a,c),I0("runSync","run",s),o;function c(f,m){F0(f),o=m,s=!0}}stringify(l,a){this.freeze();const s=Ys(a),o=this.compiler||this.Compiler;return Bc("stringify",o),X0(l),o(l,s)}use(l,...a){const s=this.attachers,o=this.namespace;if(qc("use",this.frozen),l!=null)if(typeof l=="function")y(l,a);else if(typeof l=="object")Array.isArray(l)?m(l):f(l);else throw new TypeError("Expected usable value, not `"+l+"`");return this;function c(p){if(typeof p=="function")y(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[x,...g]=p;y(x,g)}else f(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function f(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");m(p.plugins),p.settings&&(o.settings=Mc(!0,o.settings,p.settings))}function m(p){let x=-1;if(p!=null)if(Array.isArray(p))for(;++x<p.length;){const g=p[x];c(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function y(p,x){let g=-1,S=-1;for(;++g<s.length;)if(s[g][0]===p){S=g;break}if(S===-1)s.push([p,...x]);else if(x.length>0){let[k,...z]=x;const E=s[S][1];cf(E)&&cf(k)&&(k=Mc(!0,E,k)),s[S]=[p,k,...z]}}}}const G3=new Yf().freeze();function Uc(n,l){if(typeof l!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Bc(n,l){if(typeof l!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function qc(n,l){if(l)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function X0(n){if(!cf(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function I0(n,l,a){if(!a)throw new Error("`"+n+"` finished async. Use `"+l+"` instead")}function Ys(n){return X3(n)?n:new gy(n)}function X3(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function I3(n){return typeof n=="string"||K3(n)}function K3(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const Z3="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",K0=[],Z0={allowDangerousHtml:!0},$3=/^(https?|ircs?|mailto|xmpp)$/i,P3=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function J3(n){const l=W3(n),a=e4(n);return t4(l.runSync(l.parse(a),a),n)}function W3(n){const l=n.rehypePlugins||K0,a=n.remarkPlugins||K0,s=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Z0}:Z0;return G3().use(Mz).use(a).use(N3,s).use(l)}function e4(n){const l=n.children||"",a=new gy;return typeof l=="string"&&(a.value=l),a}function t4(n,l){const a=l.allowedElements,s=l.allowElement,o=l.components,c=l.disallowedElements,f=l.skipHtml,m=l.unwrapDisallowed,y=l.urlTransform||n4;for(const x of P3)Object.hasOwn(l,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+Z3+x.id,void 0);return Qf(n,p),gk(n,{Fragment:h.Fragment,components:o,ignoreInvalidStyle:!0,jsx:h.jsx,jsxs:h.jsxs,passKeys:!0,passNode:!0});function p(x,g,S){if(x.type==="raw"&&S&&typeof g=="number")return f?S.children.splice(g,1):S.children[g]={type:"text",value:x.value},g;if(x.type==="element"){let k;for(k in Ec)if(Object.hasOwn(Ec,k)&&Object.hasOwn(x.properties,k)){const z=x.properties[k],E=Ec[k];(E===null||E.includes(x.tagName))&&(x.properties[k]=y(String(z||""),k,x))}}if(x.type==="element"){let k=a?!a.includes(x.tagName):c?c.includes(x.tagName):!1;if(!k&&s&&typeof g=="number"&&(k=!s(x,g,S)),k&&S&&typeof g=="number")return m&&x.children?S.children.splice(g,1,...x.children):S.children.splice(g,1),g}}}function n4(n){const l=n.indexOf(":"),a=n.indexOf("?"),s=n.indexOf("#"),o=n.indexOf("/");return l===-1||o!==-1&&l>o||a!==-1&&l>a||s!==-1&&l>s||$3.test(n.slice(0,l))?n:""}function $0(n,l){const a=String(n);if(typeof l!="string")throw new TypeError("Expected character");let s=0,o=a.indexOf(l);for(;o!==-1;)s++,o=a.indexOf(l,o+l.length);return s}function i4(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function l4(n,l,a){const o=oo((a||{}).ignore||[]),c=a4(l);let f=-1;for(;++f<c.length;)py(n,"text",m);function m(p,x){let g=-1,S;for(;++g<x.length;){const k=x[g],z=S?S.children:void 0;if(o(k,z?z.indexOf(k):void 0,S))return;S=k}if(S)return y(p,x)}function y(p,x){const g=x[x.length-1],S=c[f][0],k=c[f][1];let z=0;const M=g.children.indexOf(p);let j=!1,U=[];S.lastIndex=0;let L=S.exec(p.value);for(;L;){const ne=L.index,ee={index:L.index,input:L.input,stack:[...x,p]};let D=k(...L,ee);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?S.lastIndex=ne+1:(z!==ne&&U.push({type:"text",value:p.value.slice(z,ne)}),Array.isArray(D)?U.push(...D):D&&U.push(D),z=ne+L[0].length,j=!0),!S.global)break;L=S.exec(p.value)}return j?(z<p.value.length&&U.push({type:"text",value:p.value.slice(z)}),g.children.splice(M,1,...U)):U=[p],M+U.length}}function a4(n){const l=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!n[0]||Array.isArray(n[0])?n:[n];let s=-1;for(;++s<a.length;){const o=a[s];l.push([r4(o[0]),s4(o[1])])}return l}function r4(n){return typeof n=="string"?new RegExp(i4(n),"g"):n}function s4(n){return typeof n=="function"?n:function(){return n}}const Hc="phrasing",Qc=["autolink","link","image","label"];function o4(){return{transforms:[p4],enter:{literalAutolink:c4,literalAutolinkEmail:Yc,literalAutolinkHttp:Yc,literalAutolinkWww:Yc},exit:{literalAutolink:m4,literalAutolinkEmail:h4,literalAutolinkHttp:f4,literalAutolinkWww:d4}}}function u4(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Hc,notInConstruct:Qc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Hc,notInConstruct:Qc},{character:":",before:"[ps]",after:"\\/",inConstruct:Hc,notInConstruct:Qc}]}}function c4(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Yc(n){this.config.enter.autolinkProtocol.call(this,n)}function f4(n){this.config.exit.autolinkProtocol.call(this,n)}function d4(n){this.config.exit.data.call(this,n);const l=this.stack[this.stack.length-1];l.type,l.url="http://"+this.sliceSerialize(n)}function h4(n){this.config.exit.autolinkEmail.call(this,n)}function m4(n){this.exit(n)}function p4(n){l4(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,g4],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),y4]],{ignore:["link","linkReference"]})}function g4(n,l,a,s,o){let c="";if(!yy(o)||(/^w/i.test(l)&&(a=l+a,l="",c="http://"),!x4(a)))return!1;const f=b4(a+s);if(!f[0])return!1;const m={type:"link",title:null,url:c+l+f[0],children:[{type:"text",value:l+f[0]}]};return f[1]?[m,{type:"text",value:f[1]}]:m}function y4(n,l,a,s){return!yy(s,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+l+"@"+a,children:[{type:"text",value:l+"@"+a}]}}function x4(n){const l=n.split(".");return!(l.length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))}function b4(n){const l=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!l)return[n,void 0];n=n.slice(0,l.index);let a=l[0],s=a.indexOf(")");const o=$0(n,"(");let c=$0(n,")");for(;s!==-1&&o>c;)n+=a.slice(0,s+1),a=a.slice(s+1),s=a.indexOf(")"),c++;return[n,a]}function yy(n,l){const a=n.input.charCodeAt(n.index-1);return(n.index===0||gl(a)||ao(a))&&(!l||a!==47)}xy.peek=T4;function v4(){this.buffer()}function S4(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function k4(){this.buffer()}function w4(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function z4(n){const l=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=_n(this.sliceSerialize(n)).toLowerCase(),a.label=l}function j4(n){this.exit(n)}function C4(n){const l=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=_n(this.sliceSerialize(n)).toLowerCase(),a.label=l}function N4(n){this.exit(n)}function T4(){return"["}function xy(n,l,a,s){const o=a.createTracker(s);let c=o.move("[^");const f=a.enter("footnoteReference"),m=a.enter("reference");return c+=o.move(a.safe(a.associationId(n),{after:"]",before:c})),m(),f(),c+=o.move("]"),c}function E4(){return{enter:{gfmFootnoteCallString:v4,gfmFootnoteCall:S4,gfmFootnoteDefinitionLabelString:k4,gfmFootnoteDefinition:w4},exit:{gfmFootnoteCallString:z4,gfmFootnoteCall:j4,gfmFootnoteDefinitionLabelString:C4,gfmFootnoteDefinition:N4}}}function A4(n){let l=!1;return n&&n.firstLineBlank&&(l=!0),{handlers:{footnoteDefinition:a,footnoteReference:xy},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(s,o,c,f){const m=c.createTracker(f);let y=m.move("[^");const p=c.enter("footnoteDefinition"),x=c.enter("label");return y+=m.move(c.safe(c.associationId(s),{before:y,after:"]"})),x(),y+=m.move("]:"),s.children&&s.children.length>0&&(m.shift(4),y+=m.move((l?`
|
|
32
|
+
`:" ")+c.indentLines(c.containerFlow(s,m.current()),l?by:D4))),p(),y}}function D4(n,l,a){return l===0?n:by(n,l,a)}function by(n,l,a){return(a?"":" ")+n}const _4=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];vy.peek=U4;function M4(){return{canContainEols:["delete"],enter:{strikethrough:R4},exit:{strikethrough:L4}}}function O4(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:_4}],handlers:{delete:vy}}}function R4(n){this.enter({type:"delete",children:[]},n)}function L4(n){this.exit(n)}function vy(n,l,a,s){const o=a.createTracker(s),c=a.enter("strikethrough");let f=o.move("~~");return f+=a.containerPhrasing(n,{...o.current(),before:f,after:"~"}),f+=o.move("~~"),c(),f}function U4(){return"~"}function B4(n){return n.length}function q4(n,l){const a=l||{},s=(a.align||[]).concat(),o=a.stringLength||B4,c=[],f=[],m=[],y=[];let p=0,x=-1;for(;++x<n.length;){const E=[],M=[];let j=-1;for(n[x].length>p&&(p=n[x].length);++j<n[x].length;){const U=H4(n[x][j]);if(a.alignDelimiters!==!1){const L=o(U);M[j]=L,(y[j]===void 0||L>y[j])&&(y[j]=L)}E.push(U)}f[x]=E,m[x]=M}let g=-1;if(typeof s=="object"&&"length"in s)for(;++g<p;)c[g]=P0(s[g]);else{const E=P0(s);for(;++g<p;)c[g]=E}g=-1;const S=[],k=[];for(;++g<p;){const E=c[g];let M="",j="";E===99?(M=":",j=":"):E===108?M=":":E===114&&(j=":");let U=a.alignDelimiters===!1?1:Math.max(1,y[g]-M.length-j.length);const L=M+"-".repeat(U)+j;a.alignDelimiters!==!1&&(U=M.length+U+j.length,U>y[g]&&(y[g]=U),k[g]=U),S[g]=L}f.splice(1,0,S),m.splice(1,0,k),x=-1;const z=[];for(;++x<f.length;){const E=f[x],M=m[x];g=-1;const j=[];for(;++g<p;){const U=E[g]||"";let L="",ne="";if(a.alignDelimiters!==!1){const ee=y[g]-(M[g]||0),D=c[g];D===114?L=" ".repeat(ee):D===99?ee%2?(L=" ".repeat(ee/2+.5),ne=" ".repeat(ee/2-.5)):(L=" ".repeat(ee/2),ne=L):ne=" ".repeat(ee)}a.delimiterStart!==!1&&!g&&j.push("|"),a.padding!==!1&&!(a.alignDelimiters===!1&&U==="")&&(a.delimiterStart!==!1||g)&&j.push(" "),a.alignDelimiters!==!1&&j.push(L),j.push(U),a.alignDelimiters!==!1&&j.push(ne),a.padding!==!1&&j.push(" "),(a.delimiterEnd!==!1||g!==p-1)&&j.push("|")}z.push(a.delimiterEnd===!1?j.join("").replace(/ +$/,""):j.join(""))}return z.join(`
|
|
33
|
+
`)}function H4(n){return n==null?"":String(n)}function P0(n){const l=typeof n=="string"?n.codePointAt(0):0;return l===67||l===99?99:l===76||l===108?108:l===82||l===114?114:0}function Q4(n,l,a,s){const o=a.enter("blockquote"),c=a.createTracker(s);c.move("> "),c.shift(2);const f=a.indentLines(a.containerFlow(n,c.current()),Y4);return o(),f}function Y4(n,l,a){return">"+(a?"":" ")+n}function F4(n,l){return J0(n,l.inConstruct,!0)&&!J0(n,l.notInConstruct,!1)}function J0(n,l,a){if(typeof l=="string"&&(l=[l]),!l||l.length===0)return a;let s=-1;for(;++s<l.length;)if(n.includes(l[s]))return!0;return!1}function W0(n,l,a,s){let o=-1;for(;++o<a.unsafe.length;)if(a.unsafe[o].character===`
|
|
34
34
|
`&&F4(a.stack,a.unsafe[o]))return/[ \t]/.test(s.before)?"":" ";return`\\
|
|
35
|
-
`}function V4(n,l){const a=String(n);let s=a.indexOf(l),o=s,c=0,f=0;if(typeof l!="string")throw new TypeError("Expected substring");for(;s!==-1;)s===o?++c>f&&(f=c):c=1,o=s+l.length,s=a.indexOf(l,o);return f}function G4(n,l){return!!(l.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function X4(n){const l=n.options.fence||"`";if(l!=="`"&&l!=="~")throw new Error("Cannot serialize code with `"+l+"` for `options.fence`, expected `` ` `` or `~`");return l}function I4(n,l,a,s){const o=X4(a),c=n.value||"",f=o==="`"?"GraveAccent":"Tilde";if(G4(n,a)){const g=a.enter("codeIndented"),
|
|
35
|
+
`}function V4(n,l){const a=String(n);let s=a.indexOf(l),o=s,c=0,f=0;if(typeof l!="string")throw new TypeError("Expected substring");for(;s!==-1;)s===o?++c>f&&(f=c):c=1,o=s+l.length,s=a.indexOf(l,o);return f}function G4(n,l){return!!(l.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function X4(n){const l=n.options.fence||"`";if(l!=="`"&&l!=="~")throw new Error("Cannot serialize code with `"+l+"` for `options.fence`, expected `` ` `` or `~`");return l}function I4(n,l,a,s){const o=X4(a),c=n.value||"",f=o==="`"?"GraveAccent":"Tilde";if(G4(n,a)){const g=a.enter("codeIndented"),S=a.indentLines(c,K4);return g(),S}const m=a.createTracker(s),y=o.repeat(Math.max(V4(c,o)+1,3)),p=a.enter("codeFenced");let x=m.move(y);if(n.lang){const g=a.enter(`codeFencedLang${f}`);x+=m.move(a.safe(n.lang,{before:x,after:" ",encode:["`"],...m.current()})),g()}if(n.lang&&n.meta){const g=a.enter(`codeFencedMeta${f}`);x+=m.move(" "),x+=m.move(a.safe(n.meta,{before:x,after:`
|
|
36
36
|
`,encode:["`"],...m.current()})),g()}return x+=m.move(`
|
|
37
37
|
`),c&&(x+=m.move(c+`
|
|
38
|
-
`)),x+=m.move(y),p(),x}function K4(n,l,a){return(a?"":" ")+n}function
|
|
39
|
-
`,...y.current()}))),m(),n.title&&(m=a.enter(`title${c}`),p+=y.move(" "+o),p+=y.move(a.safe(n.title,{before:p,after:o,...y.current()})),p+=y.move(o),m()),f(),p}function $4(n){const l=n.options.emphasis||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize emphasis with `"+l+"` for `options.emphasis`, expected `*`, or `_`");return l}function br(n){return"&#x"+n.toString(16).toUpperCase()+";"}function Ws(n,l,a){const s=ha(n),o=ha(l);return s===void 0?o===void 0?a==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:s===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Sy.peek=P4;function Sy(n,l,a,s){const o=$4(a),c=a.enter("emphasis"),f=a.createTracker(s),m=f.move(o);let y=f.move(a.containerPhrasing(n,{after:o,before:m,...f.current()}));const p=y.charCodeAt(0),x=Ws(s.before.charCodeAt(s.before.length-1),p,o);x.inside&&(y=br(p)+y.slice(1));const g=y.charCodeAt(y.length-1),
|
|
38
|
+
`)),x+=m.move(y),p(),x}function K4(n,l,a){return(a?"":" ")+n}function Ff(n){const l=n.options.quote||'"';if(l!=='"'&&l!=="'")throw new Error("Cannot serialize title with `"+l+"` for `options.quote`, expected `\"`, or `'`");return l}function Z4(n,l,a,s){const o=Ff(a),c=o==='"'?"Quote":"Apostrophe",f=a.enter("definition");let m=a.enter("label");const y=a.createTracker(s);let p=y.move("[");return p+=y.move(a.safe(a.associationId(n),{before:p,after:"]",...y.current()})),p+=y.move("]: "),m(),!n.url||/[\0- \u007F]/.test(n.url)?(m=a.enter("destinationLiteral"),p+=y.move("<"),p+=y.move(a.safe(n.url,{before:p,after:">",...y.current()})),p+=y.move(">")):(m=a.enter("destinationRaw"),p+=y.move(a.safe(n.url,{before:p,after:n.title?" ":`
|
|
39
|
+
`,...y.current()}))),m(),n.title&&(m=a.enter(`title${c}`),p+=y.move(" "+o),p+=y.move(a.safe(n.title,{before:p,after:o,...y.current()})),p+=y.move(o),m()),f(),p}function $4(n){const l=n.options.emphasis||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize emphasis with `"+l+"` for `options.emphasis`, expected `*`, or `_`");return l}function br(n){return"&#x"+n.toString(16).toUpperCase()+";"}function Ws(n,l,a){const s=ha(n),o=ha(l);return s===void 0?o===void 0?a==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:s===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Sy.peek=P4;function Sy(n,l,a,s){const o=$4(a),c=a.enter("emphasis"),f=a.createTracker(s),m=f.move(o);let y=f.move(a.containerPhrasing(n,{after:o,before:m,...f.current()}));const p=y.charCodeAt(0),x=Ws(s.before.charCodeAt(s.before.length-1),p,o);x.inside&&(y=br(p)+y.slice(1));const g=y.charCodeAt(y.length-1),S=Ws(s.after.charCodeAt(0),g,o);S.inside&&(y=y.slice(0,-1)+br(g));const k=f.move(o);return c(),a.attentionEncodeSurroundingInfo={after:S.outside,before:x.outside},m+y+k}function P4(n,l,a){return a.options.emphasis||"*"}function J4(n,l){let a=!1;return Qf(n,function(s){if("value"in s&&/\r?\n|\r/.test(s.value)||s.type==="break")return a=!0,of}),!!((!n.depth||n.depth<3)&&Of(n)&&(l.options.setext||a))}function W4(n,l,a,s){const o=Math.max(Math.min(6,n.depth||1),1),c=a.createTracker(s);if(J4(n,a)){const x=a.enter("headingSetext"),g=a.enter("phrasing"),S=a.containerPhrasing(n,{...c.current(),before:`
|
|
40
40
|
`,after:`
|
|
41
|
-
`});return g(),x(),
|
|
42
|
-
`+(o===1?"=":"-").repeat(
|
|
41
|
+
`});return g(),x(),S+`
|
|
42
|
+
`+(o===1?"=":"-").repeat(S.length-(Math.max(S.lastIndexOf("\r"),S.lastIndexOf(`
|
|
43
43
|
`))+1))}const f="#".repeat(o),m=a.enter("headingAtx"),y=a.enter("phrasing");c.move(f+" ");let p=a.containerPhrasing(n,{before:"# ",after:`
|
|
44
|
-
`,...c.current()});return/^[\t ]/.test(p)&&(p=br(p.charCodeAt(0))+p.slice(1)),p=p?f+" "+p:f,a.options.closeAtx&&(p+=" "+f),y(),m(),p}ky.peek=ej;function ky(n){return n.value||""}function ej(){return"<"}wy.peek=tj;function wy(n,l,a,s){const o=
|
|
45
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:
|
|
46
|
-
`))}function y(k,z,E,M){const j=E.enter("tableCell"),q=E.enter("phrasing"),L=E.containerPhrasing(k,{...M,before:c,after:c});return q(),j(),L}function p(k,z){return q4(k,{align:z,alignDelimiters:s,padding:a,stringLength:o})}function x(k,z,E){const M=k.children;let j=-1;const q=[],L=z.enter("table");for(;++j<M.length;)q[j]=g(M[j],z,E);return L(),q}function g(k,z,E){const M=k.children;let j=-1;const q=[],L=z.enter("tableRow");for(;++j<M.length;)q[j]=y(M[j],k,z,E);return L(),q}function v(k,z,E){let M=Dy.inlineCode(k,z,E);return E.stack.includes("tableCell")&&(M=M.replace(/\|/g,"\\$&")),M}}function Cj(){return{exit:{taskListCheckValueChecked:eg,taskListCheckValueUnchecked:eg,paragraph:Tj}}}function Nj(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ej}}}function eg(n){const l=this.stack[this.stack.length-2];l.type,l.checked=n.type==="taskListCheckValueChecked"}function Tj(n){const l=this.stack[this.stack.length-2];if(l&&l.type==="listItem"&&typeof l.checked=="boolean"){const a=this.stack[this.stack.length-1];a.type;const s=a.children[0];if(s&&s.type==="text"){const o=l.children;let c=-1,f;for(;++c<o.length;){const m=o[c];if(m.type==="paragraph"){f=m;break}}f===a&&(s.value=s.value.slice(1),s.value.length===0?a.children.shift():a.position&&s.position&&typeof s.position.start.offset=="number"&&(s.position.start.column++,s.position.start.offset++,a.position.start=Object.assign({},s.position.start)))}}this.exit(n)}function Ej(n,l,a,s){const o=n.children[0],c=typeof n.checked=="boolean"&&o&&o.type==="paragraph",f="["+(n.checked?"x":" ")+"] ",m=a.createTracker(s);c&&m.move(f);let y=Dy.listItem(n,l,a,{...s,...m.current()});return c&&(y=y.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),y;function p(x){return x+f}}function Aj(){return[o4(),E4(),M4(),bj(),Cj()]}function Dj(n){return{extensions:[u4(),A4(n),O4(),jj(n),Nj()]}}const _j={tokenize:Bj,partial:!0},_y={tokenize:qj,partial:!0},My={tokenize:Hj,partial:!0},Oy={tokenize:Qj,partial:!0},Mj={tokenize:Yj,partial:!0},Ry={name:"wwwAutolink",tokenize:Lj,previous:Uy},Ly={name:"protocolAutolink",tokenize:Uj,previous:By},di={name:"emailAutolink",tokenize:Rj,previous:qy},In={};function Oj(){return{text:In}}let cl=48;for(;cl<123;)In[cl]=di,cl++,cl===58?cl=65:cl===91&&(cl=97);In[43]=di;In[45]=di;In[46]=di;In[95]=di;In[72]=[di,Ly];In[104]=[di,Ly];In[87]=[di,Ry];In[119]=[di,Ry];function Rj(n,l,a){const s=this;let o,c;return f;function f(g){return!ff(g)||!qy.call(s,s.previous)||Vf(s.events)?a(g):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),m(g))}function m(g){return ff(g)?(n.consume(g),m):g===64?(n.consume(g),y):a(g)}function y(g){return g===46?n.check(Mj,x,p)(g):g===45||g===95||Lt(g)?(c=!0,n.consume(g),y):x(g)}function p(g){return n.consume(g),o=!0,y}function x(g){return c&&o&&Qt(s.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),l(g)):a(g)}}function Lj(n,l,a){const s=this;return o;function o(f){return f!==87&&f!==119||!Uy.call(s,s.previous)||Vf(s.events)?a(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(_j,n.attempt(_y,n.attempt(My,c),a),a)(f))}function c(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),l(f)}}function Uj(n,l,a){const s=this;let o="",c=!1;return f;function f(g){return(g===72||g===104)&&By.call(s,s.previous)&&!Vf(s.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),n.consume(g),m):a(g)}function m(g){if(Qt(g)&&o.length<5)return o+=String.fromCodePoint(g),n.consume(g),m;if(g===58){const v=o.toLowerCase();if(v==="http"||v==="https")return n.consume(g),y}return a(g)}function y(g){return g===47?(n.consume(g),c?p:(c=!0,y)):a(g)}function p(g){return g===null||$s(g)||Ke(g)||gl(g)||lo(g)?a(g):n.attempt(_y,n.attempt(My,x),a)(g)}function x(g){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),l(g)}}function Bj(n,l,a){let s=0;return o;function o(f){return(f===87||f===119)&&s<3?(s++,n.consume(f),o):f===46&&s===3?(n.consume(f),c):a(f)}function c(f){return f===null?a(f):l(f)}}function qj(n,l,a){let s,o,c;return f;function f(p){return p===46||p===95?n.check(Oy,y,m)(p):p===null||Ke(p)||gl(p)||p!==45&&lo(p)?y(p):(c=!0,n.consume(p),f)}function m(p){return p===95?s=!0:(o=s,s=void 0),n.consume(p),f}function y(p){return o||s||!c?a(p):l(p)}}function Hj(n,l){let a=0,s=0;return o;function o(f){return f===40?(a++,n.consume(f),o):f===41&&s<a?c(f):f===33||f===34||f===38||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===60||f===63||f===93||f===95||f===126?n.check(Oy,l,c)(f):f===null||Ke(f)||gl(f)?l(f):(n.consume(f),o)}function c(f){return f===41&&s++,n.consume(f),o}}function Qj(n,l,a){return s;function s(m){return m===33||m===34||m===39||m===41||m===42||m===44||m===46||m===58||m===59||m===63||m===95||m===126?(n.consume(m),s):m===38?(n.consume(m),c):m===93?(n.consume(m),o):m===60||m===null||Ke(m)||gl(m)?l(m):a(m)}function o(m){return m===null||m===40||m===91||Ke(m)||gl(m)?l(m):s(m)}function c(m){return Qt(m)?f(m):a(m)}function f(m){return m===59?(n.consume(m),s):Qt(m)?(n.consume(m),f):a(m)}}function Yj(n,l,a){return s;function s(c){return n.consume(c),o}function o(c){return Lt(c)?a(c):l(c)}}function Uy(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Ke(n)}function By(n){return!Qt(n)}function qy(n){return!(n===47||ff(n))}function ff(n){return n===43||n===45||n===46||n===95||Lt(n)}function Vf(n){let l=n.length,a=!1;for(;l--;){const s=n[l][1];if((s.type==="labelLink"||s.type==="labelImage")&&!s._balanced){a=!0;break}if(s._gfmAutolinkLiteralWalkedInto){a=!1;break}}return n.length>0&&!a&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}const Fj={tokenize:Pj,partial:!0};function Vj(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Kj,continuation:{tokenize:Zj},exit:$j}},text:{91:{name:"gfmFootnoteCall",tokenize:Ij},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Gj,resolveTo:Xj}}}}function Gj(n,l,a){const s=this;let o=s.events.length;const c=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]);let f;for(;o--;){const y=s.events[o][1];if(y.type==="labelImage"){f=y;break}if(y.type==="gfmFootnoteCall"||y.type==="labelLink"||y.type==="label"||y.type==="image"||y.type==="link")break}return m;function m(y){if(!f||!f._balanced)return a(y);const p=_n(s.sliceSerialize({start:f.end,end:s.now()}));return p.codePointAt(0)!==94||!c.includes(p.slice(1))?a(y):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),l(y))}}function Xj(n,l){let a=n.length;for(;a--;)if(n[a][1].type==="labelImage"&&n[a][0]==="enter"){n[a][1];break}n[a+1][1].type="data",n[a+3][1].type="gfmFootnoteCallLabelMarker";const s={type:"gfmFootnoteCall",start:Object.assign({},n[a+3][1].start),end:Object.assign({},n[n.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},n[a+3][1].end),end:Object.assign({},n[a+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},n[n.length-1][1].start)},f={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},m=[n[a+1],n[a+2],["enter",s,l],n[a+3],n[a+4],["enter",o,l],["exit",o,l],["enter",c,l],["enter",f,l],["exit",f,l],["exit",c,l],n[n.length-2],n[n.length-1],["exit",s,l]];return n.splice(a,n.length-a+1,...m),n}function Ij(n,l,a){const s=this,o=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]);let c=0,f;return m;function m(g){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),y}function y(g){return g!==94?a(g):(n.enter("gfmFootnoteCallMarker"),n.consume(g),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",p)}function p(g){if(c>999||g===93&&!f||g===null||g===91||Ke(g))return a(g);if(g===93){n.exit("chunkString");const v=n.exit("gfmFootnoteCallString");return o.includes(_n(s.sliceSerialize(v)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),l):a(g)}return Ke(g)||(f=!0),c++,n.consume(g),g===92?x:p}function x(g){return g===91||g===92||g===93?(n.consume(g),c++,p):p(g)}}function Kj(n,l,a){const s=this,o=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]);let c,f=0,m;return y;function y(z){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(z),n.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(z){return z===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(z),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",x):a(z)}function x(z){if(f>999||z===93&&!m||z===null||z===91||Ke(z))return a(z);if(z===93){n.exit("chunkString");const E=n.exit("gfmFootnoteDefinitionLabelString");return c=_n(s.sliceSerialize(E)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(z),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),v}return Ke(z)||(m=!0),f++,n.consume(z),z===92?g:x}function g(z){return z===91||z===92||z===93?(n.consume(z),f++,x):x(z)}function v(z){return z===58?(n.enter("definitionMarker"),n.consume(z),n.exit("definitionMarker"),o.includes(c)||o.push(c),Le(n,k,"gfmFootnoteDefinitionWhitespace")):a(z)}function k(z){return l(z)}}function Zj(n,l,a){return n.check(zr,l,n.attempt(Fj,l,a))}function $j(n){n.exit("gfmFootnoteDefinition")}function Pj(n,l,a){const s=this;return Le(n,o,"gfmFootnoteDefinitionIndent",5);function o(c){const f=s.events[s.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?l(c):a(c)}}function Jj(n){let a=(n||{}).singleTilde;const s={name:"strikethrough",tokenize:c,resolveAll:o};return a==null&&(a=!0),{text:{126:s},insideSpan:{null:[s]},attentionMarkers:{null:[126]}};function o(f,m){let y=-1;for(;++y<f.length;)if(f[y][0]==="enter"&&f[y][1].type==="strikethroughSequenceTemporary"&&f[y][1]._close){let p=y;for(;p--;)if(f[p][0]==="exit"&&f[p][1].type==="strikethroughSequenceTemporary"&&f[p][1]._open&&f[y][1].end.offset-f[y][1].start.offset===f[p][1].end.offset-f[p][1].start.offset){f[y][1].type="strikethroughSequence",f[p][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},f[p][1].start),end:Object.assign({},f[y][1].end)},g={type:"strikethroughText",start:Object.assign({},f[p][1].end),end:Object.assign({},f[y][1].start)},v=[["enter",x,m],["enter",f[p][1],m],["exit",f[p][1],m],["enter",g,m]],k=m.parser.constructs.insideSpan.null;k&&cn(v,v.length,0,ao(k,f.slice(p+1,y),m)),cn(v,v.length,0,[["exit",g,m],["enter",f[y][1],m],["exit",f[y][1],m],["exit",x,m]]),cn(f,p-1,y-p+3,v),y=p+v.length-2;break}}for(y=-1;++y<f.length;)f[y][1].type==="strikethroughSequenceTemporary"&&(f[y][1].type="data");return f}function c(f,m,y){const p=this.previous,x=this.events;let g=0;return v;function v(z){return p===126&&x[x.length-1][1].type!=="characterEscape"?y(z):(f.enter("strikethroughSequenceTemporary"),k(z))}function k(z){const E=ha(p);if(z===126)return g>1?y(z):(f.consume(z),g++,k);if(g<2&&!a)return y(z);const M=f.exit("strikethroughSequenceTemporary"),j=ha(z);return M._open=!j||j===2&&!!E,M._close=!E||E===2&&!!j,m(z)}}}class Wj{constructor(){this.map=[]}add(l,a,s){eC(this,l,a,s)}consume(l){if(this.map.sort(function(c,f){return c[0]-f[0]}),this.map.length===0)return;let a=this.map.length;const s=[];for(;a>0;)a-=1,s.push(l.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),l.length=this.map[a][0];s.push(l.slice()),l.length=0;let o=s.pop();for(;o;){for(const c of o)l.push(c);o=s.pop()}this.map.length=0}}function eC(n,l,a,s){let o=0;if(!(a===0&&s.length===0)){for(;o<n.map.length;){if(n.map[o][0]===l){n.map[o][1]+=a,n.map[o][2].push(...s);return}o+=1}n.map.push([l,a,s])}}function tC(n,l){let a=!1;const s=[];for(;l<n.length;){const o=n[l];if(a){if(o[0]==="enter")o[1].type==="tableContent"&&s.push(n[l+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(n[l-1][1].type==="tableDelimiterMarker"){const c=s.length-1;s[c]=s[c]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(a=!0);l+=1}return s}function nC(){return{flow:{null:{name:"table",tokenize:iC,resolveAll:lC}}}}function iC(n,l,a){const s=this;let o=0,c=0,f;return m;function m(R){let G=s.events.length-1;for(;G>-1;){const se=s.events[G][1].type;if(se==="lineEnding"||se==="linePrefix")G--;else break}const K=G>-1?s.events[G][1].type:null,de=K==="tableHead"||K==="tableRow"?D:y;return de===D&&s.parser.lazy[s.now().line]?a(R):de(R)}function y(R){return n.enter("tableHead"),n.enter("tableRow"),p(R)}function p(R){return R===124||(f=!0,c+=1),x(R)}function x(R){return R===null?a(R):xe(R)?c>1?(c=0,s.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(R),n.exit("lineEnding"),k):a(R):_e(R)?Le(n,x,"whitespace")(R):(c+=1,f&&(f=!1,o+=1),R===124?(n.enter("tableCellDivider"),n.consume(R),n.exit("tableCellDivider"),f=!0,x):(n.enter("data"),g(R)))}function g(R){return R===null||R===124||Ke(R)?(n.exit("data"),x(R)):(n.consume(R),R===92?v:g)}function v(R){return R===92||R===124?(n.consume(R),g):g(R)}function k(R){return s.interrupt=!1,s.parser.lazy[s.now().line]?a(R):(n.enter("tableDelimiterRow"),f=!1,_e(R)?Le(n,z,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):z(R))}function z(R){return R===45||R===58?M(R):R===124?(f=!0,n.enter("tableCellDivider"),n.consume(R),n.exit("tableCellDivider"),E):ee(R)}function E(R){return _e(R)?Le(n,M,"whitespace")(R):M(R)}function M(R){return R===58?(c+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(R),n.exit("tableDelimiterMarker"),j):R===45?(c+=1,j(R)):R===null||xe(R)?ie(R):ee(R)}function j(R){return R===45?(n.enter("tableDelimiterFiller"),q(R)):ee(R)}function q(R){return R===45?(n.consume(R),q):R===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(R),n.exit("tableDelimiterMarker"),L):(n.exit("tableDelimiterFiller"),L(R))}function L(R){return _e(R)?Le(n,ie,"whitespace")(R):ie(R)}function ie(R){return R===124?z(R):R===null||xe(R)?!f||o!==c?ee(R):(n.exit("tableDelimiterRow"),n.exit("tableHead"),l(R)):ee(R)}function ee(R){return a(R)}function D(R){return n.enter("tableRow"),P(R)}function P(R){return R===124?(n.enter("tableCellDivider"),n.consume(R),n.exit("tableCellDivider"),P):R===null||xe(R)?(n.exit("tableRow"),l(R)):_e(R)?Le(n,P,"whitespace")(R):(n.enter("data"),te(R))}function te(R){return R===null||R===124||Ke(R)?(n.exit("data"),P(R)):(n.consume(R),R===92?ue:te)}function ue(R){return R===92||R===124?(n.consume(R),te):te(R)}}function lC(n,l){let a=-1,s=!0,o=0,c=[0,0,0,0],f=[0,0,0,0],m=!1,y=0,p,x,g;const v=new Wj;for(;++a<n.length;){const k=n[a],z=k[1];k[0]==="enter"?z.type==="tableHead"?(m=!1,y!==0&&(tg(v,l,y,p,x),x=void 0,y=0),p={type:"table",start:Object.assign({},z.start),end:Object.assign({},z.end)},v.add(a,0,[["enter",p,l]])):z.type==="tableRow"||z.type==="tableDelimiterRow"?(s=!0,g=void 0,c=[0,0,0,0],f=[0,a+1,0,0],m&&(m=!1,x={type:"tableBody",start:Object.assign({},z.start),end:Object.assign({},z.end)},v.add(a,0,[["enter",x,l]])),o=z.type==="tableDelimiterRow"?2:x?3:1):o&&(z.type==="data"||z.type==="tableDelimiterMarker"||z.type==="tableDelimiterFiller")?(s=!1,f[2]===0&&(c[1]!==0&&(f[0]=f[1],g=Fs(v,l,c,o,void 0,g),c=[0,0,0,0]),f[2]=a)):z.type==="tableCellDivider"&&(s?s=!1:(c[1]!==0&&(f[0]=f[1],g=Fs(v,l,c,o,void 0,g)),c=f,f=[c[1],a,0,0])):z.type==="tableHead"?(m=!0,y=a):z.type==="tableRow"||z.type==="tableDelimiterRow"?(y=a,c[1]!==0?(f[0]=f[1],g=Fs(v,l,c,o,a,g)):f[1]!==0&&(g=Fs(v,l,f,o,a,g)),o=0):o&&(z.type==="data"||z.type==="tableDelimiterMarker"||z.type==="tableDelimiterFiller")&&(f[3]=a)}for(y!==0&&tg(v,l,y,p,x),v.consume(l.events),a=-1;++a<l.events.length;){const k=l.events[a];k[0]==="enter"&&k[1].type==="table"&&(k[1]._align=tC(l.events,a))}return n}function Fs(n,l,a,s,o,c){const f=s===1?"tableHeader":s===2?"tableDelimiter":"tableData",m="tableContent";a[0]!==0&&(c.end=Object.assign({},ca(l.events,a[0])),n.add(a[0],0,[["exit",c,l]]));const y=ca(l.events,a[1]);if(c={type:f,start:Object.assign({},y),end:Object.assign({},y)},n.add(a[1],0,[["enter",c,l]]),a[2]!==0){const p=ca(l.events,a[2]),x=ca(l.events,a[3]),g={type:m,start:Object.assign({},p),end:Object.assign({},x)};if(n.add(a[2],0,[["enter",g,l]]),s!==2){const v=l.events[a[2]],k=l.events[a[3]];if(v[1].end=Object.assign({},k[1].end),v[1].type="chunkText",v[1].contentType="text",a[3]>a[2]+1){const z=a[2]+1,E=a[3]-a[2]-1;n.add(z,E,[])}}n.add(a[3]+1,0,[["exit",g,l]])}return o!==void 0&&(c.end=Object.assign({},ca(l.events,o)),n.add(o,0,[["exit",c,l]]),c=void 0),c}function tg(n,l,a,s,o){const c=[],f=ca(l.events,a);o&&(o.end=Object.assign({},f),c.push(["exit",o,l])),s.end=Object.assign({},f),c.push(["exit",s,l]),n.add(a+1,0,c)}function ca(n,l){const a=n[l],s=a[0]==="enter"?"start":"end";return a[1][s]}const aC={name:"tasklistCheck",tokenize:sC};function rC(){return{text:{91:aC}}}function sC(n,l,a){const s=this;return o;function o(y){return s.previous!==null||!s._gfmTasklistFirstContentOfListItem?a(y):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(y),n.exit("taskListCheckMarker"),c)}function c(y){return Ke(y)?(n.enter("taskListCheckValueUnchecked"),n.consume(y),n.exit("taskListCheckValueUnchecked"),f):y===88||y===120?(n.enter("taskListCheckValueChecked"),n.consume(y),n.exit("taskListCheckValueChecked"),f):a(y)}function f(y){return y===93?(n.enter("taskListCheckMarker"),n.consume(y),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),m):a(y)}function m(y){return xe(y)?l(y):_e(y)?n.check({tokenize:oC},l,a)(y):a(y)}}function oC(n,l,a){return Le(n,s,"whitespace");function s(o){return o===null?a(o):l(o)}}function uC(n){return $g([Oj(),Vj(),Jj(n),nC(),rC()])}const cC={};function fC(n){const l=this,a=n||cC,s=l.data(),o=s.micromarkExtensions||(s.micromarkExtensions=[]),c=s.fromMarkdownExtensions||(s.fromMarkdownExtensions=[]),f=s.toMarkdownExtensions||(s.toMarkdownExtensions=[]);o.push(uC(a)),c.push(Aj()),f.push(Dj(a))}const ng=Y.memo(function(l){const{content:a,className:s=""}=l;return h.jsx("div",{className:`break-words ${s}`,children:h.jsx(J3,{remarkPlugins:[fC],components:{h1:o=>{const{children:c}=o;return h.jsx("div",{className:"text-base font-semibold text-zinc-100 mt-3 mb-1.5",children:c})},h2:o=>{const{children:c}=o;return h.jsx("div",{className:"text-sm font-semibold text-zinc-100 mt-3 mb-1.5",children:c})},h3:o=>{const{children:c}=o;return h.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-3 mb-1.5",children:c})},h4:o=>{const{children:c}=o;return h.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},h5:o=>{const{children:c}=o;return h.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},h6:o=>{const{children:c}=o;return h.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},p:o=>{const{children:c}=o;return h.jsx("p",{className:"text-sm leading-relaxed text-zinc-300 whitespace-pre-wrap my-1.5 first:mt-0 last:mb-0",children:c})},a:o=>{const{href:c,children:f}=o;return h.jsx("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400 hover:text-cyan-300 underline underline-offset-2",children:f})},strong:o=>{const{children:c}=o;return h.jsx("strong",{className:"font-semibold text-zinc-50",children:c})},em:o=>{const{children:c}=o;return h.jsx("em",{className:"italic text-zinc-200",children:c})},code:o=>{const{children:c}=o;return h.jsx("code",{className:"px-1.5 py-0.5 rounded bg-zinc-800/80 text-cyan-300 text-[12px] font-mono",children:c})},pre:o=>{const{node:c}=o,f=c?.children?.[0];if(f?.tagName==="code"){const x=(f.properties?.className||[]).find(v=>v.startsWith("language-"))?.replace("language-","")||"code",g=f.children?.map(v=>v.value).join("")||"";return h.jsxs("div",{className:"relative group my-2 rounded-lg overflow-hidden border border-zinc-700/50",children:[h.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 bg-zinc-900 border-b border-zinc-700/50",children:[h.jsx("span",{className:"text-[10px] text-zinc-500 font-mono",children:x}),h.jsx(zn,{text:g})]}),h.jsx("pre",{className:"text-xs text-zinc-300 bg-zinc-900/80 p-3 overflow-x-auto",children:h.jsx("code",{children:g})})]})}const{children:m}=o;return h.jsx("pre",{children:m})},ul:o=>{const{children:c}=o;return h.jsx("ul",{className:"my-2 ml-3 space-y-1 list-disc list-inside text-zinc-200",children:c})},ol:o=>{const{children:c}=o;return h.jsx("ol",{className:"my-2 ml-3 space-y-1 list-decimal list-inside text-zinc-200",children:c})},li:o=>{const{children:c}=o;return h.jsx("li",{className:"text-sm leading-relaxed",children:c})},blockquote:o=>{const{children:c}=o;return h.jsx("div",{className:"border-l-2 border-zinc-600 pl-3 my-2 text-zinc-400 italic",children:c})},hr:()=>h.jsx("hr",{className:"border-zinc-700 my-4"}),table:o=>{const{children:c}=o;return h.jsx("div",{className:"my-2 overflow-x-auto rounded-lg border border-zinc-700/50",children:h.jsx("table",{className:"w-full text-sm",children:c})})},thead:o=>{const{children:c}=o;return h.jsx("thead",{className:"bg-zinc-900",children:c})},tr:o=>{const{children:c}=o;return h.jsx("tr",{className:"border-b border-zinc-700/50 last:border-b-0",children:c})},th:o=>{const{children:c}=o;return h.jsx("th",{className:"px-3 py-2 text-left font-medium text-zinc-200",children:c})},td:o=>{const{children:c}=o;return h.jsx("td",{className:"px-3 py-2 text-zinc-300",children:c})}},children:a})})});function dC(n){switch(n){case"created":return h.jsx(zf,{className:"w-3 h-3"});case"status_change":return h.jsx(Bv,{className:"w-3 h-3"});case"title_change":return h.jsx(Dg,{className:"w-3 h-3"});case"description_change":return h.jsx(kr,{className:"w-3 h-3"});case"blocked_change":return h.jsx(zg,{className:"w-3 h-3"});case"comment_added":return h.jsx(D2,{className:"w-3 h-3"})}}function Fc(n){return n.replace("_"," ")}function hC(n){const{type:l,old_value:a,new_value:s}=n;switch(l){case"created":return`Task created in ${Fc(s||"backlog")}`;case"status_change":return`Moved from ${Fc(a||"")} to ${Fc(s||"")}`;case"title_change":return"Title changed";case"description_change":return!a&&s?"Description added":a&&!s?"Description removed":"Description updated";case"blocked_change":return s==="true"?"Marked as blocked":"Unblocked";case"comment_added":return s==="claude"?"Claude commented":"User commented"}}function mC(n){const{activities:l}=n;return l.length===0?h.jsx("p",{className:"text-sm text-zinc-600",children:"No activity recorded yet"}):h.jsx("div",{className:"space-y-2",children:l.map((a,s)=>{const o=s===l.length-1;return h.jsxs("div",{className:"flex gap-3",children:[h.jsxs("div",{className:"flex flex-col items-center",children:[h.jsx("div",{className:"flex items-center justify-center w-6 h-6 bg-zinc-800 rounded-full text-zinc-400",children:dC(a.type)}),!o&&h.jsx("div",{className:"w-px flex-1 bg-zinc-800 my-1"})]}),h.jsxs("div",{className:"flex-1 pb-3",children:[h.jsx("p",{className:"text-sm text-zinc-300",children:hC(a)}),h.jsx("p",{className:"text-xs text-zinc-600",children:Cf(a.created_at)})]})]},a.id)})})}function pC(n){return{queryKey:["attachments",n],queryFn:()=>Xn(`/attachments/task/${n}`),enabled:!!n}}function gC(n){return{queryKey:["attachments","template",n],queryFn:()=>Xn(`/attachments/template/${n}`),enabled:!!n}}function yC(n){const l=tt();return vt({mutationFn:async a=>{const s=await Hy(a);return jn(`/attachments/task/${n}`,{filename:a.name,data:s,mimeType:a.type})},onSuccess:()=>{l.invalidateQueries({queryKey:["attachments",n]})}})}function xC(n){const l=tt();return vt({mutationFn:a=>Gn(`/attachments/${a}`),onSuccess:()=>{l.invalidateQueries({queryKey:["attachments",n]})}})}function bC(n){const l=tt();return vt({mutationFn:async a=>{const s=await Hy(a);return jn(`/attachments/template/${n}`,{filename:a.name,data:s,mimeType:a.type})},onSuccess:()=>{l.invalidateQueries({queryKey:["attachments","template",n]})}})}function vC(n){const l=tt();return vt({mutationFn:a=>Gn(`/attachments/${a}`),onSuccess:()=>{l.invalidateQueries({queryKey:["attachments","template",n]})}})}function Hy(n){return new Promise((l,a)=>{const s=new FileReader;s.onload=()=>{const c=s.result.split(",")[1];l(c)},s.onerror=a,s.readAsDataURL(n)})}function eo(n){return`/api/attachments/${n}/file`}const Vs=["image/png","image/jpeg","image/gif","image/webp"];function SC(n){const{taskId:l,disabled:a=!1}=n,[s,o]=Y.useState(!1),c=Y.useRef(null),{data:f=[]}=Mn(pC(l)),m=yC(l),y=xC(l),p=Y.useCallback(async j=>{if(a)return;const q=Array.from(j);for(const L of q)Vs.includes(L.type)&&m.mutate(L)},[m,a]),x=Y.useCallback(j=>{j.preventDefault(),a||o(!0)},[a]),g=Y.useCallback(j=>{j.preventDefault(),o(!1)},[]),v=Y.useCallback(j=>{if(j.preventDefault(),o(!1),a)return;const q=j.dataTransfer.files;q.length>0&&p(q)},[p,a]),k=Y.useCallback(j=>{if(a)return;const q=j.clipboardData?.items;if(!q)return;const L=[];for(const ie of Array.from(q))if(ie.type.startsWith("image/")){const ee=ie.getAsFile();ee&&L.push(ee)}L.length>0&&(j.preventDefault(),p(L))},[p,a]);Y.useEffect(()=>{if(!a)return document.addEventListener("paste",k),()=>{document.removeEventListener("paste",k)}},[k,a]);const z=j=>{if(a)return;const q=j.target.files;q&&q.length>0&&p(q),j.target.value=""},E=j=>{a||y.mutate(j)},M=f.filter(j=>Vs.includes(j.mime_type));return M.length===0&&!m.isPending?a?h.jsx("p",{className:"text-xs text-zinc-600",children:"No images attached"}):h.jsxs("div",{onDragOver:x,onDragLeave:g,onDrop:v,className:`
|
|
44
|
+
`,...c.current()});return/^[\t ]/.test(p)&&(p=br(p.charCodeAt(0))+p.slice(1)),p=p?f+" "+p:f,a.options.closeAtx&&(p+=" "+f),y(),m(),p}ky.peek=ej;function ky(n){return n.value||""}function ej(){return"<"}wy.peek=tj;function wy(n,l,a,s){const o=Ff(a),c=o==='"'?"Quote":"Apostrophe",f=a.enter("image");let m=a.enter("label");const y=a.createTracker(s);let p=y.move("![");return p+=y.move(a.safe(n.alt,{before:p,after:"]",...y.current()})),p+=y.move("]("),m(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(m=a.enter("destinationLiteral"),p+=y.move("<"),p+=y.move(a.safe(n.url,{before:p,after:">",...y.current()})),p+=y.move(">")):(m=a.enter("destinationRaw"),p+=y.move(a.safe(n.url,{before:p,after:n.title?" ":")",...y.current()}))),m(),n.title&&(m=a.enter(`title${c}`),p+=y.move(" "+o),p+=y.move(a.safe(n.title,{before:p,after:o,...y.current()})),p+=y.move(o),m()),p+=y.move(")"),f(),p}function tj(){return"!"}zy.peek=nj;function zy(n,l,a,s){const o=n.referenceType,c=a.enter("imageReference");let f=a.enter("label");const m=a.createTracker(s);let y=m.move("![");const p=a.safe(n.alt,{before:y,after:"]",...m.current()});y+=m.move(p+"]["),f();const x=a.stack;a.stack=[],f=a.enter("reference");const g=a.safe(a.associationId(n),{before:y,after:"]",...m.current()});return f(),a.stack=x,c(),o==="full"||!p||p!==g?y+=m.move(g+"]"):o==="shortcut"?y=y.slice(0,-1):y+=m.move("]"),y}function nj(){return"!"}jy.peek=ij;function jy(n,l,a){let s=n.value||"",o="`",c=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(s);)o+="`";for(/[^ \r\n]/.test(s)&&(/^[ \r\n]/.test(s)&&/[ \r\n]$/.test(s)||/^`|`$/.test(s))&&(s=" "+s+" ");++c<a.unsafe.length;){const f=a.unsafe[c],m=a.compilePattern(f);let y;if(f.atBreak)for(;y=m.exec(s);){let p=y.index;s.charCodeAt(p)===10&&s.charCodeAt(p-1)===13&&p--,s=s.slice(0,p)+" "+s.slice(y.index+1)}}return o+s+o}function ij(){return"`"}function Cy(n,l){const a=Of(n);return!!(!l.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(a===n.url||"mailto:"+a===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}Ny.peek=lj;function Ny(n,l,a,s){const o=Ff(a),c=o==='"'?"Quote":"Apostrophe",f=a.createTracker(s);let m,y;if(Cy(n,a)){const x=a.stack;a.stack=[],m=a.enter("autolink");let g=f.move("<");return g+=f.move(a.containerPhrasing(n,{before:g,after:">",...f.current()})),g+=f.move(">"),m(),a.stack=x,g}m=a.enter("link"),y=a.enter("label");let p=f.move("[");return p+=f.move(a.containerPhrasing(n,{before:p,after:"](",...f.current()})),p+=f.move("]("),y(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(y=a.enter("destinationLiteral"),p+=f.move("<"),p+=f.move(a.safe(n.url,{before:p,after:">",...f.current()})),p+=f.move(">")):(y=a.enter("destinationRaw"),p+=f.move(a.safe(n.url,{before:p,after:n.title?" ":")",...f.current()}))),y(),n.title&&(y=a.enter(`title${c}`),p+=f.move(" "+o),p+=f.move(a.safe(n.title,{before:p,after:o,...f.current()})),p+=f.move(o),y()),p+=f.move(")"),m(),p}function lj(n,l,a){return Cy(n,a)?"<":"["}Ty.peek=aj;function Ty(n,l,a,s){const o=n.referenceType,c=a.enter("linkReference");let f=a.enter("label");const m=a.createTracker(s);let y=m.move("[");const p=a.containerPhrasing(n,{before:y,after:"]",...m.current()});y+=m.move(p+"]["),f();const x=a.stack;a.stack=[],f=a.enter("reference");const g=a.safe(a.associationId(n),{before:y,after:"]",...m.current()});return f(),a.stack=x,c(),o==="full"||!p||p!==g?y+=m.move(g+"]"):o==="shortcut"?y=y.slice(0,-1):y+=m.move("]"),y}function aj(){return"["}function Vf(n){const l=n.options.bullet||"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bullet`, expected `*`, `+`, or `-`");return l}function rj(n){const l=Vf(n),a=n.options.bulletOther;if(!a)return l==="*"?"-":"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(a===l)throw new Error("Expected `bullet` (`"+l+"`) and `bulletOther` (`"+a+"`) to be different");return a}function sj(n){const l=n.options.bulletOrdered||".";if(l!=="."&&l!==")")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOrdered`, expected `.` or `)`");return l}function Ey(n){const l=n.options.rule||"*";if(l!=="*"&&l!=="-"&&l!=="_")throw new Error("Cannot serialize rules with `"+l+"` for `options.rule`, expected `*`, `-`, or `_`");return l}function oj(n,l,a,s){const o=a.enter("list"),c=a.bulletCurrent;let f=n.ordered?sj(a):Vf(a);const m=n.ordered?f==="."?")":".":rj(a);let y=l&&a.bulletLastUsed?f===a.bulletLastUsed:!1;if(!n.ordered){const x=n.children?n.children[0]:void 0;if((f==="*"||f==="-")&&x&&(!x.children||!x.children[0])&&a.stack[a.stack.length-1]==="list"&&a.stack[a.stack.length-2]==="listItem"&&a.stack[a.stack.length-3]==="list"&&a.stack[a.stack.length-4]==="listItem"&&a.indexStack[a.indexStack.length-1]===0&&a.indexStack[a.indexStack.length-2]===0&&a.indexStack[a.indexStack.length-3]===0&&(y=!0),Ey(a)===f&&x){let g=-1;for(;++g<n.children.length;){const S=n.children[g];if(S&&S.type==="listItem"&&S.children&&S.children[0]&&S.children[0].type==="thematicBreak"){y=!0;break}}}}y&&(f=m),a.bulletCurrent=f;const p=a.containerFlow(n,s);return a.bulletLastUsed=f,a.bulletCurrent=c,o(),p}function uj(n){const l=n.options.listItemIndent||"one";if(l!=="tab"&&l!=="one"&&l!=="mixed")throw new Error("Cannot serialize items with `"+l+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return l}function cj(n,l,a,s){const o=uj(a);let c=a.bulletCurrent||Vf(a);l&&l.type==="list"&&l.ordered&&(c=(typeof l.start=="number"&&l.start>-1?l.start:1)+(a.options.incrementListMarker===!1?0:l.children.indexOf(n))+c);let f=c.length+1;(o==="tab"||o==="mixed"&&(l&&l.type==="list"&&l.spread||n.spread))&&(f=Math.ceil(f/4)*4);const m=a.createTracker(s);m.move(c+" ".repeat(f-c.length)),m.shift(f);const y=a.enter("listItem"),p=a.indentLines(a.containerFlow(n,m.current()),x);return y(),p;function x(g,S,k){return S?(k?"":" ".repeat(f))+g:(k?c:c+" ".repeat(f-c.length))+g}}function fj(n,l,a,s){const o=a.enter("paragraph"),c=a.enter("phrasing"),f=a.containerPhrasing(n,s);return c(),o(),f}const dj=oo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function hj(n,l,a,s){return(n.children.some(function(f){return dj(f)})?a.containerPhrasing:a.containerFlow).call(a,n,s)}function mj(n){const l=n.options.strong||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize strong with `"+l+"` for `options.strong`, expected `*`, or `_`");return l}Ay.peek=pj;function Ay(n,l,a,s){const o=mj(a),c=a.enter("strong"),f=a.createTracker(s),m=f.move(o+o);let y=f.move(a.containerPhrasing(n,{after:o,before:m,...f.current()}));const p=y.charCodeAt(0),x=Ws(s.before.charCodeAt(s.before.length-1),p,o);x.inside&&(y=br(p)+y.slice(1));const g=y.charCodeAt(y.length-1),S=Ws(s.after.charCodeAt(0),g,o);S.inside&&(y=y.slice(0,-1)+br(g));const k=f.move(o+o);return c(),a.attentionEncodeSurroundingInfo={after:S.outside,before:x.outside},m+y+k}function pj(n,l,a){return a.options.strong||"*"}function gj(n,l,a,s){return a.safe(n.value,s)}function yj(n){const l=n.options.ruleRepetition||3;if(l<3)throw new Error("Cannot serialize rules with repetition `"+l+"` for `options.ruleRepetition`, expected `3` or more");return l}function xj(n,l,a){const s=(Ey(a)+(a.options.ruleSpaces?" ":"")).repeat(yj(a));return a.options.ruleSpaces?s.slice(0,-1):s}const Dy={blockquote:Q4,break:W0,code:I4,definition:Z4,emphasis:Sy,hardBreak:W0,heading:W4,html:ky,image:wy,imageReference:zy,inlineCode:jy,link:Ny,linkReference:Ty,list:oj,listItem:cj,paragraph:fj,root:hj,strong:Ay,text:gj,thematicBreak:xj};function bj(){return{enter:{table:vj,tableData:eg,tableHeader:eg,tableRow:kj},exit:{codeText:wj,table:Sj,tableData:Fc,tableHeader:Fc,tableRow:Fc}}}function vj(n){const l=n._align;this.enter({type:"table",align:l.map(function(a){return a==="none"?null:a}),children:[]},n),this.data.inTable=!0}function Sj(n){this.exit(n),this.data.inTable=void 0}function kj(n){this.enter({type:"tableRow",children:[]},n)}function Fc(n){this.exit(n)}function eg(n){this.enter({type:"tableCell",children:[]},n)}function wj(n){let l=this.resume();this.data.inTable&&(l=l.replace(/\\([\\|])/g,zj));const a=this.stack[this.stack.length-1];a.type,a.value=l,this.exit(n)}function zj(n,l){return l==="|"?l:n}function jj(n){const l=n||{},a=l.tableCellPadding,s=l.tablePipeAlign,o=l.stringLength,c=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
45
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:S,table:f,tableCell:y,tableRow:m}};function f(k,z,E,M){return p(x(k,E,M),k.align)}function m(k,z,E,M){const j=g(k,E,M),U=p([j]);return U.slice(0,U.indexOf(`
|
|
46
|
+
`))}function y(k,z,E,M){const j=E.enter("tableCell"),U=E.enter("phrasing"),L=E.containerPhrasing(k,{...M,before:c,after:c});return U(),j(),L}function p(k,z){return q4(k,{align:z,alignDelimiters:s,padding:a,stringLength:o})}function x(k,z,E){const M=k.children;let j=-1;const U=[],L=z.enter("table");for(;++j<M.length;)U[j]=g(M[j],z,E);return L(),U}function g(k,z,E){const M=k.children;let j=-1;const U=[],L=z.enter("tableRow");for(;++j<M.length;)U[j]=y(M[j],k,z,E);return L(),U}function S(k,z,E){let M=Dy.inlineCode(k,z,E);return E.stack.includes("tableCell")&&(M=M.replace(/\|/g,"\\$&")),M}}function Cj(){return{exit:{taskListCheckValueChecked:tg,taskListCheckValueUnchecked:tg,paragraph:Tj}}}function Nj(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ej}}}function tg(n){const l=this.stack[this.stack.length-2];l.type,l.checked=n.type==="taskListCheckValueChecked"}function Tj(n){const l=this.stack[this.stack.length-2];if(l&&l.type==="listItem"&&typeof l.checked=="boolean"){const a=this.stack[this.stack.length-1];a.type;const s=a.children[0];if(s&&s.type==="text"){const o=l.children;let c=-1,f;for(;++c<o.length;){const m=o[c];if(m.type==="paragraph"){f=m;break}}f===a&&(s.value=s.value.slice(1),s.value.length===0?a.children.shift():a.position&&s.position&&typeof s.position.start.offset=="number"&&(s.position.start.column++,s.position.start.offset++,a.position.start=Object.assign({},s.position.start)))}}this.exit(n)}function Ej(n,l,a,s){const o=n.children[0],c=typeof n.checked=="boolean"&&o&&o.type==="paragraph",f="["+(n.checked?"x":" ")+"] ",m=a.createTracker(s);c&&m.move(f);let y=Dy.listItem(n,l,a,{...s,...m.current()});return c&&(y=y.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),y;function p(x){return x+f}}function Aj(){return[o4(),E4(),M4(),bj(),Cj()]}function Dj(n){return{extensions:[u4(),A4(n),O4(),jj(n),Nj()]}}const _j={tokenize:Bj,partial:!0},_y={tokenize:qj,partial:!0},My={tokenize:Hj,partial:!0},Oy={tokenize:Qj,partial:!0},Mj={tokenize:Yj,partial:!0},Ry={name:"wwwAutolink",tokenize:Lj,previous:Uy},Ly={name:"protocolAutolink",tokenize:Uj,previous:By},hi={name:"emailAutolink",tokenize:Rj,previous:qy},In={};function Oj(){return{text:In}}let cl=48;for(;cl<123;)In[cl]=hi,cl++,cl===58?cl=65:cl===91&&(cl=97);In[43]=hi;In[45]=hi;In[46]=hi;In[95]=hi;In[72]=[hi,Ly];In[104]=[hi,Ly];In[87]=[hi,Ry];In[119]=[hi,Ry];function Rj(n,l,a){const s=this;let o,c;return f;function f(g){return!df(g)||!qy.call(s,s.previous)||Gf(s.events)?a(g):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),m(g))}function m(g){return df(g)?(n.consume(g),m):g===64?(n.consume(g),y):a(g)}function y(g){return g===46?n.check(Mj,x,p)(g):g===45||g===95||Lt(g)?(c=!0,n.consume(g),y):x(g)}function p(g){return n.consume(g),o=!0,y}function x(g){return c&&o&&Qt(s.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),l(g)):a(g)}}function Lj(n,l,a){const s=this;return o;function o(f){return f!==87&&f!==119||!Uy.call(s,s.previous)||Gf(s.events)?a(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(_j,n.attempt(_y,n.attempt(My,c),a),a)(f))}function c(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),l(f)}}function Uj(n,l,a){const s=this;let o="",c=!1;return f;function f(g){return(g===72||g===104)&&By.call(s,s.previous)&&!Gf(s.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),n.consume(g),m):a(g)}function m(g){if(Qt(g)&&o.length<5)return o+=String.fromCodePoint(g),n.consume(g),m;if(g===58){const S=o.toLowerCase();if(S==="http"||S==="https")return n.consume(g),y}return a(g)}function y(g){return g===47?(n.consume(g),c?p:(c=!0,y)):a(g)}function p(g){return g===null||$s(g)||Ke(g)||gl(g)||ao(g)?a(g):n.attempt(_y,n.attempt(My,x),a)(g)}function x(g){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),l(g)}}function Bj(n,l,a){let s=0;return o;function o(f){return(f===87||f===119)&&s<3?(s++,n.consume(f),o):f===46&&s===3?(n.consume(f),c):a(f)}function c(f){return f===null?a(f):l(f)}}function qj(n,l,a){let s,o,c;return f;function f(p){return p===46||p===95?n.check(Oy,y,m)(p):p===null||Ke(p)||gl(p)||p!==45&&ao(p)?y(p):(c=!0,n.consume(p),f)}function m(p){return p===95?s=!0:(o=s,s=void 0),n.consume(p),f}function y(p){return o||s||!c?a(p):l(p)}}function Hj(n,l){let a=0,s=0;return o;function o(f){return f===40?(a++,n.consume(f),o):f===41&&s<a?c(f):f===33||f===34||f===38||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===60||f===63||f===93||f===95||f===126?n.check(Oy,l,c)(f):f===null||Ke(f)||gl(f)?l(f):(n.consume(f),o)}function c(f){return f===41&&s++,n.consume(f),o}}function Qj(n,l,a){return s;function s(m){return m===33||m===34||m===39||m===41||m===42||m===44||m===46||m===58||m===59||m===63||m===95||m===126?(n.consume(m),s):m===38?(n.consume(m),c):m===93?(n.consume(m),o):m===60||m===null||Ke(m)||gl(m)?l(m):a(m)}function o(m){return m===null||m===40||m===91||Ke(m)||gl(m)?l(m):s(m)}function c(m){return Qt(m)?f(m):a(m)}function f(m){return m===59?(n.consume(m),s):Qt(m)?(n.consume(m),f):a(m)}}function Yj(n,l,a){return s;function s(c){return n.consume(c),o}function o(c){return Lt(c)?a(c):l(c)}}function Uy(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Ke(n)}function By(n){return!Qt(n)}function qy(n){return!(n===47||df(n))}function df(n){return n===43||n===45||n===46||n===95||Lt(n)}function Gf(n){let l=n.length,a=!1;for(;l--;){const s=n[l][1];if((s.type==="labelLink"||s.type==="labelImage")&&!s._balanced){a=!0;break}if(s._gfmAutolinkLiteralWalkedInto){a=!1;break}}return n.length>0&&!a&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}const Fj={tokenize:Pj,partial:!0};function Vj(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Kj,continuation:{tokenize:Zj},exit:$j}},text:{91:{name:"gfmFootnoteCall",tokenize:Ij},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Gj,resolveTo:Xj}}}}function Gj(n,l,a){const s=this;let o=s.events.length;const c=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]);let f;for(;o--;){const y=s.events[o][1];if(y.type==="labelImage"){f=y;break}if(y.type==="gfmFootnoteCall"||y.type==="labelLink"||y.type==="label"||y.type==="image"||y.type==="link")break}return m;function m(y){if(!f||!f._balanced)return a(y);const p=_n(s.sliceSerialize({start:f.end,end:s.now()}));return p.codePointAt(0)!==94||!c.includes(p.slice(1))?a(y):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),l(y))}}function Xj(n,l){let a=n.length;for(;a--;)if(n[a][1].type==="labelImage"&&n[a][0]==="enter"){n[a][1];break}n[a+1][1].type="data",n[a+3][1].type="gfmFootnoteCallLabelMarker";const s={type:"gfmFootnoteCall",start:Object.assign({},n[a+3][1].start),end:Object.assign({},n[n.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},n[a+3][1].end),end:Object.assign({},n[a+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},n[n.length-1][1].start)},f={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},m=[n[a+1],n[a+2],["enter",s,l],n[a+3],n[a+4],["enter",o,l],["exit",o,l],["enter",c,l],["enter",f,l],["exit",f,l],["exit",c,l],n[n.length-2],n[n.length-1],["exit",s,l]];return n.splice(a,n.length-a+1,...m),n}function Ij(n,l,a){const s=this,o=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]);let c=0,f;return m;function m(g){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),y}function y(g){return g!==94?a(g):(n.enter("gfmFootnoteCallMarker"),n.consume(g),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",p)}function p(g){if(c>999||g===93&&!f||g===null||g===91||Ke(g))return a(g);if(g===93){n.exit("chunkString");const S=n.exit("gfmFootnoteCallString");return o.includes(_n(s.sliceSerialize(S)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),l):a(g)}return Ke(g)||(f=!0),c++,n.consume(g),g===92?x:p}function x(g){return g===91||g===92||g===93?(n.consume(g),c++,p):p(g)}}function Kj(n,l,a){const s=this,o=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]);let c,f=0,m;return y;function y(z){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(z),n.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(z){return z===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(z),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",x):a(z)}function x(z){if(f>999||z===93&&!m||z===null||z===91||Ke(z))return a(z);if(z===93){n.exit("chunkString");const E=n.exit("gfmFootnoteDefinitionLabelString");return c=_n(s.sliceSerialize(E)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(z),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),S}return Ke(z)||(m=!0),f++,n.consume(z),z===92?g:x}function g(z){return z===91||z===92||z===93?(n.consume(z),f++,x):x(z)}function S(z){return z===58?(n.enter("definitionMarker"),n.consume(z),n.exit("definitionMarker"),o.includes(c)||o.push(c),Le(n,k,"gfmFootnoteDefinitionWhitespace")):a(z)}function k(z){return l(z)}}function Zj(n,l,a){return n.check(zr,l,n.attempt(Fj,l,a))}function $j(n){n.exit("gfmFootnoteDefinition")}function Pj(n,l,a){const s=this;return Le(n,o,"gfmFootnoteDefinitionIndent",5);function o(c){const f=s.events[s.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?l(c):a(c)}}function Jj(n){let a=(n||{}).singleTilde;const s={name:"strikethrough",tokenize:c,resolveAll:o};return a==null&&(a=!0),{text:{126:s},insideSpan:{null:[s]},attentionMarkers:{null:[126]}};function o(f,m){let y=-1;for(;++y<f.length;)if(f[y][0]==="enter"&&f[y][1].type==="strikethroughSequenceTemporary"&&f[y][1]._close){let p=y;for(;p--;)if(f[p][0]==="exit"&&f[p][1].type==="strikethroughSequenceTemporary"&&f[p][1]._open&&f[y][1].end.offset-f[y][1].start.offset===f[p][1].end.offset-f[p][1].start.offset){f[y][1].type="strikethroughSequence",f[p][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},f[p][1].start),end:Object.assign({},f[y][1].end)},g={type:"strikethroughText",start:Object.assign({},f[p][1].end),end:Object.assign({},f[y][1].start)},S=[["enter",x,m],["enter",f[p][1],m],["exit",f[p][1],m],["enter",g,m]],k=m.parser.constructs.insideSpan.null;k&&cn(S,S.length,0,ro(k,f.slice(p+1,y),m)),cn(S,S.length,0,[["exit",g,m],["enter",f[y][1],m],["exit",f[y][1],m],["exit",x,m]]),cn(f,p-1,y-p+3,S),y=p+S.length-2;break}}for(y=-1;++y<f.length;)f[y][1].type==="strikethroughSequenceTemporary"&&(f[y][1].type="data");return f}function c(f,m,y){const p=this.previous,x=this.events;let g=0;return S;function S(z){return p===126&&x[x.length-1][1].type!=="characterEscape"?y(z):(f.enter("strikethroughSequenceTemporary"),k(z))}function k(z){const E=ha(p);if(z===126)return g>1?y(z):(f.consume(z),g++,k);if(g<2&&!a)return y(z);const M=f.exit("strikethroughSequenceTemporary"),j=ha(z);return M._open=!j||j===2&&!!E,M._close=!E||E===2&&!!j,m(z)}}}class Wj{constructor(){this.map=[]}add(l,a,s){eC(this,l,a,s)}consume(l){if(this.map.sort(function(c,f){return c[0]-f[0]}),this.map.length===0)return;let a=this.map.length;const s=[];for(;a>0;)a-=1,s.push(l.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),l.length=this.map[a][0];s.push(l.slice()),l.length=0;let o=s.pop();for(;o;){for(const c of o)l.push(c);o=s.pop()}this.map.length=0}}function eC(n,l,a,s){let o=0;if(!(a===0&&s.length===0)){for(;o<n.map.length;){if(n.map[o][0]===l){n.map[o][1]+=a,n.map[o][2].push(...s);return}o+=1}n.map.push([l,a,s])}}function tC(n,l){let a=!1;const s=[];for(;l<n.length;){const o=n[l];if(a){if(o[0]==="enter")o[1].type==="tableContent"&&s.push(n[l+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(n[l-1][1].type==="tableDelimiterMarker"){const c=s.length-1;s[c]=s[c]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(a=!0);l+=1}return s}function nC(){return{flow:{null:{name:"table",tokenize:iC,resolveAll:lC}}}}function iC(n,l,a){const s=this;let o=0,c=0,f;return m;function m(R){let V=s.events.length-1;for(;V>-1;){const re=s.events[V][1].type;if(re==="lineEnding"||re==="linePrefix")V--;else break}const X=V>-1?s.events[V][1].type:null,fe=X==="tableHead"||X==="tableRow"?D:y;return fe===D&&s.parser.lazy[s.now().line]?a(R):fe(R)}function y(R){return n.enter("tableHead"),n.enter("tableRow"),p(R)}function p(R){return R===124||(f=!0,c+=1),x(R)}function x(R){return R===null?a(R):xe(R)?c>1?(c=0,s.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(R),n.exit("lineEnding"),k):a(R):_e(R)?Le(n,x,"whitespace")(R):(c+=1,f&&(f=!1,o+=1),R===124?(n.enter("tableCellDivider"),n.consume(R),n.exit("tableCellDivider"),f=!0,x):(n.enter("data"),g(R)))}function g(R){return R===null||R===124||Ke(R)?(n.exit("data"),x(R)):(n.consume(R),R===92?S:g)}function S(R){return R===92||R===124?(n.consume(R),g):g(R)}function k(R){return s.interrupt=!1,s.parser.lazy[s.now().line]?a(R):(n.enter("tableDelimiterRow"),f=!1,_e(R)?Le(n,z,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):z(R))}function z(R){return R===45||R===58?M(R):R===124?(f=!0,n.enter("tableCellDivider"),n.consume(R),n.exit("tableCellDivider"),E):ee(R)}function E(R){return _e(R)?Le(n,M,"whitespace")(R):M(R)}function M(R){return R===58?(c+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(R),n.exit("tableDelimiterMarker"),j):R===45?(c+=1,j(R)):R===null||xe(R)?ne(R):ee(R)}function j(R){return R===45?(n.enter("tableDelimiterFiller"),U(R)):ee(R)}function U(R){return R===45?(n.consume(R),U):R===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(R),n.exit("tableDelimiterMarker"),L):(n.exit("tableDelimiterFiller"),L(R))}function L(R){return _e(R)?Le(n,ne,"whitespace")(R):ne(R)}function ne(R){return R===124?z(R):R===null||xe(R)?!f||o!==c?ee(R):(n.exit("tableDelimiterRow"),n.exit("tableHead"),l(R)):ee(R)}function ee(R){return a(R)}function D(R){return n.enter("tableRow"),P(R)}function P(R){return R===124?(n.enter("tableCellDivider"),n.consume(R),n.exit("tableCellDivider"),P):R===null||xe(R)?(n.exit("tableRow"),l(R)):_e(R)?Le(n,P,"whitespace")(R):(n.enter("data"),le(R))}function le(R){return R===null||R===124||Ke(R)?(n.exit("data"),P(R)):(n.consume(R),R===92?ue:le)}function ue(R){return R===92||R===124?(n.consume(R),le):le(R)}}function lC(n,l){let a=-1,s=!0,o=0,c=[0,0,0,0],f=[0,0,0,0],m=!1,y=0,p,x,g;const S=new Wj;for(;++a<n.length;){const k=n[a],z=k[1];k[0]==="enter"?z.type==="tableHead"?(m=!1,y!==0&&(ng(S,l,y,p,x),x=void 0,y=0),p={type:"table",start:Object.assign({},z.start),end:Object.assign({},z.end)},S.add(a,0,[["enter",p,l]])):z.type==="tableRow"||z.type==="tableDelimiterRow"?(s=!0,g=void 0,c=[0,0,0,0],f=[0,a+1,0,0],m&&(m=!1,x={type:"tableBody",start:Object.assign({},z.start),end:Object.assign({},z.end)},S.add(a,0,[["enter",x,l]])),o=z.type==="tableDelimiterRow"?2:x?3:1):o&&(z.type==="data"||z.type==="tableDelimiterMarker"||z.type==="tableDelimiterFiller")?(s=!1,f[2]===0&&(c[1]!==0&&(f[0]=f[1],g=Fs(S,l,c,o,void 0,g),c=[0,0,0,0]),f[2]=a)):z.type==="tableCellDivider"&&(s?s=!1:(c[1]!==0&&(f[0]=f[1],g=Fs(S,l,c,o,void 0,g)),c=f,f=[c[1],a,0,0])):z.type==="tableHead"?(m=!0,y=a):z.type==="tableRow"||z.type==="tableDelimiterRow"?(y=a,c[1]!==0?(f[0]=f[1],g=Fs(S,l,c,o,a,g)):f[1]!==0&&(g=Fs(S,l,f,o,a,g)),o=0):o&&(z.type==="data"||z.type==="tableDelimiterMarker"||z.type==="tableDelimiterFiller")&&(f[3]=a)}for(y!==0&&ng(S,l,y,p,x),S.consume(l.events),a=-1;++a<l.events.length;){const k=l.events[a];k[0]==="enter"&&k[1].type==="table"&&(k[1]._align=tC(l.events,a))}return n}function Fs(n,l,a,s,o,c){const f=s===1?"tableHeader":s===2?"tableDelimiter":"tableData",m="tableContent";a[0]!==0&&(c.end=Object.assign({},ca(l.events,a[0])),n.add(a[0],0,[["exit",c,l]]));const y=ca(l.events,a[1]);if(c={type:f,start:Object.assign({},y),end:Object.assign({},y)},n.add(a[1],0,[["enter",c,l]]),a[2]!==0){const p=ca(l.events,a[2]),x=ca(l.events,a[3]),g={type:m,start:Object.assign({},p),end:Object.assign({},x)};if(n.add(a[2],0,[["enter",g,l]]),s!==2){const S=l.events[a[2]],k=l.events[a[3]];if(S[1].end=Object.assign({},k[1].end),S[1].type="chunkText",S[1].contentType="text",a[3]>a[2]+1){const z=a[2]+1,E=a[3]-a[2]-1;n.add(z,E,[])}}n.add(a[3]+1,0,[["exit",g,l]])}return o!==void 0&&(c.end=Object.assign({},ca(l.events,o)),n.add(o,0,[["exit",c,l]]),c=void 0),c}function ng(n,l,a,s,o){const c=[],f=ca(l.events,a);o&&(o.end=Object.assign({},f),c.push(["exit",o,l])),s.end=Object.assign({},f),c.push(["exit",s,l]),n.add(a+1,0,c)}function ca(n,l){const a=n[l],s=a[0]==="enter"?"start":"end";return a[1][s]}const aC={name:"tasklistCheck",tokenize:sC};function rC(){return{text:{91:aC}}}function sC(n,l,a){const s=this;return o;function o(y){return s.previous!==null||!s._gfmTasklistFirstContentOfListItem?a(y):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(y),n.exit("taskListCheckMarker"),c)}function c(y){return Ke(y)?(n.enter("taskListCheckValueUnchecked"),n.consume(y),n.exit("taskListCheckValueUnchecked"),f):y===88||y===120?(n.enter("taskListCheckValueChecked"),n.consume(y),n.exit("taskListCheckValueChecked"),f):a(y)}function f(y){return y===93?(n.enter("taskListCheckMarker"),n.consume(y),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),m):a(y)}function m(y){return xe(y)?l(y):_e(y)?n.check({tokenize:oC},l,a)(y):a(y)}}function oC(n,l,a){return Le(n,s,"whitespace");function s(o){return o===null?a(o):l(o)}}function uC(n){return $g([Oj(),Vj(),Jj(n),nC(),rC()])}const cC={};function fC(n){const l=this,a=n||cC,s=l.data(),o=s.micromarkExtensions||(s.micromarkExtensions=[]),c=s.fromMarkdownExtensions||(s.fromMarkdownExtensions=[]),f=s.toMarkdownExtensions||(s.toMarkdownExtensions=[]);o.push(uC(a)),c.push(Aj()),f.push(Dj(a))}const ig=Q.memo(function(l){const{content:a,className:s=""}=l;return h.jsx("div",{className:`break-words ${s}`,children:h.jsx(J3,{remarkPlugins:[fC],components:{h1:o=>{const{children:c}=o;return h.jsx("div",{className:"text-base font-semibold text-zinc-100 mt-3 mb-1.5",children:c})},h2:o=>{const{children:c}=o;return h.jsx("div",{className:"text-sm font-semibold text-zinc-100 mt-3 mb-1.5",children:c})},h3:o=>{const{children:c}=o;return h.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-3 mb-1.5",children:c})},h4:o=>{const{children:c}=o;return h.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},h5:o=>{const{children:c}=o;return h.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},h6:o=>{const{children:c}=o;return h.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},p:o=>{const{children:c}=o;return h.jsx("p",{className:"text-sm leading-relaxed text-zinc-300 whitespace-pre-wrap my-1.5 first:mt-0 last:mb-0",children:c})},a:o=>{const{href:c,children:f}=o;return h.jsx("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400 hover:text-cyan-300 underline underline-offset-2",children:f})},strong:o=>{const{children:c}=o;return h.jsx("strong",{className:"font-semibold text-zinc-50",children:c})},em:o=>{const{children:c}=o;return h.jsx("em",{className:"italic text-zinc-200",children:c})},code:o=>{const{children:c}=o;return h.jsx("code",{className:"px-1.5 py-0.5 rounded bg-zinc-800/80 text-cyan-300 text-[12px] font-mono",children:c})},pre:o=>{const{node:c}=o,f=c?.children?.[0];if(f?.tagName==="code"){const x=(f.properties?.className||[]).find(S=>S.startsWith("language-"))?.replace("language-","")||"code",g=f.children?.map(S=>S.value).join("")||"";return h.jsxs("div",{className:"relative group my-2 rounded-lg overflow-hidden border border-zinc-700/50",children:[h.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 bg-zinc-900 border-b border-zinc-700/50",children:[h.jsx("span",{className:"text-[10px] text-zinc-500 font-mono",children:x}),h.jsx(zn,{text:g})]}),h.jsx("pre",{className:"text-xs text-zinc-300 bg-zinc-900/80 p-3 overflow-x-auto",children:h.jsx("code",{children:g})})]})}const{children:m}=o;return h.jsx("pre",{children:m})},ul:o=>{const{children:c}=o;return h.jsx("ul",{className:"my-2 ml-3 space-y-1 list-disc list-inside text-zinc-200",children:c})},ol:o=>{const{children:c}=o;return h.jsx("ol",{className:"my-2 ml-3 space-y-1 list-decimal list-inside text-zinc-200",children:c})},li:o=>{const{children:c}=o;return h.jsx("li",{className:"text-sm leading-relaxed",children:c})},blockquote:o=>{const{children:c}=o;return h.jsx("div",{className:"border-l-2 border-zinc-600 pl-3 my-2 text-zinc-400 italic",children:c})},hr:()=>h.jsx("hr",{className:"border-zinc-700 my-4"}),table:o=>{const{children:c}=o;return h.jsx("div",{className:"my-2 overflow-x-auto rounded-lg border border-zinc-700/50",children:h.jsx("table",{className:"w-full text-sm",children:c})})},thead:o=>{const{children:c}=o;return h.jsx("thead",{className:"bg-zinc-900",children:c})},tr:o=>{const{children:c}=o;return h.jsx("tr",{className:"border-b border-zinc-700/50 last:border-b-0",children:c})},th:o=>{const{children:c}=o;return h.jsx("th",{className:"px-3 py-2 text-left font-medium text-zinc-200",children:c})},td:o=>{const{children:c}=o;return h.jsx("td",{className:"px-3 py-2 text-zinc-300",children:c})}},children:a})})});function dC(n){switch(n){case"created":return h.jsx(Cf,{className:"w-3 h-3"});case"status_change":return h.jsx(Bv,{className:"w-3 h-3"});case"title_change":return h.jsx(Dg,{className:"w-3 h-3"});case"description_change":return h.jsx(kr,{className:"w-3 h-3"});case"blocked_change":return h.jsx(zg,{className:"w-3 h-3"});case"comment_added":return h.jsx(D2,{className:"w-3 h-3"})}}function Vc(n){return n.replace("_"," ")}function hC(n){const{type:l,old_value:a,new_value:s}=n;switch(l){case"created":return`Task created in ${Vc(s||"backlog")}`;case"status_change":return`Moved from ${Vc(a||"")} to ${Vc(s||"")}`;case"title_change":return"Title changed";case"description_change":return!a&&s?"Description added":a&&!s?"Description removed":"Description updated";case"blocked_change":return s==="true"?"Marked as blocked":"Unblocked";case"comment_added":return s==="claude"?"Claude commented":"User commented"}}function mC(n){const{activities:l}=n;return l.length===0?h.jsx("p",{className:"text-sm text-zinc-600",children:"No activity recorded yet"}):h.jsx("div",{className:"space-y-2",children:l.map((a,s)=>{const o=s===l.length-1;return h.jsxs("div",{className:"flex gap-3",children:[h.jsxs("div",{className:"flex flex-col items-center",children:[h.jsx("div",{className:"flex items-center justify-center w-6 h-6 bg-zinc-800 rounded-full text-zinc-400",children:dC(a.type)}),!o&&h.jsx("div",{className:"w-px flex-1 bg-zinc-800 my-1"})]}),h.jsxs("div",{className:"flex-1 pb-3",children:[h.jsx("p",{className:"text-sm text-zinc-300",children:hC(a)}),h.jsx("p",{className:"text-xs text-zinc-600",children:lo(a.created_at)})]})]},a.id)})})}function pC(n){return{queryKey:["attachments",n],queryFn:()=>Xn(`/attachments/task/${n}`),enabled:!!n}}function gC(n){return{queryKey:["attachments","template",n],queryFn:()=>Xn(`/attachments/template/${n}`),enabled:!!n}}function yC(n){const l=tt();return vt({mutationFn:async a=>{const s=await Hy(a);return jn(`/attachments/task/${n}`,{filename:a.name,data:s,mimeType:a.type})},onSuccess:()=>{l.invalidateQueries({queryKey:["attachments",n]})}})}function xC(n){const l=tt();return vt({mutationFn:a=>Gn(`/attachments/${a}`),onSuccess:()=>{l.invalidateQueries({queryKey:["attachments",n]})}})}function bC(n){const l=tt();return vt({mutationFn:async a=>{const s=await Hy(a);return jn(`/attachments/template/${n}`,{filename:a.name,data:s,mimeType:a.type})},onSuccess:()=>{l.invalidateQueries({queryKey:["attachments","template",n]})}})}function vC(n){const l=tt();return vt({mutationFn:a=>Gn(`/attachments/${a}`),onSuccess:()=>{l.invalidateQueries({queryKey:["attachments","template",n]})}})}function Hy(n){return new Promise((l,a)=>{const s=new FileReader;s.onload=()=>{const c=s.result.split(",")[1];l(c)},s.onerror=a,s.readAsDataURL(n)})}function eo(n){return`/api/attachments/${n}/file`}const Vs=["image/png","image/jpeg","image/gif","image/webp"];function SC(n){const{taskId:l,disabled:a=!1}=n,[s,o]=Q.useState(!1),c=Q.useRef(null),{data:f=[]}=Mn(pC(l)),m=yC(l),y=xC(l),p=Q.useCallback(async j=>{if(a)return;const U=Array.from(j);for(const L of U)Vs.includes(L.type)&&m.mutate(L)},[m,a]),x=Q.useCallback(j=>{j.preventDefault(),a||o(!0)},[a]),g=Q.useCallback(j=>{j.preventDefault(),o(!1)},[]),S=Q.useCallback(j=>{if(j.preventDefault(),o(!1),a)return;const U=j.dataTransfer.files;U.length>0&&p(U)},[p,a]),k=Q.useCallback(j=>{if(a)return;const U=j.clipboardData?.items;if(!U)return;const L=[];for(const ne of Array.from(U))if(ne.type.startsWith("image/")){const ee=ne.getAsFile();ee&&L.push(ee)}L.length>0&&(j.preventDefault(),p(L))},[p,a]);Q.useEffect(()=>{if(!a)return document.addEventListener("paste",k),()=>{document.removeEventListener("paste",k)}},[k,a]);const z=j=>{if(a)return;const U=j.target.files;U&&U.length>0&&p(U),j.target.value=""},E=j=>{a||y.mutate(j)},M=f.filter(j=>Vs.includes(j.mime_type));return M.length===0&&!m.isPending?a?h.jsx("p",{className:"text-xs text-zinc-600",children:"No images attached"}):h.jsxs("div",{onDragOver:x,onDragLeave:g,onDrop:S,className:`
|
|
47
47
|
border border-dashed rounded-lg p-8 text-center transition-colors cursor-pointer
|
|
48
48
|
${s?"border-orange-500 bg-orange-500/10":"border-zinc-700 hover:border-zinc-600"}
|
|
49
|
-
`,onClick:()=>c.current?.click(),children:[h.jsx("input",{ref:c,type:"file",accept:Vs.join(","),multiple:!0,onChange:z,className:"hidden"}),h.jsx(
|
|
49
|
+
`,onClick:()=>c.current?.click(),children:[h.jsx("input",{ref:c,type:"file",accept:Vs.join(","),multiple:!0,onChange:z,className:"hidden"}),h.jsx(Nf,{className:"w-5 h-5 mx-auto mb-1.5 text-zinc-500"}),h.jsx("p",{className:"text-xs text-zinc-500",children:"Drop, paste, or click to upload"})]}):h.jsxs("div",{className:"space-y-2",children:[M.length>0&&h.jsx("div",{className:"space-y-1.5",children:M.map(j=>h.jsxs("div",{className:"flex items-center gap-2 p-2 bg-zinc-900/50 rounded-lg group",children:[h.jsx(zf,{className:"w-4 h-4 text-zinc-500 shrink-0"}),h.jsx("a",{href:eo(j.id),target:"_blank",rel:"noopener noreferrer",className:"flex-1 text-xs text-zinc-400 hover:text-zinc-300 truncate",children:j.original_name}),h.jsx("a",{href:eo(j.id),target:"_blank",rel:"noopener noreferrer",className:"p-1 text-zinc-600 hover:text-zinc-400 rounded transition-colors",title:"Open in new tab",children:h.jsx(Ng,{className:"w-3 h-3"})}),!a&&h.jsx("button",{onClick:()=>E(j.id),disabled:y.isPending,className:"p-1 text-zinc-600 hover:text-red-400 rounded transition-colors opacity-0 group-hover:opacity-100",title:"Delete",children:h.jsx(Cn,{className:"w-3 h-3"})})]},j.id))}),m.isPending&&h.jsxs("div",{className:"flex items-center gap-2 text-xs text-zinc-400",children:[h.jsx(da,{className:"w-3 h-3 animate-spin"}),"Uploading..."]}),!a&&h.jsxs("div",{onDragOver:x,onDragLeave:g,onDrop:S,className:`
|
|
50
50
|
border border-dashed rounded-lg p-2 text-center transition-colors cursor-pointer
|
|
51
51
|
${s?"border-orange-500 bg-orange-500/10":"border-zinc-700 hover:border-zinc-600"}
|
|
52
|
-
`,onClick:()=>c.current?.click(),children:[h.jsx("input",{ref:c,type:"file",accept:Vs.join(","),multiple:!0,onChange:z,className:"hidden"}),h.jsx("p",{className:"text-xs text-zinc-500",children:"+ Add image"})]})]})}const
|
|
52
|
+
`,onClick:()=>c.current?.click(),children:[h.jsx("input",{ref:c,type:"file",accept:Vs.join(","),multiple:!0,onChange:z,className:"hidden"}),h.jsx("p",{className:"text-xs text-zinc-500",children:"+ Add image"})]})]})}const Gc=["image/png","image/jpeg","image/gif","image/webp"];function kC(n){const{images:l,onImagesChange:a,disabled:s=!1,compact:o=!1}=n,[c,f]=Q.useState(!1),m=Q.useRef(null),y=Q.useCallback(z=>{if(s)return;const E=Array.from(z).filter(j=>Gc.includes(j.type));if(E.length===0)return;const M=E.map(j=>({id:crypto.randomUUID(),file:j,preview:URL.createObjectURL(j)}));a([...l,...M])},[l,a,s]),p=Q.useCallback(z=>{if(s)return;const E=l.find(M=>M.id===z);E&&URL.revokeObjectURL(E.preview),a(l.filter(M=>M.id!==z))},[l,a,s]),x=Q.useCallback(z=>{z.preventDefault(),s||f(!0)},[s]),g=Q.useCallback(z=>{z.preventDefault(),f(!1)},[]),S=Q.useCallback(z=>{if(z.preventDefault(),f(!1),s)return;const E=z.dataTransfer.files;E.length>0&&y(E)},[y,s]);Q.useEffect(()=>()=>{for(const z of l)URL.revokeObjectURL(z.preview)},[]);const k=z=>{if(s)return;const E=z.target.files;E&&E.length>0&&y(E),z.target.value=""};return l.length===0?h.jsxs("div",{onDragOver:x,onDragLeave:g,onDrop:S,className:`
|
|
53
53
|
border border-dashed rounded-lg text-center transition-colors cursor-pointer
|
|
54
54
|
${o?"p-3":"p-6"}
|
|
55
55
|
${c?"border-orange-500 bg-orange-500/10":"border-zinc-700 hover:border-zinc-600"}
|
|
56
56
|
${s?"opacity-50 cursor-not-allowed":""}
|
|
57
|
-
`,onClick:()=>!s&&m.current?.click(),children:[h.jsx("input",{ref:m,type:"file",accept:
|
|
57
|
+
`,onClick:()=>!s&&m.current?.click(),children:[h.jsx("input",{ref:m,type:"file",accept:Gc.join(","),multiple:!0,onChange:k,className:"hidden"}),h.jsx(Nf,{className:`mx-auto mb-1.5 text-zinc-500 ${o?"w-4 h-4":"w-5 h-5"}`}),h.jsx("p",{className:"text-xs text-zinc-500",children:"Drop, paste, or click to upload"})]}):h.jsxs("div",{className:"space-y-2",children:[h.jsx("div",{className:"space-y-1.5",children:l.map(z=>h.jsxs("div",{className:"flex items-center gap-2 p-2 bg-zinc-800/50 rounded-lg group",children:[h.jsx(zf,{className:"w-4 h-4 text-zinc-500 shrink-0"}),h.jsx("span",{className:"flex-1 text-xs text-zinc-400 truncate",children:z.file.name}),!s&&h.jsx("button",{type:"button",onClick:()=>p(z.id),className:"p-1 text-zinc-600 hover:text-red-400 rounded transition-colors",title:"Remove",children:h.jsx(Cn,{className:"w-3 h-3"})})]},z.id))}),!s&&h.jsxs("div",{onDragOver:x,onDragLeave:g,onDrop:S,className:`
|
|
58
58
|
border border-dashed rounded-lg p-2 text-center transition-colors cursor-pointer
|
|
59
59
|
${c?"border-orange-500 bg-orange-500/10":"border-zinc-700 hover:border-zinc-600"}
|
|
60
|
-
`,onClick:()=>m.current?.click(),children:[h.jsx("input",{ref:m,type:"file",accept:Vc.join(","),multiple:!0,onChange:k,className:"hidden"}),h.jsx("p",{className:"text-xs text-zinc-500",children:"+ Add more images"})]})]})}function wC(n){for(const l of n)URL.revokeObjectURL(l.preview)}const zC=["image/png","image/jpeg","image/gif","image/webp"];function Gf(n){const{initialTitle:l="",initialDescription:a="",onSubmit:s,onCancel:o,isLoading:c,submitLabel:f,loadingLabel:m,titlePlaceholder:y="Enter title...",descriptionPlaceholder:p="Add more details...",submitButtonClassName:x="bg-zinc-700 hover:bg-zinc-600",headerContent:g}=n,[v,k]=Y.useState(l),[z,E]=Y.useState(a),[M,j]=Y.useState([]);Y.useEffect(()=>{k(l),E(a)},[l,a]),Y.useEffect(()=>()=>{wC(M)},[]);const q=Y.useCallback(D=>{const P=D.filter(ue=>zC.includes(ue.type));if(P.length===0)return;const te=P.map(ue=>({id:crypto.randomUUID(),file:ue,preview:URL.createObjectURL(ue)}));j(ue=>[...ue,...te])},[]),L=Y.useCallback(D=>{const P=D.clipboardData?.items;if(!P)return;const te=[];for(const ue of Array.from(P))if(ue.type.startsWith("image/")){const R=ue.getAsFile();R&&te.push(R)}te.length>0&&(D.preventDefault(),q(te))},[q]),ie=D=>{if(D.preventDefault(),!v.trim())return;const P=M.map(te=>te.file);s(v.trim(),z.trim(),P)},ee=D=>{if((D.metaKey||D.ctrlKey)&&D.key==="Enter"&&(D.preventDefault(),v.trim())){const P=M.map(te=>te.file);s(v.trim(),z.trim(),P)}};return h.jsxs("form",{onSubmit:ie,onKeyDown:ee,onPaste:L,className:"p-4 space-y-4",children:[g,h.jsxs("div",{children:[h.jsx("label",{htmlFor:"title",className:"block text-xs text-zinc-500 mb-1.5",children:"Title"}),h.jsx("input",{id:"title",type:"text",value:v,onChange:D=>k(D.target.value),placeholder:y,autoFocus:!0,className:"w-full bg-zinc-800 border border-zinc-700 rounded-lg px-3 py-2 text-sm text-zinc-100 placeholder-zinc-500 focus:outline-none focus:border-zinc-600"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"description",className:"block text-xs text-zinc-500 mb-1.5",children:"Description (optional)"}),h.jsx("textarea",{id:"description",value:z,onChange:D=>E(D.target.value),placeholder:p,rows:3,className:"w-full bg-zinc-800 border border-zinc-700 rounded-lg px-3 py-2 text-sm text-zinc-100 placeholder-zinc-500 focus:outline-none focus:border-zinc-600 resize-none"})]}),h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center gap-2 text-xs text-zinc-500 mb-2",children:[h.jsx(Tg,{className:"w-3.5 h-3.5"}),h.jsxs("span",{children:["Images",M.length>0&&` (${M.length})`]})]}),h.jsx(kC,{images:M,onImagesChange:j,compact:!0})]}),h.jsxs("div",{className:"flex items-center justify-end gap-3 pt-2",children:[h.jsx("button",{type:"button",onClick:o,className:"px-4 py-2 text-sm text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 rounded-lg transition-colors",children:"Cancel"}),h.jsx("button",{type:"submit",disabled:!v.trim()||c,className:`px-4 py-2 text-sm font-medium text-white disabled:opacity-50 disabled:cursor-not-allowed rounded-lg transition-colors ${x}`,children:c?m:f})]})]})}function jC(n){const{task:l,onClose:a,onSubmit:s,isLoading:o}=n;return h.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[h.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),h.jsxs("div",{className:"relative w-full max-w-md mx-4 bg-zinc-900 border border-zinc-800 rounded-xl shadow-2xl",children:[h.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-zinc-800",children:[h.jsx("h2",{className:"text-sm font-medium text-zinc-200",children:"Edit task"}),h.jsx("button",{onClick:a,className:"p-1 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition-colors",children:h.jsx(Cn,{className:"w-4 h-4"})})]}),h.jsx(Gf,{initialTitle:l.title,initialDescription:l.description||"",onSubmit:s,onCancel:a,isLoading:o,submitLabel:"Save changes",loadingLabel:"Saving...",titlePlaceholder:"What needs to be done?"})]})]})}function CC(n){return new Promise((l,a)=>{const s=new FileReader;s.onload=()=>{const c=s.result.split(",")[1];l(c)},s.onerror=a,s.readAsDataURL(n)})}async function NC(n,l){const a=await CC(l);return jn(`/attachments/task/${n}`,{filename:l.name,data:a,mimeType:l.type})}const TC={backlog:{label:"Backlog",icon:h.jsx(wf,{className:"w-3 h-3"}),className:"bg-zinc-800 text-zinc-400"},ready:{label:"Ready",icon:h.jsx(vf,{className:"w-3 h-3"}),className:"bg-green-900/50 text-green-400"},in_progress:{label:"In Progress",icon:h.jsx(Qi,{className:"w-3 h-3"}),className:"bg-orange-900/50 text-orange-400"},done:{label:"Done",icon:h.jsx(bf,{className:"w-3 h-3"}),className:"bg-blue-900/50 text-blue-400"}};function EC(n){const{task:l,onClose:a}=n,[s,o]=Y.useState(""),[c,f]=Y.useState(!1),[m,y]=Y.useState(!1),[p,x]=Y.useState(!1),[g,v]=Y.useState(l),k=Y.useRef(null),z=tt(),{data:E}=Mn(vv(g.id)),M=vg(g.id),j=Cv(g.id),q=zv(),L=kv(),ie=g.status!=="in_progress"&&g.status!=="done",ee=g.status==="in_progress",D=TC[g.status],P=K=>{K.preventDefault(),s.trim()&&M.mutate(s.trim(),{onSuccess:()=>o("")})},te=()=>{q.mutate(g.id,{onSuccess:()=>a()})},ue=async(K,de,se)=>{L.mutate({taskId:g.id,title:K,description:de||null},{onSuccess:async W=>{se.length>0&&(await Promise.all(se.map(_=>NC(g.id,_))),z.invalidateQueries({queryKey:listAttachmentsOptions(g.id).queryKey})),v(W),y(!1),z.invalidateQueries({queryKey:no(g.project_id).queryKey})}})},R=E?.comments||[],G=E?.activities||[];return Y.useEffect(()=>{R.length>0&&k.current&&k.current.scrollIntoView({behavior:"instant"})},[R.length]),h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 z-40 bg-black/40",onClick:a}),h.jsxs("div",{className:"fixed right-0 top-0 bottom-0 z-50 w-full max-w-md bg-zinc-950 border-l border-zinc-800 flex flex-col",children:[h.jsxs("div",{className:"flex items-start justify-between p-4 border-b border-zinc-800",children:[h.jsxs("div",{className:"flex-1 min-w-0 pr-4",children:[h.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[h.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2 py-0.5 text-xs rounded-full ${D.className}`,children:[D.icon,D.label]}),g.blocked&&h.jsx("span",{className:"px-2 py-0.5 text-xs bg-red-900/50 text-red-400 rounded-full",children:"Blocked"})]}),h.jsx("h2",{className:"text-sm font-medium text-zinc-200 text-balance",children:g.title})]}),h.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[ie&&h.jsx("button",{onClick:()=>y(!0),className:"p-1 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition-colors",title:"Edit task",children:h.jsx(Dg,{className:"w-4 h-4"})}),h.jsx("button",{onClick:a,className:"p-1 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition-colors",children:h.jsx(Cn,{className:"w-4 h-4"})})]})]}),h.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[g.description&&h.jsxs("div",{children:[h.jsx("h3",{className:"text-xs text-zinc-500 mb-2",children:"Description"}),h.jsx(ng,{content:g.description})]}),g.current_activity&&h.jsxs("div",{className:"p-3 bg-orange-900/20 rounded-lg",children:[h.jsx("h3",{className:"text-xs text-orange-400 mb-1",children:"Current Activity"}),h.jsx("p",{className:"text-sm text-zinc-300",children:g.current_activity})]}),h.jsx("div",{children:h.jsx(SC,{taskId:g.id,disabled:ee})}),h.jsxs("div",{children:[h.jsxs("h3",{className:"text-xs text-zinc-500 mb-3",children:["Comments (",R.length,")"]}),h.jsxs("div",{className:"space-y-3",children:[R.map(K=>h.jsxs("div",{className:"p-3 bg-zinc-900/50 rounded-lg group",children:[h.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[K.author==="claude"?h.jsx(Hv,{className:"w-4 h-4 text-orange-400"}):h.jsx(sS,{className:"w-4 h-4 text-zinc-400"}),h.jsx("span",{className:"text-xs text-zinc-400",children:K.author==="claude"?"Claude":"You"}),h.jsx("span",{className:"text-xs text-zinc-600",children:Cf(K.created_at)}),K.author==="user"&&K.seen===!0&&h.jsx("span",{className:"flex items-center gap-1 text-xs text-green-500",title:"Claude has seen this comment",children:h.jsx(c2,{className:"w-3 h-3"})}),K.author==="user"&&K.seen===!1&&h.jsx("button",{onClick:()=>j.mutate(K.id),disabled:j.isPending,className:"ml-auto opacity-0 group-hover:opacity-100 p-1 text-zinc-600 hover:text-red-400 rounded transition-all disabled:opacity-50",title:"Delete comment",children:h.jsx(dl,{className:"w-3 h-3"})})]}),h.jsx(ng,{content:K.content})]},K.id)),R.length===0&&h.jsx("p",{className:"text-sm text-zinc-600",children:"No comments yet"}),h.jsx("div",{ref:k})]})]}),h.jsxs("div",{children:[h.jsxs("button",{onClick:()=>x(!p),className:"w-full flex items-center justify-between text-xs text-zinc-500 hover:text-zinc-400 py-2 transition-colors",children:[h.jsxs("span",{className:"flex items-center gap-2",children:[h.jsx(g2,{className:"w-3.5 h-3.5"}),"Activity (",G.length,")"]}),h.jsx(Sr,{className:`w-4 h-4 transition-transform ${p?"rotate-180":""}`})]}),p&&h.jsx("div",{className:"mt-2",children:h.jsx(mC,{activities:G})})]})]}),h.jsxs("div",{className:"p-4 border-t border-zinc-800 space-y-3",children:[h.jsxs("form",{onSubmit:P,className:"flex gap-2",children:[h.jsx("input",{type:"text",value:s,onChange:K=>o(K.target.value),placeholder:"Write a reply...",className:"flex-1 bg-zinc-900 border border-zinc-800 rounded-lg px-3 py-2 text-sm text-zinc-100 placeholder-zinc-500 focus:outline-none focus:border-zinc-700"}),h.jsx("button",{type:"submit",disabled:!s.trim()||M.isPending,className:"p-2 text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 disabled:opacity-50 disabled:cursor-not-allowed rounded-lg transition-colors",children:h.jsx(F2,{className:"w-4 h-4"})})]}),h.jsxs("button",{onClick:()=>f(!0),className:"w-full flex items-center justify-center gap-2 p-2 text-sm text-red-400 hover:text-red-300 hover:bg-red-900/20 rounded-lg transition-colors",children:[h.jsx(dl,{className:"w-4 h-4"}),"Delete task"]})]})]}),m&&h.jsx(jC,{task:g,onClose:()=>y(!1),onSubmit:ue,isLoading:L.isPending}),c&&h.jsx(hl,{title:"Delete task?",message:"This action cannot be undone.",confirmLabel:"Delete",isLoading:q.isPending,onConfirm:te,onCancel:()=>f(!1)})]})}function AC(n){const{status:l,initialTemplate:a,onClose:s,onSubmit:o,isLoading:c}=n,f=a?h.jsxs("div",{className:"p-2 bg-indigo-900/20 border border-indigo-700/30 rounded-lg flex items-center gap-2",children:[h.jsx(kr,{className:"w-4 h-4 text-indigo-400"}),h.jsxs("span",{className:"text-xs text-indigo-300",children:["From template: ",a.title]})]}):null;return h.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[h.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),h.jsxs("div",{className:"relative w-full max-w-md mx-4 bg-zinc-900 border border-zinc-800 rounded-xl shadow-2xl",children:[h.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-zinc-800",children:[h.jsxs("h2",{className:"text-sm font-medium text-zinc-200",children:[a?"Create from template":"Add task"," to ",l.replace("_"," ")]}),h.jsx("button",{onClick:s,className:"p-1 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition-colors",children:h.jsx(Cn,{className:"w-4 h-4"})})]}),h.jsx(Gf,{initialTitle:a?.title||"",initialDescription:a?.description||"",onSubmit:o,onCancel:s,isLoading:c,submitLabel:"Add task",loadingLabel:"Adding...",titlePlaceholder:"What needs to be done?",headerContent:f})]})]})}function DC(n){const{onClose:l,onSubmit:a,isLoading:s}=n;return h.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[h.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:l}),h.jsxs("div",{className:"relative w-full max-w-md mx-4 bg-zinc-900 border border-zinc-800 rounded-xl shadow-2xl",children:[h.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-zinc-800",children:[h.jsx("h2",{className:"text-sm font-medium text-zinc-200",children:"Add new template"}),h.jsx("button",{onClick:l,className:"p-1 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition-colors",children:h.jsx(Cn,{className:"w-4 h-4"})})]}),h.jsx(Gf,{onSubmit:a,onCancel:l,isLoading:s,submitLabel:"Add template",loadingLabel:"Adding...",titlePlaceholder:"Template title...",submitButtonClassName:"bg-indigo-600 hover:bg-indigo-500"})]})]})}const Gs=["image/png","image/jpeg","image/gif","image/webp"];function _C(n){const{templateId:l,disabled:a=!1}=n,[s,o]=Y.useState(!1),c=Y.useRef(null),{data:f=[]}=Mn(gC(l)),m=bC(l),y=vC(l),p=Y.useCallback(async j=>{if(a)return;const q=Array.from(j);for(const L of q)Gs.includes(L.type)&&m.mutate(L)},[m,a]),x=Y.useCallback(j=>{j.preventDefault(),a||o(!0)},[a]),g=Y.useCallback(j=>{j.preventDefault(),o(!1)},[]),v=Y.useCallback(j=>{if(j.preventDefault(),o(!1),a)return;const q=j.dataTransfer.files;q.length>0&&p(q)},[p,a]),k=Y.useCallback(j=>{if(a)return;const q=j.clipboardData?.items;if(!q)return;const L=[];for(const ie of Array.from(q))if(ie.type.startsWith("image/")){const ee=ie.getAsFile();ee&&L.push(ee)}L.length>0&&(j.preventDefault(),p(L))},[p,a]);Y.useEffect(()=>{if(!a)return document.addEventListener("paste",k),()=>{document.removeEventListener("paste",k)}},[k,a]);const z=j=>{if(a)return;const q=j.target.files;q&&q.length>0&&p(q),j.target.value=""},E=j=>{a||y.mutate(j)},M=f.filter(j=>Gs.includes(j.mime_type));return M.length===0&&!m.isPending?a?h.jsx("p",{className:"text-xs text-zinc-600",children:"No images attached"}):h.jsxs("div",{onDragOver:x,onDragLeave:g,onDrop:v,className:`
|
|
60
|
+
`,onClick:()=>m.current?.click(),children:[h.jsx("input",{ref:m,type:"file",accept:Gc.join(","),multiple:!0,onChange:k,className:"hidden"}),h.jsx("p",{className:"text-xs text-zinc-500",children:"+ Add more images"})]})]})}function wC(n){for(const l of n)URL.revokeObjectURL(l.preview)}const zC=["image/png","image/jpeg","image/gif","image/webp"];function Xf(n){const{initialTitle:l="",initialDescription:a="",onSubmit:s,onCancel:o,isLoading:c,submitLabel:f,loadingLabel:m,titlePlaceholder:y="Enter title...",descriptionPlaceholder:p="Add more details...",submitButtonClassName:x="bg-zinc-700 hover:bg-zinc-600",headerContent:g}=n,[S,k]=Q.useState(l),[z,E]=Q.useState(a),[M,j]=Q.useState([]);Q.useEffect(()=>{k(l),E(a)},[l,a]),Q.useEffect(()=>()=>{wC(M)},[]);const U=Q.useCallback(D=>{const P=D.filter(ue=>zC.includes(ue.type));if(P.length===0)return;const le=P.map(ue=>({id:crypto.randomUUID(),file:ue,preview:URL.createObjectURL(ue)}));j(ue=>[...ue,...le])},[]),L=Q.useCallback(D=>{const P=D.clipboardData?.items;if(!P)return;const le=[];for(const ue of Array.from(P))if(ue.type.startsWith("image/")){const R=ue.getAsFile();R&&le.push(R)}le.length>0&&(D.preventDefault(),U(le))},[U]),ne=D=>{if(D.preventDefault(),!S.trim())return;const P=M.map(le=>le.file);s(S.trim(),z.trim(),P)},ee=D=>{if((D.metaKey||D.ctrlKey)&&D.key==="Enter"&&(D.preventDefault(),S.trim())){const P=M.map(le=>le.file);s(S.trim(),z.trim(),P)}};return h.jsxs("form",{onSubmit:ne,onKeyDown:ee,onPaste:L,className:"p-4 space-y-4",children:[g,h.jsxs("div",{children:[h.jsx("label",{htmlFor:"title",className:"block text-xs text-zinc-500 mb-1.5",children:"Title"}),h.jsx("input",{id:"title",type:"text",value:S,onChange:D=>k(D.target.value),placeholder:y,autoFocus:!0,className:"w-full bg-zinc-800 border border-zinc-700 rounded-lg px-3 py-2 text-sm text-zinc-100 placeholder-zinc-500 focus:outline-none focus:border-zinc-600"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"description",className:"block text-xs text-zinc-500 mb-1.5",children:"Description (optional)"}),h.jsx("textarea",{id:"description",value:z,onChange:D=>E(D.target.value),placeholder:p,rows:3,className:"w-full bg-zinc-800 border border-zinc-700 rounded-lg px-3 py-2 text-sm text-zinc-100 placeholder-zinc-500 focus:outline-none focus:border-zinc-600 resize-none"})]}),h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center gap-2 text-xs text-zinc-500 mb-2",children:[h.jsx(Tg,{className:"w-3.5 h-3.5"}),h.jsxs("span",{children:["Images",M.length>0&&` (${M.length})`]})]}),h.jsx(kC,{images:M,onImagesChange:j,compact:!0})]}),h.jsxs("div",{className:"flex items-center justify-end gap-3 pt-2",children:[h.jsx("button",{type:"button",onClick:o,className:"px-4 py-2 text-sm text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 rounded-lg transition-colors",children:"Cancel"}),h.jsx("button",{type:"submit",disabled:!S.trim()||c,className:`px-4 py-2 text-sm font-medium text-white disabled:opacity-50 disabled:cursor-not-allowed rounded-lg transition-colors ${x}`,children:c?m:f})]})]})}function jC(n){const{task:l,onClose:a,onSubmit:s,isLoading:o}=n;return h.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[h.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),h.jsxs("div",{className:"relative w-full max-w-md mx-4 bg-zinc-900 border border-zinc-800 rounded-xl shadow-2xl",children:[h.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-zinc-800",children:[h.jsx("h2",{className:"text-sm font-medium text-zinc-200",children:"Edit task"}),h.jsx("button",{onClick:a,className:"p-1 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition-colors",children:h.jsx(Cn,{className:"w-4 h-4"})})]}),h.jsx(Xf,{initialTitle:l.title,initialDescription:l.description||"",onSubmit:s,onCancel:a,isLoading:o,submitLabel:"Save changes",loadingLabel:"Saving...",titlePlaceholder:"What needs to be done?"})]})]})}function CC(n){return new Promise((l,a)=>{const s=new FileReader;s.onload=()=>{const c=s.result.split(",")[1];l(c)},s.onerror=a,s.readAsDataURL(n)})}async function NC(n,l){const a=await CC(l);return jn(`/attachments/task/${n}`,{filename:l.name,data:a,mimeType:l.type})}const TC={backlog:{label:"Backlog",icon:h.jsx(jf,{className:"w-3 h-3"}),className:"bg-zinc-800 text-zinc-400"},ready:{label:"Ready",icon:h.jsx(kf,{className:"w-3 h-3"}),className:"bg-green-900/50 text-green-400"},in_progress:{label:"In Progress",icon:h.jsx(di,{className:"w-3 h-3"}),className:"bg-orange-900/50 text-orange-400"},done:{label:"Done",icon:h.jsx(Sf,{className:"w-3 h-3"}),className:"bg-blue-900/50 text-blue-400"}};function EC(n){const{task:l,onClose:a}=n,[s,o]=Q.useState(""),[c,f]=Q.useState(!1),[m,y]=Q.useState(!1),[p,x]=Q.useState(!1),[g,S]=Q.useState(l),k=Q.useRef(null),z=tt(),{data:E}=Mn(vv(g.id)),M=vg(g.id),j=Cv(g.id),U=zv(),L=kv(),ne=g.status!=="in_progress"&&g.status!=="done",ee=g.status==="in_progress",D=TC[g.status],P=X=>{X.preventDefault(),s.trim()&&M.mutate(s.trim(),{onSuccess:()=>o("")})},le=()=>{U.mutate(g.id,{onSuccess:()=>a()})},ue=async(X,fe,re)=>{L.mutate({taskId:g.id,title:X,description:fe||null},{onSuccess:async W=>{re.length>0&&(await Promise.all(re.map(_=>NC(g.id,_))),z.invalidateQueries({queryKey:listAttachmentsOptions(g.id).queryKey})),S(W),y(!1),z.invalidateQueries({queryKey:no(g.project_id).queryKey})}})},R=E?.comments||[],V=E?.activities||[];return Q.useEffect(()=>{R.length>0&&k.current&&k.current.scrollIntoView({behavior:"instant"})},[R.length]),h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 z-40 bg-black/40",onClick:a}),h.jsxs("div",{className:"fixed right-0 top-0 bottom-0 z-50 w-full max-w-md bg-zinc-950 border-l border-zinc-800 flex flex-col",children:[h.jsxs("div",{className:"flex items-start justify-between p-4 border-b border-zinc-800",children:[h.jsxs("div",{className:"flex-1 min-w-0 pr-4",children:[h.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[h.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2 py-0.5 text-xs rounded-full ${D.className}`,children:[D.icon,D.label]}),g.blocked&&h.jsx("span",{className:"px-2 py-0.5 text-xs bg-red-900/50 text-red-400 rounded-full",children:"Blocked"})]}),h.jsx("h2",{className:"text-sm font-medium text-zinc-200 text-balance",children:g.title})]}),h.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[ne&&h.jsx("button",{onClick:()=>y(!0),className:"p-1 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition-colors",title:"Edit task",children:h.jsx(Dg,{className:"w-4 h-4"})}),h.jsx("button",{onClick:a,className:"p-1 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition-colors",children:h.jsx(Cn,{className:"w-4 h-4"})})]})]}),h.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[g.description&&h.jsxs("div",{children:[h.jsx("h3",{className:"text-xs text-zinc-500 mb-2",children:"Description"}),h.jsx(ig,{content:g.description})]}),g.current_activity&&h.jsxs("div",{className:"p-3 bg-orange-900/20 rounded-lg",children:[h.jsx("h3",{className:"text-xs text-orange-400 mb-1",children:"Current Activity"}),h.jsx("p",{className:"text-sm text-zinc-300",children:g.current_activity})]}),h.jsx("div",{children:h.jsx(SC,{taskId:g.id,disabled:ee})}),h.jsxs("div",{children:[h.jsxs("h3",{className:"text-xs text-zinc-500 mb-3",children:["Comments (",R.length,")"]}),h.jsxs("div",{className:"space-y-3",children:[R.map(X=>h.jsxs("div",{className:"p-3 bg-zinc-900/50 rounded-lg group",children:[h.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[X.author==="claude"?h.jsx(Hv,{className:"w-4 h-4 text-orange-400"}):h.jsx(sS,{className:"w-4 h-4 text-zinc-400"}),h.jsx("span",{className:"text-xs text-zinc-400",children:X.author==="claude"?"Claude":"You"}),h.jsx("span",{className:"text-xs text-zinc-600",children:lo(X.created_at)}),X.author==="user"&&X.seen===!0&&h.jsx("span",{className:"flex items-center gap-1 text-xs text-green-500",title:"Claude has seen this comment",children:h.jsx(c2,{className:"w-3 h-3"})}),X.author==="user"&&X.seen===!1&&h.jsx("button",{onClick:()=>j.mutate(X.id),disabled:j.isPending,className:"ml-auto opacity-0 group-hover:opacity-100 p-1 text-zinc-600 hover:text-red-400 rounded transition-all disabled:opacity-50",title:"Delete comment",children:h.jsx(dl,{className:"w-3 h-3"})})]}),h.jsx(ig,{content:X.content})]},X.id)),R.length===0&&h.jsx("p",{className:"text-sm text-zinc-600",children:"No comments yet"}),h.jsx("div",{ref:k})]})]}),h.jsxs("div",{children:[h.jsxs("button",{onClick:()=>x(!p),className:"w-full flex items-center justify-between text-xs text-zinc-500 hover:text-zinc-400 py-2 transition-colors",children:[h.jsxs("span",{className:"flex items-center gap-2",children:[h.jsx(g2,{className:"w-3.5 h-3.5"}),"Activity (",V.length,")"]}),h.jsx(Sr,{className:`w-4 h-4 transition-transform ${p?"rotate-180":""}`})]}),p&&h.jsx("div",{className:"mt-2",children:h.jsx(mC,{activities:V})})]})]}),h.jsxs("div",{className:"p-4 border-t border-zinc-800 space-y-3",children:[h.jsxs("form",{onSubmit:P,className:"flex gap-2",children:[h.jsx("input",{type:"text",value:s,onChange:X=>o(X.target.value),placeholder:"Write a reply...",className:"flex-1 bg-zinc-900 border border-zinc-800 rounded-lg px-3 py-2 text-sm text-zinc-100 placeholder-zinc-500 focus:outline-none focus:border-zinc-700"}),h.jsx("button",{type:"submit",disabled:!s.trim()||M.isPending,className:"p-2 text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 disabled:opacity-50 disabled:cursor-not-allowed rounded-lg transition-colors",children:h.jsx(F2,{className:"w-4 h-4"})})]}),h.jsxs("button",{onClick:()=>f(!0),className:"w-full flex items-center justify-center gap-2 p-2 text-sm text-red-400 hover:text-red-300 hover:bg-red-900/20 rounded-lg transition-colors",children:[h.jsx(dl,{className:"w-4 h-4"}),"Delete task"]})]})]}),m&&h.jsx(jC,{task:g,onClose:()=>y(!1),onSubmit:ue,isLoading:L.isPending}),c&&h.jsx(hl,{title:"Delete task?",message:"This action cannot be undone.",confirmLabel:"Delete",isLoading:U.isPending,onConfirm:le,onCancel:()=>f(!1)})]})}function AC(n){const{status:l,initialTemplate:a,onClose:s,onSubmit:o,isLoading:c}=n,f=a?h.jsxs("div",{className:"p-2 bg-indigo-900/20 border border-indigo-700/30 rounded-lg flex items-center gap-2",children:[h.jsx(kr,{className:"w-4 h-4 text-indigo-400"}),h.jsxs("span",{className:"text-xs text-indigo-300",children:["From template: ",a.title]})]}):null;return h.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[h.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),h.jsxs("div",{className:"relative w-full max-w-md mx-4 bg-zinc-900 border border-zinc-800 rounded-xl shadow-2xl",children:[h.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-zinc-800",children:[h.jsxs("h2",{className:"text-sm font-medium text-zinc-200",children:[a?"Create from template":"Add task"," to ",l.replace("_"," ")]}),h.jsx("button",{onClick:s,className:"p-1 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition-colors",children:h.jsx(Cn,{className:"w-4 h-4"})})]}),h.jsx(Xf,{initialTitle:a?.title||"",initialDescription:a?.description||"",onSubmit:o,onCancel:s,isLoading:c,submitLabel:"Add task",loadingLabel:"Adding...",titlePlaceholder:"What needs to be done?",headerContent:f})]})]})}function DC(n){const{onClose:l,onSubmit:a,isLoading:s}=n;return h.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[h.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:l}),h.jsxs("div",{className:"relative w-full max-w-md mx-4 bg-zinc-900 border border-zinc-800 rounded-xl shadow-2xl",children:[h.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-zinc-800",children:[h.jsx("h2",{className:"text-sm font-medium text-zinc-200",children:"Add new template"}),h.jsx("button",{onClick:l,className:"p-1 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition-colors",children:h.jsx(Cn,{className:"w-4 h-4"})})]}),h.jsx(Xf,{onSubmit:a,onCancel:l,isLoading:s,submitLabel:"Add template",loadingLabel:"Adding...",titlePlaceholder:"Template title...",submitButtonClassName:"bg-indigo-600 hover:bg-indigo-500"})]})]})}const Gs=["image/png","image/jpeg","image/gif","image/webp"];function _C(n){const{templateId:l,disabled:a=!1}=n,[s,o]=Q.useState(!1),c=Q.useRef(null),{data:f=[]}=Mn(gC(l)),m=bC(l),y=vC(l),p=Q.useCallback(async j=>{if(a)return;const U=Array.from(j);for(const L of U)Gs.includes(L.type)&&m.mutate(L)},[m,a]),x=Q.useCallback(j=>{j.preventDefault(),a||o(!0)},[a]),g=Q.useCallback(j=>{j.preventDefault(),o(!1)},[]),S=Q.useCallback(j=>{if(j.preventDefault(),o(!1),a)return;const U=j.dataTransfer.files;U.length>0&&p(U)},[p,a]),k=Q.useCallback(j=>{if(a)return;const U=j.clipboardData?.items;if(!U)return;const L=[];for(const ne of Array.from(U))if(ne.type.startsWith("image/")){const ee=ne.getAsFile();ee&&L.push(ee)}L.length>0&&(j.preventDefault(),p(L))},[p,a]);Q.useEffect(()=>{if(!a)return document.addEventListener("paste",k),()=>{document.removeEventListener("paste",k)}},[k,a]);const z=j=>{if(a)return;const U=j.target.files;U&&U.length>0&&p(U),j.target.value=""},E=j=>{a||y.mutate(j)},M=f.filter(j=>Gs.includes(j.mime_type));return M.length===0&&!m.isPending?a?h.jsx("p",{className:"text-xs text-zinc-600",children:"No images attached"}):h.jsxs("div",{onDragOver:x,onDragLeave:g,onDrop:S,className:`
|
|
61
61
|
border border-dashed rounded-lg p-3 text-center transition-colors cursor-pointer
|
|
62
62
|
${s?"border-orange-500 bg-orange-500/10":"border-zinc-700 hover:border-zinc-600"}
|
|
63
|
-
`,onClick:()=>c.current?.click(),children:[h.jsx("input",{ref:c,type:"file",accept:Gs.join(","),multiple:!0,onChange:z,className:"hidden"}),h.jsx(
|
|
63
|
+
`,onClick:()=>c.current?.click(),children:[h.jsx("input",{ref:c,type:"file",accept:Gs.join(","),multiple:!0,onChange:z,className:"hidden"}),h.jsx(Nf,{className:"w-4 h-4 mx-auto mb-1.5 text-zinc-500"}),h.jsx("p",{className:"text-xs text-zinc-500",children:"Drop, paste, or click to upload"})]}):h.jsxs("div",{className:"space-y-2",children:[M.length>0&&h.jsx("div",{className:"space-y-1.5",children:M.map(j=>h.jsxs("div",{className:"flex items-center gap-2 p-2 bg-zinc-800/50 rounded-lg group",children:[h.jsx(zf,{className:"w-4 h-4 text-zinc-500 shrink-0"}),h.jsx("a",{href:eo(j.id),target:"_blank",rel:"noopener noreferrer",className:"flex-1 text-xs text-zinc-400 hover:text-zinc-300 truncate",children:j.original_name}),h.jsx("a",{href:eo(j.id),target:"_blank",rel:"noopener noreferrer",className:"p-1 text-zinc-600 hover:text-zinc-400 rounded transition-colors",title:"Open in new tab",children:h.jsx(Ng,{className:"w-3 h-3"})}),!a&&h.jsx("button",{onClick:()=>E(j.id),disabled:y.isPending,className:"p-1 text-zinc-600 hover:text-red-400 rounded transition-colors opacity-0 group-hover:opacity-100",title:"Delete",children:h.jsx(Cn,{className:"w-3 h-3"})})]},j.id))}),m.isPending&&h.jsxs("div",{className:"flex items-center gap-2 text-xs text-zinc-400",children:[h.jsx(da,{className:"w-3 h-3 animate-spin"}),"Uploading..."]}),!a&&h.jsxs("div",{onDragOver:x,onDragLeave:g,onDrop:S,className:`
|
|
64
64
|
border border-dashed rounded-lg p-2 text-center transition-colors cursor-pointer
|
|
65
65
|
${s?"border-orange-500 bg-orange-500/10":"border-zinc-700 hover:border-zinc-600"}
|
|
66
|
-
`,onClick:()=>c.current?.click(),children:[h.jsx("input",{ref:c,type:"file",accept:Gs.join(","),multiple:!0,onChange:z,className:"hidden"}),h.jsx("p",{className:"text-xs text-zinc-500",children:"+ Add more images"})]})]})}function MC(n){const{template:l,onClose:a,onSubmit:s,isLoading:o}=n,[c,f]=Y.useState(l.title),[m,y]=Y.useState(l.description||""),[p,x]=Y.useState(!1);Y.useEffect(()=>{f(l.title),y(l.description||"")},[l]);const g=v=>{v.preventDefault(),c.trim()&&s(c.trim(),m.trim())};return h.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[h.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:a}),h.jsxs("div",{className:"relative w-full max-w-md mx-4 bg-zinc-900 border border-zinc-800 rounded-xl shadow-2xl",children:[h.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-zinc-800",children:[h.jsx("h2",{className:"text-sm font-medium text-zinc-200",children:"Edit template"}),h.jsx("button",{onClick:a,className:"p-1 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition-colors",children:h.jsx(Cn,{className:"w-4 h-4"})})]}),h.jsxs("form",{onSubmit:g,className:"p-4 space-y-4",children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"title",className:"block text-xs text-zinc-500 mb-1.5",children:"Title"}),h.jsx("input",{id:"title",type:"text",value:c,onChange:v=>f(v.target.value),placeholder:"Template title...",autoFocus:!0,className:"w-full bg-zinc-800 border border-zinc-700 rounded-lg px-3 py-2 text-sm text-zinc-100 placeholder-zinc-500 focus:outline-none focus:border-zinc-600"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"description",className:"block text-xs text-zinc-500 mb-1.5",children:"Description (optional)"}),h.jsx("textarea",{id:"description",value:m,onChange:v=>y(v.target.value),placeholder:"Add more details...",rows:3,className:"w-full bg-zinc-800 border border-zinc-700 rounded-lg px-3 py-2 text-sm text-zinc-100 placeholder-zinc-500 focus:outline-none focus:border-zinc-600 resize-none"})]}),h.jsxs("div",{children:[h.jsxs("button",{type:"button",onClick:()=>x(!p),className:"w-full flex items-center justify-between text-xs text-zinc-500 hover:text-zinc-400 py-2 transition-colors",children:[h.jsxs("span",{className:"flex items-center gap-2",children:[h.jsx(Tg,{className:"w-3.5 h-3.5"}),"Images"]}),h.jsx(Sr,{className:`w-4 h-4 transition-transform ${p?"rotate-180":""}`})]}),p&&h.jsx("div",{className:"mt-2",children:h.jsx(_C,{templateId:l.id})})]}),h.jsxs("div",{className:"flex items-center justify-end gap-3 pt-2",children:[h.jsx("button",{type:"button",onClick:a,className:"px-4 py-2 text-sm text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 rounded-lg transition-colors",children:"Cancel"}),h.jsx("button",{type:"submit",disabled:!c.trim()||o,className:"px-4 py-2 text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-500 disabled:opacity-50 disabled:cursor-not-allowed rounded-lg transition-colors",children:o?"Saving...":"Save changes"})]})]})]})]})}function Qy(n){return new Promise((l,a)=>{const s=new FileReader;s.onload=()=>{const c=s.result.split(",")[1];l(c)},s.onerror=a,s.readAsDataURL(n)})}async function OC(n,l){const a=await Qy(l);return jn(`/attachments/task/${n}`,{filename:l.name,data:a,mimeType:l.type})}async function RC(n,l){const a=await Qy(l);return jn(`/attachments/template/${n}`,{filename:l.name,data:a,mimeType:l.type})}function LC(n){const{projectId:l,boardRef:a}=n,[s,o]=Y.useState(null),[c,f]=Y.useState(null),[m,y]=Y.useState(null),[p,x]=Y.useState(null),[g,v]=Y.useState(!1),[k,z]=Y.useState(!1),[E,M]=Y.useState(null);Y.useEffect(()=>{if(!E)return;const S=setTimeout(()=>M(null),600);return()=>clearTimeout(S)},[E]),Y.useImperativeHandle(a,()=>({openAddTask:()=>y("ready"),openAddTemplate:()=>v(!0),closeModals:()=>{o(null),f(null),y(null),x(null),v(!1)}}));const j=xf(),{data:q=[],isLoading:L}=Mn({...no(l),refetchInterval:j}),{data:ie=[],isLoading:ee}=Mn({...kS(l),refetchInterval:5e3}),D=tt(),P=Sv(l),te=wv(),ue=jv(l),R=wS(l),G=zS(),K=jS();MS(q);const de=Y.useMemo(()=>{const S={backlog:[],ready:[],in_progress:[],done:[]};for(const Q of q)S[Q.status].push(Q);for(const Q of Object.keys(S))S[Q].sort((ne,ae)=>ne.position-ae.position);return S},[q]),se=Y.useMemo(()=>[...ie].sort((S,Q)=>S.position-Q.position),[ie]),W=Y.useCallback((S,Q,ne)=>{D.setQueryData(["tasks",l],ae=>{if(!ae)return ae;const me=ae.find(Xe=>Xe.id===S);if(!me)return ae;const pe=me.status,we=ae.map(Xe=>Xe.id===S?{...Xe,status:Q,position:ne}:Xe),dt=we.filter(Xe=>Xe.status===Q&&Xe.id!==S).sort((Xe,gt)=>Xe.position-gt.position);let St=ne;for(const Xe of dt)if(Xe.position>=ne){const gt=we.findIndex(ht=>ht.id===Xe.id);gt!==-1&&(St++,we[gt]={...we[gt],position:St})}return pe!==Q&&we.filter(gt=>gt.status===pe).sort((gt,ht)=>gt.position-ht.position).forEach((gt,ht)=>{const fn=we.findIndex(Nn=>Nn.id===gt.id);fn!==-1&&(we[fn]={...we[fn],position:ht})}),we}),M(S),te.mutate({taskId:S,status:Q,position:ne})},[te,D,l]),_=Y.useCallback((S,Q)=>{K.mutate({templateId:S,position:Q})},[K]),$=Y.useCallback((S,Q)=>{y(Q),x(S)},[]),ce=async(S,Q,ne)=>{m&&P.mutate({title:S,description:Q||void 0,status:m},{onSuccess:async ae=>{ne.length>0&&await Promise.all(ne.map(me=>OC(ae.id,me))),y(null),x(null)}})},Se=()=>{y(null),x(null)},C=async(S,Q,ne)=>{R.mutate({title:S,description:Q||void 0},{onSuccess:async ae=>{ne.length>0&&await Promise.all(ne.map(me=>RC(ae.id,me))),v(!1)}})},T=(S,Q)=>{c&&G.mutate({templateId:c.id,title:S,description:Q||void 0},{onSuccess:()=>f(null)})},V=L||ee;return h.jsxs("div",{className:"flex-1 flex flex-col min-h-0 relative",children:[V&&h.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-zinc-950/80 z-10",children:h.jsx("div",{className:"text-sm text-zinc-500",children:"Loading..."})}),h.jsx("div",{className:"flex-1 pt-0 pb-4 px-4 overflow-auto",children:h.jsxs("div",{className:"flex gap-0 items-stretch min-h-full w-max",children:[h.jsx(QS,{templates:se,onTemplateClick:f,onAddClick:()=>v(!0),onMoveTemplate:_,onTemplateDropOnColumn:$,isDragging:k,onDragStart:()=>z(!0),onDragEnd:()=>z(!1)}),u0.map((S,Q)=>h.jsx(qS,{id:S.id,title:S.title,tasks:de[S.id],onTaskClick:o,onDeleteAll:S.id!=="in_progress"?()=>ue.mutate(S.id):void 0,isDeleting:ue.isPending,showBorder:Q<u0.length-1,onMoveTask:W,onTemplateDropOnColumn:$,isDragging:k,onDragStart:()=>z(!0),onDragEnd:()=>z(!1),justDroppedTaskId:E,onAddTask:S.id!=="in_progress"?()=>y(S.id):void 0},S.id))]})}),s&&h.jsx(EC,{task:s,onClose:()=>o(null)}),m&&h.jsx(AC,{status:m,initialTemplate:p,onClose:Se,onSubmit:ce,isLoading:P.isPending}),g&&h.jsx(DC,{onClose:()=>v(!1),onSubmit:C,isLoading:R.isPending}),c&&h.jsx(MC,{template:c,onClose:()=>f(null),onSubmit:T,isLoading:G.isPending})]})}const UC=Y.forwardRef(function(l,a){const{projectId:s}=l;return h.jsx(LC,{projectId:s,boardRef:a})}),BC=[{id:"overview",label:"Overview",icon:h.jsx(q2,{className:"w-4 h-4"})},{id:"planning",label:"Planning",icon:h.jsx(Eg,{className:"w-4 h-4"})},{id:"workflow",label:"Workflow",icon:h.jsx(m2,{className:"w-4 h-4"})},{id:"interaction",label:"Interaction",icon:h.jsx(Ag,{className:"w-4 h-4"})},{id:"shortcuts",label:"Shortcuts",icon:h.jsx(v2,{className:"w-4 h-4"})},{id:"tips",label:"Tips",icon:h.jsx(z2,{className:"w-4 h-4"})}];function qC(n){const{projectId:l,skillCommand:a}=n,s=l?`${a} ${l}`:`${a} <project-id>`;return h.jsxs("div",{className:"space-y-5",children:[h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"What is claude-queue?"}),h.jsx("p",{className:"text-sm text-zinc-400 leading-relaxed",children:"A visual task board that lets you assign tasks to Claude Code. Add tasks to the board, and Claude will work through them autonomously."})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-3",children:"Quick Start"}),h.jsxs("ol",{className:"space-y-4 text-sm text-zinc-400",children:[h.jsxs("li",{className:"flex gap-3",children:[h.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-orange-500/20 text-orange-400 flex items-center justify-center text-xs font-medium",children:"1"}),h.jsxs("span",{children:["Add tasks to ",h.jsx("strong",{className:"text-zinc-300",children:"Backlog"})," or ",h.jsx("strong",{className:"text-zinc-300",children:"Ready"})]})]}),h.jsxs("li",{className:"flex gap-3",children:[h.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-orange-500/20 text-orange-400 flex items-center justify-center text-xs font-medium",children:"2"}),h.jsx("span",{children:"Run the skill command in Claude Code:"})]})]}),h.jsxs("div",{className:"mt-3 ml-9 flex items-center gap-2 bg-zinc-800 rounded-lg border border-zinc-700",children:[h.jsx("code",{className:"flex-1 text-sm font-mono text-orange-400 px-3 py-2.5",children:s}),h.jsx(zn,{text:s,className:"mr-2"})]}),!l&&h.jsx("p",{className:"mt-2 ml-9 text-xs text-zinc-500",children:"Find your project ID in the URL or header"})]})]})}function HC(n){const{projectId:l,skillCommand:a}=n,s=l?`${a} plan ${l}`:`${a} plan <project-id>`;return h.jsxs("div",{className:"space-y-5",children:[h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"What is Planning Mode?"}),h.jsx("p",{className:"text-sm text-zinc-400 leading-relaxed",children:"Instead of manually creating tasks, describe what you want to build and let Claude break it down into actionable tasks for you."})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-3",children:"How to Use"}),h.jsx("ol",{className:"space-y-4 text-sm text-zinc-400",children:h.jsxs("li",{className:"flex gap-3",children:[h.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-orange-500/20 text-orange-400 flex items-center justify-center text-xs font-medium",children:"1"}),h.jsx("span",{children:"Run the planning command in Claude Code:"})]})}),h.jsxs("div",{className:"mt-3 ml-9 flex items-center gap-2 bg-zinc-800 rounded-lg border border-zinc-700",children:[h.jsx("code",{className:"flex-1 text-sm font-mono text-orange-400 px-3 py-2.5",children:s}),h.jsx(zn,{text:s,className:"mr-2"})]}),h.jsxs("ol",{className:"mt-4 space-y-4 text-sm text-zinc-400",start:2,children:[h.jsxs("li",{className:"flex gap-3",children:[h.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-orange-500/20 text-orange-400 flex items-center justify-center text-xs font-medium",children:"2"}),h.jsx("span",{children:'Describe what you want to build (e.g., "user authentication with email and password")'})]}),h.jsxs("li",{className:"flex gap-3",children:[h.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-orange-500/20 text-orange-400 flex items-center justify-center text-xs font-medium",children:"3"}),h.jsx("span",{children:"Claude proposes a task breakdown — refine if needed"})]}),h.jsxs("li",{className:"flex gap-3",children:[h.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-orange-500/20 text-orange-400 flex items-center justify-center text-xs font-medium",children:"4"}),h.jsxs("span",{children:["Choose to add tasks to ",h.jsx("strong",{className:"text-zinc-300",children:"Ready"})," (default) or ",h.jsx("strong",{className:"text-zinc-300",children:"Backlog"})]})]})]})]})]})}function QC(){const n=[{icon:h.jsx(wf,{className:"w-4 h-4"}),name:"Backlog",desc:"Tasks waiting to be prioritized",color:"text-zinc-400"},{icon:h.jsx(vf,{className:"w-4 h-4"}),name:"Ready",desc:"Tasks ready for Claude to pick up",color:"text-green-400"},{icon:h.jsx(Qi,{className:"w-4 h-4"}),name:"In Progress",desc:"Claude is actively working",color:"text-orange-400"},{icon:h.jsx(bf,{className:"w-4 h-4"}),name:"Done",desc:"Completed tasks",color:"text-blue-400"}];return h.jsxs("div",{className:"space-y-5",children:[h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-3",children:"Task Columns"}),h.jsx("div",{className:"space-y-3",children:n.map(l=>h.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg bg-zinc-800/50",children:[h.jsx("div",{className:`shrink-0 ${l.color}`,children:l.icon}),h.jsxs("div",{children:[h.jsx("div",{className:"text-sm font-medium text-zinc-200",children:l.name}),h.jsx("div",{className:"text-xs text-zinc-500",children:l.desc})]})]},l.name))})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"Templates"}),h.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg bg-zinc-800/50",children:[h.jsx("div",{className:"shrink-0 text-indigo-400",children:h.jsx(kr,{className:"w-4 h-4"})}),h.jsxs("div",{children:[h.jsx("div",{className:"text-sm font-medium text-zinc-200",children:"Reusable task templates"}),h.jsx("div",{className:"text-xs text-zinc-500",children:"Drag a template to Backlog or Ready to create a task"})]})]})]})]})}function YC(){return h.jsxs("div",{className:"space-y-5",children:[h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-3",children:"Interacting with Claude"}),h.jsxs("ul",{className:"space-y-3 text-sm text-zinc-400",children:[h.jsxs("li",{className:"flex gap-3 p-3 rounded-lg bg-zinc-800/50",children:[h.jsx(Ag,{className:"w-4 h-4 shrink-0 text-blue-400 mt-0.5"}),h.jsx("span",{children:"Click any task to view details and add comments"})]}),h.jsxs("li",{className:"flex gap-3 p-3 rounded-lg bg-zinc-800/50",children:[h.jsx(Qi,{className:"w-4 h-4 shrink-0 text-yellow-400 mt-0.5"}),h.jsx("span",{children:"When Claude is blocked, it will wait for your reply"})]})]})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-3",children:"Task Controls"}),h.jsxs("ul",{className:"space-y-3 text-sm text-zinc-400",children:[h.jsxs("li",{className:"flex gap-3 p-3 rounded-lg bg-zinc-800/50",children:[h.jsx("span",{className:"shrink-0 text-yellow-400 text-xs font-medium",children:"Start Over"}),h.jsx("span",{className:"text-zinc-500",children:"— Reset task and discard changes"})]}),h.jsxs("li",{className:"flex gap-3 p-3 rounded-lg bg-zinc-800/50",children:[h.jsx("span",{className:"shrink-0 text-red-400 text-xs font-medium",children:"Abort Task"}),h.jsx("span",{className:"text-zinc-500",children:"— Cancel and move to backlog"})]})]})]})]})}function FC(){const n=[{keys:["?","H"],description:"Toggle help dialog"},{keys:["N","A"],description:"Add new task to Ready"},{keys:["T"],description:"Add new template"},{keys:["D"],description:"Open troubleshooting dialog"},{keys:["S"],description:"Open statistics dialog"},{keys:["Esc"],description:"Close any open dialog"}];return h.jsxs("div",{className:"space-y-5",children:[h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-3",children:"Keyboard Shortcuts"}),h.jsx("div",{className:"space-y-2",children:n.map((l,a)=>h.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-zinc-800/50",children:[h.jsx("span",{className:"text-sm text-zinc-400",children:l.description}),h.jsx("div",{className:"flex items-center gap-1.5",children:l.keys.map((s,o)=>h.jsxs("span",{className:"flex items-center gap-1.5",children:[o>0&&h.jsx("span",{className:"text-zinc-600 text-xs",children:"or"}),h.jsx("kbd",{className:"px-2 py-1 text-xs font-mono bg-zinc-700 text-zinc-300 rounded border border-zinc-600",children:s})]},o))})]},a))})]}),h.jsx("section",{children:h.jsx("p",{className:"text-xs text-zinc-500 leading-relaxed",children:"Shortcuts are disabled when typing in input fields."})})]})}function VC(){return h.jsxs("div",{className:"space-y-5",children:[h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"Multiple Projects"}),h.jsxs("p",{className:"text-sm text-zinc-400 leading-relaxed",children:["Run ",h.jsx("code",{className:"px-1.5 py-0.5 rounded bg-zinc-800 text-orange-400 text-xs",children:"npx claude-queue"})," in different directories to create separate boards. Switch projects using the header dropdown."]})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"Status Indicator"}),h.jsx("p",{className:"text-sm text-zinc-400 leading-relaxed",children:"The header shows Claude's status — working, idle, or waiting for a reply. If tasks aren't being picked up, ensure the queue skill is running."})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"Drag & Drop"}),h.jsx("p",{className:"text-sm text-zinc-400 leading-relaxed",children:"Reorder tasks by dragging them within or between columns. Note: In Progress tasks are locked while Claude works on them."})]})]})}function GC(n){const{projectId:l,onClose:a}=n,[s,o]=Y.useState("overview"),c=io();return h.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[h.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:a}),h.jsxs("div",{className:"relative w-full max-w-2xl mx-4 bg-zinc-900 border border-zinc-800 rounded-xl shadow-2xl max-h-[85vh] flex flex-col",children:[h.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-zinc-800 shrink-0",children:[h.jsx("h2",{className:"text-base font-medium text-zinc-100",children:"Getting Started"}),h.jsx("button",{onClick:a,className:"p-1 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition-colors",children:h.jsx(Cn,{className:"w-4 h-4"})})]}),h.jsxs("div",{className:"flex flex-1 min-h-0",children:[h.jsx("nav",{className:"w-44 shrink-0 border-r border-zinc-800 p-2",children:BC.map(f=>h.jsxs("button",{onClick:()=>o(f.id),className:`
|
|
66
|
+
`,onClick:()=>c.current?.click(),children:[h.jsx("input",{ref:c,type:"file",accept:Gs.join(","),multiple:!0,onChange:z,className:"hidden"}),h.jsx("p",{className:"text-xs text-zinc-500",children:"+ Add more images"})]})]})}function MC(n){const{template:l,onClose:a,onSubmit:s,isLoading:o}=n,[c,f]=Q.useState(l.title),[m,y]=Q.useState(l.description||""),[p,x]=Q.useState(!1);Q.useEffect(()=>{f(l.title),y(l.description||"")},[l]);const g=S=>{S.preventDefault(),c.trim()&&s(c.trim(),m.trim())};return h.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[h.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:a}),h.jsxs("div",{className:"relative w-full max-w-md mx-4 bg-zinc-900 border border-zinc-800 rounded-xl shadow-2xl",children:[h.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-zinc-800",children:[h.jsx("h2",{className:"text-sm font-medium text-zinc-200",children:"Edit template"}),h.jsx("button",{onClick:a,className:"p-1 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition-colors",children:h.jsx(Cn,{className:"w-4 h-4"})})]}),h.jsxs("form",{onSubmit:g,className:"p-4 space-y-4",children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"title",className:"block text-xs text-zinc-500 mb-1.5",children:"Title"}),h.jsx("input",{id:"title",type:"text",value:c,onChange:S=>f(S.target.value),placeholder:"Template title...",autoFocus:!0,className:"w-full bg-zinc-800 border border-zinc-700 rounded-lg px-3 py-2 text-sm text-zinc-100 placeholder-zinc-500 focus:outline-none focus:border-zinc-600"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"description",className:"block text-xs text-zinc-500 mb-1.5",children:"Description (optional)"}),h.jsx("textarea",{id:"description",value:m,onChange:S=>y(S.target.value),placeholder:"Add more details...",rows:3,className:"w-full bg-zinc-800 border border-zinc-700 rounded-lg px-3 py-2 text-sm text-zinc-100 placeholder-zinc-500 focus:outline-none focus:border-zinc-600 resize-none"})]}),h.jsxs("div",{children:[h.jsxs("button",{type:"button",onClick:()=>x(!p),className:"w-full flex items-center justify-between text-xs text-zinc-500 hover:text-zinc-400 py-2 transition-colors",children:[h.jsxs("span",{className:"flex items-center gap-2",children:[h.jsx(Tg,{className:"w-3.5 h-3.5"}),"Images"]}),h.jsx(Sr,{className:`w-4 h-4 transition-transform ${p?"rotate-180":""}`})]}),p&&h.jsx("div",{className:"mt-2",children:h.jsx(_C,{templateId:l.id})})]}),h.jsxs("div",{className:"flex items-center justify-end gap-3 pt-2",children:[h.jsx("button",{type:"button",onClick:a,className:"px-4 py-2 text-sm text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 rounded-lg transition-colors",children:"Cancel"}),h.jsx("button",{type:"submit",disabled:!c.trim()||o,className:"px-4 py-2 text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-500 disabled:opacity-50 disabled:cursor-not-allowed rounded-lg transition-colors",children:o?"Saving...":"Save changes"})]})]})]})]})}function Qy(n){return new Promise((l,a)=>{const s=new FileReader;s.onload=()=>{const c=s.result.split(",")[1];l(c)},s.onerror=a,s.readAsDataURL(n)})}async function OC(n,l){const a=await Qy(l);return jn(`/attachments/task/${n}`,{filename:l.name,data:a,mimeType:l.type})}async function RC(n,l){const a=await Qy(l);return jn(`/attachments/template/${n}`,{filename:l.name,data:a,mimeType:l.type})}function LC(n){const{projectId:l,boardRef:a}=n,[s,o]=Q.useState(null),[c,f]=Q.useState(null),[m,y]=Q.useState(null),[p,x]=Q.useState(null),[g,S]=Q.useState(!1),[k,z]=Q.useState(!1),[E,M]=Q.useState(null);Q.useEffect(()=>{if(!E)return;const v=setTimeout(()=>M(null),600);return()=>clearTimeout(v)},[E]),Q.useImperativeHandle(a,()=>({openAddTask:()=>y("ready"),openAddTemplate:()=>S(!0),closeModals:()=>{o(null),f(null),y(null),x(null),S(!1)}}));const j=vf(),{data:U=[],isLoading:L}=Mn({...no(l),refetchInterval:j}),{data:ne=[],isLoading:ee}=Mn({...kS(l),refetchInterval:5e3}),D=tt(),P=Sv(l),le=wv(),ue=jv(l),R=wS(l),V=zS(),X=jS();MS(U);const fe=Q.useMemo(()=>{const v={backlog:[],ready:[],in_progress:[],done:[]};for(const Y of U)v[Y.status].push(Y);for(const Y of Object.keys(v))v[Y].sort((te,ae)=>te.position-ae.position);return v},[U]),re=Q.useMemo(()=>[...ne].sort((v,Y)=>v.position-Y.position),[ne]),W=Q.useCallback((v,Y,te)=>{D.setQueryData(["tasks",l],ae=>{if(!ae)return ae;const me=ae.find(Xe=>Xe.id===v);if(!me)return ae;const pe=me.status,we=ae.map(Xe=>Xe.id===v?{...Xe,status:Y,position:te}:Xe),dt=we.filter(Xe=>Xe.status===Y&&Xe.id!==v).sort((Xe,gt)=>Xe.position-gt.position);let St=te;for(const Xe of dt)if(Xe.position>=te){const gt=we.findIndex(ht=>ht.id===Xe.id);gt!==-1&&(St++,we[gt]={...we[gt],position:St})}return pe!==Y&&we.filter(gt=>gt.status===pe).sort((gt,ht)=>gt.position-ht.position).forEach((gt,ht)=>{const fn=we.findIndex(Nn=>Nn.id===gt.id);fn!==-1&&(we[fn]={...we[fn],position:ht})}),we}),M(v),le.mutate({taskId:v,status:Y,position:te})},[le,D,l]),_=Q.useCallback((v,Y)=>{X.mutate({templateId:v,position:Y})},[X]),$=Q.useCallback((v,Y)=>{y(Y),x(v)},[]),ce=async(v,Y,te)=>{m&&P.mutate({title:v,description:Y||void 0,status:m},{onSuccess:async ae=>{te.length>0&&await Promise.all(te.map(me=>OC(ae.id,me))),y(null),x(null)}})},Se=()=>{y(null),x(null)},C=async(v,Y,te)=>{R.mutate({title:v,description:Y||void 0},{onSuccess:async ae=>{te.length>0&&await Promise.all(te.map(me=>RC(ae.id,me))),S(!1)}})},T=(v,Y)=>{c&&V.mutate({templateId:c.id,title:v,description:Y||void 0},{onSuccess:()=>f(null)})},G=L||ee;return h.jsxs("div",{className:"flex-1 flex flex-col min-h-0 relative",children:[G&&h.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-zinc-950/80 z-10",children:h.jsx("div",{className:"text-sm text-zinc-500",children:"Loading..."})}),h.jsx("div",{className:"flex-1 pt-0 pb-4 px-4 overflow-auto",children:h.jsxs("div",{className:"flex gap-0 items-stretch min-h-full w-max",children:[h.jsx(QS,{templates:re,onTemplateClick:f,onAddClick:()=>S(!0),onMoveTemplate:_,onTemplateDropOnColumn:$,isDragging:k,onDragStart:()=>z(!0),onDragEnd:()=>z(!1)}),c0.map((v,Y)=>h.jsx(qS,{id:v.id,title:v.title,tasks:fe[v.id],onTaskClick:o,onDeleteAll:v.id!=="in_progress"?()=>ue.mutate(v.id):void 0,isDeleting:ue.isPending,showBorder:Y<c0.length-1,onMoveTask:W,onTemplateDropOnColumn:$,isDragging:k,onDragStart:()=>z(!0),onDragEnd:()=>z(!1),justDroppedTaskId:E,onAddTask:v.id!=="in_progress"?()=>y(v.id):void 0},v.id))]})}),s&&h.jsx(EC,{task:s,onClose:()=>o(null)}),m&&h.jsx(AC,{status:m,initialTemplate:p,onClose:Se,onSubmit:ce,isLoading:P.isPending}),g&&h.jsx(DC,{onClose:()=>S(!1),onSubmit:C,isLoading:R.isPending}),c&&h.jsx(MC,{template:c,onClose:()=>f(null),onSubmit:T,isLoading:V.isPending})]})}const UC=Q.forwardRef(function(l,a){const{projectId:s}=l;return h.jsx(LC,{projectId:s,boardRef:a})}),BC=[{id:"overview",label:"Overview",icon:h.jsx(q2,{className:"w-4 h-4"})},{id:"planning",label:"Planning",icon:h.jsx(Eg,{className:"w-4 h-4"})},{id:"workflow",label:"Workflow",icon:h.jsx(m2,{className:"w-4 h-4"})},{id:"interaction",label:"Interaction",icon:h.jsx(Ag,{className:"w-4 h-4"})},{id:"shortcuts",label:"Shortcuts",icon:h.jsx(v2,{className:"w-4 h-4"})},{id:"tips",label:"Tips",icon:h.jsx(z2,{className:"w-4 h-4"})}];function qC(n){const{projectId:l,skillCommand:a}=n,s=l?`${a} ${l}`:`${a} <project-id>`;return h.jsxs("div",{className:"space-y-5",children:[h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"What is claude-queue?"}),h.jsx("p",{className:"text-sm text-zinc-400 leading-relaxed",children:"A visual task board that lets you assign tasks to Claude Code. Add tasks to the board, and Claude will work through them autonomously."})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-3",children:"Quick Start"}),h.jsxs("ol",{className:"space-y-4 text-sm text-zinc-400",children:[h.jsxs("li",{className:"flex gap-3",children:[h.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-orange-500/20 text-orange-400 flex items-center justify-center text-xs font-medium",children:"1"}),h.jsxs("span",{children:["Add tasks to ",h.jsx("strong",{className:"text-zinc-300",children:"Backlog"})," or ",h.jsx("strong",{className:"text-zinc-300",children:"Ready"})]})]}),h.jsxs("li",{className:"flex gap-3",children:[h.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-orange-500/20 text-orange-400 flex items-center justify-center text-xs font-medium",children:"2"}),h.jsx("span",{children:"Run the skill command in Claude Code:"})]})]}),h.jsxs("div",{className:"mt-3 ml-9 flex items-center gap-2 bg-zinc-800 rounded-lg border border-zinc-700",children:[h.jsx("code",{className:"flex-1 text-sm font-mono text-orange-400 px-3 py-2.5",children:s}),h.jsx(zn,{text:s,className:"mr-2"})]}),!l&&h.jsx("p",{className:"mt-2 ml-9 text-xs text-zinc-500",children:"Find your project ID in the URL or header"})]})]})}function HC(n){const{projectId:l,skillCommand:a}=n,s=l?`${a} plan ${l}`:`${a} plan <project-id>`;return h.jsxs("div",{className:"space-y-5",children:[h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"What is Planning Mode?"}),h.jsx("p",{className:"text-sm text-zinc-400 leading-relaxed",children:"Instead of manually creating tasks, describe what you want to build and let Claude break it down into actionable tasks for you."})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-3",children:"How to Use"}),h.jsx("ol",{className:"space-y-4 text-sm text-zinc-400",children:h.jsxs("li",{className:"flex gap-3",children:[h.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-orange-500/20 text-orange-400 flex items-center justify-center text-xs font-medium",children:"1"}),h.jsx("span",{children:"Run the planning command in Claude Code:"})]})}),h.jsxs("div",{className:"mt-3 ml-9 flex items-center gap-2 bg-zinc-800 rounded-lg border border-zinc-700",children:[h.jsx("code",{className:"flex-1 text-sm font-mono text-orange-400 px-3 py-2.5",children:s}),h.jsx(zn,{text:s,className:"mr-2"})]}),h.jsxs("ol",{className:"mt-4 space-y-4 text-sm text-zinc-400",start:2,children:[h.jsxs("li",{className:"flex gap-3",children:[h.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-orange-500/20 text-orange-400 flex items-center justify-center text-xs font-medium",children:"2"}),h.jsx("span",{children:'Describe what you want to build (e.g., "user authentication with email and password")'})]}),h.jsxs("li",{className:"flex gap-3",children:[h.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-orange-500/20 text-orange-400 flex items-center justify-center text-xs font-medium",children:"3"}),h.jsx("span",{children:"Claude proposes a task breakdown — refine if needed"})]}),h.jsxs("li",{className:"flex gap-3",children:[h.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-orange-500/20 text-orange-400 flex items-center justify-center text-xs font-medium",children:"4"}),h.jsxs("span",{children:["Choose to add tasks to ",h.jsx("strong",{className:"text-zinc-300",children:"Ready"})," (default) or ",h.jsx("strong",{className:"text-zinc-300",children:"Backlog"})]})]})]})]})]})}function QC(){const n=[{icon:h.jsx(jf,{className:"w-4 h-4"}),name:"Backlog",desc:"Tasks waiting to be prioritized",color:"text-zinc-400"},{icon:h.jsx(kf,{className:"w-4 h-4"}),name:"Ready",desc:"Tasks ready for Claude to pick up",color:"text-green-400"},{icon:h.jsx(di,{className:"w-4 h-4"}),name:"In Progress",desc:"Claude is actively working",color:"text-orange-400"},{icon:h.jsx(Sf,{className:"w-4 h-4"}),name:"Done",desc:"Completed tasks",color:"text-blue-400"}];return h.jsxs("div",{className:"space-y-5",children:[h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-3",children:"Task Columns"}),h.jsx("div",{className:"space-y-3",children:n.map(l=>h.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg bg-zinc-800/50",children:[h.jsx("div",{className:`shrink-0 ${l.color}`,children:l.icon}),h.jsxs("div",{children:[h.jsx("div",{className:"text-sm font-medium text-zinc-200",children:l.name}),h.jsx("div",{className:"text-xs text-zinc-500",children:l.desc})]})]},l.name))})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"Templates"}),h.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg bg-zinc-800/50",children:[h.jsx("div",{className:"shrink-0 text-indigo-400",children:h.jsx(kr,{className:"w-4 h-4"})}),h.jsxs("div",{children:[h.jsx("div",{className:"text-sm font-medium text-zinc-200",children:"Reusable task templates"}),h.jsx("div",{className:"text-xs text-zinc-500",children:"Drag a template to Backlog or Ready to create a task"})]})]})]})]})}function YC(){return h.jsxs("div",{className:"space-y-5",children:[h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-3",children:"Interacting with Claude"}),h.jsxs("ul",{className:"space-y-3 text-sm text-zinc-400",children:[h.jsxs("li",{className:"flex gap-3 p-3 rounded-lg bg-zinc-800/50",children:[h.jsx(Ag,{className:"w-4 h-4 shrink-0 text-blue-400 mt-0.5"}),h.jsx("span",{children:"Click any task to view details and add comments"})]}),h.jsxs("li",{className:"flex gap-3 p-3 rounded-lg bg-zinc-800/50",children:[h.jsx(di,{className:"w-4 h-4 shrink-0 text-yellow-400 mt-0.5"}),h.jsx("span",{children:"When Claude is blocked, it will wait for your reply"})]})]})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-3",children:"Task Controls"}),h.jsxs("ul",{className:"space-y-3 text-sm text-zinc-400",children:[h.jsxs("li",{className:"flex gap-3 p-3 rounded-lg bg-zinc-800/50",children:[h.jsx("span",{className:"shrink-0 text-yellow-400 text-xs font-medium",children:"Start Over"}),h.jsx("span",{className:"text-zinc-500",children:"— Reset task and discard changes"})]}),h.jsxs("li",{className:"flex gap-3 p-3 rounded-lg bg-zinc-800/50",children:[h.jsx("span",{className:"shrink-0 text-red-400 text-xs font-medium",children:"Abort Task"}),h.jsx("span",{className:"text-zinc-500",children:"— Cancel and move to backlog"})]})]})]})]})}function FC(){const n=[{keys:["?","H"],description:"Toggle help dialog"},{keys:["N","A"],description:"Add new task to Ready"},{keys:["T"],description:"Add new template"},{keys:["D"],description:"Open troubleshooting dialog"},{keys:["S"],description:"Open statistics dialog"},{keys:["Esc"],description:"Close any open dialog"}];return h.jsxs("div",{className:"space-y-5",children:[h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-3",children:"Keyboard Shortcuts"}),h.jsx("div",{className:"space-y-2",children:n.map((l,a)=>h.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-zinc-800/50",children:[h.jsx("span",{className:"text-sm text-zinc-400",children:l.description}),h.jsx("div",{className:"flex items-center gap-1.5",children:l.keys.map((s,o)=>h.jsxs("span",{className:"flex items-center gap-1.5",children:[o>0&&h.jsx("span",{className:"text-zinc-600 text-xs",children:"or"}),h.jsx("kbd",{className:"px-2 py-1 text-xs font-mono bg-zinc-700 text-zinc-300 rounded border border-zinc-600",children:s})]},o))})]},a))})]}),h.jsx("section",{children:h.jsx("p",{className:"text-xs text-zinc-500 leading-relaxed",children:"Shortcuts are disabled when typing in input fields."})})]})}function VC(){return h.jsxs("div",{className:"space-y-5",children:[h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"Multiple Projects"}),h.jsxs("p",{className:"text-sm text-zinc-400 leading-relaxed",children:["Run ",h.jsx("code",{className:"px-1.5 py-0.5 rounded bg-zinc-800 text-orange-400 text-xs",children:"npx claude-queue"})," in different directories to create separate boards. Switch projects using the header dropdown."]})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"Status Indicator"}),h.jsx("p",{className:"text-sm text-zinc-400 leading-relaxed",children:"The header shows Claude's status — working, idle, or waiting for a reply. If tasks aren't being picked up, ensure the queue skill is running."})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"Drag & Drop"}),h.jsx("p",{className:"text-sm text-zinc-400 leading-relaxed",children:"Reorder tasks by dragging them within or between columns. Note: In Progress tasks are locked while Claude works on them."})]})]})}function GC(n){const{projectId:l,onClose:a}=n,[s,o]=Q.useState("overview"),c=io();return h.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[h.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:a}),h.jsxs("div",{className:"relative w-full max-w-2xl mx-4 bg-zinc-900 border border-zinc-800 rounded-xl shadow-2xl max-h-[85vh] flex flex-col",children:[h.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-zinc-800 shrink-0",children:[h.jsx("h2",{className:"text-base font-medium text-zinc-100",children:"Getting Started"}),h.jsx("button",{onClick:a,className:"p-1 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition-colors",children:h.jsx(Cn,{className:"w-4 h-4"})})]}),h.jsxs("div",{className:"flex flex-1 min-h-0",children:[h.jsx("nav",{className:"w-44 shrink-0 border-r border-zinc-800 p-2",children:BC.map(f=>h.jsxs("button",{onClick:()=>o(f.id),className:`
|
|
67
67
|
w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-sm transition-colors text-left
|
|
68
68
|
${s===f.id?"bg-zinc-800 text-zinc-100":"text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800/50"}
|
|
69
|
-
`,children:[h.jsx("span",{className:s===f.id?"text-orange-400":"text-zinc-500",children:f.icon}),f.label]},f.id))}),h.jsxs("div",{className:"flex-1 p-4 overflow-y-auto min-h-[550px]",children:[s==="overview"&&h.jsx(qC,{projectId:l,skillCommand:c}),s==="planning"&&h.jsx(HC,{projectId:l,skillCommand:c}),s==="workflow"&&h.jsx(QC,{}),s==="interaction"&&h.jsx(YC,{}),s==="shortcuts"&&h.jsx(FC,{}),s==="tips"&&h.jsx(VC,{})]})]})]})]})}const XC=[{id:"status",label:"Status",icon:h.jsx(kg,{className:"w-4 h-4"})},{id:"skills",label:"Skills",icon:h.jsx(L2,{className:"w-4 h-4"})},{id:"mcp",label:"MCP Server",icon:h.jsx(G2,{className:"w-4 h-4"})},{id:"issues",label:"Common Issues",icon:h.jsx(lS,{className:"w-4 h-4"})},{id:"actions",label:"Actions",icon:h.jsx(Og,{className:"w-4 h-4"})}];function
|
|
69
|
+
`,children:[h.jsx("span",{className:s===f.id?"text-orange-400":"text-zinc-500",children:f.icon}),f.label]},f.id))}),h.jsxs("div",{className:"flex-1 p-4 overflow-y-auto min-h-[550px]",children:[s==="overview"&&h.jsx(qC,{projectId:l,skillCommand:c}),s==="planning"&&h.jsx(HC,{projectId:l,skillCommand:c}),s==="workflow"&&h.jsx(QC,{}),s==="interaction"&&h.jsx(YC,{}),s==="shortcuts"&&h.jsx(FC,{}),s==="tips"&&h.jsx(VC,{})]})]})]})]})}const XC=[{id:"status",label:"Status",icon:h.jsx(kg,{className:"w-4 h-4"})},{id:"skills",label:"Skills",icon:h.jsx(L2,{className:"w-4 h-4"})},{id:"mcp",label:"MCP Server",icon:h.jsx(G2,{className:"w-4 h-4"})},{id:"issues",label:"Common Issues",icon:h.jsx(lS,{className:"w-4 h-4"})},{id:"actions",label:"Actions",icon:h.jsx(Og,{className:"w-4 h-4"})}];function Xc(n){const{label:l,status:a,message:s}=n,o={ok:h.jsx(jg,{className:"w-4 h-4 text-green-400"}),warning:h.jsx(di,{className:"w-4 h-4 text-yellow-400"}),error:h.jsx(Cg,{className:"w-4 h-4 text-red-400"})},c={ok:"border-green-500/30 bg-green-900/10",warning:"border-yellow-500/30 bg-yellow-900/10",error:"border-red-500/30 bg-red-900/10"};return h.jsxs("div",{className:`flex items-start gap-3 p-3 rounded-lg border ${c[a]}`,children:[h.jsx("div",{className:"shrink-0 mt-0.5",children:o[a]}),h.jsxs("div",{children:[h.jsx("div",{className:"text-sm font-medium text-zinc-200",children:l}),h.jsx("div",{className:"text-xs text-zinc-400 mt-0.5",children:s})]})]})}function IC(n){const{project:l,tasks:a,port:s}=n,o=a.find(p=>p.status==="in_progress"),c=a.filter(p=>p.status==="ready"),f=()=>{if(!l)return{label:"Claude Connection",status:"error",message:"No project selected"};if(o)return o.blocked?{label:"Claude Connection",status:"warning",message:"Claude is blocked and waiting for your reply"}:{label:"Claude Connection",status:"ok",message:`Working on: ${o.title}`};if(l.claude_last_seen){const p=new Date(l.claude_last_seen),g=Math.floor((new Date().getTime()-p.getTime())/1e3);if(g<30)return{label:"Claude Connection",status:"ok",message:"Claude is connected and watching"};if(g<300)return{label:"Claude Connection",status:"warning",message:`Last seen ${Math.floor(g/60)}m ago. Claude may have stopped.`}}return{label:"Claude Connection",status:"error",message:"Claude is not connected. Run the skill command."}},m=()=>({label:"Server",status:"ok",message:`Running on port ${s}`}),y=()=>c.length>0?{label:"Ready Tasks",status:"ok",message:`${c.length} task(s) ready for Claude`}:{label:"Ready Tasks",status:"warning",message:"No tasks in Ready column. Add tasks for Claude to work on."};return h.jsxs("div",{className:"space-y-5",children:[h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-3",children:"System Status"}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(Xc,{...m()}),h.jsx(Xc,{...f()}),h.jsx(Xc,{...y()})]})]}),l&&h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-3",children:"Project Info"}),h.jsxs("div",{className:"p-3 rounded-lg bg-zinc-800/50 space-y-2 text-sm",children:[h.jsxs("div",{className:"flex justify-between",children:[h.jsx("span",{className:"text-zinc-500",children:"Project ID"}),h.jsx("span",{className:"text-zinc-300 font-mono",children:l.id})]}),h.jsxs("div",{className:"flex justify-between",children:[h.jsx("span",{className:"text-zinc-500",children:"Name"}),h.jsx("span",{className:"text-zinc-300",children:l.name})]}),h.jsxs("div",{className:"flex justify-between",children:[h.jsx("span",{className:"text-zinc-500",children:"Path"}),h.jsx("span",{className:"text-zinc-300 truncate max-w-[200px]",title:l.path,children:l.path})]})]})]})]})}function KC(n){const{projectId:l,skillCommand:a}=n,s=l?`${a} ${l}`:`${a} <project-id>`;return h.jsxs("div",{className:"space-y-5",children:[h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"Check Skill Installation"}),h.jsxs("p",{className:"text-sm text-zinc-400 mb-3",children:["Skills should be installed at ",h.jsxs("code",{className:"px-1.5 py-0.5 rounded bg-zinc-800 text-cyan-400 text-xs",children:["~/.claude/skills/",a.slice(1),"/"]})]}),h.jsxs("div",{className:"flex items-center gap-2 bg-zinc-800 rounded-lg border border-zinc-700",children:[h.jsxs("code",{className:"flex-1 text-sm font-mono text-orange-400 px-3 py-2.5",children:["ls ~/.claude/skills/",a.slice(1),"/"]}),h.jsx(zn,{text:`ls ~/.claude/skills/${a.slice(1)}/`,className:"mr-2"})]}),h.jsxs("p",{className:"text-xs text-zinc-500 mt-2",children:["You should see ",h.jsx("code",{className:"text-zinc-400",children:"SKILL.md"})," in the output."]})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"Reinstall Skills"}),h.jsx("p",{className:"text-sm text-zinc-400 mb-3",children:"If the skill is missing or outdated, reinstall with:"}),h.jsxs("div",{className:"flex items-center gap-2 bg-zinc-800 rounded-lg border border-zinc-700",children:[h.jsx("code",{className:"flex-1 text-sm font-mono text-orange-400 px-3 py-2.5",children:"npx claude-queue"}),h.jsx(zn,{text:"npx claude-queue",className:"mr-2"})]}),h.jsx("p",{className:"text-xs text-zinc-500 mt-2",children:"This will reinstall the skill if it's missing."})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"Run the Skill"}),h.jsx("p",{className:"text-sm text-zinc-400 mb-3",children:"In Claude Code, run:"}),h.jsxs("div",{className:"flex items-center gap-2 bg-zinc-800 rounded-lg border border-zinc-700",children:[h.jsx("code",{className:"flex-1 text-sm font-mono text-orange-400 px-3 py-2.5",children:s}),h.jsx(zn,{text:s,className:"mr-2"})]})]})]})}function ZC(n){const{mcpName:l,port:a}=n;return h.jsxs("div",{className:"space-y-5",children:[h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"Check MCP Configuration"}),h.jsxs("p",{className:"text-sm text-zinc-400 mb-3",children:["MCP servers are configured in ",h.jsx("code",{className:"px-1.5 py-0.5 rounded bg-zinc-800 text-cyan-400 text-xs",children:"~/.claude/settings.json"})]}),h.jsxs("div",{className:"flex items-center gap-2 bg-zinc-800 rounded-lg border border-zinc-700",children:[h.jsxs("code",{className:"flex-1 text-sm font-mono text-orange-400 px-3 py-2.5",children:['cat ~/.claude/settings.json | grep -A5 "',l,'"']}),h.jsx(zn,{text:`cat ~/.claude/settings.json | grep -A5 "${l}"`,className:"mr-2"})]})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"Expected Configuration"}),h.jsx("p",{className:"text-sm text-zinc-400 mb-3",children:"You should see something like:"}),h.jsx("pre",{className:"p-3 rounded-lg bg-zinc-800 text-xs font-mono text-zinc-300 overflow-x-auto",children:`"${l}": {
|
|
70
70
|
"command": "npx",
|
|
71
71
|
"args": ["-y", "-p", "claude-queue", "claude-queue-mcp"],
|
|
72
72
|
"env": {
|
|
73
73
|
"KANBAN_SERVER_URL": "http://localhost:${a}"
|
|
74
74
|
}
|
|
75
|
-
}`})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"Reconfigure MCP"}),h.jsx("p",{className:"text-sm text-zinc-400 mb-3",children:"If the MCP server is missing or misconfigured, run:"}),h.jsxs("div",{className:"flex items-center gap-2 bg-zinc-800 rounded-lg border border-zinc-700",children:[h.jsx("code",{className:"flex-1 text-sm font-mono text-orange-400 px-3 py-2.5",children:"npx claude-queue"}),h.jsx(zn,{text:"npx claude-queue",className:"mr-2"})]}),h.jsx("p",{className:"text-xs text-zinc-500 mt-2",children:"Then restart Claude Code to load the new MCP server."})]})]})}function $C(n){const{question:l,answers:a,isOpen:s,onToggle:o}=n;return h.jsxs("div",{className:"border border-zinc-800 rounded-lg overflow-hidden",children:[h.jsxs("button",{onClick:o,className:"w-full flex items-center justify-between gap-3 p-3 text-left bg-zinc-800/50 hover:bg-zinc-800 transition-colors",children:[h.jsx("span",{className:"text-sm font-medium text-zinc-100",children:l}),h.jsx(Sr,{className:`w-4 h-4 shrink-0 text-zinc-400 ${s?"rotate-180":""}`})]}),s&&h.jsx("div",{className:"p-3 border-t border-zinc-800",children:h.jsx("ul",{className:"space-y-2 text-sm text-zinc-400",children:a.map((c,f)=>h.jsxs("li",{className:"flex gap-2",children:[h.jsx("span",{className:"text-zinc-600 shrink-0",children:"•"}),h.jsx("span",{children:c})]},f))})})]})}function hr(n){const{label:l,description:a,icon:s,variant:o,onClick:c,disabled:f}=n,m={danger:"border-red-500/30 bg-red-900/10 hover:bg-red-900/20 text-red-400",warning:"border-yellow-500/30 bg-yellow-900/10 hover:bg-yellow-900/20 text-yellow-400",info:"border-zinc-500/30 bg-zinc-800/50 hover:bg-zinc-800 text-zinc-300"};return h.jsxs("button",{onClick:c,disabled:f,className:`w-full flex items-start gap-3 p-3 rounded-lg border transition-colors text-left ${m[o]} ${f?"opacity-50 cursor-not-allowed":""}`,children:[h.jsx("div",{className:"shrink-0 mt-0.5",children:s}),h.jsxs("div",{children:[h.jsx("div",{className:"text-sm font-medium",children:l}),h.jsx("div",{className:"text-xs opacity-70 mt-0.5",children:a})]})]})}function PC(){const n=tt(),[l,a]=
|
|
75
|
+
}`})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"Reconfigure MCP"}),h.jsx("p",{className:"text-sm text-zinc-400 mb-3",children:"If the MCP server is missing or misconfigured, run:"}),h.jsxs("div",{className:"flex items-center gap-2 bg-zinc-800 rounded-lg border border-zinc-700",children:[h.jsx("code",{className:"flex-1 text-sm font-mono text-orange-400 px-3 py-2.5",children:"npx claude-queue"}),h.jsx(zn,{text:"npx claude-queue",className:"mr-2"})]}),h.jsx("p",{className:"text-xs text-zinc-500 mt-2",children:"Then restart Claude Code to load the new MCP server."})]})]})}function $C(n){const{question:l,answers:a,isOpen:s,onToggle:o}=n;return h.jsxs("div",{className:"border border-zinc-800 rounded-lg overflow-hidden",children:[h.jsxs("button",{onClick:o,className:"w-full flex items-center justify-between gap-3 p-3 text-left bg-zinc-800/50 hover:bg-zinc-800 transition-colors",children:[h.jsx("span",{className:"text-sm font-medium text-zinc-100",children:l}),h.jsx(Sr,{className:`w-4 h-4 shrink-0 text-zinc-400 ${s?"rotate-180":""}`})]}),s&&h.jsx("div",{className:"p-3 border-t border-zinc-800",children:h.jsx("ul",{className:"space-y-2 text-sm text-zinc-400",children:a.map((c,f)=>h.jsxs("li",{className:"flex gap-2",children:[h.jsx("span",{className:"text-zinc-600 shrink-0",children:"•"}),h.jsx("span",{children:c})]},f))})})]})}function hr(n){const{label:l,description:a,icon:s,variant:o,onClick:c,disabled:f}=n,m={danger:"border-red-500/30 bg-red-900/10 hover:bg-red-900/20 text-red-400",warning:"border-yellow-500/30 bg-yellow-900/10 hover:bg-yellow-900/20 text-yellow-400",info:"border-zinc-500/30 bg-zinc-800/50 hover:bg-zinc-800 text-zinc-300"};return h.jsxs("button",{onClick:c,disabled:f,className:`w-full flex items-start gap-3 p-3 rounded-lg border transition-colors text-left ${m[o]} ${f?"opacity-50 cursor-not-allowed":""}`,children:[h.jsx("div",{className:"shrink-0 mt-0.5",children:s}),h.jsxs("div",{children:[h.jsx("div",{className:"text-sm font-medium",children:l}),h.jsx("div",{className:"text-xs opacity-70 mt-0.5",children:a})]})]})}function PC(){const n=tt(),[l,a]=Q.useState(null),[s,o]=Q.useState(!1),[c,f]=Q.useState(null),m=async()=>{const z=await Xn("/maintenance/stats");a(z)},y=async z=>{o(!0);try{await z(),await m(),n.invalidateQueries()}finally{o(!1),f(null)}},p=()=>{f({title:"Clear Done Tasks",message:'This will delete all tasks in the "Done" column across all projects. This cannot be undone.',action:async()=>{await Gn("/maintenance/tasks/done")}})},x=()=>{f({title:"Clear All Tasks",message:"This will delete ALL tasks from ALL projects. This cannot be undone.",action:async()=>{await Gn("/maintenance/tasks/all")}})},g=()=>{f({title:"Clear All Projects",message:"This will delete ALL projects and their tasks. This cannot be undone.",action:async()=>{await Gn("/maintenance/projects/all")}})},S=()=>{f({title:"Clear Activity Log",message:"This will delete all activity history from all tasks. This cannot be undone.",action:async()=>{await Gn("/maintenance/activity/all")}})},k=async()=>{o(!0);try{await jn("/maintenance/vacuum",{}),alert("Database optimized successfully")}finally{o(!1)}};return l===null?(m(),h.jsx("div",{className:"flex items-center justify-center py-8",children:h.jsx(Mg,{className:"w-5 h-5 animate-spin text-zinc-500"})})):h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"space-y-5",children:[h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-3",children:"Cleanup Actions"}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(hr,{label:"Clear Done Tasks",description:`Delete all completed tasks (${l.tasks.byStatus.done||0} tasks)`,icon:h.jsx(dl,{className:"w-4 h-4"}),variant:"warning",onClick:p,disabled:s||!l.tasks.byStatus.done}),h.jsx(hr,{label:"Clear Activity Log",description:`Delete all activity history (${l.activities} entries)`,icon:h.jsx(kg,{className:"w-4 h-4"}),variant:"warning",onClick:S,disabled:s||l.activities===0})]})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-3",children:"Destructive Actions"}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(hr,{label:"Clear All Tasks",description:`Delete all tasks from all projects (${l.tasks.total} tasks)`,icon:h.jsx(dl,{className:"w-4 h-4"}),variant:"danger",onClick:x,disabled:s||l.tasks.total===0}),h.jsx(hr,{label:"Clear All Projects",description:`Delete all projects and their data (${l.projects} projects)`,icon:h.jsx(dl,{className:"w-4 h-4"}),variant:"danger",onClick:g,disabled:s||l.projects===0})]})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-3",children:"Database Maintenance"}),h.jsx(hr,{label:"Optimize Database",description:"Run VACUUM to reclaim space and optimize performance",icon:h.jsx(a2,{className:"w-4 h-4"}),variant:"info",onClick:k,disabled:s})]})]}),c&&h.jsx(hl,{title:c.title,message:c.message,confirmLabel:"Delete",isLoading:s,onConfirm:()=>y(c.action),onCancel:()=>f(null)})]})}function JC(n){const{skillCommand:l}=n,[a,s]=Q.useState(null),o=[{problem:"Tasks not being picked up",solutions:['Ensure tasks are in the "Ready" column (not Backlog)',"Check that Claude is connected (see Status tab)",`Run ${l} <project-id> in Claude Code`,"Make sure there's no task already in progress"]},{problem:"Claude shows as disconnected",solutions:[`Run the skill command: ${l} <project-id>`,"Restart Claude Code and try again","Check that the MCP server is configured (see MCP Server tab)"]},{problem:'"Skill not found" error',solutions:["Run `npx claude-queue` to reinstall skills","Check ~/.claude/skills/ directory exists","Restart Claude Code after installing"]},{problem:"MCP server connection errors",solutions:["Ensure the queue server is running (check this page loads)","Restart Claude Code to reload MCP servers","Check ~/.claude/settings.json has the MCP config"]},{problem:"Changes not appearing in real-time",solutions:["The board auto-refreshes every few seconds","Try refreshing the page manually","Check browser console for errors"]}],c=f=>{s(a===f?null:f)};return h.jsx("div",{className:"space-y-2",children:o.map((f,m)=>h.jsx($C,{question:f.problem,answers:f.solutions,isOpen:a===m,onToggle:()=>c(m)},m))})}function WC(n){const{project:l,tasks:a,onClose:s}=n,[o,c]=Q.useState("status"),f=io(),m=yS(),y=xS();return h.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[h.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:s}),h.jsxs("div",{className:"relative w-full max-w-2xl mx-4 bg-zinc-900 border border-zinc-800 rounded-xl shadow-2xl max-h-[85vh] flex flex-col",children:[h.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-zinc-800 shrink-0",children:[h.jsx("h2",{className:"text-base font-medium text-zinc-100",children:"Troubleshooting"}),h.jsx("button",{onClick:s,className:"p-1 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition-colors",children:h.jsx(Cn,{className:"w-4 h-4"})})]}),h.jsxs("div",{className:"flex flex-1 min-h-0",children:[h.jsx("nav",{className:"w-44 shrink-0 border-r border-zinc-800 p-2",children:XC.map(p=>h.jsxs("button",{onClick:()=>c(p.id),className:`
|
|
76
76
|
w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-sm transition-colors text-left
|
|
77
77
|
${o===p.id?"bg-zinc-800 text-zinc-100":"text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800/50"}
|
|
78
|
-
`,children:[h.jsx("span",{className:o===p.id?"text-orange-400":"text-zinc-500",children:p.icon}),p.label]},p.id))}),h.jsxs("div",{className:"flex-1 p-4 overflow-y-auto min-h-[450px]",children:[o==="status"&&h.jsx(IC,{project:l,tasks:a,port:y}),o==="skills"&&h.jsx(KC,{projectId:l?.id||null,skillCommand:f}),o==="mcp"&&h.jsx(ZC,{mcpName:m,port:y}),o==="issues"&&h.jsx(JC,{skillCommand:f}),o==="actions"&&h.jsx(PC,{})]})]})]})]})}function
|
|
78
|
+
`,children:[h.jsx("span",{className:o===p.id?"text-orange-400":"text-zinc-500",children:p.icon}),p.label]},p.id))}),h.jsxs("div",{className:"flex-1 p-4 overflow-y-auto min-h-[450px]",children:[o==="status"&&h.jsx(IC,{project:l,tasks:a,port:y}),o==="skills"&&h.jsx(KC,{projectId:l?.id||null,skillCommand:f}),o==="mcp"&&h.jsx(ZC,{mcpName:m,port:y}),o==="issues"&&h.jsx(JC,{skillCommand:f}),o==="actions"&&h.jsx(PC,{})]})]})]})]})}function lg(n){if(n===0)return"—";const l=Math.floor(n/1e3),a=Math.floor(l/60),s=Math.floor(a/60);if(s>0){const o=a%60;return`${s}h ${o}m`}if(a>0){const o=l%60;return`${a}m ${o}s`}return`${l}s`}function Xs(n){const{label:l,value:a,icon:s,subtitle:o}=n;return h.jsxs("div",{className:"p-4 rounded-lg bg-zinc-800/50 border border-zinc-700/50",children:[h.jsxs("div",{className:"flex items-center gap-2 text-zinc-400 mb-2",children:[s,h.jsx("span",{className:"text-xs font-medium",children:l})]}),h.jsx("div",{className:"text-2xl font-semibold text-zinc-100",children:a}),o&&h.jsx("div",{className:"text-xs text-zinc-500 mt-1",children:o})]})}function eN(n){const{project:l,onClose:a}=n,{data:s,isLoading:o}=Mn({queryKey:["project-stats",l.id],queryFn:()=>Xn(`/projects/${l.id}/stats`)}),c=s?Object.values(s.tasksByStatus).reduce((f,m)=>f+m,0):0;return h.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[h.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:a}),h.jsxs("div",{className:"relative w-full max-w-md mx-4 bg-zinc-900 border border-zinc-800 rounded-xl shadow-2xl",children:[h.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-zinc-800",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"text-base font-medium text-zinc-100",children:"Project Statistics"}),h.jsx("p",{className:"text-xs text-zinc-500 mt-0.5",children:l.name})]}),h.jsx("button",{onClick:a,className:"p-1 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition-colors",children:h.jsx(Cn,{className:"w-4 h-4"})})]}),h.jsx("div",{className:"p-4",children:o?h.jsx("div",{className:"flex items-center justify-center py-12",children:h.jsx(Mg,{className:"w-5 h-5 animate-spin text-zinc-500"})}):s?h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[h.jsx(Xs,{label:"Completed Today",value:s.completedToday,icon:h.jsx(Yv,{className:"w-4 h-4"})}),h.jsx(Xs,{label:"This Week",value:s.completedThisWeek,icon:h.jsx(nS,{className:"w-4 h-4"})})]}),h.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[h.jsx(Xs,{label:"Total Completed",value:s.totalCompleted,icon:h.jsx(jg,{className:"w-4 h-4"}),subtitle:`of ${c} tasks`}),h.jsx(Xs,{label:"Avg Completion Time",value:lg(s.avgTimeMs),icon:h.jsx(di,{className:"w-4 h-4"}),subtitle:s.tasksWithTime>0?`from ${s.tasksWithTime} tasks`:void 0})]}),h.jsxs("div",{className:"p-4 rounded-lg bg-zinc-800/50 border border-zinc-700/50",children:[h.jsxs("div",{className:"flex items-center gap-2 text-zinc-400 mb-3",children:[h.jsx(di,{className:"w-4 h-4"}),h.jsx("span",{className:"text-xs font-medium",children:"Total Time Tracked"})]}),h.jsx("div",{className:"text-3xl font-semibold text-zinc-100",children:lg(s.totalTimeMs)}),s.tasksWithTime>0&&h.jsxs("p",{className:"text-xs text-zinc-500 mt-2",children:["Across ",s.tasksWithTime," completed task",s.tasksWithTime!==1?"s":""]})]}),h.jsxs("div",{className:"p-4 rounded-lg bg-zinc-800/50 border border-zinc-700/50",children:[h.jsx("h3",{className:"text-xs font-medium text-zinc-400 mb-3",children:"Tasks by Status"}),h.jsx("div",{className:"space-y-2",children:[{key:"backlog",label:"Backlog",color:"bg-zinc-600"},{key:"ready",label:"Ready",color:"bg-blue-500"},{key:"in_progress",label:"In Progress",color:"bg-yellow-500"},{key:"done",label:"Done",color:"bg-green-500"}].map(f=>{const m=s.tasksByStatus[f.key]||0,y=c>0?m/c*100:0;return h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-20 text-xs text-zinc-400",children:f.label}),h.jsx("div",{className:"flex-1 h-2 bg-zinc-700 rounded-full overflow-hidden",children:h.jsx("div",{className:`h-full ${f.color} transition-all`,style:{width:`${y}%`}})}),h.jsx("div",{className:"w-8 text-xs text-zinc-500 text-right",children:m})]},f.key)})})]})]}):h.jsx("div",{className:"text-center text-zinc-500 py-8",children:"Failed to load statistics"})})]})]})}function tN(){return{queryKey:["prompts","master"],queryFn:()=>Xn("/prompts/master")}}function nN(n){return{queryKey:["prompts","project",n],queryFn:()=>Xn(`/prompts/project/${n}`),enabled:!!n}}function iN(){const n=tt();return vt({mutationFn:l=>bg("/prompts/master",{content:l}),onSuccess:()=>{n.invalidateQueries({queryKey:["prompts","master"]})}})}function lN(n){const l=tt();return vt({mutationFn:a=>bg(`/prompts/project/${n}`,{content:a}),onSuccess:()=>{l.invalidateQueries({queryKey:["prompts","project",n]})}})}const aN=[{id:"general",label:"General",icon:h.jsx(Z2,{className:"w-4 h-4"})},{id:"prompts",label:"Prompts",icon:h.jsx(kr,{className:"w-4 h-4"})}];function rN(){const[n,l]=DS();return h.jsx("div",{className:"space-y-6",children:h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"Sound Notifications"}),h.jsx("p",{className:"text-xs text-zinc-500 mb-4",children:"Play sound effects when tasks are started, completed, or when Claude asks a question."}),h.jsxs("button",{onClick:()=>l(!n),className:`
|
|
79
79
|
flex items-center gap-3 w-full p-3 rounded-lg border transition-colors
|
|
80
80
|
${n?"bg-orange-500/10 border-orange-500/30 text-orange-400":"bg-zinc-800/50 border-zinc-700 text-zinc-400"}
|
|
81
81
|
`,children:[n?h.jsx(uS,{className:"w-5 h-5"}):h.jsx(fS,{className:"w-5 h-5"}),h.jsxs("div",{className:"flex-1 text-left",children:[h.jsx("div",{className:"text-sm font-medium",children:n?"Sound enabled":"Sound disabled"}),h.jsx("div",{className:"text-xs text-zinc-500",children:n?"You'll hear sounds for task events":"No sounds will be played"})]}),h.jsx("div",{className:`
|
|
@@ -84,7 +84,7 @@ Error generating stack: `+r.message+`
|
|
|
84
84
|
`,children:h.jsx("div",{className:`
|
|
85
85
|
absolute top-1 w-4 h-4 rounded-full bg-white transition-transform
|
|
86
86
|
${n?"translate-x-5":"translate-x-1"}
|
|
87
|
-
`})})]})]})})}function
|
|
87
|
+
`})})]})]})})}function ag(n){const{title:l,description:a,content:s,isLoading:o,isPending:c,onSave:f}=n,[m,y]=Q.useState(!1),[p,x]=Q.useState(""),[g,S]=Q.useState(!1),k=()=>{x(s||""),y(!0)},z=()=>{y(!1),x("")},E=()=>{f(p),y(!1),S(!0),setTimeout(()=>S(!1),2e3)};return o?h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:l}),h.jsxs("div",{className:"flex items-center gap-2 text-sm text-zinc-400",children:[h.jsx(da,{className:"w-4 h-4 animate-spin"}),"Loading..."]})]}):m?h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:l}),h.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:a}),h.jsx("textarea",{value:p,onChange:M=>x(M.target.value),placeholder:"Enter instructions...",rows:6,autoFocus:!0,className:"w-full bg-zinc-800 border border-zinc-700 rounded-lg px-3 py-2 text-sm text-zinc-300 placeholder-zinc-500 focus:outline-none focus:border-zinc-600 resize-none"}),h.jsxs("div",{className:"flex justify-end gap-2 mt-2",children:[h.jsx("button",{onClick:z,className:"px-3 py-1.5 text-sm text-zinc-400 hover:text-zinc-200 transition-colors",children:"Cancel"}),h.jsxs("button",{onClick:E,disabled:c,className:"px-3 py-1.5 text-sm bg-orange-600 text-white rounded-lg hover:bg-orange-500 disabled:opacity-50 disabled:cursor-not-allowed transition-colors flex items-center gap-2",children:[c&&h.jsx(da,{className:"w-3 h-3 animate-spin"}),"Save"]})]})]}):h.jsxs("section",{children:[h.jsxs("div",{className:"flex items-center justify-between mb-2",children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200",children:l}),g&&h.jsx("span",{className:"text-xs text-green-400",children:"Saved!"})]}),h.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:a}),s?h.jsxs("div",{onClick:k,className:"p-3 bg-zinc-800/50 border border-zinc-700 rounded-lg cursor-pointer hover:border-zinc-600 transition-colors group",children:[h.jsx("p",{className:"text-sm text-zinc-300 whitespace-pre-wrap line-clamp-4",children:s}),h.jsx("p",{className:"text-xs text-zinc-500 mt-2 group-hover:text-zinc-400",children:"Click to edit"})]}):h.jsxs("button",{onClick:k,className:"w-full p-3 border border-dashed border-zinc-700 rounded-lg text-sm text-zinc-500 hover:text-zinc-400 hover:border-zinc-600 transition-colors",children:["+ Add ",l.toLowerCase()]})]})}function sN(n){const{projectId:l}=n,{data:a,isLoading:s}=Mn(tN()),{data:o,isLoading:c}=Mn(nN(l||"")),f=iN(),m=lN(l||"");return h.jsxs("div",{className:"space-y-6",children:[h.jsx(ag,{title:"Master Prompt",description:"This prompt will be included whenever Claude starts working on any task, across all projects.",content:a?.content||null,isLoading:s,isPending:f.isPending,onSave:y=>f.mutate(y)}),h.jsx("div",{className:"border-t border-zinc-800"}),l?h.jsx(ag,{title:"Project Prompt",description:"This prompt will be included whenever Claude starts working on tasks in the current project only.",content:o?.content||null,isLoading:c,isPending:m.isPending,onSave:y=>m.mutate(y)}):h.jsxs("section",{children:[h.jsx("h3",{className:"text-sm font-medium text-zinc-200 mb-2",children:"Project Prompt"}),h.jsx("p",{className:"text-sm text-zinc-500",children:"No project selected"})]}),h.jsx("div",{className:"p-3 bg-zinc-800/50 rounded-lg",children:h.jsxs("p",{className:"text-xs text-zinc-400",children:[h.jsx("strong",{className:"text-zinc-300",children:"How prompts work:"})," When Claude claims a task, both the master prompt and project prompt (if set) will be included in the task context. This helps maintain consistent behavior and project-specific guidelines."]})})]})}function oN(n){const{projectId:l,onClose:a}=n,[s,o]=Q.useState("general");return h.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[h.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:a}),h.jsxs("div",{className:"relative w-full max-w-2xl mx-4 bg-zinc-900 border border-zinc-800 rounded-xl shadow-2xl max-h-[85vh] flex flex-col",children:[h.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-zinc-800 shrink-0",children:[h.jsx("h2",{className:"text-base font-medium text-zinc-100",children:"Settings"}),h.jsx("button",{onClick:a,className:"p-1 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition-colors",children:h.jsx(Cn,{className:"w-4 h-4"})})]}),h.jsxs("div",{className:"flex flex-1 min-h-0",children:[h.jsx("nav",{className:"w-44 shrink-0 border-r border-zinc-800 p-2",children:aN.map(c=>h.jsxs("button",{onClick:()=>o(c.id),className:`
|
|
88
88
|
w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-sm transition-colors text-left
|
|
89
89
|
${s===c.id?"bg-zinc-800 text-zinc-100":"text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800/50"}
|
|
90
|
-
`,children:[h.jsx("span",{className:s===c.id?"text-orange-400":"text-zinc-500",children:c.icon}),c.label]},c.id))}),h.jsxs("div",{className:"flex-1 p-4 overflow-y-auto min-h-[400px]",children:[s==="general"&&h.jsx(rN,{}),s==="prompts"&&h.jsx(sN,{projectId:l})]})]})]})]})}const
|
|
90
|
+
`,children:[h.jsx("span",{className:s===c.id?"text-orange-400":"text-zinc-500",children:c.icon}),c.label]},c.id))}),h.jsxs("div",{className:"flex-1 p-4 overflow-y-auto min-h-[400px]",children:[s==="general"&&h.jsx(rN,{}),s==="prompts"&&h.jsx(sN,{projectId:l})]})]})]})]})}const rg="claude-queue-help-seen";function uN(){const[n,l]=Q.useState(null),[a,s]=Q.useState(()=>!localStorage.getItem(rg)),[o,c]=Q.useState(!1),[f,m]=Q.useState(!1),[y,p]=Q.useState(!1),x=Q.useRef(null),g=vf(),{data:S=[],isLoading:k}=Mn({...bv(),refetchInterval:g}),{data:z=[]}=Mn({...no(n||""),enabled:!!n,refetchInterval:g}),E=Av(z),M=()=>{s(!1),localStorage.setItem(rg,"true")};Q.useEffect(()=>{if(S.length>0&&!n){const D=new URLSearchParams(window.location.search).get("project");D&&S.some(P=>P.id===D)?l(D):l(S[0].id)}},[S,n]);const j=ee=>{l(ee);const D=new URL(window.location.href);D.searchParams.set("project",ee),window.history.replaceState({},"",D.toString())},U=a||o||f||y,L=()=>{a&&M(),o&&c(!1),f&&m(!1),y&&p(!1),x.current?.closeModals()};Tv({onHelp:()=>{U?L():s(!0)},onAddTask:()=>{U||x.current?.openAddTask()},onAddTemplate:()=>{U||x.current?.openAddTemplate()},onCloseModal:L,onTroubleshooting:()=>{U?L():c(!0)},onStats:()=>{U?L():ne&&m(!0)}});const ne=S.find(ee=>ee.id===n)||null;return!k&&S.length===0?h.jsx("div",{className:"min-h-screen bg-zinc-950 flex items-center justify-center",children:h.jsxs("div",{className:"text-center",children:[h.jsx("h1",{className:"text-lg font-medium text-zinc-300 mb-2",children:"No projects yet"}),h.jsx("p",{className:"text-sm text-zinc-500",children:"Run the following command in a project directory to get started:"}),h.jsxs("div",{className:"mt-3 inline-flex items-center gap-2 px-3 py-2 bg-zinc-800 rounded-lg",children:[h.jsx("code",{className:"text-sm text-orange-400",children:"npx claude-queue"}),h.jsx(zn,{text:"npx claude-queue"})]})]})}):h.jsxs("div",{className:"h-screen bg-zinc-950 flex flex-col overflow-hidden",children:[E&&h.jsx("div",{className:"h-0.5 bg-gradient-to-r from-transparent via-red-500/60 to-transparent animate-pulse"}),h.jsx(xv,{position:"top-right",theme:"dark",toastOptions:{style:{background:"#18181b",border:"1px solid #27272a",color:"#fafafa"}}}),h.jsx(SS,{project:ne,projects:S,onProjectChange:j,onHelpClick:()=>s(!0),onTroubleshootClick:()=>c(!0),onStatsClick:()=>m(!0),onSettingsClick:()=>p(!0)}),n&&h.jsx(UC,{ref:x,projectId:n}),!n&&h.jsx("div",{className:"flex-1 flex items-center justify-center",children:h.jsx("div",{className:"text-sm text-zinc-500",children:"Loading..."})}),a&&h.jsx(GC,{projectId:n,onClose:M}),o&&h.jsx(WC,{project:ne,tasks:z,onClose:()=>c(!1)}),f&&ne&&h.jsx(eN,{project:ne,onClose:()=>m(!1)}),y&&h.jsx(oN,{projectId:n,onClose:()=>p(!1)})]})}sb.createRoot(document.getElementById("root")).render(h.jsx(Q.StrictMode,{children:h.jsx(_b,{client:Vb,children:h.jsx(uN,{})})}));
|