claude-queue 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +558 -0
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp/index.js +509 -0
- package/dist/mcp.js +8 -0
- package/dist/server/index.js +1306 -0
- package/dist/skills/queue/SKILL.md +157 -0
- package/dist/ui/assets/index-DJyujliA.js +89 -0
- package/dist/ui/assets/index-DtjQcVHJ.css +1 -0
- package/dist/ui/index.html +15 -0
- package/dist/ui/sounds/complete.mp3 +0 -0
- package/dist/ui/sounds/question.mp3 +0 -0
- package/dist/ui/sounds/start.mp3 +0 -0
- package/package.json +62 -0
|
@@ -0,0 +1,89 @@
|
|
|
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 eo(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var vc={exports:{}},rr={};var Up;function $1(){if(Up)return rr;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 rr.Fragment=l,rr.jsx=a,rr.jsxs=a,rr}var Bp;function P1(){return Bp||(Bp=1,vc.exports=$1()),vc.exports}var h=P1(),Sc={exports:{}},ze={};var qp;function J1(){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"),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 j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,_={};function z(T,G,v){this.props=T,this.context=G,this.refs=_,this.updater=v||j}z.prototype.isReactComponent={},z.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")},z.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function U(){}U.prototype=z.prototype;function L(T,G,v){this.props=T,this.context=G,this.refs=_,this.updater=v||j}var ne=L.prototype=new U;ne.constructor=L,E(ne,z.prototype),ne.isPureReactComponent=!0;var ee=Array.isArray;function O(){}var P={H:null,A:null,T:null,S:null},le=Object.prototype.hasOwnProperty;function ue(T,G,v){var Q=v.ref;return{$$typeof:n,type:T,key:G,ref:Q!==void 0?Q:null,props:v}}function R(T,G){return ue(T.type,G,T.props)}function Y(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function J(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(v){return G[v]})}var de=/\/+/g;function se(T,G){return typeof T=="object"&&T!==null&&T.key!=null?J(""+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(O,O):(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 D(T,G,v,Q,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,D(me(T._payload),G,v,Q,te)}}if(me)return te=te(T),me=Q===""?"."+se(T,0):Q,ee(te)?(v="",me!=null&&(v=me.replace(de,"$&/")+"/"),D(te,G,v,"",function(dt){return dt})):te!=null&&(Y(te)&&(te=R(te,v+(te.key==null||T&&T.key===te.key?"":(""+te.key).replace(de,"$&/")+"/")+me)),G.push(te)),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+=D(Q,G,v,ae,te);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+=D(Q,G,v,ae,te);else if(ae==="object"){if(typeof T.then=="function")return D(W(T),G,v,Q,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 Z(T,G,v){if(T==null)return T;var Q=[],te=0;return D(T,Q,"","",function(ae){return G.call(v,ae,te++)}),Q}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:Z,forEach:function(T,G,v){Z(T,function(){G.apply(this,arguments)},v)},count:function(T){var G=0;return Z(T,function(){G++}),G},toArray:function(T){return Z(T,function(G){return G})||[]},only:function(T){if(!Y(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=z,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 Q=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||(Q[ae]=G[ae]);var ae=arguments.length-2;if(ae===1)Q.children=v;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,te,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,G,v){var Q,te={},ae=null;if(G!=null)for(Q in G.key!==void 0&&(ae=""+G.key),G)le.call(G,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(te[Q]=G[Q]);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(Q in me=T.defaultProps,me)te[Q]===void 0&&(te[Q]=me[Q]);return ue(T,ae,te)},ze.createRef=function(){return{current:null}},ze.forwardRef=function(T){return{$$typeof:m,render:T}},ze.isValidElement=Y,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 Q=T(),te=P.S;te!==null&&te(v,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(O,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 Hp;function df(){return Hp||(Hp=1,Sc.exports=J1()),Sc.exports}var V=df();const oe=eo(V);var kc={exports:{}},sr={},wc={exports:{}},zc={};var Qp;function W1(){return Qp||(Qp=1,(function(n){function l(D,Z){var ce=D.length;D.push(Z);e:for(;0<ce;){var Se=ce-1>>>1,C=D[Se];if(0<o(C,Z))D[Se]=Z,D[ce]=C,ce=Se;else break e}}function a(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var Z=D[0],ce=D.pop();if(ce!==Z){D[0]=ce;e:for(var Se=0,C=D.length,T=C>>>1;Se<T;){var G=2*(Se+1)-1,v=D[G],Q=G+1,te=D[Q];if(0>o(v,ce))Q<C&&0>o(te,v)?(D[Se]=te,D[Q]=ce,Se=Q):(D[Se]=v,D[G]=ce,Se=G);else if(Q<C&&0>o(te,ce))D[Se]=te,D[Q]=ce,Se=Q;else break e}}return Z}function o(D,Z){var ce=D.sortIndex-Z.sortIndex;return ce!==0?ce:D.id-Z.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,j=!1,E=!1,_=!1,z=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function ne(D){for(var Z=a(p);Z!==null;){if(Z.callback===null)s(p);else if(Z.startTime<=D)s(p),Z.sortIndex=Z.expirationTime,l(y,Z);else break;Z=a(p)}}function ee(D){if(E=!1,ne(D),!j)if(a(y)!==null)j=!0,O||(O=!0,J());else{var Z=a(p);Z!==null&&W(ee,Z.startTime-D)}}var O=!1,P=-1,le=5,ue=-1;function R(){return _?!0:!(n.unstable_now()-ue<le)}function Y(){if(_=!1,O){var D=n.unstable_now();ue=D;var Z=!0;try{e:{j=!1,E&&(E=!1,U(P),P=-1),k=!0;var ce=S;try{t:{for(ne(D),g=a(y);g!==null&&!(g.expirationTime>D&&R());){var Se=g.callback;if(typeof Se=="function"){g.callback=null,S=g.priorityLevel;var C=Se(g.expirationTime<=D);if(D=n.unstable_now(),typeof C=="function"){g.callback=C,ne(D),Z=!0;break t}g===a(y)&&s(y),ne(D)}else s(y);g=a(y)}if(g!==null)Z=!0;else{var T=a(p);T!==null&&W(ee,T.startTime-D),Z=!1}}break e}finally{g=null,S=ce,k=!1}Z=void 0}}finally{Z?J():O=!1}}}var J;if(typeof L=="function")J=function(){L(Y)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,se=de.port2;de.port1.onmessage=Y,J=function(){se.postMessage(null)}}else J=function(){z(Y,0)};function W(D,Z){P=z(function(){D(n.unstable_now())},Z)}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(D){D.callback=null},n.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):le=0<D?Math.floor(1e3/D):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(D){switch(S){case 1:case 2:case 3:var Z=3;break;default:Z=S}var ce=S;S=Z;try{return D()}finally{S=ce}},n.unstable_requestPaint=function(){_=!0},n.unstable_runWithPriority=function(D,Z){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var ce=S;S=D;try{return Z()}finally{S=ce}},n.unstable_scheduleCallback=function(D,Z,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,D){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,D={id:x++,callback:Z,priorityLevel:D,startTime:ce,expirationTime:C,sortIndex:-1},ce>Se?(D.sortIndex=ce,l(p,D),a(y)===null&&D===a(p)&&(E?(U(P),P=-1):E=!0,W(ee,ce-Se))):(D.sortIndex=C,l(y,D),j||k||(j=!0,O||(O=!0,J()))),D},n.unstable_shouldYield=R,n.unstable_wrapCallback=function(D){var Z=S;return function(){var ce=S;S=Z;try{return D.apply(this,arguments)}finally{S=ce}}}})(zc)),zc}var Yp;function eb(){return Yp||(Yp=1,wc.exports=W1()),wc.exports}var jc={exports:{}},Rt={};var Fp;function tb(){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),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 Vp;function lg(){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=tb(),jc.exports}var Gp;function nb(){if(Gp)return sr;Gp=1;var n=eb(),l=df(),a=lg();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"),j=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),z=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"),O=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"),Y=Symbol.iterator;function J(e){return e===null||typeof e!="object"?null:(e=Y&&e[Y]||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 z:return"Profiler";case _:return"StrictMode";case ee:return"Suspense";case O:return"SuspenseList";case ue:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j: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:se(e.type)||"Memo";case le:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}var W=Array.isArray,D=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=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 Q=T(null),te=T(null),ae=T(null),me=T(null);function pe(e,t){switch(v(ae,t),v(te,e),v(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}}G(Q),v(Q,e)}function we(){G(Q),G(te),G(ae)}function dt(e){e.memoizedState!==null&&v(me,e);var t=Q.current,i=sp(t,e.type);t!==i&&(v(te,e),v(Q,i))}function vt(e){te.current===e&&(G(Q),G(te)),me.current===e&&(G(me),nr._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
|
+
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Xe+e+gt}var fn=!1;function jn(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 $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(F){var H=F}Reflect.construct(e,[],$)}else{try{$.call()}catch(F){H=F}e.call($.prototype)}}else{try{throw Error()}catch(F){H=F}($=e())&&typeof $.catch=="function"&&$.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
|
+
`),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 X=`
|
|
6
|
+
`+N[r].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}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 jn(e.type,!1);case 11:return jn(e.type.render,!1);case 1:return jn(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
|
+
Error generating stack: `+r.message+`
|
|
8
|
+
`+r.stack}}var Dt=Object.prototype.hasOwnProperty,hi=n.unstable_scheduleCallback,Vi=n.unstable_cancelCallback,St=n.unstable_shouldYield,Rn=n.unstable_requestPaint,kt=n.unstable_now,ga=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,wt=null,lt=null;function zt(e){if(typeof _t=="function"&&Mt(e),lt&&typeof lt.setStrictMode=="function")try{lt.setStrictMode(wt,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 xl=256,bl=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,q=e.hiddenUpdates;for(i=b&~i;0<i;){var X=31-He(i),$=1<<X;w[X]=0,N[X]=-1;var H=q[X];if(H!==null)for(q[X]=null,X=0;X<H.length;X++){var F=H[X];F!==null&&(F.lane&=-536870913)}i&=~$}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:vl(i),(i&(e.suspendedLanes|t))!==0?0:i}function vl(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 Cn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function uo(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:Ap(e.type))}function Xf(e,t){var i=Z.p;try{return Z.p=e,t()}finally{Z.p=i}}var pi=Math.random().toString(36).slice(2),jt="__reactFiber$"+pi,Gt="__reactProps$"+pi,Sl="__reactContainer$"+pi,co="__reactEvents$"+pi,qy="__reactListeners$"+pi,Hy="__reactHandles$"+pi,If="__reactResources$"+pi,ya="__reactMarker$"+pi;function fo(e){delete e[jt],delete e[Gt],delete e[co],delete e[qy],delete e[Hy]}function kl(e){var t=e[jt];if(t)return t;for(var i=e.parentNode;i;){if(t=i[Sl]||i[jt]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=mp(e);e!==null;){if(i=e[jt])return i;e=mp(e)}return t}e=i,i=e.parentNode}return null}function wl(e){if(e=e[jt]||e[Sl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function xa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function zl(e){var t=e[If];return t||(t=e[If]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xt(e){e[ya]=!0}var Kf=new Set,Zf={};function Ii(e,t){jl(e,t),jl(e+"Capture",t)}function jl(e,t){for(Zf[e]=t,e=0;e<t.length;e++)Kf.add(t[e])}var Qy=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 Yy(e){return Dt.call(Pf,e)?!0:Dt.call($f,e)?!1:Qy.test(e)?Pf[e]=!0:($f[e]=!0,!1)}function jr(e,t,i){if(Yy(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 Cr(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 Fy(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=Fy(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 Nr(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 Vy=/[\n"\\]/g;function hn(e){return e.replace(Vy,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"&&Nr(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Cl(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 Nl(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Gy=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||Gy.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 Xy=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"]]),Iy=/^[\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 Tr(e){return Iy.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 Tl=null,El=null;function ad(e){var t=wl(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&&Cl(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,(Tl!==null||El!==null)&&(ps(),Tl&&(t=Tl,e=El,El=Tl=null,ad(t),e)))for(t=0;t<e.length;t++)ad(e[t])}}function ba(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 va={};Object.defineProperty(va,"passive",{get:function(){vo=!0}}),window.addEventListener("test",va,va),window.removeEventListener("test",va,va)}catch{vo=!1}var gi=null,So=null,Er=null;function sd(){if(Er)return Er;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 Er=u.slice(e,1<r?1-r:void 0)}function Ar(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 Dr(){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)?Dr: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=Dr)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Dr)},persist:function(){},isPersistent:Dr}),t}var Ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_r=Xt(Ki),Sa=g({},Ki,{view:0,detail:0}),Ky=Xt(Sa),ko,wo,ka,Mr=g({},Sa,{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!==ka&&(ka&&e.type==="mousemove"?(ko=e.screenX-ka.screenX,wo=e.screenY-ka.screenY):wo=ko=0,ka=e),ko)},movementY:function(e){return"movementY"in e?e.movementY:wo}}),ud=Xt(Mr),Zy=g({},Mr,{dataTransfer:0}),$y=Xt(Zy),Py=g({},Sa,{relatedTarget:0}),zo=Xt(Py),Jy=g({},Ki,{animationName:0,elapsedTime:0,pseudoElement:0}),Wy=Xt(Jy),ex=g({},Ki,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),tx=Xt(ex),nx=g({},Ki,{data:0}),cd=Xt(nx),ix={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lx={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"},ax={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ax[e])?!!t[e]:!1}function jo(){return rx}var sx=g({},Sa,{key:function(e){if(e.key){var t=ix[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ar(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?lx[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"?Ar(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ar(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ox=Xt(sx),ux=g({},Mr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fd=Xt(ux),cx=g({},Sa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jo}),fx=Xt(cx),dx=g({},Ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),hx=Xt(dx),mx=g({},Mr,{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}),px=Xt(mx),gx=g({},Ki,{newState:0,oldState:0}),yx=Xt(gx),xx=[9,13,27,32],Co=$n&&"CompositionEvent"in window,wa=null;$n&&"documentMode"in document&&(wa=document.documentMode);var bx=$n&&"TextEvent"in window&&!wa,dd=$n&&(!Co||wa&&8<wa&&11>=wa),hd=" ",md=!1;function pd(e,t){switch(e){case"keyup":return xx.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 Al=!1;function vx(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 Sx(e,t){if(Al)return e==="compositionend"||!Co&&pd(e,t)?(e=sd(),Er=So=gi=null,Al=!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 kx={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"?!!kx[e.type]:t==="textarea"}function xd(e,t,i,r){Tl?El?El.push(r):El=[r]:Tl=r,t=ks(t,"onChange"),0<t.length&&(i=new _r("onChange","change",null,i,r),e.push({event:i,listeners:t}))}var za=null,ja=null;function wx(e){ep(e,0)}function Or(e){var t=xa(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(){za&&(za.detachEvent("onpropertychange",wd),ja=za=null)}function wd(e){if(e.propertyName==="value"&&Or(ja)){var t=[];xd(t,ja,e,xo(e)),rd(wx,t)}}function zx(e,t,i){e==="focusin"?(kd(),za=t,ja=i,za.attachEvent("onpropertychange",wd)):e==="focusout"&&kd()}function jx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Or(ja)}function Cx(e,t){if(e==="click")return Or(t)}function Nx(e,t){if(e==="input"||e==="change")return Or(t)}function Tx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:Tx;function Ca(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=Nr(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=Nr(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 Ex=$n&&"documentMode"in document&&11>=document.documentMode,Dl=null,Ao=null,Na=null,Do=!1;function Td(e,t,i){var r=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Do||Dl==null||Dl!==Nr(r)||(r=Dl,"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}),Na&&Ca(Na,r)||(Na=r,r=ks(Ao,"onSelect"),0<r.length&&(t=new _r("onSelect","select",null,t,i),e.push({event:t,listeners:r}),t.target=Dl)))}function Zi(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var _l={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 _l.animationend.animation,delete _l.animationiteration.animation,delete _l.animationstart.animation),"TransitionEvent"in window||delete _l.transitionend.transition);function $i(e){if(_o[e])return _o[e];if(!_l[e])return e;var t=_l[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"),Ax=$i("transitionrun"),Dx=$i("transitionstart"),_x=$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 Nn(e,t){Od.set(e,t),Ii(t,[e])}var Rr=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=[],Ml=0,Oo=0;function Lr(){for(var e=Ml,t=Oo=Ml=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 Ur(e,t,i,r){mn[Ml++]=e,mn[Ml++]=t,mn[Ml++]=i,mn[Ml++]=r,Oo|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ro(e,t,i,r){return Ur(e,t,i,r),Br(e)}function Pi(e,t){return Ur(e,null,null,t),Br(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 Br(e){if(50<Za)throw Za=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 Ol={};function Mx(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 Mx(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 qr(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=B1(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 _:b=8,u|=24;break;case z:return e=nn(12,i,t,u|2),e.elementType=z,e.lanes=d,e;case ee:return e=nn(13,i,t,u),e.elementType=ee,e.lanes=d,e;case O:return e=nn(19,i,t,u),e.elementType=O,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 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 Rl=[],Ll=0,Hr=null,Ta=0,gn=[],yn=0,yi=null,qn=1,Hn="";function Jn(e,t){Rl[Ll++]=Ta,Rl[Ll++]=Hr,Hr=e,Ta=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===Hr;)Hr=Rl[--Ll],Rl[Ll]=null,Ta=Rl[--Ll],Rl[Ll]=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 Ct=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 Ea(pn(t,e)),Qo}function Qd(e){var t=e.stateNode,i=e.type,r=e.memoizedProps;switch(t[jt]=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<Pa.length;i++)De(Pa[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(Ct=e.return;Ct;)switch(Ct.tag){case 5:case 31:case 13:xn=!1;return;case 27:case 3:xn=!0;return;default:Ct=Ct.return}}function Ul(e){if(e!==Ct)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=Ct?vn(e.stateNode.nextSibling):null;return!0}function Wi(){$e=Ct=null,Re=!1}function Yo(){var e=xi;return e!==null&&($t===null?$t=e:$t.push.apply($t,e),xi=null),e}function Ea(e){xi===null?xi=[e]:xi.push(e)}var Fo=T(null),el=null,Wn=null;function vi(e,t,i){v(Fo,t._currentValue),t._currentValue=i}function ei(e){e._currentValue=Fo.current,G(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 Bl(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(nr):e=[nr])}u=u.return}e!==null&&Go(t,e,i,r),t.flags|=262144}function Qr(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 Nt(e){return Fd(el,e)}function Yr(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 Ox=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()})}},Rx=n.unstable_scheduleCallback,Lx=n.unstable_NormalPriority,st={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xo(){return{controller:new Ox,data:new Map,refCount:0}}function Aa(e){e.refCount--,e.refCount===0&&Rx(Lx,function(){e.controller.abort()})}var Da=null,Io=0,ql=0,Hl=null;function Ux(e,t){if(Da===null){var i=Da=[];Io=0,ql=$u(),Hl={status:"pending",value:void 0,then:function(r){i.push(r)}}}return Io++,t.then(Vd,Vd),t}function Vd(){if(--Io===0&&Da!==null){Hl!==null&&(Hl.status="fulfilled");var e=Da;Da=null,ql=0,Hl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Bx(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=D.S;D.S=function(e,t){Tm=kt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ux(e,t),Gd!==null&&Gd(e,t)};var nl=T(null);function Ko(){var e=nl.current;return e!==null?e:Ie.pooledCache}function Fr(e,t){t===null?v(nl,nl.current):v(nl,t.pool)}function Xd(){var e=Ko();return e===null?null:{parent:st._currentValue,pool:e}}var Ql=Error(s(460)),Zo=Error(s(474)),Vr=Error(s(542)),Gr={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,Ql}}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,Ql):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===Ql||e===Vr)throw Error(s(483))}var Yl=null,_a=0;function Xr(e){var t=_a;return _a+=1,Yl===null&&(Yl=[]),Kd(Yl,e,t)}function Ma(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ir(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 Pd(e){function t(M,A){if(e){var B=M.deletions;B===null?(M.deletions=[A],M.flags|=16):B.push(A)}}function i(M,A){if(!e)return null;for(;A!==null;)t(M,A),A=A.sibling;return null}function r(M){for(var A=new Map;M!==null;)M.key!==null?A.set(M.key,M):A.set(M.index,M),M=M.sibling;return A}function u(M,A){return M=Pn(M,A),M.index=0,M.sibling=null,M}function d(M,A,B){return M.index=B,e?(B=M.alternate,B!==null?(B=B.index,B<A?(M.flags|=67108866,A):B):(M.flags|=67108866,A)):(M.flags|=1048576,A)}function b(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function w(M,A,B,K){return A===null||A.tag!==6?(A=Uo(B,M.mode,K),A.return=M,A):(A=u(A,B),A.return=M,A)}function N(M,A,B,K){var ge=B.type;return ge===E?X(M,A,B.props.children,K,B.key):A!==null&&(A.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===le&&il(ge)===A.type)?(A=u(A,B.props),Ma(A,B),A.return=M,A):(A=qr(B.type,B.key,B.props,null,M.mode,K),Ma(A,B),A.return=M,A)}function q(M,A,B,K){return A===null||A.tag!==4||A.stateNode.containerInfo!==B.containerInfo||A.stateNode.implementation!==B.implementation?(A=Bo(B,M.mode,K),A.return=M,A):(A=u(A,B.children||[]),A.return=M,A)}function X(M,A,B,K,ge){return A===null||A.tag!==7?(A=Ji(B,M.mode,K,ge),A.return=M,A):(A=u(A,B),A.return=M,A)}function $(M,A,B){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Uo(""+A,M.mode,B),A.return=M,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case k:return B=qr(A.type,A.key,A.props,null,M.mode,B),Ma(B,A),B.return=M,B;case j:return A=Bo(A,M.mode,B),A.return=M,A;case le:return A=il(A),$(M,A,B)}if(W(A)||J(A))return A=Ji(A,M.mode,B,null),A.return=M,A;if(typeof A.then=="function")return $(M,Xr(A),B);if(A.$$typeof===L)return $(M,Yr(M,A),B);Ir(M,A)}return null}function H(M,A,B,K){var ge=A!==null?A.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return ge!==null?null:w(M,A,""+B,K);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case k:return B.key===ge?N(M,A,B,K):null;case j:return B.key===ge?q(M,A,B,K):null;case le:return B=il(B),H(M,A,B,K)}if(W(B)||J(B))return ge!==null?null:X(M,A,B,K,null);if(typeof B.then=="function")return H(M,A,Xr(B),K);if(B.$$typeof===L)return H(M,A,Yr(M,B),K);Ir(M,B)}return null}function F(M,A,B,K,ge){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return M=M.get(B)||null,w(A,M,""+K,ge);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case k:return M=M.get(K.key===null?B:K.key)||null,N(A,M,K,ge);case j:return M=M.get(K.key===null?B:K.key)||null,q(A,M,K,ge);case le:return K=il(K),F(M,A,B,K,ge)}if(W(K)||J(K))return M=M.get(B)||null,X(A,M,K,ge,null);if(typeof K.then=="function")return F(M,A,B,Xr(K),ge);if(K.$$typeof===L)return F(M,A,B,Yr(A,K),ge);Ir(A,K)}return null}function fe(M,A,B,K){for(var ge=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(M,he,B[Ne],K);if(Be===null){he===null&&(he=Oe);break}e&&he&&Be.alternate===null&&t(M,he),A=d(Be,A,Ne),Ue===null?ge=Be:Ue.sibling=Be,Ue=Be,he=Oe}if(Ne===B.length)return i(M,he),Re&&Jn(M,Ne),ge;if(he===null){for(;Ne<B.length;Ne++)he=$(M,B[Ne],K),he!==null&&(A=d(he,A,Ne),Ue===null?ge=he:Ue.sibling=he,Ue=he);return Re&&Jn(M,Ne),ge}for(he=r(he);Ne<B.length;Ne++)Oe=F(he,M,Ne,B[Ne],K),Oe!==null&&(e&&Oe.alternate!==null&&he.delete(Oe.key===null?Ne:Oe.key),A=d(Oe,A,Ne),Ue===null?ge=Oe:Ue.sibling=Oe,Ue=Oe);return e&&he.forEach(function(Bi){return t(M,Bi)}),Re&&Jn(M,Ne),ge}function ve(M,A,B,K){if(B==null)throw Error(s(151));for(var ge=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 Bi=H(M,he,Be.value,K);if(Bi===null){he===null&&(he=Oe);break}e&&he&&Bi.alternate===null&&t(M,he),A=d(Bi,A,Ne),Ue===null?ge=Bi:Ue.sibling=Bi,Ue=Bi,he=Oe}if(Be.done)return i(M,he),Re&&Jn(M,Ne),ge;if(he===null){for(;!Be.done;Ne++,Be=B.next())Be=$(M,Be.value,K),Be!==null&&(A=d(Be,A,Ne),Ue===null?ge=Be:Ue.sibling=Be,Ue=Be);return Re&&Jn(M,Ne),ge}for(he=r(he);!Be.done;Ne++,Be=B.next())Be=F(he,M,Ne,Be.value,K),Be!==null&&(e&&Be.alternate!==null&&he.delete(Be.key===null?Ne:Be.key),A=d(Be,A,Ne),Ue===null?ge=Be:Ue.sibling=Be,Ue=Be);return e&&he.forEach(function(Z1){return t(M,Z1)}),Re&&Jn(M,Ne),ge}function Ge(M,A,B,K){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 ge=B.key;A!==null;){if(A.key===ge){if(ge=B.type,ge===E){if(A.tag===7){i(M,A.sibling),K=u(A,B.props.children),K.return=M,M=K;break e}}else if(A.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===le&&il(ge)===A.type){i(M,A.sibling),K=u(A,B.props),Ma(K,B),K.return=M,M=K;break e}i(M,A);break}else t(M,A);A=A.sibling}B.type===E?(K=Ji(B.props.children,M.mode,K,B.key),K.return=M,M=K):(K=qr(B.type,B.key,B.props,null,M.mode,K),Ma(K,B),K.return=M,M=K)}return b(M);case j:e:{for(ge=B.key;A!==null;){if(A.key===ge)if(A.tag===4&&A.stateNode.containerInfo===B.containerInfo&&A.stateNode.implementation===B.implementation){i(M,A.sibling),K=u(A,B.children||[]),K.return=M,M=K;break e}else{i(M,A);break}else t(M,A);A=A.sibling}K=Bo(B,M.mode,K),K.return=M,M=K}return b(M);case le:return B=il(B),Ge(M,A,B,K)}if(W(B))return fe(M,A,B,K);if(J(B)){if(ge=J(B),typeof ge!="function")throw Error(s(150));return B=ge.call(B),ve(M,A,B,K)}if(typeof B.then=="function")return Ge(M,A,Xr(B),K);if(B.$$typeof===L)return Ge(M,A,Yr(M,B),K);Ir(M,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,A!==null&&A.tag===6?(i(M,A.sibling),K=u(A,B),K.return=M,M=K):(i(M,A),K=Uo(B,M.mode,K),K.return=M,M=K),b(M)):i(M,A)}return function(M,A,B,K){try{_a=0;var ge=Ge(M,A,B,K);return Yl=null,ge}catch(he){if(he===Ql||he===Vr)throw he;var Ue=nn(29,he,null,M.mode);return Ue.lanes=K,Ue.return=M,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=Br(e),Rd(e,null,i),t}return Ur(e,r,t,i),Br(e)}function Oa(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 Ra(){if(Wo){var e=Hl;if(e!==null)throw e}}function La(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,q=N.next;N.next=null,b===null?d=q:b.next=q,b=N;var X=e.alternate;X!==null&&(X=X.updateQueue,w=X.lastBaseUpdate,w!==b&&(w===null?X.firstBaseUpdate=q:w.next=q,X.lastBaseUpdate=N))}if(d!==null){var $=u.baseState;b=0,X=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===ql&&(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"){$=fe.call(Ge,$,H);break e}$=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=ve.payload,H=typeof fe=="function"?fe.call(Ge,$,H):fe,H==null)break e;$=g({},$,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?(q=X=F,N=$):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=$),u.baseState=N,u.firstBaseUpdate=q,u.lastBaseUpdate=X,d===null&&(u.shared.lanes=0),Ti|=b,e.lanes=b,e.memoizedState=$}}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 Fl=T(null),Kr=T(0);function th(e,t){e=ui,v(Kr,e),v(Fl,t),ui=e|t.baseLanes}function eu(){v(Kr,ui),v(Fl,Fl.current)}function tu(){ui=Kr.current,G(Fl),G(Kr)}var ln=T(null),bn=null;function zi(e){var t=e.alternate;v(at,at.current&1),v(ln,e),bn===null&&(t===null||Fl.current!==null||t.memoizedState!==null)&&(bn=e)}function nu(e){v(at,at.current),v(ln,e),bn===null&&(bn=e)}function nh(e){e.tag===22?(v(at,at.current),v(ln,e),bn===null&&(bn=e)):ji()}function ji(){v(at,at.current),v(ln,ln.current)}function an(e){G(ln),bn===e&&(bn=null),G(at)}var at=T(0);function Zr(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,$r=!1,Vl=!1,rl=!1,Pr=0,Ua=0,Gl=null,qx=0;function tt(){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,D.H=e===null||e.memoizedState===null?qh:bu,rl=!1,d=i(r,u),rl=!1,Vl&&(d=lh(t,i,r,u)),ih(e),d}function ih(e){D.H=Ha;var t=Fe!==null&&Fe.next!==null;if(ti=0,ot=Fe=je=null,$r=!1,Ua=0,Gl=null,t)throw Error(s(300));e===null||ut||(e=e.dependencies,e!==null&&Qr(e)&&(ut=!0))}function lh(e,t,i,r){je=e;var u=0;do{if(Vl&&(Gl=null),Ua=0,Vl=!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)}D.H=Hh,d=t(i,r)}while(Vl);return d}function Hx(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Ba(t):t,e=e.useState()[0],(Fe!==null?Fe.memoizedState:null)!==e&&(je.flags|=1024),t}function au(){var e=Pr!==0;return Pr=0,e}function ru(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function su(e){if($r){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}$r=!1}ti=0,ot=Fe=je=null,Vl=!1,Ua=Pr=0,Gl=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 Jr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ba(e){var t=Ua;return Ua+=1,Gl===null&&(Gl=[]),e=Kd(Gl,e,t),t=je,(ot===null?t.memoizedState:ot.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?qh:bu),e}function Wr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ba(e);if(e.$$typeof===L)return Nt(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=Jr(),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 es(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,q=t,X=!1;do{var $=q.lane&-536870913;if($!==q.lane?(Me&$)===$:(ti&$)===$){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}),$===ql&&(X=!0);else if((ti&H)===H){q=q.next,H===ql&&(X=!0);continue}else $={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},N===null?(w=N=$,b=d):N=N.next=$,je.lanes|=H,Ti|=H;$=q.action,rl&&i(d,$),d=q.hasEagerState?q.eagerState:i(d,$)}else H={lane:$,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|=$,Ti|=$;q=q.next}while(q!==null&&q!==t);if(N===null?b=d:N.next=w,!tn(d,e.memoizedState)&&(ut=!0,X&&(i=Hl,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,Xl(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=Jr(),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){zt(!0);try{i()}finally{zt(!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 Qx(e,t,i,r,u){if(is(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)}};D.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=D.T,b={};D.T=b;try{var w=i(u,r),N=D.S;N!==null&&N(b,w),hh(e,t,w)}catch(q){du(e,t,q)}finally{d!==null&&b.types!==null&&(d.types=b.types),D.T=d}}else try{d=i(u,r),hh(e,t,d)}catch(q){du(e,t,q)}}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=Qx.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=es(ni)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Ba(t)}catch(b){throw b===Ql?Vr:b}else r=t;t=rt();var u=t.queue,d=u.dispatch;return i!==t.memoizedState&&(je.flags|=2048,Xl(9,{destroy:void 0},Yx.bind(null,u,i),null)),[r,d,e]}function Yx(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 Xl(e,t,i,r){return e={tag:e,create:i,deps:r,inst:t,next:null},t=je.updateQueue,t===null&&(t=Jr(),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 ts(e,t,i,r){var u=qt();je.flags|=e,u.memoizedState=Xl(1|t,{destroy:void 0},i,r===void 0?null:r)}function ns(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=Xl(t,d,i,r):(je.flags|=e,u.memoizedState=Xl(1|t,d,i,r))}function kh(e,t){ts(8390656,8,e,t)}function hu(e,t){ns(2048,8,e,t)}function Fx(e){je.flags|=4;var t=je.updateQueue;if(t===null)t=Jr(),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 Fx({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 ns(4,2,e,t)}function jh(e,t){return ns(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,ns(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){zt(!0);try{e()}finally{zt(!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:Fl.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=Z.p;Z.p=d!==0&&8>d?d:8;var b=D.T,w={};D.T=w,xu(e,!1,t,i);try{var N=u(),q=D.S;if(q!==null&&q(w,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var X=Bx(N,r);qa(e,t,X,on(e))}else qa(e,t,r,on(e))}catch($){qa(e,t,{then:function(){},status:"rejected",reason:$},on())}finally{Z.p=d,b!==null&&w.types!==null&&(b.types=w.types),D.T=b}}function Vx(){}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?Vx: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),qa(e,t.next.queue,{},on())}function yu(){return Nt(nr)}function Oh(){return rt().memoizedState}function Rh(){return rt().memoizedState}function Gx(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),Oa(r,t,i)),t={cache:Xo()},e.payload=t;return}t=t.return}}function Xx(e,t,i){var r=on();i={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},is(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();qa(e,t,i,r)}function qa(e,t,i,r){var u={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(is(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 Ur(e,t,u,0),Ie===null&&Lr(),!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},is(e)){if(t)throw Error(s(479))}else t=Ro(e,i,r,2),t!==null&&Pt(t,e,2)}function is(e){var t=e.alternate;return e===je||t!==null&&t===je}function Uh(e,t){Vl=$r=!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 Ha={readContext:Nt,use:Wr,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt};Ha.useEffectEvent=tt;var qh={readContext:Nt,use:Wr,useCallback:function(e,t){return qt().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:kh,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,ts(4194308,4,Ch.bind(null,t,e),i)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var i=qt();t=t===void 0?null:t;var r=e();if(rl){zt(!0);try{e()}finally{zt(!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){zt(!0);try{i(t)}finally{zt(!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=Xx.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,Xl(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=Pr++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=qx++,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=Gx.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:Nt,use:Wr,useCallback:Th,useContext:Nt,useEffect:hu,useImperativeHandle:Nh,useInsertionEffect:zh,useLayoutEffect:jh,useMemo:Eh,useReducer:es,useRef:Sh,useState:function(){return es(ni)},useDebugValue:mu,useDeferredValue:function(e,t){var i=rt();return Ah(i,Fe.memoizedState,e,t)},useTransition:function(){var e=es(ni)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:Ba(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:Nt,use:Wr,useCallback:Th,useContext:Nt,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:Ba(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),Oa(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),Oa(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),Oa(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?!Ca(i,r)||!Ca(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){Rr(e)}function Vh(e){console.error(e)}function Gh(e){Rr(e)}function ls(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(){ls(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 Ix(e,t,i,r,u){if(i.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=i.alternate,t!==null&&Bl(t,i,u,!0),i=ln.current,i!==null){switch(i.tag){case 31:case 13:return bn===null?gs():i.alternate===null&&nt===0&&(nt=3),i.flags&=-257,i.flags|=65536,i.lanes=u,r===Gr?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===Gr?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),gs(),!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}),Ea(pn(e,i)))):(r!==Qo&&(t=Error(s(423),{cause:r}),Ea(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),nt!==4&&(nt=2)),!1;var d=Error(s(520),{cause:r});if(d=pn(d,i),Ka===null?Ka=[d]:Ka.push(d),nt!==4&&(nt=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 Tt(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,Tt(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=qr(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:Ca,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(Ca(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&&Fr(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?(Fr(t,d.cachePool),th(t,d),ji(),t.memoizedState=null):(e!==null&&Fr(t,null),eu(),ji());return Tt(e,t,u,i),t.child}function Qa(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&&Fr(t,null),eu(),nh(t),e!==null&&Bl(e,t,r,!0),t.childLanes=u,null}function as(e,t){return t=ss({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=as(t,t.pendingProps),e.flags|=2,an(t),t.memoizedState=null,e}function Kx(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=as(t,r),t.lanes=536870912,Qa(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,Ct=t,$e=null)):e=null,e===null)throw bi(t);return t.lanes=536870912,null}return as(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||Bl(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;gs(),t=em(e,t,i)}else e=d.treeContext,$e=vn(b.nextSibling),Ct=t,Re=!0,xi=null,xn=!1,e!==null&&Hd(t,e),t=as(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 rs(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,Tt(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,Tt(e,t,i,d),t.child)}function nm(e,t,i,r,u){if(tl(t),t.stateNode===null){var d=Ol,b=i.contextType;typeof b=="object"&&b!==null&&(d=Nt(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?Nt(b):Ol,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),La(t,r,d,u),Ra(),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,X=i.contextType;b=Ol,typeof X=="object"&&X!==null&&(b=Nt(X));var $=i.getDerivedStateFromProps;X=typeof $=="function"||typeof d.getSnapshotBeforeUpdate=="function",w=t.pendingProps!==w,X||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(w||q!==b)&&Yh(t,d,r,b),Si=!1;var H=t.memoizedState;d.state=H,La(t,r,d,u),Ra(),q=t.memoizedState,w||H!==q||Si?(typeof $=="function"&&(vu(t,i,$,r),q=t.memoizedState),(N=Si||Qh(t,i,N,r,H,q,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=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,Po(e,t),b=t.memoizedProps,X=sl(i,b),d.props=X,$=t.pendingProps,H=d.context,q=i.contextType,N=Ol,typeof q=="object"&&q!==null&&(N=Nt(q)),w=i.getDerivedStateFromProps,(q=typeof w=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b!==$||H!==N)&&Yh(t,d,r,N),Si=!1,H=t.memoizedState,d.state=H,La(t,r,d,u),Ra();var F=t.memoizedState;b!==$||H!==F||Si||e!==null&&e.dependencies!==null&&Qr(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&&Qr(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=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,rs(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)):Tt(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,Tt(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,Ct=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=ss({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,Qa(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=ss({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=Qa(null,r));else if(zi(t),uc(w)){if(b=w.nextSibling&&w.nextSibling.dataset,b)var q=b.dgst;b=q,r=Error(s(419)),r.stack="",r.digest=b,Ea({value:r,source:null,stack:null}),t=Eu(e,t,i)}else if(ut||Bl(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)||gs(),t=Eu(e,t,i)}else oc(w)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,$e=vn(w.nextSibling),Ct=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,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,Qa(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,Qa(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=ss({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ss(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,v(at,b),Tt(e,t,r,i),r=Re?Ta: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&&Zr(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&&Zr(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(Bl(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&&Qr(e)))}function Zx(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||(Bl(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),v(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,Zx(e,t,i);ut=(e.flags&131072)!==0}else ut=!1,Re&&(t.flags&1048576)!==0&&qd(t,Ta,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===ne){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),La(t,r,null,i);var b=t.memoizedState;if(r=b.cache,vi(t,st,r),r!==d.cache&&Go(t,[st],i,!0),Ra(),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),Ea(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),Ct=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}Tt(e,t,r,i)}t=t.child}return t;case 26:return rs(e,t),e===null?(i=xp(t.type,null,t.pendingProps,null))?t.memoizedState=i:Re||(i=t.type,e=t.pendingProps,r=ws(ae.current).createElement(i),r[jt]=t,r[Gt]=e,Et(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),Ct=t,xn=!0,u=$e,Mi(t.type)?(cc=u,$e=vn(r.firstChild)):$e=u),Tt(e,t,t.pendingProps.children,i),rs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((u=r=$e)&&(r=j1(r,t.type,t.pendingProps,xn),r!==null?(t.stateNode=r,Ct=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,Hx,null,null,i),nr._currentValue=u),rs(e,t),Tt(e,t,r,i),t.child;case 6:return e===null&&Re&&((e=i=$e)&&(i=C1(i,t.pendingProps,xn),i!==null?(t.stateNode=i,Ct=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):Tt(e,t,r,i),t.child;case 11:return Zh(e,t,t.type,t.pendingProps,i);case 7:return Tt(e,t,t.pendingProps,i),t.child;case 8:return Tt(e,t,t.pendingProps.children,i),t.child;case 12:return Tt(e,t,t.pendingProps.children,i),t.child;case 10:return r=t.pendingProps,vi(t,t.type,r.value),Tt(e,t,r.children,i),t.child;case 9:return u=t.type._context,r=t.pendingProps.children,tl(t),u=Nt(u),r=r(u),t.flags|=1,Tt(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 Kx(e,t,i);case 22:return Jh(e,t,i,t.pendingProps);case 24:return tl(t),r=Nt(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),La(t,null,null,i),Ra()),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))),Tt(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=Gr,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=Gr,Zo}function os(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ot():536870912,e.lanes|=t,$l|=t)}function Ya(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 $x(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)&&(Ul(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(vt(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,Ul(t)?Qd(t):(e=pp(u,r,i),t.stateNode=e,li(t))}return Pe(t),null;case 5:if(vt(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,Ul(t))Qd(t);else{var b=ws(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[jt]=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(Et(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,Ul(t)){if(e=t.stateNode,i=t.memoizedProps,r=null,u=Ct,u!==null)switch(u.tag){case 27:case 5:r=u.memoizedProps}e[jt]=t,e=!!(e.nodeValue===i||r!==null&&r.suppressHydrationWarning===!0||lp(e.nodeValue,i)),e||bi(t,!0)}else e=ws(e).createTextNode(r),e[jt]=t,t.stateNode=e}return Pe(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ul(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[jt]=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=Ul(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[jt]=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),os(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(G(at),r=t.memoizedState,r===null)return Pe(t),null;if(u=(t.flags&128)!==0,d=r.rendering,d===null)if(u)Ya(r,!1);else{if(nt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Zr(e),d!==null){for(t.flags|=128,Ya(r,!1),e=d.updateQueue,t.updateQueue=e,os(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)Ld(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&&kt()>hs&&(t.flags|=128,u=!0,Ya(r,!1),t.lanes=4194304)}else{if(!u)if(e=Zr(d),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,os(t,e),Ya(r,!0),r.tail===null&&r.tailMode==="hidden"&&!d.alternate&&!Re)return Pe(t),null}else 2*kt()-r.renderingStartTime>hs&&i!==536870912&&(t.flags|=128,u=!0,Ya(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=kt(),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),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&&os(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 Px(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 vt(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),tu(),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 um(e,t){switch(Ho(t),t.tag){case 3:ei(st),we();break;case 26:case 27:case 5:vt(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),tu(),e!==null&&G(nl);break;case 24:ei(st)}}function Fa(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,q=w;try{q()}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 Va(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;b1(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 us(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(us(e,t,i),e=e.sibling;e!==null;)us(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]);Et(t,r,i),t[jt]=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 Jx(e,t){if(e=e.containerInfo,ic=As,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,q=0,X=0,$=e,H=null;t:for(;;){for(var F;$!==i||u!==0&&$.nodeType!==3||(w=b+u),$!==d||r!==0&&$.nodeType!==3||(N=b+r),$.nodeType===3&&(b+=$.nodeValue.length),(F=$.firstChild)!==null;)H=$,$=F;for(;;){if($===e)break t;if(H===i&&++q===u&&(w=b),H===d&&++X===r&&(N=b),(F=$.nextSibling)!==null)break;$=H,H=$.parentNode}$=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},As=!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&&Fa(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&&Va(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&&Va(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=s1.bind(null,i),N1(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(wt,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),Wa(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),la(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{la(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{la(e)}catch(i){Ye(t,t.return,i)}}function Wx(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 cs(e,t){var i=Wx(e);t.forEach(function(r){if(!i.has(r)){i.add(r);var u=o1.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 Tn=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),Fa(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=Tn;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[ya]||d[jt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(r),u.head.insertBefore(d,u.querySelector("head > title"))),Et(d,r,i),d[jt]=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),Et(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),Et(d,r,i),u.head.appendChild(d);break;default:throw Error(s(468,r))}d[jt]=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{Nl(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(Cs=null,u=Tn,Tn=zs(t.containerInfo),Kt(t,e),Tn=u,Zt(e),r&4&&i!==null&&i.memoizedState.isDehydrated)try{la(t.containerInfo)}catch(fe){Ye(e,e.return,fe)}Lu&&(Lu=!1,km(e));break;case 4:r=Tn,Tn=zs(e.stateNode.containerInfo),Kt(t,e),Zt(e),Tn=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,cs(e,r)));break;case 13:Kt(t,e),Zt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(ds=kt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cs(e,r)));break;case 22:u=e.memoizedState!==null;var N=i!==null&&i.memoizedState!==null,q=ai,X=ct;if(ai=q||u,ct=X||N,Kt(t,e),ct=X,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 $=N.memoizedProps.style,H=$!=null&&$.hasOwnProperty("display")?$.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,cs(e,i))));break;case 19:Kt(t,e),Zt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cs(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);us(e,d,u);break;case 5:var b=i.stateNode;i.flags&32&&(Nl(b,""),i.flags&=-33);var w=Ou(e);us(e,w,b);break;case 3:case 4:var N=i.stateNode.containerInfo,q=Ou(e);Ru(e,q,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:Wa(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),Fa(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++)Wd(N[u],w)}catch(q){Ye(r,r.return,q)}}i&&b&64&&cm(d),Va(d,d.return);break;case 27:mm(d);case 26:case 5:oi(u,d,i),i&&r===null&&b&4&&dm(d),Va(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),Va(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&&Aa(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&&Aa(e))}function En(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:En(e,t,i,r),u&2048&&Fa(9,t);break;case 1:En(e,t,i,r);break;case 3:En(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&&Aa(e)));break;case 12:if(u&2048){En(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 En(e,t,i,r);break;case 31:En(e,t,i,r);break;case 13:En(e,t,i,r);break;case 23:break;case 22:d=t.stateNode,b=t.alternate,t.memoizedState!==null?d._visibility&2?En(e,t,i,r):Ga(e,t):d._visibility&2?En(e,t,i,r):(d._visibility|=2,Il(e,t,i,r,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Uu(b,t);break;case 24:En(e,t,i,r),u&2048&&Bu(t.alternate,t);break;default:En(e,t,i,r)}}function Il(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:Il(d,b,w,N,u),Fa(8,b);break;case 23:break;case 22:var X=b.stateNode;b.memoizedState!==null?X._visibility&2?Il(d,b,w,N,u):Ga(d,b):(X._visibility|=2,Il(d,b,w,N,u)),u&&q&2048&&Uu(b.alternate,b);break;case 24:Il(d,b,w,N,u),u&&q&2048&&Bu(b.alternate,b);break;default:Il(d,b,w,N,u)}t=t.sibling}}function Ga(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:Ga(i,r),u&2048&&Uu(r.alternate,r);break;case 24:Ga(i,r),u&2048&&Bu(r.alternate,r);break;default:Ga(i,r)}t=t.sibling}}var Xa=8192;function Kl(e,t,i){if(e.subtreeFlags&Xa)for(e=e.child;e!==null;)zm(e,t,i),e=e.sibling}function zm(e,t,i){switch(e.tag){case 26:Kl(e,t,i),e.flags&Xa&&e.memoizedState!==null&&q1(i,Tn,e.memoizedState,e.memoizedProps);break;case 5:Kl(e,t,i);break;case 3:case 4:var r=Tn;Tn=zs(e.stateNode.containerInfo),Kl(e,t,i),Tn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Xa,Xa=16777216,Kl(e,t,i),Xa=r):Kl(e,t,i));break;default:Kl(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 Ia(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:Ia(e),e.flags&2048&&Ci(9,e,e.return);break;case 3:Ia(e);break;case 12:Ia(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fs(e)):Ia(e);break;default:Ia(e)}}function fs(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),fs(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,fs(t));break;default:fs(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:Aa(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 e1={getCacheForType:function(e){var t=Nt(st),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return Nt(st).controller.signal}},t1=typeof WeakMap=="function"?WeakMap:Map,qe=0,Ie=null,Ae=null,Me=0,Qe=0,rn=null,Ni=!1,Zl=!1,qu=!1,ui=0,nt=0,Ti=0,ul=0,Hu=0,sn=0,$l=0,Ka=null,$t=null,Qu=!1,ds=0,Tm=0,hs=1/0,ms=null,Ei=null,mt=0,Ai=null,Pl=null,ci=0,Yu=0,Fu=null,Em=null,Za=0,Vu=null;function on(){return(qe&2)!==0&&Me!==0?Me&-Me:D.T!==null?$u():uo()}function Am(){if(sn===0)if((Me&536870912)===0||Re){var e=bl;bl<<=1,(bl&3932160)===0&&(bl=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)&&(Jl(e,0),Di(e,Me,sn,!1)),et(e,i),((qe&2)===0||e!==Ie)&&(e===Ie&&((qe&2)===0&&(ul|=i),nt===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?l1(e,t):Xu(e,t,!0),d=r;do{if(u===0){Zl&&!r&&Di(e,t,0,!1);break}else{if(i=e.current.alternate,d&&!n1(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=Ka;var N=w.current.memoizedState.isDehydrated;if(N&&(Jl(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){Jl(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=ds+300-kt(),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,ms,Qu,t,sn,ul,$l,Ni,d,"Throttled",-0,0),u);break e}_m(r,i,$t,ms,Qu,t,sn,ul,$l,Ni,d,null,-0,0)}}break}while(!0);Yn(e)}function _m(e,t,i,r,u,d,b,w,N,q,X,$,H,F){if(e.timeoutHandle=-1,$=t.subtreeFlags,$&8192||($&16785408)===16785408){$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zn},zm(t,d,$);var fe=(d&62914560)===d?ds-kt():(d&4194048)===d?Tm-kt():0;if(fe=H1($,fe),fe!==null){ci=d,e.cancelPendingCommit=fe(Hm.bind(null,e,t,d,i,r,u,b,w,N,X,$,null,H,F)),Di(e,d,b,!q);return}}Hm(e,t,d,i,r,u,b,w,N)}function n1(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 ps(){return(qe&6)===0?($a(0),!1):!0}function Gu(){if(Ae!==null){if(Qe===0)var e=Ae.return;else e=Ae,Wn=el=null,su(e),Yl=null,_a=0,e=Ae;for(;e!==null;)um(e.alternate,e),e=e.return;Ae=null}}function Jl(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,k1(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,Zl=Je(e,t),qu=!1,$l=sn=Hu=ul=Ti=nt=0,$t=Ka=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,Lr(),i}function Mm(e,t){je=null,D.H=Ha,t===Ql||t===Vr?(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&&(nt=1,ls(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=D.H;return D.H=Ha,e===null?Ha:e}function Lm(){var e=D.A;return D.A=e1,e}function gs(){nt=4,Ni||(Me&4194048)!==Me&&ln.current!==null||(Zl=!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)&&(ms=null,Jl(e,t)),t=!1;var b=nt;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 q=Qe;if(Qe=0,rn=null,Wl(e,w,N,q),i&&Zl){b=0;break e}break;default:q=Qe,Qe=0,rn=null,Wl(e,w,N,q)}}i1(),b=nt;break}catch(X){Mm(e,X)}while(!0);return t&&e.shellSuspendCounter++,Wn=el=null,qe=r,D.H=u,D.A=d,Ae===null&&(Ie=null,Me=0,Lr()),b}function i1(){for(;Ae!==null;)Um(Ae)}function l1(e,t){var i=qe;qe|=2;var r=Rm(),u=Lm();Ie!==e||Me!==t?(ms=null,hs=kt()+500,Jl(e,t)):Zl=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,Wl(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,Wl(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 q=w.return;q!==null?(Ae=q,ys(q)):Ae=null}break t}}Qe=0,rn=null,Wl(e,t,d,5);break;case 6:Qe=0,rn=null,Wl(e,t,d,6);break;case 8:Gu(),nt=6;break e;default:throw Error(s(462))}}a1();break}catch(X){Mm(e,X)}while(!0);return Wn=el=null,D.H=r,D.A=u,qe=i,Ae!==null?0:(Ie=null,Me=0,Lr(),nt)}function a1(){for(;Ae!==null&&!St();)Um(Ae)}function Um(e){var t=sm(e.alternate,e,ui);e.memoizedProps=e.pendingProps,t===null?ys(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?ys(e):Ae=t}function Wl(e,t,i,r){Wn=el=null,su(t),Yl=null,_a=0;var u=t.return;try{if(Ix(e,u,t,i,Me)){nt=1,ls(e,pn(i,e.current)),Ae=null;return}}catch(d){if(u!==null)throw Ae=u,d;nt=1,ls(e,pn(i,e.current)),Ae=null;return}t.flags&32768?(Re||r===1?e=!0:Zl||(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)):ys(t)}function ys(e){var t=e;do{if((t.flags&32768)!==0){qm(t,Ni);return}e=t.return;var i=$x(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);nt===0&&(nt=5)}function qm(e,t){do{var i=Px(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);nt=6,Ae=null}function Hm(e,t,i,r,u,d,b,w,N){e.cancelPendingCommit=null;do xs();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),Pl=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,u1(be,function(){return Gm(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=D.T,D.T=null,u=Z.p,Z.p=2,b=qe,qe|=4;try{Jx(e,t,i)}finally{qe=b,Z.p=u,D.T=r}}mt=1,Qm(),Ym(),Fm()}}function Qm(){if(mt===1){mt=0;var e=Ai,t=Pl,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=D.T,D.T=null;var r=Z.p;Z.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 q=N.start,X=N.end;if(X===void 0&&(X=q),"selectionStart"in w)w.selectionStart=q,w.selectionEnd=Math.min(X,w.value.length);else{var $=w.ownerDocument||document,H=$&&$.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 M=jd(w,ve),A=jd(w,Ge);if(M&&A&&(F.rangeCount!==1||F.anchorNode!==M.node||F.anchorOffset!==M.offset||F.focusNode!==A.node||F.focusOffset!==A.offset)){var B=$.createRange();B.setStart(M.node,M.offset),F.removeAllRanges(),ve>Ge?(F.addRange(B),F.extend(A.node,A.offset)):(B.setEnd(A.node,A.offset),F.addRange(B))}}}}for($=[],F=w;F=F.parentNode;)F.nodeType===1&&$.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<$.length;w++){var K=$[w];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}As=!!ic,lc=ic=null}finally{qe=u,Z.p=r,D.T=i}}e.current=t,mt=2}}function Ym(){if(mt===2){mt=0;var e=Ai,t=Pl,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=D.T,D.T=null;var r=Z.p;Z.p=2;var u=qe;qe|=4;try{gm(e,t.alternate,t)}finally{qe=u,Z.p=r,D.T=i}}mt=3}}function Fm(){if(mt===4||mt===3){mt=0,Rn();var e=Ai,t=Pl,i=ci,r=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?mt=5:(mt=0,Pl=Ai=null,Vm(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Ei=null),Cn(i),t=t.stateNode,lt&&typeof lt.onCommitFiberRoot=="function")try{lt.onCommitFiberRoot(wt,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=D.T,u=Z.p,Z.p=2,D.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{D.T=t,Z.p=u}}(ci&3)!==0&&xs(),Yn(e),u=e.pendingLanes,(i&261930)!==0&&(u&42)!==0?e===Vu?Za++:(Za=0,Vu=e):Za=0,$a(0)}}function Vm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Aa(t)))}function xs(){return Qm(),Ym(),Fm(),Gm()}function Gm(){if(mt!==5)return!1;var e=Ai,t=Yu;Yu=0;var i=Cn(ci),r=D.T,u=Z.p;try{Z.p=32>i?32:i,D.T=null,i=Fu,Fu=null;var d=Ai,b=ci;if(mt=0,Pl=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,$a(0,!1),lt&&typeof lt.onPostCommitFiberRoot=="function")try{lt.onPostCommitFiberRoot(wt,d)}catch{}return!0}finally{Z.p=u,D.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 t1;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=r1.bind(null,e,t,i),t.then(e,e))}function r1(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&&(nt===4||nt===3&&(Me&62914560)===Me&&300>kt()-ds?(qe&2)===0&&Jl(e,0):Hu|=i,$l===Me&&($l=0)),Yn(e)}function Im(e,t){t===0&&(t=Ot()),e=Pi(e,t),e!==null&&(et(e,t),Yn(e))}function s1(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),Im(e,i)}function o1(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 u1(e,t){return hi(e,t)}var bs=null,ea=null,Ku=!1,vs=!1,Zu=!1,_i=0;function Yn(e){e!==ea&&e.next===null&&(ea===null?bs=ea=e:ea=ea.next=e),vs=!0,Ku||(Ku=!0,f1())}function $a(e,t){if(!Zu&&vs){Zu=!0;do for(var i=!1,r=bs;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 c1(){Km()}function Km(){vs=Ku=!1;var e=0;_i!==0&&S1()&&(e=_i);for(var t=kt(),i=null,r=bs;r!==null;){var u=r.next,d=Zm(r,t);d===0?(r.next=null,i===null?bs=u:i.next=u,u===null&&(ea=i)):(i=r,(e!==0||(d&3)!==0)&&(vs=!0)),r=u}mt!==0&&mt!==5||$a(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),Cn(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(xs()&&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,kt()),e.callbackNode!=null&&e.callbackNode===i?$m.bind(null,e):null)}function Pm(e,t){if(xs())return null;Dm(e,t,!0)}function f1(){w1(function(){(qe&6)!==0?hi(I,c1):Km()})}function $u(){if(_i===0){var e=ql;e===0&&(e=xl,xl<<=1,(xl&261888)===0&&(xl=256)),_i=e}return _i}function Jm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Tr(""+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 d1(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 _r("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],h1=Ju.toLowerCase(),m1=Ju[0].toUpperCase()+Ju.slice(1);Nn(h1,"on"+m1)}Nn(Ad,"onAnimationEnd"),Nn(Dd,"onAnimationIteration"),Nn(_d,"onAnimationStart"),Nn("dblclick","onDoubleClick"),Nn("focusin","onFocus"),Nn("focusout","onBlur"),Nn(Ax,"onTransitionRun"),Nn(Dx,"onTransitionStart"),Nn(_x,"onTransitionCancel"),Nn(Md,"onTransitionEnd"),jl("onMouseEnter",["mouseout","mouseover"]),jl("onMouseLeave",["mouseout","mouseover"]),jl("onPointerEnter",["pointerout","pointerover"]),jl("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 Pa="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(" "),p1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Pa));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,q=w.currentTarget;if(w=w.listener,N!==d&&u.isPropagationStopped())break e;d=w,u.currentTarget=q;try{d(u)}catch(X){Rr(X)}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(X){Rr(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 Ss="_reactListening"+Math.random().toString(36).slice(2);function ec(e){if(!e[Ss]){e[Ss]=!0,Kf.forEach(function(i){i!=="selectionchange"&&(p1.has(i)||Wu(i,!1,e),Wu(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ss]||(t[Ss]=!0,Wu("selectionchange",!1,t))}}function tp(e,t,i,r){switch(Ap(t)){case 2:var u=F1;break;case 8:u=V1;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=kl(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 q=d,X=xo(i),$=[];e:{var H=Od.get(e);if(H!==void 0){var F=_r,fe=e;switch(e){case"keypress":if(Ar(i)===0)break e;case"keydown":case"keyup":F=ox;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=$y;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=fx;break;case Ad:case Dd:case _d:F=Wy;break;case Md:F=hx;break;case"scroll":case"scrollend":F=Ky;break;case"wheel":F=px;break;case"copy":case"cut":case"paste":F=tx;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=yx}var ve=(t&4)!==0,Ge=!ve&&(e==="scroll"||e==="scrollend"),M=ve?H!==null?H+"Capture":null:H;ve=[];for(var A=q,B;A!==null;){var K=A;if(B=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||B===null||M===null||(K=ba(A,M),K!=null&&ve.push(Ja(A,K,B))),Ge)break;A=A.return}0<ve.length&&(H=new F(H,fe,null,i,X),$.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)&&(kl(fe)||fe[Sl]))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=q,fe=fe?kl(fe):null,fe!==null&&(Ge=c(fe),ve=fe.tag,fe!==Ge||ve!==5&&ve!==27&&ve!==6)&&(fe=null)):(F=null,fe=q),F!==fe)){if(ve=ud,K="onMouseLeave",M="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(ve=fd,K="onPointerLeave",M="onPointerEnter",A="pointer"),Ge=F==null?H:xa(F),B=fe==null?H:xa(fe),H=new ve(K,A+"leave",F,i,X),H.target=Ge,H.relatedTarget=B,K=null,kl(X)===q&&(ve=new ve(M,A+"enter",fe,i,X),ve.target=B,ve.relatedTarget=Ge,K=ve),Ge=K,F&&fe)t:{for(ve=g1,M=F,A=fe,B=0,K=M;K;K=ve(K))B++;K=0;for(var ge=A;ge;ge=ve(ge))K++;for(;0<B-K;)M=ve(M),B--;for(;0<K-B;)A=ve(A),K--;for(;B--;){if(M===A||A!==null&&M===A.alternate){ve=M;break t}M=ve(M),A=ve(A)}ve=null}else ve=null;F!==null&&np($,H,F,ve,!1),fe!==null&&Ge!==null&&np($,Ge,fe,ve,!0)}}e:{if(H=q?xa(q):window,F=H.nodeName&&H.nodeName.toLowerCase(),F==="select"||F==="input"&&H.type==="file")var Ue=bd;else if(yd(H))if(vd)Ue=Nx;else{Ue=jx;var he=zx}else F=H.nodeName,!F||F.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?q&&go(q.elementType)&&(Ue=bd):Ue=Cx;if(Ue&&(Ue=Ue(e,q))){xd($,Ue,i,X);break e}he&&he(e,H,q),e==="focusout"&&q&&H.type==="number"&&q.memoizedProps.value!=null&&po(H,"number",H.value)}switch(he=q?xa(q):window,e){case"focusin":(yd(he)||he.contentEditable==="true")&&(Dl=he,Ao=q,Na=null);break;case"focusout":Na=Ao=Dl=null;break;case"mousedown":Do=!0;break;case"contextmenu":case"mouseup":case"dragend":Do=!1,Td($,i,X);break;case"selectionchange":if(Ex)break;case"keydown":case"keyup":Td($,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 Al?pd(e,i)&&(Oe="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Oe="onCompositionStart");Oe&&(dd&&i.locale!=="ko"&&(Al||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Al&&(Ne=sd()):(gi=X,So="value"in gi?gi.value:gi.textContent,Al=!0)),he=ks(q,Oe),0<he.length&&(Oe=new cd(Oe,e,null,i,X),$.push({event:Oe,listeners:he}),Ne?Oe.data=Ne:(Ne=gd(i),Ne!==null&&(Oe.data=Ne)))),(Ne=bx?vx(e,i):Sx(e,i))&&(Oe=ks(q,"onBeforeInput"),0<Oe.length&&(he=new cd("onBeforeInput","beforeinput",null,i,X),$.push({event:he,listeners:Oe}),he.data=Ne)),d1($,e,q,i,X)}ep($,t)})}function Ja(e,t,i){return{instance:e,listener:t,currentTarget:i}}function ks(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=ba(e,i),u!=null&&r.unshift(Ja(e,u,d)),u=ba(e,t),u!=null&&r.push(Ja(e,u,d))),e.tag===3)return r;e=e.return}return[]}function g1(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,q=w.stateNode;if(w=w.tag,N!==null&&N===r)break;w!==5&&w!==26&&w!==27||q===null||(N=q,u?(q=ba(i,d),q!=null&&b.unshift(Ja(i,q,N))):u||(q=ba(i,d),q!=null&&b.push(Ja(i,q,N)))),i=i.return}b.length!==0&&e.push({event:t,listeners:b})}var y1=/\r\n?/g,x1=/\u0000|\uFFFD/g;function ip(e){return(typeof e=="string"?e:""+e).replace(y1,`
|
|
9
|
+
`).replace(x1,"")}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===""||Nl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Nl(e,""+r);break;case"className":Cr(e,"class",r);break;case"tabIndex":Cr(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Cr(e,i,r);break;case"style":ld(e,r,d);break;case"data":if(t!=="object"){Cr(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=Tr(""+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=Tr(""+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=Tr(""+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),jr(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":jr(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=Xy.get(i)||i,jr(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"?Nl(e,r):(typeof r=="number"||typeof r=="bigint")&&Nl(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,""):jr(e,i,r)}}}function Et(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 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":q=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,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?Cl(e,!!r,t,!1):i!=null&&Cl(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<Pa.length;r++)De(Pa[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(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 b1(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,X=null;for(F in i){var $=i[F];if(i.hasOwnProperty(F)&&$!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":N=$;default:r.hasOwnProperty(F)||Ve(e,t,F,null,r,$)}}for(var H in r){var F=r[H];if($=i[H],r.hasOwnProperty(H)&&(F!=null||$!=null))switch(H){case"type":d=F;break;case"name":u=F;break;case"checked":q=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!==$&&Ve(e,t,H,F,r,$)}}mo(e,b,w,N,q,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?Cl(e,!!i,H,!1):!!r!=!!i&&(t!=null?Cl(e,!!i,t,!0):Cl(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(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(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 M in i)H=i[M],i.hasOwnProperty(M)&&H!=null&&!r.hasOwnProperty(M)&&Ve(e,t,M,null,r,H);for($ in r)H=r[$],F=i[$],!r.hasOwnProperty($)||H===F||H==null&&F==null||Ve(e,t,$,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 v1(){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],q=N.startTime;if(q>w)break;var X=N.transferSize,$=N.initiatorType;X&&ap($)&&(N=N.responseEnd,b+=X*(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 ic=null,lc=null;function ws(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 S1(){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,k1=typeof clearTimeout=="function"?clearTimeout:void 0,up=typeof Promise=="function"?Promise:void 0,w1=typeof queueMicrotask=="function"?queueMicrotask:typeof up<"u"?function(e){return up.resolve(null).then(e).catch(z1)}:op;function z1(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),la(t);return}r--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")r++;else if(i==="html")Wa(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,Wa(i);for(var d=i.firstChild;d;){var b=d.nextSibling,w=d.nodeName;d[ya]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&d.rel.toLowerCase()==="stylesheet"||i.removeChild(d),d=b}}else i==="body"&&Wa(e.ownerDocument.body);i=u}while(i);la(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 j1(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[ya])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 C1(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 N1(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=ws(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 Wa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);fo(e)}var Sn=new Map,gp=new Set;function zs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var fi=Z.d;Z.d={f:T1,r:E1,D:A1,C:D1,L:_1,m:M1,X:R1,S:O1,M:L1};function T1(){var e=fi.f(),t=ps();return e||t}function E1(e){var t=wl(e);t!==null&&t.tag===5&&t.type==="form"?Mh(t):fi.r(e)}var ta=typeof document>"u"?null:document;function yp(e,t,i){var r=ta;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"),Et(t,"link",e),xt(t),r.head.appendChild(t)))}}function A1(e){fi.D(e),yp("dns-prefetch",e,null)}function D1(e,t){fi.C(e,t),yp("preconnect",e,t)}function _1(e,t,i){fi.L(e,t,i);var r=ta;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=na(e);break;case"script":d=ia(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(er(d))||t==="script"&&r.querySelector(tr(d))||(t=r.createElement("link"),Et(t,"link",e),xt(t),r.head.appendChild(t)))}}function M1(e,t){fi.m(e,t);var i=ta;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=ia(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(tr(d)))return}r=i.createElement("link"),Et(r,"link",e),xt(r),i.head.appendChild(r)}}}function O1(e,t,i){fi.S(e,t,i);var r=ta;if(r&&e){var u=zl(r).hoistableStyles,d=na(e);t=t||"default";var b=u.get(d);if(!b){var w={loading:0,preload:null};if(b=r.querySelector(er(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),Et(N,"link",e),N._p=new Promise(function(q,X){N.onload=q,N.onerror=X}),N.addEventListener("load",function(){w.loading|=1}),N.addEventListener("error",function(){w.loading|=2}),w.loading|=4,js(b,t,r)}b={type:"stylesheet",instance:b,count:1,state:w},u.set(d,b)}}}function R1(e,t){fi.X(e,t);var i=ta;if(i&&e){var r=zl(i).hoistableScripts,u=ia(e),d=r.get(u);d||(d=i.querySelector(tr(u)),d||(e=g({src:e,async:!0},t),(t=Sn.get(u))&&dc(e,t),d=i.createElement("script"),xt(d),Et(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(u,d))}}function L1(e,t){fi.M(e,t);var i=ta;if(i&&e){var r=zl(i).hoistableScripts,u=ia(e),d=r.get(u);d||(d=i.querySelector(tr(u)),d||(e=g({src:e,async:!0,type:"module"},t),(t=Sn.get(u))&&dc(e,t),d=i.createElement("script"),xt(d),Et(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)?zs(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=na(i.href),i=zl(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=na(i.href);var d=zl(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(er(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||U1(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=ia(i),i=zl(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 na(e){return'href="'+hn(e)+'"'}function er(e){return'link[rel="stylesheet"]['+e+"]"}function bp(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function U1(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}),Et(t,"link",i),xt(t),e.head.appendChild(t))}function ia(e){return'[src="'+hn(e)+'"]'}function tr(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),Et(r,"style",u),js(r,i.precedence,e),t.instance=r;case"stylesheet":u=na(i.href);var d=e.querySelector(er(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}),Et(d,"link",r),t.state.loading|=4,js(d,i.precedence,e),t.instance=d;case"script":return d=ia(i.src),(u=e.querySelector(tr(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),Et(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,js(r,i.precedence,e));return t.instance}function js(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 Cs=null;function Sp(e,t,i){if(Cs===null){var r=new Map,u=Cs=new Map;u.set(i,r)}else u=Cs,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[ya]||d[jt]||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 B1(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 q1(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=na(r.href),d=t.querySelector(er(u));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ns.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}),Et(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=Ns.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}var hc=0;function H1(e,t){return e.stylesheets&&e.count===0&&Es(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var r=setTimeout(function(){if(e.stylesheets&&Es(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&hc===0&&(hc=62500*v1());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Es(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 Ns(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Es(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ts=null;function Es(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ts=new Map,t.forEach(Q1,e),Ts=null,Ns.call(e))}function Q1(e,t){if(!(t.state.loading&4)){var i=Ts.get(e);if(i)var r=i.get(null);else{i=new Map,Ts.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=Ns.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 nr={$$typeof:L,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function Y1(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,q,X,$){return e=new Y1(e,t,i,b,N,q,X,$,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=Ol,e):Ol}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),Oa(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=vl(t);var i=Pi(e,t);i!==null&&Pt(i,e,t),mc(e,t)}}var As=!0;function F1(e,t,i,r){var u=D.T;D.T=null;var d=Z.p;try{Z.p=2,pc(e,t,i,r)}finally{Z.p=d,D.T=u}}function V1(e,t,i,r){var u=D.T;D.T=null;var d=Z.p;try{Z.p=8,pc(e,t,i,r)}finally{Z.p=d,D.T=u}}function pc(e,t,i,r){if(As){var u=gc(r);if(u===null)tc(e,t,r,Ds,i),Dp(e,r);else if(X1(u,e,t,i,r))r.stopPropagation();else if(Dp(e,r),t&4&&-1<G1.indexOf(e)){for(;u!==null;){var d=wl(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&&(hs=kt()+500,$a(0))}}break;case 31:case 13:w=Pi(d,2),w!==null&&Pt(w,d,2),ps(),mc(d,2)}if(d=gc(r),d===null&&tc(e,t,r,Ds,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 Ds=null;function yc(e){if(Ds=null,e=kl(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 Ds=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(ga()){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,ir=new Map,lr=new Map,Ui=[],G1="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":ir.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":lr.delete(t.pointerId)}}function ar(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=wl(t),t!==null&&Tp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function X1(e,t,i,r,u){switch(t){case"focusin":return Oi=ar(Oi,e,t,i,r,u),!0;case"dragenter":return Ri=ar(Ri,e,t,i,r,u),!0;case"mouseover":return Li=ar(Li,e,t,i,r,u),!0;case"pointerover":var d=u.pointerId;return ir.set(d,ar(ir.get(d)||null,e,t,i,r,u)),!0;case"gotpointercapture":return d=u.pointerId,lr.set(d,ar(lr.get(d)||null,e,t,i,r,u)),!0}return!1}function _p(e){var t=kl(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 _s(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=wl(i),t!==null&&Tp(t),e.blockedOn=i,!1;t.shift()}return!0}function Mp(e,t,i){_s(e)&&i.delete(t)}function I1(){xc=!1,Oi!==null&&_s(Oi)&&(Oi=null),Ri!==null&&_s(Ri)&&(Ri=null),Li!==null&&_s(Li)&&(Li=null),ir.forEach(Mp),lr.forEach(Mp)}function Ms(e,t){e.blockedOn===t&&(e.blockedOn=null,xc||(xc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,I1)))}var Os=null;function Op(e){Os!==e&&(Os=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Os===e&&(Os=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=wl(i);d!==null&&(e.splice(t,3),t-=3,gu(d,{pending:!0,data:u,method:i.method,action:r},r,u))}}))}function la(e){function t(N){return Ms(N,e)}Oi!==null&&Ms(Oi,e),Ri!==null&&Ms(Ri,e),Li!==null&&Ms(Li,e),ir.forEach(t),lr.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}Rs.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)},Rs.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),ps(),t[Sl]=null}};function Rs(e){this._internalRoot=e}Rs.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"));Z.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 K1={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ls=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ls.isDisabled&&Ls.supportsFiber)try{wt=Ls.inject(K1),lt=Ls}catch{}}return sr.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[Sl]=t.current,ec(e),new bc(t)},sr.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=vl(r),u=ki(r),u.callback=null,wi(i,u,r),i=r,t.current.lanes=i,et(t,i),Yn(t),e[Sl]=t.current,ec(e),new Rs(t)},sr.version="19.2.3",sr}var Xp;function ib(){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=nb(),kc.exports}var lb=ib(),ha=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(){}},ab={setTimeout:(n,l)=>setTimeout(n,l),clearTimeout:n=>clearTimeout(n),setInterval:(n,l)=>setInterval(n,l),clearInterval:n=>clearInterval(n)},rb=class{#e=ab;#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 rb;function sb(n){setTimeout(n,0)}var hl=typeof window>"u"||"Deno"in globalThis;function Ht(){}function ob(n,l){return typeof n=="function"?n(l):n}function Xc(n){return typeof n=="number"&&n>=0&&n!==1/0}function ag(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(!gr(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(ml(l.options.mutationKey)!==ml(c))return!1}else if(!gr(l.options.mutationKey,c))return!1}return!(s&&l.state.status!==s||o&&!o(l))}function hf(n,l){return(l?.queryKeyHashFn||ml)(n)}function ml(n){return JSON.stringify(n,(l,a)=>Ic(a)?Object.keys(a).sort().reduce((s,o)=>(s[o]=a[o],s),{}):a)}function gr(n,l){return n===l?!0:typeof n!=typeof l?!1:n&&l&&typeof n=="object"&&typeof l=="object"?Object.keys(l).every(a=>gr(n[a],l[a])):!1}var ub=Object.prototype.hasOwnProperty;function rg(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],S=l[x];if(g===S){m[x]=g,(a?p<o:ub.call(n,x))&&y++;continue}if(g===null||S===null||typeof g!="object"||typeof S!="object"){m[x]=S;continue}const k=rg(g,S);m[x]=k,k===g&&y++}return o===f&&y===o?n:m}function Is(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 cb(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?rg(n,l):l}function fb(n,l,a=0){const s=[...n,l];return a&&s.length>a?s.slice(1):s}function db(n,l,a=0){const s=[l,...n];return a&&s.length>a?s.slice(0,-1):s}var mf=Symbol();function sg(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 hb(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 mb=class extends ha{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!hl&&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 mb;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 pb=sb;function gb(){let n=[],l=0,a=m=>{m()},s=m=>{m()},o=pb;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=gb(),yb=class extends ha{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!hl&&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}},Ks=new yb;function xb(n){return Math.min(1e3*2**n,3e4)}function og(n){return(n??"online")==="online"?Ks.isOnline():!0}var $c=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function ug(n){let l=!1,a=0,s;const o=Zc(),c=()=>o.status!=="pending",f=E=>{if(!c()){const _=new $c(E);S(_),n.onCancel?.(_)}},m=()=>{l=!0},y=()=>{l=!1},p=()=>gf.isFocused()&&(n.networkMode==="always"||Ks.isOnline())&&n.canRun(),x=()=>og(n.networkMode)&&n.canRun(),g=E=>{c()||(s?.(),o.resolve(E))},S=E=>{c()||(s?.(),o.reject(E))},k=()=>new Promise(E=>{s=_=>{(c()||p())&&E(_)},n.onPause?.()}).then(()=>{s=void 0,c()||n.onContinue?.()}),j=()=>{if(c())return;let E;const _=a===0?n.initialPromise:void 0;try{E=_??n.fn()}catch(z){E=Promise.reject(z)}Promise.resolve(E).then(g).catch(z=>{if(c())return;const U=n.retry??(hl?0:3),L=n.retryDelay??xb,ne=typeof L=="function"?L(a,z):L,ee=U===!0||typeof U=="number"&&a<U||typeof U=="function"&&U(a,z);if(l||!ee){S(z);return}a++,n.onFail?.(a,z),cb(ne).then(()=>p()?void 0:k()).then(()=>{l?S(z):j()})})};return{promise:o,status:()=>o.status,cancel:f,continue:()=>(s?.(),o),cancelRetry:m,continueRetry:y,canStart:x,start:()=>(x()?j():k().then(j),o)}}var cg=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??(hl?1/0:300*1e3))}clearGcTimeout(){this.#e&&(fl.clearTimeout(this.#e),this.#e=void 0)}},bb=class extends cg{#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:!ag(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=sg(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=ug({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,...fg(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 fg(n,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:og(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 vb=class extends ha{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&&!Is(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 kb(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(hl||this.#l.isStale||!Xc(n))return;const a=ag(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,!(hl||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,S;if(l._optimisticResults){const le=this.hasListeners(),ue=!le&&Wp(n,l),R=le&&e0(n,a,l,s);(ue||R)&&(x={...x,...fg(p.data,n.options)}),l._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:k,errorUpdatedAt:j,status:E}=x;S=x.data;let _=!1;if(l.placeholderData!==void 0&&S===void 0&&E==="pending"){let le;o?.isPlaceholderData&&l.placeholderData===f?.placeholderData?(le=o.data,_=!0):le=typeof l.placeholderData=="function"?l.placeholderData(this.#h?.state.data,this.#h):l.placeholderData,le!==void 0&&(E="success",S=Kc(o?.data,le,l),g=!0)}if(l.select&&S!==void 0&&!_)if(o&&S===c?.data&&l.select===this.#p)S=this.#d;else try{this.#p=l.select,S=l.select(S),S=Kc(o?.data,S,l),this.#d=S,this.#a=null}catch(le){this.#a=le}this.#a&&(k=this.#a,S=this.#d,j=Date.now(),E="error");const z=x.fetchStatus==="fetching",U=E==="pending",L=E==="error",ne=U&&z,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:j,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:z,isRefetching:z&&!U,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 le=Y=>{P.status==="error"?Y.reject(P.error):P.data!==void 0&&Y.resolve(P.data)},ue=()=>{const Y=this.#s=P.promise=Zc();le(Y)},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),Is(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 Sb(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 Sb(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 kb(n,l){return!Is(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=j=>{hb(j,()=>l.signal,()=>x=!0)},S=sg(l.options,l.fetchOptions),k=async(j,E,_)=>{if(x)return Promise.reject();if(E==null&&j.pages.length)return Promise.resolve(j);const U=(()=>{const O={client:l.client,queryKey:l.queryKey,pageParam:E,direction:_?"backward":"forward",meta:l.options.meta};return g(O),O})(),L=await S(U),{maxPages:ne}=l.options,ee=_?db:fb;return{pages:ee(j.pages,L,ne),pageParams:ee(j.pageParams,E,ne)}};if(o&&c.length){const j=o==="backward",E=j?wb:n0,_={pages:c,pageParams:f},z=E(s,_);m=await k(_,z,j)}else{const j=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<j)}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 wb(n,{pages:l,pageParams:a}){return l.length>0?n.getPreviousPageParam?.(l[0],l,a[0],a):void 0}var zb=class extends cg{#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||dg(),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=ug({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 dg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var jb=class extends ha{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 zb({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=Us(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=Us(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=Us(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=Us(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 Us(n){return n.options.scope?.id}var Cb=class extends ha{#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),Is(this.options,a)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),a?.mutationKey&&this.options.mutationKey&&ml(a.mutationKey)!==ml(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??dg();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)})})}},Nb=class extends ha{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 bb({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()})})}},Tb=class{#e;#t;#n;#l;#i;#r;#s;#a;constructor(n={}){this.#e=n.queryCache||new Nb,this.#t=n.mutationCache||new jb,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=Ks.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=ob(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 Ks.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(ml(n),{queryKey:n,defaultOptions:l})}getQueryDefaults(n){const l=[...this.#l.values()],a={};return l.forEach(s=>{gr(n,s.queryKey)&&Object.assign(a,s.defaultOptions)}),a}setMutationDefaults(n,l){this.#i.set(ml(n),{mutationKey:n,defaultOptions:l})}getMutationDefaults(n){const l=[...this.#i.values()],a={};return l.forEach(s=>{gr(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()}},hg=V.createContext(void 0),it=n=>{const l=V.useContext(hg);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},Eb=({client:n,children:l})=>(V.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),h.jsx(hg.Provider,{value:n,children:l})),mg=V.createContext(!1),Ab=()=>V.useContext(mg);mg.Provider;function Db(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var _b=V.createContext(Db()),Mb=()=>V.useContext(_b),Ob=(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))},Rb=n=>{V.useEffect(()=>{n.clearReset()},[n])},Lb=({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])),Ub=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))}},Bb=(n,l)=>n.isLoading&&n.isFetching&&!l,qb=(n,l)=>n?.suspense&&l.isPending,i0=(n,l,a)=>l.fetchOptimistic(n).catch(()=>{a.clearReset()});function Hb(n,l,a){const s=Ab(),o=Mb(),c=it(),f=c.defaultQueryOptions(n);c.getDefaultOptions().queries?._experimental_beforeQuery?.(f);const m=c.getQueryCache().get(f.queryHash);f._optimisticResults=s?"isRestoring":"optimistic",Ub(f),Ob(f,o,m),Rb(o);const y=!c.getQueryCache().get(f.queryHash),[p]=V.useState(()=>new l(c,f)),x=p.getOptimisticResult(f),g=!s&&n.subscribed!==!1;if(V.useSyncExternalStore(V.useCallback(S=>{const k=g?p.subscribe(pt.batchCalls(S)):Ht;return p.updateResult(),k},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),V.useEffect(()=>{p.setOptions(f)},[f,p]),qb(f,x))throw i0(f,p,o);if(Lb({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&&!hl&&Bb(x,s)&&(y?i0(f,p,o):m?.promise)?.catch(Ht).finally(()=>{p.updateResult()}),f.notifyOnChangeProps?x:p.trackResult(x)}function _n(n,l){return Hb(n,vb)}function At(n,l){const a=it(),[s]=V.useState(()=>new Cb(a,n));V.useEffect(()=>{s.setOptions(n)},[s,n]);const o=V.useSyncExternalStore(V.useCallback(f=>s.subscribe(pt.batchCalls(f)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),c=V.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 Qb=new Tb({defaultOptions:{queries:{retry:!1,refetchOnMount:!1}}});var pg=lg();const Yb=eo(pg);function Fb(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 Vb=n=>{switch(n){case"success":return Ib;case"info":return Zb;case"warning":return Kb;case"error":return $b;default:return null}},Gb=Array(12).fill(0),Xb=({visible:n,className:l})=>oe.createElement("div",{className:["sonner-loading-wrapper",l].filter(Boolean).join(" "),"data-visible":n},oe.createElement("div",{className:"sonner-spinner"},Gb.map((a,s)=>oe.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),Ib=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"})),Kb=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"})),Zb=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"})),$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:"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"})),Pb=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"})),Jb=()=>{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 Wb{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(tv(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,j=typeof g=="object"&&!oe.isValidElement(g)?g:{message:g};this.create({id:s,type:"error",description:S,...j})}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,j=typeof g=="object"&&!oe.isValidElement(g)?g:{message:g};this.create({id:s,type:"error",description:S,...j})}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,j=typeof g=="object"&&!oe.isValidElement(g)?g:{message:g};this.create({id:s,type:"success",description:S,...j})}}).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 Wb,ev=(n,l)=>{const a=l?.id||Jc++;return Wt.addToast({title:n,...l,id:a}),a},tv=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",nv=ev,iv=()=>Wt.toasts,lv=()=>Wt.getActiveToasts();Object.assign(nv,{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:iv,getToasts:lv});Fb("[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 Bs(n){return n.label!==void 0}const av=3,rv="24px",sv="16px",l0=4e3,ov=356,uv=14,cv=45,fv=200;function Fn(...n){return n.filter(Boolean).join(" ")}function dv(n){const[l,a]=n.split("-"),s=[];return l&&s.push(l),a&&s.push(a),s}const hv=n=>{var l,a,s,o,c,f,m,y,p;const{invert:x,toast:g,unstyled:S,interacting:k,setHeights:j,visibleToasts:E,heights:_,index:z,toasts:U,expanded:L,removeToast:ne,defaultRichColors:ee,closeButton:O,style:P,cancelButtonStyle:le,actionButtonStyle:ue,className:R="",descriptionClassName:Y="",duration:J,position:de,gap:se,expandByDefault:W,classNames:D,icons:Z,closeButtonAriaLabel:ce="Close toast"}=n,[Se,C]=oe.useState(null),[T,G]=oe.useState(null),[v,Q]=oe.useState(!1),[te,ae]=oe.useState(!1),[me,pe]=oe.useState(!1),[we,dt]=oe.useState(!1),[vt,Xe]=oe.useState(!1),[gt,ht]=oe.useState(0),[fn,jn]=oe.useState(0),On=oe.useRef(g.duration||J||l0),Fi=oe.useRef(null),Dt=oe.useRef(null),hi=z===0,Vi=z+1<=E,St=g.type,Rn=g.dismissible!==!1,kt=g.className||"",ga=g.descriptionClassName||"",I=oe.useMemo(()=>_.findIndex(ke=>ke.toastId===g.id)||0,[_,g.id]),re=oe.useMemo(()=>{var ke;return(ke=g.closeButton)!=null?ke:O},[g.closeButton,O]),be=oe.useMemo(()=>g.duration||J||l0,[g.duration,J]),Ce=oe.useRef(0),Ee=oe.useRef(0),_t=oe.useRef(0),Mt=oe.useRef(null),[wt,lt]=de.split("-"),zt=oe.useMemo(()=>_.reduce((ke,Je,yt)=>yt>=I?ke:ke+Je.height,0),[_,I]),He=Jb(),Ln=g.invert||x,Bt=St==="loading";Ee.current=oe.useMemo(()=>I*se+zt,[I,zt]),oe.useEffect(()=>{On.current=be},[be]),oe.useEffect(()=>{Q(!0)},[]),oe.useEffect(()=>{const ke=Dt.current;if(ke){const Je=ke.getBoundingClientRect().height;return jn(Je),j(yt=>[{toastId:g.id,height:Je,position:g.position},...yt]),()=>j(yt=>yt.filter(Ot=>Ot.toastId!==g.id))}},[j,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,jn(yt),j(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,j,g.id,g.jsx,g.action,g.cancel]);const Un=oe.useCallback(()=>{ae(!0),ht(Ee.current),j(ke=>ke.filter(Je=>Je.toastId!==g.id)),setTimeout(()=>{ne(g)},fv)},[g,ne,j,Ee]);oe.useEffect(()=>{if(g.promise&&St==="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,St,He,Un]),oe.useEffect(()=>{g.delete&&(Un(),g.onDismiss==null||g.onDismiss.call(g,g))},[Un,g.delete]);function xl(){var ke;if(Z?.loading){var Je;return oe.createElement("div",{className:Fn(D?.loader,g==null||(Je=g.classNames)==null?void 0:Je.loader,"sonner-loader"),"data-visible":St==="loading"},Z.loading)}return oe.createElement(Xb,{className:Fn(D?.loader,g==null||(ke=g.classNames)==null?void 0:ke.loader),visible:St==="loading"})}const bl=g.icon||Z?.[St]||Vb(St);var Gi,Bn;return oe.createElement("li",{tabIndex:0,ref:Dt,className:Fn(R,kt,D?.toast,g==null||(l=g.classNames)==null?void 0:l.toast,D?.default,D?.[St],g==null||(a=g.classNames)==null?void 0:a[St]),"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":vt,"data-removed":te,"data-visible":Vi,"data-y-position":wt,"data-x-position":lt,"data-index":z,"data-front":hi,"data-swiping":me,"data-dismissible":Rn,"data-type":St,"data-invert":Ln,"data-swipe-out":we,"data-swipe-direction":T,"data-expanded":!!(L||W&&v),"data-testid":g.testId,style:{"--index":z,"--toasts-before":z,"--z-index":U.length-z,"--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),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)>=cv||Xi>.11){ht(Ee.current),g.onDismiss==null||g.onDismiss.call(g,g),G(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:dv(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 vl=Cn=>1/(1.5+Math.abs(Cn)/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 Cn=et*vl(et);Vt.y=Math.abs(Cn)<Math.abs(et)?Cn: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 Cn=Yt*vl(Yt);Vt.x=Math.abs(Cn)<Math.abs(Yt)?Cn: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&&St!=="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(D?.closeButton,g==null||(s=g.classNames)==null?void 0:s.closeButton)},(Bn=Z?.close)!=null?Bn:Pb):null,(St||g.icon||g.promise)&&g.icon!==null&&(Z?.[St]!==null||g.icon)?oe.createElement("div",{"data-icon":"",className:Fn(D?.icon,g==null||(o=g.classNames)==null?void 0:o.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||xl():null,g.type!=="loading"?bl:null):null,oe.createElement("div",{"data-content":"",className:Fn(D?.content,g==null||(c=g.classNames)==null?void 0:c.content)},oe.createElement("div",{"data-title":"",className:Fn(D?.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(Y,ga,D?.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&&Bs(g.cancel)?oe.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||le,onClick:ke=>{Bs(g.cancel)&&Rn&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,ke),Un())},className:Fn(D?.cancelButton,g==null||(y=g.classNames)==null?void 0:y.cancelButton)},g.cancel.label):null,oe.isValidElement(g.action)?g.action:g.action&&Bs(g.action)?oe.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||ue,onClick:ke=>{Bs(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,ke),!ke.defaultPrevented&&Un())},className:Fn(D?.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 mv(n,l){const a={};return[n,l].forEach((s,o)=>{const c=o===1,f=c?"--mobile-offset":"--offset",m=c?sv:rv;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 pv=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:j,style:E,visibleToasts:_=av,toastOptions:z,dir:U=a0(),gap:L=uv,icons:ne,containerAriaLabel:ee="Notifications"}=l,[O,P]=oe.useState([]),le=oe.useMemo(()=>s?O.filter(v=>v.toasterId===s):O.filter(v=>!v.toasterId),[O,s]),ue=oe.useMemo(()=>Array.from(new Set([c].concat(le.filter(v=>v.position).map(v=>v.position)))),[le,c]),[R,Y]=oe.useState([]),[J,de]=oe.useState(!1),[se,W]=oe.useState(!1),[D,Z]=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(Q=>{var te;return(te=Q.find(ae=>ae.id===v.id))!=null&&te.delete||Wt.dismiss(v.id),Q.filter(({id:ae})=>ae!==v.id)})},[]);return oe.useEffect(()=>Wt.subscribe(v=>{if(v.dismiss){requestAnimationFrame(()=>{P(Q=>Q.map(te=>te.id===v.id?{...te,delete:!0}:te))});return}setTimeout(()=>{Yb.flushSync(()=>{P(Q=>{const te=Q.findIndex(ae=>ae.id===v.id);return te!==-1?[...Q.slice(0,te),{...Q[te],...v},...Q.slice(te+1)]:[v,...Q]})})})}),[O]),oe.useEffect(()=>{if(S!=="system"){Z(S);return}if(S==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Z("dark"):Z("light")),typeof window>"u")return;const v=window.matchMedia("(prefers-color-scheme: dark)");try{v.addEventListener("change",({matches:Q})=>{Z(Q?"dark":"light")})}catch{v.addListener(({matches:te})=>{try{Z(te?"dark":"light")}catch(ae){console.error(ae)}})}},[S]),oe.useEffect(()=>{O.length<=1&&de(!1)},[O]),oe.useEffect(()=>{const v=Q=>{var te;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||(te=ce.current)!=null&&te.contains(document.activeElement))&&de(!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,Q)=>{var te;const[ae,me]=v.split("-");return le.length?oe.createElement("ol",{key:v,dir:U==="auto"?a0():U,tabIndex:-1,ref:ce,className:p,"data-sonner-toaster":!0,"data-sonner-theme":D,"data-y-position":ae,"data-x-position":me,style:{"--front-toast-height":`${((te=R[0])==null?void 0:te.height)||0}px`,"--width":`${ov}px`,"--gap":`${L}px`,...E,...mv(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)},le.filter(pe=>!pe.position&&Q===0||pe.position===v).map((pe,we)=>{var dt,vt;return oe.createElement(hv,{key:pe.id,icons:ne,index:we,toast:pe,defaultRichColors:k,duration:(dt=z?.duration)!=null?dt:j,className:z?.className,descriptionClassName:z?.descriptionClassName,invert:o,visibleToasts:_,closeButton:(vt=z?.closeButton)!=null?vt:y,interacting:se,position:v,style:z?.style,unstyled:z?.unstyled,classNames:z?.classNames,cancelButtonStyle:z?.cancelButtonStyle,actionButtonStyle:z?.actionButtonStyle,closeButtonAriaLabel:z?.closeButtonAriaLabel,removeToast:G,toasts:le.filter(Xe=>Xe.position==pe.position),heights:R.filter(Xe=>Xe.position==pe.position),setHeights:Y,expandByDefault:m,gap:L,expanded:J,swipeDirections:l.swipeDirections})})):null}))}),vr="/api";class gl extends Error{status;constructor(l,a){super(a),this.status=l,this.name="FetchError"}static isFetchError(l){return l instanceof gl}}async function Xn(n,l){const s=await fetch(`${vr}${n}`);if(!s.ok){const o=await s.text();throw new gl(s.status,o)}return s.json()}async function Mn(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 gl(a.status,s)}return a.json()}async function gg(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 gl(a.status,s)}return a.json()}async function yg(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 gl(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 gl(l.status,a)}if(l.status!==204)return l.json()}function gv(){return{queryKey:["projects"],queryFn:()=>Xn("/projects")}}function to(n){return{queryKey:["tasks",n],queryFn:()=>Xn(`/tasks/project/${n}`),enabled:!!n}}function xf(){return 2e3}function yv(n){return{queryKey:["task",n],queryFn:()=>Xn(`/tasks/${n}`),enabled:!!n,refetchInterval:2e3}}function xv(n){const l=it();return At({mutationFn:a=>Mn(`/tasks/project/${n}`,a),onSuccess:()=>{l.invalidateQueries({queryKey:["tasks",n]})}})}function bv(){const n=it();return At({mutationFn:({taskId:l,...a})=>gg(`/tasks/${l}`,a),onSuccess:l=>{n.invalidateQueries({queryKey:["tasks",l.project_id]}),n.invalidateQueries({queryKey:["task",l.id]})}})}function vv(){const n=it();return At({mutationKey:["moveTask"],mutationFn:({taskId:l,status:a,position:s})=>Mn(`/tasks/${l}/move`,{status:a,position:s}),onSuccess:l=>{n.invalidateQueries({queryKey:["tasks",l.project_id]})}})}function Sv(){const n=it();return At({mutationFn:l=>Gn(`/tasks/${l}`),onSuccess:()=>{n.invalidateQueries({queryKey:["tasks"]})}})}function kv(n){const l=it();return At({mutationFn:a=>Gn(`/tasks/project/${n}/status/${a}`),onSuccess:()=>{l.invalidateQueries({queryKey:["tasks",n]})}})}function xg(n){const l=it();return At({mutationFn:a=>Mn(`/comments/task/${n}`,{author:"user",content:a}),onSuccess:()=>{l.invalidateQueries({queryKey:["task",n]})}})}function wv(n){const l=it();return At({mutationFn:a=>Gn(`/comments/${a}`),onSuccess:()=>{l.invalidateQueries({queryKey:["task",n]})}})}function zv(n){const{onHelp:l,onAddTask:a,onAddTemplate:s,onCloseModal:o,onTroubleshooting:c,onStats:f}=n,m=V.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]);V.useEffect(()=>(window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)),[m])}const jv=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Cv=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,a,s)=>s?s.toUpperCase():a.toLowerCase()),r0=n=>{const l=Cv(n);return l.charAt(0).toUpperCase()+l.slice(1)},bg=(...n)=>n.filter((l,a,s)=>!!l&&l.trim()!==""&&s.indexOf(l)===a).join(" ").trim(),Nv=n=>{for(const l in n)if(l.startsWith("aria-")||l==="role"||l==="title")return!0};var Tv={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 Ev=V.forwardRef(({color:n="currentColor",size:l=24,strokeWidth:a=2,absoluteStrokeWidth:s,className:o="",children:c,iconNode:f,...m},y)=>V.createElement("svg",{ref:y,...Tv,width:l,height:l,stroke:n,strokeWidth:s?Number(a)*24/Number(l):a,className:bg("lucide",o),...!c&&!Nv(m)&&{"aria-hidden":"true"},...m},[...f.map(([p,x])=>V.createElement(p,x)),...Array.isArray(c)?c:[c]]));const ye=(n,l)=>{const a=V.forwardRef(({className:s,...o},c)=>V.createElement(Ev,{ref:c,iconNode:l,className:bg(`lucide-${jv(r0(n))}`,`lucide-${n}`,s),...o}));return a.displayName=r0(n),a};const Av=[["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"}]],vg=ye("activity",Av);const Dv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],_v=ye("arrow-right",Dv);const Mv=[["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"}]],Ov=ye("bot",Mv);const Rv=[["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"}]],Lv=ye("calendar",Rv);const Uv=[["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"}]],Bv=ye("chart-column",Uv);const qv=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],bf=ye("check-check",qv);const Hv=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Qv=ye("check",Hv);const Yv=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],no=ye("chevron-down",Yv);const Fv=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Sg=ye("chevron-left",Fv);const Vv=[["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"}]],kg=ye("circle-alert",Vv);const Gv=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],wg=ye("circle-check-big",Gv);const Xv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],vf=ye("circle-check",Xv);const Iv=[["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=ye("circle-question-mark",Iv);const Kv=[["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"}]],zg=ye("circle-x",Kv);const Zv=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Qi=ye("clock",Zv);const $v=[["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"}]],Pv=ye("copy",$v);const Jv=[["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"}]],Wv=ye("database",Jv);const e2=[["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"}]],jg=ye("external-link",e2);const t2=[["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"}]],n2=ye("eye",t2);const i2=[["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=ye("file-image",i2);const l2=[["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"}]],Sr=ye("file-text",l2);const a2=[["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"}]],r2=ye("git-branch",a2);const s2=[["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"}]],o2=ye("history",s2);const u2=[["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"}]],Cg=ye("image",u2);const c2=[["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=ye("inbox",c2);const f2=[["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"}]],d2=ye("keyboard",f2);const h2=[["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"}]],m2=ye("layout-template",h2);const p2=[["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"}]],g2=ye("lightbulb",p2);const y2=[["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"}]],Ng=ye("list-todo",y2);const x2=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],yr=ye("loader-circle",x2);const b2=[["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"}]],v2=ye("lock",b2);const S2=[["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"}]],Tg=ye("message-circle",S2);const k2=[["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"}]],w2=ye("message-square",k2);const z2=[["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"}]],Eg=ye("pencil",z2);const j2=[["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"}]],C2=ye("play",j2);const N2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],zf=ye("plus",N2);const T2=[["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"}]],E2=ye("puzzle",T2);const A2=[["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"}]],Ag=ye("refresh-cw",A2);const D2=[["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"}]],_2=ye("rocket",D2);const M2=[["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"}]],O2=ye("rotate-ccw",M2);const R2=[["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"}]],L2=ye("send",R2);const U2=[["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"}]],B2=ye("server",U2);const q2=[["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"}]],H2=ye("settings",q2);const Q2=[["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"}]],Y2=ye("settings-2",Q2);const F2=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],V2=ye("terminal",F2);const G2=[["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=ye("trash-2",G2);const X2=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],I2=ye("trending-up",X2);const K2=[["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"}]],Z2=ye("triangle-alert",K2);const $2=[["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=ye("upload",$2);const P2=[["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"}]],J2=ye("user",P2);const W2=[["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"}]],eS=ye("volume-2",W2);const tS=[["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"}]],nS=ye("volume-x",tS);const iS=[["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"}]],Dg=ye("wrench",iS);const lS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],zn=ye("x",lS),aS="3333";function io(){return"/queue"}function rS(){return"claude-queue"}function sS(){return aS}function oS(n=2e3){const[l,a]=V.useState(!1),s=V.useCallback(o=>{navigator.clipboard.writeText(o),a(!0),setTimeout(()=>a(!1),n)},[n]);return{copied:l,copy:s}}function An(n){const{text:l,className:a=""}=n,{copied:s,copy:o}=oS();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(Qv,{className:"w-3.5 h-3.5 text-green-400"}):h.jsx(Pv,{className:"w-3.5 h-3.5 text-zinc-500 hover:text-zinc-300"})})}function uS(n){const{project:l,tasks:a}=n,[s,o]=V.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(C2,{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(Ng,{className:"w-3.5 h-3.5"})}],p=f?f.blocked?{icon:h.jsx(kg,{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(yr,{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(V2,{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(no,{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(An,{text:x.command,className:"mr-2"})]})]},x.command))}),p.action&&h.jsx("p",{className:"text-xs text-zinc-500",children:p.action})]})})]})]})}function cS(n){const{project:l,projects:a,onProjectChange:s,onHelpClick:o,onTroubleshootClick:c,onStatsClick:f,onSettingsClick:m}=n,y=xf(),{data:p=[]}=_n({...to(l?.id||""),enabled:!!l,refetchInterval:y}),x=io();return 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:g=>s(g.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(g=>h.jsx("option",{value:g.id,children:g.name},g.id))})]}),h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx(uS,{project:l,tasks:p}),l&&h.jsxs("div",{className:"flex items-center gap-1.5 bg-zinc-800/50 rounded-lg border border-zinc-700/50 px-2 py-1",children:[h.jsxs("code",{className:"text-xs font-mono text-zinc-400",children:[x," ",l.id]}),h.jsx(An,{text:`${x} ${l.id}`})]}),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(Bv,{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(H2,{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(Dg,{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 fS(n){return{queryKey:["templates",n],queryFn:()=>Xn(`/templates/project/${n}`),enabled:!!n}}function dS(n){const l=it();return At({mutationFn:a=>Mn(`/templates/project/${n}`,a),onSuccess:()=>{l.invalidateQueries({queryKey:["templates",n]})}})}function hS(){const n=it();return At({mutationFn:({templateId:l,...a})=>gg(`/templates/${l}`,a),onSuccess:l=>{n.invalidateQueries({queryKey:["templates",l.project_id]})}})}function mS(){const n=it();return At({mutationFn:({templateId:l,position:a})=>Mn(`/templates/${l}/move`,{position:a}),onSuccess:l=>{n.invalidateQueries({queryKey:["templates",l.project_id]})}})}function pS(){const n=it();return At({mutationFn:l=>Gn(`/templates/${l}`),onSuccess:()=>{n.invalidateQueries({queryKey:["templates"]})}})}const _g="claude-queue-sound-enabled",gS={complete:"/sounds/complete.mp3",question:"/sounds/question.mp3",start:"/sounds/start.mp3"};function Wc(){const n=localStorage.getItem(_g);return n===null?!0:n==="true"}function yS(n){localStorage.setItem(_g,String(n)),window.dispatchEvent(new Event("sound-settings-changed"))}const s0=new Map;function xS(n){let l=s0.get(n);return l||(l=new Audio(gS[n]),s0.set(n,l)),l}function bS(n){return window.addEventListener("sound-settings-changed",n),window.addEventListener("storage",n),()=>{window.removeEventListener("sound-settings-changed",n),window.removeEventListener("storage",n)}}function vS(){return[V.useSyncExternalStore(bS,Wc,()=>!0),yS]}function SS(){const n=V.useRef(Wc());return V.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)}},[]),V.useCallback(a=>{if(!n.current)return;const s=xS(a);s.currentTime=0,s.play().catch(()=>{})},[])}function kS(n){const l=SS(),a=V.useRef(new Map),s=V.useRef(!0);V.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 o0=[{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 fa(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 wS(n){const{content:l,children:a,delay:s=300,maxWidth:o=300}=n,[c,f]=V.useState(!1),[m,y]=V.useState({top:0,left:0}),p=V.useRef(null),x=V.useRef(null);V.useEffect(()=>()=>{x.current&&clearTimeout(x.current)},[]);const g=()=>{x.current=window.setTimeout(()=>{if(p.current){const k=p.current.getBoundingClientRect(),j=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:j,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&&pg.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 zS(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 jS(n){const{task:l,onClick:a}=n,[s,o]=V.useState(!1),[c,f]=V.useState(!1),m=l.status==="in_progress",p=l.status==="done"?zS(l.started_at,l.completed_at):null,x=xg(l.id),g=E=>{E.stopPropagation(),o(!0)},S=E=>{E.stopPropagation(),f(!0)},k=()=>{x.mutate("[ACTION:RESET] Please reset all changes and start this task fresh.",{onSuccess:()=>o(!1)})},j=()=>{x.mutate("[ACTION:CANCEL] Please stop working on this task and move it to backlog.",{onSuccess:()=>f(!1)})};return h.jsxs(h.Fragment,{children:[h.jsxs("div",{onClick:a,className:`
|
|
10
|
+
p-3 rounded-lg border select-none cursor-pointer
|
|
11
|
+
${m&&!l.blocked?"in-progress-glow":""}
|
|
12
|
+
${l.blocked?"bg-red-900/20 border-red-500/50 hover:border-red-500":m?"bg-zinc-900 border-orange-500/30":"bg-zinc-900 border-zinc-800 hover:border-zinc-700"}
|
|
13
|
+
`,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"}),m&&!l.blocked&&h.jsx(v2,{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&&!m&&!p&&h.jsx(wS,{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 cursor-help",children:h.jsx("span",{className:"text-xs line-clamp-2",children:l.description})})}),p&&h.jsxs("div",{className:"mt-2 flex items-center gap-1.5 text-zinc-500",children:[h.jsx(Qi,{className:"w-3 h-3"}),h.jsx("span",{className:"text-xs",children:p})]}),m&&h.jsxs("div",{className:"mt-3 flex items-center gap-2 pt-2 border-t border-zinc-800",children:[h.jsxs("button",{onClick:g,disabled:x.isPending,className:"flex items-center gap-1.5 px-2 py-1 text-xs text-yellow-400 hover:text-yellow-300 hover:bg-yellow-900/20 rounded transition-colors",title:"Discard changes and start this task from scratch",children:[h.jsx(O2,{className:"w-3 h-3"}),"Start Over"]}),h.jsxs("button",{onClick:S,disabled:x.isPending,className:"flex items-center gap-1.5 px-2 py-1 text-xs text-red-400 hover:text-red-300 hover:bg-red-900/20 rounded transition-colors",title:"Stop work, discard changes, and return task to Ready",children:[h.jsx(zg,{className:"w-3 h-3"}),"Abort Task"]})]})]}),s&&h.jsx(fa,{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:x.isPending,onConfirm:k,onCancel:()=>o(!1)}),c&&h.jsx(fa,{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:x.isPending,onConfirm:j,onCancel:()=>f(!1)})]})}const aa="application/x-task",u0="application/x-template",CS={backlog:h.jsx(wf,{className:"w-4 h-4"}),ready:h.jsx(vf,{className:"w-4 h-4"}),in_progress:h.jsx(Qi,{className:"w-4 h-4"}),done:h.jsx(bf,{className:"w-4 h-4"})},NS={backlog:{title:"Backlog",description:"Tasks waiting to be prioritized. Move them to Ready when you want Claude to work on them."},ready:{title:"Ready",description:"Tasks ready for Claude to pick up. Claude will claim tasks from here in order."},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."}},c0="claude-queue-column-collapsed-";function TS(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:j}=n,[E,_]=V.useState(!1),[z,U]=V.useState(!1),[L,ne]=V.useState(()=>localStorage.getItem(`${c0}${l}`)==="true"),[ee,O]=V.useState(null),[P,le]=V.useState(null),ue=V.useRef(null),R=l==="in_progress",Y=()=>{const v=!L;ne(v),localStorage.setItem(`${c0}${l}`,String(v))};V.useEffect(()=>{if(!z)return;function v(Q){ue.current&&!ue.current.contains(Q.target)&&U(!1)}return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[z]);const J=NS[l],de=V.useMemo(()=>{if(s.length===0)return null;let v=s[0].updated_at;for(const Q of s)Q.updated_at>v&&(v=Q.updated_at);return v},[s]),se=()=>{c&&(c(),_(!1))},W=v=>{const Q=v.dataTransfer.types.includes(aa),te=v.dataTransfer.types.includes(u0);if(!(!Q&&!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",Q&&ee===null&&O(s.length)}},D=v=>{v.currentTarget.contains(v.relatedTarget)||O(null)},Z=v=>{if(v.preventDefault(),O(null),le(null),R)return;const Q=v.dataTransfer.getData(u0);if(Q&&p&&(l==="backlog"||l==="ready")){const{template:pe}=JSON.parse(Q);p(pe,l);return}const te=v.dataTransfer.getData(aa);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,Q)=>{v.dataTransfer.effectAllowed="move",v.dataTransfer.setData(aa,JSON.stringify({taskId:Q.id})),le(Q.id),g()},Se=()=>{le(null),O(null),S()},C=v=>{v.dataTransfer.types.includes(aa)&&(R||(v.preventDefault(),v.stopPropagation(),ee!==0&&O(0)))},T=v=>{if(!v.dataTransfer.types.includes(aa)||R)return;v.preventDefault(),v.stopPropagation();const Q=s.length;ee!==Q&&O(Q)},G=(v,Q)=>{if(!v.dataTransfer.types.includes(aa)||R)return;v.preventDefault(),v.stopPropagation();const te=v.currentTarget.getBoundingClientRect(),ae=(te.top+te.bottom)/2,me=v.clientY<=ae?Q:Q+1;me!==ee&&O(me)};return L?h.jsxs("div",{onDragOver:W,onDragLeave:D,onDrop:Z,className:`
|
|
14
|
+
shrink-0 flex flex-col items-center px-2 py-3 select-none cursor-pointer
|
|
15
|
+
hover:bg-zinc-800/50 transition-colors
|
|
16
|
+
${m?"border-r border-zinc-800":""}
|
|
17
|
+
`,onClick:Y,title:`Expand ${a}`,children:[h.jsx("span",{className:"text-zinc-500",children:CS[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 ${z?"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:Y,className:"p-1 text-zinc-500 hover:text-zinc-400 hover:bg-zinc-800 rounded transition-colors",title:`Collapse ${a}`,children:h.jsx(Sg,{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(!z),className:"p-1 text-zinc-600 hover:text-zinc-400 rounded transition-colors",children:h.jsx(Sf,{className:"w-3 h-3"})}),z&&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:J.title})}),h.jsx("p",{className:"mt-1 text-xs text-zinc-400 leading-relaxed",children:J.description})]})]})]}),s.length>0&&c&&h.jsx("button",{onClick:()=>_(!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:D,onDrop:Z,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,Q)=>{const te=v.id===P,ae=v.id===k,me=ee===Q&&Q>0&&(!P||P!==v.id);return h.jsxs("div",{onDragOver:pe=>G(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:v.status!=="in_progress",onDragStart:pe=>ce(pe,v),onDragEnd:Se,className:`${te?"opacity-50":""} ${ae?"just-dropped rounded-lg":""}`,children:h.jsx(jS,{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"}),j&&h.jsxs("button",{onClick:j,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(fa,{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:()=>_(!1)})]})}function ES(n){const{template:l,onClick:a}=n,[s,o]=V.useState(!1),c=pS(),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(Sr,{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(fa,{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 f0="claude-queue-templates-collapsed",ra="application/x-template";function AS(n){const{templates:l,onTemplateClick:a,onAddClick:s,onMoveTemplate:o,onTemplateDropOnColumn:c,isDragging:f,onDragStart:m,onDragEnd:y}=n,[p,x]=V.useState(!1),[g,S]=V.useState(()=>localStorage.getItem(f0)==="true"),[k,j]=V.useState(null),[E,_]=V.useState(null),z=V.useRef(null);V.useEffect(()=>{if(!p)return;function Y(J){z.current&&!z.current.contains(J.target)&&x(!1)}return document.addEventListener("mousedown",Y),()=>document.removeEventListener("mousedown",Y)},[p]);const U=()=>{const Y=!g;S(Y),localStorage.setItem(f0,String(Y))},L=Y=>{Y.dataTransfer.types.includes(ra)&&(Y.preventDefault(),Y.dataTransfer.dropEffect="move")},ne=Y=>{Y.currentTarget.contains(Y.relatedTarget)||j(null)},ee=Y=>{Y.preventDefault(),j(null),_(null);const J=Y.dataTransfer.getData(ra);if(!J)return;const{templateId:de}=JSON.parse(J);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)},O=(Y,J)=>{Y.dataTransfer.effectAllowed="move",Y.dataTransfer.setData(ra,JSON.stringify({templateId:J.id,template:J})),_(J.id),m()},P=()=>{_(null),j(null),y()},le=Y=>{Y.dataTransfer.types.includes(ra)&&(Y.preventDefault(),Y.stopPropagation(),k!==0&&j(0))},ue=Y=>{if(!Y.dataTransfer.types.includes(ra))return;Y.preventDefault(),Y.stopPropagation();const J=l.length;k!==J&&j(J)},R=(Y,J)=>{if(!Y.dataTransfer.types.includes(ra))return;Y.preventDefault(),Y.stopPropagation();const de=Y.currentTarget.getBoundingClientRect(),se=(de.top+de.bottom)/2,W=Y.clientY<=se?J:J+1;W!==k&&j(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(m2,{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(Sg,{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:z,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: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((Y,J)=>{const de=Y.id===E,se=k===J&&J>0&&E!==Y.id;return h.jsxs("div",{onDragOver:W=>R(W,J),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=>O(W,Y),onDragEnd:P,className:de?"opacity-50":"",children:h.jsx(ES,{template:Y,onClick:()=>a(Y)})})]},Y.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 DS(n,l){const a={};return(n[n.length-1]===""?[...n,""]:n).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const _S=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,MS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,OS={};function d0(n,l){return(OS.jsx?MS:_S).test(n)}const RS=/[ \t\n\f\r]/g;function LS(n){return typeof n=="object"?n.type==="text"?h0(n.value):!1:h0(n)}function h0(n){return n.replace(RS,"")===""}class kr{constructor(l,a,s){this.normal=a,this.property=l,s&&(this.space=s)}}kr.prototype.normal={};kr.prototype.property={};kr.prototype.space=void 0;function Mg(n,l){const a={},s={};for(const o of n)Object.assign(a,o.property),Object.assign(s,o.normal);return new kr(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 US=0;const Te=yl(),ft=yl(),tf=yl(),ie=yl(),Ze=yl(),ca=yl(),un=yl();function yl(){return 2**++US}const nf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Te,booleanish:ft,commaOrSpaceSeparated:un,commaSeparated:ca,number:ie,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),m0(this,"space",o),typeof s=="number")for(;++c<Cc.length;){const f=Cc[c];m0(this,Cc[c],(s&nf[f])===nf[f])}}}Nf.prototype.defined=!0;function m0(n,l,a){a&&(n[l]=a)}function ma(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 kr(l,a,n.space)}const Og=ma({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 Rg(n,l){return l in n?n[l]:l}function Lg(n,l){return Rg(n,l.toLowerCase())}const BS=ma({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ca,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|ca,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:ie,hidden:tf,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:Lg}),qS=ma({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:ca,g2:ca,glyphName:ca,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:Rg}),Ug=ma({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()}}),Bg=ma({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Lg}),qg=ma({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,l){return"xml:"+l.slice(3).toLowerCase()}}),HS={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"},QS=/[A-Z]/g,p0=/-[a-z]/g,YS=/^data[-\w.:]+$/i;function FS(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"&&YS.test(l)){if(l.charAt(4)==="-"){const c=l.slice(5).replace(p0,GS);s="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=l.slice(4);if(!p0.test(c)){let f=c.replace(QS,VS);f.charAt(0)!=="-"&&(f="-"+f),l="data"+f}}o=Nf}return new o(s,l)}function VS(n){return"-"+n.toLowerCase()}function GS(n){return n.charAt(1).toUpperCase()}const XS=Mg([Og,BS,Ug,Bg,qg],"html"),Tf=Mg([Og,qS,Ug,Bg,qg],"svg");function IS(n){return n.join(" ").trim()}var sa={},Nc,g0;function KS(){if(g0)return Nc;g0=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=`
|
|
18
|
+
`,p="/",x="*",g="",S="comment",k="declaration";function j(_,z){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];z=z||{};var U=1,L=1;function ne(se){var W=se.match(l);W&&(U+=W.length);var D=se.lastIndexOf(y);L=~D?se.length-D:L+se.length}function ee(){var se={line:U,column:L};return function(W){return W.position=new O(se),ue(),W}}function O(se){this.start=se,this.end={line:U,column:L},this.source=z.source}O.prototype.content=_;function P(se){var W=new Error(z.source+":"+U+":"+L+": "+se);if(W.reason=se,W.filename=z.source,W.line=U,W.column=L,W.source=_,!z.silent)throw W}function le(se){var W=se.exec(_);if(W){var D=W[0];return ne(D),_=_.slice(D.length),W}}function ue(){le(a)}function R(se){var W;for(se=se||[];W=Y();)W!==!1&&se.push(W);return se}function Y(){var se=ee();if(!(p!=_.charAt(0)||x!=_.charAt(1))){for(var W=2;g!=_.charAt(W)&&(x!=_.charAt(W)||p!=_.charAt(W+1));)++W;if(W+=2,g===_.charAt(W-1))return P("End of comment missing");var D=_.slice(2,W-2);return L+=2,ne(D),_=_.slice(W),L+=2,se({type:S,comment:D})}}function J(){var se=ee(),W=le(s);if(W){if(Y(),!le(o))return P("property missing ':'");var D=le(c),Z=se({type:k,property:E(W[0].replace(n,g)),value:D?E(D[0].replace(n,g)):g});return le(f),Z}}function de(){var se=[];R(se);for(var W;W=J();)W!==!1&&(se.push(W),R(se));return se}return ue(),de()}function E(_){return _?_.replace(m,g):g}return Nc=j,Nc}var y0;function ZS(){if(y0)return sa;y0=1;var n=sa&&sa.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(sa,"__esModule",{value:!0}),sa.default=a;const l=n(KS());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 sa}var or={},x0;function $S(){if(x0)return or;x0=1,Object.defineProperty(or,"__esModule",{value:!0}),or.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 or.camelCase=y,or}var ur,b0;function PS(){if(b0)return ur;b0=1;var n=ur&&ur.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},l=n(ZS()),a=$S();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,ur=s,ur}var JS=PS();const WS=eo(JS),Hg=Qg("end"),Ef=Qg("start");function Qg(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 ek(n){const l=Ef(n),a=Hg(n);if(l&&a)return{start:l,end:a}}function hr(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?v0(n.position):"start"in n||"end"in n?v0(n):"line"in n||"column"in n?lf(n):""}function lf(n){return S0(n&&n.line)+":"+S0(n&&n.column)}function v0(n){return lf(n&&n.start)+"-"+lf(n&&n.end)}function S0(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=hr(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,tk=new Map,nk=/[A-Z]/g,ik=new Set(["table","tbody","thead","tfoot","tr"]),lk=new Set(["td","th"]),Yg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ak(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=hk(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=dk(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:XS,stylePropertyNameCase:l.stylePropertyNameCase||"dom",tableCellAlignToStyle:l.tableCellAlignToStyle!==!1},c=Fg(o,n,void 0);return c&&typeof c!="string"?c:o.create(n,o.Fragment,{children:c||void 0},void 0)}function Fg(n,l,a){if(l.type==="element")return rk(n,l,a);if(l.type==="mdxFlowExpression"||l.type==="mdxTextExpression")return sk(n,l);if(l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement")return uk(n,l,a);if(l.type==="mdxjsEsm")return ok(n,l);if(l.type==="root")return ck(n,l,a);if(l.type==="text")return fk(n,l)}function rk(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=Gg(n,l.tagName,!1),f=mk(n,l);let m=_f(n,l);return ik.has(l.tagName)&&(m=m.filter(function(y){return typeof y=="string"?!LS(y):!0})),Vg(n,f,c,l),Df(f,m),n.ancestors.pop(),n.schema=s,n.create(l,c,f,a)}function sk(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 ok(n,l){if(l.data&&l.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(l.data.estree);xr(n,l.position)}function uk(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:Gg(n,l.name,!0),f=pk(n,l),m=_f(n,l);return Vg(n,f,c,l),Df(f,m),n.ancestors.pop(),n.schema=s,n.create(l,c,f,a)}function ck(n,l,a){const s={};return Df(s,_f(n,l)),n.create(l,n.Fragment,s,a)}function fk(n,l){return l.value}function Vg(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 dk(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 hk(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 mk(n,l){const a={};let s,o;for(o in l.properties)if(o!=="children"&&Af.call(l.properties,o)){const c=gk(n,o,l.properties[o]);if(c){const[f,m]=c;n.tableCellAlignToStyle&&f==="align"&&typeof m=="string"&&lk.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 pk(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:tk;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=Fg(n,c,f);m!==void 0&&a.push(m)}return a}function gk(n,l,a){const s=FS(n.schema,l);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=s.commaSeparated?DS(a):IS(a)),s.property==="style"){let o=typeof a=="object"?a:yk(n,String(a));return n.stylePropertyNameCase==="css"&&(o=xk(o)),["style",o]}return[n.elementAttributeNameCase==="react"&&s.space?HS[s.property]||s.property:s.attribute,a]}}function yk(n,l){try{return WS(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=Yg+"#cannot-parse-style-attribute",o}}function Gg(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=d0(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=d0(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=Yg+"#cannot-handle-mdx-estrees-without-createevaluater",a}function xk(n){const l={};let a;for(a in n)Af.call(n,a)&&(l[bk(a)]=n[a]);return l}function bk(n){let l=n.replace(nk,vk);return l.slice(0,3)==="ms-"&&(l="-"+l),l}function vk(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"]},Sk={};function Mf(n,l){const a=Sk,s=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,o=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return Xg(n,s,o)}function Xg(n,l,a){if(kk(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 k0(n.children,l,a)}return Array.isArray(n)?k0(n,l,a):""}function k0(n,l,a){const s=[];let o=-1;for(;++o<n.length;)s[o]=Xg(n[o],l,a);return s.join("")}function kk(n){return!!(n&&typeof n=="object")}const w0=document.createElement("i");function Of(n){const l="&"+n+";";w0.innerHTML=l;const a=w0.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 z0={}.hasOwnProperty;function Ig(n){const l={};let a=-1;for(;++a<n.length;)wk(l,n[a]);return l}function wk(n,l){let a;for(a in l){const o=(z0.call(n,a)?n[a]:void 0)||(n[a]={}),c=l[a];let f;if(c)for(f in c){z0.call(o,f)||(o[f]=[]);const m=c[f];zk(o[f],Array.isArray(m)?m:m?[m]:[])}}}function zk(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 Kg(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 Dn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qt=Yi(/[A-Za-z]/),Lt=Yi(/[\dA-Za-z]/),jk=Yi(/[#-'*+\--9=?A-Z^-~]/);function Zs(n){return n!==null&&(n<32||n===127)}const af=Yi(/\d/),Ck=Yi(/[\dA-Fa-f]/),Nk=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")),pl=Yi(/\s/);function Yi(n){return l;function l(a){return a!==null&&a>-1&&n.test(String.fromCharCode(a))}}function pa(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 Tk={tokenize:Ek};function Ek(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 Ak={tokenize:Dk},j0={tokenize:_k};function Dk(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,O;for(;ee--;)if(l.events[ee][0]==="exit"&&l.events[ee][1].type==="chunkFlow"){O=l.events[ee][1].end;break}z(s);let P=ne;for(;P<l.events.length;)l.events[P][1].end={...O},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 j(L);l.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return l.containerState={},n.check(j0,x,g)(L)}function x(L){return o&&U(),z(s),S(L)}function g(L){return l.parser.lazy[l.now().line]=s!==a.length,f=l.now().offset,j(L)}function S(L){return l.containerState={},n.attempt(j0,k,j)(L)}function k(L){return s++,a.push([l.currentConstruct,l.containerState]),S(L)}function j(L){if(L===null){o&&U(),z(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){_(n.exit("chunkFlow"),!0),z(0),n.consume(L);return}return xe(L)?(n.consume(L),_(n.exit("chunkFlow")),s=0,l.interrupt=void 0,m):(n.consume(L),E)}function _(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 O=o.events.length;for(;O--;)if(o.events[O][1].start.offset<f&&(!o.events[O][1].end||o.events[O][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(z(s),O=P;O<l.events.length;)l.events[O][1].end={...R},O++;cn(l.events,le+1,0,l.events.slice(P)),l.events.length=O}}function z(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 _k(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 da(n){if(n===null||Ke(n)||pl(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:Mk,tokenize:Ok};function Mk(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};C0(g,-y),C0(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,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 Ok(n,l){const a=this.parser.constructs.attentionMarkers.null,s=this.previous,o=da(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=da(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 C0(n,l){n.column+=l,n.offset+=l,n._bufferIndex+=l}const Rk={name:"autolink",tokenize:Lk};function Lk(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||Zs(k)?a(k):(n.consume(k),y)}function p(k){return k===64?(n.consume(k),x):jk(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 j=k===45?S:g;return n.consume(k),j}return a(k)}}const wr={partial:!0,tokenize:Uk};function Uk(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 Zg={continuation:{tokenize:qk},exit:Hk,name:"blockQuote",tokenize:Bk};function Bk(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 qk(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(Zg,l,a)(f)}}function Hk(n){n.exit("blockQuote")}const $g={name:"characterEscape",tokenize:Qk};function Qk(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 Nk(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),l):a(c)}}const Pg={name:"characterReference",tokenize:Yk};function Yk(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=Ck,x):(n.enter("characterReferenceValue"),c=7,f=af,x(g))}function x(g){if(g===59&&o){const S=n.exit("characterReferenceValue");return f===Lt&&!Of(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 N0={partial:!0,tokenize:Vk},T0={concrete:!0,name:"codeFenced",tokenize:Fk};function Fk(n,l,a){const s=this,o={partial:!0,tokenize:ee};let c=0,f=0,m;return y;function y(O){return p(O)}function p(O){const P=s.events[s.events.length-1];return c=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,m=O,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),x(O)}function x(O){return O===m?(f++,n.consume(O),x):f<3?a(O):(n.exit("codeFencedFenceSequence"),_e(O)?Le(n,g,"whitespace")(O):g(O))}function g(O){return O===null||xe(O)?(n.exit("codeFencedFence"),s.interrupt?l(O):n.check(N0,E,ne)(O)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),S(O))}function S(O){return O===null||xe(O)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),g(O)):_e(O)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Le(n,k,"whitespace")(O)):O===96&&O===m?a(O):(n.consume(O),S)}function k(O){return O===null||xe(O)?g(O):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),j(O))}function j(O){return O===null||xe(O)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),g(O)):O===96&&O===m?a(O):(n.consume(O),j)}function E(O){return n.attempt(o,ne,_)(O)}function _(O){return n.enter("lineEnding"),n.consume(O),n.exit("lineEnding"),z}function z(O){return c>0&&_e(O)?Le(n,U,"linePrefix",c+1)(O):U(O)}function U(O){return O===null||xe(O)?n.check(N0,E,ne)(O):(n.enter("codeFlowValue"),L(O))}function L(O){return O===null||xe(O)?(n.exit("codeFlowValue"),U(O)):(n.consume(O),L)}function ne(O){return n.exit("codeFenced"),l(O)}function ee(O,P,le){let ue=0;return R;function R(W){return O.enter("lineEnding"),O.consume(W),O.exit("lineEnding"),Y}function Y(W){return O.enter("codeFencedFence"),_e(W)?Le(O,J,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):J(W)}function J(W){return W===m?(O.enter("codeFencedFenceSequence"),de(W)):le(W)}function de(W){return W===m?(ue++,O.consume(W),de):ue>=f?(O.exit("codeFencedFenceSequence"),_e(W)?Le(O,se,"whitespace")(W):se(W)):le(W)}function se(W){return W===null||xe(W)?(O.exit("codeFencedFence"),P(W)):le(W)}}}function Vk(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:Xk},Gk={partial:!0,tokenize:Ik};function Xk(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(Gk,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 Ik(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 Kk={name:"codeText",previous:$k,resolve:Zk,tokenize:Pk};function Zk(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 $k(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Pk(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 Jk{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&&cr(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),cr(this.left,l)}unshift(l){this.setCursor(0),this.right.push(l)}unshiftMany(l){this.setCursor(0),cr(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);cr(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-l,Number.POSITIVE_INFINITY);cr(this.left,a.reverse())}}}function cr(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 Jg(n){const l={};let a=-1,s,o,c,f,m,y,p;const x=new Jk(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,Wk(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 Wk(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,j=0,E=0;const _=[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,_.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):_.pop(),S=_.length;S--;){const z=m.slice(_[S],_[S+1]),U=c.pop();y.push([U,U+z.length-1]),n.splice(U,2,z)}for(y.reverse(),S=-1;++S<y.length;)p[j+y[S][0]]=j+y[S][1],j+=y[S][1]-y[S][0]-1;return p}const ew={resolve:nw,tokenize:iw},tw={partial:!0,tokenize:lw};function nw(n){return Jg(n),n}function iw(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(tw,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 lw(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 Wg(n,l,a,s,o,c,f,m,y){const p=y||Number.POSITIVE_INFINITY;let x=0;return g;function g(z){return z===60?(n.enter(s),n.enter(o),n.enter(c),n.consume(z),n.exit(c),S):z===null||z===32||z===41||Zs(z)?a(z):(n.enter(s),n.enter(f),n.enter(m),n.enter("chunkString",{contentType:"string"}),E(z))}function S(z){return z===62?(n.enter(c),n.consume(z),n.exit(c),n.exit(o),n.exit(s),l):(n.enter(m),n.enter("chunkString",{contentType:"string"}),k(z))}function k(z){return z===62?(n.exit("chunkString"),n.exit(m),S(z)):z===null||z===60||xe(z)?a(z):(n.consume(z),z===92?j:k)}function j(z){return z===60||z===62||z===92?(n.consume(z),k):k(z)}function E(z){return!x&&(z===null||z===41||Ke(z))?(n.exit("chunkString"),n.exit(m),n.exit(f),n.exit(s),l(z)):x<p&&z===40?(n.consume(z),x++,E):z===41?(n.consume(z),x--,E):z===null||z===32||z===40||Zs(z)?a(z):(n.consume(z),z===92?_:E)}function _(z){return z===40||z===41||z===92?(n.consume(z),E):E(z)}}function ey(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 ty(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 mr(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 aw={name:"definition",tokenize:sw},rw={partial:!0,tokenize:ow};function sw(n,l,a){const s=this;let o;return c;function c(k){return n.enter("definition"),f(k)}function f(k){return ey.call(s,n,m,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(k)}function m(k){return o=Dn(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)?mr(n,p)(k):p(k)}function p(k){return Wg(n,x,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(k)}function x(k){return n.attempt(rw,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 ow(n,l,a){return s;function s(m){return Ke(m)?mr(n,o)(m):a(m)}function o(m){return ty(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 uw={name:"hardBreakEscape",tokenize:cw};function cw(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 fw={name:"headingAtx",resolve:dw,tokenize:hw};function dw(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 hw(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 mw=["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"],E0=["pre","script","style","textarea"],pw={concrete:!0,name:"htmlFlow",resolveTo:xw,tokenize:bw},gw={partial:!0,tokenize:Sw},yw={partial:!0,tokenize:vw};function xw(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 bw(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),_):a(v)}function S(v){return v===45?(n.consume(v),o=2,k):v===91?(n.consume(v),o=5,m=0,j):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 j(v){const Q="CDATA[";return v===Q.charCodeAt(m++)?(n.consume(v),m===Q.length?s.interrupt?l:J:j):a(v)}function E(v){return Qt(v)?(n.consume(v),f=String.fromCharCode(v),_):a(v)}function _(v){if(v===null||v===47||v===62||Ke(v)){const Q=v===47,te=f.toLowerCase();return!Q&&!c&&E0.includes(te)?(o=1,s.interrupt?l(v):J(v)):mw.includes(f.toLowerCase())?(o=6,Q?(n.consume(v),z):s.interrupt?l(v):J(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),_):a(v)}function z(v){return v===62?(n.consume(v),s.interrupt?l:J):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),O):_e(v)?(n.consume(v),ee):L(v)}function O(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),O):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),Y):a(v)}function Y(v){return v===null||xe(v)?J(v):_e(v)?(n.consume(v),Y):a(v)}function J(v){return v===45&&o===2?(n.consume(v),D):v===60&&o===1?(n.consume(v),Z):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(gw,G,de)(v)):v===null||xe(v)?(n.exit("htmlFlowData"),de(v)):(n.consume(v),J)}function de(v){return n.check(yw,se,G)(v)}function se(v){return n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),W}function W(v){return v===null||xe(v)?de(v):(n.enter("htmlFlowData"),J(v))}function D(v){return v===45?(n.consume(v),C):J(v)}function Z(v){return v===47?(n.consume(v),f="",ce):J(v)}function ce(v){if(v===62){const Q=f.toLowerCase();return E0.includes(Q)?(n.consume(v),T):J(v)}return Qt(v)&&f.length<8?(n.consume(v),f+=String.fromCharCode(v),ce):J(v)}function Se(v){return v===93?(n.consume(v),C):J(v)}function C(v){return v===62?(n.consume(v),T):v===45&&o===2?(n.consume(v),C):J(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 vw(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 Sw(n,l,a){return s;function s(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),n.attempt(wr,l,a)}}const kw={name:"htmlText",tokenize:ww};function ww(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,j):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,Z(C)):(n.consume(C),g)}function S(C){return C===45?(n.consume(C),k):g(C)}function k(C){return C===62?D(C):C===45?S(C):g(C)}function j(C){const T="CDATA[";return C===T.charCodeAt(c++)?(n.consume(C),c===T.length?E:j):a(C)}function E(C){return C===null?a(C):C===93?(n.consume(C),_):xe(C)?(f=E,Z(C)):(n.consume(C),E)}function _(C){return C===93?(n.consume(C),z):E(C)}function z(C){return C===62?D(C):C===93?(n.consume(C),z):E(C)}function U(C){return C===null||C===62?D(C):xe(C)?(f=U,Z(C)):(n.consume(C),U)}function L(C){return C===null?a(C):C===63?(n.consume(C),ne):xe(C)?(f=L,Z(C)):(n.consume(C),L)}function ne(C){return C===62?D(C):L(C)}function ee(C){return Qt(C)?(n.consume(C),O):a(C)}function O(C){return C===45||Lt(C)?(n.consume(C),O):P(C)}function P(C){return xe(C)?(f=P,Z(C)):_e(C)?(n.consume(C),P):D(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),D):C===58||C===95||Qt(C)?(n.consume(C),R):xe(C)?(f=ue,Z(C)):_e(C)?(n.consume(C),ue):D(C)}function R(C){return C===45||C===46||C===58||C===95||Lt(C)?(n.consume(C),R):Y(C)}function Y(C){return C===61?(n.consume(C),J):xe(C)?(f=Y,Z(C)):_e(C)?(n.consume(C),Y):ue(C)}function J(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=J,Z(C)):_e(C)?(n.consume(C),J):(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,Z(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 D(C){return C===62?(n.consume(C),n.exit("htmlTextData"),n.exit("htmlText"),l):a(C)}function Z(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:Nw,resolveTo:Tw,tokenize:Ew},zw={tokenize:Aw},jw={tokenize:Dw},Cw={tokenize:_w};function Nw(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 Tw(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 Ew(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(Dn(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(zw,x,f?x:g)(S):S===91?n.attempt(jw,x,f?p:g)(S):f?x(S):g(S)}function p(S){return n.attempt(Cw,x,g)(S)}function x(S){return l(S)}function g(S){return c._balanced=!0,a(S)}}function Aw(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)?mr(n,c)(g):c(g)}function c(g){return g===41?x(g):Wg(n,f,m,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function f(g){return Ke(g)?mr(n,y)(g):x(g)}function m(g){return a(g)}function y(g){return g===34||g===39||g===40?ty(n,p,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):x(g)}function p(g){return Ke(g)?mr(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 Dw(n,l,a){const s=this;return o;function o(m){return ey.call(s,n,c,f,"reference","referenceMarker","referenceString")(m)}function c(m){return s.parser.defined.includes(Dn(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)))?l(m):a(m)}function f(m){return a(m)}}function _w(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 Mw={name:"labelStartImage",resolveAll:Rf.resolveAll,tokenize:Ow};function Ow(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 Rw={name:"labelStartLink",resolveAll:Rf.resolveAll,tokenize:Lw};function Lw(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:Uw};function Uw(n,l){return a;function a(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),Le(n,l,"linePrefix")}}const Xs={name:"thematicBreak",tokenize:Bw};function Bw(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:Yw},exit:Vw,name:"list",tokenize:Qw},qw={partial:!0,tokenize:Gw},Hw={partial:!0,tokenize:Fw};function Qw(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 j=s.containerState.type||(k===42||k===43||k===45?"listUnordered":"listOrdered");if(j==="listUnordered"?!s.containerState.marker||k===s.containerState.marker:af(k)){if(s.containerState.type||(s.containerState.type=j,n.enter(j,{_container:!0})),j==="listUnordered")return n.enter("listItemPrefix"),k===42||k===45?n.check(Xs,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(wr,s.interrupt?a:x,n.attempt(qw,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 Yw(n,l,a){const s=this;return s.containerState._closeFlow=void 0,n.check(wr,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(Hw,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 Fw(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 Vw(n){n.exit(this.containerState.type)}function Gw(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 A0={name:"setextUnderline",resolveTo:Xw,tokenize:Iw};function Xw(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 Iw(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 Kw={tokenize:Zw};function Zw(n){const l=this,a=n.attempt(wr,s,n.attempt(this.parser.constructs.flowInitial,o,Le(n,n.attempt(this.parser.constructs.flow,o,n.attempt(ew,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 $w={resolveAll:iy()},Pw=ny("string"),Jw=ny("text");function ny(n){return{resolveAll:iy(n==="text"?Ww: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 iy(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 Ww(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 ez={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:Zg},tz={91:aw},nz={[-2]:Ec,[-1]:Ec,32:Ec},iz={35:fw,42:Xs,45:[A0,Xs],60:pw,61:A0,95:Xs,96:T0,126:T0},lz={38:Pg,92:$g},az={[-5]:Ac,[-4]:Ac,[-3]:Ac,33:Mw,38:Pg,42:rf,60:[Rk,kw],91:Rw,92:[uw,$g],93:Rf,95:rf,96:Kk},rz={null:[rf,$w]},sz={null:[42,95]},oz={null:[]},uz=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:sz,contentInitial:tz,disable:oz,document:ez,flow:iz,flowInitial:nz,insideSpan:rz,string:lz,text:az},Symbol.toStringTag,{value:"Module"}));function cz(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(O),consume:U,enter:L,exit:ne,interrupt:P(O,{interrupt:!0})},p={code:null,containerState:{},defineSkip:E,events:[],now:j,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(Y){return f=wn(f,Y),_(),f[f.length-1]!==null?[]:(le(l,0),p.events=ao(c,p.events,p),p.events)}function S(Y,J){return dz(k(Y),J)}function k(Y){return fz(f,Y)}function j(){const{_bufferIndex:Y,_index:J,line:de,column:se,offset:W}=s;return{_bufferIndex:Y,_index:J,line:de,column:se,offset:W}}function E(Y){o[Y.line]=Y.column,R()}function _(){let Y;for(;s._index<f.length;){const J=f[s._index];if(typeof J=="string")for(Y=s._index,s._bufferIndex<0&&(s._bufferIndex=0);s._index===Y&&s._bufferIndex<J.length;)z(J.charCodeAt(s._bufferIndex));else z(J)}}function z(Y){x=x(Y)}function U(Y){xe(Y)?(s.line++,s.column=1,s.offset+=Y===-3?2:1,R()):Y!==-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=Y}function L(Y,J){const de=J||{};return de.type=Y,de.start=j(),p.events.push(["enter",de,p]),m.push(de),de}function ne(Y){const J=m.pop();return J.end=j(),p.events.push(["exit",J,p]),J}function ee(Y,J){le(Y,J.from)}function O(Y,J){J.restore()}function P(Y,J){return de;function de(se,W,D){let Z,ce,Se,C;return Array.isArray(se)?G(se):"tokenize"in se?G([se]):T(se);function T(ae){return me;function me(pe){const we=pe!==null&&ae[pe],dt=pe!==null&&ae.null,vt=[...Array.isArray(we)?we:we?[we]:[],...Array.isArray(dt)?dt:dt?[dt]:[]];return G(vt)(pe)}}function G(ae){return Z=ae,ce=0,ae.length===0?D: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(J?Object.assign(Object.create(p),J):p,y,Q,te)(pe)}}function Q(ae){return Y(Se,C),W}function te(ae){return C.restore(),++ce<Z.length?v(Z[ce]):D}}}function le(Y,J){Y.resolveAll&&!c.includes(Y)&&c.push(Y),Y.resolve&&cn(p.events,J,p.events.length-J,Y.resolve(p.events.slice(J),p)),Y.resolveTo&&(p.events=Y.resolveTo(p.events,p))}function ue(){const Y=j(),J=p.previous,de=p.currentConstruct,se=p.events.length,W=Array.from(m);return{from:se,restore:D};function D(){s=Y,p.previous=J,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 fz(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 dz(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=`
|
|
19
|
+
`;break}case-3:{f=`\r
|
|
20
|
+
`;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 hz(n){const s={constructs:Ig([uz,...(n||{}).extensions||[]]),content:o(Tk),defined:[],document:o(Ak),flow:o(Kw),lazy:{},string:o(Pw),text:o(Jw)};return s;function o(c){return f;function f(m){return cz(s,c,m)}}}function mz(n){for(;!Jg(n););return n}const D0=/[\0\t\n\r]/g;function pz(){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(D0.lastIndex=g,p=D0.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 gz=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function yz(n){return n.replace(gz,xz)}function xz(n,l,a){if(l)return l;if(a.charCodeAt(0)===35){const o=a.charCodeAt(1),c=o===120||o===88;return Kg(a.slice(c?2:1),c?16:10)}return Of(a)||n}const ly={}.hasOwnProperty;function bz(n,l,a){return typeof l!="string"&&(a=l,l=void 0),vz(a)(mz(hz(a).document().write(pz()(n,l,!0))))}function vz(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(vt),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:c(vt,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(jn),hardBreakTrailing:c(jn),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(hi,g),listUnordered:c(hi),paragraph:c(St),reference:v,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:c(fn),strong:c(Rn),thematicBreak:c(ga)},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(_),codeFencedFence:E,codeFencedFenceInfo:k,codeFencedFenceMeta:j,codeFlowValue:R,codeIndented:y(z),codeText:y(W),codeTextData:R,data:R,definition:y(),definitionDestinationString:ne,definitionLabelString:U,definitionTitleString:L,emphasis:y(),hardBreakEscape:y(J),hardBreakTrailing:y(J),htmlFlow:y(de),htmlFlowData:R,htmlText:y(se),htmlTextData:R,image:y(Z),label:Se,labelText:ce,lineEnding:Y,link:y(D),listItem:y(),listOrdered:y(),listUnordered:y(),paragraph:y(),referenceString:Q,resourceDestinationString:C,resourceTitleString:T,resource:G,setextHeading:y(le),setextHeadingLineSequence:P,setextHeadingText:O,strong:y(),thematicBreak:y()}};ay(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]];ly.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]||_0).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,wt,lt,zt;for(;++Ce<=be;){const He=I[Ce];switch(He[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{He[0]==="enter"?Ee++:Ee--,zt=void 0;break}case"lineEndingBlank":{He[0]==="enter"&&(Mt&&!zt&&!Ee&&!lt&&(lt=Ce),zt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:zt=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(wt=void 0;Ln--;){const Bt=I[Ln];if(Bt[1].type==="lineEnding"||Bt[1].type==="lineEndingBlank"){if(Bt[0]==="exit")continue;wt&&(I[wt][1].type="lineEndingBlank",_t=!0),Bt[1].type="lineEnding",wt=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&&(!wt||lt<wt)&&(Mt._spread=!0),Mt.end=Object.assign({},wt?I[wt][1].start:He[1].end),I.splice(wt||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,zt=!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]||_0).call(this,I,Ce[0]));else throw new Error("Cannot close `"+I.type+"` ("+hr({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 S(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 j(){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 _(){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 z(){const I=this.resume(),re=this.stack[this.stack.length-1];re.value=I.replace(/(\r?\n|\r)$/g,"")}function U(I){const re=this.resume(),be=this.stack[this.stack.length-1];be.label=re,be.identifier=Dn(this.sliceSerialize(I)).toLowerCase()}function L(){const I=this.resume(),re=this.stack[this.stack.length-1];re.title=I}function ne(){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 O(){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 le(){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=kt(),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 Y(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 J(){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 D(){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 Z(){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=yz(re),be.identifier=Dn(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 G(){this.data.inReference=void 0}function v(){this.data.referenceType="collapsed"}function Q(I){const re=this.resume(),be=this.stack[this.stack.length-1];be.label=re,be.identifier=Dn(this.sliceSerialize(I)).toLowerCase(),this.data.referenceType="full"}function te(I){this.data.characterReferenceType=I.type}function ae(I){const re=this.sliceSerialize(I),be=this.data.characterReferenceType;let Ce;be?(Ce=Kg(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 vt(){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 jn(){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 St(){return{type:"paragraph",children:[]}}function Rn(){return{type:"strong",children:[]}}function kt(){return{type:"text",value:""}}function ga(){return{type:"thematicBreak"}}}function qi(n){return{line:n.line,column:n.column,offset:n.offset}}function ay(n,l){let a=-1;for(;++a<l.length;){const s=l[a];Array.isArray(s)?ay(n,s):Sz(n,s)}}function Sz(n,l){let a;for(a in l)if(ly.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 _0(n,l){throw n?new Error("Cannot close `"+n.type+"` ("+hr({start:n.start,end:n.end})+"): a different token (`"+l.type+"`, "+hr({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+hr({start:l.start,end:l.end})+") is still open")}function kz(n){const l=this;l.parser=a;function a(s){return bz(s,{...l.data("settings"),...n,extensions:l.data("micromarkExtensions")||[],mdastExtensions:l.data("fromMarkdownExtensions")||[]})}}function wz(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 zz(n,l){const a={type:"element",tagName:"br",properties:{},children:[]};return n.patch(l,a),[n.applyData(l,a),{type:"text",value:`
|
|
21
|
+
`}]}function jz(n,l){const a=l.value?l.value+`
|
|
22
|
+
`:"",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 Cz(n,l){const a={type:"element",tagName:"del",properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}function Nz(n,l){const a={type:"element",tagName:"em",properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}function Tz(n,l){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",s=String(l.identifier).toUpperCase(),o=pa(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 Ez(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 Az(n,l){if(n.options.allowDangerousHtml){const a={type:"raw",value:l.value};return n.patch(l,a),n.applyData(l,a)}}function ry(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 Dz(n,l){const a=String(l.identifier).toUpperCase(),s=n.definitionById.get(a);if(!s)return ry(n,l);const o={src:pa(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 _z(n,l){const a={src:pa(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 Mz(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 Oz(n,l){const a=String(l.identifier).toUpperCase(),s=n.definitionById.get(a);if(!s)return ry(n,l);const o={href:pa(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 Rz(n,l){const a={href:pa(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 Lz(n,l,a){const s=n.all(l),o=a?Uz(a):sy(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:`
|
|
23
|
+
`}),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:`
|
|
24
|
+
`});const p={type:"element",tagName:"li",properties:c,children:f};return n.patch(l,p),n.applyData(l,p)}function Uz(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=sy(a[s])}return l}function sy(n){const l=n.spread;return l??n.children.length>1}function Bz(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 qz(n,l){const a={type:"element",tagName:"p",properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}function Hz(n,l){const a={type:"root",children:n.wrap(n.all(l))};return n.patch(l,a),n.applyData(l,a)}function Qz(n,l){const a={type:"element",tagName:"strong",properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}function Yz(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=Ef(l.children[1]),y=Hg(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 Fz(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 j={type:"element",tagName:c,properties:S,children:[]};g&&(j.children=n.all(g),n.patch(g,j),j=n.applyData(g,j)),p.push(j)}const x={type:"element",tagName:"tr",properties:{},children:n.wrap(p,!0)};return n.patch(l,x),n.applyData(l,x)}function Vz(n,l){const a={type:"element",tagName:"td",properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}const M0=9,O0=32;function Gz(n){const l=String(n),a=/\r?\n|\r/g;let s=a.exec(l),o=0;const c=[];for(;s;)c.push(R0(l.slice(o,s.index),o>0,!0),s[0]),o=s.index+s[0].length,s=a.exec(l);return c.push(R0(l.slice(o),o>0,!1)),c.join("")}function R0(n,l,a){let s=0,o=n.length;if(l){let c=n.codePointAt(s);for(;c===M0||c===O0;)s++,c=n.codePointAt(s)}if(a){let c=n.codePointAt(o-1);for(;c===M0||c===O0;)o--,c=n.codePointAt(o-1)}return o>s?n.slice(s,o):""}function Xz(n,l){const a={type:"text",value:Gz(String(l.value))};return n.patch(l,a),n.applyData(l,a)}function Iz(n,l){const a={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(l,a),n.applyData(l,a)}const Kz={blockquote:wz,break:zz,code:jz,delete:Cz,emphasis:Nz,footnoteReference:Tz,heading:Ez,html:Az,imageReference:Dz,image:_z,inlineCode:Mz,linkReference:Oz,link:Rz,listItem:Lz,list:Bz,paragraph:qz,root:Hz,strong:Qz,table:Yz,tableCell:Vz,tableRow:Fz,text:Xz,thematicBreak:Iz,toml:qs,yaml:qs,definition:qs,footnoteDefinition:qs};function qs(){}const oy=-1,ro=0,pr=1,$s=2,Lf=3,Uf=4,Bf=5,qf=6,uy=7,cy=8,L0=typeof self=="object"?self:globalThis,Zz=(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 ro:case oy:return a(f,o);case pr:{const m=a([],o);for(const y of f)m.push(s(y));return m}case $s:{const m=a({},o);for(const[y,p]of f)m[s(y)]=s(p);return m}case Lf:return a(new Date(f),o);case Uf:{const{source:m,flags:y}=f;return a(new RegExp(m,y),o)}case Bf:{const m=a(new Map,o);for(const[y,p]of f)m.set(s(y),s(p));return m}case qf:{const m=a(new Set,o);for(const y of f)m.add(s(y));return m}case uy:{const{name:m,message:y}=f;return a(new L0[m](y),o)}case cy: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 L0[c](f),o)};return s},U0=n=>Zz(new Map,n)(0),oa="",{toString:$z}={},{keys:Pz}=Object,fr=n=>{const l=typeof n;if(l!=="object"||!n)return[ro,l];const a=$z.call(n).slice(8,-1);switch(a){case"Array":return[pr,oa];case"Object":return[$s,oa];case"Date":return[Lf,oa];case"RegExp":return[Uf,oa];case"Map":return[Bf,oa];case"Set":return[qf,oa];case"DataView":return[pr,a]}return a.includes("Array")?[pr,a]:a.includes("Error")?[uy,a]:[$s,a]},Hs=([n,l])=>n===ro&&(l==="function"||l==="symbol"),Jz=(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]=fr(f);switch(m){case ro:{let x=f;switch(y){case"bigint":m=cy,x=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+y);x=null;break;case"undefined":return o([oy],f)}return o([m,x],f)}case pr:{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 $s:{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 Pz(f))(n||!Hs(fr(f[S])))&&x.push([c(S),c(f[S])]);return g}case Lf:return o([m,f.toISOString()],f);case Uf:{const{source:x,flags:g}=f;return o([m,{source:x,flags:g}],f)}case Bf:{const x=[],g=o([m,x],f);for(const[S,k]of f)(n||!(Hs(fr(S))||Hs(fr(k))))&&x.push([c(S),c(k)]);return g}case qf:{const x=[],g=o([m,x],f);for(const S of f)(n||!Hs(fr(S)))&&x.push(c(S));return g}}const{message:p}=f;return o([m,{name:y,message:p}],f)};return c},B0=(n,{json:l,lossy:a}={})=>{const s=[];return Jz(!(l||a),!!l,new Map,s)(n),s},Ps=typeof structuredClone=="function"?(n,l)=>l&&("json"in l||"lossy"in l)?U0(B0(n,l)):structuredClone(n):(n,l)=>U0(B0(n,l));function Wz(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 e3(n,l){return"Back to reference "+(n+1)+(l>1?"-"+l:"")}function t3(n){const l=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",a=n.options.footnoteBackContent||Wz,s=n.options.footnoteBackLabel||e3,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=pa(g.toLowerCase());let k=0;const j=[],E=n.footnoteCounts.get(g);for(;E!==void 0&&++k<=E;){j.length>0&&j.push({type:"text",value:" "});let U=typeof a=="string"?a:a(y,k);typeof U=="string"&&(U={type:"text",value:U}),j.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 _=x[x.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const U=_.children[_.children.length-1];U&&U.type==="text"?U.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...j)}else x.push(...j);const z={type:"element",tagName:"li",properties:{id:l+"fn-"+S},children:n.wrap(x,!0)};n.patch(p,z),m.push(z)}if(m.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...Ps(f),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
25
|
+
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(m,!0)},{type:"text",value:`
|
|
26
|
+
`}]}}const so=(function(n){if(n==null)return a3;if(typeof n=="function")return oo(n);if(typeof n=="object")return Array.isArray(n)?n3(n):i3(n);if(typeof n=="string")return l3(n);throw new Error("Expected function, string, or object as test")});function n3(n){const l=[];let a=-1;for(;++a<n.length;)l[a]=so(n[a]);return oo(s);function s(...o){let c=-1;for(;++c<l.length;)if(l[c].apply(this,o))return!0;return!1}}function i3(n){const l=n;return oo(a);function a(s){const o=s;let c;for(c in n)if(o[c]!==l[c])return!1;return!0}}function l3(n){return oo(l);function l(a){return a&&a.type===n}}function oo(n){return l;function l(a,s,o){return!!(r3(a)&&n.call(this,a,typeof s=="number"?s:void 0,o||void 0))}}function a3(){return!0}function r3(n){return n!==null&&typeof n=="object"&&"type"in n}const fy=[],s3=!0,sf=!1,o3="skip";function dy(n,l,a,s){let o;typeof l=="function"&&typeof a!="function"?(s=a,a=l):o=l;const c=so(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=fy,j,E,_;if((!l||c(y,p,x[x.length-1]||void 0))&&(k=u3(a(y,x)),k[0]===sf))return k;if("children"in y&&y.children){const z=y;if(z.children&&k[0]!==o3)for(E=(s?z.children.length:-1)+f,_=x.concat(z);E>-1&&E<z.children.length;){const U=z.children[E];if(j=m(U,E,_)(),j[0]===sf)return j;E=typeof j[1]=="number"?j[1]:E+f}}return k}}}function u3(n){return Array.isArray(n)?n:typeof n=="number"?[s3,n]:n==null?fy:[n]}function Hf(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),dy(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 of={}.hasOwnProperty,c3={};function f3(n,l){const a=l||c3,s=new Map,o=new Map,c=new Map,f={...Kz,...a.handlers},m={all:p,applyData:h3,definitionById:s,footnoteById:o,footnoteCounts:c,footnoteOrder:[],handlers:f,one:y,options:a,patch:d3,wrap:p3};return Hf(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(of.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,..._}=x,z=Ps(_);return z.children=m.all(x),z}return Ps(x)}return(m.options.unknownHandler||m3)(m,x,g)}function p(x){const g=[];if("children"in x){const S=x.children;let k=-1;for(;++k<S.length;){const j=m.one(S[k],x);if(j){if(k&&S[k-1].type==="break"&&(!Array.isArray(j)&&j.type==="text"&&(j.value=q0(j.value)),!Array.isArray(j)&&j.type==="element")){const E=j.children[0];E&&E.type==="text"&&(E.value=q0(E.value))}Array.isArray(j)?g.push(...j):g.push(j)}}}return g}}function d3(n,l){n.position&&(l.position=ek(n))}function h3(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,Ps(c)),"children"in a&&a.children&&o!==null&&o!==void 0&&(a.children=o)}return a}function m3(n,l){const a=l.data||{},s="value"in l&&!(of.call(a,"hProperties")||of.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 p3(n,l){const a=[];let s=-1;for(l&&a.push({type:"text",value:`
|
|
27
|
+
`});++s<n.length;)s&&a.push({type:"text",value:`
|
|
28
|
+
`}),a.push(n[s]);return l&&n.length>0&&a.push({type:"text",value:`
|
|
29
|
+
`}),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 H0(n,l){const a=f3(n,l),s=a.one(n,void 0),o=t3(a),c=Array.isArray(s)?{type:"root",children:s}:s||{type:"root",children:[]};return o&&c.children.push({type:"text",value:`
|
|
30
|
+
`},o),c}function g3(n,l){return n&&"run"in n?async function(a,s){const o=H0(a,{file:s,...l});await n.run(o,s)}:function(a,s){return H0(a,{file:s,...n||l})}}function Q0(n){if(n)throw n}var Dc,Y0;function y3(){if(Y0)return Dc;Y0=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 Dc=function y(){var p,x,g,S,k,j,E=arguments[0],_=1,z=arguments.length,U=!1;for(typeof E=="boolean"&&(U=E,E=arguments[1]||{},_=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});_<z;++_)if(p=arguments[_],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,j=g&&o(g)?g:[]):j=g&&c(g)?g:{},f(E,{name:x,newValue:y(U,j,S)})):typeof S<"u"&&f(E,{name:x,newValue:S}));return E},Dc}var x3=y3();const _c=eo(x3);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 b3(){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?v3(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 v3(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:S3,dirname:k3,extname:w3,join:z3,sep:"/"};function S3(n,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');zr(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 k3(n){if(zr(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 w3(n){zr(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 z3(...n){let l=-1,a;for(;++l<n.length;)zr(n[l]),n[l]&&(a=a===void 0?n[l]:a+"/"+n[l]);return a===void 0?".":j3(a)}function j3(n){zr(n);const l=n.codePointAt(0)===47;let a=C3(n,!l);return a.length===0&&!l&&(a="."),a.length>0&&n.codePointAt(n.length-1)===47&&(a+="/"),l?"/"+a:a}function C3(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 zr(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const N3={cwd:T3};function T3(){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 E3(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 A3(n)}function A3(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 hy{constructor(l){let a;l?cf(l)?a={path:l}:typeof l=="string"||D3(l)?a={value:l}:a=l:a={},this.cwd="cwd"in a?"":N3.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){F0(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"),F0(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=E3(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 F0(n,l){if(!n)throw new Error("Setting `"+l+"` requires `path` to be set too")}function D3(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const _3=(function(n){const s=this.constructor.prototype,o=s[n],c=function(){return o.apply(c,arguments)};return Object.setPrototypeOf(c,s),c}),M3={}.hasOwnProperty;class Qf extends _3{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=b3()}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):M3.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=Qs(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=Qs(l),y=s.parse(m);s.run(y,m,function(x,g,S){if(x||!g||!S)return p(x);const k=g,j=s.stringify(k,S);L3(j)?S.value=j:S.result=j,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(),Lc("processSync",this.parser||this.Parser),Uc("processSync",this.compiler||this.Compiler),this.process(l,o),G0("processSync","process",a),s;function o(c,f){a=!0,Q0(c),s=f}}run(l,a,s){V0(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=Qs(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),G0("runSync","run",s),o;function c(f,m){Q0(f),o=m,s=!0}}stringify(l,a){this.freeze();const s=Qs(a),o=this.compiler||this.Compiler;return Uc("stringify",o),V0(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,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,...j]=x;const E=s[S][1];uf(E)&&uf(k)&&(k=_c(!0,E,k)),s[S]=[p,k,...j]}}}}const O3=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 V0(n){if(!uf(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function G0(n,l,a){if(!a)throw new Error("`"+n+"` finished async. Use `"+l+"` instead")}function Qs(n){return R3(n)?n:new hy(n)}function R3(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function L3(n){return typeof n=="string"||U3(n)}function U3(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const B3="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",X0=[],I0={allowDangerousHtml:!0},q3=/^(https?|ircs?|mailto|xmpp)$/i,H3=[{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 Q3(n){const l=Y3(n),a=F3(n);return V3(l.runSync(l.parse(a),a),n)}function Y3(n){const l=n.rehypePlugins||X0,a=n.remarkPlugins||X0,s=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...I0}:I0;return O3().use(kz).use(a).use(g3,s).use(l)}function F3(n){const l=n.children||"",a=new hy;return typeof l=="string"&&(a.value=l),a}function V3(n,l){const a=l.allowedElements,s=l.allowElement,o=l.components,c=l.disallowedElements,f=l.skipHtml,m=l.unwrapDisallowed,y=l.urlTransform||G3;for(const x of H3)Object.hasOwn(l,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+B3+x.id,void 0);return Hf(n,p),ak(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 Tc)if(Object.hasOwn(Tc,k)&&Object.hasOwn(x.properties,k)){const j=x.properties[k],E=Tc[k];(E===null||E.includes(x.tagName))&&(x.properties[k]=y(String(j||""),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 G3(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||q3.test(n.slice(0,l))?n:""}function K0(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 X3(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function I3(n,l,a){const o=so((a||{}).ignore||[]),c=K3(l);let f=-1;for(;++f<c.length;)dy(n,"text",m);function m(p,x){let g=-1,S;for(;++g<x.length;){const k=x[g],j=S?S.children:void 0;if(o(k,j?j.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 j=0;const _=g.children.indexOf(p);let z=!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 O=k(...L,ee);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O===!1?S.lastIndex=ne+1:(j!==ne&&U.push({type:"text",value:p.value.slice(j,ne)}),Array.isArray(O)?U.push(...O):O&&U.push(O),j=ne+L[0].length,z=!0),!S.global)break;L=S.exec(p.value)}return z?(j<p.value.length&&U.push({type:"text",value:p.value.slice(j)}),g.children.splice(_,1,...U)):U=[p],_+U.length}}function K3(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([Z3(o[0]),$3(o[1])])}return l}function Z3(n){return typeof n=="string"?new RegExp(X3(n),"g"):n}function $3(n){return typeof n=="function"?n:function(){return n}}const qc="phrasing",Hc=["autolink","link","image","label"];function P3(){return{transforms:[l4],enter:{literalAutolink:W3,literalAutolinkEmail:Qc,literalAutolinkHttp:Qc,literalAutolinkWww:Qc},exit:{literalAutolink:i4,literalAutolinkEmail:n4,literalAutolinkHttp:e4,literalAutolinkWww:t4}}}function J3(){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 W3(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Qc(n){this.config.enter.autolinkProtocol.call(this,n)}function e4(n){this.config.exit.autolinkProtocol.call(this,n)}function t4(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 n4(n){this.config.exit.autolinkEmail.call(this,n)}function i4(n){this.exit(n)}function l4(n){I3(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,a4],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),r4]],{ignore:["link","linkReference"]})}function a4(n,l,a,s,o){let c="";if(!my(o)||(/^w/i.test(l)&&(a=l+a,l="",c="http://"),!s4(a)))return!1;const f=o4(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 r4(n,l,a,s){return!my(s,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+l+"@"+a,children:[{type:"text",value:l+"@"+a}]}}function s4(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 o4(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=K0(n,"(");let c=K0(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 my(n,l){const a=n.input.charCodeAt(n.index-1);return(n.index===0||pl(a)||lo(a))&&(!l||a!==47)}py.peek=y4;function u4(){this.buffer()}function c4(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function f4(){this.buffer()}function d4(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function h4(n){const l=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=Dn(this.sliceSerialize(n)).toLowerCase(),a.label=l}function m4(n){this.exit(n)}function p4(n){const l=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=Dn(this.sliceSerialize(n)).toLowerCase(),a.label=l}function g4(n){this.exit(n)}function y4(){return"["}function py(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 x4(){return{enter:{gfmFootnoteCallString:u4,gfmFootnoteCall:c4,gfmFootnoteDefinitionLabelString:f4,gfmFootnoteDefinition:d4},exit:{gfmFootnoteCallString:h4,gfmFootnoteCall:m4,gfmFootnoteDefinitionLabelString:p4,gfmFootnoteDefinition:g4}}}function b4(n){let l=!1;return n&&n.firstLineBlank&&(l=!0),{handlers:{footnoteDefinition:a,footnoteReference:py},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?`
|
|
31
|
+
`:" ")+c.indentLines(c.containerFlow(s,m.current()),l?gy:v4))),p(),y}}function v4(n,l,a){return l===0?n:gy(n,l,a)}function gy(n,l,a){return(a?"":" ")+n}const S4=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];yy.peek=C4;function k4(){return{canContainEols:["delete"],enter:{strikethrough:z4},exit:{strikethrough:j4}}}function w4(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:S4}],handlers:{delete:yy}}}function z4(n){this.enter({type:"delete",children:[]},n)}function j4(n){this.exit(n)}function yy(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 C4(){return"~"}function N4(n){return n.length}function T4(n,l){const a=l||{},s=(a.align||[]).concat(),o=a.stringLength||N4,c=[],f=[],m=[],y=[];let p=0,x=-1;for(;++x<n.length;){const E=[],_=[];let z=-1;for(n[x].length>p&&(p=n[x].length);++z<n[x].length;){const U=E4(n[x][z]);if(a.alignDelimiters!==!1){const L=o(U);_[z]=L,(y[z]===void 0||L>y[z])&&(y[z]=L)}E.push(U)}f[x]=E,m[x]=_}let g=-1;if(typeof s=="object"&&"length"in s)for(;++g<p;)c[g]=Z0(s[g]);else{const E=Z0(s);for(;++g<p;)c[g]=E}g=-1;const S=[],k=[];for(;++g<p;){const E=c[g];let _="",z="";E===99?(_=":",z=":"):E===108?_=":":E===114&&(z=":");let U=a.alignDelimiters===!1?1:Math.max(1,y[g]-_.length-z.length);const L=_+"-".repeat(U)+z;a.alignDelimiters!==!1&&(U=_.length+U+z.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 j=[];for(;++x<f.length;){const E=f[x],_=m[x];g=-1;const z=[];for(;++g<p;){const U=E[g]||"";let L="",ne="";if(a.alignDelimiters!==!1){const ee=y[g]-(_[g]||0),O=c[g];O===114?L=" ".repeat(ee):O===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&&z.push("|"),a.padding!==!1&&!(a.alignDelimiters===!1&&U==="")&&(a.delimiterStart!==!1||g)&&z.push(" "),a.alignDelimiters!==!1&&z.push(L),z.push(U),a.alignDelimiters!==!1&&z.push(ne),a.padding!==!1&&z.push(" "),(a.delimiterEnd!==!1||g!==p-1)&&z.push("|")}j.push(a.delimiterEnd===!1?z.join("").replace(/ +$/,""):z.join(""))}return j.join(`
|
|
32
|
+
`)}function E4(n){return n==null?"":String(n)}function Z0(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 A4(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()),D4);return o(),f}function D4(n,l,a){return">"+(a?"":" ")+n}function _4(n,l){return $0(n,l.inConstruct,!0)&&!$0(n,l.notInConstruct,!1)}function $0(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 P0(n,l,a,s){let o=-1;for(;++o<a.unsafe.length;)if(a.unsafe[o].character===`
|
|
33
|
+
`&&_4(a.stack,a.unsafe[o]))return/[ \t]/.test(s.before)?"":" ";return`\\
|
|
34
|
+
`}function M4(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 O4(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 R4(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 L4(n,l,a,s){const o=R4(a),c=n.value||"",f=o==="`"?"GraveAccent":"Tilde";if(O4(n,a)){const g=a.enter("codeIndented"),S=a.indentLines(c,U4);return g(),S}const m=a.createTracker(s),y=o.repeat(Math.max(M4(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:`
|
|
35
|
+
`,encode:["`"],...m.current()})),g()}return x+=m.move(`
|
|
36
|
+
`),c&&(x+=m.move(c+`
|
|
37
|
+
`)),x+=m.move(y),p(),x}function U4(n,l,a){return(a?"":" ")+n}function Yf(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 B4(n,l,a,s){const o=Yf(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?" ":`
|
|
38
|
+
`,...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 q4(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 Js(n,l,a){const s=da(n),o=da(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}}xy.peek=H4;function xy(n,l,a,s){const o=q4(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=Js(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=Js(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 H4(n,l,a){return a.options.emphasis||"*"}function Q4(n,l){let a=!1;return Hf(n,function(s){if("value"in s&&/\r?\n|\r/.test(s.value)||s.type==="break")return a=!0,sf}),!!((!n.depth||n.depth<3)&&Mf(n)&&(l.options.setext||a))}function Y4(n,l,a,s){const o=Math.max(Math.min(6,n.depth||1),1),c=a.createTracker(s);if(Q4(n,a)){const x=a.enter("headingSetext"),g=a.enter("phrasing"),S=a.containerPhrasing(n,{...c.current(),before:`
|
|
39
|
+
`,after:`
|
|
40
|
+
`});return g(),x(),S+`
|
|
41
|
+
`+(o===1?"=":"-").repeat(S.length-(Math.max(S.lastIndexOf("\r"),S.lastIndexOf(`
|
|
42
|
+
`))+1))}const f="#".repeat(o),m=a.enter("headingAtx"),y=a.enter("phrasing");c.move(f+" ");let p=a.containerPhrasing(n,{before:"# ",after:`
|
|
43
|
+
`,...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}by.peek=F4;function by(n){return n.value||""}function F4(){return"<"}vy.peek=V4;function vy(n,l,a,s){const o=Yf(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 V4(){return"!"}Sy.peek=G4;function Sy(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 G4(){return"!"}ky.peek=X4;function ky(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 X4(){return"`"}function wy(n,l){const a=Mf(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))}zy.peek=I4;function zy(n,l,a,s){const o=Yf(a),c=o==='"'?"Quote":"Apostrophe",f=a.createTracker(s);let m,y;if(wy(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 I4(n,l,a){return wy(n,a)?"<":"["}jy.peek=K4;function jy(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 K4(){return"["}function Ff(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 Z4(n){const l=Ff(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 $4(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 Cy(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 P4(n,l,a,s){const o=a.enter("list"),c=a.bulletCurrent;let f=n.ordered?$4(a):Ff(a);const m=n.ordered?f==="."?")":".":Z4(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),Cy(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 J4(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 W4(n,l,a,s){const o=J4(a);let c=a.bulletCurrent||Ff(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 ej(n,l,a,s){const o=a.enter("paragraph"),c=a.enter("phrasing"),f=a.containerPhrasing(n,s);return c(),o(),f}const tj=so(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function nj(n,l,a,s){return(n.children.some(function(f){return tj(f)})?a.containerPhrasing:a.containerFlow).call(a,n,s)}function ij(n){const l=n.options.strong||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize strong with `"+l+"` for `options.strong`, expected `*`, or `_`");return l}Ny.peek=lj;function Ny(n,l,a,s){const o=ij(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=Js(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=Js(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 lj(n,l,a){return a.options.strong||"*"}function aj(n,l,a,s){return a.safe(n.value,s)}function rj(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 sj(n,l,a){const s=(Cy(a)+(a.options.ruleSpaces?" ":"")).repeat(rj(a));return a.options.ruleSpaces?s.slice(0,-1):s}const Ty={blockquote:A4,break:P0,code:L4,definition:B4,emphasis:xy,hardBreak:P0,heading:Y4,html:by,image:vy,imageReference:Sy,inlineCode:ky,link:zy,linkReference:jy,list:P4,listItem:W4,paragraph:ej,root:nj,strong:Ny,text:aj,thematicBreak:sj};function oj(){return{enter:{table:uj,tableData:J0,tableHeader:J0,tableRow:fj},exit:{codeText:dj,table:cj,tableData:Yc,tableHeader:Yc,tableRow:Yc}}}function uj(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 cj(n){this.exit(n),this.data.inTable=void 0}function fj(n){this.enter({type:"tableRow",children:[]},n)}function Yc(n){this.exit(n)}function J0(n){this.enter({type:"tableCell",children:[]},n)}function dj(n){let l=this.resume();this.data.inTable&&(l=l.replace(/\\([\\|])/g,hj));const a=this.stack[this.stack.length-1];a.type,a.value=l,this.exit(n)}function hj(n,l){return l==="|"?l:n}function mj(n){const l=n||{},a=l.tableCellPadding,s=l.tablePipeAlign,o=l.stringLength,c=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
44
|
+
`,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,j,E,_){return p(x(k,E,_),k.align)}function m(k,j,E,_){const z=g(k,E,_),U=p([z]);return U.slice(0,U.indexOf(`
|
|
45
|
+
`))}function y(k,j,E,_){const z=E.enter("tableCell"),U=E.enter("phrasing"),L=E.containerPhrasing(k,{..._,before:c,after:c});return U(),z(),L}function p(k,j){return T4(k,{align:j,alignDelimiters:s,padding:a,stringLength:o})}function x(k,j,E){const _=k.children;let z=-1;const U=[],L=j.enter("table");for(;++z<_.length;)U[z]=g(_[z],j,E);return L(),U}function g(k,j,E){const _=k.children;let z=-1;const U=[],L=j.enter("tableRow");for(;++z<_.length;)U[z]=y(_[z],k,j,E);return L(),U}function S(k,j,E){let _=Ty.inlineCode(k,j,E);return E.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function pj(){return{exit:{taskListCheckValueChecked:W0,taskListCheckValueUnchecked:W0,paragraph:yj}}}function gj(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:xj}}}function W0(n){const l=this.stack[this.stack.length-2];l.type,l.checked=n.type==="taskListCheckValueChecked"}function yj(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 xj(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=Ty.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 bj(){return[P3(),x4(),k4(),oj(),pj()]}function vj(n){return{extensions:[J3(),b4(n),w4(),mj(n),gj()]}}const Sj={tokenize:Nj,partial:!0},Ey={tokenize:Tj,partial:!0},Ay={tokenize:Ej,partial:!0},Dy={tokenize:Aj,partial:!0},kj={tokenize:Dj,partial:!0},_y={name:"wwwAutolink",tokenize:jj,previous:Oy},My={name:"protocolAutolink",tokenize:Cj,previous:Ry},di={name:"emailAutolink",tokenize:zj,previous:Ly},In={};function wj(){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,My];In[104]=[di,My];In[87]=[di,_y];In[119]=[di,_y];function zj(n,l,a){const s=this;let o,c;return f;function f(g){return!ff(g)||!Ly.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(kj,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 jj(n,l,a){const s=this;return o;function o(f){return f!==87&&f!==119||!Oy.call(s,s.previous)||Vf(s.events)?a(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(Sj,n.attempt(Ey,n.attempt(Ay,c),a),a)(f))}function c(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),l(f)}}function Cj(n,l,a){const s=this;let o="",c=!1;return f;function f(g){return(g===72||g===104)&&Ry.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 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||Zs(g)||Ke(g)||pl(g)||lo(g)?a(g):n.attempt(Ey,n.attempt(Ay,x),a)(g)}function x(g){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),l(g)}}function Nj(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 Tj(n,l,a){let s,o,c;return f;function f(p){return p===46||p===95?n.check(Dy,y,m)(p):p===null||Ke(p)||pl(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 Ej(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(Dy,l,c)(f):f===null||Ke(f)||pl(f)?l(f):(n.consume(f),o)}function c(f){return f===41&&s++,n.consume(f),o}}function Aj(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)||pl(m)?l(m):a(m)}function o(m){return m===null||m===40||m===91||Ke(m)||pl(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 Dj(n,l,a){return s;function s(c){return n.consume(c),o}function o(c){return Lt(c)?a(c):l(c)}}function Oy(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Ke(n)}function Ry(n){return!Qt(n)}function Ly(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 _j={tokenize:Hj,partial:!0};function Mj(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Uj,continuation:{tokenize:Bj},exit:qj}},text:{91:{name:"gfmFootnoteCall",tokenize:Lj},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Oj,resolveTo:Rj}}}}function Oj(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=Dn(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 Rj(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 Lj(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(Dn(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 Uj(n,l,a){const s=this,o=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]);let c,f=0,m;return y;function y(j){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(j),n.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(j){return j===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(j),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",x):a(j)}function x(j){if(f>999||j===93&&!m||j===null||j===91||Ke(j))return a(j);if(j===93){n.exit("chunkString");const E=n.exit("gfmFootnoteDefinitionLabelString");return c=Dn(s.sliceSerialize(E)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(j),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),S}return Ke(j)||(m=!0),f++,n.consume(j),j===92?g:x}function g(j){return j===91||j===92||j===93?(n.consume(j),f++,x):x(j)}function S(j){return j===58?(n.enter("definitionMarker"),n.consume(j),n.exit("definitionMarker"),o.includes(c)||o.push(c),Le(n,k,"gfmFootnoteDefinitionWhitespace")):a(j)}function k(j){return l(j)}}function Bj(n,l,a){return n.check(wr,l,n.attempt(_j,l,a))}function qj(n){n.exit("gfmFootnoteDefinition")}function Hj(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 Qj(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,ao(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(j){return p===126&&x[x.length-1][1].type!=="characterEscape"?y(j):(f.enter("strikethroughSequenceTemporary"),k(j))}function k(j){const E=da(p);if(j===126)return g>1?y(j):(f.consume(j),g++,k);if(g<2&&!a)return y(j);const _=f.exit("strikethroughSequenceTemporary"),z=da(j);return _._open=!z||z===2&&!!E,_._close=!E||E===2&&!!z,m(j)}}}class Yj{constructor(){this.map=[]}add(l,a,s){Fj(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 Fj(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 Vj(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 Gj(){return{flow:{null:{name:"table",tokenize:Xj,resolveAll:Ij}}}}function Xj(n,l,a){const s=this;let o=0,c=0,f;return m;function m(R){let Y=s.events.length-1;for(;Y>-1;){const se=s.events[Y][1].type;if(se==="lineEnding"||se==="linePrefix")Y--;else break}const J=Y>-1?s.events[Y][1].type:null,de=J==="tableHead"||J==="tableRow"?O:y;return de===O&&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?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,j,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):j(R))}function j(R){return R===45||R===58?_(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,_,"whitespace")(R):_(R)}function _(R){return R===58?(c+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(R),n.exit("tableDelimiterMarker"),z):R===45?(c+=1,z(R)):R===null||xe(R)?ne(R):ee(R)}function z(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?j(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 O(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 Ij(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 Yj;for(;++a<n.length;){const k=n[a],j=k[1];k[0]==="enter"?j.type==="tableHead"?(m=!1,y!==0&&(eg(S,l,y,p,x),x=void 0,y=0),p={type:"table",start:Object.assign({},j.start),end:Object.assign({},j.end)},S.add(a,0,[["enter",p,l]])):j.type==="tableRow"||j.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({},j.start),end:Object.assign({},j.end)},S.add(a,0,[["enter",x,l]])),o=j.type==="tableDelimiterRow"?2:x?3:1):o&&(j.type==="data"||j.type==="tableDelimiterMarker"||j.type==="tableDelimiterFiller")?(s=!1,f[2]===0&&(c[1]!==0&&(f[0]=f[1],g=Ys(S,l,c,o,void 0,g),c=[0,0,0,0]),f[2]=a)):j.type==="tableCellDivider"&&(s?s=!1:(c[1]!==0&&(f[0]=f[1],g=Ys(S,l,c,o,void 0,g)),c=f,f=[c[1],a,0,0])):j.type==="tableHead"?(m=!0,y=a):j.type==="tableRow"||j.type==="tableDelimiterRow"?(y=a,c[1]!==0?(f[0]=f[1],g=Ys(S,l,c,o,a,g)):f[1]!==0&&(g=Ys(S,l,f,o,a,g)),o=0):o&&(j.type==="data"||j.type==="tableDelimiterMarker"||j.type==="tableDelimiterFiller")&&(f[3]=a)}for(y!==0&&eg(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=Vj(l.events,a))}return n}function Ys(n,l,a,s,o,c){const f=s===1?"tableHeader":s===2?"tableDelimiter":"tableData",m="tableContent";a[0]!==0&&(c.end=Object.assign({},ua(l.events,a[0])),n.add(a[0],0,[["exit",c,l]]));const y=ua(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=ua(l.events,a[2]),x=ua(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 j=a[2]+1,E=a[3]-a[2]-1;n.add(j,E,[])}}n.add(a[3]+1,0,[["exit",g,l]])}return o!==void 0&&(c.end=Object.assign({},ua(l.events,o)),n.add(o,0,[["exit",c,l]]),c=void 0),c}function eg(n,l,a,s,o){const c=[],f=ua(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 ua(n,l){const a=n[l],s=a[0]==="enter"?"start":"end";return a[1][s]}const Kj={name:"tasklistCheck",tokenize:$j};function Zj(){return{text:{91:Kj}}}function $j(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:Pj},l,a)(y):a(y)}}function Pj(n,l,a){return Le(n,s,"whitespace");function s(o){return o===null?a(o):l(o)}}function Jj(n){return Ig([wj(),Mj(),Qj(n),Gj(),Zj()])}const Wj={};function eC(n){const l=this,a=n||Wj,s=l.data(),o=s.micromarkExtensions||(s.micromarkExtensions=[]),c=s.fromMarkdownExtensions||(s.fromMarkdownExtensions=[]),f=s.toMarkdownExtensions||(s.toMarkdownExtensions=[]);o.push(Jj(a)),c.push(bj()),f.push(vj(a))}const tC=V.memo(function(l){const{content:a,className:s=""}=l;return h.jsx("div",{className:`break-words ${s}`,children:h.jsx(Q3,{remarkPlugins:[eC],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(An,{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 nC(n){switch(n){case"created":return h.jsx(zf,{className:"w-3 h-3"});case"status_change":return h.jsx(_v,{className:"w-3 h-3"});case"title_change":return h.jsx(Eg,{className:"w-3 h-3"});case"description_change":return h.jsx(Sr,{className:"w-3 h-3"});case"blocked_change":return h.jsx(kg,{className:"w-3 h-3"});case"comment_added":return h.jsx(w2,{className:"w-3 h-3"})}}function Fc(n){return n.replace("_"," ")}function iC(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 lC(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:nC(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:iC(a)}),h.jsx("p",{className:"text-xs text-zinc-600",children:Cf(a.created_at)})]})]},a.id)})})}function aC(n){return{queryKey:["attachments",n],queryFn:()=>Xn(`/attachments/task/${n}`),enabled:!!n}}function rC(n){return{queryKey:["attachments","template",n],queryFn:()=>Xn(`/attachments/template/${n}`),enabled:!!n}}function sC(n){const l=it();return At({mutationFn:async a=>{const s=await Uy(a);return Mn(`/attachments/task/${n}`,{filename:a.name,data:s,mimeType:a.type})},onSuccess:()=>{l.invalidateQueries({queryKey:["attachments",n]})}})}function oC(n){const l=it();return At({mutationFn:a=>Gn(`/attachments/${a}`),onSuccess:()=>{l.invalidateQueries({queryKey:["attachments",n]})}})}function uC(n){const l=it();return At({mutationFn:async a=>{const s=await Uy(a);return Mn(`/attachments/template/${n}`,{filename:a.name,data:s,mimeType:a.type})},onSuccess:()=>{l.invalidateQueries({queryKey:["attachments","template",n]})}})}function cC(n){const l=it();return At({mutationFn:a=>Gn(`/attachments/${a}`),onSuccess:()=>{l.invalidateQueries({queryKey:["attachments","template",n]})}})}function Uy(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 Ws(n){return`/api/attachments/${n}/file`}const Fs=["image/png","image/jpeg","image/gif","image/webp"];function fC(n){const{taskId:l,disabled:a=!1}=n,[s,o]=V.useState(!1),c=V.useRef(null),{data:f=[]}=_n(aC(l)),m=sC(l),y=oC(l),p=V.useCallback(async z=>{if(a)return;const U=Array.from(z);for(const L of U)Fs.includes(L.type)&&m.mutate(L)},[m,a]),x=V.useCallback(z=>{z.preventDefault(),a||o(!0)},[a]),g=V.useCallback(z=>{z.preventDefault(),o(!1)},[]),S=V.useCallback(z=>{if(z.preventDefault(),o(!1),a)return;const U=z.dataTransfer.files;U.length>0&&p(U)},[p,a]),k=V.useCallback(z=>{if(a)return;const U=z.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&&(z.preventDefault(),p(L))},[p,a]);V.useEffect(()=>{if(!a)return document.addEventListener("paste",k),()=>{document.removeEventListener("paste",k)}},[k,a]);const j=z=>{if(a)return;const U=z.target.files;U&&U.length>0&&p(U),z.target.value=""},E=z=>{a||y.mutate(z)},_=f.filter(z=>Fs.includes(z.mime_type));return _.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:`
|
|
46
|
+
border border-dashed rounded-lg p-8 text-center transition-colors cursor-pointer
|
|
47
|
+
${s?"border-orange-500 bg-orange-500/10":"border-zinc-700 hover:border-zinc-600"}
|
|
48
|
+
`,onClick:()=>c.current?.click(),children:[h.jsx("input",{ref:c,type:"file",accept:Fs.join(","),multiple:!0,onChange:j,className:"hidden"}),h.jsx(jf,{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:[_.length>0&&h.jsx("div",{className:"space-y-1.5",children:_.map(z=>h.jsxs("div",{className:"flex items-center gap-2 p-2 bg-zinc-900/50 rounded-lg group",children:[h.jsx(kf,{className:"w-4 h-4 text-zinc-500 shrink-0"}),h.jsx("a",{href:Ws(z.id),target:"_blank",rel:"noopener noreferrer",className:"flex-1 text-xs text-zinc-400 hover:text-zinc-300 truncate",children:z.original_name}),h.jsx("a",{href:Ws(z.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(jg,{className:"w-3 h-3"})}),!a&&h.jsx("button",{onClick:()=>E(z.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(zn,{className:"w-3 h-3"})})]},z.id))}),m.isPending&&h.jsxs("div",{className:"flex items-center gap-2 text-xs text-zinc-400",children:[h.jsx(yr,{className:"w-3 h-3 animate-spin"}),"Uploading..."]}),!a&&h.jsxs("div",{onDragOver:x,onDragLeave:g,onDrop:S,className:`
|
|
49
|
+
border border-dashed rounded-lg p-2 text-center transition-colors cursor-pointer
|
|
50
|
+
${s?"border-orange-500 bg-orange-500/10":"border-zinc-700 hover:border-zinc-600"}
|
|
51
|
+
`,onClick:()=>c.current?.click(),children:[h.jsx("input",{ref:c,type:"file",accept:Fs.join(","),multiple:!0,onChange:j,className:"hidden"}),h.jsx("p",{className:"text-xs text-zinc-500",children:"+ Add image"})]})]})}const Vc=["image/png","image/jpeg","image/gif","image/webp"];function dC(n){const{images:l,onImagesChange:a,disabled:s=!1,compact:o=!1}=n,[c,f]=V.useState(!1),m=V.useRef(null),y=V.useCallback(E=>{if(s)return;const _=Array.from(E).filter(U=>Vc.includes(U.type));if(_.length===0)return;const z=_.map(U=>({id:crypto.randomUUID(),file:U,preview:URL.createObjectURL(U)}));a([...l,...z])},[l,a,s]),p=V.useCallback(E=>{if(s)return;const _=l.find(z=>z.id===E);_&&URL.revokeObjectURL(_.preview),a(l.filter(z=>z.id!==E))},[l,a,s]),x=V.useCallback(E=>{E.preventDefault(),s||f(!0)},[s]),g=V.useCallback(E=>{E.preventDefault(),f(!1)},[]),S=V.useCallback(E=>{if(E.preventDefault(),f(!1),s)return;const _=E.dataTransfer.files;_.length>0&&y(_)},[y,s]),k=V.useCallback(E=>{if(s)return;const _=E.clipboardData?.items;if(!_)return;const z=[];for(const U of Array.from(_))if(U.type.startsWith("image/")){const L=U.getAsFile();L&&z.push(L)}z.length>0&&(E.preventDefault(),y(z))},[y,s]);V.useEffect(()=>{if(!s)return document.addEventListener("paste",k),()=>{document.removeEventListener("paste",k)}},[k,s]),V.useEffect(()=>()=>{for(const E of l)URL.revokeObjectURL(E.preview)},[]);const j=E=>{if(s)return;const _=E.target.files;_&&_.length>0&&y(_),E.target.value=""};return l.length===0?h.jsxs("div",{onDragOver:x,onDragLeave:g,onDrop:S,className:`
|
|
52
|
+
border border-dashed rounded-lg text-center transition-colors cursor-pointer
|
|
53
|
+
${o?"p-3":"p-6"}
|
|
54
|
+
${c?"border-orange-500 bg-orange-500/10":"border-zinc-700 hover:border-zinc-600"}
|
|
55
|
+
${s?"opacity-50 cursor-not-allowed":""}
|
|
56
|
+
`,onClick:()=>!s&&m.current?.click(),children:[h.jsx("input",{ref:m,type:"file",accept:Vc.join(","),multiple:!0,onChange:j,className:"hidden"}),h.jsx(jf,{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(E=>h.jsxs("div",{className:"flex items-center gap-2 p-2 bg-zinc-800/50 rounded-lg group",children:[h.jsx(kf,{className:"w-4 h-4 text-zinc-500 shrink-0"}),h.jsx("span",{className:"flex-1 text-xs text-zinc-400 truncate",children:E.file.name}),!s&&h.jsx("button",{type:"button",onClick:()=>p(E.id),className:"p-1 text-zinc-600 hover:text-red-400 rounded transition-colors",title:"Remove",children:h.jsx(zn,{className:"w-3 h-3"})})]},E.id))}),!s&&h.jsxs("div",{onDragOver:x,onDragLeave:g,onDrop:S,className:`
|
|
57
|
+
border border-dashed rounded-lg p-2 text-center transition-colors cursor-pointer
|
|
58
|
+
${c?"border-orange-500 bg-orange-500/10":"border-zinc-700 hover:border-zinc-600"}
|
|
59
|
+
`,onClick:()=>m.current?.click(),children:[h.jsx("input",{ref:m,type:"file",accept:Vc.join(","),multiple:!0,onChange:j,className:"hidden"}),h.jsx("p",{className:"text-xs text-zinc-500",children:"+ Add more images"})]})]})}function hC(n){for(const l of n)URL.revokeObjectURL(l.preview)}const mC=["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,[S,k]=V.useState(l),[j,E]=V.useState(a),[_,z]=V.useState([]);V.useEffect(()=>{k(l),E(a)},[l,a]),V.useEffect(()=>()=>{hC(_)},[]);const U=V.useCallback(O=>{const P=O.filter(ue=>mC.includes(ue.type));if(P.length===0)return;const le=P.map(ue=>({id:crypto.randomUUID(),file:ue,preview:URL.createObjectURL(ue)}));z(ue=>[...ue,...le])},[]),L=V.useCallback(O=>{const P=O.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&&(O.preventDefault(),U(le))},[U]),ne=O=>{if(O.preventDefault(),!S.trim())return;const P=_.map(le=>le.file);s(S.trim(),j.trim(),P)},ee=O=>{if((O.metaKey||O.ctrlKey)&&O.key==="Enter"&&(O.preventDefault(),S.trim())){const P=_.map(le=>le.file);s(S.trim(),j.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:O=>k(O.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:j,onChange:O=>E(O.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(Cg,{className:"w-3.5 h-3.5"}),h.jsxs("span",{children:["Images",_.length>0&&` (${_.length})`]})]}),h.jsx(dC,{images:_,onImagesChange:z,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 pC(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(zn,{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 gC(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 yC(n,l){const a=await gC(l);return Mn(`/attachments/task/${n}`,{filename:l.name,data:a,mimeType:l.type})}const xC={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 bC(n){const{task:l,onClose:a}=n,[s,o]=V.useState(""),[c,f]=V.useState(!1),[m,y]=V.useState(!1),[p,x]=V.useState(!1),[g,S]=V.useState(l),k=it(),{data:j}=_n(yv(g.id)),E=xg(g.id),_=wv(g.id),z=Sv(),U=bv(),L=g.status!=="in_progress"&&g.status!=="done",ne=g.status==="in_progress",ee=xC[g.status],O=Y=>{Y.preventDefault(),s.trim()&&E.mutate(s.trim(),{onSuccess:()=>o("")})},P=()=>{z.mutate(g.id,{onSuccess:()=>a()})},le=async(Y,J,de)=>{U.mutate({taskId:g.id,title:Y,description:J||null},{onSuccess:async se=>{de.length>0&&(await Promise.all(de.map(W=>yC(g.id,W))),k.invalidateQueries({queryKey:listAttachmentsOptions(g.id).queryKey})),S(se),y(!1),k.invalidateQueries({queryKey:to(g.project_id).queryKey})}})},ue=j?.comments||[],R=j?.activities||[];return 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 ${ee.className}`,children:[ee.icon,ee.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:[L&&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(Eg,{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(zn,{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("p",{className:"text-sm text-zinc-300 whitespace-pre-wrap text-balance",children: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(fC,{taskId:g.id,disabled:ne})}),h.jsxs("div",{children:[h.jsxs("h3",{className:"text-xs text-zinc-500 mb-3",children:["Comments (",ue.length,")"]}),h.jsxs("div",{className:"space-y-3",children:[ue.map(Y=>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:[Y.author==="claude"?h.jsx(Ov,{className:"w-4 h-4 text-orange-400"}):h.jsx(J2,{className:"w-4 h-4 text-zinc-400"}),h.jsx("span",{className:"text-xs text-zinc-400",children:Y.author==="claude"?"Claude":"You"}),h.jsx("span",{className:"text-xs text-zinc-600",children:Cf(Y.created_at)}),Y.author==="user"&&Y.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(n2,{className:"w-3 h-3"})}),Y.author==="user"&&Y.seen===!1&&h.jsx("button",{onClick:()=>_.mutate(Y.id),disabled:_.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(tC,{content:Y.content})]},Y.id)),ue.length===0&&h.jsx("p",{className:"text-sm text-zinc-600",children:"No comments yet"})]})]}),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(o2,{className:"w-3.5 h-3.5"}),"Activity (",R.length,")"]}),h.jsx(no,{className:`w-4 h-4 transition-transform ${p?"rotate-180":""}`})]}),p&&h.jsx("div",{className:"mt-2",children:h.jsx(lC,{activities:R})})]})]}),h.jsxs("div",{className:"p-4 border-t border-zinc-800 space-y-3",children:[h.jsxs("form",{onSubmit:O,className:"flex gap-2",children:[h.jsx("input",{type:"text",value:s,onChange:Y=>o(Y.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()||E.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(L2,{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(pC,{task:g,onClose:()=>y(!1),onSubmit:le,isLoading:U.isPending}),c&&h.jsx(fa,{title:"Delete task?",message:"This action cannot be undone.",confirmLabel:"Delete",isLoading:z.isPending,onConfirm:P,onCancel:()=>f(!1)})]})}function vC(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(Sr,{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(zn,{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 SC(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(zn,{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 Vs=["image/png","image/jpeg","image/gif","image/webp"];function kC(n){const{templateId:l,disabled:a=!1}=n,[s,o]=V.useState(!1),c=V.useRef(null),{data:f=[]}=_n(rC(l)),m=uC(l),y=cC(l),p=V.useCallback(async z=>{if(a)return;const U=Array.from(z);for(const L of U)Vs.includes(L.type)&&m.mutate(L)},[m,a]),x=V.useCallback(z=>{z.preventDefault(),a||o(!0)},[a]),g=V.useCallback(z=>{z.preventDefault(),o(!1)},[]),S=V.useCallback(z=>{if(z.preventDefault(),o(!1),a)return;const U=z.dataTransfer.files;U.length>0&&p(U)},[p,a]),k=V.useCallback(z=>{if(a)return;const U=z.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&&(z.preventDefault(),p(L))},[p,a]);V.useEffect(()=>{if(!a)return document.addEventListener("paste",k),()=>{document.removeEventListener("paste",k)}},[k,a]);const j=z=>{if(a)return;const U=z.target.files;U&&U.length>0&&p(U),z.target.value=""},E=z=>{a||y.mutate(z)},_=f.filter(z=>Vs.includes(z.mime_type));return _.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:`
|
|
60
|
+
border border-dashed rounded-lg p-3 text-center transition-colors cursor-pointer
|
|
61
|
+
${s?"border-orange-500 bg-orange-500/10":"border-zinc-700 hover:border-zinc-600"}
|
|
62
|
+
`,onClick:()=>c.current?.click(),children:[h.jsx("input",{ref:c,type:"file",accept:Vs.join(","),multiple:!0,onChange:j,className:"hidden"}),h.jsx(jf,{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:[_.length>0&&h.jsx("div",{className:"space-y-1.5",children:_.map(z=>h.jsxs("div",{className:"flex items-center gap-2 p-2 bg-zinc-800/50 rounded-lg group",children:[h.jsx(kf,{className:"w-4 h-4 text-zinc-500 shrink-0"}),h.jsx("a",{href:Ws(z.id),target:"_blank",rel:"noopener noreferrer",className:"flex-1 text-xs text-zinc-400 hover:text-zinc-300 truncate",children:z.original_name}),h.jsx("a",{href:Ws(z.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(jg,{className:"w-3 h-3"})}),!a&&h.jsx("button",{onClick:()=>E(z.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(zn,{className:"w-3 h-3"})})]},z.id))}),m.isPending&&h.jsxs("div",{className:"flex items-center gap-2 text-xs text-zinc-400",children:[h.jsx(yr,{className:"w-3 h-3 animate-spin"}),"Uploading..."]}),!a&&h.jsxs("div",{onDragOver:x,onDragLeave:g,onDrop:S,className:`
|
|
63
|
+
border border-dashed rounded-lg p-2 text-center transition-colors cursor-pointer
|
|
64
|
+
${s?"border-orange-500 bg-orange-500/10":"border-zinc-700 hover:border-zinc-600"}
|
|
65
|
+
`,onClick:()=>c.current?.click(),children:[h.jsx("input",{ref:c,type:"file",accept:Vs.join(","),multiple:!0,onChange:j,className:"hidden"}),h.jsx("p",{className:"text-xs text-zinc-500",children:"+ Add more images"})]})]})}function wC(n){const{template:l,onClose:a,onSubmit:s,isLoading:o}=n,[c,f]=V.useState(l.title),[m,y]=V.useState(l.description||""),[p,x]=V.useState(!1);V.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(zn,{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(Cg,{className:"w-3.5 h-3.5"}),"Images"]}),h.jsx(no,{className:`w-4 h-4 transition-transform ${p?"rotate-180":""}`})]}),p&&h.jsx("div",{className:"mt-2",children:h.jsx(kC,{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 By(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 zC(n,l){const a=await By(l);return Mn(`/attachments/task/${n}`,{filename:l.name,data:a,mimeType:l.type})}async function jC(n,l){const a=await By(l);return Mn(`/attachments/template/${n}`,{filename:l.name,data:a,mimeType:l.type})}function CC(n){const{projectId:l,boardRef:a}=n,[s,o]=V.useState(null),[c,f]=V.useState(null),[m,y]=V.useState(null),[p,x]=V.useState(null),[g,S]=V.useState(!1),[k,j]=V.useState(!1),[E,_]=V.useState(null);V.useEffect(()=>{if(!E)return;const v=setTimeout(()=>_(null),600);return()=>clearTimeout(v)},[E]),V.useImperativeHandle(a,()=>({openAddTask:()=>y("ready"),openAddTemplate:()=>S(!0),closeModals:()=>{o(null),f(null),y(null),x(null),S(!1)}}));const z=xf(),{data:U=[],isLoading:L}=_n({...to(l),refetchInterval:z}),{data:ne=[],isLoading:ee}=_n({...fS(l),refetchInterval:5e3}),O=it(),P=xv(l),le=vv(),ue=kv(l),R=dS(l),Y=hS(),J=mS();kS(U);const de=V.useMemo(()=>{const v={backlog:[],ready:[],in_progress:[],done:[]};for(const Q of U)v[Q.status].push(Q);for(const Q of Object.keys(v))v[Q].sort((te,ae)=>te.position-ae.position);return v},[U]),se=V.useMemo(()=>[...ne].sort((v,Q)=>v.position-Q.position),[ne]),W=V.useCallback((v,Q,te)=>{O.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:Q,position:te}:Xe),dt=we.filter(Xe=>Xe.status===Q&&Xe.id!==v).sort((Xe,gt)=>Xe.position-gt.position);let vt=te;for(const Xe of dt)if(Xe.position>=te){const gt=we.findIndex(ht=>ht.id===Xe.id);gt!==-1&&(vt++,we[gt]={...we[gt],position:vt})}return pe!==Q&&we.filter(gt=>gt.status===pe).sort((gt,ht)=>gt.position-ht.position).forEach((gt,ht)=>{const fn=we.findIndex(jn=>jn.id===gt.id);fn!==-1&&(we[fn]={...we[fn],position:ht})}),we}),_(v),le.mutate({taskId:v,status:Q,position:te})},[le,O,l]),D=V.useCallback((v,Q)=>{J.mutate({templateId:v,position:Q})},[J]),Z=V.useCallback((v,Q)=>{y(Q),x(v)},[]),ce=async(v,Q,te)=>{m&&P.mutate({title:v,description:Q||void 0,status:m},{onSuccess:async ae=>{te.length>0&&await Promise.all(te.map(me=>zC(ae.id,me))),y(null),x(null)}})},Se=()=>{y(null),x(null)},C=async(v,Q,te)=>{R.mutate({title:v,description:Q||void 0},{onSuccess:async ae=>{te.length>0&&await Promise.all(te.map(me=>jC(ae.id,me))),S(!1)}})},T=(v,Q)=>{c&&Y.mutate({templateId:c.id,title:v,description:Q||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(AS,{templates:se,onTemplateClick:f,onAddClick:()=>S(!0),onMoveTemplate:D,onTemplateDropOnColumn:Z,isDragging:k,onDragStart:()=>j(!0),onDragEnd:()=>j(!1)}),o0.map((v,Q)=>h.jsx(TS,{id:v.id,title:v.title,tasks:de[v.id],onTaskClick:o,onDeleteAll:v.id!=="in_progress"?()=>ue.mutate(v.id):void 0,isDeleting:ue.isPending,showBorder:Q<o0.length-1,onMoveTask:W,onTemplateDropOnColumn:Z,isDragging:k,onDragStart:()=>j(!0),onDragEnd:()=>j(!1),justDroppedTaskId:E,onAddTask:v.id!=="in_progress"?()=>y(v.id):void 0},v.id))]})}),s&&h.jsx(bC,{task:s,onClose:()=>o(null)}),m&&h.jsx(vC,{status:m,initialTemplate:p,onClose:Se,onSubmit:ce,isLoading:P.isPending}),g&&h.jsx(SC,{onClose:()=>S(!1),onSubmit:C,isLoading:R.isPending}),c&&h.jsx(wC,{template:c,onClose:()=>f(null),onSubmit:T,isLoading:Y.isPending})]})}const NC=V.forwardRef(function(l,a){const{projectId:s}=l;return h.jsx(CC,{projectId:s,boardRef:a})}),TC=[{id:"overview",label:"Overview",icon:h.jsx(_2,{className:"w-4 h-4"})},{id:"planning",label:"Planning",icon:h.jsx(Ng,{className:"w-4 h-4"})},{id:"workflow",label:"Workflow",icon:h.jsx(r2,{className:"w-4 h-4"})},{id:"interaction",label:"Interaction",icon:h.jsx(Tg,{className:"w-4 h-4"})},{id:"shortcuts",label:"Shortcuts",icon:h.jsx(d2,{className:"w-4 h-4"})},{id:"tips",label:"Tips",icon:h.jsx(g2,{className:"w-4 h-4"})}];function EC(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(An,{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 AC(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(An,{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 DC(){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(Sr,{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 _C(){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(Tg,{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 MC(){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 OC(){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 RC(n){const{projectId:l,onClose:a}=n,[s,o]=V.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(zn,{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:TC.map(f=>h.jsxs("button",{onClick:()=>o(f.id),className:`
|
|
66
|
+
w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-sm transition-colors text-left
|
|
67
|
+
${s===f.id?"bg-zinc-800 text-zinc-100":"text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800/50"}
|
|
68
|
+
`,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(EC,{projectId:l,skillCommand:c}),s==="planning"&&h.jsx(AC,{projectId:l,skillCommand:c}),s==="workflow"&&h.jsx(DC,{}),s==="interaction"&&h.jsx(_C,{}),s==="shortcuts"&&h.jsx(MC,{}),s==="tips"&&h.jsx(OC,{})]})]})]})]})}const LC=[{id:"status",label:"Status",icon:h.jsx(vg,{className:"w-4 h-4"})},{id:"skills",label:"Skills",icon:h.jsx(E2,{className:"w-4 h-4"})},{id:"mcp",label:"MCP Server",icon:h.jsx(B2,{className:"w-4 h-4"})},{id:"issues",label:"Common Issues",icon:h.jsx(Z2,{className:"w-4 h-4"})},{id:"actions",label:"Actions",icon:h.jsx(Dg,{className:"w-4 h-4"})}];function Gc(n){const{label:l,status:a,message:s}=n,o={ok:h.jsx(wg,{className:"w-4 h-4 text-green-400"}),warning:h.jsx(Qi,{className:"w-4 h-4 text-yellow-400"}),error:h.jsx(zg,{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 UC(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(Gc,{...m()}),h.jsx(Gc,{...f()}),h.jsx(Gc,{...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 BC(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(An,{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(An,{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(An,{text:s,className:"mr-2"})]})]})]})}function qC(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(An,{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}": {
|
|
69
|
+
"command": "npx",
|
|
70
|
+
"args": ["-y", "-p", "claude-queue", "claude-queue-mcp"],
|
|
71
|
+
"env": {
|
|
72
|
+
"KANBAN_SERVER_URL": "http://localhost:${a}"
|
|
73
|
+
}
|
|
74
|
+
}`})]}),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(An,{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 HC(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(no,{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 dr(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 QC(){const n=it(),[l,a]=V.useState(null),[s,o]=V.useState(!1),[c,f]=V.useState(null),m=async()=>{const j=await Xn("/maintenance/stats");a(j)},y=async j=>{o(!0);try{await j(),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 Mn("/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(Ag,{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(dr,{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(dr,{label:"Clear Activity Log",description:`Delete all activity history (${l.activities} entries)`,icon:h.jsx(vg,{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(dr,{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(dr,{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(dr,{label:"Optimize Database",description:"Run VACUUM to reclaim space and optimize performance",icon:h.jsx(Wv,{className:"w-4 h-4"}),variant:"info",onClick:k,disabled:s})]})]}),c&&h.jsx(fa,{title:c.title,message:c.message,confirmLabel:"Delete",isLoading:s,onConfirm:()=>y(c.action),onCancel:()=>f(null)})]})}function YC(n){const{skillCommand:l}=n,[a,s]=V.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(HC,{question:f.problem,answers:f.solutions,isOpen:a===m,onToggle:()=>c(m)},m))})}function FC(n){const{project:l,tasks:a,onClose:s}=n,[o,c]=V.useState("status"),f=io(),m=rS(),y=sS();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(zn,{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:LC.map(p=>h.jsxs("button",{onClick:()=>c(p.id),className:`
|
|
75
|
+
w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-sm transition-colors text-left
|
|
76
|
+
${o===p.id?"bg-zinc-800 text-zinc-100":"text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800/50"}
|
|
77
|
+
`,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(UC,{project:l,tasks:a,port:y}),o==="skills"&&h.jsx(BC,{projectId:l?.id||null,skillCommand:f}),o==="mcp"&&h.jsx(qC,{mcpName:m,port:y}),o==="issues"&&h.jsx(YC,{skillCommand:f}),o==="actions"&&h.jsx(QC,{})]})]})]})]})}function tg(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 Gs(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 VC(n){const{project:l,onClose:a}=n,{data:s,isLoading:o}=_n({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(zn,{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(Ag,{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(Gs,{label:"Completed Today",value:s.completedToday,icon:h.jsx(Lv,{className:"w-4 h-4"})}),h.jsx(Gs,{label:"This Week",value:s.completedThisWeek,icon:h.jsx(I2,{className:"w-4 h-4"})})]}),h.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[h.jsx(Gs,{label:"Total Completed",value:s.totalCompleted,icon:h.jsx(wg,{className:"w-4 h-4"}),subtitle:`of ${c} tasks`}),h.jsx(Gs,{label:"Avg Completion Time",value:tg(s.avgTimeMs),icon:h.jsx(Qi,{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(Qi,{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:tg(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 GC(){return{queryKey:["prompts","master"],queryFn:()=>Xn("/prompts/master")}}function XC(n){return{queryKey:["prompts","project",n],queryFn:()=>Xn(`/prompts/project/${n}`),enabled:!!n}}function IC(){const n=it();return At({mutationFn:l=>yg("/prompts/master",{content:l}),onSuccess:()=>{n.invalidateQueries({queryKey:["prompts","master"]})}})}function KC(n){const l=it();return At({mutationFn:a=>yg(`/prompts/project/${n}`,{content:a}),onSuccess:()=>{l.invalidateQueries({queryKey:["prompts","project",n]})}})}const ZC=[{id:"general",label:"General",icon:h.jsx(Y2,{className:"w-4 h-4"})},{id:"prompts",label:"Prompts",icon:h.jsx(Sr,{className:"w-4 h-4"})}];function $C(){const[n,l]=vS();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:`
|
|
78
|
+
flex items-center gap-3 w-full p-3 rounded-lg border transition-colors
|
|
79
|
+
${n?"bg-orange-500/10 border-orange-500/30 text-orange-400":"bg-zinc-800/50 border-zinc-700 text-zinc-400"}
|
|
80
|
+
`,children:[n?h.jsx(eS,{className:"w-5 h-5"}):h.jsx(nS,{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:`
|
|
81
|
+
w-10 h-6 rounded-full transition-colors relative
|
|
82
|
+
${n?"bg-orange-500":"bg-zinc-600"}
|
|
83
|
+
`,children:h.jsx("div",{className:`
|
|
84
|
+
absolute top-1 w-4 h-4 rounded-full bg-white transition-transform
|
|
85
|
+
${n?"translate-x-5":"translate-x-1"}
|
|
86
|
+
`})})]})]})})}function ng(n){const{title:l,description:a,content:s,isLoading:o,isPending:c,onSave:f}=n,[m,y]=V.useState(!1),[p,x]=V.useState(""),[g,S]=V.useState(!1),k=()=>{x(s||""),y(!0)},j=()=>{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(yr,{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:_=>x(_.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:j,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(yr,{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 PC(n){const{projectId:l}=n,{data:a,isLoading:s}=_n(GC()),{data:o,isLoading:c}=_n(XC(l||"")),f=IC(),m=KC(l||"");return h.jsxs("div",{className:"space-y-6",children:[h.jsx(ng,{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(ng,{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 JC(n){const{projectId:l,onClose:a}=n,[s,o]=V.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(zn,{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:ZC.map(c=>h.jsxs("button",{onClick:()=>o(c.id),className:`
|
|
87
|
+
w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-sm transition-colors text-left
|
|
88
|
+
${s===c.id?"bg-zinc-800 text-zinc-100":"text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800/50"}
|
|
89
|
+
`,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($C,{}),s==="prompts"&&h.jsx(PC,{projectId:l})]})]})]})]})}const ig="claude-queue-help-seen";function WC(){const[n,l]=V.useState(null),[a,s]=V.useState(()=>!localStorage.getItem(ig)),[o,c]=V.useState(!1),[f,m]=V.useState(!1),[y,p]=V.useState(!1),x=V.useRef(null),g=xf(),{data:S=[],isLoading:k}=_n({...gv(),refetchInterval:g}),{data:j=[]}=_n({...to(n||""),enabled:!!n,refetchInterval:g}),E=()=>{s(!1),localStorage.setItem(ig,"true")};V.useEffect(()=>{if(S.length>0&&!n){const ee=new URLSearchParams(window.location.search).get("project");ee&&S.some(O=>O.id===ee)?l(ee):l(S[0].id)}},[S,n]);const _=ne=>{l(ne);const ee=new URL(window.location.href);ee.searchParams.set("project",ne),window.history.replaceState({},"",ee.toString())},z=a||o||f||y,U=()=>{a&&E(),o&&c(!1),f&&m(!1),y&&p(!1),x.current?.closeModals()};zv({onHelp:()=>{z?U():s(!0)},onAddTask:()=>{z||x.current?.openAddTask()},onAddTemplate:()=>{z||x.current?.openAddTemplate()},onCloseModal:U,onTroubleshooting:()=>{z?U():c(!0)},onStats:()=>{z?U():L&&m(!0)}});const L=S.find(ne=>ne.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(An,{text:"npx claude-queue"})]})]})}):h.jsxs("div",{className:"h-screen bg-zinc-950 flex flex-col overflow-hidden",children:[h.jsx(pv,{position:"top-right",theme:"dark",toastOptions:{style:{background:"#18181b",border:"1px solid #27272a",color:"#fafafa"}}}),h.jsx(cS,{project:L,projects:S,onProjectChange:_,onHelpClick:()=>s(!0),onTroubleshootClick:()=>c(!0),onStatsClick:()=>m(!0),onSettingsClick:()=>p(!0)}),n&&h.jsx(NC,{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(RC,{projectId:n,onClose:E}),o&&h.jsx(FC,{project:L,tasks:j,onClose:()=>c(!1)}),f&&L&&h.jsx(VC,{project:L,onClose:()=>m(!1)}),y&&h.jsx(JC,{projectId:n,onClose:()=>p(!1)})]})}lb.createRoot(document.getElementById("root")).render(h.jsx(V.StrictMode,{children:h.jsx(Eb,{client:Qb,children:h.jsx(WC,{})})}));
|