@teddysc/claude-run 0.14.1 → 0.15.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.
@@ -0,0 +1,333 @@
1
+ (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))u(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&u(f)}).observe(document,{childList:!0,subtree:!0});function i(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function u(s){if(s.ep)return;s.ep=!0;const c=i(s);fetch(s.href,c)}})();function n0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ho={exports:{}},Oa={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Fm;function qy(){if(Fm)return Oa;Fm=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(u,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var d in s)d!=="key"&&(c[d]=s[d])}else c=s;return s=c.ref,{$$typeof:n,type:u,key:f,ref:s!==void 0?s:null,props:c}}return Oa.Fragment=a,Oa.jsx=i,Oa.jsxs=i,Oa}var Xm;function Yy(){return Xm||(Xm=1,Ho.exports=qy()),Ho.exports}var g=Yy(),qo={exports:{}},ke={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Gm;function Vy(){if(Gm)return ke;Gm=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),S=Symbol.iterator;function v(C){return C===null||typeof C!="object"?null:(C=S&&C[S]||C["@@iterator"],typeof C=="function"?C:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,_={};function M(C,F,k){this.props=C,this.context=F,this.refs=_,this.updater=k||w}M.prototype.isReactComponent={},M.prototype.setState=function(C,F){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,F,"setState")},M.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function q(){}q.prototype=M.prototype;function H(C,F,k){this.props=C,this.context=F,this.refs=_,this.updater=k||w}var I=H.prototype=new q;I.constructor=H,j(I,M.prototype),I.isPureReactComponent=!0;var P=Array.isArray;function O(){}var $={H:null,A:null,T:null,S:null},se=Object.prototype.hasOwnProperty;function me(C,F,k){var ae=k.ref;return{$$typeof:n,type:C,key:F,ref:ae!==void 0?ae:null,props:k}}function B(C,F){return me(C.type,F,C.props)}function ne(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function ee(C){var F={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(k){return F[k]})}var de=/\/+/g;function re(C,F){return typeof C=="object"&&C!==null&&C.key!=null?ee(""+C.key):F.toString(36)}function W(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(O,O):(C.status="pending",C.then(function(F){C.status==="pending"&&(C.status="fulfilled",C.value=F)},function(F){C.status==="pending"&&(C.status="rejected",C.reason=F)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function R(C,F,k,ae,ge){var xe=typeof C;(xe==="undefined"||xe==="boolean")&&(C=null);var we=!1;if(C===null)we=!0;else switch(xe){case"bigint":case"string":case"number":we=!0;break;case"object":switch(C.$$typeof){case n:case a:we=!0;break;case x:return we=C._init,R(we(C._payload),F,k,ae,ge)}}if(we)return ge=ge(C),we=ae===""?"."+re(C,0):ae,P(ge)?(k="",we!=null&&(k=we.replace(de,"$&/")+"/"),R(ge,F,k,"",function(Oe){return Oe})):ge!=null&&(ne(ge)&&(ge=B(ge,k+(ge.key==null||C&&C.key===ge.key?"":(""+ge.key).replace(de,"$&/")+"/")+we)),F.push(ge)),1;we=0;var ue=ae===""?".":ae+":";if(P(C))for(var ce=0;ce<C.length;ce++)ae=C[ce],xe=ue+re(ae,ce),we+=R(ae,F,k,xe,ge);else if(ce=v(C),typeof ce=="function")for(C=ce.call(C),ce=0;!(ae=C.next()).done;)ae=ae.value,xe=ue+re(ae,ce++),we+=R(ae,F,k,xe,ge);else if(xe==="object"){if(typeof C.then=="function")return R(W(C),F,k,ae,ge);throw F=String(C),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return we}function K(C,F,k){if(C==null)return C;var ae=[],ge=0;return R(C,ae,"","",function(xe){return F.call(k,xe,ge++)}),ae}function oe(C){if(C._status===-1){var F=C._result;F=F(),F.then(function(k){(C._status===0||C._status===-1)&&(C._status=1,C._result=k)},function(k){(C._status===0||C._status===-1)&&(C._status=2,C._result=k)}),C._status===-1&&(C._status=0,C._result=F)}if(C._status===1)return C._result.default;throw C._result}var ze=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},E={map:K,forEach:function(C,F,k){K(C,function(){F.apply(this,arguments)},k)},count:function(C){var F=0;return K(C,function(){F++}),F},toArray:function(C){return K(C,function(F){return F})||[]},only:function(C){if(!ne(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return ke.Activity=y,ke.Children=E,ke.Component=M,ke.Fragment=i,ke.Profiler=s,ke.PureComponent=H,ke.StrictMode=u,ke.Suspense=p,ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,ke.__COMPILER_RUNTIME={__proto__:null,c:function(C){return $.H.useMemoCache(C)}},ke.cache=function(C){return function(){return C.apply(null,arguments)}},ke.cacheSignal=function(){return null},ke.cloneElement=function(C,F,k){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var ae=j({},C.props),ge=C.key;if(F!=null)for(xe in F.key!==void 0&&(ge=""+F.key),F)!se.call(F,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&F.ref===void 0||(ae[xe]=F[xe]);var xe=arguments.length-2;if(xe===1)ae.children=k;else if(1<xe){for(var we=Array(xe),ue=0;ue<xe;ue++)we[ue]=arguments[ue+2];ae.children=we}return me(C.type,ge,ae)},ke.createContext=function(C){return C={$$typeof:f,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:c,_context:C},C},ke.createElement=function(C,F,k){var ae,ge={},xe=null;if(F!=null)for(ae in F.key!==void 0&&(xe=""+F.key),F)se.call(F,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(ge[ae]=F[ae]);var we=arguments.length-2;if(we===1)ge.children=k;else if(1<we){for(var ue=Array(we),ce=0;ce<we;ce++)ue[ce]=arguments[ce+2];ge.children=ue}if(C&&C.defaultProps)for(ae in we=C.defaultProps,we)ge[ae]===void 0&&(ge[ae]=we[ae]);return me(C,xe,ge)},ke.createRef=function(){return{current:null}},ke.forwardRef=function(C){return{$$typeof:d,render:C}},ke.isValidElement=ne,ke.lazy=function(C){return{$$typeof:x,_payload:{_status:-1,_result:C},_init:oe}},ke.memo=function(C,F){return{$$typeof:m,type:C,compare:F===void 0?null:F}},ke.startTransition=function(C){var F=$.T,k={};$.T=k;try{var ae=C(),ge=$.S;ge!==null&&ge(k,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(O,ze)}catch(xe){ze(xe)}finally{F!==null&&k.types!==null&&(F.types=k.types),$.T=F}},ke.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},ke.use=function(C){return $.H.use(C)},ke.useActionState=function(C,F,k){return $.H.useActionState(C,F,k)},ke.useCallback=function(C,F){return $.H.useCallback(C,F)},ke.useContext=function(C){return $.H.useContext(C)},ke.useDebugValue=function(){},ke.useDeferredValue=function(C,F){return $.H.useDeferredValue(C,F)},ke.useEffect=function(C,F){return $.H.useEffect(C,F)},ke.useEffectEvent=function(C){return $.H.useEffectEvent(C)},ke.useId=function(){return $.H.useId()},ke.useImperativeHandle=function(C,F,k){return $.H.useImperativeHandle(C,F,k)},ke.useInsertionEffect=function(C,F){return $.H.useInsertionEffect(C,F)},ke.useLayoutEffect=function(C,F){return $.H.useLayoutEffect(C,F)},ke.useMemo=function(C,F){return $.H.useMemo(C,F)},ke.useOptimistic=function(C,F){return $.H.useOptimistic(C,F)},ke.useReducer=function(C,F,k){return $.H.useReducer(C,F,k)},ke.useRef=function(C){return $.H.useRef(C)},ke.useState=function(C){return $.H.useState(C)},ke.useSyncExternalStore=function(C,F,k){return $.H.useSyncExternalStore(C,F,k)},ke.useTransition=function(){return $.H.useTransition()},ke.version="19.2.4",ke}var Qm;function wc(){return Qm||(Qm=1,qo.exports=Vy()),qo.exports}var V=wc(),Yo={exports:{}},Da={},Vo={exports:{}},Fo={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Zm;function Fy(){return Zm||(Zm=1,(function(n){function a(R,K){var oe=R.length;R.push(K);e:for(;0<oe;){var ze=oe-1>>>1,E=R[ze];if(0<s(E,K))R[ze]=K,R[oe]=E,oe=ze;else break e}}function i(R){return R.length===0?null:R[0]}function u(R){if(R.length===0)return null;var K=R[0],oe=R.pop();if(oe!==K){R[0]=oe;e:for(var ze=0,E=R.length,C=E>>>1;ze<C;){var F=2*(ze+1)-1,k=R[F],ae=F+1,ge=R[ae];if(0>s(k,oe))ae<E&&0>s(ge,k)?(R[ze]=ge,R[ae]=oe,ze=ae):(R[ze]=k,R[F]=oe,ze=F);else if(ae<E&&0>s(ge,oe))R[ze]=ge,R[ae]=oe,ze=ae;else break e}}return K}function s(R,K){var oe=R.sortIndex-K.sortIndex;return oe!==0?oe:R.id-K.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,d=f.now();n.unstable_now=function(){return f.now()-d}}var p=[],m=[],x=1,y=null,S=3,v=!1,w=!1,j=!1,_=!1,M=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function I(R){for(var K=i(m);K!==null;){if(K.callback===null)u(m);else if(K.startTime<=R)u(m),K.sortIndex=K.expirationTime,a(p,K);else break;K=i(m)}}function P(R){if(j=!1,I(R),!w)if(i(p)!==null)w=!0,O||(O=!0,ee());else{var K=i(m);K!==null&&W(P,K.startTime-R)}}var O=!1,$=-1,se=5,me=-1;function B(){return _?!0:!(n.unstable_now()-me<se)}function ne(){if(_=!1,O){var R=n.unstable_now();me=R;var K=!0;try{e:{w=!1,j&&(j=!1,q($),$=-1),v=!0;var oe=S;try{t:{for(I(R),y=i(p);y!==null&&!(y.expirationTime>R&&B());){var ze=y.callback;if(typeof ze=="function"){y.callback=null,S=y.priorityLevel;var E=ze(y.expirationTime<=R);if(R=n.unstable_now(),typeof E=="function"){y.callback=E,I(R),K=!0;break t}y===i(p)&&u(p),I(R)}else u(p);y=i(p)}if(y!==null)K=!0;else{var C=i(m);C!==null&&W(P,C.startTime-R),K=!1}}break e}finally{y=null,S=oe,v=!1}K=void 0}}finally{K?ee():O=!1}}}var ee;if(typeof H=="function")ee=function(){H(ne)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,re=de.port2;de.port1.onmessage=ne,ee=function(){re.postMessage(null)}}else ee=function(){M(ne,0)};function W(R,K){$=M(function(){R(n.unstable_now())},K)}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(R){R.callback=null},n.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<R?Math.floor(1e3/R):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(R){switch(S){case 1:case 2:case 3:var K=3;break;default:K=S}var oe=S;S=K;try{return R()}finally{S=oe}},n.unstable_requestPaint=function(){_=!0},n.unstable_runWithPriority=function(R,K){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var oe=S;S=R;try{return K()}finally{S=oe}},n.unstable_scheduleCallback=function(R,K,oe){var ze=n.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?ze+oe:ze):oe=ze,R){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=oe+E,R={id:x++,callback:K,priorityLevel:R,startTime:oe,expirationTime:E,sortIndex:-1},oe>ze?(R.sortIndex=oe,a(m,R),i(p)===null&&R===i(m)&&(j?(q($),$=-1):j=!0,W(P,oe-ze))):(R.sortIndex=E,a(p,R),w||v||(w=!0,O||(O=!0,ee()))),R},n.unstable_shouldYield=B,n.unstable_wrapCallback=function(R){var K=S;return function(){var oe=S;S=K;try{return R.apply(this,arguments)}finally{S=oe}}}})(Fo)),Fo}var Jm;function Xy(){return Jm||(Jm=1,Vo.exports=Fy()),Vo.exports}var Xo={exports:{}},Nt={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Km;function Gy(){if(Km)return Nt;Km=1;var n=wc();function a(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var u={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(p,m,x){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:p,containerInfo:m,implementation:x}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,Nt.createPortal=function(p,m){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return c(p,m,null,x)},Nt.flushSync=function(p){var m=f.T,x=u.p;try{if(f.T=null,u.p=2,p)return p()}finally{f.T=m,u.p=x,u.d.f()}},Nt.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,u.d.C(p,m))},Nt.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},Nt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var x=m.as,y=d(x,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,v=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;x==="style"?u.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:S,fetchPriority:v}):x==="script"&&u.d.X(p,{crossOrigin:y,integrity:S,fetchPriority:v,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Nt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var x=d(m.as,m.crossOrigin);u.d.M(p,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(p)},Nt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var x=m.as,y=d(x,m.crossOrigin);u.d.L(p,x,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Nt.preloadModule=function(p,m){if(typeof p=="string")if(m){var x=d(m.as,m.crossOrigin);u.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(p)},Nt.requestFormReset=function(p){u.d.r(p)},Nt.unstable_batchedUpdates=function(p,m){return p(m)},Nt.useFormState=function(p,m,x){return f.H.useFormState(p,m,x)},Nt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Nt.version="19.2.4",Nt}var Im;function l0(){if(Im)return Xo.exports;Im=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(a){console.error(a)}}return n(),Xo.exports=Gy(),Xo.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var $m;function Qy(){if($m)return Da;$m=1;var n=Xy(),a=wc(),i=l0();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function 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 d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(c(e)!==e)throw Error(u(188))}function m(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(u(188));return t!==e?null:e}for(var l=e,r=t;;){var o=l.return;if(o===null)break;var h=o.alternate;if(h===null){if(r=o.return,r!==null){l=r;continue}break}if(o.child===h.child){for(h=o.child;h;){if(h===l)return p(o),e;if(h===r)return p(o),t;h=h.sibling}throw Error(u(188))}if(l.return!==r.return)l=o,r=h;else{for(var b=!1,z=o.child;z;){if(z===l){b=!0,l=o,r=h;break}if(z===r){b=!0,r=o,l=h;break}z=z.sibling}if(!b){for(z=h.child;z;){if(z===l){b=!0,l=h,r=o;break}if(z===r){b=!0,r=h,l=o;break}z=z.sibling}if(!b)throw Error(u(189))}}if(l.alternate!==r)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?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 y=Object.assign,S=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),H=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),B=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var de=Symbol.for("react.client.reference");function re(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 j:return"Fragment";case M:return"Profiler";case _:return"StrictMode";case P:return"Suspense";case O:return"SuspenseList";case me:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case H:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:re(e.type)||"Memo";case se:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var W=Array.isArray,R=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},ze=[],E=-1;function C(e){return{current:e}}function F(e){0>E||(e.current=ze[E],ze[E]=null,E--)}function k(e,t){E++,ze[E]=e.current,e.current=t}var ae=C(null),ge=C(null),xe=C(null),we=C(null);function ue(e,t){switch(k(xe,t),k(ge,e),k(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?hm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=hm(t),e=dm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(ae),k(ae,e)}function ce(){F(ae),F(ge),F(xe)}function Oe(e){e.memoizedState!==null&&k(we,e);var t=ae.current,l=dm(t,e.type);t!==l&&(k(ge,e),k(ae,l))}function De(e){ge.current===e&&(F(ae),F(ge)),we.current===e&&(F(we),ja._currentValue=oe)}var $e,Gt;function at(e){if($e===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);$e=t&&t[1]||"",Gt=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+$e+e+Gt}var Dt=!1;function tn(e,t){if(!e||Dt)return"";Dt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(Y){var U=Y}Reflect.construct(e,[],J)}else{try{J.call()}catch(Y){U=Y}e.call(J.prototype)}}else{try{throw Error()}catch(Y){U=Y}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(Y){if(Y&&U&&typeof Y.stack=="string")return[Y.stack,U.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=r.DetermineComponentFrameRoot(),b=h[0],z=h[1];if(b&&z){var T=b.split(`
44
+ `),L=z.split(`
45
+ `);for(o=r=0;r<T.length&&!T[r].includes("DetermineComponentFrameRoot");)r++;for(;o<L.length&&!L[o].includes("DetermineComponentFrameRoot");)o++;if(r===T.length||o===L.length)for(r=T.length-1,o=L.length-1;1<=r&&0<=o&&T[r]!==L[o];)o--;for(;1<=r&&0<=o;r--,o--)if(T[r]!==L[o]){if(r!==1||o!==1)do if(r--,o--,0>o||T[r]!==L[o]){var X=`
46
+ `+T[r].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=r&&0<=o);break}}}finally{Dt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?at(l):""}function pn(e,t){switch(e.tag){case 26:case 27:case 5:return at(e.type);case 16:return at("Lazy");case 13:return e.child!==t&&t!==null?at("Suspense Fallback"):at("Suspense");case 19:return at("SuspenseList");case 0:case 15:return tn(e.type,!1);case 11:return tn(e.type.render,!1);case 1:return tn(e.type,!0);case 31:return at("Activity");default:return""}}function Xl(e){try{var t="",l=null;do t+=pn(e,l),l=e,e=e.return;while(e);return t}catch(r){return`
47
+ Error generating stack: `+r.message+`
48
+ `+r.stack}}var Cn=Object.prototype.hasOwnProperty,Jn=n.unstable_scheduleCallback,kl=n.unstable_cancelCallback,qi=n.unstable_shouldYield,Yi=n.unstable_requestPaint,vt=n.unstable_now,Vi=n.unstable_getCurrentPriorityLevel,G=n.unstable_ImmediatePriority,ie=n.unstable_UserBlockingPriority,ve=n.unstable_NormalPriority,Ee=n.unstable_LowPriority,Ue=n.unstable_IdlePriority,At=n.log,gn=n.unstable_setDisableYieldValue,St=null,st=null;function Ct(e){if(typeof At=="function"&&gn(e),st&&typeof st.setStrictMode=="function")try{st.setStrictMode(St,e)}catch{}}var Ge=Math.clz32?Math.clz32:fe,Z=Math.log,le=Math.LN2;function fe(e){return e>>>=0,e===0?32:31-(Z(e)/le|0)|0}var Fe=256,Xe=262144,it=4194304;function ft(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 nn(e,t,l){var r=e.pendingLanes;if(r===0)return 0;var o=0,h=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var z=r&134217727;return z!==0?(r=z&~h,r!==0?o=ft(r):(b&=z,b!==0?o=ft(b):l||(l=z&~e,l!==0&&(o=ft(l))))):(z=r&~h,z!==0?o=ft(z):b!==0?o=ft(b):l||(l=r&~e,l!==0&&(o=ft(l)))),o===0?0:t!==0&&t!==o&&(t&h)===0&&(h=o&-o,l=t&-t,h>=l||h===32&&(l&4194048)!==0)?t:o}function Kn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ja(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 Ka(){var e=it;return it<<=1,(it&62914560)===0&&(it=4194304),e}function Tu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Fi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ng(e,t,l,r,o,h){var b=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var z=e.entanglements,T=e.expirationTimes,L=e.hiddenUpdates;for(l=b&~l;0<l;){var X=31-Ge(l),J=1<<X;z[X]=0,T[X]=-1;var U=L[X];if(U!==null)for(L[X]=null,X=0;X<U.length;X++){var Y=U[X];Y!==null&&(Y.lane&=-536870913)}l&=~J}r!==0&&Zc(e,r,0),h!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=h&~(b&~t))}function Zc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ge(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|l&261930}function Jc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var r=31-Ge(l),o=1<<r;o&t|e[r]&t&&(e[r]|=t),l&=~o}}function Kc(e,t){var l=t&-t;return l=(l&42)!==0?1:Cu(l),(l&(e.suspendedLanes|t))!==0?0:l}function Cu(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 Nu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ic(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:Lm(e.type))}function $c(e,t){var l=K.p;try{return K.p=e,t()}finally{K.p=l}}var In=Math.random().toString(36).slice(2),zt="__reactFiber$"+In,Rt="__reactProps$"+In,Gl="__reactContainer$"+In,ju="__reactEvents$"+In,jg="__reactListeners$"+In,Mg="__reactHandles$"+In,Wc="__reactResources$"+In,Xi="__reactMarker$"+In;function Mu(e){delete e[zt],delete e[Rt],delete e[ju],delete e[jg],delete e[Mg]}function Ql(e){var t=e[zt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Gl]||l[zt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=vm(e);e!==null;){if(l=e[zt])return l;e=vm(e)}return t}e=l,l=e.parentNode}return null}function Zl(e){if(e=e[zt]||e[Gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Gi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Jl(e){var t=e[Wc];return t||(t=e[Wc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function yt(e){e[Xi]=!0}var Pc=new Set,ef={};function wl(e,t){Kl(e,t),Kl(e+"Capture",t)}function Kl(e,t){for(ef[e]=t,e=0;e<t.length;e++)Pc.add(t[e])}var Ag=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]*$"),tf={},nf={};function _g(e){return Cn.call(nf,e)?!0:Cn.call(tf,e)?!1:Ag.test(e)?nf[e]=!0:(tf[e]=!0,!1)}function Ia(e,t,l){if(_g(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){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,""+l)}}function $a(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Nn(e,t,l,r){if(r===null)e.removeAttribute(l);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+r)}}function ln(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Og(e,t,l){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,h=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(b){l=""+b,h.call(this,b)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return l},setValue:function(b){l=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Au(e){if(!e._valueTracker){var t=lf(e)?"checked":"value";e._valueTracker=Og(e,t,""+e[t])}}function af(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),r="";return e&&(r=lf(e)?e.checked?"true":"false":e.value),e=r,e!==l?(t.setValue(e),!0):!1}function Wa(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 Dg=/[\n"\\]/g;function an(e){return e.replace(Dg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function _u(e,t,l,r,o,h,b,z){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=""+ln(t)):e.value!==""+ln(t)&&(e.value=""+ln(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?Ou(e,b,ln(t)):l!=null?Ou(e,b,ln(l)):r!=null&&e.removeAttribute("value"),o==null&&h!=null&&(e.defaultChecked=!!h),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?e.name=""+ln(z):e.removeAttribute("name")}function rf(e,t,l,r,o,h,b,z){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),t!=null||l!=null){if(!(h!=="submit"&&h!=="reset"||t!=null)){Au(e);return}l=l!=null?""+ln(l):"",t=t!=null?""+ln(t):l,z||t===e.value||(e.value=t),e.defaultValue=t}r=r??o,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=z?e.checked:!!r,e.defaultChecked=!!r,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),Au(e)}function Ou(e,t,l){t==="number"&&Wa(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Il(e,t,l,r){if(e=e.options,t){t={};for(var o=0;o<l.length;o++)t["$"+l[o]]=!0;for(l=0;l<e.length;l++)o=t.hasOwnProperty("$"+e[l].value),e[l].selected!==o&&(e[l].selected=o),o&&r&&(e[l].defaultSelected=!0)}else{for(l=""+ln(l),t=null,o=0;o<e.length;o++){if(e[o].value===l){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function uf(e,t,l){if(t!=null&&(t=""+ln(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+ln(l):""}function sf(e,t,l,r){if(t==null){if(r!=null){if(l!=null)throw Error(u(92));if(W(r)){if(1<r.length)throw Error(u(93));r=r[0]}l=r}l==null&&(l=""),t=l}l=ln(t),e.defaultValue=l,r=e.textContent,r===l&&r!==""&&r!==null&&(e.value=r),Au(e)}function $l(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Rg=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 of(e,t,l){var r=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,l):typeof l!="number"||l===0||Rg.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function cf(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,l!=null){for(var r in l)!l.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&l[o]!==r&&of(e,o,r)}else for(var h in t)t.hasOwnProperty(h)&&of(e,h,t[h])}function Du(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 Lg=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"]]),Ug=/^[\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 Pa(e){return Ug.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function jn(){}var Ru=null;function Lu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wl=null,Pl=null;function ff(e){var t=Zl(e);if(t&&(e=t.stateNode)){var l=e[Rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(_u(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+an(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var r=l[t];if(r!==e&&r.form===e.form){var o=r[Rt]||null;if(!o)throw Error(u(90));_u(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<l.length;t++)r=l[t],r.form===e.form&&af(r)}break e;case"textarea":uf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Il(e,!!l.multiple,t,!1)}}}var Uu=!1;function hf(e,t,l){if(Uu)return e(t,l);Uu=!0;try{var r=e(t);return r}finally{if(Uu=!1,(Wl!==null||Pl!==null)&&(qr(),Wl&&(t=Wl,e=Pl,Pl=Wl=null,ff(t),e)))for(t=0;t<e.length;t++)ff(e[t])}}function Qi(e,t){var l=e.stateNode;if(l===null)return null;var r=l[Rt]||null;if(r===null)return null;l=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(l&&typeof l!="function")throw Error(u(231,t,typeof l));return l}var Mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bu=!1;if(Mn)try{var Zi={};Object.defineProperty(Zi,"passive",{get:function(){Bu=!0}}),window.addEventListener("test",Zi,Zi),window.removeEventListener("test",Zi,Zi)}catch{Bu=!1}var $n=null,Hu=null,er=null;function df(){if(er)return er;var e,t=Hu,l=t.length,r,o="value"in $n?$n.value:$n.textContent,h=o.length;for(e=0;e<l&&t[e]===o[e];e++);var b=l-e;for(r=1;r<=b&&t[l-r]===o[h-r];r++);return er=o.slice(e,1<r?1-r:void 0)}function tr(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 nr(){return!0}function mf(){return!1}function Lt(e){function t(l,r,o,h,b){this._reactName=l,this._targetInst=o,this.type=r,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var z in e)e.hasOwnProperty(z)&&(l=e[z],this[z]=l?l(h):h[z]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?nr:mf,this.isPropagationStopped=mf,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=nr)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=nr)},persist:function(){},isPersistent:nr}),t}var El={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lr=Lt(El),Ji=y({},El,{view:0,detail:0}),Bg=Lt(Ji),qu,Yu,Ki,ir=y({},Ji,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fu,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!==Ki&&(Ki&&e.type==="mousemove"?(qu=e.screenX-Ki.screenX,Yu=e.screenY-Ki.screenY):Yu=qu=0,Ki=e),qu)},movementY:function(e){return"movementY"in e?e.movementY:Yu}}),pf=Lt(ir),Hg=y({},ir,{dataTransfer:0}),qg=Lt(Hg),Yg=y({},Ji,{relatedTarget:0}),Vu=Lt(Yg),Vg=y({},El,{animationName:0,elapsedTime:0,pseudoElement:0}),Fg=Lt(Vg),Xg=y({},El,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gg=Lt(Xg),Qg=y({},El,{data:0}),gf=Lt(Qg),Zg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jg={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"},Kg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ig(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kg[e])?!!t[e]:!1}function Fu(){return Ig}var $g=y({},Ji,{key:function(e){if(e.key){var t=Zg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fu,charCode:function(e){return e.type==="keypress"?tr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Wg=Lt($g),Pg=y({},ir,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xf=Lt(Pg),ex=y({},Ji,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fu}),tx=Lt(ex),nx=y({},El,{propertyName:0,elapsedTime:0,pseudoElement:0}),lx=Lt(nx),ix=y({},ir,{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}),ax=Lt(ix),rx=y({},El,{newState:0,oldState:0}),ux=Lt(rx),sx=[9,13,27,32],Xu=Mn&&"CompositionEvent"in window,Ii=null;Mn&&"documentMode"in document&&(Ii=document.documentMode);var ox=Mn&&"TextEvent"in window&&!Ii,yf=Mn&&(!Xu||Ii&&8<Ii&&11>=Ii),bf=" ",vf=!1;function Sf(e,t){switch(e){case"keyup":return sx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ei=!1;function cx(e,t){switch(e){case"compositionend":return zf(t);case"keypress":return t.which!==32?null:(vf=!0,bf);case"textInput":return e=t.data,e===bf&&vf?null:e;default:return null}}function fx(e,t){if(ei)return e==="compositionend"||!Xu&&Sf(e,t)?(e=df(),er=Hu=$n=null,ei=!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 yf&&t.locale!=="ko"?null:t.data;default:return null}}var hx={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 kf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!hx[e.type]:t==="textarea"}function wf(e,t,l,r){Wl?Pl?Pl.push(r):Pl=[r]:Wl=r,t=Zr(t,"onChange"),0<t.length&&(l=new lr("onChange","change",null,l,r),e.push({event:l,listeners:t}))}var $i=null,Wi=null;function dx(e){rm(e,0)}function ar(e){var t=Gi(e);if(af(t))return e}function Ef(e,t){if(e==="change")return t}var Tf=!1;if(Mn){var Gu;if(Mn){var Qu="oninput"in document;if(!Qu){var Cf=document.createElement("div");Cf.setAttribute("oninput","return;"),Qu=typeof Cf.oninput=="function"}Gu=Qu}else Gu=!1;Tf=Gu&&(!document.documentMode||9<document.documentMode)}function Nf(){$i&&($i.detachEvent("onpropertychange",jf),Wi=$i=null)}function jf(e){if(e.propertyName==="value"&&ar(Wi)){var t=[];wf(t,Wi,e,Lu(e)),hf(dx,t)}}function mx(e,t,l){e==="focusin"?(Nf(),$i=t,Wi=l,$i.attachEvent("onpropertychange",jf)):e==="focusout"&&Nf()}function px(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ar(Wi)}function gx(e,t){if(e==="click")return ar(t)}function xx(e,t){if(e==="input"||e==="change")return ar(t)}function yx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:yx;function Pi(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),r=Object.keys(t);if(l.length!==r.length)return!1;for(r=0;r<l.length;r++){var o=l[r];if(!Cn.call(t,o)||!Qt(e[o],t[o]))return!1}return!0}function Mf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Af(e,t){var l=Mf(e);e=0;for(var r;l;){if(l.nodeType===3){if(r=e+l.textContent.length,e<=t&&r>=t)return{node:l,offset:t-e};e=r}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Mf(l)}}function _f(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_f(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Of(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wa(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Wa(e.document)}return t}function Zu(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 bx=Mn&&"documentMode"in document&&11>=document.documentMode,ti=null,Ju=null,ea=null,Ku=!1;function Df(e,t,l){var r=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ku||ti==null||ti!==Wa(r)||(r=ti,"selectionStart"in r&&Zu(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}),ea&&Pi(ea,r)||(ea=r,r=Zr(Ju,"onSelect"),0<r.length&&(t=new lr("onSelect","select",null,t,l),e.push({event:t,listeners:r}),t.target=ti)))}function Tl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ni={animationend:Tl("Animation","AnimationEnd"),animationiteration:Tl("Animation","AnimationIteration"),animationstart:Tl("Animation","AnimationStart"),transitionrun:Tl("Transition","TransitionRun"),transitionstart:Tl("Transition","TransitionStart"),transitioncancel:Tl("Transition","TransitionCancel"),transitionend:Tl("Transition","TransitionEnd")},Iu={},Rf={};Mn&&(Rf=document.createElement("div").style,"AnimationEvent"in window||(delete ni.animationend.animation,delete ni.animationiteration.animation,delete ni.animationstart.animation),"TransitionEvent"in window||delete ni.transitionend.transition);function Cl(e){if(Iu[e])return Iu[e];if(!ni[e])return e;var t=ni[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Rf)return Iu[e]=t[l];return e}var Lf=Cl("animationend"),Uf=Cl("animationiteration"),Bf=Cl("animationstart"),vx=Cl("transitionrun"),Sx=Cl("transitionstart"),zx=Cl("transitioncancel"),Hf=Cl("transitionend"),qf=new Map,$u="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(" ");$u.push("scrollEnd");function xn(e,t){qf.set(e,t),wl(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)},rn=[],li=0,Wu=0;function ur(){for(var e=li,t=Wu=li=0;t<e;){var l=rn[t];rn[t++]=null;var r=rn[t];rn[t++]=null;var o=rn[t];rn[t++]=null;var h=rn[t];if(rn[t++]=null,r!==null&&o!==null){var b=r.pending;b===null?o.next=o:(o.next=b.next,b.next=o),r.pending=o}h!==0&&Yf(l,o,h)}}function sr(e,t,l,r){rn[li++]=e,rn[li++]=t,rn[li++]=l,rn[li++]=r,Wu|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Pu(e,t,l,r){return sr(e,t,l,r),or(e)}function Nl(e,t){return sr(e,null,null,t),or(e)}function Yf(e,t,l){e.lanes|=l;var r=e.alternate;r!==null&&(r.lanes|=l);for(var o=!1,h=e.return;h!==null;)h.childLanes|=l,r=h.alternate,r!==null&&(r.childLanes|=l),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(o=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,o&&t!==null&&(o=31-Ge(l),e=h.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=l|536870912),h):null}function or(e){if(50<za)throw za=0,so=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ii={};function kx(e,t,l,r){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zt(e,t,l,r){return new kx(e,t,l,r)}function es(e){return e=e.prototype,!(!e||!e.isReactComponent)}function An(e,t){var l=e.alternate;return l===null?(l=Zt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Vf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function cr(e,t,l,r,o,h){var b=0;if(r=e,typeof e=="function")es(e)&&(b=1);else if(typeof e=="string")b=Ny(e,l,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case me:return e=Zt(31,l,t,o),e.elementType=me,e.lanes=h,e;case j:return jl(l.children,o,h,t);case _:b=8,o|=24;break;case M:return e=Zt(12,l,t,o|2),e.elementType=M,e.lanes=h,e;case P:return e=Zt(13,l,t,o),e.elementType=P,e.lanes=h,e;case O:return e=Zt(19,l,t,o),e.elementType=O,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:b=10;break e;case q:b=9;break e;case I:b=11;break e;case $:b=14;break e;case se:b=16,r=null;break e}b=29,l=Error(u(130,e===null?"null":typeof e,"")),r=null}return t=Zt(b,l,t,o),t.elementType=e,t.type=r,t.lanes=h,t}function jl(e,t,l,r){return e=Zt(7,e,r,t),e.lanes=l,e}function ts(e,t,l){return e=Zt(6,e,null,t),e.lanes=l,e}function Ff(e){var t=Zt(18,null,null,0);return t.stateNode=e,t}function ns(e,t,l){return t=Zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Xf=new WeakMap;function un(e,t){if(typeof e=="object"&&e!==null){var l=Xf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Xl(t)},Xf.set(e,t),t)}return{value:e,source:t,stack:Xl(t)}}var ai=[],ri=0,fr=null,ta=0,sn=[],on=0,Wn=null,Sn=1,zn="";function _n(e,t){ai[ri++]=ta,ai[ri++]=fr,fr=e,ta=t}function Gf(e,t,l){sn[on++]=Sn,sn[on++]=zn,sn[on++]=Wn,Wn=e;var r=Sn;e=zn;var o=32-Ge(r)-1;r&=~(1<<o),l+=1;var h=32-Ge(t)+o;if(30<h){var b=o-o%5;h=(r&(1<<b)-1).toString(32),r>>=b,o-=b,Sn=1<<32-Ge(t)+o|l<<o|r,zn=h+e}else Sn=1<<h|l<<o|r,zn=e}function ls(e){e.return!==null&&(_n(e,1),Gf(e,1,0))}function is(e){for(;e===fr;)fr=ai[--ri],ai[ri]=null,ta=ai[--ri],ai[ri]=null;for(;e===Wn;)Wn=sn[--on],sn[on]=null,zn=sn[--on],sn[on]=null,Sn=sn[--on],sn[on]=null}function Qf(e,t){sn[on++]=Sn,sn[on++]=zn,sn[on++]=Wn,Sn=t.id,zn=t.overflow,Wn=e}var kt=null,tt=null,Be=!1,Pn=null,cn=!1,as=Error(u(519));function el(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw na(un(t,e)),as}function Zf(e){var t=e.stateNode,l=e.type,r=e.memoizedProps;switch(t[zt]=e,t[Rt]=r,l){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(l=0;l<wa.length;l++)Me(wa[l],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),rf(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),sf(t,r.value,r.defaultValue,r.children)}l=r.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||r.suppressHydrationWarning===!0||cm(t.textContent,l)?(r.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),r.onScroll!=null&&Me("scroll",t),r.onScrollEnd!=null&&Me("scrollend",t),r.onClick!=null&&(t.onclick=jn),t=!0):t=!1,t||el(e,!0)}function Jf(e){for(kt=e.return;kt;)switch(kt.tag){case 5:case 31:case 13:cn=!1;return;case 27:case 3:cn=!0;return;default:kt=kt.return}}function ui(e){if(e!==kt)return!1;if(!Be)return Jf(e),Be=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||wo(e.type,e.memoizedProps)),l=!l),l&&tt&&el(e),Jf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));tt=bm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));tt=bm(e)}else t===27?(t=tt,ml(e.type)?(e=jo,jo=null,tt=e):tt=t):tt=kt?hn(e.stateNode.nextSibling):null;return!0}function Ml(){tt=kt=null,Be=!1}function rs(){var e=Pn;return e!==null&&(qt===null?qt=e:qt.push.apply(qt,e),Pn=null),e}function na(e){Pn===null?Pn=[e]:Pn.push(e)}var us=C(null),Al=null,On=null;function tl(e,t,l){k(us,t._currentValue),t._currentValue=l}function Dn(e){e._currentValue=us.current,F(us)}function ss(e,t,l){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===l)break;e=e.return}}function os(e,t,l,r){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var h=o.dependencies;if(h!==null){var b=o.child;h=h.firstContext;e:for(;h!==null;){var z=h;h=o;for(var T=0;T<t.length;T++)if(z.context===t[T]){h.lanes|=l,z=h.alternate,z!==null&&(z.lanes|=l),ss(h.return,l,e),r||(b=null);break e}h=z.next}}else if(o.tag===18){if(b=o.return,b===null)throw Error(u(341));b.lanes|=l,h=b.alternate,h!==null&&(h.lanes|=l),ss(b,l,e),b=null}else b=o.child;if(b!==null)b.return=o;else for(b=o;b!==null;){if(b===e){b=null;break}if(o=b.sibling,o!==null){o.return=b.return,b=o;break}b=b.return}o=b}}function si(e,t,l,r){e=null;for(var o=t,h=!1;o!==null;){if(!h){if((o.flags&524288)!==0)h=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var b=o.alternate;if(b===null)throw Error(u(387));if(b=b.memoizedProps,b!==null){var z=o.type;Qt(o.pendingProps.value,b.value)||(e!==null?e.push(z):e=[z])}}else if(o===we.current){if(b=o.alternate,b===null)throw Error(u(387));b.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ja):e=[ja])}o=o.return}e!==null&&os(t,e,l,r),t.flags|=262144}function hr(e){for(e=e.firstContext;e!==null;){if(!Qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _l(e){Al=e,On=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function wt(e){return Kf(Al,e)}function dr(e,t){return Al===null&&_l(e),Kf(e,t)}function Kf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},On===null){if(e===null)throw Error(u(308));On=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else On=On.next=t;return l}var wx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Ex=n.unstable_scheduleCallback,Tx=n.unstable_NormalPriority,ht={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cs(){return{controller:new wx,data:new Map,refCount:0}}function la(e){e.refCount--,e.refCount===0&&Ex(Tx,function(){e.controller.abort()})}var ia=null,fs=0,oi=0,ci=null;function Cx(e,t){if(ia===null){var l=ia=[];fs=0,oi=po(),ci={status:"pending",value:void 0,then:function(r){l.push(r)}}}return fs++,t.then(If,If),t}function If(){if(--fs===0&&ia!==null){ci!==null&&(ci.status="fulfilled");var e=ia;ia=null,oi=0,ci=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Nx(e,t){var l=[],r={status:"pending",value:null,reason:null,then:function(o){l.push(o)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var o=0;o<l.length;o++)(0,l[o])(t)},function(o){for(r.status="rejected",r.reason=o,o=0;o<l.length;o++)(0,l[o])(void 0)}),r}var $f=R.S;R.S=function(e,t){Dd=vt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Cx(e,t),$f!==null&&$f(e,t)};var Ol=C(null);function hs(){var e=Ol.current;return e!==null?e:We.pooledCache}function mr(e,t){t===null?k(Ol,Ol.current):k(Ol,t.pool)}function Wf(){var e=hs();return e===null?null:{parent:ht._currentValue,pool:e}}var fi=Error(u(460)),ds=Error(u(474)),pr=Error(u(542)),gr={then:function(){}};function Pf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function eh(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(jn,jn),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nh(e),e;default:if(typeof t.status=="string")t.then(jn,jn);else{if(e=We,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=r}},function(r){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nh(e),e}throw Rl=t,fi}}function Dl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Rl=l,fi):l}}var Rl=null;function th(){if(Rl===null)throw Error(u(459));var e=Rl;return Rl=null,e}function nh(e){if(e===fi||e===pr)throw Error(u(483))}var hi=null,aa=0;function xr(e){var t=aa;return aa+=1,hi===null&&(hi=[]),eh(hi,e,t)}function ra(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function yr(e,t){throw t.$$typeof===S?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function lh(e){function t(A,N){if(e){var D=A.deletions;D===null?(A.deletions=[N],A.flags|=16):D.push(N)}}function l(A,N){if(!e)return null;for(;N!==null;)t(A,N),N=N.sibling;return null}function r(A){for(var N=new Map;A!==null;)A.key!==null?N.set(A.key,A):N.set(A.index,A),A=A.sibling;return N}function o(A,N){return A=An(A,N),A.index=0,A.sibling=null,A}function h(A,N,D){return A.index=D,e?(D=A.alternate,D!==null?(D=D.index,D<N?(A.flags|=67108866,N):D):(A.flags|=67108866,N)):(A.flags|=1048576,N)}function b(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function z(A,N,D,Q){return N===null||N.tag!==6?(N=ts(D,A.mode,Q),N.return=A,N):(N=o(N,D),N.return=A,N)}function T(A,N,D,Q){var ye=D.type;return ye===j?X(A,N,D.props.children,Q,D.key):N!==null&&(N.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===se&&Dl(ye)===N.type)?(N=o(N,D.props),ra(N,D),N.return=A,N):(N=cr(D.type,D.key,D.props,null,A.mode,Q),ra(N,D),N.return=A,N)}function L(A,N,D,Q){return N===null||N.tag!==4||N.stateNode.containerInfo!==D.containerInfo||N.stateNode.implementation!==D.implementation?(N=ns(D,A.mode,Q),N.return=A,N):(N=o(N,D.children||[]),N.return=A,N)}function X(A,N,D,Q,ye){return N===null||N.tag!==7?(N=jl(D,A.mode,Q,ye),N.return=A,N):(N=o(N,D),N.return=A,N)}function J(A,N,D){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=ts(""+N,A.mode,D),N.return=A,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case v:return D=cr(N.type,N.key,N.props,null,A.mode,D),ra(D,N),D.return=A,D;case w:return N=ns(N,A.mode,D),N.return=A,N;case se:return N=Dl(N),J(A,N,D)}if(W(N)||ee(N))return N=jl(N,A.mode,D,null),N.return=A,N;if(typeof N.then=="function")return J(A,xr(N),D);if(N.$$typeof===H)return J(A,dr(A,N),D);yr(A,N)}return null}function U(A,N,D,Q){var ye=N!==null?N.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ye!==null?null:z(A,N,""+D,Q);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case v:return D.key===ye?T(A,N,D,Q):null;case w:return D.key===ye?L(A,N,D,Q):null;case se:return D=Dl(D),U(A,N,D,Q)}if(W(D)||ee(D))return ye!==null?null:X(A,N,D,Q,null);if(typeof D.then=="function")return U(A,N,xr(D),Q);if(D.$$typeof===H)return U(A,N,dr(A,D),Q);yr(A,D)}return null}function Y(A,N,D,Q,ye){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return A=A.get(D)||null,z(N,A,""+Q,ye);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case v:return A=A.get(Q.key===null?D:Q.key)||null,T(N,A,Q,ye);case w:return A=A.get(Q.key===null?D:Q.key)||null,L(N,A,Q,ye);case se:return Q=Dl(Q),Y(A,N,D,Q,ye)}if(W(Q)||ee(Q))return A=A.get(D)||null,X(N,A,Q,ye,null);if(typeof Q.then=="function")return Y(A,N,D,xr(Q),ye);if(Q.$$typeof===H)return Y(A,N,D,dr(N,Q),ye);yr(N,Q)}return null}function he(A,N,D,Q){for(var ye=null,qe=null,pe=N,Ce=N=0,Le=null;pe!==null&&Ce<D.length;Ce++){pe.index>Ce?(Le=pe,pe=null):Le=pe.sibling;var Ye=U(A,pe,D[Ce],Q);if(Ye===null){pe===null&&(pe=Le);break}e&&pe&&Ye.alternate===null&&t(A,pe),N=h(Ye,N,Ce),qe===null?ye=Ye:qe.sibling=Ye,qe=Ye,pe=Le}if(Ce===D.length)return l(A,pe),Be&&_n(A,Ce),ye;if(pe===null){for(;Ce<D.length;Ce++)pe=J(A,D[Ce],Q),pe!==null&&(N=h(pe,N,Ce),qe===null?ye=pe:qe.sibling=pe,qe=pe);return Be&&_n(A,Ce),ye}for(pe=r(pe);Ce<D.length;Ce++)Le=Y(pe,A,Ce,D[Ce],Q),Le!==null&&(e&&Le.alternate!==null&&pe.delete(Le.key===null?Ce:Le.key),N=h(Le,N,Ce),qe===null?ye=Le:qe.sibling=Le,qe=Le);return e&&pe.forEach(function(bl){return t(A,bl)}),Be&&_n(A,Ce),ye}function Se(A,N,D,Q){if(D==null)throw Error(u(151));for(var ye=null,qe=null,pe=N,Ce=N=0,Le=null,Ye=D.next();pe!==null&&!Ye.done;Ce++,Ye=D.next()){pe.index>Ce?(Le=pe,pe=null):Le=pe.sibling;var bl=U(A,pe,Ye.value,Q);if(bl===null){pe===null&&(pe=Le);break}e&&pe&&bl.alternate===null&&t(A,pe),N=h(bl,N,Ce),qe===null?ye=bl:qe.sibling=bl,qe=bl,pe=Le}if(Ye.done)return l(A,pe),Be&&_n(A,Ce),ye;if(pe===null){for(;!Ye.done;Ce++,Ye=D.next())Ye=J(A,Ye.value,Q),Ye!==null&&(N=h(Ye,N,Ce),qe===null?ye=Ye:qe.sibling=Ye,qe=Ye);return Be&&_n(A,Ce),ye}for(pe=r(pe);!Ye.done;Ce++,Ye=D.next())Ye=Y(pe,A,Ce,Ye.value,Q),Ye!==null&&(e&&Ye.alternate!==null&&pe.delete(Ye.key===null?Ce:Ye.key),N=h(Ye,N,Ce),qe===null?ye=Ye:qe.sibling=Ye,qe=Ye);return e&&pe.forEach(function(Hy){return t(A,Hy)}),Be&&_n(A,Ce),ye}function Ie(A,N,D,Q){if(typeof D=="object"&&D!==null&&D.type===j&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case v:e:{for(var ye=D.key;N!==null;){if(N.key===ye){if(ye=D.type,ye===j){if(N.tag===7){l(A,N.sibling),Q=o(N,D.props.children),Q.return=A,A=Q;break e}}else if(N.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===se&&Dl(ye)===N.type){l(A,N.sibling),Q=o(N,D.props),ra(Q,D),Q.return=A,A=Q;break e}l(A,N);break}else t(A,N);N=N.sibling}D.type===j?(Q=jl(D.props.children,A.mode,Q,D.key),Q.return=A,A=Q):(Q=cr(D.type,D.key,D.props,null,A.mode,Q),ra(Q,D),Q.return=A,A=Q)}return b(A);case w:e:{for(ye=D.key;N!==null;){if(N.key===ye)if(N.tag===4&&N.stateNode.containerInfo===D.containerInfo&&N.stateNode.implementation===D.implementation){l(A,N.sibling),Q=o(N,D.children||[]),Q.return=A,A=Q;break e}else{l(A,N);break}else t(A,N);N=N.sibling}Q=ns(D,A.mode,Q),Q.return=A,A=Q}return b(A);case se:return D=Dl(D),Ie(A,N,D,Q)}if(W(D))return he(A,N,D,Q);if(ee(D)){if(ye=ee(D),typeof ye!="function")throw Error(u(150));return D=ye.call(D),Se(A,N,D,Q)}if(typeof D.then=="function")return Ie(A,N,xr(D),Q);if(D.$$typeof===H)return Ie(A,N,dr(A,D),Q);yr(A,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,N!==null&&N.tag===6?(l(A,N.sibling),Q=o(N,D),Q.return=A,A=Q):(l(A,N),Q=ts(D,A.mode,Q),Q.return=A,A=Q),b(A)):l(A,N)}return function(A,N,D,Q){try{aa=0;var ye=Ie(A,N,D,Q);return hi=null,ye}catch(pe){if(pe===fi||pe===pr)throw pe;var qe=Zt(29,pe,null,A.mode);return qe.lanes=Q,qe.return=A,qe}finally{}}}var Ll=lh(!0),ih=lh(!1),nl=!1;function ms(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ps(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 ll(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function il(e,t,l){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ve&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=or(e),Yf(e,null,l),t}return sr(e,r,t,l),or(e)}function ua(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,l|=r,t.lanes=l,Jc(e,l)}}function gs(e,t){var l=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,l===r)){var o=null,h=null;if(l=l.firstBaseUpdate,l!==null){do{var b={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};h===null?o=h=b:h=h.next=b,l=l.next}while(l!==null);h===null?o=h=t:h=h.next=t}else o=h=t;l={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:h,shared:r.shared,callbacks:r.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var xs=!1;function sa(){if(xs){var e=ci;if(e!==null)throw e}}function oa(e,t,l,r){xs=!1;var o=e.updateQueue;nl=!1;var h=o.firstBaseUpdate,b=o.lastBaseUpdate,z=o.shared.pending;if(z!==null){o.shared.pending=null;var T=z,L=T.next;T.next=null,b===null?h=L:b.next=L,b=T;var X=e.alternate;X!==null&&(X=X.updateQueue,z=X.lastBaseUpdate,z!==b&&(z===null?X.firstBaseUpdate=L:z.next=L,X.lastBaseUpdate=T))}if(h!==null){var J=o.baseState;b=0,X=L=T=null,z=h;do{var U=z.lane&-536870913,Y=U!==z.lane;if(Y?(Re&U)===U:(r&U)===U){U!==0&&U===oi&&(xs=!0),X!==null&&(X=X.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var he=e,Se=z;U=t;var Ie=l;switch(Se.tag){case 1:if(he=Se.payload,typeof he=="function"){J=he.call(Ie,J,U);break e}J=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=Se.payload,U=typeof he=="function"?he.call(Ie,J,U):he,U==null)break e;J=y({},J,U);break e;case 2:nl=!0}}U=z.callback,U!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=o.callbacks,Y===null?o.callbacks=[U]:Y.push(U))}else Y={lane:U,tag:z.tag,payload:z.payload,callback:z.callback,next:null},X===null?(L=X=Y,T=J):X=X.next=Y,b|=U;if(z=z.next,z===null){if(z=o.shared.pending,z===null)break;Y=z,z=Y.next,Y.next=null,o.lastBaseUpdate=Y,o.shared.pending=null}}while(!0);X===null&&(T=J),o.baseState=T,o.firstBaseUpdate=L,o.lastBaseUpdate=X,h===null&&(o.shared.lanes=0),ol|=b,e.lanes=b,e.memoizedState=J}}function ah(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function rh(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)ah(l[e],t)}var di=C(null),br=C(0);function uh(e,t){e=Fn,k(br,e),k(di,t),Fn=e|t.baseLanes}function ys(){k(br,Fn),k(di,di.current)}function bs(){Fn=br.current,F(di),F(br)}var Jt=C(null),fn=null;function al(e){var t=e.alternate;k(ot,ot.current&1),k(Jt,e),fn===null&&(t===null||di.current!==null||t.memoizedState!==null)&&(fn=e)}function vs(e){k(ot,ot.current),k(Jt,e),fn===null&&(fn=e)}function sh(e){e.tag===22?(k(ot,ot.current),k(Jt,e),fn===null&&(fn=e)):rl()}function rl(){k(ot,ot.current),k(Jt,Jt.current)}function Kt(e){F(Jt),fn===e&&(fn=null),F(ot)}var ot=C(0);function vr(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Co(l)||No(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Rn=0,Te=null,Je=null,dt=null,Sr=!1,mi=!1,Ul=!1,zr=0,ca=0,pi=null,jx=0;function rt(){throw Error(u(321))}function Ss(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Qt(e[l],t[l]))return!1;return!0}function zs(e,t,l,r,o,h){return Rn=h,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?Gh:Us,Ul=!1,h=l(r,o),Ul=!1,mi&&(h=ch(t,l,r,o)),oh(e),h}function oh(e){R.H=da;var t=Je!==null&&Je.next!==null;if(Rn=0,dt=Je=Te=null,Sr=!1,ca=0,pi=null,t)throw Error(u(300));e===null||mt||(e=e.dependencies,e!==null&&hr(e)&&(mt=!0))}function ch(e,t,l,r){Te=e;var o=0;do{if(mi&&(pi=null),ca=0,mi=!1,25<=o)throw Error(u(301));if(o+=1,dt=Je=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}R.H=Qh,h=t(l,r)}while(mi);return h}function Mx(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?fa(t):t,e=e.useState()[0],(Je!==null?Je.memoizedState:null)!==e&&(Te.flags|=1024),t}function ks(){var e=zr!==0;return zr=0,e}function ws(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Es(e){if(Sr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Sr=!1}Rn=0,dt=Je=Te=null,mi=!1,ca=zr=0,pi=null}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dt===null?Te.memoizedState=dt=e:dt=dt.next=e,dt}function ct(){if(Je===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var t=dt===null?Te.memoizedState:dt.next;if(t!==null)dt=t,Je=e;else{if(e===null)throw Te.alternate===null?Error(u(467)):Error(u(310));Je=e,e={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},dt===null?Te.memoizedState=dt=e:dt=dt.next=e}return dt}function kr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fa(e){var t=ca;return ca+=1,pi===null&&(pi=[]),e=eh(pi,e,t),t=Te,(dt===null?t.memoizedState:dt.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?Gh:Us),e}function wr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fa(e);if(e.$$typeof===H)return wt(e)}throw Error(u(438,String(e)))}function Ts(e){var t=null,l=Te.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var r=Te.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=kr(),Te.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),r=0;r<e;r++)l[r]=B;return t.index++,l}function Ln(e,t){return typeof t=="function"?t(e):t}function Er(e){var t=ct();return Cs(t,Je,e)}function Cs(e,t,l){var r=e.queue;if(r===null)throw Error(u(311));r.lastRenderedReducer=l;var o=e.baseQueue,h=r.pending;if(h!==null){if(o!==null){var b=o.next;o.next=h.next,h.next=b}t.baseQueue=o=h,r.pending=null}if(h=e.baseState,o===null)e.memoizedState=h;else{t=o.next;var z=b=null,T=null,L=t,X=!1;do{var J=L.lane&-536870913;if(J!==L.lane?(Re&J)===J:(Rn&J)===J){var U=L.revertLane;if(U===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),J===oi&&(X=!0);else if((Rn&U)===U){L=L.next,U===oi&&(X=!0);continue}else J={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(z=T=J,b=h):T=T.next=J,Te.lanes|=U,ol|=U;J=L.action,Ul&&l(h,J),h=L.hasEagerState?L.eagerState:l(h,J)}else U={lane:J,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(z=T=U,b=h):T=T.next=U,Te.lanes|=J,ol|=J;L=L.next}while(L!==null&&L!==t);if(T===null?b=h:T.next=z,!Qt(h,e.memoizedState)&&(mt=!0,X&&(l=ci,l!==null)))throw l;e.memoizedState=h,e.baseState=b,e.baseQueue=T,r.lastRenderedState=h}return o===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ns(e){var t=ct(),l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var r=l.dispatch,o=l.pending,h=t.memoizedState;if(o!==null){l.pending=null;var b=o=o.next;do h=e(h,b.action),b=b.next;while(b!==o);Qt(h,t.memoizedState)||(mt=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),l.lastRenderedState=h}return[h,r]}function fh(e,t,l){var r=Te,o=ct(),h=Be;if(h){if(l===void 0)throw Error(u(407));l=l()}else l=t();var b=!Qt((Je||o).memoizedState,l);if(b&&(o.memoizedState=l,mt=!0),o=o.queue,As(mh.bind(null,r,o,e),[e]),o.getSnapshot!==t||b||dt!==null&&dt.memoizedState.tag&1){if(r.flags|=2048,gi(9,{destroy:void 0},dh.bind(null,r,o,l,t),null),We===null)throw Error(u(349));h||(Rn&127)!==0||hh(r,t,l)}return l}function hh(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Te.updateQueue,t===null?(t=kr(),Te.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function dh(e,t,l,r){t.value=l,t.getSnapshot=r,ph(t)&&gh(e)}function mh(e,t,l){return l(function(){ph(t)&&gh(e)})}function ph(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Qt(e,l)}catch{return!0}}function gh(e){var t=Nl(e,2);t!==null&&Yt(t,e,2)}function js(e){var t=_t();if(typeof e=="function"){var l=e;if(e=l(),Ul){Ct(!0);try{l()}finally{Ct(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:e},t}function xh(e,t,l,r){return e.baseState=l,Cs(e,Je,typeof r=="function"?r:Ln)}function Ax(e,t,l,r,o){if(Nr(e))throw Error(u(485));if(e=t.action,e!==null){var h={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};R.T!==null?l(!0):h.isTransition=!1,r(h),l=t.pending,l===null?(h.next=t.pending=h,yh(t,h)):(h.next=l.next,t.pending=l.next=h)}}function yh(e,t){var l=t.action,r=t.payload,o=e.state;if(t.isTransition){var h=R.T,b={};R.T=b;try{var z=l(o,r),T=R.S;T!==null&&T(b,z),bh(e,t,z)}catch(L){Ms(e,t,L)}finally{h!==null&&b.types!==null&&(h.types=b.types),R.T=h}}else try{h=l(o,r),bh(e,t,h)}catch(L){Ms(e,t,L)}}function bh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(r){vh(e,t,r)},function(r){return Ms(e,t,r)}):vh(e,t,l)}function vh(e,t,l){t.status="fulfilled",t.value=l,Sh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,yh(e,l)))}function Ms(e,t,l){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=l,Sh(t),t=t.next;while(t!==r)}e.action=null}function Sh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function zh(e,t){return t}function kh(e,t){if(Be){var l=We.formState;if(l!==null){e:{var r=Te;if(Be){if(tt){t:{for(var o=tt,h=cn;o.nodeType!==8;){if(!h){o=null;break t}if(o=hn(o.nextSibling),o===null){o=null;break t}}h=o.data,o=h==="F!"||h==="F"?o:null}if(o){tt=hn(o.nextSibling),r=o.data==="F!";break e}}el(r)}r=!1}r&&(t=l[0])}}return l=_t(),l.memoizedState=l.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zh,lastRenderedState:t},l.queue=r,l=Vh.bind(null,Te,r),r.dispatch=l,r=js(!1),h=Ls.bind(null,Te,!1,r.queue),r=_t(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,l=Ax.bind(null,Te,o,h,l),o.dispatch=l,r.memoizedState=e,[t,l,!1]}function wh(e){var t=ct();return Eh(t,Je,e)}function Eh(e,t,l){if(t=Cs(e,t,zh)[0],e=Er(Ln)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=fa(t)}catch(b){throw b===fi?pr:b}else r=t;t=ct();var o=t.queue,h=o.dispatch;return l!==t.memoizedState&&(Te.flags|=2048,gi(9,{destroy:void 0},_x.bind(null,o,l),null)),[r,h,e]}function _x(e,t){e.action=t}function Th(e){var t=ct(),l=Je;if(l!==null)return Eh(t,l,e);ct(),t=t.memoizedState,l=ct();var r=l.queue.dispatch;return l.memoizedState=e,[t,r,!1]}function gi(e,t,l,r){return e={tag:e,create:l,deps:r,inst:t,next:null},t=Te.updateQueue,t===null&&(t=kr(),Te.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(r=l.next,l.next=e,e.next=r,t.lastEffect=e),e}function Ch(){return ct().memoizedState}function Tr(e,t,l,r){var o=_t();Te.flags|=e,o.memoizedState=gi(1|t,{destroy:void 0},l,r===void 0?null:r)}function Cr(e,t,l,r){var o=ct();r=r===void 0?null:r;var h=o.memoizedState.inst;Je!==null&&r!==null&&Ss(r,Je.memoizedState.deps)?o.memoizedState=gi(t,h,l,r):(Te.flags|=e,o.memoizedState=gi(1|t,h,l,r))}function Nh(e,t){Tr(8390656,8,e,t)}function As(e,t){Cr(2048,8,e,t)}function Ox(e){Te.flags|=4;var t=Te.updateQueue;if(t===null)t=kr(),Te.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function jh(e){var t=ct().memoizedState;return Ox({ref:t,nextImpl:e}),function(){if((Ve&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function Mh(e,t){return Cr(4,2,e,t)}function Ah(e,t){return Cr(4,4,e,t)}function _h(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Oh(e,t,l){l=l!=null?l.concat([e]):null,Cr(4,4,_h.bind(null,t,e),l)}function _s(){}function Dh(e,t){var l=ct();t=t===void 0?null:t;var r=l.memoizedState;return t!==null&&Ss(t,r[1])?r[0]:(l.memoizedState=[e,t],e)}function Rh(e,t){var l=ct();t=t===void 0?null:t;var r=l.memoizedState;if(t!==null&&Ss(t,r[1]))return r[0];if(r=e(),Ul){Ct(!0);try{e()}finally{Ct(!1)}}return l.memoizedState=[r,t],r}function Os(e,t,l){return l===void 0||(Rn&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Ld(),Te.lanes|=e,ol|=e,l)}function Lh(e,t,l,r){return Qt(l,t)?l:di.current!==null?(e=Os(e,l,r),Qt(e,t)||(mt=!0),e):(Rn&42)===0||(Rn&1073741824)!==0&&(Re&261930)===0?(mt=!0,e.memoizedState=l):(e=Ld(),Te.lanes|=e,ol|=e,t)}function Uh(e,t,l,r,o){var h=K.p;K.p=h!==0&&8>h?h:8;var b=R.T,z={};R.T=z,Ls(e,!1,t,l);try{var T=o(),L=R.S;if(L!==null&&L(z,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var X=Nx(T,r);ha(e,t,X,Wt(e))}else ha(e,t,r,Wt(e))}catch(J){ha(e,t,{then:function(){},status:"rejected",reason:J},Wt())}finally{K.p=h,b!==null&&z.types!==null&&(b.types=z.types),R.T=b}}function Dx(){}function Ds(e,t,l,r){if(e.tag!==5)throw Error(u(476));var o=Bh(e).queue;Uh(e,o,t,oe,l===null?Dx:function(){return Hh(e),l(r)})}function Bh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:oe},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Hh(e){var t=Bh(e);t.next===null&&(t=e.alternate.memoizedState),ha(e,t.next.queue,{},Wt())}function Rs(){return wt(ja)}function qh(){return ct().memoizedState}function Yh(){return ct().memoizedState}function Rx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Wt();e=ll(l);var r=il(t,e,l);r!==null&&(Yt(r,t,l),ua(r,t,l)),t={cache:cs()},e.payload=t;return}t=t.return}}function Lx(e,t,l){var r=Wt();l={lane:r,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Nr(e)?Fh(t,l):(l=Pu(e,t,l,r),l!==null&&(Yt(l,e,r),Xh(l,t,r)))}function Vh(e,t,l){var r=Wt();ha(e,t,l,r)}function ha(e,t,l,r){var o={lane:r,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Nr(e))Fh(t,o);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=t.lastRenderedReducer,h!==null))try{var b=t.lastRenderedState,z=h(b,l);if(o.hasEagerState=!0,o.eagerState=z,Qt(z,b))return sr(e,t,o,0),We===null&&ur(),!1}catch{}finally{}if(l=Pu(e,t,o,r),l!==null)return Yt(l,e,r),Xh(l,t,r),!0}return!1}function Ls(e,t,l,r){if(r={lane:2,revertLane:po(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Nr(e)){if(t)throw Error(u(479))}else t=Pu(e,l,r,2),t!==null&&Yt(t,e,2)}function Nr(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Fh(e,t){mi=Sr=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Xh(e,t,l){if((l&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,l|=r,t.lanes=l,Jc(e,l)}}var da={readContext:wt,use:wr,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};da.useEffectEvent=rt;var Gh={readContext:wt,use:wr,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:Nh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Tr(4194308,4,_h.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Tr(4194308,4,e,t)},useInsertionEffect:function(e,t){Tr(4,2,e,t)},useMemo:function(e,t){var l=_t();t=t===void 0?null:t;var r=e();if(Ul){Ct(!0);try{e()}finally{Ct(!1)}}return l.memoizedState=[r,t],r},useReducer:function(e,t,l){var r=_t();if(l!==void 0){var o=l(t);if(Ul){Ct(!0);try{l(t)}finally{Ct(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=Lx.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:function(e){e=js(e);var t=e.queue,l=Vh.bind(null,Te,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:_s,useDeferredValue:function(e,t){var l=_t();return Os(l,e,t)},useTransition:function(){var e=js(!1);return e=Uh.bind(null,Te,e.queue,!0,!1),_t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var r=Te,o=_t();if(Be){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),We===null)throw Error(u(349));(Re&127)!==0||hh(r,t,l)}o.memoizedState=l;var h={value:l,getSnapshot:t};return o.queue=h,Nh(mh.bind(null,r,h,e),[e]),r.flags|=2048,gi(9,{destroy:void 0},dh.bind(null,r,h,l,t),null),l},useId:function(){var e=_t(),t=We.identifierPrefix;if(Be){var l=zn,r=Sn;l=(r&~(1<<32-Ge(r)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=jx++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Rs,useFormState:kh,useActionState:kh,useOptimistic:function(e){var t=_t();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Ls.bind(null,Te,!0,l),l.dispatch=t,[e,t]},useMemoCache:Ts,useCacheRefresh:function(){return _t().memoizedState=Rx.bind(null,Te)},useEffectEvent:function(e){var t=_t(),l={impl:e};return t.memoizedState=l,function(){if((Ve&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},Us={readContext:wt,use:wr,useCallback:Dh,useContext:wt,useEffect:As,useImperativeHandle:Oh,useInsertionEffect:Mh,useLayoutEffect:Ah,useMemo:Rh,useReducer:Er,useRef:Ch,useState:function(){return Er(Ln)},useDebugValue:_s,useDeferredValue:function(e,t){var l=ct();return Lh(l,Je.memoizedState,e,t)},useTransition:function(){var e=Er(Ln)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:fa(e),t]},useSyncExternalStore:fh,useId:qh,useHostTransitionStatus:Rs,useFormState:wh,useActionState:wh,useOptimistic:function(e,t){var l=ct();return xh(l,Je,e,t)},useMemoCache:Ts,useCacheRefresh:Yh};Us.useEffectEvent=jh;var Qh={readContext:wt,use:wr,useCallback:Dh,useContext:wt,useEffect:As,useImperativeHandle:Oh,useInsertionEffect:Mh,useLayoutEffect:Ah,useMemo:Rh,useReducer:Ns,useRef:Ch,useState:function(){return Ns(Ln)},useDebugValue:_s,useDeferredValue:function(e,t){var l=ct();return Je===null?Os(l,e,t):Lh(l,Je.memoizedState,e,t)},useTransition:function(){var e=Ns(Ln)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:fa(e),t]},useSyncExternalStore:fh,useId:qh,useHostTransitionStatus:Rs,useFormState:Th,useActionState:Th,useOptimistic:function(e,t){var l=ct();return Je!==null?xh(l,Je,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Ts,useCacheRefresh:Yh};Qh.useEffectEvent=jh;function Bs(e,t,l,r){t=e.memoizedState,l=l(r,t),l=l==null?t:y({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Hs={enqueueSetState:function(e,t,l){e=e._reactInternals;var r=Wt(),o=ll(r);o.payload=t,l!=null&&(o.callback=l),t=il(e,o,r),t!==null&&(Yt(t,e,r),ua(t,e,r))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var r=Wt(),o=ll(r);o.tag=1,o.payload=t,l!=null&&(o.callback=l),t=il(e,o,r),t!==null&&(Yt(t,e,r),ua(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Wt(),r=ll(l);r.tag=2,t!=null&&(r.callback=t),t=il(e,r,l),t!==null&&(Yt(t,e,l),ua(t,e,l))}};function Zh(e,t,l,r,o,h,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,h,b):t.prototype&&t.prototype.isPureReactComponent?!Pi(l,r)||!Pi(o,h):!0}function Jh(e,t,l,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,r),t.state!==e&&Hs.enqueueReplaceState(t,t.state,null)}function Bl(e,t){var l=t;if("ref"in t){l={};for(var r in t)r!=="ref"&&(l[r]=t[r])}if(e=e.defaultProps){l===t&&(l=y({},l));for(var o in e)l[o]===void 0&&(l[o]=e[o])}return l}function Kh(e){rr(e)}function Ih(e){console.error(e)}function $h(e){rr(e)}function jr(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Wh(e,t,l){try{var r=e.onCaughtError;r(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function qs(e,t,l){return l=ll(l),l.tag=3,l.payload={element:null},l.callback=function(){jr(e,t)},l}function Ph(e){return e=ll(e),e.tag=3,e}function ed(e,t,l,r){var o=l.type.getDerivedStateFromError;if(typeof o=="function"){var h=r.value;e.payload=function(){return o(h)},e.callback=function(){Wh(t,l,r)}}var b=l.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){Wh(t,l,r),typeof o!="function"&&(cl===null?cl=new Set([this]):cl.add(this));var z=r.stack;this.componentDidCatch(r.value,{componentStack:z!==null?z:""})})}function Ux(e,t,l,r,o){if(l.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=l.alternate,t!==null&&si(t,l,o,!0),l=Jt.current,l!==null){switch(l.tag){case 31:case 13:return fn===null?Yr():l.alternate===null&&ut===0&&(ut=3),l.flags&=-257,l.flags|=65536,l.lanes=o,r===gr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([r]):t.add(r),fo(e,r,o)),!1;case 22:return l.flags|=65536,r===gr?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([r]):l.add(r)),fo(e,r,o)),!1}throw Error(u(435,l.tag))}return fo(e,r,o),Yr(),!1}if(Be)return t=Jt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==as&&(e=Error(u(422),{cause:r}),na(un(e,l)))):(r!==as&&(t=Error(u(423),{cause:r}),na(un(t,l))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=un(r,l),o=qs(e.stateNode,r,o),gs(e,o),ut!==4&&(ut=2)),!1;var h=Error(u(520),{cause:r});if(h=un(h,l),Sa===null?Sa=[h]:Sa.push(h),ut!==4&&(ut=2),t===null)return!0;r=un(r,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=o&-o,l.lanes|=e,e=qs(l.stateNode,r,e),gs(l,e),!1;case 1:if(t=l.type,h=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(cl===null||!cl.has(h))))return l.flags|=65536,o&=-o,l.lanes|=o,o=Ph(o),ed(o,e,l,r),gs(l,o),!1}l=l.return}while(l!==null);return!1}var Ys=Error(u(461)),mt=!1;function Et(e,t,l,r){t.child=e===null?ih(t,null,l,r):Ll(t,e.child,l,r)}function td(e,t,l,r,o){l=l.render;var h=t.ref;if("ref"in r){var b={};for(var z in r)z!=="ref"&&(b[z]=r[z])}else b=r;return _l(t),r=zs(e,t,l,b,h,o),z=ks(),e!==null&&!mt?(ws(e,t,o),Un(e,t,o)):(Be&&z&&ls(t),t.flags|=1,Et(e,t,r,o),t.child)}function nd(e,t,l,r,o){if(e===null){var h=l.type;return typeof h=="function"&&!es(h)&&h.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=h,ld(e,t,h,r,o)):(e=cr(l.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(h=e.child,!Ks(e,o)){var b=h.memoizedProps;if(l=l.compare,l=l!==null?l:Pi,l(b,r)&&e.ref===t.ref)return Un(e,t,o)}return t.flags|=1,e=An(h,r),e.ref=t.ref,e.return=t,t.child=e}function ld(e,t,l,r,o){if(e!==null){var h=e.memoizedProps;if(Pi(h,r)&&e.ref===t.ref)if(mt=!1,t.pendingProps=r=h,Ks(e,o))(e.flags&131072)!==0&&(mt=!0);else return t.lanes=e.lanes,Un(e,t,o)}return Vs(e,t,l,r,o)}function id(e,t,l,r){var o=r.children,h=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(h=h!==null?h.baseLanes|l:l,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~h}else r=0,t.child=null;return ad(e,t,h,l,r)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&mr(t,h!==null?h.cachePool:null),h!==null?uh(t,h):ys(),sh(t);else return r=t.lanes=536870912,ad(e,t,h!==null?h.baseLanes|l:l,l,r)}else h!==null?(mr(t,h.cachePool),uh(t,h),rl(),t.memoizedState=null):(e!==null&&mr(t,null),ys(),rl());return Et(e,t,o,l),t.child}function ma(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ad(e,t,l,r,o){var h=hs();return h=h===null?null:{parent:ht._currentValue,pool:h},t.memoizedState={baseLanes:l,cachePool:h},e!==null&&mr(t,null),ys(),sh(t),e!==null&&si(e,t,r,!0),t.childLanes=o,null}function Mr(e,t){return t=_r({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function rd(e,t,l){return Ll(t,e.child,null,l),e=Mr(t,t.pendingProps),e.flags|=2,Kt(t),t.memoizedState=null,e}function Bx(e,t,l){var r=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Be){if(r.mode==="hidden")return e=Mr(t,r),t.lanes=536870912,ma(null,e);if(vs(t),(e=tt)?(e=ym(e,cn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Wn!==null?{id:Sn,overflow:zn}:null,retryLane:536870912,hydrationErrors:null},l=Ff(e),l.return=t,t.child=l,kt=t,tt=null)):e=null,e===null)throw el(t);return t.lanes=536870912,null}return Mr(t,r)}var h=e.memoizedState;if(h!==null){var b=h.dehydrated;if(vs(t),o)if(t.flags&256)t.flags&=-257,t=rd(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(mt||si(e,t,l,!1),o=(l&e.childLanes)!==0,mt||o){if(r=We,r!==null&&(b=Kc(r,l),b!==0&&b!==h.retryLane))throw h.retryLane=b,Nl(e,b),Yt(r,e,b),Ys;Yr(),t=rd(e,t,l)}else e=h.treeContext,tt=hn(b.nextSibling),kt=t,Be=!0,Pn=null,cn=!1,e!==null&&Qf(t,e),t=Mr(t,r),t.flags|=4096;return t}return e=An(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ar(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(u(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Vs(e,t,l,r,o){return _l(t),l=zs(e,t,l,r,void 0,o),r=ks(),e!==null&&!mt?(ws(e,t,o),Un(e,t,o)):(Be&&r&&ls(t),t.flags|=1,Et(e,t,l,o),t.child)}function ud(e,t,l,r,o,h){return _l(t),t.updateQueue=null,l=ch(t,r,l,o),oh(e),r=ks(),e!==null&&!mt?(ws(e,t,h),Un(e,t,h)):(Be&&r&&ls(t),t.flags|=1,Et(e,t,l,h),t.child)}function sd(e,t,l,r,o){if(_l(t),t.stateNode===null){var h=ii,b=l.contextType;typeof b=="object"&&b!==null&&(h=wt(b)),h=new l(r,h),t.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Hs,t.stateNode=h,h._reactInternals=t,h=t.stateNode,h.props=r,h.state=t.memoizedState,h.refs={},ms(t),b=l.contextType,h.context=typeof b=="object"&&b!==null?wt(b):ii,h.state=t.memoizedState,b=l.getDerivedStateFromProps,typeof b=="function"&&(Bs(t,l,b,r),h.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&Hs.enqueueReplaceState(h,h.state,null),oa(t,r,h,o),sa(),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){h=t.stateNode;var z=t.memoizedProps,T=Bl(l,z);h.props=T;var L=h.context,X=l.contextType;b=ii,typeof X=="object"&&X!==null&&(b=wt(X));var J=l.getDerivedStateFromProps;X=typeof J=="function"||typeof h.getSnapshotBeforeUpdate=="function",z=t.pendingProps!==z,X||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(z||L!==b)&&Jh(t,h,r,b),nl=!1;var U=t.memoizedState;h.state=U,oa(t,r,h,o),sa(),L=t.memoizedState,z||U!==L||nl?(typeof J=="function"&&(Bs(t,l,J,r),L=t.memoizedState),(T=nl||Zh(t,l,T,r,U,L,b))?(X||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(t.flags|=4194308)):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=L),h.props=r,h.state=L,h.context=b,r=T):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{h=t.stateNode,ps(e,t),b=t.memoizedProps,X=Bl(l,b),h.props=X,J=t.pendingProps,U=h.context,L=l.contextType,T=ii,typeof L=="object"&&L!==null&&(T=wt(L)),z=l.getDerivedStateFromProps,(L=typeof z=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==J||U!==T)&&Jh(t,h,r,T),nl=!1,U=t.memoizedState,h.state=U,oa(t,r,h,o),sa();var Y=t.memoizedState;b!==J||U!==Y||nl||e!==null&&e.dependencies!==null&&hr(e.dependencies)?(typeof z=="function"&&(Bs(t,l,z,r),Y=t.memoizedState),(X=nl||Zh(t,l,X,r,U,Y,T)||e!==null&&e.dependencies!==null&&hr(e.dependencies))?(L||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(r,Y,T),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(r,Y,T)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=Y),h.props=r,h.state=Y,h.context=T,r=X):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),r=!1)}return h=r,Ar(e,t),r=(t.flags&128)!==0,h||r?(h=t.stateNode,l=r&&typeof l.getDerivedStateFromError!="function"?null:h.render(),t.flags|=1,e!==null&&r?(t.child=Ll(t,e.child,null,o),t.child=Ll(t,null,l,o)):Et(e,t,l,o),t.memoizedState=h.state,e=t.child):e=Un(e,t,o),e}function od(e,t,l,r){return Ml(),t.flags|=256,Et(e,t,l,r),t.child}var Fs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xs(e){return{baseLanes:e,cachePool:Wf()}}function Gs(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=$t),e}function cd(e,t,l){var r=t.pendingProps,o=!1,h=(t.flags&128)!==0,b;if((b=h)||(b=e!==null&&e.memoizedState===null?!1:(ot.current&2)!==0),b&&(o=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(Be){if(o?al(t):rl(),(e=tt)?(e=ym(e,cn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Wn!==null?{id:Sn,overflow:zn}:null,retryLane:536870912,hydrationErrors:null},l=Ff(e),l.return=t,t.child=l,kt=t,tt=null)):e=null,e===null)throw el(t);return No(e)?t.lanes=32:t.lanes=536870912,null}var z=r.children;return r=r.fallback,o?(rl(),o=t.mode,z=_r({mode:"hidden",children:z},o),r=jl(r,o,l,null),z.return=t,r.return=t,z.sibling=r,t.child=z,r=t.child,r.memoizedState=Xs(l),r.childLanes=Gs(e,b,l),t.memoizedState=Fs,ma(null,r)):(al(t),Qs(t,z))}var T=e.memoizedState;if(T!==null&&(z=T.dehydrated,z!==null)){if(h)t.flags&256?(al(t),t.flags&=-257,t=Zs(e,t,l)):t.memoizedState!==null?(rl(),t.child=e.child,t.flags|=128,t=null):(rl(),z=r.fallback,o=t.mode,r=_r({mode:"visible",children:r.children},o),z=jl(z,o,l,null),z.flags|=2,r.return=t,z.return=t,r.sibling=z,t.child=r,Ll(t,e.child,null,l),r=t.child,r.memoizedState=Xs(l),r.childLanes=Gs(e,b,l),t.memoizedState=Fs,t=ma(null,r));else if(al(t),No(z)){if(b=z.nextSibling&&z.nextSibling.dataset,b)var L=b.dgst;b=L,r=Error(u(419)),r.stack="",r.digest=b,na({value:r,source:null,stack:null}),t=Zs(e,t,l)}else if(mt||si(e,t,l,!1),b=(l&e.childLanes)!==0,mt||b){if(b=We,b!==null&&(r=Kc(b,l),r!==0&&r!==T.retryLane))throw T.retryLane=r,Nl(e,r),Yt(b,e,r),Ys;Co(z)||Yr(),t=Zs(e,t,l)}else Co(z)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,tt=hn(z.nextSibling),kt=t,Be=!0,Pn=null,cn=!1,e!==null&&Qf(t,e),t=Qs(t,r.children),t.flags|=4096);return t}return o?(rl(),z=r.fallback,o=t.mode,T=e.child,L=T.sibling,r=An(T,{mode:"hidden",children:r.children}),r.subtreeFlags=T.subtreeFlags&65011712,L!==null?z=An(L,z):(z=jl(z,o,l,null),z.flags|=2),z.return=t,r.return=t,r.sibling=z,t.child=r,ma(null,r),r=t.child,z=e.child.memoizedState,z===null?z=Xs(l):(o=z.cachePool,o!==null?(T=ht._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=Wf(),z={baseLanes:z.baseLanes|l,cachePool:o}),r.memoizedState=z,r.childLanes=Gs(e,b,l),t.memoizedState=Fs,ma(e.child,r)):(al(t),l=e.child,e=l.sibling,l=An(l,{mode:"visible",children:r.children}),l.return=t,l.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=l,t.memoizedState=null,l)}function Qs(e,t){return t=_r({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _r(e,t){return e=Zt(22,e,null,t),e.lanes=0,e}function Zs(e,t,l){return Ll(t,e.child,null,l),e=Qs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fd(e,t,l){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ss(e.return,t,l)}function Js(e,t,l,r,o,h){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:l,tailMode:o,treeForkCount:h}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=r,b.tail=l,b.tailMode=o,b.treeForkCount=h)}function hd(e,t,l){var r=t.pendingProps,o=r.revealOrder,h=r.tail;r=r.children;var b=ot.current,z=(b&2)!==0;if(z?(b=b&1|2,t.flags|=128):b&=1,k(ot,b),Et(e,t,r,l),r=Be?ta:0,!z&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fd(e,l,t);else if(e.tag===19)fd(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(l=t.child,o=null;l!==null;)e=l.alternate,e!==null&&vr(e)===null&&(o=l),l=l.sibling;l=o,l===null?(o=t.child,t.child=null):(o=l.sibling,l.sibling=null),Js(t,!1,o,l,h,r);break;case"backwards":case"unstable_legacy-backwards":for(l=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&vr(e)===null){t.child=o;break}e=o.sibling,o.sibling=l,l=o,o=e}Js(t,!0,l,null,h,r);break;case"together":Js(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Un(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ol|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(si(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,l=An(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=An(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ks(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&hr(e)))}function Hx(e,t,l){switch(t.tag){case 3:ue(t,t.stateNode.containerInfo),tl(t,ht,e.memoizedState.cache),Ml();break;case 27:case 5:Oe(t);break;case 4:ue(t,t.stateNode.containerInfo);break;case 10:tl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,vs(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(al(t),t.flags|=128,null):(l&t.child.childLanes)!==0?cd(e,t,l):(al(t),e=Un(e,t,l),e!==null?e.sibling:null);al(t);break;case 19:var o=(e.flags&128)!==0;if(r=(l&t.childLanes)!==0,r||(si(e,t,l,!1),r=(l&t.childLanes)!==0),o){if(r)return hd(e,t,l);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),k(ot,ot.current),r)break;return null;case 22:return t.lanes=0,id(e,t,l,t.pendingProps);case 24:tl(t,ht,e.memoizedState.cache)}return Un(e,t,l)}function dd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)mt=!0;else{if(!Ks(e,l)&&(t.flags&128)===0)return mt=!1,Hx(e,t,l);mt=(e.flags&131072)!==0}else mt=!1,Be&&(t.flags&1048576)!==0&&Gf(t,ta,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Dl(t.elementType),t.type=e,typeof e=="function")es(e)?(r=Bl(e,r),t.tag=1,t=sd(null,t,e,r,l)):(t.tag=0,t=Vs(null,t,e,r,l));else{if(e!=null){var o=e.$$typeof;if(o===I){t.tag=11,t=td(null,t,e,r,l);break e}else if(o===$){t.tag=14,t=nd(null,t,e,r,l);break e}}throw t=re(e)||e,Error(u(306,t,""))}}return t;case 0:return Vs(e,t,t.type,t.pendingProps,l);case 1:return r=t.type,o=Bl(r,t.pendingProps),sd(e,t,r,o,l);case 3:e:{if(ue(t,t.stateNode.containerInfo),e===null)throw Error(u(387));r=t.pendingProps;var h=t.memoizedState;o=h.element,ps(e,t),oa(t,r,null,l);var b=t.memoizedState;if(r=b.cache,tl(t,ht,r),r!==h.cache&&os(t,[ht],l,!0),sa(),r=b.element,h.isDehydrated)if(h={element:r,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=h,t.memoizedState=h,t.flags&256){t=od(e,t,r,l);break e}else if(r!==o){o=un(Error(u(424)),t),na(o),t=od(e,t,r,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(tt=hn(e.firstChild),kt=t,Be=!0,Pn=null,cn=!0,l=ih(t,null,r,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ml(),r===o){t=Un(e,t,l);break e}Et(e,t,r,l)}t=t.child}return t;case 26:return Ar(e,t),e===null?(l=wm(t.type,null,t.pendingProps,null))?t.memoizedState=l:Be||(l=t.type,e=t.pendingProps,r=Jr(xe.current).createElement(l),r[zt]=t,r[Rt]=e,Tt(r,l,e),yt(r),t.stateNode=r):t.memoizedState=wm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Oe(t),e===null&&Be&&(r=t.stateNode=Sm(t.type,t.pendingProps,xe.current),kt=t,cn=!0,o=tt,ml(t.type)?(jo=o,tt=hn(r.firstChild)):tt=o),Et(e,t,t.pendingProps.children,l),Ar(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Be&&((o=r=tt)&&(r=py(r,t.type,t.pendingProps,cn),r!==null?(t.stateNode=r,kt=t,tt=hn(r.firstChild),cn=!1,o=!0):o=!1),o||el(t)),Oe(t),o=t.type,h=t.pendingProps,b=e!==null?e.memoizedProps:null,r=h.children,wo(o,h)?r=null:b!==null&&wo(o,b)&&(t.flags|=32),t.memoizedState!==null&&(o=zs(e,t,Mx,null,null,l),ja._currentValue=o),Ar(e,t),Et(e,t,r,l),t.child;case 6:return e===null&&Be&&((e=l=tt)&&(l=gy(l,t.pendingProps,cn),l!==null?(t.stateNode=l,kt=t,tt=null,e=!0):e=!1),e||el(t)),null;case 13:return cd(e,t,l);case 4:return ue(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ll(t,null,r,l):Et(e,t,r,l),t.child;case 11:return td(e,t,t.type,t.pendingProps,l);case 7:return Et(e,t,t.pendingProps,l),t.child;case 8:return Et(e,t,t.pendingProps.children,l),t.child;case 12:return Et(e,t,t.pendingProps.children,l),t.child;case 10:return r=t.pendingProps,tl(t,t.type,r.value),Et(e,t,r.children,l),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,_l(t),o=wt(o),r=r(o),t.flags|=1,Et(e,t,r,l),t.child;case 14:return nd(e,t,t.type,t.pendingProps,l);case 15:return ld(e,t,t.type,t.pendingProps,l);case 19:return hd(e,t,l);case 31:return Bx(e,t,l);case 22:return id(e,t,l,t.pendingProps);case 24:return _l(t),r=wt(ht),e===null?(o=hs(),o===null&&(o=We,h=cs(),o.pooledCache=h,h.refCount++,h!==null&&(o.pooledCacheLanes|=l),o=h),t.memoizedState={parent:r,cache:o},ms(t),tl(t,ht,o)):((e.lanes&l)!==0&&(ps(e,t),oa(t,null,null,l),sa()),o=e.memoizedState,h=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),tl(t,ht,r)):(r=h.cache,tl(t,ht,r),r!==o.cache&&os(t,[ht],l,!0))),Et(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Bn(e){e.flags|=4}function Is(e,t,l,r,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(qd())e.flags|=8192;else throw Rl=gr,ds}else e.flags&=-16777217}function md(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!jm(t))if(qd())e.flags|=8192;else throw Rl=gr,ds}function Or(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ka():536870912,e.lanes|=t,vi|=t)}function pa(e,t){if(!Be)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var r=null;l!==null;)l.alternate!==null&&(r=l),l=l.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,r=0;if(t)for(var o=e.child;o!==null;)l|=o.lanes|o.childLanes,r|=o.subtreeFlags&65011712,r|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)l|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=l,t}function qx(e,t,l){var r=t.pendingProps;switch(is(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(t),null;case 1:return nt(t),null;case 3:return l=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Dn(ht),ce(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ui(t)?Bn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rs())),nt(t),null;case 26:var o=t.type,h=t.memoizedState;return e===null?(Bn(t),h!==null?(nt(t),md(t,h)):(nt(t),Is(t,o,null,r,l))):h?h!==e.memoizedState?(Bn(t),nt(t),md(t,h)):(nt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Bn(t),nt(t),Is(t,o,e,r,l)),null;case 27:if(De(t),l=xe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Bn(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return nt(t),null}e=ae.current,ui(t)?Zf(t):(e=Sm(o,r,l),t.stateNode=e,Bn(t))}return nt(t),null;case 5:if(De(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Bn(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return nt(t),null}if(h=ae.current,ui(t))Zf(t);else{var b=Jr(xe.current);switch(h){case 1:h=b.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:h=b.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":h=b.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":h=b.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":h=b.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof r.is=="string"?b.createElement("select",{is:r.is}):b.createElement("select"),r.multiple?h.multiple=!0:r.size&&(h.size=r.size);break;default:h=typeof r.is=="string"?b.createElement(o,{is:r.is}):b.createElement(o)}}h[zt]=t,h[Rt]=r;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)h.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=h;e:switch(Tt(h,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Bn(t)}}return nt(t),Is(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Bn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(u(166));if(e=xe.current,ui(t)){if(e=t.stateNode,l=t.memoizedProps,r=null,o=kt,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[zt]=t,e=!!(e.nodeValue===l||r!==null&&r.suppressHydrationWarning===!0||cm(e.nodeValue,l)),e||el(t,!0)}else e=Jr(e).createTextNode(r),e[zt]=t,t.stateNode=e}return nt(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(r=ui(t),l!==null){if(e===null){if(!r)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[zt]=t}else Ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;nt(t),e=!1}else l=rs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Kt(t),t):(Kt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return nt(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ui(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(u(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[zt]=t}else Ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;nt(t),o=!1}else o=rs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Kt(t),t):(Kt(t),null)}return Kt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=r!==null,e=e!==null&&e.memoizedState!==null,l&&(r=t.child,o=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(o=r.alternate.memoizedState.cachePool.pool),h=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(h=r.memoizedState.cachePool.pool),h!==o&&(r.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Or(t,t.updateQueue),nt(t),null);case 4:return ce(),e===null&&bo(t.stateNode.containerInfo),nt(t),null;case 10:return Dn(t.type),nt(t),null;case 19:if(F(ot),r=t.memoizedState,r===null)return nt(t),null;if(o=(t.flags&128)!==0,h=r.rendering,h===null)if(o)pa(r,!1);else{if(ut!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=vr(e),h!==null){for(t.flags|=128,pa(r,!1),e=h.updateQueue,t.updateQueue=e,Or(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Vf(l,e),l=l.sibling;return k(ot,ot.current&1|2),Be&&_n(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&vt()>Br&&(t.flags|=128,o=!0,pa(r,!1),t.lanes=4194304)}else{if(!o)if(e=vr(h),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Or(t,e),pa(r,!0),r.tail===null&&r.tailMode==="hidden"&&!h.alternate&&!Be)return nt(t),null}else 2*vt()-r.renderingStartTime>Br&&l!==536870912&&(t.flags|=128,o=!0,pa(r,!1),t.lanes=4194304);r.isBackwards?(h.sibling=t.child,t.child=h):(e=r.last,e!==null?e.sibling=h:t.child=h,r.last=h)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=vt(),e.sibling=null,l=ot.current,k(ot,o?l&1|2:l&1),Be&&_n(t,r.treeForkCount),e):(nt(t),null);case 22:case 23:return Kt(t),bs(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(l&536870912)!==0&&(t.flags&128)===0&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),l=t.updateQueue,l!==null&&Or(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==l&&(t.flags|=2048),e!==null&&F(Ol),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Dn(ht),nt(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Yx(e,t){switch(is(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dn(ht),ce(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return De(t),null;case 31:if(t.memoizedState!==null){if(Kt(t),t.alternate===null)throw Error(u(340));Ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(ot),null;case 4:return ce(),null;case 10:return Dn(t.type),null;case 22:case 23:return Kt(t),bs(),e!==null&&F(Ol),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Dn(ht),null;case 25:return null;default:return null}}function pd(e,t){switch(is(t),t.tag){case 3:Dn(ht),ce();break;case 26:case 27:case 5:De(t);break;case 4:ce();break;case 31:t.memoizedState!==null&&Kt(t);break;case 13:Kt(t);break;case 19:F(ot);break;case 10:Dn(t.type);break;case 22:case 23:Kt(t),bs(),e!==null&&F(Ol);break;case 24:Dn(ht)}}function ga(e,t){try{var l=t.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var o=r.next;l=o;do{if((l.tag&e)===e){r=void 0;var h=l.create,b=l.inst;r=h(),b.destroy=r}l=l.next}while(l!==o)}}catch(z){Ze(t,t.return,z)}}function ul(e,t,l){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var h=o.next;r=h;do{if((r.tag&e)===e){var b=r.inst,z=b.destroy;if(z!==void 0){b.destroy=void 0,o=t;var T=l,L=z;try{L()}catch(X){Ze(o,T,X)}}}r=r.next}while(r!==h)}}catch(X){Ze(t,t.return,X)}}function gd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{rh(t,l)}catch(r){Ze(e,e.return,r)}}}function xd(e,t,l){l.props=Bl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(r){Ze(e,t,r)}}function xa(e,t){try{var l=e.ref;if(l!==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 l=="function"?e.refCleanup=l(r):l.current=r}}catch(o){Ze(e,t,o)}}function kn(e,t){var l=e.ref,r=e.refCleanup;if(l!==null)if(typeof r=="function")try{r()}catch(o){Ze(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(o){Ze(e,t,o)}else l.current=null}function yd(e){var t=e.type,l=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break e;case"img":l.src?r.src=l.src:l.srcSet&&(r.srcset=l.srcSet)}}catch(o){Ze(e,e.return,o)}}function $s(e,t,l){try{var r=e.stateNode;oy(r,e.type,l,t),r[Rt]=t}catch(o){Ze(e,e.return,o)}}function bd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ml(e.type)||e.tag===4}function Ws(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bd(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&&ml(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 Ps(e,t,l){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=jn));else if(r!==4&&(r===27&&ml(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ps(e,t,l),e=e.sibling;e!==null;)Ps(e,t,l),e=e.sibling}function Dr(e,t,l){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(r!==4&&(r===27&&ml(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Dr(e,t,l),e=e.sibling;e!==null;)Dr(e,t,l),e=e.sibling}function vd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Tt(t,r,l),t[zt]=e,t[Rt]=l}catch(h){Ze(e,e.return,h)}}var Hn=!1,pt=!1,eo=!1,Sd=typeof WeakSet=="function"?WeakSet:Set,bt=null;function Vx(e,t){if(e=e.containerInfo,zo=tu,e=Of(e),Zu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var r=l.getSelection&&l.getSelection();if(r&&r.rangeCount!==0){l=r.anchorNode;var o=r.anchorOffset,h=r.focusNode;r=r.focusOffset;try{l.nodeType,h.nodeType}catch{l=null;break e}var b=0,z=-1,T=-1,L=0,X=0,J=e,U=null;t:for(;;){for(var Y;J!==l||o!==0&&J.nodeType!==3||(z=b+o),J!==h||r!==0&&J.nodeType!==3||(T=b+r),J.nodeType===3&&(b+=J.nodeValue.length),(Y=J.firstChild)!==null;)U=J,J=Y;for(;;){if(J===e)break t;if(U===l&&++L===o&&(z=b),U===h&&++X===r&&(T=b),(Y=J.nextSibling)!==null)break;J=U,U=J.parentNode}J=Y}l=z===-1||T===-1?null:{start:z,end:T}}else l=null}l=l||{start:0,end:0}}else l=null;for(ko={focusedElem:e,selectionRange:l},tu=!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,h=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)o=e[l],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,l=t,o=h.memoizedProps,h=h.memoizedState,r=l.stateNode;try{var he=Bl(l.type,o);e=r.getSnapshotBeforeUpdate(he,h),r.__reactInternalSnapshotBeforeUpdate=e}catch(Se){Ze(l,l.return,Se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)To(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":To(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(u(163))}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}}function zd(e,t,l){var r=l.flags;switch(l.tag){case 0:case 11:case 15:Yn(e,l),r&4&&ga(5,l);break;case 1:if(Yn(e,l),r&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(b){Ze(l,l.return,b)}else{var o=Bl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Ze(l,l.return,b)}}r&64&&gd(l),r&512&&xa(l,l.return);break;case 3:if(Yn(e,l),r&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{rh(e,t)}catch(b){Ze(l,l.return,b)}}break;case 27:t===null&&r&4&&vd(l);case 26:case 5:Yn(e,l),t===null&&r&4&&yd(l),r&512&&xa(l,l.return);break;case 12:Yn(e,l);break;case 31:Yn(e,l),r&4&&Ed(e,l);break;case 13:Yn(e,l),r&4&&Td(e,l),r&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=$x.bind(null,l),xy(e,l))));break;case 22:if(r=l.memoizedState!==null||Hn,!r){t=t!==null&&t.memoizedState!==null||pt,o=Hn;var h=pt;Hn=r,(pt=t)&&!h?Vn(e,l,(l.subtreeFlags&8772)!==0):Yn(e,l),Hn=o,pt=h}break;case 30:break;default:Yn(e,l)}}function kd(e){var t=e.alternate;t!==null&&(e.alternate=null,kd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Mu(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 lt=null,Ut=!1;function qn(e,t,l){for(l=l.child;l!==null;)wd(e,t,l),l=l.sibling}function wd(e,t,l){if(st&&typeof st.onCommitFiberUnmount=="function")try{st.onCommitFiberUnmount(St,l)}catch{}switch(l.tag){case 26:pt||kn(l,t),qn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:pt||kn(l,t);var r=lt,o=Ut;ml(l.type)&&(lt=l.stateNode,Ut=!1),qn(e,t,l),Ta(l.stateNode),lt=r,Ut=o;break;case 5:pt||kn(l,t);case 6:if(r=lt,o=Ut,lt=null,qn(e,t,l),lt=r,Ut=o,lt!==null)if(Ut)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(l.stateNode)}catch(h){Ze(l,t,h)}else try{lt.removeChild(l.stateNode)}catch(h){Ze(l,t,h)}break;case 18:lt!==null&&(Ut?(e=lt,gm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ni(e)):gm(lt,l.stateNode));break;case 4:r=lt,o=Ut,lt=l.stateNode.containerInfo,Ut=!0,qn(e,t,l),lt=r,Ut=o;break;case 0:case 11:case 14:case 15:ul(2,l,t),pt||ul(4,l,t),qn(e,t,l);break;case 1:pt||(kn(l,t),r=l.stateNode,typeof r.componentWillUnmount=="function"&&xd(l,t,r)),qn(e,t,l);break;case 21:qn(e,t,l);break;case 22:pt=(r=pt)||l.memoizedState!==null,qn(e,t,l),pt=r;break;default:qn(e,t,l)}}function Ed(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ni(e)}catch(l){Ze(t,t.return,l)}}}function Td(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ni(e)}catch(l){Ze(t,t.return,l)}}function Fx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Sd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Sd),t;default:throw Error(u(435,e.tag))}}function Rr(e,t){var l=Fx(e);t.forEach(function(r){if(!l.has(r)){l.add(r);var o=Wx.bind(null,e,r);r.then(o,o)}})}function Bt(e,t){var l=t.deletions;if(l!==null)for(var r=0;r<l.length;r++){var o=l[r],h=e,b=t,z=b;e:for(;z!==null;){switch(z.tag){case 27:if(ml(z.type)){lt=z.stateNode,Ut=!1;break e}break;case 5:lt=z.stateNode,Ut=!1;break e;case 3:case 4:lt=z.stateNode.containerInfo,Ut=!0;break e}z=z.return}if(lt===null)throw Error(u(160));wd(h,b,o),lt=null,Ut=!1,h=o.alternate,h!==null&&(h.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Cd(t,e),t=t.sibling}var yn=null;function Cd(e,t){var l=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Bt(t,e),Ht(e),r&4&&(ul(3,e,e.return),ga(3,e),ul(5,e,e.return));break;case 1:Bt(t,e),Ht(e),r&512&&(pt||l===null||kn(l,l.return)),r&64&&Hn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?r:l.concat(r))));break;case 26:var o=yn;if(Bt(t,e),Ht(e),r&512&&(pt||l===null||kn(l,l.return)),r&4){var h=l!==null?l.memoizedState:null;if(r=e.memoizedState,l===null)if(r===null)if(e.stateNode===null){e:{r=e.type,l=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":h=o.getElementsByTagName("title")[0],(!h||h[Xi]||h[zt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=o.createElement(r),o.head.insertBefore(h,o.querySelector("head > title"))),Tt(h,r,l),h[zt]=e,yt(h),r=h;break e;case"link":var b=Cm("link","href",o).get(r+(l.href||""));if(b){for(var z=0;z<b.length;z++)if(h=b[z],h.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&h.getAttribute("rel")===(l.rel==null?null:l.rel)&&h.getAttribute("title")===(l.title==null?null:l.title)&&h.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){b.splice(z,1);break t}}h=o.createElement(r),Tt(h,r,l),o.head.appendChild(h);break;case"meta":if(b=Cm("meta","content",o).get(r+(l.content||""))){for(z=0;z<b.length;z++)if(h=b[z],h.getAttribute("content")===(l.content==null?null:""+l.content)&&h.getAttribute("name")===(l.name==null?null:l.name)&&h.getAttribute("property")===(l.property==null?null:l.property)&&h.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&h.getAttribute("charset")===(l.charSet==null?null:l.charSet)){b.splice(z,1);break t}}h=o.createElement(r),Tt(h,r,l),o.head.appendChild(h);break;default:throw Error(u(468,r))}h[zt]=e,yt(h),r=h}e.stateNode=r}else Nm(o,e.type,e.stateNode);else e.stateNode=Tm(o,r,e.memoizedProps);else h!==r?(h===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):h.count--,r===null?Nm(o,e.type,e.stateNode):Tm(o,r,e.memoizedProps)):r===null&&e.stateNode!==null&&$s(e,e.memoizedProps,l.memoizedProps)}break;case 27:Bt(t,e),Ht(e),r&512&&(pt||l===null||kn(l,l.return)),l!==null&&r&4&&$s(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Bt(t,e),Ht(e),r&512&&(pt||l===null||kn(l,l.return)),e.flags&32){o=e.stateNode;try{$l(o,"")}catch(he){Ze(e,e.return,he)}}r&4&&e.stateNode!=null&&(o=e.memoizedProps,$s(e,o,l!==null?l.memoizedProps:o)),r&1024&&(eo=!0);break;case 6:if(Bt(t,e),Ht(e),r&4){if(e.stateNode===null)throw Error(u(162));r=e.memoizedProps,l=e.stateNode;try{l.nodeValue=r}catch(he){Ze(e,e.return,he)}}break;case 3:if($r=null,o=yn,yn=Kr(t.containerInfo),Bt(t,e),yn=o,Ht(e),r&4&&l!==null&&l.memoizedState.isDehydrated)try{Ni(t.containerInfo)}catch(he){Ze(e,e.return,he)}eo&&(eo=!1,Nd(e));break;case 4:r=yn,yn=Kr(e.stateNode.containerInfo),Bt(t,e),Ht(e),yn=r;break;case 12:Bt(t,e),Ht(e);break;case 31:Bt(t,e),Ht(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Rr(e,r)));break;case 13:Bt(t,e),Ht(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ur=vt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Rr(e,r)));break;case 22:o=e.memoizedState!==null;var T=l!==null&&l.memoizedState!==null,L=Hn,X=pt;if(Hn=L||o,pt=X||T,Bt(t,e),pt=X,Hn=L,Ht(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(l===null||T||Hn||pt||Hl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){T=l=t;try{if(h=T.stateNode,o)b=h.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{z=T.stateNode;var J=T.memoizedProps.style,U=J!=null&&J.hasOwnProperty("display")?J.display:null;z.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(he){Ze(T,T.return,he)}}}else if(t.tag===6){if(l===null){T=t;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(he){Ze(T,T.return,he)}}}else if(t.tag===18){if(l===null){T=t;try{var Y=T.stateNode;o?xm(Y,!0):xm(T.stateNode,!1)}catch(he){Ze(T,T.return,he)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(l=r.retryQueue,l!==null&&(r.retryQueue=null,Rr(e,l))));break;case 19:Bt(t,e),Ht(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Rr(e,r)));break;case 30:break;case 21:break;default:Bt(t,e),Ht(e)}}function Ht(e){var t=e.flags;if(t&2){try{for(var l,r=e.return;r!==null;){if(bd(r)){l=r;break}r=r.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var o=l.stateNode,h=Ws(e);Dr(e,h,o);break;case 5:var b=l.stateNode;l.flags&32&&($l(b,""),l.flags&=-33);var z=Ws(e);Dr(e,z,b);break;case 3:case 4:var T=l.stateNode.containerInfo,L=Ws(e);Ps(e,L,T);break;default:throw Error(u(161))}}catch(X){Ze(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Nd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Yn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)zd(e,t.alternate,t),t=t.sibling}function Hl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ul(4,t,t.return),Hl(t);break;case 1:kn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&xd(t,t.return,l),Hl(t);break;case 27:Ta(t.stateNode);case 26:case 5:kn(t,t.return),Hl(t);break;case 22:t.memoizedState===null&&Hl(t);break;case 30:Hl(t);break;default:Hl(t)}e=e.sibling}}function Vn(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,o=e,h=t,b=h.flags;switch(h.tag){case 0:case 11:case 15:Vn(o,h,l),ga(4,h);break;case 1:if(Vn(o,h,l),r=h,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(L){Ze(r,r.return,L)}if(r=h,o=r.updateQueue,o!==null){var z=r.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)ah(T[o],z)}catch(L){Ze(r,r.return,L)}}l&&b&64&&gd(h),xa(h,h.return);break;case 27:vd(h);case 26:case 5:Vn(o,h,l),l&&r===null&&b&4&&yd(h),xa(h,h.return);break;case 12:Vn(o,h,l);break;case 31:Vn(o,h,l),l&&b&4&&Ed(o,h);break;case 13:Vn(o,h,l),l&&b&4&&Td(o,h);break;case 22:h.memoizedState===null&&Vn(o,h,l),xa(h,h.return);break;case 30:break;default:Vn(o,h,l)}t=t.sibling}}function to(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&la(l))}function no(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e))}function bn(e,t,l,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jd(e,t,l,r),t=t.sibling}function jd(e,t,l,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:bn(e,t,l,r),o&2048&&ga(9,t);break;case 1:bn(e,t,l,r);break;case 3:bn(e,t,l,r),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e)));break;case 12:if(o&2048){bn(e,t,l,r),e=t.stateNode;try{var h=t.memoizedProps,b=h.id,z=h.onPostCommit;typeof z=="function"&&z(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Ze(t,t.return,T)}}else bn(e,t,l,r);break;case 31:bn(e,t,l,r);break;case 13:bn(e,t,l,r);break;case 23:break;case 22:h=t.stateNode,b=t.alternate,t.memoizedState!==null?h._visibility&2?bn(e,t,l,r):ya(e,t):h._visibility&2?bn(e,t,l,r):(h._visibility|=2,xi(e,t,l,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&to(b,t);break;case 24:bn(e,t,l,r),o&2048&&no(t.alternate,t);break;default:bn(e,t,l,r)}}function xi(e,t,l,r,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var h=e,b=t,z=l,T=r,L=b.flags;switch(b.tag){case 0:case 11:case 15:xi(h,b,z,T,o),ga(8,b);break;case 23:break;case 22:var X=b.stateNode;b.memoizedState!==null?X._visibility&2?xi(h,b,z,T,o):ya(h,b):(X._visibility|=2,xi(h,b,z,T,o)),o&&L&2048&&to(b.alternate,b);break;case 24:xi(h,b,z,T,o),o&&L&2048&&no(b.alternate,b);break;default:xi(h,b,z,T,o)}t=t.sibling}}function ya(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,r=t,o=r.flags;switch(r.tag){case 22:ya(l,r),o&2048&&to(r.alternate,r);break;case 24:ya(l,r),o&2048&&no(r.alternate,r);break;default:ya(l,r)}t=t.sibling}}var ba=8192;function yi(e,t,l){if(e.subtreeFlags&ba)for(e=e.child;e!==null;)Md(e,t,l),e=e.sibling}function Md(e,t,l){switch(e.tag){case 26:yi(e,t,l),e.flags&ba&&e.memoizedState!==null&&jy(l,yn,e.memoizedState,e.memoizedProps);break;case 5:yi(e,t,l);break;case 3:case 4:var r=yn;yn=Kr(e.stateNode.containerInfo),yi(e,t,l),yn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=ba,ba=16777216,yi(e,t,l),ba=r):yi(e,t,l));break;default:yi(e,t,l)}}function Ad(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 va(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var r=t[l];bt=r,Od(r,e)}Ad(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_d(e),e=e.sibling}function _d(e){switch(e.tag){case 0:case 11:case 15:va(e),e.flags&2048&&ul(9,e,e.return);break;case 3:va(e);break;case 12:va(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Lr(e)):va(e);break;default:va(e)}}function Lr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var r=t[l];bt=r,Od(r,e)}Ad(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ul(8,t,t.return),Lr(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Lr(t));break;default:Lr(t)}e=e.sibling}}function Od(e,t){for(;bt!==null;){var l=bt;switch(l.tag){case 0:case 11:case 15:ul(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var r=l.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:la(l.memoizedState.cache)}if(r=l.child,r!==null)r.return=l,bt=r;else e:for(l=e;bt!==null;){r=bt;var o=r.sibling,h=r.return;if(kd(r),r===l){bt=null;break e}if(o!==null){o.return=h,bt=o;break e}bt=h}}}var Xx={getCacheForType:function(e){var t=wt(ht),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return wt(ht).controller.signal}},Gx=typeof WeakMap=="function"?WeakMap:Map,Ve=0,We=null,je=null,Re=0,Qe=0,It=null,sl=!1,bi=!1,lo=!1,Fn=0,ut=0,ol=0,ql=0,io=0,$t=0,vi=0,Sa=null,qt=null,ao=!1,Ur=0,Dd=0,Br=1/0,Hr=null,cl=null,xt=0,fl=null,Si=null,Xn=0,ro=0,uo=null,Rd=null,za=0,so=null;function Wt(){return(Ve&2)!==0&&Re!==0?Re&-Re:R.T!==null?po():Ic()}function Ld(){if($t===0)if((Re&536870912)===0||Be){var e=Xe;Xe<<=1,(Xe&3932160)===0&&(Xe=262144),$t=e}else $t=536870912;return e=Jt.current,e!==null&&(e.flags|=32),$t}function Yt(e,t,l){(e===We&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)&&(zi(e,0),hl(e,Re,$t,!1)),Fi(e,l),((Ve&2)===0||e!==We)&&(e===We&&((Ve&2)===0&&(ql|=l),ut===4&&hl(e,Re,$t,!1)),wn(e))}function Ud(e,t,l){if((Ve&6)!==0)throw Error(u(327));var r=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Kn(e,t),o=r?Jx(e,t):co(e,t,!0),h=r;do{if(o===0){bi&&!r&&hl(e,t,0,!1);break}else{if(l=e.current.alternate,h&&!Qx(l)){o=co(e,t,!1),h=!1;continue}if(o===2){if(h=t,e.errorRecoveryDisabledLanes&h)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){t=b;e:{var z=e;o=Sa;var T=z.current.memoizedState.isDehydrated;if(T&&(zi(z,b).flags|=256),b=co(z,b,!1),b!==2){if(lo&&!T){z.errorRecoveryDisabledLanes|=h,ql|=h,o=4;break e}h=qt,qt=o,h!==null&&(qt===null?qt=h:qt.push.apply(qt,h))}o=b}if(h=!1,o!==2)continue}}if(o===1){zi(e,0),hl(e,t,0,!0);break}e:{switch(r=e,h=o,h){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:hl(r,t,$t,!sl);break e;case 2:qt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=Ur+300-vt(),10<o)){if(hl(r,t,$t,!sl),nn(r,0,!0)!==0)break e;Xn=t,r.timeoutHandle=mm(Bd.bind(null,r,l,qt,Hr,ao,t,$t,ql,vi,sl,h,"Throttled",-0,0),o);break e}Bd(r,l,qt,Hr,ao,t,$t,ql,vi,sl,h,null,-0,0)}}break}while(!0);wn(e)}function Bd(e,t,l,r,o,h,b,z,T,L,X,J,U,Y){if(e.timeoutHandle=-1,J=t.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:jn},Md(t,h,J);var he=(h&62914560)===h?Ur-vt():(h&4194048)===h?Dd-vt():0;if(he=My(J,he),he!==null){Xn=h,e.cancelPendingCommit=he(Qd.bind(null,e,t,h,l,r,o,b,z,T,X,J,null,U,Y)),hl(e,h,b,!L);return}}Qd(e,t,h,l,r,o,b,z,T)}function Qx(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var r=0;r<l.length;r++){var o=l[r],h=o.getSnapshot;o=o.value;try{if(!Qt(h(),o))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function hl(e,t,l,r){t&=~io,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var h=31-Ge(o),b=1<<h;r[h]=-1,o&=~b}l!==0&&Zc(e,l,t)}function qr(){return(Ve&6)===0?(ka(0),!1):!0}function oo(){if(je!==null){if(Qe===0)var e=je.return;else e=je,On=Al=null,Es(e),hi=null,aa=0,e=je;for(;e!==null;)pd(e.alternate,e),e=e.return;je=null}}function zi(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,hy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Xn=0,oo(),We=e,je=l=An(e.current,null),Re=t,Qe=0,It=null,sl=!1,bi=Kn(e,t),lo=!1,vi=$t=io=ql=ol=ut=0,qt=Sa=null,ao=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var o=31-Ge(r),h=1<<o;t|=e[o],r&=~h}return Fn=t,ur(),l}function Hd(e,t){Te=null,R.H=da,t===fi||t===pr?(t=th(),Qe=3):t===ds?(t=th(),Qe=4):Qe=t===Ys?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,It=t,je===null&&(ut=1,jr(e,un(t,e.current)))}function qd(){var e=Jt.current;return e===null?!0:(Re&4194048)===Re?fn===null:(Re&62914560)===Re||(Re&536870912)!==0?e===fn:!1}function Yd(){var e=R.H;return R.H=da,e===null?da:e}function Vd(){var e=R.A;return R.A=Xx,e}function Yr(){ut=4,sl||(Re&4194048)!==Re&&Jt.current!==null||(bi=!0),(ol&134217727)===0&&(ql&134217727)===0||We===null||hl(We,Re,$t,!1)}function co(e,t,l){var r=Ve;Ve|=2;var o=Yd(),h=Vd();(We!==e||Re!==t)&&(Hr=null,zi(e,t)),t=!1;var b=ut;e:do try{if(Qe!==0&&je!==null){var z=je,T=It;switch(Qe){case 8:oo(),b=6;break e;case 3:case 2:case 9:case 6:Jt.current===null&&(t=!0);var L=Qe;if(Qe=0,It=null,ki(e,z,T,L),l&&bi){b=0;break e}break;default:L=Qe,Qe=0,It=null,ki(e,z,T,L)}}Zx(),b=ut;break}catch(X){Hd(e,X)}while(!0);return t&&e.shellSuspendCounter++,On=Al=null,Ve=r,R.H=o,R.A=h,je===null&&(We=null,Re=0,ur()),b}function Zx(){for(;je!==null;)Fd(je)}function Jx(e,t){var l=Ve;Ve|=2;var r=Yd(),o=Vd();We!==e||Re!==t?(Hr=null,Br=vt()+500,zi(e,t)):bi=Kn(e,t);e:do try{if(Qe!==0&&je!==null){t=je;var h=It;t:switch(Qe){case 1:Qe=0,It=null,ki(e,t,h,1);break;case 2:case 9:if(Pf(h)){Qe=0,It=null,Xd(t);break}t=function(){Qe!==2&&Qe!==9||We!==e||(Qe=7),wn(e)},h.then(t,t);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:Pf(h)?(Qe=0,It=null,Xd(t)):(Qe=0,It=null,ki(e,t,h,7));break;case 5:var b=null;switch(je.tag){case 26:b=je.memoizedState;case 5:case 27:var z=je;if(b?jm(b):z.stateNode.complete){Qe=0,It=null;var T=z.sibling;if(T!==null)je=T;else{var L=z.return;L!==null?(je=L,Vr(L)):je=null}break t}}Qe=0,It=null,ki(e,t,h,5);break;case 6:Qe=0,It=null,ki(e,t,h,6);break;case 8:oo(),ut=6;break e;default:throw Error(u(462))}}Kx();break}catch(X){Hd(e,X)}while(!0);return On=Al=null,R.H=r,R.A=o,Ve=l,je!==null?0:(We=null,Re=0,ur(),ut)}function Kx(){for(;je!==null&&!qi();)Fd(je)}function Fd(e){var t=dd(e.alternate,e,Fn);e.memoizedProps=e.pendingProps,t===null?Vr(e):je=t}function Xd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=ud(l,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=ud(l,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:Es(t);default:pd(l,t),t=je=Vf(t,Fn),t=dd(l,t,Fn)}e.memoizedProps=e.pendingProps,t===null?Vr(e):je=t}function ki(e,t,l,r){On=Al=null,Es(t),hi=null,aa=0;var o=t.return;try{if(Ux(e,o,t,l,Re)){ut=1,jr(e,un(l,e.current)),je=null;return}}catch(h){if(o!==null)throw je=o,h;ut=1,jr(e,un(l,e.current)),je=null;return}t.flags&32768?(Be||r===1?e=!0:bi||(Re&536870912)!==0?e=!1:(sl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Jt.current,r!==null&&r.tag===13&&(r.flags|=16384))),Gd(t,e)):Vr(t)}function Vr(e){var t=e;do{if((t.flags&32768)!==0){Gd(t,sl);return}e=t.return;var l=qx(t.alternate,t,Fn);if(l!==null){je=l;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);ut===0&&(ut=5)}function Gd(e,t){do{var l=Yx(e.alternate,e);if(l!==null){l.flags&=32767,je=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=l}while(e!==null);ut=6,je=null}function Qd(e,t,l,r,o,h,b,z,T){e.cancelPendingCommit=null;do Fr();while(xt!==0);if((Ve&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(h=t.lanes|t.childLanes,h|=Wu,Ng(e,l,h,b,z,T),e===We&&(je=We=null,Re=0),Si=t,fl=e,Xn=l,ro=h,uo=o,Rd=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Px(ve,function(){return $d(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=R.T,R.T=null,o=K.p,K.p=2,b=Ve,Ve|=4;try{Vx(e,t,l)}finally{Ve=b,K.p=o,R.T=r}}xt=1,Zd(),Jd(),Kd()}}function Zd(){if(xt===1){xt=0;var e=fl,t=Si,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=R.T,R.T=null;var r=K.p;K.p=2;var o=Ve;Ve|=4;try{Cd(t,e);var h=ko,b=Of(e.containerInfo),z=h.focusedElem,T=h.selectionRange;if(b!==z&&z&&z.ownerDocument&&_f(z.ownerDocument.documentElement,z)){if(T!==null&&Zu(z)){var L=T.start,X=T.end;if(X===void 0&&(X=L),"selectionStart"in z)z.selectionStart=L,z.selectionEnd=Math.min(X,z.value.length);else{var J=z.ownerDocument||document,U=J&&J.defaultView||window;if(U.getSelection){var Y=U.getSelection(),he=z.textContent.length,Se=Math.min(T.start,he),Ie=T.end===void 0?Se:Math.min(T.end,he);!Y.extend&&Se>Ie&&(b=Ie,Ie=Se,Se=b);var A=Af(z,Se),N=Af(z,Ie);if(A&&N&&(Y.rangeCount!==1||Y.anchorNode!==A.node||Y.anchorOffset!==A.offset||Y.focusNode!==N.node||Y.focusOffset!==N.offset)){var D=J.createRange();D.setStart(A.node,A.offset),Y.removeAllRanges(),Se>Ie?(Y.addRange(D),Y.extend(N.node,N.offset)):(D.setEnd(N.node,N.offset),Y.addRange(D))}}}}for(J=[],Y=z;Y=Y.parentNode;)Y.nodeType===1&&J.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof z.focus=="function"&&z.focus(),z=0;z<J.length;z++){var Q=J[z];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}tu=!!zo,ko=zo=null}finally{Ve=o,K.p=r,R.T=l}}e.current=t,xt=2}}function Jd(){if(xt===2){xt=0;var e=fl,t=Si,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=R.T,R.T=null;var r=K.p;K.p=2;var o=Ve;Ve|=4;try{zd(e,t.alternate,t)}finally{Ve=o,K.p=r,R.T=l}}xt=3}}function Kd(){if(xt===4||xt===3){xt=0,Yi();var e=fl,t=Si,l=Xn,r=Rd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?xt=5:(xt=0,Si=fl=null,Id(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(cl=null),Nu(l),t=t.stateNode,st&&typeof st.onCommitFiberRoot=="function")try{st.onCommitFiberRoot(St,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=R.T,o=K.p,K.p=2,R.T=null;try{for(var h=e.onRecoverableError,b=0;b<r.length;b++){var z=r[b];h(z.value,{componentStack:z.stack})}}finally{R.T=t,K.p=o}}(Xn&3)!==0&&Fr(),wn(e),o=e.pendingLanes,(l&261930)!==0&&(o&42)!==0?e===so?za++:(za=0,so=e):za=0,ka(0)}}function Id(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,la(t)))}function Fr(){return Zd(),Jd(),Kd(),$d()}function $d(){if(xt!==5)return!1;var e=fl,t=ro;ro=0;var l=Nu(Xn),r=R.T,o=K.p;try{K.p=32>l?32:l,R.T=null,l=uo,uo=null;var h=fl,b=Xn;if(xt=0,Si=fl=null,Xn=0,(Ve&6)!==0)throw Error(u(331));var z=Ve;if(Ve|=4,_d(h.current),jd(h,h.current,b,l),Ve=z,ka(0,!1),st&&typeof st.onPostCommitFiberRoot=="function")try{st.onPostCommitFiberRoot(St,h)}catch{}return!0}finally{K.p=o,R.T=r,Id(e,t)}}function Wd(e,t,l){t=un(l,t),t=qs(e.stateNode,t,2),e=il(e,t,2),e!==null&&(Fi(e,2),wn(e))}function Ze(e,t,l){if(e.tag===3)Wd(e,e,l);else for(;t!==null;){if(t.tag===3){Wd(t,e,l);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(cl===null||!cl.has(r))){e=un(l,e),l=Ph(2),r=il(t,l,2),r!==null&&(ed(l,r,t,e),Fi(r,2),wn(r));break}}t=t.return}}function fo(e,t,l){var r=e.pingCache;if(r===null){r=e.pingCache=new Gx;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(l)||(lo=!0,o.add(l),e=Ix.bind(null,e,t,l),t.then(e,e))}function Ix(e,t,l){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,We===e&&(Re&l)===l&&(ut===4||ut===3&&(Re&62914560)===Re&&300>vt()-Ur?(Ve&2)===0&&zi(e,0):io|=l,vi===Re&&(vi=0)),wn(e)}function Pd(e,t){t===0&&(t=Ka()),e=Nl(e,t),e!==null&&(Fi(e,t),wn(e))}function $x(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Pd(e,l)}function Wx(e,t){var l=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(l=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(u(314))}r!==null&&r.delete(t),Pd(e,l)}function Px(e,t){return Jn(e,t)}var Xr=null,wi=null,ho=!1,Gr=!1,mo=!1,dl=0;function wn(e){e!==wi&&e.next===null&&(wi===null?Xr=wi=e:wi=wi.next=e),Gr=!0,ho||(ho=!0,ty())}function ka(e,t){if(!mo&&Gr){mo=!0;do for(var l=!1,r=Xr;r!==null;){if(e!==0){var o=r.pendingLanes;if(o===0)var h=0;else{var b=r.suspendedLanes,z=r.pingedLanes;h=(1<<31-Ge(42|e)+1)-1,h&=o&~(b&~z),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(l=!0,lm(r,h))}else h=Re,h=nn(r,r===We?h:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(h&3)===0||Kn(r,h)||(l=!0,lm(r,h));r=r.next}while(l);mo=!1}}function ey(){em()}function em(){Gr=ho=!1;var e=0;dl!==0&&fy()&&(e=dl);for(var t=vt(),l=null,r=Xr;r!==null;){var o=r.next,h=tm(r,t);h===0?(r.next=null,l===null?Xr=o:l.next=o,o===null&&(wi=l)):(l=r,(e!==0||(h&3)!==0)&&(Gr=!0)),r=o}xt!==0&&xt!==5||ka(e),dl!==0&&(dl=0)}function tm(e,t){for(var l=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var b=31-Ge(h),z=1<<b,T=o[b];T===-1?((z&l)===0||(z&r)!==0)&&(o[b]=Ja(z,t)):T<=t&&(e.expiredLanes|=z),h&=~z}if(t=We,l=Re,l=nn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,l===0||e===t&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&kl(r),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Kn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(r!==null&&kl(r),Nu(l)){case 2:case 8:l=ie;break;case 32:l=ve;break;case 268435456:l=Ue;break;default:l=ve}return r=nm.bind(null,e),l=Jn(l,r),e.callbackPriority=t,e.callbackNode=l,t}return r!==null&&r!==null&&kl(r),e.callbackPriority=2,e.callbackNode=null,2}function nm(e,t){if(xt!==0&&xt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Fr()&&e.callbackNode!==l)return null;var r=Re;return r=nn(e,e===We?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Ud(e,r,t),tm(e,vt()),e.callbackNode!=null&&e.callbackNode===l?nm.bind(null,e):null)}function lm(e,t){if(Fr())return null;Ud(e,t,!0)}function ty(){dy(function(){(Ve&6)!==0?Jn(G,ey):em()})}function po(){if(dl===0){var e=oi;e===0&&(e=Fe,Fe<<=1,(Fe&261888)===0&&(Fe=256)),dl=e}return dl}function im(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Pa(""+e)}function am(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function ny(e,t,l,r,o){if(t==="submit"&&l&&l.stateNode===o){var h=im((o[Rt]||null).action),b=r.submitter;b&&(t=(t=b[Rt]||null)?im(t.formAction):b.getAttribute("formAction"),t!==null&&(h=t,b=null));var z=new lr("action","action",null,r,o);e.push({event:z,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(dl!==0){var T=b?am(o,b):new FormData(o);Ds(l,{pending:!0,data:T,method:o.method,action:h},null,T)}}else typeof h=="function"&&(z.preventDefault(),T=b?am(o,b):new FormData(o),Ds(l,{pending:!0,data:T,method:o.method,action:h},h,T))},currentTarget:o}]})}}for(var go=0;go<$u.length;go++){var xo=$u[go],ly=xo.toLowerCase(),iy=xo[0].toUpperCase()+xo.slice(1);xn(ly,"on"+iy)}xn(Lf,"onAnimationEnd"),xn(Uf,"onAnimationIteration"),xn(Bf,"onAnimationStart"),xn("dblclick","onDoubleClick"),xn("focusin","onFocus"),xn("focusout","onBlur"),xn(vx,"onTransitionRun"),xn(Sx,"onTransitionStart"),xn(zx,"onTransitionCancel"),xn(Hf,"onTransitionEnd"),Kl("onMouseEnter",["mouseout","mouseover"]),Kl("onMouseLeave",["mouseout","mouseover"]),Kl("onPointerEnter",["pointerout","pointerover"]),Kl("onPointerLeave",["pointerout","pointerover"]),wl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wl("onBeforeInput",["compositionend","keypress","textInput","paste"]),wl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wa="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(" "),ay=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wa));function rm(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var r=e[l],o=r.event;r=r.listeners;e:{var h=void 0;if(t)for(var b=r.length-1;0<=b;b--){var z=r[b],T=z.instance,L=z.currentTarget;if(z=z.listener,T!==h&&o.isPropagationStopped())break e;h=z,o.currentTarget=L;try{h(o)}catch(X){rr(X)}o.currentTarget=null,h=T}else for(b=0;b<r.length;b++){if(z=r[b],T=z.instance,L=z.currentTarget,z=z.listener,T!==h&&o.isPropagationStopped())break e;h=z,o.currentTarget=L;try{h(o)}catch(X){rr(X)}o.currentTarget=null,h=T}}}}function Me(e,t){var l=t[ju];l===void 0&&(l=t[ju]=new Set);var r=e+"__bubble";l.has(r)||(um(t,e,2,!1),l.add(r))}function yo(e,t,l){var r=0;t&&(r|=4),um(l,e,r,t)}var Qr="_reactListening"+Math.random().toString(36).slice(2);function bo(e){if(!e[Qr]){e[Qr]=!0,Pc.forEach(function(l){l!=="selectionchange"&&(ay.has(l)||yo(l,!1,e),yo(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qr]||(t[Qr]=!0,yo("selectionchange",!1,t))}}function um(e,t,l,r){switch(Lm(t)){case 2:var o=Oy;break;case 8:o=Dy;break;default:o=Do}l=o.bind(null,t,l,e),o=void 0,!Bu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,l,{capture:!0,passive:o}):e.addEventListener(t,l,!0):o!==void 0?e.addEventListener(t,l,{passive:o}):e.addEventListener(t,l,!1)}function vo(e,t,l,r,o){var h=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 z=r.stateNode.containerInfo;if(z===o)break;if(b===4)for(b=r.return;b!==null;){var T=b.tag;if((T===3||T===4)&&b.stateNode.containerInfo===o)return;b=b.return}for(;z!==null;){if(b=Ql(z),b===null)return;if(T=b.tag,T===5||T===6||T===26||T===27){r=h=b;continue e}z=z.parentNode}}r=r.return}hf(function(){var L=h,X=Lu(l),J=[];e:{var U=qf.get(e);if(U!==void 0){var Y=lr,he=e;switch(e){case"keypress":if(tr(l)===0)break e;case"keydown":case"keyup":Y=Wg;break;case"focusin":he="focus",Y=Vu;break;case"focusout":he="blur",Y=Vu;break;case"beforeblur":case"afterblur":Y=Vu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=pf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=qg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=tx;break;case Lf:case Uf:case Bf:Y=Fg;break;case Hf:Y=lx;break;case"scroll":case"scrollend":Y=Bg;break;case"wheel":Y=ax;break;case"copy":case"cut":case"paste":Y=Gg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=xf;break;case"toggle":case"beforetoggle":Y=ux}var Se=(t&4)!==0,Ie=!Se&&(e==="scroll"||e==="scrollend"),A=Se?U!==null?U+"Capture":null:U;Se=[];for(var N=L,D;N!==null;){var Q=N;if(D=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||D===null||A===null||(Q=Qi(N,A),Q!=null&&Se.push(Ea(N,Q,D))),Ie)break;N=N.return}0<Se.length&&(U=new Y(U,he,null,l,X),J.push({event:U,listeners:Se}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",U&&l!==Ru&&(he=l.relatedTarget||l.fromElement)&&(Ql(he)||he[Gl]))break e;if((Y||U)&&(U=X.window===X?X:(U=X.ownerDocument)?U.defaultView||U.parentWindow:window,Y?(he=l.relatedTarget||l.toElement,Y=L,he=he?Ql(he):null,he!==null&&(Ie=c(he),Se=he.tag,he!==Ie||Se!==5&&Se!==27&&Se!==6)&&(he=null)):(Y=null,he=L),Y!==he)){if(Se=pf,Q="onMouseLeave",A="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(Se=xf,Q="onPointerLeave",A="onPointerEnter",N="pointer"),Ie=Y==null?U:Gi(Y),D=he==null?U:Gi(he),U=new Se(Q,N+"leave",Y,l,X),U.target=Ie,U.relatedTarget=D,Q=null,Ql(X)===L&&(Se=new Se(A,N+"enter",he,l,X),Se.target=D,Se.relatedTarget=Ie,Q=Se),Ie=Q,Y&&he)t:{for(Se=ry,A=Y,N=he,D=0,Q=A;Q;Q=Se(Q))D++;Q=0;for(var ye=N;ye;ye=Se(ye))Q++;for(;0<D-Q;)A=Se(A),D--;for(;0<Q-D;)N=Se(N),Q--;for(;D--;){if(A===N||N!==null&&A===N.alternate){Se=A;break t}A=Se(A),N=Se(N)}Se=null}else Se=null;Y!==null&&sm(J,U,Y,Se,!1),he!==null&&Ie!==null&&sm(J,Ie,he,Se,!0)}}e:{if(U=L?Gi(L):window,Y=U.nodeName&&U.nodeName.toLowerCase(),Y==="select"||Y==="input"&&U.type==="file")var qe=Ef;else if(kf(U))if(Tf)qe=xx;else{qe=px;var pe=mx}else Y=U.nodeName,!Y||Y.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?L&&Du(L.elementType)&&(qe=Ef):qe=gx;if(qe&&(qe=qe(e,L))){wf(J,qe,l,X);break e}pe&&pe(e,U,L),e==="focusout"&&L&&U.type==="number"&&L.memoizedProps.value!=null&&Ou(U,"number",U.value)}switch(pe=L?Gi(L):window,e){case"focusin":(kf(pe)||pe.contentEditable==="true")&&(ti=pe,Ju=L,ea=null);break;case"focusout":ea=Ju=ti=null;break;case"mousedown":Ku=!0;break;case"contextmenu":case"mouseup":case"dragend":Ku=!1,Df(J,l,X);break;case"selectionchange":if(bx)break;case"keydown":case"keyup":Df(J,l,X)}var Ce;if(Xu)e:{switch(e){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else ei?Sf(e,l)&&(Le="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Le="onCompositionStart");Le&&(yf&&l.locale!=="ko"&&(ei||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&ei&&(Ce=df()):($n=X,Hu="value"in $n?$n.value:$n.textContent,ei=!0)),pe=Zr(L,Le),0<pe.length&&(Le=new gf(Le,e,null,l,X),J.push({event:Le,listeners:pe}),Ce?Le.data=Ce:(Ce=zf(l),Ce!==null&&(Le.data=Ce)))),(Ce=ox?cx(e,l):fx(e,l))&&(Le=Zr(L,"onBeforeInput"),0<Le.length&&(pe=new gf("onBeforeInput","beforeinput",null,l,X),J.push({event:pe,listeners:Le}),pe.data=Ce)),ny(J,e,L,l,X)}rm(J,t)})}function Ea(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Zr(e,t){for(var l=t+"Capture",r=[];e!==null;){var o=e,h=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||h===null||(o=Qi(e,l),o!=null&&r.unshift(Ea(e,o,h)),o=Qi(e,t),o!=null&&r.push(Ea(e,o,h))),e.tag===3)return r;e=e.return}return[]}function ry(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function sm(e,t,l,r,o){for(var h=t._reactName,b=[];l!==null&&l!==r;){var z=l,T=z.alternate,L=z.stateNode;if(z=z.tag,T!==null&&T===r)break;z!==5&&z!==26&&z!==27||L===null||(T=L,o?(L=Qi(l,h),L!=null&&b.unshift(Ea(l,L,T))):o||(L=Qi(l,h),L!=null&&b.push(Ea(l,L,T)))),l=l.return}b.length!==0&&e.push({event:t,listeners:b})}var uy=/\r\n?/g,sy=/\u0000|\uFFFD/g;function om(e){return(typeof e=="string"?e:""+e).replace(uy,`
49
+ `).replace(sy,"")}function cm(e,t){return t=om(t),om(e)===t}function Ke(e,t,l,r,o,h){switch(l){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||$l(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&$l(e,""+r);break;case"className":$a(e,"class",r);break;case"tabIndex":$a(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":$a(e,l,r);break;case"style":cf(e,r,h);break;case"data":if(t!=="object"){$a(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(l);break}r=Pa(""+r),e.setAttribute(l,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(l==="formAction"?(t!=="input"&&Ke(e,t,"name",o.name,o,null),Ke(e,t,"formEncType",o.formEncType,o,null),Ke(e,t,"formMethod",o.formMethod,o,null),Ke(e,t,"formTarget",o.formTarget,o,null)):(Ke(e,t,"encType",o.encType,o,null),Ke(e,t,"method",o.method,o,null),Ke(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(l);break}r=Pa(""+r),e.setAttribute(l,r);break;case"onClick":r!=null&&(e.onclick=jn);break;case"onScroll":r!=null&&Me("scroll",e);break;case"onScrollEnd":r!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(u(61));if(l=r.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}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}l=Pa(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(l,""+r):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":r===!0?e.setAttribute(l,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(l,r):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(l,r):e.removeAttribute(l);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(l):e.setAttribute(l,r);break;case"popover":Me("beforetoggle",e),Me("toggle",e),Ia(e,"popover",r);break;case"xlinkActuate":Nn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Nn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Nn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Nn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Nn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Nn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Nn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Nn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Nn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Ia(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Lg.get(l)||l,Ia(e,l,r))}}function So(e,t,l,r,o,h){switch(l){case"style":cf(e,r,h);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(u(61));if(l=r.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof r=="string"?$l(e,r):(typeof r=="number"||typeof r=="bigint")&&$l(e,""+r);break;case"onScroll":r!=null&&Me("scroll",e);break;case"onScrollEnd":r!=null&&Me("scrollend",e);break;case"onClick":r!=null&&(e.onclick=jn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ef.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(o=l.endsWith("Capture"),t=l.slice(2,o?l.length-7:void 0),h=e[Rt]||null,h=h!=null?h[l]:null,typeof h=="function"&&e.removeEventListener(t,h,o),typeof r=="function")){typeof h!="function"&&h!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,r,o);break e}l in e?e[l]=r:r===!0?e.setAttribute(l,""):Ia(e,l,r)}}}function Tt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var r=!1,o=!1,h;for(h in l)if(l.hasOwnProperty(h)){var b=l[h];if(b!=null)switch(h){case"src":r=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ke(e,t,h,b,l,null)}}o&&Ke(e,t,"srcSet",l.srcSet,l,null),r&&Ke(e,t,"src",l.src,l,null);return;case"input":Me("invalid",e);var z=h=b=o=null,T=null,L=null;for(r in l)if(l.hasOwnProperty(r)){var X=l[r];if(X!=null)switch(r){case"name":o=X;break;case"type":b=X;break;case"checked":T=X;break;case"defaultChecked":L=X;break;case"value":h=X;break;case"defaultValue":z=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(u(137,t));break;default:Ke(e,t,r,X,l,null)}}rf(e,h,z,T,L,b,o,!1);return;case"select":Me("invalid",e),r=b=h=null;for(o in l)if(l.hasOwnProperty(o)&&(z=l[o],z!=null))switch(o){case"value":h=z;break;case"defaultValue":b=z;break;case"multiple":r=z;default:Ke(e,t,o,z,l,null)}t=h,l=b,e.multiple=!!r,t!=null?Il(e,!!r,t,!1):l!=null&&Il(e,!!r,l,!0);return;case"textarea":Me("invalid",e),h=o=r=null;for(b in l)if(l.hasOwnProperty(b)&&(z=l[b],z!=null))switch(b){case"value":r=z;break;case"defaultValue":o=z;break;case"children":h=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(u(91));break;default:Ke(e,t,b,z,l,null)}sf(e,r,o,h);return;case"option":for(T in l)if(l.hasOwnProperty(T)&&(r=l[T],r!=null))switch(T){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Ke(e,t,T,r,l,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(r=0;r<wa.length;r++)Me(wa[r],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("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(L in l)if(l.hasOwnProperty(L)&&(r=l[L],r!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ke(e,t,L,r,l,null)}return;default:if(Du(t)){for(X in l)l.hasOwnProperty(X)&&(r=l[X],r!==void 0&&So(e,t,X,r,l,void 0));return}}for(z in l)l.hasOwnProperty(z)&&(r=l[z],r!=null&&Ke(e,t,z,r,l,null))}function oy(e,t,l,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,h=null,b=null,z=null,T=null,L=null,X=null;for(Y in l){var J=l[Y];if(l.hasOwnProperty(Y)&&J!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":T=J;default:r.hasOwnProperty(Y)||Ke(e,t,Y,null,r,J)}}for(var U in r){var Y=r[U];if(J=l[U],r.hasOwnProperty(U)&&(Y!=null||J!=null))switch(U){case"type":h=Y;break;case"name":o=Y;break;case"checked":L=Y;break;case"defaultChecked":X=Y;break;case"value":b=Y;break;case"defaultValue":z=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(u(137,t));break;default:Y!==J&&Ke(e,t,U,Y,r,J)}}_u(e,b,z,T,L,X,h,o);return;case"select":Y=b=z=U=null;for(h in l)if(T=l[h],l.hasOwnProperty(h)&&T!=null)switch(h){case"value":break;case"multiple":Y=T;default:r.hasOwnProperty(h)||Ke(e,t,h,null,r,T)}for(o in r)if(h=r[o],T=l[o],r.hasOwnProperty(o)&&(h!=null||T!=null))switch(o){case"value":U=h;break;case"defaultValue":z=h;break;case"multiple":b=h;default:h!==T&&Ke(e,t,o,h,r,T)}t=z,l=b,r=Y,U!=null?Il(e,!!l,U,!1):!!r!=!!l&&(t!=null?Il(e,!!l,t,!0):Il(e,!!l,l?[]:"",!1));return;case"textarea":Y=U=null;for(z in l)if(o=l[z],l.hasOwnProperty(z)&&o!=null&&!r.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:Ke(e,t,z,null,r,o)}for(b in r)if(o=r[b],h=l[b],r.hasOwnProperty(b)&&(o!=null||h!=null))switch(b){case"value":U=o;break;case"defaultValue":Y=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==h&&Ke(e,t,b,o,r,h)}uf(e,U,Y);return;case"option":for(var he in l)if(U=l[he],l.hasOwnProperty(he)&&U!=null&&!r.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Ke(e,t,he,null,r,U)}for(T in r)if(U=r[T],Y=l[T],r.hasOwnProperty(T)&&U!==Y&&(U!=null||Y!=null))switch(T){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Ke(e,t,T,U,r,Y)}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 Se in l)U=l[Se],l.hasOwnProperty(Se)&&U!=null&&!r.hasOwnProperty(Se)&&Ke(e,t,Se,null,r,U);for(L in r)if(U=r[L],Y=l[L],r.hasOwnProperty(L)&&U!==Y&&(U!=null||Y!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(u(137,t));break;default:Ke(e,t,L,U,r,Y)}return;default:if(Du(t)){for(var Ie in l)U=l[Ie],l.hasOwnProperty(Ie)&&U!==void 0&&!r.hasOwnProperty(Ie)&&So(e,t,Ie,void 0,r,U);for(X in r)U=r[X],Y=l[X],!r.hasOwnProperty(X)||U===Y||U===void 0&&Y===void 0||So(e,t,X,U,r,Y);return}}for(var A in l)U=l[A],l.hasOwnProperty(A)&&U!=null&&!r.hasOwnProperty(A)&&Ke(e,t,A,null,r,U);for(J in r)U=r[J],Y=l[J],!r.hasOwnProperty(J)||U===Y||U==null&&Y==null||Ke(e,t,J,U,r,Y)}function fm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function cy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),r=0;r<l.length;r++){var o=l[r],h=o.transferSize,b=o.initiatorType,z=o.duration;if(h&&z&&fm(b)){for(b=0,z=o.responseEnd,r+=1;r<l.length;r++){var T=l[r],L=T.startTime;if(L>z)break;var X=T.transferSize,J=T.initiatorType;X&&fm(J)&&(T=T.responseEnd,b+=X*(T<z?1:(z-L)/(T-L)))}if(--r,t+=8*(h+b)/(o.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 zo=null,ko=null;function Jr(e){return e.nodeType===9?e:e.ownerDocument}function hm(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 dm(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 wo(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 Eo=null;function fy(){var e=window.event;return e&&e.type==="popstate"?e===Eo?!1:(Eo=e,!0):(Eo=null,!1)}var mm=typeof setTimeout=="function"?setTimeout:void 0,hy=typeof clearTimeout=="function"?clearTimeout:void 0,pm=typeof Promise=="function"?Promise:void 0,dy=typeof queueMicrotask=="function"?queueMicrotask:typeof pm<"u"?function(e){return pm.resolve(null).then(e).catch(my)}:mm;function my(e){setTimeout(function(){throw e})}function ml(e){return e==="head"}function gm(e,t){var l=t,r=0;do{var o=l.nextSibling;if(e.removeChild(l),o&&o.nodeType===8)if(l=o.data,l==="/$"||l==="/&"){if(r===0){e.removeChild(o),Ni(t);return}r--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")r++;else if(l==="html")Ta(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Ta(l);for(var h=l.firstChild;h;){var b=h.nextSibling,z=h.nodeName;h[Xi]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&h.rel.toLowerCase()==="stylesheet"||l.removeChild(h),h=b}}else l==="body"&&Ta(e.ownerDocument.body);l=o}while(l);Ni(t)}function xm(e,t){var l=e;e=0;do{var r=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),r&&r.nodeType===8)if(l=r.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=r}while(l)}function To(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":To(l),Mu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function py(e,t,l,r){for(;e.nodeType===1;){var o=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Xi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var h=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=hn(e.nextSibling),e===null)break}return null}function gy(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=hn(e.nextSibling),e===null))return null;return e}function ym(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=hn(e.nextSibling),e===null))return null;return e}function Co(e){return e.data==="$?"||e.data==="$~"}function No(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function xy(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var r=function(){t(),l.removeEventListener("DOMContentLoaded",r)};l.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function hn(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 jo=null;function bm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return hn(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function vm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Sm(e,t,l){switch(t=Jr(l),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Ta(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Mu(e)}var dn=new Map,zm=new Set;function Kr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Gn=K.d;K.d={f:yy,r:by,D:vy,C:Sy,L:zy,m:ky,X:Ey,S:wy,M:Ty};function yy(){var e=Gn.f(),t=qr();return e||t}function by(e){var t=Zl(e);t!==null&&t.tag===5&&t.type==="form"?Hh(t):Gn.r(e)}var Ei=typeof document>"u"?null:document;function km(e,t,l){var r=Ei;if(r&&typeof t=="string"&&t){var o=an(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),zm.has(o)||(zm.add(o),e={rel:e,crossOrigin:l,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),Tt(t,"link",e),yt(t),r.head.appendChild(t)))}}function vy(e){Gn.D(e),km("dns-prefetch",e,null)}function Sy(e,t){Gn.C(e,t),km("preconnect",e,t)}function zy(e,t,l){Gn.L(e,t,l);var r=Ei;if(r&&e&&t){var o='link[rel="preload"][as="'+an(t)+'"]';t==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+an(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+an(l.imageSizes)+'"]')):o+='[href="'+an(e)+'"]';var h=o;switch(t){case"style":h=Ti(e);break;case"script":h=Ci(e)}dn.has(h)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),dn.set(h,e),r.querySelector(o)!==null||t==="style"&&r.querySelector(Ca(h))||t==="script"&&r.querySelector(Na(h))||(t=r.createElement("link"),Tt(t,"link",e),yt(t),r.head.appendChild(t)))}}function ky(e,t){Gn.m(e,t);var l=Ei;if(l&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+an(r)+'"][href="'+an(e)+'"]',h=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Ci(e)}if(!dn.has(h)&&(e=y({rel:"modulepreload",href:e},t),dn.set(h,e),l.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Na(h)))return}r=l.createElement("link"),Tt(r,"link",e),yt(r),l.head.appendChild(r)}}}function wy(e,t,l){Gn.S(e,t,l);var r=Ei;if(r&&e){var o=Jl(r).hoistableStyles,h=Ti(e);t=t||"default";var b=o.get(h);if(!b){var z={loading:0,preload:null};if(b=r.querySelector(Ca(h)))z.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=dn.get(h))&&Mo(e,l);var T=b=r.createElement("link");yt(T),Tt(T,"link",e),T._p=new Promise(function(L,X){T.onload=L,T.onerror=X}),T.addEventListener("load",function(){z.loading|=1}),T.addEventListener("error",function(){z.loading|=2}),z.loading|=4,Ir(b,t,r)}b={type:"stylesheet",instance:b,count:1,state:z},o.set(h,b)}}}function Ey(e,t){Gn.X(e,t);var l=Ei;if(l&&e){var r=Jl(l).hoistableScripts,o=Ci(e),h=r.get(o);h||(h=l.querySelector(Na(o)),h||(e=y({src:e,async:!0},t),(t=dn.get(o))&&Ao(e,t),h=l.createElement("script"),yt(h),Tt(h,"link",e),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},r.set(o,h))}}function Ty(e,t){Gn.M(e,t);var l=Ei;if(l&&e){var r=Jl(l).hoistableScripts,o=Ci(e),h=r.get(o);h||(h=l.querySelector(Na(o)),h||(e=y({src:e,async:!0,type:"module"},t),(t=dn.get(o))&&Ao(e,t),h=l.createElement("script"),yt(h),Tt(h,"link",e),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},r.set(o,h))}}function wm(e,t,l,r){var o=(o=xe.current)?Kr(o):null;if(!o)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ti(l.href),l=Jl(o).hoistableStyles,r=l.get(t),r||(r={type:"style",instance:null,count:0,state:null},l.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ti(l.href);var h=Jl(o).hoistableStyles,b=h.get(e);if(b||(o=o.ownerDocument||o,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,b),(h=o.querySelector(Ca(e)))&&!h._p&&(b.instance=h,b.state.loading=5),dn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},dn.set(e,l),h||Cy(o,e,l,b.state))),t&&r===null)throw Error(u(528,""));return b}if(t&&r!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ci(l),l=Jl(o).hoistableScripts,r=l.get(t),r||(r={type:"script",instance:null,count:0,state:null},l.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Ti(e){return'href="'+an(e)+'"'}function Ca(e){return'link[rel="stylesheet"]['+e+"]"}function Em(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Cy(e,t,l,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}),Tt(t,"link",l),yt(t),e.head.appendChild(t))}function Ci(e){return'[src="'+an(e)+'"]'}function Na(e){return"script[async]"+e}function Tm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+an(l.href)+'"]');if(r)return t.instance=r,yt(r),r;var o=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),yt(r),Tt(r,"style",o),Ir(r,l.precedence,e),t.instance=r;case"stylesheet":o=Ti(l.href);var h=e.querySelector(Ca(o));if(h)return t.state.loading|=4,t.instance=h,yt(h),h;r=Em(l),(o=dn.get(o))&&Mo(r,o),h=(e.ownerDocument||e).createElement("link"),yt(h);var b=h;return b._p=new Promise(function(z,T){b.onload=z,b.onerror=T}),Tt(h,"link",r),t.state.loading|=4,Ir(h,l.precedence,e),t.instance=h;case"script":return h=Ci(l.src),(o=e.querySelector(Na(h)))?(t.instance=o,yt(o),o):(r=l,(o=dn.get(h))&&(r=y({},l),Ao(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),yt(o),Tt(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Ir(r,l.precedence,e));return t.instance}function Ir(e,t,l){for(var r=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,h=o,b=0;b<r.length;b++){var z=r[b];if(z.dataset.precedence===t)h=z;else if(h!==o)break}h?h.parentNode.insertBefore(e,h.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Mo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ao(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $r=null;function Cm(e,t,l){if($r===null){var r=new Map,o=$r=new Map;o.set(l,r)}else o=$r,r=o.get(l),r||(r=new Map,o.set(l,r));if(r.has(e))return r;for(r.set(e,null),l=l.getElementsByTagName(e),o=0;o<l.length;o++){var h=l[o];if(!(h[Xi]||h[zt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var b=h.getAttribute(t)||"";b=e+b;var z=r.get(b);z?z.push(h):r.set(b,[h])}}return r}function Nm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Ny(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function jm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function jy(e,t,l,r){if(l.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var o=Ti(r.href),h=t.querySelector(Ca(o));if(h){t=h._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Wr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=h,yt(h);return}h=t.ownerDocument||t,r=Em(r),(o=dn.get(o))&&Mo(r,o),h=h.createElement("link"),yt(h);var b=h;b._p=new Promise(function(z,T){b.onload=z,b.onerror=T}),Tt(h,"link",r),l.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Wr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var _o=0;function My(e,t){return e.stylesheets&&e.count===0&&eu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var r=setTimeout(function(){if(e.stylesheets&&eu(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+t);0<e.imgBytes&&_o===0&&(_o=62500*cy());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&eu(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>_o?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function Wr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)eu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Pr=null;function eu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Pr=new Map,t.forEach(Ay,e),Pr=null,Wr.call(e))}function Ay(e,t){if(!(t.state.loading&4)){var l=Pr.get(e);if(l)var r=l.get(null);else{l=new Map,Pr.set(e,l);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<o.length;h++){var b=o[h];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(l.set(b.dataset.precedence,b),r=b)}r&&l.set(null,r)}o=t.instance,b=o.getAttribute("data-precedence"),h=l.get(b)||r,h===r&&l.set(null,o),l.set(b,o),this.count++,r=Wr.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),h?h.parentNode.insertBefore(o,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var ja={$$typeof:H,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function _y(e,t,l,r,o,h,b,z,T){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=Tu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tu(0),this.hiddenUpdates=Tu(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Mm(e,t,l,r,o,h,b,z,T,L,X,J){return e=new _y(e,t,l,b,T,L,X,J,z),t=1,h===!0&&(t|=24),h=Zt(3,null,null,t),e.current=h,h.stateNode=e,t=cs(),t.refCount++,e.pooledCache=t,t.refCount++,h.memoizedState={element:r,isDehydrated:l,cache:t},ms(h),e}function Am(e){return e?(e=ii,e):ii}function _m(e,t,l,r,o,h){o=Am(o),r.context===null?r.context=o:r.pendingContext=o,r=ll(t),r.payload={element:l},h=h===void 0?null:h,h!==null&&(r.callback=h),l=il(e,r,t),l!==null&&(Yt(l,e,t),ua(l,e,t))}function Om(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Oo(e,t){Om(e,t),(e=e.alternate)&&Om(e,t)}function Dm(e){if(e.tag===13||e.tag===31){var t=Nl(e,67108864);t!==null&&Yt(t,e,67108864),Oo(e,67108864)}}function Rm(e){if(e.tag===13||e.tag===31){var t=Wt();t=Cu(t);var l=Nl(e,t);l!==null&&Yt(l,e,t),Oo(e,t)}}var tu=!0;function Oy(e,t,l,r){var o=R.T;R.T=null;var h=K.p;try{K.p=2,Do(e,t,l,r)}finally{K.p=h,R.T=o}}function Dy(e,t,l,r){var o=R.T;R.T=null;var h=K.p;try{K.p=8,Do(e,t,l,r)}finally{K.p=h,R.T=o}}function Do(e,t,l,r){if(tu){var o=Ro(r);if(o===null)vo(e,t,r,nu,l),Um(e,r);else if(Ly(o,e,t,l,r))r.stopPropagation();else if(Um(e,r),t&4&&-1<Ry.indexOf(e)){for(;o!==null;){var h=Zl(o);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=ft(h.pendingLanes);if(b!==0){var z=h;for(z.pendingLanes|=2,z.entangledLanes|=2;b;){var T=1<<31-Ge(b);z.entanglements[1]|=T,b&=~T}wn(h),(Ve&6)===0&&(Br=vt()+500,ka(0))}}break;case 31:case 13:z=Nl(h,2),z!==null&&Yt(z,h,2),qr(),Oo(h,2)}if(h=Ro(r),h===null&&vo(e,t,r,nu,l),h===o)break;o=h}o!==null&&r.stopPropagation()}else vo(e,t,r,null,l)}}function Ro(e){return e=Lu(e),Lo(e)}var nu=null;function Lo(e){if(nu=null,e=Ql(e),e!==null){var t=c(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=f(t),e!==null)return e;e=null}else if(l===31){if(e=d(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return nu=e,null}function Lm(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(Vi()){case G:return 2;case ie:return 8;case ve:case Ee:return 32;case Ue:return 268435456;default:return 32}default:return 32}}var Uo=!1,pl=null,gl=null,xl=null,Ma=new Map,Aa=new Map,yl=[],Ry="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 Um(e,t){switch(e){case"focusin":case"focusout":pl=null;break;case"dragenter":case"dragleave":gl=null;break;case"mouseover":case"mouseout":xl=null;break;case"pointerover":case"pointerout":Ma.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Aa.delete(t.pointerId)}}function _a(e,t,l,r,o,h){return e===null||e.nativeEvent!==h?(e={blockedOn:t,domEventName:l,eventSystemFlags:r,nativeEvent:h,targetContainers:[o]},t!==null&&(t=Zl(t),t!==null&&Dm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Ly(e,t,l,r,o){switch(t){case"focusin":return pl=_a(pl,e,t,l,r,o),!0;case"dragenter":return gl=_a(gl,e,t,l,r,o),!0;case"mouseover":return xl=_a(xl,e,t,l,r,o),!0;case"pointerover":var h=o.pointerId;return Ma.set(h,_a(Ma.get(h)||null,e,t,l,r,o)),!0;case"gotpointercapture":return h=o.pointerId,Aa.set(h,_a(Aa.get(h)||null,e,t,l,r,o)),!0}return!1}function Bm(e){var t=Ql(e.target);if(t!==null){var l=c(t);if(l!==null){if(t=l.tag,t===13){if(t=f(l),t!==null){e.blockedOn=t,$c(e.priority,function(){Rm(l)});return}}else if(t===31){if(t=d(l),t!==null){e.blockedOn=t,$c(e.priority,function(){Rm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function lu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Ro(e.nativeEvent);if(l===null){l=e.nativeEvent;var r=new l.constructor(l.type,l);Ru=r,l.target.dispatchEvent(r),Ru=null}else return t=Zl(l),t!==null&&Dm(t),e.blockedOn=l,!1;t.shift()}return!0}function Hm(e,t,l){lu(e)&&l.delete(t)}function Uy(){Uo=!1,pl!==null&&lu(pl)&&(pl=null),gl!==null&&lu(gl)&&(gl=null),xl!==null&&lu(xl)&&(xl=null),Ma.forEach(Hm),Aa.forEach(Hm)}function iu(e,t){e.blockedOn===t&&(e.blockedOn=null,Uo||(Uo=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Uy)))}var au=null;function qm(e){au!==e&&(au=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){au===e&&(au=null);for(var t=0;t<e.length;t+=3){var l=e[t],r=e[t+1],o=e[t+2];if(typeof r!="function"){if(Lo(r||l)===null)continue;break}var h=Zl(l);h!==null&&(e.splice(t,3),t-=3,Ds(h,{pending:!0,data:o,method:l.method,action:r},r,o))}}))}function Ni(e){function t(T){return iu(T,e)}pl!==null&&iu(pl,e),gl!==null&&iu(gl,e),xl!==null&&iu(xl,e),Ma.forEach(t),Aa.forEach(t);for(var l=0;l<yl.length;l++){var r=yl[l];r.blockedOn===e&&(r.blockedOn=null)}for(;0<yl.length&&(l=yl[0],l.blockedOn===null);)Bm(l),l.blockedOn===null&&yl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(r=0;r<l.length;r+=3){var o=l[r],h=l[r+1],b=o[Rt]||null;if(typeof h=="function")b||qm(l);else if(b){var z=null;if(h&&h.hasAttribute("formAction")){if(o=h,b=h[Rt]||null)z=b.formAction;else if(Lo(o)!==null)continue}else z=b.action;typeof z=="function"?l[r+1]=z:(l.splice(r,3),r-=3),qm(l)}}}function Ym(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(b){return o=b})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),r||setTimeout(l,20)}function l(){if(!r&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Bo(e){this._internalRoot=e}ru.prototype.render=Bo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,r=Wt();_m(l,r,e,t,null,null)},ru.prototype.unmount=Bo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_m(e.current,2,null,e,null,null),qr(),t[Gl]=null}};function ru(e){this._internalRoot=e}ru.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ic();e={blockedOn:null,target:e,priority:t};for(var l=0;l<yl.length&&t!==0&&t<yl[l].priority;l++);yl.splice(l,0,e),l===0&&Bm(e)}};var Vm=a.version;if(Vm!=="19.2.4")throw Error(u(527,Vm,"19.2.4"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=m(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var By={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uu.isDisabled&&uu.supportsFiber)try{St=uu.inject(By),st=uu}catch{}}return Da.createRoot=function(e,t){if(!s(e))throw Error(u(299));var l=!1,r="",o=Kh,h=Ih,b=$h;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(h=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=Mm(e,1,!1,null,null,l,r,null,o,h,b,Ym),e[Gl]=t.current,bo(e),new Bo(t)},Da.hydrateRoot=function(e,t,l){if(!s(e))throw Error(u(299));var r=!1,o="",h=Kh,b=Ih,z=$h,T=null;return l!=null&&(l.unstable_strictMode===!0&&(r=!0),l.identifierPrefix!==void 0&&(o=l.identifierPrefix),l.onUncaughtError!==void 0&&(h=l.onUncaughtError),l.onCaughtError!==void 0&&(b=l.onCaughtError),l.onRecoverableError!==void 0&&(z=l.onRecoverableError),l.formState!==void 0&&(T=l.formState)),t=Mm(e,1,!0,t,l??null,r,o,T,h,b,z,Ym),t.context=Am(null),l=t.current,r=Wt(),r=Cu(r),o=ll(r),o.callback=null,il(l,o,r),l=r,t.current.lanes=l,Fi(t,l),wn(t),e[Gl]=t.current,bo(e),new ru(t)},Da.version="19.2.4",Da}var Wm;function Zy(){if(Wm)return Yo.exports;Wm=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(a){console.error(a)}}return n(),Yo.exports=Qy(),Yo.exports}var Jy=Zy();/**
50
+ * @license lucide-react v0.562.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const Ky=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Iy=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,u)=>u?u.toUpperCase():i.toLowerCase()),Pm=n=>{const a=Iy(n);return a.charAt(0).toUpperCase()+a.slice(1)},i0=(...n)=>n.filter((a,i,u)=>!!a&&a.trim()!==""&&u.indexOf(a)===i).join(" ").trim(),$y=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
55
+ * @license lucide-react v0.562.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */var Wy={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"};/**
60
+ * @license lucide-react v0.562.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const Py=V.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:s="",children:c,iconNode:f,...d},p)=>V.createElement("svg",{ref:p,...Wy,width:a,height:a,stroke:n,strokeWidth:u?Number(i)*24/Number(a):i,className:i0("lucide",s),...!c&&!$y(d)&&{"aria-hidden":"true"},...d},[...f.map(([m,x])=>V.createElement(m,x)),...Array.isArray(c)?c:[c]]));/**
65
+ * @license lucide-react v0.562.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const _e=(n,a)=>{const i=V.forwardRef(({className:u,...s},c)=>V.createElement(Py,{ref:c,iconNode:a,className:i0(`lucide-${Ky(Pm(n))}`,`lucide-${n}`,u),...s}));return i.displayName=Pm(n),i};/**
70
+ * @license lucide-react v0.562.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const e1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],t1=_e("arrow-right",e1);/**
75
+ * @license lucide-react v0.562.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const n1=[["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"}]],a0=_e("bot",n1);/**
80
+ * @license lucide-react v0.562.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const l1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Sl=_e("check",l1);/**
85
+ * @license lucide-react v0.562.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const i1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],a1=_e("chevron-down",i1);/**
90
+ * @license lucide-react v0.562.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const r1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],r0=_e("circle-check",r1);/**
95
+ * @license lucide-react v0.562.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const u1=[["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"}]],s1=_e("circle-question-mark",u1);/**
100
+ * @license lucide-react v0.562.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const o1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],c1=_e("circle",o1);/**
105
+ * @license lucide-react v0.562.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const f1=[["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"}]],pu=_e("copy",f1);/**
110
+ * @license lucide-react v0.562.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const h1=[["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"}]],d1=_e("database",h1);/**
115
+ * @license lucide-react v0.562.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const m1=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Ec=_e("download",m1);/**
120
+ * @license lucide-react v0.562.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const p1=[["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 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],u0=_e("file-code",p1);/**
125
+ * @license lucide-react v0.562.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const g1=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],x1=_e("file-pen",g1);/**
130
+ * @license lucide-react v0.562.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const y1=[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]],s0=_e("file-plus-corner",y1);/**
135
+ * @license lucide-react v0.562.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const b1=[["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"}]],Tc=_e("file-text",b1);/**
140
+ * @license lucide-react v0.562.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const v1=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Cc=_e("folder-open",v1);/**
145
+ * @license lucide-react v0.562.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const S1=[["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"}]],z1=_e("git-branch",S1);/**
150
+ * @license lucide-react v0.562.0 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const k1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],w1=_e("globe",k1);/**
155
+ * @license lucide-react v0.562.0 - ISC
156
+ *
157
+ * This source code is licensed under the ISC license.
158
+ * See the LICENSE file in the root directory of this source tree.
159
+ */const E1=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["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"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],T1=_e("hard-drive",E1);/**
160
+ * @license lucide-react v0.562.0 - ISC
161
+ *
162
+ * This source code is licensed under the ISC license.
163
+ * See the LICENSE file in the root directory of this source tree.
164
+ */const C1=[["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"}]],N1=_e("lightbulb",C1);/**
165
+ * @license lucide-react v0.562.0 - ISC
166
+ *
167
+ * This source code is licensed under the ISC license.
168
+ * See the LICENSE file in the root directory of this source tree.
169
+ */const j1=[["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"}]],o0=_e("list-todo",j1);/**
170
+ * @license lucide-react v0.562.0 - ISC
171
+ *
172
+ * This source code is licensed under the ISC license.
173
+ * See the LICENSE file in the root directory of this source tree.
174
+ */const M1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],c0=_e("loader-circle",M1);/**
175
+ * @license lucide-react v0.562.0 - ISC
176
+ *
177
+ * This source code is licensed under the ISC license.
178
+ * See the LICENSE file in the root directory of this source tree.
179
+ */const A1=[["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"}]],_1=_e("message-square",A1);/**
180
+ * @license lucide-react v0.562.0 - ISC
181
+ *
182
+ * This source code is licensed under the ISC license.
183
+ * See the LICENSE file in the root directory of this source tree.
184
+ */const O1=[["path",{d:"M5 12h14",key:"1ays0h"}]],D1=_e("minus",O1);/**
185
+ * @license lucide-react v0.562.0 - ISC
186
+ *
187
+ * This source code is licensed under the ISC license.
188
+ * See the LICENSE file in the root directory of this source tree.
189
+ */const R1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],L1=_e("panel-left",R1);/**
190
+ * @license lucide-react v0.562.0 - ISC
191
+ *
192
+ * This source code is licensed under the ISC license.
193
+ * See the LICENSE file in the root directory of this source tree.
194
+ */const U1=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],B1=_e("pause",U1);/**
195
+ * @license lucide-react v0.562.0 - ISC
196
+ *
197
+ * This source code is licensed under the ISC license.
198
+ * See the LICENSE file in the root directory of this source tree.
199
+ */const H1=[["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"}]],q1=_e("pencil",H1);/**
200
+ * @license lucide-react v0.562.0 - ISC
201
+ *
202
+ * This source code is licensed under the ISC license.
203
+ * See the LICENSE file in the root directory of this source tree.
204
+ */const Y1=[["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"}]],f0=_e("play",Y1);/**
205
+ * @license lucide-react v0.562.0 - ISC
206
+ *
207
+ * This source code is licensed under the ISC license.
208
+ * See the LICENSE file in the root directory of this source tree.
209
+ */const V1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],F1=_e("plus",V1);/**
210
+ * @license lucide-react v0.562.0 - ISC
211
+ *
212
+ * This source code is licensed under the ISC license.
213
+ * See the LICENSE file in the root directory of this source tree.
214
+ */const X1=[["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"}]],G1=_e("refresh-cw",X1);/**
215
+ * @license lucide-react v0.562.0 - ISC
216
+ *
217
+ * This source code is licensed under the ISC license.
218
+ * See the LICENSE file in the root directory of this source tree.
219
+ */const Q1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Va=_e("search",Q1);/**
220
+ * @license lucide-react v0.562.0 - ISC
221
+ *
222
+ * This source code is licensed under the ISC license.
223
+ * See the LICENSE file in the root directory of this source tree.
224
+ */const Z1=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],fc=_e("square-check-big",Z1);/**
225
+ * @license lucide-react v0.562.0 - ISC
226
+ *
227
+ * This source code is licensed under the ISC license.
228
+ * See the LICENSE file in the root directory of this source tree.
229
+ */const J1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],h0=_e("square",J1);/**
230
+ * @license lucide-react v0.562.0 - ISC
231
+ *
232
+ * This source code is licensed under the ISC license.
233
+ * See the LICENSE file in the root directory of this source tree.
234
+ */const K1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],d0=_e("terminal",K1);/**
235
+ * @license lucide-react v0.562.0 - ISC
236
+ *
237
+ * This source code is licensed under the ISC license.
238
+ * See the LICENSE file in the root directory of this source tree.
239
+ */const I1=[["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"}]],$1=_e("trash-2",I1);/**
240
+ * @license lucide-react v0.562.0 - ISC
241
+ *
242
+ * This source code is licensed under the ISC license.
243
+ * See the LICENSE file in the root directory of this source tree.
244
+ */const W1=[["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"}]],P1=_e("triangle-alert",W1);/**
245
+ * @license lucide-react v0.562.0 - ISC
246
+ *
247
+ * This source code is licensed under the ISC license.
248
+ * See the LICENSE file in the root directory of this source tree.
249
+ */const eb=[["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"}]],tb=_e("wrench",eb);/**
250
+ * @license lucide-react v0.562.0 - ISC
251
+ *
252
+ * This source code is licensed under the ISC license.
253
+ * See the LICENSE file in the root directory of this source tree.
254
+ */const nb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vu=_e("x",nb);function m0(n){const a=new Date(n),u=new Date().getTime()-a.getTime(),s=Math.floor(u/6e4),c=Math.floor(u/36e5),f=Math.floor(u/864e5);return s<1?"Just now":s<60?`${s}m`:c<24?`${c}h`:f<7?`${f}d`:a.toLocaleDateString()}function ep(n){if(!Number.isFinite(n))return"";const a=new Date(n),i=new Date,s=a.getFullYear()===i.getFullYear()?{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit"};return new Intl.DateTimeFormat(void 0,s).format(a)}function Nc(n){return n?n.replace(/^\/Users\/[^/]+/,"~").replace(/^\/home\/[^/]+/,"~"):""}function p0(n){if(n==null||!Number.isFinite(n))return"—";if(n<1024)return`${n} B`;const a=["KB","MB","GB","TB"];let i=n/1024,u=0;for(;i>=1024&&u<a.length-1;)i/=1024,u+=1;return`${i<10?i.toFixed(1):i.toFixed(0)} ${a[u]}`}function g0(n){if(n==null||!Number.isFinite(n))return"—";const a=Math.max(0,Math.round(n/1e3));if(a<60)return`${a}s`;const i=Math.floor(a/60),u=a%60;if(i<60)return`${i}m ${u}s`;const s=Math.floor(i/60),c=i%60;if(s<24)return`${s}h ${c}m`;const f=Math.floor(s/24),d=s%24;return`${f}d ${d}h`}const lb=[/<command-name>[^<]*<\/command-name>/g,/<command-message>[^<]*<\/command-message>/g,/<command-args>[^<]*<\/command-args>/g,/<local-command-stdout>[^<]*<\/local-command-stdout>/g,/<system-reminder>[\s\S]*?<\/system-reminder>/g,/^\s*Caveat:.*?unless the user explicitly asks you to\./s];function Ft(n){if(!n)return"";let a=n;for(const i of lb)a=a.replace(i,"");return a.trim()}var ib=l0();function ji(n,a,i){let u=i.initialDeps??[],s,c=!0;function f(){var d,p,m;let x;i.key&&((d=i.debug)!=null&&d.call(i))&&(x=Date.now());const y=n();if(!(y.length!==u.length||y.some((w,j)=>u[j]!==w)))return s;u=y;let v;if(i.key&&((p=i.debug)!=null&&p.call(i))&&(v=Date.now()),s=a(...y),i.key&&((m=i.debug)!=null&&m.call(i))){const w=Math.round((Date.now()-x)*100)/100,j=Math.round((Date.now()-v)*100)/100,_=j/16,M=(q,H)=>{for(q=String(q);q.length<H;)q=" "+q;return q};console.info(`%c⏱ ${M(j,5)} /${M(w,5)} ms`,`
255
+ font-size: .6rem;
256
+ font-weight: bold;
257
+ color: hsl(${Math.max(0,Math.min(120-120*_,120))}deg 100% 31%);`,i==null?void 0:i.key)}return i!=null&&i.onChange&&!(c&&i.skipInitialOnChange)&&i.onChange(s),c=!1,s}return f.updateDeps=d=>{u=d},f}function tp(n,a){if(n===void 0)throw new Error("Unexpected undefined");return n}const ab=(n,a)=>Math.abs(n-a)<1.01,rb=(n,a,i)=>{let u;return function(...s){n.clearTimeout(u),u=n.setTimeout(()=>a.apply(this,s),i)}},np=n=>{const{offsetWidth:a,offsetHeight:i}=n;return{width:a,height:i}},ub=n=>n,sb=n=>{const a=Math.max(n.startIndex-n.overscan,0),i=Math.min(n.endIndex+n.overscan,n.count-1),u=[];for(let s=a;s<=i;s++)u.push(s);return u},ob=(n,a)=>{const i=n.scrollElement;if(!i)return;const u=n.targetWindow;if(!u)return;const s=f=>{const{width:d,height:p}=f;a({width:Math.round(d),height:Math.round(p)})};if(s(np(i)),!u.ResizeObserver)return()=>{};const c=new u.ResizeObserver(f=>{const d=()=>{const p=f[0];if(p!=null&&p.borderBoxSize){const m=p.borderBoxSize[0];if(m){s({width:m.inlineSize,height:m.blockSize});return}}s(np(i))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()});return c.observe(i,{box:"border-box"}),()=>{c.unobserve(i)}},lp={passive:!0},ip=typeof window>"u"?!0:"onscrollend"in window,cb=(n,a)=>{const i=n.scrollElement;if(!i)return;const u=n.targetWindow;if(!u)return;let s=0;const c=n.options.useScrollendEvent&&ip?()=>{}:rb(u,()=>{a(s,!1)},n.options.isScrollingResetDelay),f=x=>()=>{const{horizontal:y,isRtl:S}=n.options;s=y?i.scrollLeft*(S&&-1||1):i.scrollTop,c(),a(s,x)},d=f(!0),p=f(!1);i.addEventListener("scroll",d,lp);const m=n.options.useScrollendEvent&&ip;return m&&i.addEventListener("scrollend",p,lp),()=>{i.removeEventListener("scroll",d),m&&i.removeEventListener("scrollend",p)}},fb=(n,a,i)=>{if(a!=null&&a.borderBoxSize){const u=a.borderBoxSize[0];if(u)return Math.round(u[i.options.horizontal?"inlineSize":"blockSize"])}return n[i.options.horizontal?"offsetWidth":"offsetHeight"]},hb=(n,{adjustments:a=0,behavior:i},u)=>{var s,c;const f=n+a;(c=(s=u.scrollElement)==null?void 0:s.scrollTo)==null||c.call(s,{[u.options.horizontal?"left":"top"]:f,behavior:i})};class db{constructor(a){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let i=null;const u=()=>i||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:i=new this.targetWindow.ResizeObserver(s=>{s.forEach(c=>{const f=()=>{this._measureElement(c.target,c)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()})}));return{disconnect:()=>{var s;(s=u())==null||s.disconnect(),i=null},observe:s=>{var c;return(c=u())==null?void 0:c.observe(s,{box:"border-box"})},unobserve:s=>{var c;return(c=u())==null?void 0:c.unobserve(s)}}})(),this.range=null,this.setOptions=i=>{Object.entries(i).forEach(([u,s])=>{typeof s>"u"&&delete i[u]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:ub,rangeExtractor:sb,onChange:()=>{},measureElement:fb,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...i}},this.notify=i=>{var u,s;(s=(u=this.options).onChange)==null||s.call(u,this,i)},this.maybeNotify=ji(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),i=>{this.notify(i)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(i=>i()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;const u=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==u){if(this.cleanup(),!u){this.maybeNotify();return}this.scrollElement=u,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((i=this.scrollElement)==null?void 0:i.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=c,this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(i,u)=>{const s=new Map,c=new Map;for(let f=u-1;f>=0;f--){const d=i[f];if(s.has(d.lane))continue;const p=c.get(d.lane);if(p==null||d.end>p.end?c.set(d.lane,d):d.end<p.end&&s.set(d.lane,!0),s.size===this.options.lanes)break}return c.size===this.options.lanes?Array.from(c.values()).sort((f,d)=>f.end===d.end?f.index-d.index:f.end-d.end)[0]:void 0},this.getMeasurementOptions=ji(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(i,u,s,c,f,d)=>(this.prevLanes!==void 0&&this.prevLanes!==d&&(this.lanesChangedFlag=!0),this.prevLanes=d,this.pendingMeasuredCacheIndexes=[],{count:i,paddingStart:u,scrollMargin:s,getItemKey:c,enabled:f,lanes:d}),{key:!1}),this.getMeasurements=ji(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:i,paddingStart:u,scrollMargin:s,getItemKey:c,enabled:f,lanes:d},p)=>{if(!f)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>i)for(const S of this.laneAssignments.keys())S>=i&&this.laneAssignments.delete(S);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(S=>{this.itemSizeCache.set(S.key,S.size)}));const m=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===i&&(this.lanesSettling=!1);const x=this.measurementsCache.slice(0,m),y=new Array(d).fill(void 0);for(let S=0;S<m;S++){const v=x[S];v&&(y[v.lane]=S)}for(let S=m;S<i;S++){const v=c(S),w=this.laneAssignments.get(S);let j,_;if(w!==void 0&&this.options.lanes>1){j=w;const I=y[j],P=I!==void 0?x[I]:void 0;_=P?P.end+this.options.gap:u+s}else{const I=this.options.lanes===1?x[S-1]:this.getFurthestMeasurement(x,S);_=I?I.end+this.options.gap:u+s,j=I?I.lane:S%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(S,j)}const M=p.get(v),q=typeof M=="number"?M:this.options.estimateSize(S),H=_+q;x[S]={index:S,start:_,size:q,end:H,key:v,lane:j},y[j]=S}return this.measurementsCache=x,x},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ji(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,u,s,c)=>this.range=i.length>0&&u>0?mb({measurements:i,outerSize:u,scrollOffset:s,lanes:c}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=ji(()=>{let i=null,u=null;const s=this.calculateRange();return s&&(i=s.startIndex,u=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,i,u]),[this.options.rangeExtractor,this.options.overscan,this.options.count,i,u]},(i,u,s,c,f)=>c===null||f===null?[]:i({startIndex:c,endIndex:f,overscan:u,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=i=>{const u=this.options.indexAttribute,s=i.getAttribute(u);return s?parseInt(s,10):(console.warn(`Missing attribute name '${u}={index}' on measured element.`),-1)},this._measureElement=(i,u)=>{const s=this.indexFromElement(i),c=this.measurementsCache[s];if(!c)return;const f=c.key,d=this.elementsCache.get(f);d!==i&&(d&&this.observer.unobserve(d),this.observer.observe(i),this.elementsCache.set(f,i)),i.isConnected&&this.resizeItem(s,this.options.measureElement(i,u,this))},this.resizeItem=(i,u)=>{const s=this.measurementsCache[i];if(!s)return;const c=this.itemSizeCache.get(s.key)??s.size,f=u-c;f!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,f,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=f,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,u)),this.notify(!1))},this.measureElement=i=>{if(!i){this.elementsCache.forEach((u,s)=>{u.isConnected||(this.observer.unobserve(u),this.elementsCache.delete(s))});return}this._measureElement(i,void 0)},this.getVirtualItems=ji(()=>[this.getVirtualIndexes(),this.getMeasurements()],(i,u)=>{const s=[];for(let c=0,f=i.length;c<f;c++){const d=i[c],p=u[d];s.push(p)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=i=>{const u=this.getMeasurements();if(u.length!==0)return tp(u[x0(0,u.length-1,s=>tp(u[s]).start,i)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const i=this.scrollElement.document.documentElement;return this.options.horizontal?i.scrollWidth-this.scrollElement.innerWidth:i.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(i,u,s=0)=>{if(!this.scrollElement)return 0;const c=this.getSize(),f=this.getScrollOffset();u==="auto"&&(u=i>=f+c?"end":"start"),u==="center"?i+=(s-c)/2:u==="end"&&(i-=c);const d=this.getMaxScrollOffset();return Math.max(Math.min(d,i),0)},this.getOffsetForIndex=(i,u="auto")=>{i=Math.max(0,Math.min(i,this.options.count-1));const s=this.measurementsCache[i];if(!s)return;const c=this.getSize(),f=this.getScrollOffset();if(u==="auto")if(s.end>=f+c-this.options.scrollPaddingEnd)u="end";else if(s.start<=f+this.options.scrollPaddingStart)u="start";else return[f,u];if(u==="end"&&i===this.options.count-1)return[this.getMaxScrollOffset(),u];const d=u==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(d,u,s.size),u]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(i,{align:u="start",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(i,u),{adjustments:void 0,behavior:s})},this.scrollToIndex=(i,{align:u="auto",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),i=Math.max(0,Math.min(i,this.options.count-1)),this.currentScrollToIndex=i;let c=0;const f=10,d=m=>{if(!this.targetWindow)return;const x=this.getOffsetForIndex(i,m);if(!x){console.warn("Failed to get offset for index:",i);return}const[y,S]=x;this._scrollToOffset(y,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{const v=()=>{if(this.currentScrollToIndex!==i)return;const w=this.getScrollOffset(),j=this.getOffsetForIndex(i,S);if(!j){console.warn("Failed to get offset for index:",i);return}ab(j[0],w)||p(S)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(v):v()})},p=m=>{this.targetWindow&&this.currentScrollToIndex===i&&(c++,c<f?this.targetWindow.requestAnimationFrame(()=>d(m)):console.warn(`Failed to scroll to index ${i} after ${f} attempts.`))};d(u)},this.scrollBy=(i,{behavior:u}={})=>{u==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+i,{adjustments:void 0,behavior:u})},this.getTotalSize=()=>{var i;const u=this.getMeasurements();let s;if(u.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=((i=u[u.length-1])==null?void 0:i.end)??0;else{const c=Array(this.options.lanes).fill(null);let f=u.length-1;for(;f>=0&&c.some(d=>d===null);){const d=u[f];c[d.lane]===null&&(c[d.lane]=d.end),f--}s=Math.max(...c.filter(d=>d!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(i,{adjustments:u,behavior:s})=>{this.options.scrollToFn(i,{behavior:s,adjustments:u},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(a)}}const x0=(n,a,i,u)=>{for(;n<=a;){const s=(n+a)/2|0,c=i(s);if(c<u)n=s+1;else if(c>u)a=s-1;else return s}return n>0?n-1:0};function mb({measurements:n,outerSize:a,scrollOffset:i,lanes:u}){const s=n.length-1,c=p=>n[p].start;if(n.length<=u)return{startIndex:0,endIndex:s};let f=x0(0,s,c,i),d=f;if(u===1)for(;d<s&&n[d].end<i+a;)d++;else if(u>1){const p=Array(u).fill(0);for(;d<s&&p.some(x=>x<i+a);){const x=n[d];p[x.lane]=x.end,d++}const m=Array(u).fill(i+a);for(;f>=0&&m.some(x=>x>=i);){const x=n[f];m[x.lane]=x.start,f--}f=Math.max(0,f-f%u),d=Math.min(s,d+(u-1-d%u))}return{startIndex:f,endIndex:d}}const ap=typeof document<"u"?V.useLayoutEffect:V.useEffect;function pb({useFlushSync:n=!0,...a}){const i=V.useReducer(()=>({}),{})[1],u={...a,onChange:(c,f)=>{var d;n&&f?ib.flushSync(i):i(),(d=a.onChange)==null||d.call(a,c,f)}},[s]=V.useState(()=>new db(u));return s.setOptions(u),ap(()=>s._didMount(),[]),ap(()=>s._willUpdate()),s}function gb(n){return pb({observeElementRect:ob,observeElementOffset:cb,scrollToFn:hb,...n})}const xb=V.memo(function(a){const{sessions:i,selectedSession:u,onSelectSession:s,loading:c,selectedProject:f,sessionIdPrefix:d,search:p,onSearchChange:m,fullTextEnabled:x,onFullTextEnabledChange:y,fullTextOptions:S,onFullTextOptionsChange:v,excludeUnknownModels:w,onExcludeUnknownModelsChange:j,sessionModels:_,onDeleteUnknownSessions:M,sortMode:q,onSortModeChange:H,batchMode:I,selectedSessions:P,onToggleBatchMode:O,onToggleSessionSelection:$,onSelectAll:se,onDeselectAll:me,onBatchExport:B}=a,[ne,ee]=V.useState(!1),[de,re]=V.useState(null),[W,R]=V.useState(new Map),K=V.useRef(null);V.useEffect(()=>{if(!x||!p.trim()){ee(!1),re(null),R(new Map);return}const ue=new AbortController,ce=setTimeout(()=>{ee(!0),re(null),fetch("/api/search",{method:"POST",headers:{"Content-Type":"application/json"},signal:ue.signal,body:JSON.stringify({query:p,options:S,project:f??null})}).then(async Oe=>{const De=Oe.headers.get("x-claude-run-rg-command");De&&console.log("[claude-run]",De);const $e=await Oe.json();if(!Oe.ok)throw new Error($e.error||"Search failed");const Gt=new Map;for(const at of $e.matches)Gt.set(at.sessionId,at.matchCount);R(Gt)}).catch(Oe=>{(Oe==null?void 0:Oe.name)!=="AbortError"&&(R(new Map),re(Oe instanceof Error?Oe.message:"Search failed"))}).finally(()=>{ee(!1)})},250);return()=>{ue.abort(),clearTimeout(ce)}},[x,p,S,f]);const oe=V.useMemo(()=>{const ue=[];for(const[ce,Oe]of _.entries())Oe===null&&ue.push(ce);return ue},[_]),ze=oe.length,E=V.useMemo(()=>!w||d&&d.trim()?i:i.filter(ue=>_.get(ue.id)!==null),[i,w,_,d]),C=V.useMemo(()=>{if(d&&d.trim()){const ce=d.trim().toLowerCase();return E.filter(Oe=>Oe.id.toLowerCase().startsWith(ce))}if(!p.trim())return E;if(x)return ne||de?[]:W.size===0?[]:E.filter(ce=>W.has(ce.id));const ue=p.toLowerCase();return E.filter(ce=>ce.display.toLowerCase().includes(ue)||ce.projectName.toLowerCase().includes(ue))},[E,d,p,x,ne,de,W]),F=V.useMemo(()=>{const ue=[...C],ce=De=>typeof De.startTime!="number"||typeof De.endTime!="number"?null:Math.max(0,De.endTime-De.startTime),Oe=(De,$e,Gt)=>De===null&&$e===null?0:De===null?1:$e===null?-1:Gt?$e-De:De-$e;switch(q){case"duration-desc":ue.sort((De,$e)=>Oe(ce(De),ce($e),!0));break;case"duration-asc":ue.sort((De,$e)=>Oe(ce(De),ce($e),!1));break;case"size-desc":ue.sort((De,$e)=>Oe(De.fileSizeBytes??null,$e.fileSizeBytes??null,!0));break;case"size-asc":ue.sort((De,$e)=>Oe(De.fileSizeBytes??null,$e.fileSizeBytes??null,!1));break;default:ue.sort((De,$e)=>$e.timestamp-De.timestamp);break}return ue},[C,q]),k=gb({count:F.length,getScrollElement:()=>K.current,estimateSize:()=>76,overscan:10,measureElement:ue=>ue.getBoundingClientRect().height}),ae=V.useCallback((ue,ce)=>{I?(ce.preventDefault(),$(ue.id)):s(ue.id)},[I,$,s]),ge=P.size,xe=ge===F.length&&F.length>0,we=V.useCallback(()=>{oe.length!==0&&M(oe)},[oe,M]);return g.jsxs("div",{className:"h-full overflow-hidden bg-zinc-950 flex flex-col",children:[g.jsxs("div",{className:"px-3 py-2 border-b border-zinc-800/60",children:[g.jsxs("div",{className:"flex items-center gap-2 text-zinc-500",children:[g.jsx("svg",{className:"w-4 h-4 shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),g.jsx("input",{type:"text",value:p,onChange:ue=>m(ue.target.value),placeholder:"Search...",className:"flex-1 bg-transparent text-sm text-zinc-200 placeholder-zinc-600 focus:outline-none"}),g.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500 select-none",children:[g.jsx("input",{type:"checkbox",checked:x,onChange:ue=>y(ue.target.checked),className:"accent-cyan-500",title:"Full text search (ripgrep)"}),"Full text"]}),p&&g.jsx("button",{onClick:()=>m(""),className:"text-zinc-600 hover:text-zinc-400 transition-colors",children:g.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),g.jsxs("div",{className:"mt-2 flex items-center gap-2 flex-wrap",children:[g.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500 select-none",children:[g.jsx("input",{type:"checkbox",checked:w,onChange:ue=>j(ue.target.checked),className:"accent-cyan-500",title:"Hide sessions without a detected model"}),"Hide Unknown model"]}),g.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500",children:[g.jsx("span",{children:"Sort"}),g.jsxs("select",{value:q,onChange:ue=>H(ue.target.value),className:"bg-zinc-900/60 border border-zinc-800/60 rounded px-1.5 py-0.5 text-[10px] text-zinc-200",children:[g.jsx("option",{value:"recent",children:"Recent"}),g.jsx("option",{value:"duration-desc",children:"Duration (desc)"}),g.jsx("option",{value:"duration-asc",children:"Duration (asc)"}),g.jsx("option",{value:"size-desc",children:"JSONL size (desc)"}),g.jsx("option",{value:"size-asc",children:"JSONL size (asc)"})]})]}),w&&ze>0&&g.jsxs("button",{onClick:we,className:"flex items-center gap-1.5 px-2 py-0.5 text-[10px] rounded border border-red-500/40 text-red-300 hover:bg-red-500/10 transition-colors",title:"Delete unknown-model sessions from disk",children:["Delete Unknown (",ze,")"]})]}),x&&g.jsxs("div",{className:"mt-2 flex items-center gap-2 flex-wrap",children:[g.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500",children:[g.jsx("span",{children:"Mode"}),g.jsxs("select",{value:S.mode,onChange:ue=>v({...S,mode:ue.target.value==="regex"?"regex":"literal"}),className:"bg-zinc-900/60 border border-zinc-800/60 rounded px-1.5 py-0.5 text-[10px] text-zinc-200",children:[g.jsx("option",{value:"literal",children:"Literal"}),g.jsx("option",{value:"regex",children:"Regex"})]})]}),g.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500 select-none",children:[g.jsx("input",{type:"checkbox",checked:S.caseSensitive,onChange:ue=>v({...S,caseSensitive:ue.target.checked}),className:"accent-cyan-500"}),"Case sensitive"]}),g.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500 select-none",children:[g.jsx("input",{type:"checkbox",checked:S.wordRegexp,onChange:ue=>v({...S,wordRegexp:ue.target.checked}),className:"accent-cyan-500"}),"Whole word"]}),g.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500",children:[g.jsx("span",{children:"Max matches/file"}),g.jsx("input",{type:"number",min:1,max:2e3,value:S.maxMatchesPerFile??200,onChange:ue=>v({...S,maxMatchesPerFile:Number.parseInt(ue.target.value||"200",10)}),className:"w-16 bg-zinc-900/60 border border-zinc-800/60 rounded px-1.5 py-0.5 text-[10px] text-zinc-200"})]}),ne&&g.jsx("span",{className:"text-[10px] text-zinc-600",children:"Searching…"})]})]}),g.jsxs("div",{className:"px-3 py-2 border-b border-zinc-800/60 flex items-center gap-2",children:[g.jsx("button",{onClick:O,className:`flex items-center gap-1.5 px-2 py-1 text-xs rounded transition-colors ${I?"bg-cyan-600/20 text-cyan-400 border border-cyan-600/40":"text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800"}`,title:I?"Exit batch mode":"Enter batch mode",children:I?g.jsxs(g.Fragment,{children:[g.jsx(vu,{className:"w-3 h-3"}),"Exit"]}):g.jsxs(g.Fragment,{children:[g.jsx(fc,{className:"w-3 h-3"}),"Select"]})}),I&&g.jsxs(g.Fragment,{children:[g.jsx("button",{onClick:xe?me:se,className:"px-2 py-1 text-xs text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 rounded transition-colors",children:xe?"Deselect All":"Select All"}),ge>0&&g.jsxs("button",{onClick:B,className:"flex items-center gap-1.5 px-2 py-1 text-xs bg-cyan-600 hover:bg-cyan-500 text-white rounded transition-colors ml-auto",children:[g.jsx(Ec,{className:"w-3 h-3"}),"Export (",ge,")"]})]})]}),g.jsx("div",{ref:K,className:"flex-1 overflow-y-auto",children:c?g.jsx("div",{className:"flex items-center justify-center py-8",children:g.jsxs("svg",{className:"w-5 h-5 text-zinc-600 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[g.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),g.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}):C.length===0?g.jsx("p",{className:"py-8 text-center text-xs text-zinc-600",children:d&&d.trim()?`No sessions match “${d.trim()}”`:x&&p&&de?de:x&&p&&ne?"Searching…":p?x?"No matches in conversation text":"No sessions match":"No sessions found"}):g.jsx("div",{style:{height:`${k.getTotalSize()}px`,width:"100%",position:"relative"},children:k.getVirtualItems().map(ue=>{const ce=F[ue.index],Oe=P.has(ce.id),De=typeof ce.startTime=="number"&&typeof ce.endTime=="number"?Math.max(0,ce.endTime-ce.startTime):null,$e=typeof ce.messageCount=="number"?`${ce.messageCount} msg${ce.messageCount===1?"":"s"}`:"—",Gt=g0(De),at=p0(ce.fileSizeBytes);return g.jsx("button",{"data-index":ue.index,ref:k.measureElement,onClick:Dt=>ae(ce,Dt),style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${ue.start}px)`},className:`px-3 py-3.5 text-left transition-colors overflow-hidden border-b border-zinc-800/40 ${I&&Oe||u===ce.id&&!I?"bg-cyan-700/30":"hover:bg-zinc-900/60"} ${ue.index===0?"border-t border-t-zinc-800/40":""}`,children:g.jsxs("div",{className:"flex items-center gap-2",children:[I&&g.jsx("div",{className:"shrink-0",children:Oe?g.jsx(fc,{className:"w-4 h-4 text-cyan-400"}):g.jsx(h0,{className:"w-4 h-4 text-zinc-600"})}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsxs("div",{className:"flex items-center justify-between mb-1",children:[g.jsx("span",{className:"text-[10px] text-zinc-500 font-medium",title:Nc(ce.project),children:ce.projectName}),g.jsxs("div",{className:"flex items-center gap-2",children:[x&&p.trim()&&W.has(ce.id)&&g.jsx("span",{className:"text-[10px] text-cyan-400",children:W.get(ce.id)}),g.jsx("span",{className:"text-[10px] text-zinc-600",children:m0(ce.timestamp)})]})]}),g.jsx("p",{className:"text-[12px] text-zinc-300 leading-snug line-clamp-2 wrap-break-word",children:ce.display}),g.jsxs("div",{className:"mt-1 text-[10px] text-zinc-600 flex flex-wrap items-center gap-x-2",children:[g.jsx("span",{children:$e}),g.jsx("span",{children:"•"}),g.jsx("span",{children:Gt}),g.jsx("span",{children:"•"}),g.jsx("span",{children:at})]})]})]})},ce.id)})})}),g.jsx("div",{className:"px-3 py-2 border-t border-zinc-800/60",children:g.jsx("div",{className:"text-[10px] text-zinc-600 text-center",children:I&&ge>0?`${ge} of ${i.length} selected`:`${i.length} session${i.length!==1?"s":""}`})})]})});function yb(n){const a=n.split("/").filter(Boolean);return a[a.length-1]||n}function su(n,a){const i=n.trim().toLowerCase();if(!i)return!0;const u=a.toLowerCase();let s=0;for(let c=0;c<u.length&&s<i.length;c+=1)u[c]===i[s]&&(s+=1);return s===i.length}function bb(n){const{projects:a,selectedProject:i,onSelect:u}=n,[s,c]=V.useState(!1),[f,d]=V.useState(""),p=V.useRef(null),m=V.useRef(null),x=V.useMemo(()=>{const w=a.map(j=>({value:j,name:yb(j),path:j,subtext:Nc(j)}));return[{value:"",name:"All Projects",path:"",subtext:"Every project"},...w]},[a]),y=V.useMemo(()=>f.trim()?x.filter(w=>w.value?su(f,w.name)||su(f,w.subtext)||su(f,w.path):su(f,w.name)):x,[x,f]),S=V.useMemo(()=>i?x.find(w=>w.value===i)??x[0]:x[0],[x,i]),v=V.useCallback(w=>{u(w||null),c(!1),d("")},[u]);return V.useEffect(()=>{if(!s)return;const w=_=>{p.current&&(p.current.contains(_.target)||c(!1))},j=_=>{_.key==="Escape"&&c(!1)};return document.addEventListener("mousedown",w),document.addEventListener("keydown",j),()=>{document.removeEventListener("mousedown",w),document.removeEventListener("keydown",j)}},[s]),V.useEffect(()=>{var w;s&&((w=m.current)==null||w.focus())},[s]),g.jsxs("div",{ref:p,className:"relative",children:[g.jsxs("button",{type:"button",onClick:()=>c(w=>!w),className:"w-full flex items-center justify-between gap-3 rounded-md border border-zinc-800/80 bg-zinc-900/60 px-3 py-2.5 text-left transition-colors hover:bg-zinc-800/70","aria-haspopup":"listbox","aria-expanded":s,children:[g.jsxs("div",{className:"min-w-0",children:[g.jsx("div",{className:"text-sm font-medium text-zinc-100 truncate",children:S.name}),g.jsx("div",{className:"text-[11px] text-zinc-500 truncate",children:S.subtext})]}),g.jsx(a1,{className:`w-4 h-4 text-zinc-500 transition-transform ${s?"rotate-180":""}`})]}),s&&g.jsxs("div",{className:"absolute z-20 mt-2 w-full rounded-lg border border-zinc-800/80 bg-zinc-950 shadow-xl",children:[g.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-800/80",children:[g.jsx(Va,{className:"w-4 h-4 text-zinc-500"}),g.jsx("input",{ref:m,type:"text",value:f,onChange:w=>d(w.target.value),placeholder:"Search projects...",className:"flex-1 bg-transparent text-sm text-zinc-200 placeholder-zinc-600 focus:outline-none"}),f&&g.jsx("button",{type:"button",onClick:()=>{var w;d(""),(w=m.current)==null||w.focus()},className:"text-zinc-600 hover:text-zinc-400 transition-colors","aria-label":"Clear search",children:g.jsx(vu,{className:"w-4 h-4"})})]}),g.jsx("div",{className:"max-h-72 overflow-y-auto py-1",children:y.length===0?g.jsx("div",{className:"px-3 py-3 text-xs text-zinc-500",children:"No projects match"}):g.jsx("ul",{role:"listbox",className:"space-y-1",children:y.map(w=>{const j=i===w.value||!i&&!w.value;return g.jsx("li",{children:g.jsxs("button",{type:"button",role:"option","aria-selected":j,onClick:()=>v(w.value),className:`w-full text-left px-3 py-2 rounded-md transition-colors hover:bg-zinc-800/60 ${j?"bg-cyan-700/20":""}`,children:[g.jsxs("div",{className:"flex items-center justify-between gap-2",children:[g.jsx("span",{className:"text-sm font-medium text-zinc-200 truncate",children:w.name}),j&&g.jsx(Sl,{className:"w-4 h-4 text-cyan-400"})]}),g.jsx("div",{className:"text-[11px] text-zinc-500 truncate",children:w.subtext})]})},w.value||"__all__")})})})]})]})}function vb(n,a){const i={};return(n[n.length-1]===""?[...n,""]:n).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const Sb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kb={};function rp(n,a){return(kb.jsx?zb:Sb).test(n)}const wb=/[ \t\n\f\r]/g;function Eb(n){return typeof n=="object"?n.type==="text"?up(n.value):!1:up(n)}function up(n){return n.replace(wb,"")===""}class Ga{constructor(a,i,u){this.normal=i,this.property=a,u&&(this.space=u)}}Ga.prototype.normal={};Ga.prototype.property={};Ga.prototype.space=void 0;function y0(n,a){const i={},u={};for(const s of n)Object.assign(i,s.property),Object.assign(u,s.normal);return new Ga(i,u,a)}function hc(n){return n.toLowerCase()}class Xt{constructor(a,i){this.attribute=i,this.property=a}}Xt.prototype.attribute="";Xt.prototype.booleanish=!1;Xt.prototype.boolean=!1;Xt.prototype.commaOrSpaceSeparated=!1;Xt.prototype.commaSeparated=!1;Xt.prototype.defined=!1;Xt.prototype.mustUseProperty=!1;Xt.prototype.number=!1;Xt.prototype.overloadedBoolean=!1;Xt.prototype.property="";Xt.prototype.spaceSeparated=!1;Xt.prototype.space=void 0;let Tb=0;const Ne=Fl(),gt=Fl(),dc=Fl(),te=Fl(),et=Fl(),Ri=Fl(),Pt=Fl();function Fl(){return 2**++Tb}const mc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ne,booleanish:gt,commaOrSpaceSeparated:Pt,commaSeparated:Ri,number:te,overloadedBoolean:dc,spaceSeparated:et},Symbol.toStringTag,{value:"Module"})),Go=Object.keys(mc);class jc extends Xt{constructor(a,i,u,s){let c=-1;if(super(a,i),sp(this,"space",s),typeof u=="number")for(;++c<Go.length;){const f=Go[c];sp(this,Go[c],(u&mc[f])===mc[f])}}}jc.prototype.defined=!0;function sp(n,a,i){i&&(n[a]=i)}function Ui(n){const a={},i={};for(const[u,s]of Object.entries(n.properties)){const c=new jc(u,n.transform(n.attributes||{},u),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(c.mustUseProperty=!0),a[u]=c,i[hc(u)]=u,i[hc(c.attribute)]=u}return new Ga(a,i,n.space)}const b0=Ui({properties:{ariaActiveDescendant:null,ariaAtomic:gt,ariaAutoComplete:null,ariaBusy:gt,ariaChecked:gt,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:et,ariaCurrent:null,ariaDescribedBy:et,ariaDetails:null,ariaDisabled:gt,ariaDropEffect:et,ariaErrorMessage:null,ariaExpanded:gt,ariaFlowTo:et,ariaGrabbed:gt,ariaHasPopup:null,ariaHidden:gt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:et,ariaLevel:te,ariaLive:null,ariaModal:gt,ariaMultiLine:gt,ariaMultiSelectable:gt,ariaOrientation:null,ariaOwns:et,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:gt,ariaReadOnly:gt,ariaRelevant:null,ariaRequired:gt,ariaRoleDescription:et,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:gt,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function v0(n,a){return a in n?n[a]:a}function S0(n,a){return v0(n,a.toLowerCase())}const Cb=Ui({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ri,acceptCharset:et,accessKey:et,action:null,allow:null,allowFullScreen:Ne,allowPaymentRequest:Ne,allowUserMedia:Ne,alt:null,as:null,async:Ne,autoCapitalize:null,autoComplete:et,autoFocus:Ne,autoPlay:Ne,blocking:et,capture:null,charSet:null,checked:Ne,cite:null,className:et,cols:te,colSpan:null,content:null,contentEditable:gt,controls:Ne,controlsList:et,coords:te|Ri,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ne,defer:Ne,dir:null,dirName:null,disabled:Ne,download:dc,draggable:gt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ne,formTarget:null,headers:et,height:te,hidden:dc,high:te,href:null,hrefLang:null,htmlFor:et,httpEquiv:et,id:null,imageSizes:null,imageSrcSet:null,inert:Ne,inputMode:null,integrity:null,is:null,isMap:Ne,itemId:null,itemProp:et,itemRef:et,itemScope:Ne,itemType:et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ne,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:Ne,muted:Ne,name:null,nonce:null,noModule:Ne,noValidate:Ne,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:Ne,optimum:te,pattern:null,ping:et,placeholder:null,playsInline:Ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ne,referrerPolicy:null,rel:et,required:Ne,reversed:Ne,rows:te,rowSpan:te,sandbox:et,scope:null,scoped:Ne,seamless:Ne,selected:Ne,shadowRootClonable:Ne,shadowRootDelegatesFocus:Ne,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:gt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:Ne,useMap:null,value:gt,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:et,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ne,declare:Ne,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:Ne,noHref:Ne,noShade:Ne,noWrap:Ne,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:gt,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ne,disableRemotePlayback:Ne,prefix:null,property:null,results:te,security:null,unselectable:null},space:"html",transform:S0}),Nb=Ui({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:Pt,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:et,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:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:Ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,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:Ri,g2:Ri,glyphName:Ri,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:Pt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,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:te,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:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:et,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Pt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Pt,rev:Pt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Pt,requiredFeatures:Pt,requiredFonts:Pt,requiredFormats:Pt,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:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:Pt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Pt,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Pt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:v0}),z0=Ui({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,a){return"xlink:"+a.slice(5).toLowerCase()}}),k0=Ui({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:S0}),w0=Ui({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),jb={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"},Mb=/[A-Z]/g,op=/-[a-z]/g,Ab=/^data[-\w.:]+$/i;function _b(n,a){const i=hc(a);let u=a,s=Xt;if(i in n.normal)return n.property[n.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&Ab.test(a)){if(a.charAt(4)==="-"){const c=a.slice(5).replace(op,Db);u="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!op.test(c)){let f=c.replace(Mb,Ob);f.charAt(0)!=="-"&&(f="-"+f),a="data"+f}}s=jc}return new s(u,a)}function Ob(n){return"-"+n.toLowerCase()}function Db(n){return n.charAt(1).toUpperCase()}const Rb=y0([b0,Cb,z0,k0,w0],"html"),Mc=y0([b0,Nb,z0,k0,w0],"svg");function Lb(n){return n.join(" ").trim()}var Mi={},Qo,cp;function Ub(){if(cp)return Qo;cp=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,i=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
258
+ `,m="/",x="*",y="",S="comment",v="declaration";function w(_,M){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];M=M||{};var q=1,H=1;function I(re){var W=re.match(a);W&&(q+=W.length);var R=re.lastIndexOf(p);H=~R?re.length-R:H+re.length}function P(){var re={line:q,column:H};return function(W){return W.position=new O(re),me(),W}}function O(re){this.start=re,this.end={line:q,column:H},this.source=M.source}O.prototype.content=_;function $(re){var W=new Error(M.source+":"+q+":"+H+": "+re);if(W.reason=re,W.filename=M.source,W.line=q,W.column=H,W.source=_,!M.silent)throw W}function se(re){var W=re.exec(_);if(W){var R=W[0];return I(R),_=_.slice(R.length),W}}function me(){se(i)}function B(re){var W;for(re=re||[];W=ne();)W!==!1&&re.push(W);return re}function ne(){var re=P();if(!(m!=_.charAt(0)||x!=_.charAt(1))){for(var W=2;y!=_.charAt(W)&&(x!=_.charAt(W)||m!=_.charAt(W+1));)++W;if(W+=2,y===_.charAt(W-1))return $("End of comment missing");var R=_.slice(2,W-2);return H+=2,I(R),_=_.slice(W),H+=2,re({type:S,comment:R})}}function ee(){var re=P(),W=se(u);if(W){if(ne(),!se(s))return $("property missing ':'");var R=se(c),K=re({type:v,property:j(W[0].replace(n,y)),value:R?j(R[0].replace(n,y)):y});return se(f),K}}function de(){var re=[];B(re);for(var W;W=ee();)W!==!1&&(re.push(W),B(re));return re}return me(),de()}function j(_){return _?_.replace(d,y):y}return Qo=w,Qo}var fp;function Bb(){if(fp)return Mi;fp=1;var n=Mi&&Mi.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.default=i;const a=n(Ub());function i(u,s){let c=null;if(!u||typeof u!="string")return c;const f=(0,a.default)(u),d=typeof s=="function";return f.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:x}=p;d?s(m,x,p):x&&(c=c||{},c[m]=x)}),c}return Mi}var Ra={},hp;function Hb(){if(hp)return Ra;hp=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,i=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,c=function(m){return!m||i.test(m)||n.test(m)},f=function(m,x){return x.toUpperCase()},d=function(m,x){return"".concat(x,"-")},p=function(m,x){return x===void 0&&(x={}),c(m)?m:(m=m.toLowerCase(),x.reactCompat?m=m.replace(s,d):m=m.replace(u,d),m.replace(a,f))};return Ra.camelCase=p,Ra}var La,dp;function qb(){if(dp)return La;dp=1;var n=La&&La.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=n(Bb()),i=Hb();function u(s,c){var f={};return!s||typeof s!="string"||(0,a.default)(s,function(d,p){d&&p&&(f[(0,i.camelCase)(d,c)]=p)}),f}return u.default=u,La=u,La}var Yb=qb();const Vb=n0(Yb),E0=T0("end"),Ac=T0("start");function T0(n){return a;function a(i){const u=i&&i.position&&i.position[n]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function Fb(n){const a=Ac(n),i=E0(n);if(a&&i)return{start:a,end:i}}function Ha(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?mp(n.position):"start"in n||"end"in n?mp(n):"line"in n||"column"in n?pc(n):""}function pc(n){return pp(n&&n.line)+":"+pp(n&&n.column)}function mp(n){return pc(n&&n.start)+"-"+pc(n&&n.end)}function pp(n){return n&&typeof n=="number"?n:1}class Mt extends Error{constructor(a,i,u){super(),typeof i=="string"&&(u=i,i=void 0);let s="",c={},f=!1;if(i&&("line"in i&&"column"in i?c={place:i}:"start"in i&&"end"in i?c={place:i}:"type"in i?c={ancestors:[i],place:i.position}:c={...i}),typeof a=="string"?s=a:!c.cause&&a&&(f=!0,s=a.message,c.cause=a),!c.ruleId&&!c.source&&typeof u=="string"){const p=u.indexOf(":");p===-1?c.ruleId=u:(c.source=u.slice(0,p),c.ruleId=u.slice(p+1))}if(!c.place&&c.ancestors&&c.ancestors){const p=c.ancestors[c.ancestors.length-1];p&&(c.place=p.position)}const d=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=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=d?d.line:void 0,this.name=Ha(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}}Mt.prototype.file="";Mt.prototype.name="";Mt.prototype.reason="";Mt.prototype.message="";Mt.prototype.stack="";Mt.prototype.column=void 0;Mt.prototype.line=void 0;Mt.prototype.ancestors=void 0;Mt.prototype.cause=void 0;Mt.prototype.fatal=void 0;Mt.prototype.place=void 0;Mt.prototype.ruleId=void 0;Mt.prototype.source=void 0;const _c={}.hasOwnProperty,Xb=new Map,Gb=/[A-Z]/g,Qb=new Set(["table","tbody","thead","tfoot","tr"]),Zb=new Set(["td","th"]),C0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Jb(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=a.filePath||void 0;let u;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=nv(i,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=tv(i,a.jsx,a.jsxs)}const s={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:u,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?Mc:Rb,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},c=N0(s,n,void 0);return c&&typeof c!="string"?c:s.create(n,s.Fragment,{children:c||void 0},void 0)}function N0(n,a,i){if(a.type==="element")return Kb(n,a,i);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return Ib(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return Wb(n,a,i);if(a.type==="mdxjsEsm")return $b(n,a);if(a.type==="root")return Pb(n,a,i);if(a.type==="text")return ev(n,a)}function Kb(n,a,i){const u=n.schema;let s=u;a.tagName.toLowerCase()==="svg"&&u.space==="html"&&(s=Mc,n.schema=s),n.ancestors.push(a);const c=M0(n,a.tagName,!1),f=lv(n,a);let d=Dc(n,a);return Qb.has(a.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!Eb(p):!0})),j0(n,f,c,a),Oc(f,d),n.ancestors.pop(),n.schema=u,n.create(a,c,f,i)}function Ib(n,a){if(a.data&&a.data.estree&&n.evaluater){const u=a.data.estree.body[0];return u.type,n.evaluater.evaluateExpression(u.expression)}Fa(n,a.position)}function $b(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);Fa(n,a.position)}function Wb(n,a,i){const u=n.schema;let s=u;a.name==="svg"&&u.space==="html"&&(s=Mc,n.schema=s),n.ancestors.push(a);const c=a.name===null?n.Fragment:M0(n,a.name,!0),f=iv(n,a),d=Dc(n,a);return j0(n,f,c,a),Oc(f,d),n.ancestors.pop(),n.schema=u,n.create(a,c,f,i)}function Pb(n,a,i){const u={};return Oc(u,Dc(n,a)),n.create(a,n.Fragment,u,i)}function ev(n,a){return a.value}function j0(n,a,i,u){typeof i!="string"&&i!==n.Fragment&&n.passNode&&(a.node=u)}function Oc(n,a){if(a.length>0){const i=a.length>1?a:a[0];i&&(n.children=i)}}function tv(n,a,i){return u;function u(s,c,f,d){const m=Array.isArray(f.children)?i:a;return d?m(c,f,d):m(c,f)}}function nv(n,a){return i;function i(u,s,c,f){const d=Array.isArray(c.children),p=Ac(u);return a(s,c,f,d,{columnNumber:p?p.column-1:void 0,fileName:n,lineNumber:p?p.line:void 0},void 0)}}function lv(n,a){const i={};let u,s;for(s in a.properties)if(s!=="children"&&_c.call(a.properties,s)){const c=av(n,s,a.properties[s]);if(c){const[f,d]=c;n.tableCellAlignToStyle&&f==="align"&&typeof d=="string"&&Zb.has(a.tagName)?u=d:i[f]=d}}if(u){const c=i.style||(i.style={});c[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return i}function iv(n,a){const i={};for(const u of a.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&n.evaluater){const c=u.data.estree.body[0];c.type;const f=c.expression;f.type;const d=f.properties[0];d.type,Object.assign(i,n.evaluater.evaluateExpression(d.argument))}else Fa(n,a.position);else{const s=u.name;let c;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&n.evaluater){const d=u.value.data.estree.body[0];d.type,c=n.evaluater.evaluateExpression(d.expression)}else Fa(n,a.position);else c=u.value===null?!0:u.value;i[s]=c}return i}function Dc(n,a){const i=[];let u=-1;const s=n.passKeys?new Map:Xb;for(;++u<a.children.length;){const c=a.children[u];let f;if(n.passKeys){const p=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(p){const m=s.get(p)||0;f=p+"-"+m,s.set(p,m+1)}}const d=N0(n,c,f);d!==void 0&&i.push(d)}return i}function av(n,a,i){const u=_b(n.schema,a);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=u.commaSeparated?vb(i):Lb(i)),u.property==="style"){let s=typeof i=="object"?i:rv(n,String(i));return n.stylePropertyNameCase==="css"&&(s=uv(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&u.space?jb[u.property]||u.property:u.attribute,i]}}function rv(n,a){try{return Vb(a,{reactCompat:!0})}catch(i){if(n.ignoreInvalidStyle)return{};const u=i,s=new Mt("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=n.filePath||void 0,s.url=C0+"#cannot-parse-style-attribute",s}}function M0(n,a,i){let u;if(!i)u={type:"Literal",value:a};else if(a.includes(".")){const s=a.split(".");let c=-1,f;for(;++c<s.length;){const d=rp(s[c])?{type:"Identifier",name:s[c]}:{type:"Literal",value:s[c]};f=f?{type:"MemberExpression",object:f,property:d,computed:!!(c&&d.type==="Literal"),optional:!1}:d}u=f}else u=rp(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(u.type==="Literal"){const s=u.value;return _c.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(u);Fa(n)}function Fa(n,a){const i=new Mt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=n.filePath||void 0,i.url=C0+"#cannot-handle-mdx-estrees-without-createevaluater",i}function uv(n){const a={};let i;for(i in n)_c.call(n,i)&&(a[sv(i)]=n[i]);return a}function sv(n){let a=n.replace(Gb,ov);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function ov(n){return"-"+n.toLowerCase()}const Zo={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"]},cv={};function Rc(n,a){const i=cv,u=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return A0(n,u,s)}function A0(n,a,i){if(fv(n)){if("value"in n)return n.type==="html"&&!i?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return gp(n.children,a,i)}return Array.isArray(n)?gp(n,a,i):""}function gp(n,a,i){const u=[];let s=-1;for(;++s<n.length;)u[s]=A0(n[s],a,i);return u.join("")}function fv(n){return!!(n&&typeof n=="object")}const xp=document.createElement("i");function Lc(n){const a="&"+n+";";xp.innerHTML=a;const i=xp.textContent;return i.charCodeAt(i.length-1)===59&&n!=="semi"||i===a?!1:i}function en(n,a,i,u){const s=n.length;let c=0,f;if(a<0?a=-a>s?0:s+a:a=a>s?s:a,i=i>0?i:0,u.length<1e4)f=Array.from(u),f.unshift(a,i),n.splice(...f);else for(i&&n.splice(a,i);c<u.length;)f=u.slice(c,c+1e4),f.unshift(a,0),n.splice(...f),c+=1e4,a+=1e4}function mn(n,a){return n.length>0?(en(n,n.length,0,a),n):a}const yp={}.hasOwnProperty;function _0(n){const a={};let i=-1;for(;++i<n.length;)hv(a,n[i]);return a}function hv(n,a){let i;for(i in a){const s=(yp.call(n,i)?n[i]:void 0)||(n[i]={}),c=a[i];let f;if(c)for(f in c){yp.call(s,f)||(s[f]=[]);const d=c[f];dv(s[f],Array.isArray(d)?d:d?[d]:[])}}}function dv(n,a){let i=-1;const u=[];for(;++i<a.length;)(a[i].add==="after"?n:u).push(a[i]);en(n,0,0,u)}function O0(n,a){const i=Number.parseInt(n,a);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function vn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ot=zl(/[A-Za-z]/),jt=zl(/[\dA-Za-z]/),mv=zl(/[#-'*+\--9=?A-Z^-~]/);function gu(n){return n!==null&&(n<32||n===127)}const gc=zl(/\d/),pv=zl(/[\dA-Fa-f]/),gv=zl(/[!-/:-@[-`{-~]/);function be(n){return n!==null&&n<-2}function Pe(n){return n!==null&&(n<0||n===32)}function Ae(n){return n===-2||n===-1||n===32}const Su=zl(new RegExp("\\p{P}|\\p{S}","u")),Vl=zl(/\s/);function zl(n){return a;function a(i){return i!==null&&i>-1&&n.test(String.fromCharCode(i))}}function Bi(n){const a=[];let i=-1,u=0,s=0;for(;++i<n.length;){const c=n.charCodeAt(i);let f="";if(c===37&&jt(n.charCodeAt(i+1))&&jt(n.charCodeAt(i+2)))s=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(f=String.fromCharCode(c));else if(c>55295&&c<57344){const d=n.charCodeAt(i+1);c<56320&&d>56319&&d<57344?(f=String.fromCharCode(c,d),s=1):f="�"}else f=String.fromCharCode(c);f&&(a.push(n.slice(u,i),encodeURIComponent(f)),u=i+s+1,f=""),s&&(i+=s,s=0)}return a.join("")+n.slice(u)}function He(n,a,i,u){const s=u?u-1:Number.POSITIVE_INFINITY;let c=0;return f;function f(p){return Ae(p)?(n.enter(i),d(p)):a(p)}function d(p){return Ae(p)&&c++<s?(n.consume(p),d):(n.exit(i),a(p))}}const xv={tokenize:yv};function yv(n){const a=n.attempt(this.parser.constructs.contentInitial,u,s);let i;return a;function u(d){if(d===null){n.consume(d);return}return n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),He(n,a,"linePrefix")}function s(d){return n.enter("paragraph"),c(d)}function c(d){const p=n.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=p),i=p,f(d)}function f(d){if(d===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(d);return}return be(d)?(n.consume(d),n.exit("chunkText"),c):(n.consume(d),f)}}const bv={tokenize:vv},bp={tokenize:Sv};function vv(n){const a=this,i=[];let u=0,s,c,f;return d;function d(H){if(u<i.length){const I=i[u];return a.containerState=I[1],n.attempt(I[0].continuation,p,m)(H)}return m(H)}function p(H){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&q();const I=a.events.length;let P=I,O;for(;P--;)if(a.events[P][0]==="exit"&&a.events[P][1].type==="chunkFlow"){O=a.events[P][1].end;break}M(u);let $=I;for(;$<a.events.length;)a.events[$][1].end={...O},$++;return en(a.events,P+1,0,a.events.slice(I)),a.events.length=$,m(H)}return d(H)}function m(H){if(u===i.length){if(!s)return S(H);if(s.currentConstruct&&s.currentConstruct.concrete)return w(H);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(bp,x,y)(H)}function x(H){return s&&q(),M(u),S(H)}function y(H){return a.parser.lazy[a.now().line]=u!==i.length,f=a.now().offset,w(H)}function S(H){return a.containerState={},n.attempt(bp,v,w)(H)}function v(H){return u++,i.push([a.currentConstruct,a.containerState]),S(H)}function w(H){if(H===null){s&&q(),M(0),n.consume(H);return}return s=s||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:c}),j(H)}function j(H){if(H===null){_(n.exit("chunkFlow"),!0),M(0),n.consume(H);return}return be(H)?(n.consume(H),_(n.exit("chunkFlow")),u=0,a.interrupt=void 0,d):(n.consume(H),j)}function _(H,I){const P=a.sliceStream(H);if(I&&P.push(null),H.previous=c,c&&(c.next=H),c=H,s.defineSkip(H.start),s.write(P),a.parser.lazy[H.start.line]){let O=s.events.length;for(;O--;)if(s.events[O][1].start.offset<f&&(!s.events[O][1].end||s.events[O][1].end.offset>f))return;const $=a.events.length;let se=$,me,B;for(;se--;)if(a.events[se][0]==="exit"&&a.events[se][1].type==="chunkFlow"){if(me){B=a.events[se][1].end;break}me=!0}for(M(u),O=$;O<a.events.length;)a.events[O][1].end={...B},O++;en(a.events,se+1,0,a.events.slice($)),a.events.length=O}}function M(H){let I=i.length;for(;I-- >H;){const P=i[I];a.containerState=P[1],P[0].exit.call(a,n)}i.length=H}function q(){s.write([null]),c=void 0,s=void 0,a.containerState._closeFlow=void 0}}function Sv(n,a,i){return He(n,n.attempt(this.parser.constructs.document,a,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Li(n){if(n===null||Pe(n)||Vl(n))return 1;if(Su(n))return 2}function zu(n,a,i){const u=[];let s=-1;for(;++s<n.length;){const c=n[s].resolveAll;c&&!u.includes(c)&&(a=c(a,i),u.push(c))}return a}const xc={name:"attention",resolveAll:zv,tokenize:kv};function zv(n,a){let i=-1,u,s,c,f,d,p,m,x;for(;++i<n.length;)if(n[i][0]==="enter"&&n[i][1].type==="attentionSequence"&&n[i][1]._close){for(u=i;u--;)if(n[u][0]==="exit"&&n[u][1].type==="attentionSequence"&&n[u][1]._open&&a.sliceSerialize(n[u][1]).charCodeAt(0)===a.sliceSerialize(n[i][1]).charCodeAt(0)){if((n[u][1]._close||n[i][1]._open)&&(n[i][1].end.offset-n[i][1].start.offset)%3&&!((n[u][1].end.offset-n[u][1].start.offset+n[i][1].end.offset-n[i][1].start.offset)%3))continue;p=n[u][1].end.offset-n[u][1].start.offset>1&&n[i][1].end.offset-n[i][1].start.offset>1?2:1;const y={...n[u][1].end},S={...n[i][1].start};vp(y,-p),vp(S,p),f={type:p>1?"strongSequence":"emphasisSequence",start:y,end:{...n[u][1].end}},d={type:p>1?"strongSequence":"emphasisSequence",start:{...n[i][1].start},end:S},c={type:p>1?"strongText":"emphasisText",start:{...n[u][1].end},end:{...n[i][1].start}},s={type:p>1?"strong":"emphasis",start:{...f.start},end:{...d.end}},n[u][1].end={...f.start},n[i][1].start={...d.end},m=[],n[u][1].end.offset-n[u][1].start.offset&&(m=mn(m,[["enter",n[u][1],a],["exit",n[u][1],a]])),m=mn(m,[["enter",s,a],["enter",f,a],["exit",f,a],["enter",c,a]]),m=mn(m,zu(a.parser.constructs.insideSpan.null,n.slice(u+1,i),a)),m=mn(m,[["exit",c,a],["enter",d,a],["exit",d,a],["exit",s,a]]),n[i][1].end.offset-n[i][1].start.offset?(x=2,m=mn(m,[["enter",n[i][1],a],["exit",n[i][1],a]])):x=0,en(n,u-1,i-u+3,m),i=u+m.length-x-2;break}}for(i=-1;++i<n.length;)n[i][1].type==="attentionSequence"&&(n[i][1].type="data");return n}function kv(n,a){const i=this.parser.constructs.attentionMarkers.null,u=this.previous,s=Li(u);let c;return f;function f(p){return c=p,n.enter("attentionSequence"),d(p)}function d(p){if(p===c)return n.consume(p),d;const m=n.exit("attentionSequence"),x=Li(p),y=!x||x===2&&s||i.includes(p),S=!s||s===2&&x||i.includes(u);return m._open=!!(c===42?y:y&&(s||!S)),m._close=!!(c===42?S:S&&(x||!y)),a(p)}}function vp(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const wv={name:"autolink",tokenize:Ev};function Ev(n,a,i){let u=0;return s;function s(v){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),c}function c(v){return Ot(v)?(n.consume(v),f):v===64?i(v):m(v)}function f(v){return v===43||v===45||v===46||jt(v)?(u=1,d(v)):m(v)}function d(v){return v===58?(n.consume(v),u=0,p):(v===43||v===45||v===46||jt(v))&&u++<32?(n.consume(v),d):(u=0,m(v))}function p(v){return v===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.exit("autolink"),a):v===null||v===32||v===60||gu(v)?i(v):(n.consume(v),p)}function m(v){return v===64?(n.consume(v),x):mv(v)?(n.consume(v),m):i(v)}function x(v){return jt(v)?y(v):i(v)}function y(v){return v===46?(n.consume(v),u=0,x):v===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.exit("autolink"),a):S(v)}function S(v){if((v===45||jt(v))&&u++<63){const w=v===45?S:y;return n.consume(v),w}return i(v)}}const Qa={partial:!0,tokenize:Tv};function Tv(n,a,i){return u;function u(c){return Ae(c)?He(n,s,"linePrefix")(c):s(c)}function s(c){return c===null||be(c)?a(c):i(c)}}const D0={continuation:{tokenize:Nv},exit:jv,name:"blockQuote",tokenize:Cv};function Cv(n,a,i){const u=this;return s;function s(f){if(f===62){const d=u.containerState;return d.open||(n.enter("blockQuote",{_container:!0}),d.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(f),n.exit("blockQuoteMarker"),c}return i(f)}function c(f){return Ae(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(f))}}function Nv(n,a,i){const u=this;return s;function s(f){return Ae(f)?He(n,c,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):c(f)}function c(f){return n.attempt(D0,a,i)(f)}}function jv(n){n.exit("blockQuote")}const R0={name:"characterEscape",tokenize:Mv};function Mv(n,a,i){return u;function u(c){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(c),n.exit("escapeMarker"),s}function s(c){return gv(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):i(c)}}const L0={name:"characterReference",tokenize:Av};function Av(n,a,i){const u=this;let s=0,c,f;return d;function d(y){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),p}function p(y){return y===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(y),n.exit("characterReferenceMarkerNumeric"),m):(n.enter("characterReferenceValue"),c=31,f=jt,x(y))}function m(y){return y===88||y===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(y),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),c=6,f=pv,x):(n.enter("characterReferenceValue"),c=7,f=gc,x(y))}function x(y){if(y===59&&s){const S=n.exit("characterReferenceValue");return f===jt&&!Lc(u.sliceSerialize(S))?i(y):(n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return f(y)&&s++<c?(n.consume(y),x):i(y)}}const Sp={partial:!0,tokenize:Ov},zp={concrete:!0,name:"codeFenced",tokenize:_v};function _v(n,a,i){const u=this,s={partial:!0,tokenize:P};let c=0,f=0,d;return p;function p(O){return m(O)}function m(O){const $=u.events[u.events.length-1];return c=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,d=O,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),x(O)}function x(O){return O===d?(f++,n.consume(O),x):f<3?i(O):(n.exit("codeFencedFenceSequence"),Ae(O)?He(n,y,"whitespace")(O):y(O))}function y(O){return O===null||be(O)?(n.exit("codeFencedFence"),u.interrupt?a(O):n.check(Sp,j,I)(O)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),S(O))}function S(O){return O===null||be(O)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),y(O)):Ae(O)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),He(n,v,"whitespace")(O)):O===96&&O===d?i(O):(n.consume(O),S)}function v(O){return O===null||be(O)?y(O):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),w(O))}function w(O){return O===null||be(O)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),y(O)):O===96&&O===d?i(O):(n.consume(O),w)}function j(O){return n.attempt(s,I,_)(O)}function _(O){return n.enter("lineEnding"),n.consume(O),n.exit("lineEnding"),M}function M(O){return c>0&&Ae(O)?He(n,q,"linePrefix",c+1)(O):q(O)}function q(O){return O===null||be(O)?n.check(Sp,j,I)(O):(n.enter("codeFlowValue"),H(O))}function H(O){return O===null||be(O)?(n.exit("codeFlowValue"),q(O)):(n.consume(O),H)}function I(O){return n.exit("codeFenced"),a(O)}function P(O,$,se){let me=0;return B;function B(W){return O.enter("lineEnding"),O.consume(W),O.exit("lineEnding"),ne}function ne(W){return O.enter("codeFencedFence"),Ae(W)?He(O,ee,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):ee(W)}function ee(W){return W===d?(O.enter("codeFencedFenceSequence"),de(W)):se(W)}function de(W){return W===d?(me++,O.consume(W),de):me>=f?(O.exit("codeFencedFenceSequence"),Ae(W)?He(O,re,"whitespace")(W):re(W)):se(W)}function re(W){return W===null||be(W)?(O.exit("codeFencedFence"),$(W)):se(W)}}}function Ov(n,a,i){const u=this;return s;function s(f){return f===null?i(f):(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),c)}function c(f){return u.parser.lazy[u.now().line]?i(f):a(f)}}const Jo={name:"codeIndented",tokenize:Rv},Dv={partial:!0,tokenize:Lv};function Rv(n,a,i){const u=this;return s;function s(m){return n.enter("codeIndented"),He(n,c,"linePrefix",5)(m)}function c(m){const x=u.events[u.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?f(m):i(m)}function f(m){return m===null?p(m):be(m)?n.attempt(Dv,f,p)(m):(n.enter("codeFlowValue"),d(m))}function d(m){return m===null||be(m)?(n.exit("codeFlowValue"),f(m)):(n.consume(m),d)}function p(m){return n.exit("codeIndented"),a(m)}}function Lv(n,a,i){const u=this;return s;function s(f){return u.parser.lazy[u.now().line]?i(f):be(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),s):He(n,c,"linePrefix",5)(f)}function c(f){const d=u.events[u.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(f):be(f)?s(f):i(f)}}const Uv={name:"codeText",previous:Hv,resolve:Bv,tokenize:qv};function Bv(n){let a=n.length-4,i=3,u,s;if((n[i][1].type==="lineEnding"||n[i][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(u=i;++u<a;)if(n[u][1].type==="codeTextData"){n[i][1].type="codeTextPadding",n[a][1].type="codeTextPadding",i+=2,a-=2;break}}for(u=i-1,a++;++u<=a;)s===void 0?u!==a&&n[u][1].type!=="lineEnding"&&(s=u):(u===a||n[u][1].type==="lineEnding")&&(n[s][1].type="codeTextData",u!==s+2&&(n[s][1].end=n[u-1][1].end,n.splice(s+2,u-s-2),a-=u-s-2,u=s+2),s=void 0);return n}function Hv(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function qv(n,a,i){let u=0,s,c;return f;function f(y){return n.enter("codeText"),n.enter("codeTextSequence"),d(y)}function d(y){return y===96?(n.consume(y),u++,d):(n.exit("codeTextSequence"),p(y))}function p(y){return y===null?i(y):y===32?(n.enter("space"),n.consume(y),n.exit("space"),p):y===96?(c=n.enter("codeTextSequence"),s=0,x(y)):be(y)?(n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),p):(n.enter("codeTextData"),m(y))}function m(y){return y===null||y===32||y===96||be(y)?(n.exit("codeTextData"),p(y)):(n.consume(y),m)}function x(y){return y===96?(n.consume(y),s++,x):s===u?(n.exit("codeTextSequence"),n.exit("codeText"),a(y)):(c.type="codeTextData",m(y))}}class Yv{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,i){const u=i??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(a,u):a>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(a,i,u){const s=i||0;this.setCursor(Math.trunc(a));const c=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return u&&Ua(this.left,u),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),Ua(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Ua(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const i=this.left.splice(a,Number.POSITIVE_INFINITY);Ua(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Ua(this.left,i.reverse())}}}function Ua(n,a){let i=0;if(a.length<1e4)n.push(...a);else for(;i<a.length;)n.push(...a.slice(i,i+1e4)),i+=1e4}function U0(n){const a={};let i=-1,u,s,c,f,d,p,m;const x=new Yv(n);for(;++i<x.length;){for(;i in a;)i=a[i];if(u=x.get(i),i&&u[1].type==="chunkFlow"&&x.get(i-1)[1].type==="listItemPrefix"&&(p=u[1]._tokenizer.events,c=0,c<p.length&&p[c][1].type==="lineEndingBlank"&&(c+=2),c<p.length&&p[c][1].type==="content"))for(;++c<p.length&&p[c][1].type!=="content";)p[c][1].type==="chunkText"&&(p[c][1]._isInFirstContentOfListItem=!0,c++);if(u[0]==="enter")u[1].contentType&&(Object.assign(a,Vv(x,i)),i=a[i],m=!0);else if(u[1]._container){for(c=i,s=void 0;c--;)if(f=x.get(c),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(s&&(x.get(s)[1].type="lineEndingBlank"),f[1].type="lineEnding",s=c);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;s&&(u[1].end={...x.get(s)[1].start},d=x.slice(s,i),d.unshift(u),x.splice(s,i-s+1,d))}}return en(n,0,Number.POSITIVE_INFINITY,x.slice(0)),!m}function Vv(n,a){const i=n.get(a)[1],u=n.get(a)[2];let s=a-1;const c=[];let f=i._tokenizer;f||(f=u.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const d=f.events,p=[],m={};let x,y,S=-1,v=i,w=0,j=0;const _=[j];for(;v;){for(;n.get(++s)[1]!==v;);c.push(s),v._tokenizer||(x=u.sliceStream(v),v.next||x.push(null),y&&f.defineSkip(v.start),v._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(x),v._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),y=v,v=v.next}for(v=i;++S<d.length;)d[S][0]==="exit"&&d[S-1][0]==="enter"&&d[S][1].type===d[S-1][1].type&&d[S][1].start.line!==d[S][1].end.line&&(j=S+1,_.push(j),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(f.events=[],v?(v._tokenizer=void 0,v.previous=void 0):_.pop(),S=_.length;S--;){const M=d.slice(_[S],_[S+1]),q=c.pop();p.push([q,q+M.length-1]),n.splice(q,2,M)}for(p.reverse(),S=-1;++S<p.length;)m[w+p[S][0]]=w+p[S][1],w+=p[S][1]-p[S][0]-1;return m}const Fv={resolve:Gv,tokenize:Qv},Xv={partial:!0,tokenize:Zv};function Gv(n){return U0(n),n}function Qv(n,a){let i;return u;function u(d){return n.enter("content"),i=n.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){return d===null?c(d):be(d)?n.check(Xv,f,c)(d):(n.consume(d),s)}function c(d){return n.exit("chunkContent"),n.exit("content"),a(d)}function f(d){return n.consume(d),n.exit("chunkContent"),i.next=n.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,s}}function Zv(n,a,i){const u=this;return s;function s(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),He(n,c,"linePrefix")}function c(f){if(f===null||be(f))return i(f);const d=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(f):n.interrupt(u.parser.constructs.flow,i,a)(f)}}function B0(n,a,i,u,s,c,f,d,p){const m=p||Number.POSITIVE_INFINITY;let x=0;return y;function y(M){return M===60?(n.enter(u),n.enter(s),n.enter(c),n.consume(M),n.exit(c),S):M===null||M===32||M===41||gu(M)?i(M):(n.enter(u),n.enter(f),n.enter(d),n.enter("chunkString",{contentType:"string"}),j(M))}function S(M){return M===62?(n.enter(c),n.consume(M),n.exit(c),n.exit(s),n.exit(u),a):(n.enter(d),n.enter("chunkString",{contentType:"string"}),v(M))}function v(M){return M===62?(n.exit("chunkString"),n.exit(d),S(M)):M===null||M===60||be(M)?i(M):(n.consume(M),M===92?w:v)}function w(M){return M===60||M===62||M===92?(n.consume(M),v):v(M)}function j(M){return!x&&(M===null||M===41||Pe(M))?(n.exit("chunkString"),n.exit(d),n.exit(f),n.exit(u),a(M)):x<m&&M===40?(n.consume(M),x++,j):M===41?(n.consume(M),x--,j):M===null||M===32||M===40||gu(M)?i(M):(n.consume(M),M===92?_:j)}function _(M){return M===40||M===41||M===92?(n.consume(M),j):j(M)}}function H0(n,a,i,u,s,c){const f=this;let d=0,p;return m;function m(v){return n.enter(u),n.enter(s),n.consume(v),n.exit(s),n.enter(c),x}function x(v){return d>999||v===null||v===91||v===93&&!p||v===94&&!d&&"_hiddenFootnoteSupport"in f.parser.constructs?i(v):v===93?(n.exit(c),n.enter(s),n.consume(v),n.exit(s),n.exit(u),a):be(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),x):(n.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===null||v===91||v===93||be(v)||d++>999?(n.exit("chunkString"),x(v)):(n.consume(v),p||(p=!Ae(v)),v===92?S:y)}function S(v){return v===91||v===92||v===93?(n.consume(v),d++,y):y(v)}}function q0(n,a,i,u,s,c){let f;return d;function d(S){return S===34||S===39||S===40?(n.enter(u),n.enter(s),n.consume(S),n.exit(s),f=S===40?41:S,p):i(S)}function p(S){return S===f?(n.enter(s),n.consume(S),n.exit(s),n.exit(u),a):(n.enter(c),m(S))}function m(S){return S===f?(n.exit(c),p(f)):S===null?i(S):be(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),He(n,m,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),x(S))}function x(S){return S===f||S===null||be(S)?(n.exit("chunkString"),m(S)):(n.consume(S),S===92?y:x)}function y(S){return S===f||S===92?(n.consume(S),x):x(S)}}function qa(n,a){let i;return u;function u(s){return be(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),i=!0,u):Ae(s)?He(n,u,i?"linePrefix":"lineSuffix")(s):a(s)}}const Jv={name:"definition",tokenize:Iv},Kv={partial:!0,tokenize:$v};function Iv(n,a,i){const u=this;let s;return c;function c(v){return n.enter("definition"),f(v)}function f(v){return H0.call(u,n,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function d(v){return s=vn(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),v===58?(n.enter("definitionMarker"),n.consume(v),n.exit("definitionMarker"),p):i(v)}function p(v){return Pe(v)?qa(n,m)(v):m(v)}function m(v){return B0(n,x,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function x(v){return n.attempt(Kv,y,y)(v)}function y(v){return Ae(v)?He(n,S,"whitespace")(v):S(v)}function S(v){return v===null||be(v)?(n.exit("definition"),u.parser.defined.push(s),a(v)):i(v)}}function $v(n,a,i){return u;function u(d){return Pe(d)?qa(n,s)(d):i(d)}function s(d){return q0(n,c,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function c(d){return Ae(d)?He(n,f,"whitespace")(d):f(d)}function f(d){return d===null||be(d)?a(d):i(d)}}const Wv={name:"hardBreakEscape",tokenize:Pv};function Pv(n,a,i){return u;function u(c){return n.enter("hardBreakEscape"),n.consume(c),s}function s(c){return be(c)?(n.exit("hardBreakEscape"),a(c)):i(c)}}const e2={name:"headingAtx",resolve:t2,tokenize:n2};function t2(n,a){let i=n.length-2,u=3,s,c;return n[u][1].type==="whitespace"&&(u+=2),i-2>u&&n[i][1].type==="whitespace"&&(i-=2),n[i][1].type==="atxHeadingSequence"&&(u===i-1||i-4>u&&n[i-2][1].type==="whitespace")&&(i-=u+1===i?2:4),i>u&&(s={type:"atxHeadingText",start:n[u][1].start,end:n[i][1].end},c={type:"chunkText",start:n[u][1].start,end:n[i][1].end,contentType:"text"},en(n,u,i-u+1,[["enter",s,a],["enter",c,a],["exit",c,a],["exit",s,a]])),n}function n2(n,a,i){let u=0;return s;function s(x){return n.enter("atxHeading"),c(x)}function c(x){return n.enter("atxHeadingSequence"),f(x)}function f(x){return x===35&&u++<6?(n.consume(x),f):x===null||Pe(x)?(n.exit("atxHeadingSequence"),d(x)):i(x)}function d(x){return x===35?(n.enter("atxHeadingSequence"),p(x)):x===null||be(x)?(n.exit("atxHeading"),a(x)):Ae(x)?He(n,d,"whitespace")(x):(n.enter("atxHeadingText"),m(x))}function p(x){return x===35?(n.consume(x),p):(n.exit("atxHeadingSequence"),d(x))}function m(x){return x===null||x===35||Pe(x)?(n.exit("atxHeadingText"),d(x)):(n.consume(x),m)}}const l2=["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"],kp=["pre","script","style","textarea"],i2={concrete:!0,name:"htmlFlow",resolveTo:u2,tokenize:s2},a2={partial:!0,tokenize:c2},r2={partial:!0,tokenize:o2};function u2(n){let a=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););return a>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}function s2(n,a,i){const u=this;let s,c,f,d,p;return m;function m(k){return x(k)}function x(k){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(k),y}function y(k){return k===33?(n.consume(k),S):k===47?(n.consume(k),c=!0,j):k===63?(n.consume(k),s=3,u.interrupt?a:E):Ot(k)?(n.consume(k),f=String.fromCharCode(k),_):i(k)}function S(k){return k===45?(n.consume(k),s=2,v):k===91?(n.consume(k),s=5,d=0,w):Ot(k)?(n.consume(k),s=4,u.interrupt?a:E):i(k)}function v(k){return k===45?(n.consume(k),u.interrupt?a:E):i(k)}function w(k){const ae="CDATA[";return k===ae.charCodeAt(d++)?(n.consume(k),d===ae.length?u.interrupt?a:ee:w):i(k)}function j(k){return Ot(k)?(n.consume(k),f=String.fromCharCode(k),_):i(k)}function _(k){if(k===null||k===47||k===62||Pe(k)){const ae=k===47,ge=f.toLowerCase();return!ae&&!c&&kp.includes(ge)?(s=1,u.interrupt?a(k):ee(k)):l2.includes(f.toLowerCase())?(s=6,ae?(n.consume(k),M):u.interrupt?a(k):ee(k)):(s=7,u.interrupt&&!u.parser.lazy[u.now().line]?i(k):c?q(k):H(k))}return k===45||jt(k)?(n.consume(k),f+=String.fromCharCode(k),_):i(k)}function M(k){return k===62?(n.consume(k),u.interrupt?a:ee):i(k)}function q(k){return Ae(k)?(n.consume(k),q):B(k)}function H(k){return k===47?(n.consume(k),B):k===58||k===95||Ot(k)?(n.consume(k),I):Ae(k)?(n.consume(k),H):B(k)}function I(k){return k===45||k===46||k===58||k===95||jt(k)?(n.consume(k),I):P(k)}function P(k){return k===61?(n.consume(k),O):Ae(k)?(n.consume(k),P):H(k)}function O(k){return k===null||k===60||k===61||k===62||k===96?i(k):k===34||k===39?(n.consume(k),p=k,$):Ae(k)?(n.consume(k),O):se(k)}function $(k){return k===p?(n.consume(k),p=null,me):k===null||be(k)?i(k):(n.consume(k),$)}function se(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Pe(k)?P(k):(n.consume(k),se)}function me(k){return k===47||k===62||Ae(k)?H(k):i(k)}function B(k){return k===62?(n.consume(k),ne):i(k)}function ne(k){return k===null||be(k)?ee(k):Ae(k)?(n.consume(k),ne):i(k)}function ee(k){return k===45&&s===2?(n.consume(k),R):k===60&&s===1?(n.consume(k),K):k===62&&s===4?(n.consume(k),C):k===63&&s===3?(n.consume(k),E):k===93&&s===5?(n.consume(k),ze):be(k)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(a2,F,de)(k)):k===null||be(k)?(n.exit("htmlFlowData"),de(k)):(n.consume(k),ee)}function de(k){return n.check(r2,re,F)(k)}function re(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),W}function W(k){return k===null||be(k)?de(k):(n.enter("htmlFlowData"),ee(k))}function R(k){return k===45?(n.consume(k),E):ee(k)}function K(k){return k===47?(n.consume(k),f="",oe):ee(k)}function oe(k){if(k===62){const ae=f.toLowerCase();return kp.includes(ae)?(n.consume(k),C):ee(k)}return Ot(k)&&f.length<8?(n.consume(k),f+=String.fromCharCode(k),oe):ee(k)}function ze(k){return k===93?(n.consume(k),E):ee(k)}function E(k){return k===62?(n.consume(k),C):k===45&&s===2?(n.consume(k),E):ee(k)}function C(k){return k===null||be(k)?(n.exit("htmlFlowData"),F(k)):(n.consume(k),C)}function F(k){return n.exit("htmlFlow"),a(k)}}function o2(n,a,i){const u=this;return s;function s(f){return be(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),c):i(f)}function c(f){return u.parser.lazy[u.now().line]?i(f):a(f)}}function c2(n,a,i){return u;function u(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(Qa,a,i)}}const f2={name:"htmlText",tokenize:h2};function h2(n,a,i){const u=this;let s,c,f;return d;function d(E){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(E),p}function p(E){return E===33?(n.consume(E),m):E===47?(n.consume(E),P):E===63?(n.consume(E),H):Ot(E)?(n.consume(E),se):i(E)}function m(E){return E===45?(n.consume(E),x):E===91?(n.consume(E),c=0,w):Ot(E)?(n.consume(E),q):i(E)}function x(E){return E===45?(n.consume(E),v):i(E)}function y(E){return E===null?i(E):E===45?(n.consume(E),S):be(E)?(f=y,K(E)):(n.consume(E),y)}function S(E){return E===45?(n.consume(E),v):y(E)}function v(E){return E===62?R(E):E===45?S(E):y(E)}function w(E){const C="CDATA[";return E===C.charCodeAt(c++)?(n.consume(E),c===C.length?j:w):i(E)}function j(E){return E===null?i(E):E===93?(n.consume(E),_):be(E)?(f=j,K(E)):(n.consume(E),j)}function _(E){return E===93?(n.consume(E),M):j(E)}function M(E){return E===62?R(E):E===93?(n.consume(E),M):j(E)}function q(E){return E===null||E===62?R(E):be(E)?(f=q,K(E)):(n.consume(E),q)}function H(E){return E===null?i(E):E===63?(n.consume(E),I):be(E)?(f=H,K(E)):(n.consume(E),H)}function I(E){return E===62?R(E):H(E)}function P(E){return Ot(E)?(n.consume(E),O):i(E)}function O(E){return E===45||jt(E)?(n.consume(E),O):$(E)}function $(E){return be(E)?(f=$,K(E)):Ae(E)?(n.consume(E),$):R(E)}function se(E){return E===45||jt(E)?(n.consume(E),se):E===47||E===62||Pe(E)?me(E):i(E)}function me(E){return E===47?(n.consume(E),R):E===58||E===95||Ot(E)?(n.consume(E),B):be(E)?(f=me,K(E)):Ae(E)?(n.consume(E),me):R(E)}function B(E){return E===45||E===46||E===58||E===95||jt(E)?(n.consume(E),B):ne(E)}function ne(E){return E===61?(n.consume(E),ee):be(E)?(f=ne,K(E)):Ae(E)?(n.consume(E),ne):me(E)}function ee(E){return E===null||E===60||E===61||E===62||E===96?i(E):E===34||E===39?(n.consume(E),s=E,de):be(E)?(f=ee,K(E)):Ae(E)?(n.consume(E),ee):(n.consume(E),re)}function de(E){return E===s?(n.consume(E),s=void 0,W):E===null?i(E):be(E)?(f=de,K(E)):(n.consume(E),de)}function re(E){return E===null||E===34||E===39||E===60||E===61||E===96?i(E):E===47||E===62||Pe(E)?me(E):(n.consume(E),re)}function W(E){return E===47||E===62||Pe(E)?me(E):i(E)}function R(E){return E===62?(n.consume(E),n.exit("htmlTextData"),n.exit("htmlText"),a):i(E)}function K(E){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),oe}function oe(E){return Ae(E)?He(n,ze,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):ze(E)}function ze(E){return n.enter("htmlTextData"),f(E)}}const Uc={name:"labelEnd",resolveAll:g2,resolveTo:x2,tokenize:y2},d2={tokenize:b2},m2={tokenize:v2},p2={tokenize:S2};function g2(n){let a=-1;const i=[];for(;++a<n.length;){const u=n[a][1];if(i.push(n[a]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const s=u.type==="labelImage"?4:2;u.type="data",a+=s}}return n.length!==i.length&&en(n,0,n.length,i),n}function x2(n,a){let i=n.length,u=0,s,c,f,d;for(;i--;)if(s=n[i][1],c){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;n[i][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(f){if(n[i][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(c=i,s.type!=="labelLink")){u=2;break}}else s.type==="labelEnd"&&(f=i);const p={type:n[c][1].type==="labelLink"?"link":"image",start:{...n[c][1].start},end:{...n[n.length-1][1].end}},m={type:"label",start:{...n[c][1].start},end:{...n[f][1].end}},x={type:"labelText",start:{...n[c+u+2][1].end},end:{...n[f-2][1].start}};return d=[["enter",p,a],["enter",m,a]],d=mn(d,n.slice(c+1,c+u+3)),d=mn(d,[["enter",x,a]]),d=mn(d,zu(a.parser.constructs.insideSpan.null,n.slice(c+u+4,f-3),a)),d=mn(d,[["exit",x,a],n[f-2],n[f-1],["exit",m,a]]),d=mn(d,n.slice(f+1)),d=mn(d,[["exit",p,a]]),en(n,c,n.length,d),n}function y2(n,a,i){const u=this;let s=u.events.length,c,f;for(;s--;)if((u.events[s][1].type==="labelImage"||u.events[s][1].type==="labelLink")&&!u.events[s][1]._balanced){c=u.events[s][1];break}return d;function d(S){return c?c._inactive?y(S):(f=u.parser.defined.includes(vn(u.sliceSerialize({start:c.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(S),n.exit("labelMarker"),n.exit("labelEnd"),p):i(S)}function p(S){return S===40?n.attempt(d2,x,f?x:y)(S):S===91?n.attempt(m2,x,f?m:y)(S):f?x(S):y(S)}function m(S){return n.attempt(p2,x,y)(S)}function x(S){return a(S)}function y(S){return c._balanced=!0,i(S)}}function b2(n,a,i){return u;function u(y){return n.enter("resource"),n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),s}function s(y){return Pe(y)?qa(n,c)(y):c(y)}function c(y){return y===41?x(y):B0(n,f,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function f(y){return Pe(y)?qa(n,p)(y):x(y)}function d(y){return i(y)}function p(y){return y===34||y===39||y===40?q0(n,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):x(y)}function m(y){return Pe(y)?qa(n,x)(y):x(y)}function x(y){return y===41?(n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),n.exit("resource"),a):i(y)}}function v2(n,a,i){const u=this;return s;function s(d){return H0.call(u,n,c,f,"reference","referenceMarker","referenceString")(d)}function c(d){return u.parser.defined.includes(vn(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?a(d):i(d)}function f(d){return i(d)}}function S2(n,a,i){return u;function u(c){return n.enter("reference"),n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),s}function s(c){return c===93?(n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),n.exit("reference"),a):i(c)}}const z2={name:"labelStartImage",resolveAll:Uc.resolveAll,tokenize:k2};function k2(n,a,i){const u=this;return s;function s(d){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(d),n.exit("labelImageMarker"),c}function c(d){return d===91?(n.enter("labelMarker"),n.consume(d),n.exit("labelMarker"),n.exit("labelImage"),f):i(d)}function f(d){return d===94&&"_hiddenFootnoteSupport"in u.parser.constructs?i(d):a(d)}}const w2={name:"labelStartLink",resolveAll:Uc.resolveAll,tokenize:E2};function E2(n,a,i){const u=this;return s;function s(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 u.parser.constructs?i(f):a(f)}}const Ko={name:"lineEnding",tokenize:T2};function T2(n,a){return i;function i(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),He(n,a,"linePrefix")}}const du={name:"thematicBreak",tokenize:C2};function C2(n,a,i){let u=0,s;return c;function c(m){return n.enter("thematicBreak"),f(m)}function f(m){return s=m,d(m)}function d(m){return m===s?(n.enter("thematicBreakSequence"),p(m)):u>=3&&(m===null||be(m))?(n.exit("thematicBreak"),a(m)):i(m)}function p(m){return m===s?(n.consume(m),u++,p):(n.exit("thematicBreakSequence"),Ae(m)?He(n,d,"whitespace")(m):d(m))}}const Vt={continuation:{tokenize:A2},exit:O2,name:"list",tokenize:M2},N2={partial:!0,tokenize:D2},j2={partial:!0,tokenize:_2};function M2(n,a,i){const u=this,s=u.events[u.events.length-1];let c=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,f=0;return d;function d(v){const w=u.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!u.containerState.marker||v===u.containerState.marker:gc(v)){if(u.containerState.type||(u.containerState.type=w,n.enter(w,{_container:!0})),w==="listUnordered")return n.enter("listItemPrefix"),v===42||v===45?n.check(du,i,m)(v):m(v);if(!u.interrupt||v===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),p(v)}return i(v)}function p(v){return gc(v)&&++f<10?(n.consume(v),p):(!u.interrupt||f<2)&&(u.containerState.marker?v===u.containerState.marker:v===41||v===46)?(n.exit("listItemValue"),m(v)):i(v)}function m(v){return n.enter("listItemMarker"),n.consume(v),n.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||v,n.check(Qa,u.interrupt?i:x,n.attempt(N2,S,y))}function x(v){return u.containerState.initialBlankLine=!0,c++,S(v)}function y(v){return Ae(v)?(n.enter("listItemPrefixWhitespace"),n.consume(v),n.exit("listItemPrefixWhitespace"),S):i(v)}function S(v){return u.containerState.size=c+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(v)}}function A2(n,a,i){const u=this;return u.containerState._closeFlow=void 0,n.check(Qa,s,c);function s(d){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,He(n,a,"listItemIndent",u.containerState.size+1)(d)}function c(d){return u.containerState.furtherBlankLines||!Ae(d)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,f(d)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,n.attempt(j2,a,f)(d))}function f(d){return u.containerState._closeFlow=!0,u.interrupt=void 0,He(n,n.attempt(Vt,a,i),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function _2(n,a,i){const u=this;return He(n,s,"listItemIndent",u.containerState.size+1);function s(c){const f=u.events[u.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===u.containerState.size?a(c):i(c)}}function O2(n){n.exit(this.containerState.type)}function D2(n,a,i){const u=this;return He(n,s,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(c){const f=u.events[u.events.length-1];return!Ae(c)&&f&&f[1].type==="listItemPrefixWhitespace"?a(c):i(c)}}const wp={name:"setextUnderline",resolveTo:R2,tokenize:L2};function R2(n,a){let i=n.length,u,s,c;for(;i--;)if(n[i][0]==="enter"){if(n[i][1].type==="content"){u=i;break}n[i][1].type==="paragraph"&&(s=i)}else n[i][1].type==="content"&&n.splice(i,1),!c&&n[i][1].type==="definition"&&(c=i);const f={type:"setextHeading",start:{...n[u][1].start},end:{...n[n.length-1][1].end}};return n[s][1].type="setextHeadingText",c?(n.splice(s,0,["enter",f,a]),n.splice(c+1,0,["exit",n[u][1],a]),n[u][1].end={...n[c][1].end}):n[u][1]=f,n.push(["exit",f,a]),n}function L2(n,a,i){const u=this;let s;return c;function c(m){let x=u.events.length,y;for(;x--;)if(u.events[x][1].type!=="lineEnding"&&u.events[x][1].type!=="linePrefix"&&u.events[x][1].type!=="content"){y=u.events[x][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||y)?(n.enter("setextHeadingLine"),s=m,f(m)):i(m)}function f(m){return n.enter("setextHeadingLineSequence"),d(m)}function d(m){return m===s?(n.consume(m),d):(n.exit("setextHeadingLineSequence"),Ae(m)?He(n,p,"lineSuffix")(m):p(m))}function p(m){return m===null||be(m)?(n.exit("setextHeadingLine"),a(m)):i(m)}}const U2={tokenize:B2};function B2(n){const a=this,i=n.attempt(Qa,u,n.attempt(this.parser.constructs.flowInitial,s,He(n,n.attempt(this.parser.constructs.flow,s,n.attempt(Fv,s)),"linePrefix")));return i;function u(c){if(c===null){n.consume(c);return}return n.enter("lineEndingBlank"),n.consume(c),n.exit("lineEndingBlank"),a.currentConstruct=void 0,i}function s(c){if(c===null){n.consume(c);return}return n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),a.currentConstruct=void 0,i}}const H2={resolveAll:V0()},q2=Y0("string"),Y2=Y0("text");function Y0(n){return{resolveAll:V0(n==="text"?V2:void 0),tokenize:a};function a(i){const u=this,s=this.parser.constructs[n],c=i.attempt(s,f,d);return f;function f(x){return m(x)?c(x):d(x)}function d(x){if(x===null){i.consume(x);return}return i.enter("data"),i.consume(x),p}function p(x){return m(x)?(i.exit("data"),c(x)):(i.consume(x),p)}function m(x){if(x===null)return!0;const y=s[x];let S=-1;if(y)for(;++S<y.length;){const v=y[S];if(!v.previous||v.previous.call(u,u.previous))return!0}return!1}}}function V0(n){return a;function a(i,u){let s=-1,c;for(;++s<=i.length;)c===void 0?i[s]&&i[s][1].type==="data"&&(c=s,s++):(!i[s]||i[s][1].type!=="data")&&(s!==c+2&&(i[c][1].end=i[s-1][1].end,i.splice(c+2,s-c-2),s=c+2),c=void 0);return n?n(i,u):i}}function V2(n,a){let i=0;for(;++i<=n.length;)if((i===n.length||n[i][1].type==="lineEnding")&&n[i-1][1].type==="data"){const u=n[i-1][1],s=a.sliceStream(u);let c=s.length,f=-1,d=0,p;for(;c--;){const m=s[c];if(typeof m=="string"){for(f=m.length;m.charCodeAt(f-1)===32;)d++,f--;if(f)break;f=-1}else if(m===-2)p=!0,d++;else if(m!==-1){c++;break}}if(a._contentTypeTextTrailing&&i===n.length&&(d=0),d){const m={type:i===n.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?f:u.start._bufferIndex+f,_index:u.start._index+c,line:u.end.line,column:u.end.column-d,offset:u.end.offset-d},end:{...u.end}};u.end={...m.start},u.start.offset===u.end.offset?Object.assign(u,m):(n.splice(i,0,["enter",m,a],["exit",m,a]),i+=2)}i++}return n}const F2={42:Vt,43:Vt,45:Vt,48:Vt,49:Vt,50:Vt,51:Vt,52:Vt,53:Vt,54:Vt,55:Vt,56:Vt,57:Vt,62:D0},X2={91:Jv},G2={[-2]:Jo,[-1]:Jo,32:Jo},Q2={35:e2,42:du,45:[wp,du],60:i2,61:wp,95:du,96:zp,126:zp},Z2={38:L0,92:R0},J2={[-5]:Ko,[-4]:Ko,[-3]:Ko,33:z2,38:L0,42:xc,60:[wv,f2],91:w2,92:[Wv,R0],93:Uc,95:xc,96:Uv},K2={null:[xc,H2]},I2={null:[42,95]},$2={null:[]},W2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:I2,contentInitial:X2,disable:$2,document:F2,flow:Q2,flowInitial:G2,insideSpan:K2,string:Z2,text:J2},Symbol.toStringTag,{value:"Module"}));function P2(n,a,i){let u={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const s={},c=[];let f=[],d=[];const p={attempt:$(P),check:$(O),consume:q,enter:H,exit:I,interrupt:$(O,{interrupt:!0})},m={code:null,containerState:{},defineSkip:j,events:[],now:w,parser:n,previous:null,sliceSerialize:S,sliceStream:v,write:y};let x=a.tokenize.call(m,p);return a.resolveAll&&c.push(a),m;function y(ne){return f=mn(f,ne),_(),f[f.length-1]!==null?[]:(se(a,0),m.events=zu(c,m.events,m),m.events)}function S(ne,ee){return tS(v(ne),ee)}function v(ne){return eS(f,ne)}function w(){const{_bufferIndex:ne,_index:ee,line:de,column:re,offset:W}=u;return{_bufferIndex:ne,_index:ee,line:de,column:re,offset:W}}function j(ne){s[ne.line]=ne.column,B()}function _(){let ne;for(;u._index<f.length;){const ee=f[u._index];if(typeof ee=="string")for(ne=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===ne&&u._bufferIndex<ee.length;)M(ee.charCodeAt(u._bufferIndex));else M(ee)}}function M(ne){x=x(ne)}function q(ne){be(ne)?(u.line++,u.column=1,u.offset+=ne===-3?2:1,B()):ne!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===f[u._index].length&&(u._bufferIndex=-1,u._index++)),m.previous=ne}function H(ne,ee){const de=ee||{};return de.type=ne,de.start=w(),m.events.push(["enter",de,m]),d.push(de),de}function I(ne){const ee=d.pop();return ee.end=w(),m.events.push(["exit",ee,m]),ee}function P(ne,ee){se(ne,ee.from)}function O(ne,ee){ee.restore()}function $(ne,ee){return de;function de(re,W,R){let K,oe,ze,E;return Array.isArray(re)?F(re):"tokenize"in re?F([re]):C(re);function C(xe){return we;function we(ue){const ce=ue!==null&&xe[ue],Oe=ue!==null&&xe.null,De=[...Array.isArray(ce)?ce:ce?[ce]:[],...Array.isArray(Oe)?Oe:Oe?[Oe]:[]];return F(De)(ue)}}function F(xe){return K=xe,oe=0,xe.length===0?R:k(xe[oe])}function k(xe){return we;function we(ue){return E=me(),ze=xe,xe.partial||(m.currentConstruct=xe),xe.name&&m.parser.constructs.disable.null.includes(xe.name)?ge():xe.tokenize.call(ee?Object.assign(Object.create(m),ee):m,p,ae,ge)(ue)}}function ae(xe){return ne(ze,E),W}function ge(xe){return E.restore(),++oe<K.length?k(K[oe]):R}}}function se(ne,ee){ne.resolveAll&&!c.includes(ne)&&c.push(ne),ne.resolve&&en(m.events,ee,m.events.length-ee,ne.resolve(m.events.slice(ee),m)),ne.resolveTo&&(m.events=ne.resolveTo(m.events,m))}function me(){const ne=w(),ee=m.previous,de=m.currentConstruct,re=m.events.length,W=Array.from(d);return{from:re,restore:R};function R(){u=ne,m.previous=ee,m.currentConstruct=de,m.events.length=re,d=W,B()}}function B(){u.line in s&&u.column<2&&(u.column=s[u.line],u.offset+=s[u.line]-1)}}function eS(n,a){const i=a.start._index,u=a.start._bufferIndex,s=a.end._index,c=a.end._bufferIndex;let f;if(i===s)f=[n[i].slice(u,c)];else{if(f=n.slice(i,s),u>-1){const d=f[0];typeof d=="string"?f[0]=d.slice(u):f.shift()}c>0&&f.push(n[s].slice(0,c))}return f}function tS(n,a){let i=-1;const u=[];let s;for(;++i<n.length;){const c=n[i];let f;if(typeof c=="string")f=c;else switch(c){case-5:{f="\r";break}case-4:{f=`
259
+ `;break}case-3:{f=`\r
260
+ `;break}case-2:{f=a?" ":" ";break}case-1:{if(!a&&s)continue;f=" ";break}default:f=String.fromCharCode(c)}s=c===-2,u.push(f)}return u.join("")}function nS(n){const u={constructs:_0([W2,...(n||{}).extensions||[]]),content:s(xv),defined:[],document:s(bv),flow:s(U2),lazy:{},string:s(q2),text:s(Y2)};return u;function s(c){return f;function f(d){return P2(u,c,d)}}}function lS(n){for(;!U0(n););return n}const Ep=/[\0\t\n\r]/g;function iS(){let n=1,a="",i=!0,u;return s;function s(c,f,d){const p=[];let m,x,y,S,v;for(c=a+(typeof c=="string"?c.toString():new TextDecoder(f||void 0).decode(c)),y=0,a="",i&&(c.charCodeAt(0)===65279&&y++,i=void 0);y<c.length;){if(Ep.lastIndex=y,m=Ep.exec(c),S=m&&m.index!==void 0?m.index:c.length,v=c.charCodeAt(S),!m){a=c.slice(y);break}if(v===10&&y===S&&u)p.push(-3),u=void 0;else switch(u&&(p.push(-5),u=void 0),y<S&&(p.push(c.slice(y,S)),n+=S-y),v){case 0:{p.push(65533),n++;break}case 9:{for(x=Math.ceil(n/4)*4,p.push(-2);n++<x;)p.push(-1);break}case 10:{p.push(-4),n=1;break}default:u=!0,n=1}y=S+1}return d&&(u&&p.push(-5),a&&p.push(a),p.push(null)),p}}const aS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function rS(n){return n.replace(aS,uS)}function uS(n,a,i){if(a)return a;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),c=s===120||s===88;return O0(i.slice(c?2:1),c?16:10)}return Lc(i)||n}const F0={}.hasOwnProperty;function sS(n,a,i){return typeof a!="string"&&(i=a,a=void 0),oS(i)(lS(nS(i).document().write(iS()(n,a,!0))))}function oS(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Cn),autolinkProtocol:me,autolinkEmail:me,atxHeading:c(Dt),blockQuote:c(Oe),characterEscape:me,characterReference:me,codeFenced:c(De),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:c(De,f),codeText:c($e,f),codeTextData:me,data:me,codeFlowValue:me,definition:c(Gt),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:c(at),hardBreakEscape:c(tn),hardBreakTrailing:c(tn),htmlFlow:c(pn,f),htmlFlowData:me,htmlText:c(pn,f),htmlTextData:me,image:c(Xl),label:f,link:c(Cn),listItem:c(kl),listItemValue:S,listOrdered:c(Jn,y),listUnordered:c(Jn),paragraph:c(qi),reference:k,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:c(Dt),strong:c(Yi),thematicBreak:c(Vi)},exit:{atxHeading:p(),atxHeadingSequence:P,autolink:p(),autolinkEmail:ce,autolinkProtocol:ue,blockQuote:p(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:xe,characterReference:we,codeFenced:p(_),codeFencedFence:j,codeFencedFenceInfo:v,codeFencedFenceMeta:w,codeFlowValue:B,codeIndented:p(M),codeText:p(W),codeTextData:B,data:B,definition:p(),definitionDestinationString:I,definitionLabelString:q,definitionTitleString:H,emphasis:p(),hardBreakEscape:p(ee),hardBreakTrailing:p(ee),htmlFlow:p(de),htmlFlowData:B,htmlText:p(re),htmlTextData:B,image:p(K),label:ze,labelText:oe,lineEnding:ne,link:p(R),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ae,resourceDestinationString:E,resourceTitleString:C,resource:F,setextHeading:p(se),setextHeadingLineSequence:$,setextHeadingText:O,strong:p(),thematicBreak:p()}};X0(a,(n||{}).mdastExtensions||[]);const i={};return u;function u(G){let ie={type:"root",children:[]};const ve={stack:[ie],tokenStack:[],config:a,enter:d,exit:m,buffer:f,resume:x,data:i},Ee=[];let Ue=-1;for(;++Ue<G.length;)if(G[Ue][1].type==="listOrdered"||G[Ue][1].type==="listUnordered")if(G[Ue][0]==="enter")Ee.push(Ue);else{const At=Ee.pop();Ue=s(G,At,Ue)}for(Ue=-1;++Ue<G.length;){const At=a[G[Ue][0]];F0.call(At,G[Ue][1].type)&&At[G[Ue][1].type].call(Object.assign({sliceSerialize:G[Ue][2].sliceSerialize},ve),G[Ue][1])}if(ve.tokenStack.length>0){const At=ve.tokenStack[ve.tokenStack.length-1];(At[1]||Tp).call(ve,void 0,At[0])}for(ie.position={start:vl(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:vl(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},Ue=-1;++Ue<a.transforms.length;)ie=a.transforms[Ue](ie)||ie;return ie}function s(G,ie,ve){let Ee=ie-1,Ue=-1,At=!1,gn,St,st,Ct;for(;++Ee<=ve;){const Ge=G[Ee];switch(Ge[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ge[0]==="enter"?Ue++:Ue--,Ct=void 0;break}case"lineEndingBlank":{Ge[0]==="enter"&&(gn&&!Ct&&!Ue&&!st&&(st=Ee),Ct=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ct=void 0}if(!Ue&&Ge[0]==="enter"&&Ge[1].type==="listItemPrefix"||Ue===-1&&Ge[0]==="exit"&&(Ge[1].type==="listUnordered"||Ge[1].type==="listOrdered")){if(gn){let Z=Ee;for(St=void 0;Z--;){const le=G[Z];if(le[1].type==="lineEnding"||le[1].type==="lineEndingBlank"){if(le[0]==="exit")continue;St&&(G[St][1].type="lineEndingBlank",At=!0),le[1].type="lineEnding",St=Z}else if(!(le[1].type==="linePrefix"||le[1].type==="blockQuotePrefix"||le[1].type==="blockQuotePrefixWhitespace"||le[1].type==="blockQuoteMarker"||le[1].type==="listItemIndent"))break}st&&(!St||st<St)&&(gn._spread=!0),gn.end=Object.assign({},St?G[St][1].start:Ge[1].end),G.splice(St||Ee,0,["exit",gn,Ge[2]]),Ee++,ve++}if(Ge[1].type==="listItemPrefix"){const Z={type:"listItem",_spread:!1,start:Object.assign({},Ge[1].start),end:void 0};gn=Z,G.splice(Ee,0,["enter",Z,Ge[2]]),Ee++,ve++,st=void 0,Ct=!0}}}return G[ie][1]._spread=At,ve}function c(G,ie){return ve;function ve(Ee){d.call(this,G(Ee),Ee),ie&&ie.call(this,Ee)}}function f(){this.stack.push({type:"fragment",children:[]})}function d(G,ie,ve){this.stack[this.stack.length-1].children.push(G),this.stack.push(G),this.tokenStack.push([ie,ve||void 0]),G.position={start:vl(ie.start),end:void 0}}function p(G){return ie;function ie(ve){G&&G.call(this,ve),m.call(this,ve)}}function m(G,ie){const ve=this.stack.pop(),Ee=this.tokenStack.pop();if(Ee)Ee[0].type!==G.type&&(ie?ie.call(this,G,Ee[0]):(Ee[1]||Tp).call(this,G,Ee[0]));else throw new Error("Cannot close `"+G.type+"` ("+Ha({start:G.start,end:G.end})+"): it’s not open");ve.position.end=vl(G.end)}function x(){return Rc(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function S(G){if(this.data.expectingFirstListItemValue){const ie=this.stack[this.stack.length-2];ie.start=Number.parseInt(this.sliceSerialize(G),10),this.data.expectingFirstListItemValue=void 0}}function v(){const G=this.resume(),ie=this.stack[this.stack.length-1];ie.lang=G}function w(){const G=this.resume(),ie=this.stack[this.stack.length-1];ie.meta=G}function j(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const G=this.resume(),ie=this.stack[this.stack.length-1];ie.value=G.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function M(){const G=this.resume(),ie=this.stack[this.stack.length-1];ie.value=G.replace(/(\r?\n|\r)$/g,"")}function q(G){const ie=this.resume(),ve=this.stack[this.stack.length-1];ve.label=ie,ve.identifier=vn(this.sliceSerialize(G)).toLowerCase()}function H(){const G=this.resume(),ie=this.stack[this.stack.length-1];ie.title=G}function I(){const G=this.resume(),ie=this.stack[this.stack.length-1];ie.url=G}function P(G){const ie=this.stack[this.stack.length-1];if(!ie.depth){const ve=this.sliceSerialize(G).length;ie.depth=ve}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function $(G){const ie=this.stack[this.stack.length-1];ie.depth=this.sliceSerialize(G).codePointAt(0)===61?1:2}function se(){this.data.setextHeadingSlurpLineEnding=void 0}function me(G){const ve=this.stack[this.stack.length-1].children;let Ee=ve[ve.length-1];(!Ee||Ee.type!=="text")&&(Ee=vt(),Ee.position={start:vl(G.start),end:void 0},ve.push(Ee)),this.stack.push(Ee)}function B(G){const ie=this.stack.pop();ie.value+=this.sliceSerialize(G),ie.position.end=vl(G.end)}function ne(G){const ie=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ve=ie.children[ie.children.length-1];ve.position.end=vl(G.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(ie.type)&&(me.call(this,G),B.call(this,G))}function ee(){this.data.atHardBreak=!0}function de(){const G=this.resume(),ie=this.stack[this.stack.length-1];ie.value=G}function re(){const G=this.resume(),ie=this.stack[this.stack.length-1];ie.value=G}function W(){const G=this.resume(),ie=this.stack[this.stack.length-1];ie.value=G}function R(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=ie,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function K(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=ie,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function oe(G){const ie=this.sliceSerialize(G),ve=this.stack[this.stack.length-2];ve.label=rS(ie),ve.identifier=vn(ie).toLowerCase()}function ze(){const G=this.stack[this.stack.length-1],ie=this.resume(),ve=this.stack[this.stack.length-1];if(this.data.inReference=!0,ve.type==="link"){const Ee=G.children;ve.children=Ee}else ve.alt=ie}function E(){const G=this.resume(),ie=this.stack[this.stack.length-1];ie.url=G}function C(){const G=this.resume(),ie=this.stack[this.stack.length-1];ie.title=G}function F(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function ae(G){const ie=this.resume(),ve=this.stack[this.stack.length-1];ve.label=ie,ve.identifier=vn(this.sliceSerialize(G)).toLowerCase(),this.data.referenceType="full"}function ge(G){this.data.characterReferenceType=G.type}function xe(G){const ie=this.sliceSerialize(G),ve=this.data.characterReferenceType;let Ee;ve?(Ee=O0(ie,ve==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ee=Lc(ie);const Ue=this.stack[this.stack.length-1];Ue.value+=Ee}function we(G){const ie=this.stack.pop();ie.position.end=vl(G.end)}function ue(G){B.call(this,G);const ie=this.stack[this.stack.length-1];ie.url=this.sliceSerialize(G)}function ce(G){B.call(this,G);const ie=this.stack[this.stack.length-1];ie.url="mailto:"+this.sliceSerialize(G)}function Oe(){return{type:"blockquote",children:[]}}function De(){return{type:"code",lang:null,meta:null,value:""}}function $e(){return{type:"inlineCode",value:""}}function Gt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function at(){return{type:"emphasis",children:[]}}function Dt(){return{type:"heading",depth:0,children:[]}}function tn(){return{type:"break"}}function pn(){return{type:"html",value:""}}function Xl(){return{type:"image",title:null,url:"",alt:null}}function Cn(){return{type:"link",title:null,url:"",children:[]}}function Jn(G){return{type:"list",ordered:G.type==="listOrdered",start:null,spread:G._spread,children:[]}}function kl(G){return{type:"listItem",spread:G._spread,checked:null,children:[]}}function qi(){return{type:"paragraph",children:[]}}function Yi(){return{type:"strong",children:[]}}function vt(){return{type:"text",value:""}}function Vi(){return{type:"thematicBreak"}}}function vl(n){return{line:n.line,column:n.column,offset:n.offset}}function X0(n,a){let i=-1;for(;++i<a.length;){const u=a[i];Array.isArray(u)?X0(n,u):cS(n,u)}}function cS(n,a){let i;for(i in a)if(F0.call(a,i))switch(i){case"canContainEols":{const u=a[i];u&&n[i].push(...u);break}case"transforms":{const u=a[i];u&&n[i].push(...u);break}case"enter":case"exit":{const u=a[i];u&&Object.assign(n[i],u);break}}}function Tp(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Ha({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Ha({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Ha({start:a.start,end:a.end})+") is still open")}function fS(n){const a=this;a.parser=i;function i(u){return sS(u,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function hS(n,a){const i={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,i),n.applyData(a,i)}function dS(n,a){const i={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,i),[n.applyData(a,i),{type:"text",value:`
261
+ `}]}function mS(n,a){const i=a.value?a.value+`
262
+ `:"",u={},s=a.lang?a.lang.split(/\s+/):[];s.length>0&&(u.className=["language-"+s[0]]);let c={type:"element",tagName:"code",properties:u,children:[{type:"text",value:i}]};return a.meta&&(c.data={meta:a.meta}),n.patch(a,c),c=n.applyData(a,c),c={type:"element",tagName:"pre",properties:{},children:[c]},n.patch(a,c),c}function pS(n,a){const i={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function gS(n,a){const i={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function xS(n,a){const i=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(a.identifier).toUpperCase(),s=Bi(u.toLowerCase()),c=n.footnoteOrder.indexOf(u);let f,d=n.footnoteCounts.get(u);d===void 0?(d=0,n.footnoteOrder.push(u),f=n.footnoteOrder.length):f=c+1,d+=1,n.footnoteCounts.set(u,d);const p={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+s,id:i+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};n.patch(a,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return n.patch(a,m),n.applyData(a,m)}function yS(n,a){const i={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function bS(n,a){if(n.options.allowDangerousHtml){const i={type:"raw",value:a.value};return n.patch(a,i),n.applyData(a,i)}}function G0(n,a){const i=a.referenceType;let u="]";if(i==="collapsed"?u+="[]":i==="full"&&(u+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+u}];const s=n.all(a),c=s[0];c&&c.type==="text"?c.value="["+c.value:s.unshift({type:"text",value:"["});const f=s[s.length-1];return f&&f.type==="text"?f.value+=u:s.push({type:"text",value:u}),s}function vS(n,a){const i=String(a.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return G0(n,a);const s={src:Bi(u.url||""),alt:a.alt};u.title!==null&&u.title!==void 0&&(s.title=u.title);const c={type:"element",tagName:"img",properties:s,children:[]};return n.patch(a,c),n.applyData(a,c)}function SS(n,a){const i={src:Bi(a.url)};a.alt!==null&&a.alt!==void 0&&(i.alt=a.alt),a.title!==null&&a.title!==void 0&&(i.title=a.title);const u={type:"element",tagName:"img",properties:i,children:[]};return n.patch(a,u),n.applyData(a,u)}function zS(n,a){const i={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,i);const u={type:"element",tagName:"code",properties:{},children:[i]};return n.patch(a,u),n.applyData(a,u)}function kS(n,a){const i=String(a.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return G0(n,a);const s={href:Bi(u.url||"")};u.title!==null&&u.title!==void 0&&(s.title=u.title);const c={type:"element",tagName:"a",properties:s,children:n.all(a)};return n.patch(a,c),n.applyData(a,c)}function wS(n,a){const i={href:Bi(a.url)};a.title!==null&&a.title!==void 0&&(i.title=a.title);const u={type:"element",tagName:"a",properties:i,children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function ES(n,a,i){const u=n.all(a),s=i?TS(i):Q0(a),c={},f=[];if(typeof a.checked=="boolean"){const x=u[0];let y;x&&x.type==="element"&&x.tagName==="p"?y=x:(y={type:"element",tagName:"p",properties:{},children:[]},u.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let d=-1;for(;++d<u.length;){const x=u[d];(s||d!==0||x.type!=="element"||x.tagName!=="p")&&f.push({type:"text",value:`
263
+ `}),x.type==="element"&&x.tagName==="p"&&!s?f.push(...x.children):f.push(x)}const p=u[u.length-1];p&&(s||p.type!=="element"||p.tagName!=="p")&&f.push({type:"text",value:`
264
+ `});const m={type:"element",tagName:"li",properties:c,children:f};return n.patch(a,m),n.applyData(a,m)}function TS(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const i=n.children;let u=-1;for(;!a&&++u<i.length;)a=Q0(i[u])}return a}function Q0(n){const a=n.spread;return a??n.children.length>1}function CS(n,a){const i={},u=n.all(a);let s=-1;for(typeof a.start=="number"&&a.start!==1&&(i.start=a.start);++s<u.length;){const f=u[s];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const c={type:"element",tagName:a.ordered?"ol":"ul",properties:i,children:n.wrap(u,!0)};return n.patch(a,c),n.applyData(a,c)}function NS(n,a){const i={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function jS(n,a){const i={type:"root",children:n.wrap(n.all(a))};return n.patch(a,i),n.applyData(a,i)}function MS(n,a){const i={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function AS(n,a){const i=n.all(a),u=i.shift(),s=[];if(u){const f={type:"element",tagName:"thead",properties:{},children:n.wrap([u],!0)};n.patch(a.children[0],f),s.push(f)}if(i.length>0){const f={type:"element",tagName:"tbody",properties:{},children:n.wrap(i,!0)},d=Ac(a.children[1]),p=E0(a.children[a.children.length-1]);d&&p&&(f.position={start:d,end:p}),s.push(f)}const c={type:"element",tagName:"table",properties:{},children:n.wrap(s,!0)};return n.patch(a,c),n.applyData(a,c)}function _S(n,a,i){const u=i?i.children:void 0,c=(u?u.indexOf(a):1)===0?"th":"td",f=i&&i.type==="table"?i.align:void 0,d=f?f.length:a.children.length;let p=-1;const m=[];for(;++p<d;){const y=a.children[p],S={},v=f?f[p]:void 0;v&&(S.align=v);let w={type:"element",tagName:c,properties:S,children:[]};y&&(w.children=n.all(y),n.patch(y,w),w=n.applyData(y,w)),m.push(w)}const x={type:"element",tagName:"tr",properties:{},children:n.wrap(m,!0)};return n.patch(a,x),n.applyData(a,x)}function OS(n,a){const i={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}const Cp=9,Np=32;function DS(n){const a=String(n),i=/\r?\n|\r/g;let u=i.exec(a),s=0;const c=[];for(;u;)c.push(jp(a.slice(s,u.index),s>0,!0),u[0]),s=u.index+u[0].length,u=i.exec(a);return c.push(jp(a.slice(s),s>0,!1)),c.join("")}function jp(n,a,i){let u=0,s=n.length;if(a){let c=n.codePointAt(u);for(;c===Cp||c===Np;)u++,c=n.codePointAt(u)}if(i){let c=n.codePointAt(s-1);for(;c===Cp||c===Np;)s--,c=n.codePointAt(s-1)}return s>u?n.slice(u,s):""}function RS(n,a){const i={type:"text",value:DS(String(a.value))};return n.patch(a,i),n.applyData(a,i)}function LS(n,a){const i={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,i),n.applyData(a,i)}const US={blockquote:hS,break:dS,code:mS,delete:pS,emphasis:gS,footnoteReference:xS,heading:yS,html:bS,imageReference:vS,image:SS,inlineCode:zS,linkReference:kS,link:wS,listItem:ES,list:CS,paragraph:NS,root:jS,strong:MS,table:AS,tableCell:OS,tableRow:_S,text:RS,thematicBreak:LS,toml:ou,yaml:ou,definition:ou,footnoteDefinition:ou};function ou(){}const Z0=-1,ku=0,Ya=1,xu=2,Bc=3,Hc=4,qc=5,Yc=6,J0=7,K0=8,Mp=typeof self=="object"?self:globalThis,BS=(n,a)=>{const i=(s,c)=>(n.set(c,s),s),u=s=>{if(n.has(s))return n.get(s);const[c,f]=a[s];switch(c){case ku:case Z0:return i(f,s);case Ya:{const d=i([],s);for(const p of f)d.push(u(p));return d}case xu:{const d=i({},s);for(const[p,m]of f)d[u(p)]=u(m);return d}case Bc:return i(new Date(f),s);case Hc:{const{source:d,flags:p}=f;return i(new RegExp(d,p),s)}case qc:{const d=i(new Map,s);for(const[p,m]of f)d.set(u(p),u(m));return d}case Yc:{const d=i(new Set,s);for(const p of f)d.add(u(p));return d}case J0:{const{name:d,message:p}=f;return i(new Mp[d](p),s)}case K0:return i(BigInt(f),s);case"BigInt":return i(Object(BigInt(f)),s);case"ArrayBuffer":return i(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:d}=new Uint8Array(f);return i(new DataView(d),f)}}return i(new Mp[c](f),s)};return u},Ap=n=>BS(new Map,n)(0),Ai="",{toString:HS}={},{keys:qS}=Object,Ba=n=>{const a=typeof n;if(a!=="object"||!n)return[ku,a];const i=HS.call(n).slice(8,-1);switch(i){case"Array":return[Ya,Ai];case"Object":return[xu,Ai];case"Date":return[Bc,Ai];case"RegExp":return[Hc,Ai];case"Map":return[qc,Ai];case"Set":return[Yc,Ai];case"DataView":return[Ya,i]}return i.includes("Array")?[Ya,i]:i.includes("Error")?[J0,i]:[xu,i]},cu=([n,a])=>n===ku&&(a==="function"||a==="symbol"),YS=(n,a,i,u)=>{const s=(f,d)=>{const p=u.push(f)-1;return i.set(d,p),p},c=f=>{if(i.has(f))return i.get(f);let[d,p]=Ba(f);switch(d){case ku:{let x=f;switch(p){case"bigint":d=K0,x=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);x=null;break;case"undefined":return s([Z0],f)}return s([d,x],f)}case Ya:{if(p){let S=f;return p==="DataView"?S=new Uint8Array(f.buffer):p==="ArrayBuffer"&&(S=new Uint8Array(f)),s([p,[...S]],f)}const x=[],y=s([d,x],f);for(const S of f)x.push(c(S));return y}case xu:{if(p)switch(p){case"BigInt":return s([p,f.toString()],f);case"Boolean":case"Number":case"String":return s([p,f.valueOf()],f)}if(a&&"toJSON"in f)return c(f.toJSON());const x=[],y=s([d,x],f);for(const S of qS(f))(n||!cu(Ba(f[S])))&&x.push([c(S),c(f[S])]);return y}case Bc:return s([d,f.toISOString()],f);case Hc:{const{source:x,flags:y}=f;return s([d,{source:x,flags:y}],f)}case qc:{const x=[],y=s([d,x],f);for(const[S,v]of f)(n||!(cu(Ba(S))||cu(Ba(v))))&&x.push([c(S),c(v)]);return y}case Yc:{const x=[],y=s([d,x],f);for(const S of f)(n||!cu(Ba(S)))&&x.push(c(S));return y}}const{message:m}=f;return s([d,{name:p,message:m}],f)};return c},_p=(n,{json:a,lossy:i}={})=>{const u=[];return YS(!(a||i),!!a,new Map,u)(n),u},yu=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?Ap(_p(n,a)):structuredClone(n):(n,a)=>Ap(_p(n,a));function VS(n,a){const i=[{type:"text",value:"↩"}];return a>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),i}function FS(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function XS(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=n.options.footnoteBackContent||VS,u=n.options.footnoteBackLabel||FS,s=n.options.footnoteLabel||"Footnotes",c=n.options.footnoteLabelTagName||"h2",f=n.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let p=-1;for(;++p<n.footnoteOrder.length;){const m=n.footnoteById.get(n.footnoteOrder[p]);if(!m)continue;const x=n.all(m),y=String(m.identifier).toUpperCase(),S=Bi(y.toLowerCase());let v=0;const w=[],j=n.footnoteCounts.get(y);for(;j!==void 0&&++v<=j;){w.length>0&&w.push({type:"text",value:" "});let q=typeof i=="string"?i:i(p,v);typeof q=="string"&&(q={type:"text",value:q}),w.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+S+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(p,v),className:["data-footnote-backref"]},children:Array.isArray(q)?q:[q]})}const _=x[x.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const q=_.children[_.children.length-1];q&&q.type==="text"?q.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...w)}else x.push(...w);const M={type:"element",tagName:"li",properties:{id:a+"fn-"+S},children:n.wrap(x,!0)};n.patch(m,M),d.push(M)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...yu(f),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
265
+ `},{type:"element",tagName:"ol",properties:{},children:n.wrap(d,!0)},{type:"text",value:`
266
+ `}]}}const wu=(function(n){if(n==null)return JS;if(typeof n=="function")return Eu(n);if(typeof n=="object")return Array.isArray(n)?GS(n):QS(n);if(typeof n=="string")return ZS(n);throw new Error("Expected function, string, or object as test")});function GS(n){const a=[];let i=-1;for(;++i<n.length;)a[i]=wu(n[i]);return Eu(u);function u(...s){let c=-1;for(;++c<a.length;)if(a[c].apply(this,s))return!0;return!1}}function QS(n){const a=n;return Eu(i);function i(u){const s=u;let c;for(c in n)if(s[c]!==a[c])return!1;return!0}}function ZS(n){return Eu(a);function a(i){return i&&i.type===n}}function Eu(n){return a;function a(i,u,s){return!!(KS(i)&&n.call(this,i,typeof u=="number"?u:void 0,s||void 0))}}function JS(){return!0}function KS(n){return n!==null&&typeof n=="object"&&"type"in n}const I0=[],IS=!0,yc=!1,$S="skip";function $0(n,a,i,u){let s;typeof a=="function"&&typeof i!="function"?(u=i,i=a):s=a;const c=wu(s),f=u?-1:1;d(n,void 0,[])();function d(p,m,x){const y=p&&typeof p=="object"?p:{};if(typeof y.type=="string"){const v=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(p.type+(v?"<"+v+">":""))+")"})}return S;function S(){let v=I0,w,j,_;if((!a||c(p,m,x[x.length-1]||void 0))&&(v=WS(i(p,x)),v[0]===yc))return v;if("children"in p&&p.children){const M=p;if(M.children&&v[0]!==$S)for(j=(u?M.children.length:-1)+f,_=x.concat(M);j>-1&&j<M.children.length;){const q=M.children[j];if(w=d(q,j,_)(),w[0]===yc)return w;j=typeof w[1]=="number"?w[1]:j+f}}return v}}}function WS(n){return Array.isArray(n)?n:typeof n=="number"?[IS,n]:n==null?I0:[n]}function Vc(n,a,i,u){let s,c,f;typeof a=="function"&&typeof i!="function"?(c=void 0,f=a,s=i):(c=a,f=i,s=u),$0(n,c,d,s);function d(p,m){const x=m[m.length-1],y=x?x.children.indexOf(p):void 0;return f(p,y,x)}}const bc={}.hasOwnProperty,PS={};function ez(n,a){const i=a||PS,u=new Map,s=new Map,c=new Map,f={...US,...i.handlers},d={all:m,applyData:nz,definitionById:u,footnoteById:s,footnoteCounts:c,footnoteOrder:[],handlers:f,one:p,options:i,patch:tz,wrap:iz};return Vc(n,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const y=x.type==="definition"?u:s,S=String(x.identifier).toUpperCase();y.has(S)||y.set(S,x)}}),d;function p(x,y){const S=x.type,v=d.handlers[S];if(bc.call(d.handlers,S)&&v)return v(d,x,y);if(d.options.passThrough&&d.options.passThrough.includes(S)){if("children"in x){const{children:j,..._}=x,M=yu(_);return M.children=d.all(x),M}return yu(x)}return(d.options.unknownHandler||lz)(d,x,y)}function m(x){const y=[];if("children"in x){const S=x.children;let v=-1;for(;++v<S.length;){const w=d.one(S[v],x);if(w){if(v&&S[v-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=Op(w.value)),!Array.isArray(w)&&w.type==="element")){const j=w.children[0];j&&j.type==="text"&&(j.value=Op(j.value))}Array.isArray(w)?y.push(...w):y.push(w)}}}return y}}function tz(n,a){n.position&&(a.position=Fb(n))}function nz(n,a){let i=a;if(n&&n.data){const u=n.data.hName,s=n.data.hChildren,c=n.data.hProperties;if(typeof u=="string")if(i.type==="element")i.tagName=u;else{const f="children"in i?i.children:[i];i={type:"element",tagName:u,properties:{},children:f}}i.type==="element"&&c&&Object.assign(i.properties,yu(c)),"children"in i&&i.children&&s!==null&&s!==void 0&&(i.children=s)}return i}function lz(n,a){const i=a.data||{},u="value"in a&&!(bc.call(i,"hProperties")||bc.call(i,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function iz(n,a){const i=[];let u=-1;for(a&&i.push({type:"text",value:`
267
+ `});++u<n.length;)u&&i.push({type:"text",value:`
268
+ `}),i.push(n[u]);return a&&n.length>0&&i.push({type:"text",value:`
269
+ `}),i}function Op(n){let a=0,i=n.charCodeAt(a);for(;i===9||i===32;)a++,i=n.charCodeAt(a);return n.slice(a)}function Dp(n,a){const i=ez(n,a),u=i.one(n,void 0),s=XS(i),c=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return s&&c.children.push({type:"text",value:`
270
+ `},s),c}function az(n,a){return n&&"run"in n?async function(i,u){const s=Dp(i,{file:u,...a});await n.run(s,u)}:function(i,u){return Dp(i,{file:u,...n||a})}}function Rp(n){if(n)throw n}var Io,Lp;function rz(){if(Lp)return Io;Lp=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):a.call(m)==="[object Array]"},c=function(m){if(!m||a.call(m)!=="[object Object]")return!1;var x=n.call(m,"constructor"),y=m.constructor&&m.constructor.prototype&&n.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!x&&!y)return!1;var S;for(S in m);return typeof S>"u"||n.call(m,S)},f=function(m,x){i&&x.name==="__proto__"?i(m,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):m[x.name]=x.newValue},d=function(m,x){if(x==="__proto__")if(n.call(m,x)){if(u)return u(m,x).value}else return;return m[x]};return Io=function p(){var m,x,y,S,v,w,j=arguments[0],_=1,M=arguments.length,q=!1;for(typeof j=="boolean"&&(q=j,j=arguments[1]||{},_=2),(j==null||typeof j!="object"&&typeof j!="function")&&(j={});_<M;++_)if(m=arguments[_],m!=null)for(x in m)y=d(j,x),S=d(m,x),j!==S&&(q&&S&&(c(S)||(v=s(S)))?(v?(v=!1,w=y&&s(y)?y:[]):w=y&&c(y)?y:{},f(j,{name:x,newValue:p(q,w,S)})):typeof S<"u"&&f(j,{name:x,newValue:S}));return j},Io}var uz=rz();const $o=n0(uz);function vc(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function sz(){const n=[],a={run:i,use:u};return a;function i(...s){let c=-1;const f=s.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);d(null,...s);function d(p,...m){const x=n[++c];let y=-1;if(p){f(p);return}for(;++y<s.length;)(m[y]===null||m[y]===void 0)&&(m[y]=s[y]);s=m,x?oz(x,d)(...m):f(null,...m)}}function u(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return n.push(s),a}}function oz(n,a){let i;return u;function u(...f){const d=n.length>f.length;let p;d&&f.push(s);try{p=n.apply(this,f)}catch(m){const x=m;if(d&&i)throw x;return s(x)}d||(p&&p.then&&typeof p.then=="function"?p.then(c,s):p instanceof Error?s(p):c(p))}function s(f,...d){i||(i=!0,a(f,...d))}function c(f){s(null,f)}}const En={basename:cz,dirname:fz,extname:hz,join:dz,sep:"/"};function cz(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Za(n);let i=0,u=-1,s=n.length,c;if(a===void 0||a.length===0||a.length>n.length){for(;s--;)if(n.codePointAt(s)===47){if(c){i=s+1;break}}else u<0&&(c=!0,u=s+1);return u<0?"":n.slice(i,u)}if(a===n)return"";let f=-1,d=a.length-1;for(;s--;)if(n.codePointAt(s)===47){if(c){i=s+1;break}}else f<0&&(c=!0,f=s+1),d>-1&&(n.codePointAt(s)===a.codePointAt(d--)?d<0&&(u=s):(d=-1,u=f));return i===u?u=f:u<0&&(u=n.length),n.slice(i,u)}function fz(n){if(Za(n),n.length===0)return".";let a=-1,i=n.length,u;for(;--i;)if(n.codePointAt(i)===47){if(u){a=i;break}}else u||(u=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function hz(n){Za(n);let a=n.length,i=-1,u=0,s=-1,c=0,f;for(;a--;){const d=n.codePointAt(a);if(d===47){if(f){u=a+1;break}continue}i<0&&(f=!0,i=a+1),d===46?s<0?s=a:c!==1&&(c=1):s>-1&&(c=-1)}return s<0||i<0||c===0||c===1&&s===i-1&&s===u+1?"":n.slice(s,i)}function dz(...n){let a=-1,i;for(;++a<n.length;)Za(n[a]),n[a]&&(i=i===void 0?n[a]:i+"/"+n[a]);return i===void 0?".":mz(i)}function mz(n){Za(n);const a=n.codePointAt(0)===47;let i=pz(n,!a);return i.length===0&&!a&&(i="."),i.length>0&&n.codePointAt(n.length-1)===47&&(i+="/"),a?"/"+i:i}function pz(n,a){let i="",u=0,s=-1,c=0,f=-1,d,p;for(;++f<=n.length;){if(f<n.length)d=n.codePointAt(f);else{if(d===47)break;d=47}if(d===47){if(!(s===f-1||c===1))if(s!==f-1&&c===2){if(i.length<2||u!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(p=i.lastIndexOf("/"),p!==i.length-1){p<0?(i="",u=0):(i=i.slice(0,p),u=i.length-1-i.lastIndexOf("/")),s=f,c=0;continue}}else if(i.length>0){i="",u=0,s=f,c=0;continue}}a&&(i=i.length>0?i+"/..":"..",u=2)}else i.length>0?i+="/"+n.slice(s+1,f):i=n.slice(s+1,f),u=f-s-1;s=f,c=0}else d===46&&c>-1?c++:c=-1}return i}function Za(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const gz={cwd:xz};function xz(){return"/"}function Sc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function yz(n){if(typeof n=="string")n=new URL(n);else if(!Sc(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return bz(n)}function bz(n){if(n.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const a=n.pathname;let i=-1;for(;++i<a.length;)if(a.codePointAt(i)===37&&a.codePointAt(i+1)===50){const u=a.codePointAt(i+2);if(u===70||u===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(a)}const Wo=["history","path","basename","stem","extname","dirname"];class W0{constructor(a){let i;a?Sc(a)?i={path:a}:typeof a=="string"||vz(a)?i={value:a}:i=a:i={},this.cwd="cwd"in i?"":gz.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Wo.length;){const c=Wo[u];c in i&&i[c]!==void 0&&i[c]!==null&&(this[c]=c==="history"?[...i[c]]:i[c])}let s;for(s in i)Wo.includes(s)||(this[s]=i[s])}get basename(){return typeof this.path=="string"?En.basename(this.path):void 0}set basename(a){ec(a,"basename"),Po(a,"basename"),this.path=En.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?En.dirname(this.path):void 0}set dirname(a){Up(this.basename,"dirname"),this.path=En.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?En.extname(this.path):void 0}set extname(a){if(Po(a,"extname"),Up(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=En.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){Sc(a)&&(a=yz(a)),ec(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?En.basename(this.path,this.extname):void 0}set stem(a){ec(a,"stem"),Po(a,"stem"),this.path=En.join(this.dirname||"",a+(this.extname||""))}fail(a,i,u){const s=this.message(a,i,u);throw s.fatal=!0,s}info(a,i,u){const s=this.message(a,i,u);return s.fatal=void 0,s}message(a,i,u){const s=new Mt(a,i,u);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function Po(n,a){if(n&&n.includes(En.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+En.sep+"`")}function ec(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function Up(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function vz(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const Sz=(function(n){const u=this.constructor.prototype,s=u[n],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,u),c}),zz={}.hasOwnProperty;class Fc extends Sz{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=sz()}copy(){const a=new Fc;let i=-1;for(;++i<this.attachers.length;){const u=this.attachers[i];a.use(...u)}return a.data($o(!0,{},this.namespace)),a}data(a,i){return typeof a=="string"?arguments.length===2?(lc("data",this.frozen),this.namespace[a]=i,this):zz.call(this.namespace,a)&&this.namespace[a]||void 0:a?(lc("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const s=i.call(a,...u);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const i=fu(a),u=this.parser||this.Parser;return tc("parse",u),u(String(i),i)}process(a,i){const u=this;return this.freeze(),tc("process",this.parser||this.Parser),nc("process",this.compiler||this.Compiler),i?s(void 0,i):new Promise(s);function s(c,f){const d=fu(a),p=u.parse(d);u.run(p,d,function(x,y,S){if(x||!y||!S)return m(x);const v=y,w=u.stringify(v,S);Ez(w)?S.value=w:S.result=w,m(x,S)});function m(x,y){x||!y?f(x):c?c(y):i(void 0,y)}}}processSync(a){let i=!1,u;return this.freeze(),tc("processSync",this.parser||this.Parser),nc("processSync",this.compiler||this.Compiler),this.process(a,s),Hp("processSync","process",i),u;function s(c,f){i=!0,Rp(c),u=f}}run(a,i,u){Bp(a),this.freeze();const s=this.transformers;return!u&&typeof i=="function"&&(u=i,i=void 0),u?c(void 0,u):new Promise(c);function c(f,d){const p=fu(i);s.run(a,p,m);function m(x,y,S){const v=y||a;x?d(x):f?f(v):u(void 0,v,S)}}}runSync(a,i){let u=!1,s;return this.run(a,i,c),Hp("runSync","run",u),s;function c(f,d){Rp(f),s=d,u=!0}}stringify(a,i){this.freeze();const u=fu(i),s=this.compiler||this.Compiler;return nc("stringify",s),Bp(a),s(a,u)}use(a,...i){const u=this.attachers,s=this.namespace;if(lc("use",this.frozen),a!=null)if(typeof a=="function")p(a,i);else if(typeof a=="object")Array.isArray(a)?d(a):f(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function c(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[x,...y]=m;p(x,y)}else f(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function f(m){if(!("plugins"in m)&&!("settings"in m))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");d(m.plugins),m.settings&&(s.settings=$o(!0,s.settings,m.settings))}function d(m){let x=-1;if(m!=null)if(Array.isArray(m))for(;++x<m.length;){const y=m[x];c(y)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,x){let y=-1,S=-1;for(;++y<u.length;)if(u[y][0]===m){S=y;break}if(S===-1)u.push([m,...x]);else if(x.length>0){let[v,...w]=x;const j=u[S][1];vc(j)&&vc(v)&&(v=$o(!0,j,v)),u[S]=[m,v,...w]}}}}const kz=new Fc().freeze();function tc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function nc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function lc(n,a){if(a)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Bp(n){if(!vc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Hp(n,a,i){if(!i)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function fu(n){return wz(n)?n:new W0(n)}function wz(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function Ez(n){return typeof n=="string"||Tz(n)}function Tz(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const Cz="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",qp=[],Yp={allowDangerousHtml:!0},Nz=/^(https?|ircs?|mailto|xmpp)$/i,jz=[{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 Mz(n){const a=Az(n),i=_z(n);return Oz(a.runSync(a.parse(i),i),n)}function Az(n){const a=n.rehypePlugins||qp,i=n.remarkPlugins||qp,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Yp}:Yp;return kz().use(fS).use(i).use(az,u).use(a)}function _z(n){const a=n.children||"",i=new W0;return typeof a=="string"&&(i.value=a),i}function Oz(n,a){const i=a.allowedElements,u=a.allowElement,s=a.components,c=a.disallowedElements,f=a.skipHtml,d=a.unwrapDisallowed,p=a.urlTransform||Dz;for(const x of jz)Object.hasOwn(a,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+Cz+x.id,void 0);return Vc(n,m),Jb(n,{Fragment:g.Fragment,components:s,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function m(x,y,S){if(x.type==="raw"&&S&&typeof y=="number")return f?S.children.splice(y,1):S.children[y]={type:"text",value:x.value},y;if(x.type==="element"){let v;for(v in Zo)if(Object.hasOwn(Zo,v)&&Object.hasOwn(x.properties,v)){const w=x.properties[v],j=Zo[v];(j===null||j.includes(x.tagName))&&(x.properties[v]=p(String(w||""),v,x))}}if(x.type==="element"){let v=i?!i.includes(x.tagName):c?c.includes(x.tagName):!1;if(!v&&u&&typeof y=="number"&&(v=!u(x,y,S)),v&&S&&typeof y=="number")return d&&x.children?S.children.splice(y,1,...x.children):S.children.splice(y,1),y}}}function Dz(n){const a=n.indexOf(":"),i=n.indexOf("?"),u=n.indexOf("#"),s=n.indexOf("/");return a===-1||s!==-1&&a>s||i!==-1&&a>i||u!==-1&&a>u||Nz.test(n.slice(0,a))?n:""}function Vp(n,a){const i=String(n);if(typeof a!="string")throw new TypeError("Expected character");let u=0,s=i.indexOf(a);for(;s!==-1;)u++,s=i.indexOf(a,s+a.length);return u}function Rz(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Lz(n,a,i){const s=wu((i||{}).ignore||[]),c=Uz(a);let f=-1;for(;++f<c.length;)$0(n,"text",d);function d(m,x){let y=-1,S;for(;++y<x.length;){const v=x[y],w=S?S.children:void 0;if(s(v,w?w.indexOf(v):void 0,S))return;S=v}if(S)return p(m,x)}function p(m,x){const y=x[x.length-1],S=c[f][0],v=c[f][1];let w=0;const _=y.children.indexOf(m);let M=!1,q=[];S.lastIndex=0;let H=S.exec(m.value);for(;H;){const I=H.index,P={index:H.index,input:H.input,stack:[...x,m]};let O=v(...H,P);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O===!1?S.lastIndex=I+1:(w!==I&&q.push({type:"text",value:m.value.slice(w,I)}),Array.isArray(O)?q.push(...O):O&&q.push(O),w=I+H[0].length,M=!0),!S.global)break;H=S.exec(m.value)}return M?(w<m.value.length&&q.push({type:"text",value:m.value.slice(w)}),y.children.splice(_,1,...q)):q=[m],_+q.length}}function Uz(n){const a=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!n[0]||Array.isArray(n[0])?n:[n];let u=-1;for(;++u<i.length;){const s=i[u];a.push([Bz(s[0]),Hz(s[1])])}return a}function Bz(n){return typeof n=="string"?new RegExp(Rz(n),"g"):n}function Hz(n){return typeof n=="function"?n:function(){return n}}const ic="phrasing",ac=["autolink","link","image","label"];function qz(){return{transforms:[Zz],enter:{literalAutolink:Vz,literalAutolinkEmail:rc,literalAutolinkHttp:rc,literalAutolinkWww:rc},exit:{literalAutolink:Qz,literalAutolinkEmail:Gz,literalAutolinkHttp:Fz,literalAutolinkWww:Xz}}}function Yz(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ic,notInConstruct:ac},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ic,notInConstruct:ac},{character:":",before:"[ps]",after:"\\/",inConstruct:ic,notInConstruct:ac}]}}function Vz(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function rc(n){this.config.enter.autolinkProtocol.call(this,n)}function Fz(n){this.config.exit.autolinkProtocol.call(this,n)}function Xz(n){this.config.exit.data.call(this,n);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(n)}function Gz(n){this.config.exit.autolinkEmail.call(this,n)}function Qz(n){this.exit(n)}function Zz(n){Lz(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Jz],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Kz]],{ignore:["link","linkReference"]})}function Jz(n,a,i,u,s){let c="";if(!P0(s)||(/^w/i.test(a)&&(i=a+i,a="",c="http://"),!Iz(i)))return!1;const f=$z(i+u);if(!f[0])return!1;const d={type:"link",title:null,url:c+a+f[0],children:[{type:"text",value:a+f[0]}]};return f[1]?[d,{type:"text",value:f[1]}]:d}function Kz(n,a,i,u){return!P0(u,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+i,children:[{type:"text",value:a+"@"+i}]}}function Iz(n){const a=n.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function $z(n){const a=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!a)return[n,void 0];n=n.slice(0,a.index);let i=a[0],u=i.indexOf(")");const s=Vp(n,"(");let c=Vp(n,")");for(;u!==-1&&s>c;)n+=i.slice(0,u+1),i=i.slice(u+1),u=i.indexOf(")"),c++;return[n,i]}function P0(n,a){const i=n.input.charCodeAt(n.index-1);return(n.index===0||Vl(i)||Su(i))&&(!a||i!==47)}eg.peek=rk;function Wz(){this.buffer()}function Pz(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function ek(){this.buffer()}function tk(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function nk(n){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=vn(this.sliceSerialize(n)).toLowerCase(),i.label=a}function lk(n){this.exit(n)}function ik(n){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=vn(this.sliceSerialize(n)).toLowerCase(),i.label=a}function ak(n){this.exit(n)}function rk(){return"["}function eg(n,a,i,u){const s=i.createTracker(u);let c=s.move("[^");const f=i.enter("footnoteReference"),d=i.enter("reference");return c+=s.move(i.safe(i.associationId(n),{after:"]",before:c})),d(),f(),c+=s.move("]"),c}function uk(){return{enter:{gfmFootnoteCallString:Wz,gfmFootnoteCall:Pz,gfmFootnoteDefinitionLabelString:ek,gfmFootnoteDefinition:tk},exit:{gfmFootnoteCallString:nk,gfmFootnoteCall:lk,gfmFootnoteDefinitionLabelString:ik,gfmFootnoteDefinition:ak}}}function sk(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:i,footnoteReference:eg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(u,s,c,f){const d=c.createTracker(f);let p=d.move("[^");const m=c.enter("footnoteDefinition"),x=c.enter("label");return p+=d.move(c.safe(c.associationId(u),{before:p,after:"]"})),x(),p+=d.move("]:"),u.children&&u.children.length>0&&(d.shift(4),p+=d.move((a?`
271
+ `:" ")+c.indentLines(c.containerFlow(u,d.current()),a?tg:ok))),m(),p}}function ok(n,a,i){return a===0?n:tg(n,a,i)}function tg(n,a,i){return(i?"":" ")+n}const ck=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ng.peek=pk;function fk(){return{canContainEols:["delete"],enter:{strikethrough:dk},exit:{strikethrough:mk}}}function hk(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ck}],handlers:{delete:ng}}}function dk(n){this.enter({type:"delete",children:[]},n)}function mk(n){this.exit(n)}function ng(n,a,i,u){const s=i.createTracker(u),c=i.enter("strikethrough");let f=s.move("~~");return f+=i.containerPhrasing(n,{...s.current(),before:f,after:"~"}),f+=s.move("~~"),c(),f}function pk(){return"~"}function gk(n){return n.length}function xk(n,a){const i=a||{},u=(i.align||[]).concat(),s=i.stringLength||gk,c=[],f=[],d=[],p=[];let m=0,x=-1;for(;++x<n.length;){const j=[],_=[];let M=-1;for(n[x].length>m&&(m=n[x].length);++M<n[x].length;){const q=yk(n[x][M]);if(i.alignDelimiters!==!1){const H=s(q);_[M]=H,(p[M]===void 0||H>p[M])&&(p[M]=H)}j.push(q)}f[x]=j,d[x]=_}let y=-1;if(typeof u=="object"&&"length"in u)for(;++y<m;)c[y]=Fp(u[y]);else{const j=Fp(u);for(;++y<m;)c[y]=j}y=-1;const S=[],v=[];for(;++y<m;){const j=c[y];let _="",M="";j===99?(_=":",M=":"):j===108?_=":":j===114&&(M=":");let q=i.alignDelimiters===!1?1:Math.max(1,p[y]-_.length-M.length);const H=_+"-".repeat(q)+M;i.alignDelimiters!==!1&&(q=_.length+q+M.length,q>p[y]&&(p[y]=q),v[y]=q),S[y]=H}f.splice(1,0,S),d.splice(1,0,v),x=-1;const w=[];for(;++x<f.length;){const j=f[x],_=d[x];y=-1;const M=[];for(;++y<m;){const q=j[y]||"";let H="",I="";if(i.alignDelimiters!==!1){const P=p[y]-(_[y]||0),O=c[y];O===114?H=" ".repeat(P):O===99?P%2?(H=" ".repeat(P/2+.5),I=" ".repeat(P/2-.5)):(H=" ".repeat(P/2),I=H):I=" ".repeat(P)}i.delimiterStart!==!1&&!y&&M.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&q==="")&&(i.delimiterStart!==!1||y)&&M.push(" "),i.alignDelimiters!==!1&&M.push(H),M.push(q),i.alignDelimiters!==!1&&M.push(I),i.padding!==!1&&M.push(" "),(i.delimiterEnd!==!1||y!==m-1)&&M.push("|")}w.push(i.delimiterEnd===!1?M.join("").replace(/ +$/,""):M.join(""))}return w.join(`
272
+ `)}function yk(n){return n==null?"":String(n)}function Fp(n){const a=typeof n=="string"?n.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function bk(n,a,i,u){const s=i.enter("blockquote"),c=i.createTracker(u);c.move("> "),c.shift(2);const f=i.indentLines(i.containerFlow(n,c.current()),vk);return s(),f}function vk(n,a,i){return">"+(i?"":" ")+n}function Sk(n,a){return Xp(n,a.inConstruct,!0)&&!Xp(n,a.notInConstruct,!1)}function Xp(n,a,i){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return i;let u=-1;for(;++u<a.length;)if(n.includes(a[u]))return!0;return!1}function Gp(n,a,i,u){let s=-1;for(;++s<i.unsafe.length;)if(i.unsafe[s].character===`
273
+ `&&Sk(i.stack,i.unsafe[s]))return/[ \t]/.test(u.before)?"":" ";return`\\
274
+ `}function zk(n,a){const i=String(n);let u=i.indexOf(a),s=u,c=0,f=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===s?++c>f&&(f=c):c=1,s=u+a.length,u=i.indexOf(a,s);return f}function kk(n,a){return!!(a.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function wk(n){const a=n.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function Ek(n,a,i,u){const s=wk(i),c=n.value||"",f=s==="`"?"GraveAccent":"Tilde";if(kk(n,i)){const y=i.enter("codeIndented"),S=i.indentLines(c,Tk);return y(),S}const d=i.createTracker(u),p=s.repeat(Math.max(zk(c,s)+1,3)),m=i.enter("codeFenced");let x=d.move(p);if(n.lang){const y=i.enter(`codeFencedLang${f}`);x+=d.move(i.safe(n.lang,{before:x,after:" ",encode:["`"],...d.current()})),y()}if(n.lang&&n.meta){const y=i.enter(`codeFencedMeta${f}`);x+=d.move(" "),x+=d.move(i.safe(n.meta,{before:x,after:`
275
+ `,encode:["`"],...d.current()})),y()}return x+=d.move(`
276
+ `),c&&(x+=d.move(c+`
277
+ `)),x+=d.move(p),m(),x}function Tk(n,a,i){return(i?"":" ")+n}function Xc(n){const a=n.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function Ck(n,a,i,u){const s=Xc(i),c=s==='"'?"Quote":"Apostrophe",f=i.enter("definition");let d=i.enter("label");const p=i.createTracker(u);let m=p.move("[");return m+=p.move(i.safe(i.associationId(n),{before:m,after:"]",...p.current()})),m+=p.move("]: "),d(),!n.url||/[\0- \u007F]/.test(n.url)?(d=i.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(i.safe(n.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(d=i.enter("destinationRaw"),m+=p.move(i.safe(n.url,{before:m,after:n.title?" ":`
278
+ `,...p.current()}))),d(),n.title&&(d=i.enter(`title${c}`),m+=p.move(" "+s),m+=p.move(i.safe(n.title,{before:m,after:s,...p.current()})),m+=p.move(s),d()),f(),m}function Nk(n){const a=n.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function Xa(n){return"&#x"+n.toString(16).toUpperCase()+";"}function bu(n,a,i){const u=Li(n),s=Li(a);return u===void 0?s===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:u===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}lg.peek=jk;function lg(n,a,i,u){const s=Nk(i),c=i.enter("emphasis"),f=i.createTracker(u),d=f.move(s);let p=f.move(i.containerPhrasing(n,{after:s,before:d,...f.current()}));const m=p.charCodeAt(0),x=bu(u.before.charCodeAt(u.before.length-1),m,s);x.inside&&(p=Xa(m)+p.slice(1));const y=p.charCodeAt(p.length-1),S=bu(u.after.charCodeAt(0),y,s);S.inside&&(p=p.slice(0,-1)+Xa(y));const v=f.move(s);return c(),i.attentionEncodeSurroundingInfo={after:S.outside,before:x.outside},d+p+v}function jk(n,a,i){return i.options.emphasis||"*"}function Mk(n,a){let i=!1;return Vc(n,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return i=!0,yc}),!!((!n.depth||n.depth<3)&&Rc(n)&&(a.options.setext||i))}function Ak(n,a,i,u){const s=Math.max(Math.min(6,n.depth||1),1),c=i.createTracker(u);if(Mk(n,i)){const x=i.enter("headingSetext"),y=i.enter("phrasing"),S=i.containerPhrasing(n,{...c.current(),before:`
279
+ `,after:`
280
+ `});return y(),x(),S+`
281
+ `+(s===1?"=":"-").repeat(S.length-(Math.max(S.lastIndexOf("\r"),S.lastIndexOf(`
282
+ `))+1))}const f="#".repeat(s),d=i.enter("headingAtx"),p=i.enter("phrasing");c.move(f+" ");let m=i.containerPhrasing(n,{before:"# ",after:`
283
+ `,...c.current()});return/^[\t ]/.test(m)&&(m=Xa(m.charCodeAt(0))+m.slice(1)),m=m?f+" "+m:f,i.options.closeAtx&&(m+=" "+f),p(),d(),m}ig.peek=_k;function ig(n){return n.value||""}function _k(){return"<"}ag.peek=Ok;function ag(n,a,i,u){const s=Xc(i),c=s==='"'?"Quote":"Apostrophe",f=i.enter("image");let d=i.enter("label");const p=i.createTracker(u);let m=p.move("![");return m+=p.move(i.safe(n.alt,{before:m,after:"]",...p.current()})),m+=p.move("]("),d(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(d=i.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(i.safe(n.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(d=i.enter("destinationRaw"),m+=p.move(i.safe(n.url,{before:m,after:n.title?" ":")",...p.current()}))),d(),n.title&&(d=i.enter(`title${c}`),m+=p.move(" "+s),m+=p.move(i.safe(n.title,{before:m,after:s,...p.current()})),m+=p.move(s),d()),m+=p.move(")"),f(),m}function Ok(){return"!"}rg.peek=Dk;function rg(n,a,i,u){const s=n.referenceType,c=i.enter("imageReference");let f=i.enter("label");const d=i.createTracker(u);let p=d.move("![");const m=i.safe(n.alt,{before:p,after:"]",...d.current()});p+=d.move(m+"]["),f();const x=i.stack;i.stack=[],f=i.enter("reference");const y=i.safe(i.associationId(n),{before:p,after:"]",...d.current()});return f(),i.stack=x,c(),s==="full"||!m||m!==y?p+=d.move(y+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function Dk(){return"!"}ug.peek=Rk;function ug(n,a,i){let u=n.value||"",s="`",c=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(u);)s+="`";for(/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^`|`$/.test(u))&&(u=" "+u+" ");++c<i.unsafe.length;){const f=i.unsafe[c],d=i.compilePattern(f);let p;if(f.atBreak)for(;p=d.exec(u);){let m=p.index;u.charCodeAt(m)===10&&u.charCodeAt(m-1)===13&&m--,u=u.slice(0,m)+" "+u.slice(p.index+1)}}return s+u+s}function Rk(){return"`"}function sg(n,a){const i=Rc(n);return!!(!a.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(i===n.url||"mailto:"+i===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}og.peek=Lk;function og(n,a,i,u){const s=Xc(i),c=s==='"'?"Quote":"Apostrophe",f=i.createTracker(u);let d,p;if(sg(n,i)){const x=i.stack;i.stack=[],d=i.enter("autolink");let y=f.move("<");return y+=f.move(i.containerPhrasing(n,{before:y,after:">",...f.current()})),y+=f.move(">"),d(),i.stack=x,y}d=i.enter("link"),p=i.enter("label");let m=f.move("[");return m+=f.move(i.containerPhrasing(n,{before:m,after:"](",...f.current()})),m+=f.move("]("),p(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(p=i.enter("destinationLiteral"),m+=f.move("<"),m+=f.move(i.safe(n.url,{before:m,after:">",...f.current()})),m+=f.move(">")):(p=i.enter("destinationRaw"),m+=f.move(i.safe(n.url,{before:m,after:n.title?" ":")",...f.current()}))),p(),n.title&&(p=i.enter(`title${c}`),m+=f.move(" "+s),m+=f.move(i.safe(n.title,{before:m,after:s,...f.current()})),m+=f.move(s),p()),m+=f.move(")"),d(),m}function Lk(n,a,i){return sg(n,i)?"<":"["}cg.peek=Uk;function cg(n,a,i,u){const s=n.referenceType,c=i.enter("linkReference");let f=i.enter("label");const d=i.createTracker(u);let p=d.move("[");const m=i.containerPhrasing(n,{before:p,after:"]",...d.current()});p+=d.move(m+"]["),f();const x=i.stack;i.stack=[],f=i.enter("reference");const y=i.safe(i.associationId(n),{before:p,after:"]",...d.current()});return f(),i.stack=x,c(),s==="full"||!m||m!==y?p+=d.move(y+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function Uk(){return"["}function Gc(n){const a=n.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function Bk(n){const a=Gc(n),i=n.options.bulletOther;if(!i)return a==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+i+"`) to be different");return i}function Hk(n){const a=n.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function fg(n){const a=n.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function qk(n,a,i,u){const s=i.enter("list"),c=i.bulletCurrent;let f=n.ordered?Hk(i):Gc(i);const d=n.ordered?f==="."?")":".":Bk(i);let p=a&&i.bulletLastUsed?f===i.bulletLastUsed:!1;if(!n.ordered){const x=n.children?n.children[0]:void 0;if((f==="*"||f==="-")&&x&&(!x.children||!x.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(p=!0),fg(i)===f&&x){let y=-1;for(;++y<n.children.length;){const S=n.children[y];if(S&&S.type==="listItem"&&S.children&&S.children[0]&&S.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(f=d),i.bulletCurrent=f;const m=i.containerFlow(n,u);return i.bulletLastUsed=f,i.bulletCurrent=c,s(),m}function Yk(n){const a=n.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function Vk(n,a,i,u){const s=Yk(i);let c=i.bulletCurrent||Gc(i);a&&a.type==="list"&&a.ordered&&(c=(typeof a.start=="number"&&a.start>-1?a.start:1)+(i.options.incrementListMarker===!1?0:a.children.indexOf(n))+c);let f=c.length+1;(s==="tab"||s==="mixed"&&(a&&a.type==="list"&&a.spread||n.spread))&&(f=Math.ceil(f/4)*4);const d=i.createTracker(u);d.move(c+" ".repeat(f-c.length)),d.shift(f);const p=i.enter("listItem"),m=i.indentLines(i.containerFlow(n,d.current()),x);return p(),m;function x(y,S,v){return S?(v?"":" ".repeat(f))+y:(v?c:c+" ".repeat(f-c.length))+y}}function Fk(n,a,i,u){const s=i.enter("paragraph"),c=i.enter("phrasing"),f=i.containerPhrasing(n,u);return c(),s(),f}const Xk=wu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Gk(n,a,i,u){return(n.children.some(function(f){return Xk(f)})?i.containerPhrasing:i.containerFlow).call(i,n,u)}function Qk(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}hg.peek=Zk;function hg(n,a,i,u){const s=Qk(i),c=i.enter("strong"),f=i.createTracker(u),d=f.move(s+s);let p=f.move(i.containerPhrasing(n,{after:s,before:d,...f.current()}));const m=p.charCodeAt(0),x=bu(u.before.charCodeAt(u.before.length-1),m,s);x.inside&&(p=Xa(m)+p.slice(1));const y=p.charCodeAt(p.length-1),S=bu(u.after.charCodeAt(0),y,s);S.inside&&(p=p.slice(0,-1)+Xa(y));const v=f.move(s+s);return c(),i.attentionEncodeSurroundingInfo={after:S.outside,before:x.outside},d+p+v}function Zk(n,a,i){return i.options.strong||"*"}function Jk(n,a,i,u){return i.safe(n.value,u)}function Kk(n){const a=n.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function Ik(n,a,i){const u=(fg(i)+(i.options.ruleSpaces?" ":"")).repeat(Kk(i));return i.options.ruleSpaces?u.slice(0,-1):u}const dg={blockquote:bk,break:Gp,code:Ek,definition:Ck,emphasis:lg,hardBreak:Gp,heading:Ak,html:ig,image:ag,imageReference:rg,inlineCode:ug,link:og,linkReference:cg,list:qk,listItem:Vk,paragraph:Fk,root:Gk,strong:hg,text:Jk,thematicBreak:Ik};function $k(){return{enter:{table:Wk,tableData:Qp,tableHeader:Qp,tableRow:ew},exit:{codeText:tw,table:Pk,tableData:uc,tableHeader:uc,tableRow:uc}}}function Wk(n){const a=n._align;this.enter({type:"table",align:a.map(function(i){return i==="none"?null:i}),children:[]},n),this.data.inTable=!0}function Pk(n){this.exit(n),this.data.inTable=void 0}function ew(n){this.enter({type:"tableRow",children:[]},n)}function uc(n){this.exit(n)}function Qp(n){this.enter({type:"tableCell",children:[]},n)}function tw(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,nw));const i=this.stack[this.stack.length-1];i.type,i.value=a,this.exit(n)}function nw(n,a){return a==="|"?a:n}function lw(n){const a=n||{},i=a.tableCellPadding,u=a.tablePipeAlign,s=a.stringLength,c=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
284
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:S,table:f,tableCell:p,tableRow:d}};function f(v,w,j,_){return m(x(v,j,_),v.align)}function d(v,w,j,_){const M=y(v,j,_),q=m([M]);return q.slice(0,q.indexOf(`
285
+ `))}function p(v,w,j,_){const M=j.enter("tableCell"),q=j.enter("phrasing"),H=j.containerPhrasing(v,{..._,before:c,after:c});return q(),M(),H}function m(v,w){return xk(v,{align:w,alignDelimiters:u,padding:i,stringLength:s})}function x(v,w,j){const _=v.children;let M=-1;const q=[],H=w.enter("table");for(;++M<_.length;)q[M]=y(_[M],w,j);return H(),q}function y(v,w,j){const _=v.children;let M=-1;const q=[],H=w.enter("tableRow");for(;++M<_.length;)q[M]=p(_[M],v,w,j);return H(),q}function S(v,w,j){let _=dg.inlineCode(v,w,j);return j.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function iw(){return{exit:{taskListCheckValueChecked:Zp,taskListCheckValueUnchecked:Zp,paragraph:rw}}}function aw(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:uw}}}function Zp(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function rw(n){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const u=i.children[0];if(u&&u.type==="text"){const s=a.children;let c=-1,f;for(;++c<s.length;){const d=s[c];if(d.type==="paragraph"){f=d;break}}f===i&&(u.value=u.value.slice(1),u.value.length===0?i.children.shift():i.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,i.position.start=Object.assign({},u.position.start)))}}this.exit(n)}function uw(n,a,i,u){const s=n.children[0],c=typeof n.checked=="boolean"&&s&&s.type==="paragraph",f="["+(n.checked?"x":" ")+"] ",d=i.createTracker(u);c&&d.move(f);let p=dg.listItem(n,a,i,{...u,...d.current()});return c&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;function m(x){return x+f}}function sw(){return[qz(),uk(),fk(),$k(),iw()]}function ow(n){return{extensions:[Yz(),sk(n),hk(),lw(n),aw()]}}const cw={tokenize:gw,partial:!0},mg={tokenize:xw,partial:!0},pg={tokenize:yw,partial:!0},gg={tokenize:bw,partial:!0},fw={tokenize:vw,partial:!0},xg={name:"wwwAutolink",tokenize:mw,previous:bg},yg={name:"protocolAutolink",tokenize:pw,previous:vg},Zn={name:"emailAutolink",tokenize:dw,previous:Sg},Tn={};function hw(){return{text:Tn}}let Yl=48;for(;Yl<123;)Tn[Yl]=Zn,Yl++,Yl===58?Yl=65:Yl===91&&(Yl=97);Tn[43]=Zn;Tn[45]=Zn;Tn[46]=Zn;Tn[95]=Zn;Tn[72]=[Zn,yg];Tn[104]=[Zn,yg];Tn[87]=[Zn,xg];Tn[119]=[Zn,xg];function dw(n,a,i){const u=this;let s,c;return f;function f(y){return!zc(y)||!Sg.call(u,u.previous)||Qc(u.events)?i(y):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),d(y))}function d(y){return zc(y)?(n.consume(y),d):y===64?(n.consume(y),p):i(y)}function p(y){return y===46?n.check(fw,x,m)(y):y===45||y===95||jt(y)?(c=!0,n.consume(y),p):x(y)}function m(y){return n.consume(y),s=!0,p}function x(y){return c&&s&&Ot(u.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(y)):i(y)}}function mw(n,a,i){const u=this;return s;function s(f){return f!==87&&f!==119||!bg.call(u,u.previous)||Qc(u.events)?i(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(cw,n.attempt(mg,n.attempt(pg,c),i),i)(f))}function c(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(f)}}function pw(n,a,i){const u=this;let s="",c=!1;return f;function f(y){return(y===72||y===104)&&vg.call(u,u.previous)&&!Qc(u.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),s+=String.fromCodePoint(y),n.consume(y),d):i(y)}function d(y){if(Ot(y)&&s.length<5)return s+=String.fromCodePoint(y),n.consume(y),d;if(y===58){const S=s.toLowerCase();if(S==="http"||S==="https")return n.consume(y),p}return i(y)}function p(y){return y===47?(n.consume(y),c?m:(c=!0,p)):i(y)}function m(y){return y===null||gu(y)||Pe(y)||Vl(y)||Su(y)?i(y):n.attempt(mg,n.attempt(pg,x),i)(y)}function x(y){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(y)}}function gw(n,a,i){let u=0;return s;function s(f){return(f===87||f===119)&&u<3?(u++,n.consume(f),s):f===46&&u===3?(n.consume(f),c):i(f)}function c(f){return f===null?i(f):a(f)}}function xw(n,a,i){let u,s,c;return f;function f(m){return m===46||m===95?n.check(gg,p,d)(m):m===null||Pe(m)||Vl(m)||m!==45&&Su(m)?p(m):(c=!0,n.consume(m),f)}function d(m){return m===95?u=!0:(s=u,u=void 0),n.consume(m),f}function p(m){return s||u||!c?i(m):a(m)}}function yw(n,a){let i=0,u=0;return s;function s(f){return f===40?(i++,n.consume(f),s):f===41&&u<i?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(gg,a,c)(f):f===null||Pe(f)||Vl(f)?a(f):(n.consume(f),s)}function c(f){return f===41&&u++,n.consume(f),s}}function bw(n,a,i){return u;function u(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(n.consume(d),u):d===38?(n.consume(d),c):d===93?(n.consume(d),s):d===60||d===null||Pe(d)||Vl(d)?a(d):i(d)}function s(d){return d===null||d===40||d===91||Pe(d)||Vl(d)?a(d):u(d)}function c(d){return Ot(d)?f(d):i(d)}function f(d){return d===59?(n.consume(d),u):Ot(d)?(n.consume(d),f):i(d)}}function vw(n,a,i){return u;function u(c){return n.consume(c),s}function s(c){return jt(c)?i(c):a(c)}}function bg(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Pe(n)}function vg(n){return!Ot(n)}function Sg(n){return!(n===47||zc(n))}function zc(n){return n===43||n===45||n===46||n===95||jt(n)}function Qc(n){let a=n.length,i=!1;for(;a--;){const u=n[a][1];if((u.type==="labelLink"||u.type==="labelImage")&&!u._balanced){i=!0;break}if(u._gfmAutolinkLiteralWalkedInto){i=!1;break}}return n.length>0&&!i&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const Sw={tokenize:jw,partial:!0};function zw(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Tw,continuation:{tokenize:Cw},exit:Nw}},text:{91:{name:"gfmFootnoteCall",tokenize:Ew},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:kw,resolveTo:ww}}}}function kw(n,a,i){const u=this;let s=u.events.length;const c=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let f;for(;s--;){const p=u.events[s][1];if(p.type==="labelImage"){f=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return d;function d(p){if(!f||!f._balanced)return i(p);const m=vn(u.sliceSerialize({start:f.end,end:u.now()}));return m.codePointAt(0)!==94||!c.includes(m.slice(1))?i(p):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(p),n.exit("gfmFootnoteCallLabelMarker"),a(p))}}function ww(n,a){let i=n.length;for(;i--;)if(n[i][1].type==="labelImage"&&n[i][0]==="enter"){n[i][1];break}n[i+1][1].type="data",n[i+3][1].type="gfmFootnoteCallLabelMarker";const u={type:"gfmFootnoteCall",start:Object.assign({},n[i+3][1].start),end:Object.assign({},n[n.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},n[i+3][1].end),end:Object.assign({},n[i+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},s.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)},d=[n[i+1],n[i+2],["enter",u,a],n[i+3],n[i+4],["enter",s,a],["exit",s,a],["enter",c,a],["enter",f,a],["exit",f,a],["exit",c,a],n[n.length-2],n[n.length-1],["exit",u,a]];return n.splice(i,n.length-i+1,...d),n}function Ew(n,a,i){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c=0,f;return d;function d(y){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),p}function p(y){return y!==94?i(y):(n.enter("gfmFootnoteCallMarker"),n.consume(y),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",m)}function m(y){if(c>999||y===93&&!f||y===null||y===91||Pe(y))return i(y);if(y===93){n.exit("chunkString");const S=n.exit("gfmFootnoteCallString");return s.includes(vn(u.sliceSerialize(S)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):i(y)}return Pe(y)||(f=!0),c++,n.consume(y),y===92?x:m}function x(y){return y===91||y===92||y===93?(n.consume(y),c++,m):m(y)}}function Tw(n,a,i){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c,f=0,d;return p;function p(w){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(w),n.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(w){return w===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(w),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",x):i(w)}function x(w){if(f>999||w===93&&!d||w===null||w===91||Pe(w))return i(w);if(w===93){n.exit("chunkString");const j=n.exit("gfmFootnoteDefinitionLabelString");return c=vn(u.sliceSerialize(j)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(w),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),S}return Pe(w)||(d=!0),f++,n.consume(w),w===92?y:x}function y(w){return w===91||w===92||w===93?(n.consume(w),f++,x):x(w)}function S(w){return w===58?(n.enter("definitionMarker"),n.consume(w),n.exit("definitionMarker"),s.includes(c)||s.push(c),He(n,v,"gfmFootnoteDefinitionWhitespace")):i(w)}function v(w){return a(w)}}function Cw(n,a,i){return n.check(Qa,a,n.attempt(Sw,a,i))}function Nw(n){n.exit("gfmFootnoteDefinition")}function jw(n,a,i){const u=this;return He(n,s,"gfmFootnoteDefinitionIndent",5);function s(c){const f=u.events[u.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?a(c):i(c)}}function Mw(n){let i=(n||{}).singleTilde;const u={name:"strikethrough",tokenize:c,resolveAll:s};return i==null&&(i=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function s(f,d){let p=-1;for(;++p<f.length;)if(f[p][0]==="enter"&&f[p][1].type==="strikethroughSequenceTemporary"&&f[p][1]._close){let m=p;for(;m--;)if(f[m][0]==="exit"&&f[m][1].type==="strikethroughSequenceTemporary"&&f[m][1]._open&&f[p][1].end.offset-f[p][1].start.offset===f[m][1].end.offset-f[m][1].start.offset){f[p][1].type="strikethroughSequence",f[m][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},f[m][1].start),end:Object.assign({},f[p][1].end)},y={type:"strikethroughText",start:Object.assign({},f[m][1].end),end:Object.assign({},f[p][1].start)},S=[["enter",x,d],["enter",f[m][1],d],["exit",f[m][1],d],["enter",y,d]],v=d.parser.constructs.insideSpan.null;v&&en(S,S.length,0,zu(v,f.slice(m+1,p),d)),en(S,S.length,0,[["exit",y,d],["enter",f[p][1],d],["exit",f[p][1],d],["exit",x,d]]),en(f,m-1,p-m+3,S),p=m+S.length-2;break}}for(p=-1;++p<f.length;)f[p][1].type==="strikethroughSequenceTemporary"&&(f[p][1].type="data");return f}function c(f,d,p){const m=this.previous,x=this.events;let y=0;return S;function S(w){return m===126&&x[x.length-1][1].type!=="characterEscape"?p(w):(f.enter("strikethroughSequenceTemporary"),v(w))}function v(w){const j=Li(m);if(w===126)return y>1?p(w):(f.consume(w),y++,v);if(y<2&&!i)return p(w);const _=f.exit("strikethroughSequenceTemporary"),M=Li(w);return _._open=!M||M===2&&!!j,_._close=!j||j===2&&!!M,d(w)}}}class Aw{constructor(){this.map=[]}add(a,i,u){_w(this,a,i,u)}consume(a){if(this.map.sort(function(c,f){return c[0]-f[0]}),this.map.length===0)return;let i=this.map.length;const u=[];for(;i>0;)i-=1,u.push(a.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),a.length=this.map[i][0];u.push(a.slice()),a.length=0;let s=u.pop();for(;s;){for(const c of s)a.push(c);s=u.pop()}this.map.length=0}}function _w(n,a,i,u){let s=0;if(!(i===0&&u.length===0)){for(;s<n.map.length;){if(n.map[s][0]===a){n.map[s][1]+=i,n.map[s][2].push(...u);return}s+=1}n.map.push([a,i,u])}}function Ow(n,a){let i=!1;const u=[];for(;a<n.length;){const s=n[a];if(i){if(s[0]==="enter")s[1].type==="tableContent"&&u.push(n[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(n[a-1][1].type==="tableDelimiterMarker"){const c=u.length-1;u[c]=u[c]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(i=!0);a+=1}return u}function Dw(){return{flow:{null:{name:"table",tokenize:Rw,resolveAll:Lw}}}}function Rw(n,a,i){const u=this;let s=0,c=0,f;return d;function d(B){let ne=u.events.length-1;for(;ne>-1;){const re=u.events[ne][1].type;if(re==="lineEnding"||re==="linePrefix")ne--;else break}const ee=ne>-1?u.events[ne][1].type:null,de=ee==="tableHead"||ee==="tableRow"?O:p;return de===O&&u.parser.lazy[u.now().line]?i(B):de(B)}function p(B){return n.enter("tableHead"),n.enter("tableRow"),m(B)}function m(B){return B===124||(f=!0,c+=1),x(B)}function x(B){return B===null?i(B):be(B)?c>1?(c=0,u.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(B),n.exit("lineEnding"),v):i(B):Ae(B)?He(n,x,"whitespace")(B):(c+=1,f&&(f=!1,s+=1),B===124?(n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),f=!0,x):(n.enter("data"),y(B)))}function y(B){return B===null||B===124||Pe(B)?(n.exit("data"),x(B)):(n.consume(B),B===92?S:y)}function S(B){return B===92||B===124?(n.consume(B),y):y(B)}function v(B){return u.interrupt=!1,u.parser.lazy[u.now().line]?i(B):(n.enter("tableDelimiterRow"),f=!1,Ae(B)?He(n,w,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):w(B))}function w(B){return B===45||B===58?_(B):B===124?(f=!0,n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),j):P(B)}function j(B){return Ae(B)?He(n,_,"whitespace")(B):_(B)}function _(B){return B===58?(c+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(B),n.exit("tableDelimiterMarker"),M):B===45?(c+=1,M(B)):B===null||be(B)?I(B):P(B)}function M(B){return B===45?(n.enter("tableDelimiterFiller"),q(B)):P(B)}function q(B){return B===45?(n.consume(B),q):B===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(B),n.exit("tableDelimiterMarker"),H):(n.exit("tableDelimiterFiller"),H(B))}function H(B){return Ae(B)?He(n,I,"whitespace")(B):I(B)}function I(B){return B===124?w(B):B===null||be(B)?!f||s!==c?P(B):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(B)):P(B)}function P(B){return i(B)}function O(B){return n.enter("tableRow"),$(B)}function $(B){return B===124?(n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),$):B===null||be(B)?(n.exit("tableRow"),a(B)):Ae(B)?He(n,$,"whitespace")(B):(n.enter("data"),se(B))}function se(B){return B===null||B===124||Pe(B)?(n.exit("data"),$(B)):(n.consume(B),B===92?me:se)}function me(B){return B===92||B===124?(n.consume(B),se):se(B)}}function Lw(n,a){let i=-1,u=!0,s=0,c=[0,0,0,0],f=[0,0,0,0],d=!1,p=0,m,x,y;const S=new Aw;for(;++i<n.length;){const v=n[i],w=v[1];v[0]==="enter"?w.type==="tableHead"?(d=!1,p!==0&&(Jp(S,a,p,m,x),x=void 0,p=0),m={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},S.add(i,0,[["enter",m,a]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(u=!0,y=void 0,c=[0,0,0,0],f=[0,i+1,0,0],d&&(d=!1,x={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},S.add(i,0,[["enter",x,a]])),s=w.type==="tableDelimiterRow"?2:x?3:1):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(u=!1,f[2]===0&&(c[1]!==0&&(f[0]=f[1],y=hu(S,a,c,s,void 0,y),c=[0,0,0,0]),f[2]=i)):w.type==="tableCellDivider"&&(u?u=!1:(c[1]!==0&&(f[0]=f[1],y=hu(S,a,c,s,void 0,y)),c=f,f=[c[1],i,0,0])):w.type==="tableHead"?(d=!0,p=i):w.type==="tableRow"||w.type==="tableDelimiterRow"?(p=i,c[1]!==0?(f[0]=f[1],y=hu(S,a,c,s,i,y)):f[1]!==0&&(y=hu(S,a,f,s,i,y)),s=0):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(f[3]=i)}for(p!==0&&Jp(S,a,p,m,x),S.consume(a.events),i=-1;++i<a.events.length;){const v=a.events[i];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=Ow(a.events,i))}return n}function hu(n,a,i,u,s,c){const f=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",d="tableContent";i[0]!==0&&(c.end=Object.assign({},Di(a.events,i[0])),n.add(i[0],0,[["exit",c,a]]));const p=Di(a.events,i[1]);if(c={type:f,start:Object.assign({},p),end:Object.assign({},p)},n.add(i[1],0,[["enter",c,a]]),i[2]!==0){const m=Di(a.events,i[2]),x=Di(a.events,i[3]),y={type:d,start:Object.assign({},m),end:Object.assign({},x)};if(n.add(i[2],0,[["enter",y,a]]),u!==2){const S=a.events[i[2]],v=a.events[i[3]];if(S[1].end=Object.assign({},v[1].end),S[1].type="chunkText",S[1].contentType="text",i[3]>i[2]+1){const w=i[2]+1,j=i[3]-i[2]-1;n.add(w,j,[])}}n.add(i[3]+1,0,[["exit",y,a]])}return s!==void 0&&(c.end=Object.assign({},Di(a.events,s)),n.add(s,0,[["exit",c,a]]),c=void 0),c}function Jp(n,a,i,u,s){const c=[],f=Di(a.events,i);s&&(s.end=Object.assign({},f),c.push(["exit",s,a])),u.end=Object.assign({},f),c.push(["exit",u,a]),n.add(i+1,0,c)}function Di(n,a){const i=n[a],u=i[0]==="enter"?"start":"end";return i[1][u]}const Uw={name:"tasklistCheck",tokenize:Hw};function Bw(){return{text:{91:Uw}}}function Hw(n,a,i){const u=this;return s;function s(p){return u.previous!==null||!u._gfmTasklistFirstContentOfListItem?i(p):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),c)}function c(p){return Pe(p)?(n.enter("taskListCheckValueUnchecked"),n.consume(p),n.exit("taskListCheckValueUnchecked"),f):p===88||p===120?(n.enter("taskListCheckValueChecked"),n.consume(p),n.exit("taskListCheckValueChecked"),f):i(p)}function f(p){return p===93?(n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),d):i(p)}function d(p){return be(p)?a(p):Ae(p)?n.check({tokenize:qw},a,i)(p):i(p)}}function qw(n,a,i){return He(n,u,"whitespace");function u(s){return s===null?i(s):a(s)}}function Yw(n){return _0([hw(),zw(),Mw(n),Dw(),Bw()])}const Vw={};function Fw(n){const a=this,i=n||Vw,u=a.data(),s=u.micromarkExtensions||(u.micromarkExtensions=[]),c=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),f=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);s.push(Yw(i)),c.push(sw()),f.push(ow(i))}function Xw(n){return n==="completed"?g.jsx(r0,{size:14,className:"text-emerald-400"}):n==="in_progress"?g.jsx(c0,{size:14,className:"text-amber-400 animate-spin"}):g.jsx(c1,{size:14,className:"text-zinc-500"})}function Gw(n){return n==="completed"?"text-zinc-400 line-through":n==="in_progress"?"text-amber-200":"text-zinc-300"}function Qw(n){const{todos:a}=n;if(!a||a.length===0)return null;const i=a.filter(s=>s.status==="completed").length,u=a.length;return g.jsx("div",{className:"w-full mt-2",children:g.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[g.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[g.jsx(o0,{size:14,className:"text-violet-400"}),g.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Tasks"}),g.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[i,"/",u]}),g.jsx("div",{className:"w-16 h-1.5 bg-zinc-700 rounded-full overflow-hidden",children:g.jsx("div",{className:"h-full bg-violet-500 transition-all duration-300",style:{width:`${i/u*100}%`}})})]}),g.jsx("ul",{className:"divide-y divide-zinc-800/50",children:a.map((s,c)=>g.jsxs("li",{className:"flex items-start gap-2.5 px-3 py-2 hover:bg-zinc-800/20 transition-colors",children:[g.jsx("span",{className:"mt-0.5 flex-shrink-0",children:Xw(s.status)}),g.jsx("span",{className:`text-xs leading-relaxed ${Gw(s.status)}`,children:s.content})]},c))})]})})}class Zw{diff(a,i,u={}){let s;typeof u=="function"?(s=u,u={}):"callback"in u&&(s=u.callback);const c=this.castInput(a,u),f=this.castInput(i,u),d=this.removeEmpty(this.tokenize(c,u)),p=this.removeEmpty(this.tokenize(f,u));return this.diffWithOptionsObj(d,p,u,s)}diffWithOptionsObj(a,i,u,s){var c;const f=q=>{if(q=this.postProcess(q,u),s){setTimeout(function(){s(q)},0);return}else return q},d=i.length,p=a.length;let m=1,x=d+p;u.maxEditLength!=null&&(x=Math.min(x,u.maxEditLength));const y=(c=u.timeout)!==null&&c!==void 0?c:1/0,S=Date.now()+y,v=[{oldPos:-1,lastComponent:void 0}];let w=this.extractCommon(v[0],i,a,0,u);if(v[0].oldPos+1>=p&&w+1>=d)return f(this.buildValues(v[0].lastComponent,i,a));let j=-1/0,_=1/0;const M=()=>{for(let q=Math.max(j,-m);q<=Math.min(_,m);q+=2){let H;const I=v[q-1],P=v[q+1];I&&(v[q-1]=void 0);let O=!1;if(P){const se=P.oldPos-q;O=P&&0<=se&&se<d}const $=I&&I.oldPos+1<p;if(!O&&!$){v[q]=void 0;continue}if(!$||O&&I.oldPos<P.oldPos?H=this.addToPath(P,!0,!1,0,u):H=this.addToPath(I,!1,!0,1,u),w=this.extractCommon(H,i,a,q,u),H.oldPos+1>=p&&w+1>=d)return f(this.buildValues(H.lastComponent,i,a))||!0;v[q]=H,H.oldPos+1>=p&&(_=Math.min(_,q-1)),w+1>=d&&(j=Math.max(j,q+1))}m++};if(s)(function q(){setTimeout(function(){if(m>x||Date.now()>S)return s(void 0);M()||q()},0)})();else for(;m<=x&&Date.now()<=S;){const q=M();if(q)return q}}addToPath(a,i,u,s,c){const f=a.lastComponent;return f&&!c.oneChangePerToken&&f.added===i&&f.removed===u?{oldPos:a.oldPos+s,lastComponent:{count:f.count+1,added:i,removed:u,previousComponent:f.previousComponent}}:{oldPos:a.oldPos+s,lastComponent:{count:1,added:i,removed:u,previousComponent:f}}}extractCommon(a,i,u,s,c){const f=i.length,d=u.length;let p=a.oldPos,m=p-s,x=0;for(;m+1<f&&p+1<d&&this.equals(u[p+1],i[m+1],c);)m++,p++,x++,c.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return x&&!c.oneChangePerToken&&(a.lastComponent={count:x,previousComponent:a.lastComponent,added:!1,removed:!1}),a.oldPos=p,m}equals(a,i,u){return u.comparator?u.comparator(a,i):a===i||!!u.ignoreCase&&a.toLowerCase()===i.toLowerCase()}removeEmpty(a){const i=[];for(let u=0;u<a.length;u++)a[u]&&i.push(a[u]);return i}castInput(a,i){return a}tokenize(a,i){return Array.from(a)}join(a){return a.join("")}postProcess(a,i){return a}get useLongestToken(){return!1}buildValues(a,i,u){const s=[];let c;for(;a;)s.push(a),c=a.previousComponent,delete a.previousComponent,a=c;s.reverse();const f=s.length;let d=0,p=0,m=0;for(;d<f;d++){const x=s[d];if(x.removed)x.value=this.join(u.slice(m,m+x.count)),m+=x.count;else{if(!x.added&&this.useLongestToken){let y=i.slice(p,p+x.count);y=y.map(function(S,v){const w=u[m+v];return w.length>S.length?w:S}),x.value=this.join(y)}else x.value=this.join(i.slice(p,p+x.count));p+=x.count,x.added||(m+=x.count)}}return s}}class Jw extends Zw{constructor(){super(...arguments),this.tokenize=Iw}equals(a,i,u){return u.ignoreWhitespace?((!u.newlineIsToken||!a.includes(`
286
+ `))&&(a=a.trim()),(!u.newlineIsToken||!i.includes(`
287
+ `))&&(i=i.trim())):u.ignoreNewlineAtEof&&!u.newlineIsToken&&(a.endsWith(`
288
+ `)&&(a=a.slice(0,-1)),i.endsWith(`
289
+ `)&&(i=i.slice(0,-1))),super.equals(a,i,u)}}const Kw=new Jw;function Kp(n,a,i){return Kw.diff(n,a,i)}function Iw(n,a){a.stripTrailingCr&&(n=n.replace(/\r\n/g,`
290
+ `));const i=[],u=n.split(/(\n|\r\n)/);u[u.length-1]||u.pop();for(let s=0;s<u.length;s++){const c=u[s];s%2&&!a.newlineIsToken?i[i.length-1]+=c:i.push(c)}return i}const $w={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function Ip(n,a,i,u,s,c,f){let d;f?typeof f=="function"?d={callback:f}:d=f:d={},typeof d.context>"u"&&(d.context=4);const p=d.context;if(d.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(d.callback){const{callback:x}=d;Kp(i,u,Object.assign(Object.assign({},d),{callback:y=>{const S=m(y);x(S)}}))}else return m(Kp(i,u,d));function m(x){if(!x)return;x.push({value:"",lines:[]});function y(q){return q.map(function(H){return" "+H})}const S=[];let v=0,w=0,j=[],_=1,M=1;for(let q=0;q<x.length;q++){const H=x[q],I=H.lines||Pw(H.value);if(H.lines=I,H.added||H.removed){if(!v){const P=x[q-1];v=_,w=M,P&&(j=p>0?y(P.lines.slice(-p)):[],v-=j.length,w-=j.length)}for(const P of I)j.push((H.added?"+":"-")+P);H.added?M+=I.length:_+=I.length}else{if(v)if(I.length<=p*2&&q<x.length-2)for(const P of y(I))j.push(P);else{const P=Math.min(I.length,p);for(const $ of y(I.slice(0,P)))j.push($);const O={oldStart:v,oldLines:_-v+P,newStart:w,newLines:M-w+P,lines:j};S.push(O),v=0,w=0,j=[]}_+=I.length,M+=I.length}}for(const q of S)for(let H=0;H<q.lines.length;H++)q.lines[H].endsWith(`
291
+ `)?q.lines[H]=q.lines[H].slice(0,-1):(q.lines.splice(H+1,0,"\"),H++);return{oldFileName:n,newFileName:a,oldHeader:s,newHeader:c,hunks:S}}}function kc(n,a){if(a||(a=$w),Array.isArray(n)){if(n.length>1&&!a.includeFileHeaders)throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return n.map(u=>kc(u,a)).join(`
292
+ `)}const i=[];a.includeIndex&&n.oldFileName==n.newFileName&&i.push("Index: "+n.oldFileName),a.includeUnderline&&i.push("==================================================================="),a.includeFileHeaders&&(i.push("--- "+n.oldFileName+(typeof n.oldHeader>"u"?"":" "+n.oldHeader)),i.push("+++ "+n.newFileName+(typeof n.newHeader>"u"?"":" "+n.newHeader)));for(let u=0;u<n.hunks.length;u++){const s=n.hunks[u];s.oldLines===0&&(s.oldStart-=1),s.newLines===0&&(s.newStart-=1),i.push("@@ -"+s.oldStart+","+s.oldLines+" +"+s.newStart+","+s.newLines+" @@");for(const c of s.lines)i.push(c)}return i.join(`
293
+ `)+`
294
+ `}function Ww(n,a,i,u,s,c,f){if(typeof f=="function"&&(f={callback:f}),f!=null&&f.callback){const{callback:d}=f;Ip(n,a,i,u,s,c,Object.assign(Object.assign({},f),{callback:p=>{d(p?kc(p,f.headerOptions):void 0)}}))}else{const d=Ip(n,a,i,u,s,c,f);return d?kc(d,f==null?void 0:f.headerOptions):void 0}}function Pw(n){const a=n.endsWith(`
295
+ `),i=n.split(`
296
+ `).map(u=>u+`
297
+ `);return a?i.pop():i.push(i.pop().slice(0,-1)),i}function Hi(n){const{text:a,className:i="",title:u="Copy"}=n,[s,c]=V.useState(!1),f=async d=>{d.stopPropagation();try{await navigator.clipboard.writeText(a),c(!0),setTimeout(()=>c(!1),1500)}catch{const p=document.createElement("textarea");p.value=a,document.body.appendChild(p),p.select(),document.execCommand("copy"),document.body.removeChild(p),c(!0),setTimeout(()=>c(!1),1500)}};return g.jsx("button",{onClick:f,className:`p-1 rounded hover:bg-zinc-700/50 transition-colors ${i}`,title:s?"Copied!":u,children:s?g.jsx(Sl,{size:12,className:"text-emerald-400"}):g.jsx(pu,{size:12,className:"text-zinc-500 hover:text-zinc-300"})})}function zg(n){return n.split("/").slice(-2).join("/")}function eE(n){const a=n.split(`
298
+ `),i=[];for(const u of a)u.startsWith("@@")?i.push({type:"header",content:u}):u.startsWith("+")&&!u.startsWith("+++")?i.push({type:"add",content:u.slice(1)}):u.startsWith("-")&&!u.startsWith("---")?i.push({type:"remove",content:u.slice(1)}):u.startsWith(" ")&&i.push({type:"context",content:u.slice(1)});return i}function tE(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=a.old_string||"",u=a.new_string||"",s=zg(a.file_path),c=Ww("a/"+s,"b/"+s,i,u,"","",{context:3}),f=eE(c),d=f.filter(m=>m.type==="add").length,p=f.filter(m=>m.type==="remove").length;return g.jsx("div",{className:"w-full mt-2",children:g.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[g.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[g.jsx(x1,{size:14,className:"text-blue-400"}),g.jsx("span",{className:"text-xs font-mono text-zinc-300",children:s}),g.jsxs("div",{className:"flex items-center gap-2 ml-auto text-xs",children:[d>0&&g.jsxs("span",{className:"flex items-center gap-0.5 text-emerald-400",children:[g.jsx(F1,{size:12}),d]}),p>0&&g.jsxs("span",{className:"flex items-center gap-0.5 text-rose-400",children:[g.jsx(D1,{size:12}),p]}),g.jsx(Hi,{text:a.file_path})]})]}),g.jsx("div",{className:"overflow-x-auto max-h-80 overflow-y-auto",children:g.jsx("pre",{className:"text-xs font-mono p-0",children:f.map((m,x)=>m.type==="header"?g.jsx("div",{className:"px-3 py-1 bg-blue-900/20 text-blue-300 border-y border-blue-900/30",children:m.content},x):m.type==="add"?g.jsxs("div",{className:"px-3 py-0.5 bg-emerald-900/20 text-emerald-300 border-l-2 border-emerald-500",children:[g.jsx("span",{className:"select-none text-emerald-600 mr-2",children:"+"}),m.content||" "]},x):m.type==="remove"?g.jsxs("div",{className:"px-3 py-0.5 bg-rose-900/20 text-rose-300 border-l-2 border-rose-500",children:[g.jsx("span",{className:"select-none text-rose-600 mr-2",children:"-"}),m.content||" "]},x):g.jsxs("div",{className:"px-3 py-0.5 text-zinc-400",children:[g.jsx("span",{className:"select-none text-zinc-600 mr-2",children:" "}),m.content||" "]},x))})})]})})}function nE(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=a.content||"",u=zg(a.file_path),s=i.split(`
299
+ `).length,c=i.slice(0,500),f=i.length>500;return g.jsx("div",{className:"w-full mt-2",children:g.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[g.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[g.jsx(s0,{size:14,className:"text-emerald-400"}),g.jsx("span",{className:"text-xs font-mono text-zinc-300",children:u}),g.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[g.jsxs("span",{className:"text-xs text-zinc-500",children:[s," lines"]}),g.jsx(Hi,{text:a.file_path})]})]}),g.jsx("div",{className:"overflow-x-auto max-h-60 overflow-y-auto",children:g.jsxs("pre",{className:"text-xs font-mono p-3 text-zinc-300",children:[c,f&&g.jsxs("span",{className:"text-zinc-500",children:["... (",i.length-500," more chars)"]})]})})]})})}function lE(n){const{input:a}=n,[i,u]=V.useState(!1);if(!a||!a.command)return null;const s=a.command,c=a.description,f=()=>{navigator.clipboard.writeText(s),u(!0),setTimeout(()=>u(!1),2e3)};return g.jsx("div",{className:"w-full mt-2",children:g.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[g.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[g.jsx(d0,{size:14,className:"text-green-400"}),g.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Command"}),c&&g.jsxs("span",{className:"text-xs text-zinc-500 truncate ml-1",children:["— ",c]}),g.jsx("button",{onClick:f,className:"ml-auto p-1 hover:bg-zinc-700/50 rounded transition-colors",title:"Copy command",children:i?g.jsx(Sl,{size:12,className:"text-green-400"}):g.jsx(pu,{size:12,className:"text-zinc-500"})})]}),g.jsx("div",{className:"p-3 overflow-x-auto",children:g.jsx("div",{className:"flex items-start gap-2",children:g.jsx("pre",{className:"text-xs font-mono m-0 p-0 bg-transparent! text-zinc-200 whitespace-pre-wrap break-all",children:s})})})]})})}function iE(n){const{content:a,isError:i}=n;if(!a||a.trim().length===0)return g.jsx("div",{className:"w-full mt-2",children:g.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-zinc-800/30 border border-zinc-700/50 rounded-lg",children:[g.jsx(r0,{size:14,className:"text-teal-400"}),g.jsx("span",{className:"text-xs text-zinc-400",children:"Command completed successfully (no output)"})]})});const u=a.split(`
300
+ `),s=30,c=u.length>s,f=c?u.slice(0,s):u;return g.jsx("div",{className:"w-full mt-2",children:g.jsxs("div",{className:`border rounded-lg overflow-hidden ${i?"bg-rose-950/20 border-rose-900/30":"bg-zinc-900/70 border-zinc-700/50"}`,children:[g.jsxs("div",{className:`flex items-center gap-2 px-3 py-2 border-b ${i?"border-rose-900/30 bg-rose-900/20":"border-zinc-700/50 bg-zinc-800/30"}`,children:[i?g.jsxs(g.Fragment,{children:[g.jsx(P1,{size:14,className:"text-rose-400"}),g.jsx("span",{className:"text-xs font-medium text-rose-300",children:"Error Output"})]}):g.jsxs(g.Fragment,{children:[g.jsx(f0,{size:14,className:"text-teal-400"}),g.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Output"})]}),g.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," lines"]})]}),g.jsx("div",{className:"overflow-x-auto max-h-80 overflow-y-auto",children:g.jsxs("pre",{className:`text-xs font-mono p-3 whitespace-pre-wrap break-all ${i?"text-rose-200/80":"text-zinc-300"}`,children:[f.join(`
301
+ `),c&&g.jsxs("div",{className:"text-zinc-500 mt-2 pt-2 border-t border-zinc-700/50",children:["... ",u.length-s," more lines"]})]})})]})})}function aE(n){const{input:a}=n;return!a||!a.pattern?null:g.jsx("div",{className:"w-full mt-2",children:g.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[g.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[g.jsx(Va,{size:14,className:"text-amber-400"}),g.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Search"})]}),g.jsxs("div",{className:"p-3 space-y-2",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-xs text-zinc-500",children:"Pattern:"}),g.jsx("code",{className:"text-xs font-mono text-amber-300 bg-amber-500/10 px-1.5 py-0.5 rounded",children:a.pattern})]}),a.path&&g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-xs text-zinc-500",children:"Path:"}),g.jsx("span",{className:"text-xs font-mono text-zinc-300",children:a.path})]}),a.glob&&g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-xs text-zinc-500",children:"Glob:"}),g.jsx("span",{className:"text-xs font-mono text-zinc-300",children:a.glob})]}),a.type&&g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-xs text-zinc-500",children:"Type:"}),g.jsx("span",{className:"text-xs font-mono text-zinc-300",children:a.type})]})]})]})})}function rE(n){const{input:a}=n;return!a||!a.pattern?null:g.jsx("div",{className:"w-full mt-2",children:g.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[g.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[g.jsx(Cc,{size:14,className:"text-cyan-400"}),g.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Find Files"})]}),g.jsxs("div",{className:"p-3 space-y-2",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-xs text-zinc-500",children:"Pattern:"}),g.jsx("code",{className:"text-xs font-mono text-cyan-300 bg-cyan-500/10 px-1.5 py-0.5 rounded",children:a.pattern})]}),a.path&&g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-xs text-zinc-500",children:"Path:"}),g.jsx("span",{className:"text-xs font-mono text-zinc-300",children:a.path})]})]})]})})}function $p(n){const{content:a,isFileList:i}=n;if(!a||a.trim().length===0)return g.jsx("div",{className:"w-full mt-2",children:g.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-zinc-800/30 border border-zinc-700/50 rounded-lg",children:[g.jsx(Va,{size:14,className:"text-zinc-500"}),g.jsx("span",{className:"text-xs text-zinc-400",children:"No matches found"})]})});const u=a.split(`
302
+ `).filter(d=>d.trim()),s=25,c=u.length>s,f=c?u.slice(0,s):u;return i?g.jsx("div",{className:"w-full mt-2",children:g.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[g.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[g.jsx(Cc,{size:14,className:"text-cyan-400"}),g.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Files Found"}),g.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," files"]})]}),g.jsxs("div",{className:"overflow-y-auto max-h-60",children:[g.jsx("ul",{className:"divide-y divide-zinc-800/50",children:f.map((d,p)=>g.jsxs("li",{className:"group flex items-center gap-2 px-3 py-1.5 hover:bg-zinc-800/30",children:[g.jsx(Tc,{size:12,className:"text-zinc-500 flex-shrink-0"}),g.jsx("span",{className:"text-xs font-mono text-zinc-300 truncate flex-1",children:d}),g.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity",children:g.jsx(Hi,{text:d})})]},p))}),c&&g.jsxs("div",{className:"px-3 py-2 text-xs text-zinc-500 border-t border-zinc-700/50",children:["... ",u.length-s," more files"]})]})]})}):g.jsx("div",{className:"w-full mt-2",children:g.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[g.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[g.jsx(Va,{size:14,className:"text-amber-400"}),g.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Results"}),g.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," matches"]})]}),g.jsx("div",{className:"overflow-x-auto max-h-80 overflow-y-auto",children:g.jsxs("pre",{className:"text-xs font-mono p-3 text-zinc-300 whitespace-pre-wrap",children:[f.join(`
303
+ `),c&&g.jsxs("div",{className:"text-zinc-500 mt-2 pt-2 border-t border-zinc-700/50",children:["... ",u.length-s," more matches"]})]})})]})})}function uE(n){return n.split("/").slice(-2).join("/")}function kg(n){var i;const a=n.split(".");return a.length>1?(i=a.pop())==null?void 0:i.toLowerCase():""}function wg(n){return{ts:"TypeScript",tsx:"TypeScript React",js:"JavaScript",jsx:"JavaScript React",py:"Python",rb:"Ruby",go:"Go",rs:"Rust",java:"Java",cpp:"C++",c:"C",css:"CSS",scss:"SCSS",html:"HTML",json:"JSON",yaml:"YAML",yml:"YAML",md:"Markdown",sql:"SQL",sh:"Shell",bash:"Bash"}[n]||null}function sE(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=uE(a.file_path),u=kg(a.file_path),s=u?wg(u):null;return g.jsx("div",{className:"w-full mt-2",children:g.jsx("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:g.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[g.jsx(u0,{size:14,className:"text-sky-400"}),g.jsx("span",{className:"text-xs font-mono text-zinc-300",children:i}),s&&g.jsx("span",{className:"text-xs text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:s}),g.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[(a.offset||a.limit)&&g.jsxs("span",{className:"text-xs text-zinc-500 mr-1",children:[a.offset&&`from line ${a.offset}`,a.offset&&a.limit&&", ",a.limit&&`${a.limit} lines`]}),g.jsx(Hi,{text:a.file_path})]})]})})})}function oE(n){const{content:a,fileName:i}=n;if(!a)return null;const u=a.split(`
304
+ `),s=50,c=u.length>s,f=c?u.slice(0,s):u,d=i?kg(i):"",p=d?wg(d):null;return g.jsx("div",{className:"w-full mt-2",children:g.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[g.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[g.jsx(Tc,{size:14,className:"text-sky-400"}),g.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"File Content"}),p&&g.jsx("span",{className:"text-xs text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:p}),g.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," lines"]})]}),g.jsxs("div",{className:"overflow-x-auto max-h-96 overflow-y-auto",children:[g.jsx("table",{className:"w-full text-xs font-mono",children:g.jsx("tbody",{children:f.map((m,x)=>g.jsxs("tr",{className:"hover:bg-zinc-800/30",children:[g.jsx("td",{className:"select-none text-right pr-3 pl-3 py-0.5 text-zinc-600 border-r border-zinc-800 w-10 sticky left-0 bg-zinc-900/70",children:x+1}),g.jsx("td",{className:"pl-3 pr-3 py-0.5 text-zinc-300 whitespace-pre",children:m||" "})]},x))})}),c&&g.jsxs("div",{className:"px-3 py-2 text-xs text-zinc-500 border-t border-zinc-700/50",children:["... ",u.length-s," more lines"]})]})]})})}function cE(n){const{input:a}=n;return!a||!a.questions||a.questions.length===0?null:g.jsx("div",{className:"w-full mt-2 space-y-3",children:a.questions.map((i,u)=>g.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[g.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[g.jsx(s1,{size:14,className:"text-violet-400"}),g.jsx("span",{className:"text-xs font-medium text-zinc-300",children:i.header||"Question"}),i.multiSelect&&g.jsx("span",{className:"text-[10px] text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded ml-auto",children:"Multi-select"})]}),g.jsxs("div",{className:"p-3 space-y-3",children:[g.jsx("p",{className:"text-sm text-zinc-200",children:i.question}),i.options&&i.options.length>0&&g.jsx("div",{className:"space-y-2",children:i.options.map((s,c)=>{const f=i.multiSelect?fc:h0;return g.jsxs("div",{className:"flex items-start gap-2 px-2 py-1.5 rounded bg-zinc-800/40 border border-zinc-700/30",children:[g.jsx(f,{size:14,className:"text-violet-400/70 mt-0.5 flex-shrink-0"}),g.jsxs("div",{className:"min-w-0",children:[g.jsx("div",{className:"text-xs font-medium text-zinc-200",children:s.label}),s.description&&g.jsx("div",{className:"text-xs text-zinc-500 mt-0.5",children:s.description})]})]},c)})})]})]},u))})}function fE(n){const a=n.toLowerCase();return a==="explore"?"text-cyan-400":a==="plan"?"text-violet-400":a==="claude-code-guide"?"text-amber-400":a==="general-purpose"?"text-emerald-400":"text-blue-400"}function hE(n){const a=n.toLowerCase();return a==="explore"?"bg-cyan-500/10 border-cyan-500/20":a==="plan"?"bg-violet-500/10 border-violet-500/20":a==="claude-code-guide"?"bg-amber-500/10 border-amber-500/20":a==="general-purpose"?"bg-emerald-500/10 border-emerald-500/20":"bg-blue-500/10 border-blue-500/20"}function dE(n){const{input:a}=n;if(!a)return null;const i=fE(a.subagent_type),u=hE(a.subagent_type);return g.jsx("div",{className:"w-full mt-2",children:g.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[g.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[g.jsx(a0,{size:14,className:i}),g.jsx("span",{className:`text-xs font-medium ${i}`,children:a.subagent_type}),a.description&&g.jsxs(g.Fragment,{children:[g.jsx(t1,{size:10,className:"text-zinc-600"}),g.jsx("span",{className:"text-xs text-zinc-400",children:a.description})]}),g.jsxs("div",{className:"flex items-center gap-1.5 ml-auto",children:[a.resume&&g.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:[g.jsx(G1,{size:10}),"resume"]}),a.run_in_background&&g.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:[g.jsx(B1,{size:10}),"background"]}),a.model&&g.jsx("span",{className:"text-[10px] text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:a.model})]})]}),g.jsx("div",{className:"p-3",children:g.jsxs("div",{className:`flex items-start gap-2 px-3 py-2 rounded-lg border ${u}`,children:[g.jsx(f0,{size:12,className:`${i} mt-0.5 flex-shrink-0`}),g.jsx("p",{className:"text-xs text-zinc-300 leading-relaxed whitespace-pre-wrap",children:a.prompt})]})})]})})}const Eg=V.memo(function(a){const{content:i,className:u=""}=a;return g.jsx("div",{className:`break-words ${u}`,children:g.jsx(Mz,{remarkPlugins:[Fw],components:{h1:s=>{const{children:c}=s;return g.jsx("div",{className:"text-base font-semibold text-zinc-100 mt-3 mb-1.5",children:c})},h2:s=>{const{children:c}=s;return g.jsx("div",{className:"text-sm font-semibold text-zinc-100 mt-3 mb-1.5",children:c})},h3:s=>{const{children:c}=s;return g.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-3 mb-1.5",children:c})},h4:s=>{const{children:c}=s;return g.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},h5:s=>{const{children:c}=s;return g.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},h6:s=>{const{children:c}=s;return g.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},p:s=>{const{children:c}=s;return g.jsx("p",{className:"text-[13px] leading-relaxed text-zinc-200 whitespace-pre-wrap my-2",children:c})},a:s=>{const{href:c,children:f}=s;return g.jsx("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400 hover:text-cyan-300 underline underline-offset-2",children:f})},strong:s=>{const{children:c}=s;return g.jsx("strong",{className:"font-semibold text-zinc-50",children:c})},em:s=>{const{children:c}=s;return g.jsx("em",{className:"italic text-zinc-200",children:c})},code:s=>{const{children:c}=s;return g.jsx("code",{className:"px-1.5 py-0.5 rounded bg-zinc-800/80 text-cyan-300 text-[12px] font-mono",children:c})},pre:s=>{var p,m,x;const{node:c}=s,f=(p=c==null?void 0:c.children)==null?void 0:p[0];if((f==null?void 0:f.tagName)==="code"){const S=(((m=f.properties)==null?void 0:m.className)||[]).find(j=>j.startsWith("language-")),v=(S==null?void 0:S.replace("language-",""))||"code",w=((x=f.children)==null?void 0:x.map(j=>j.value).join(""))||"";return g.jsxs("div",{className:"relative group my-2 rounded-lg overflow-hidden border border-zinc-700/50",children:[g.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 bg-zinc-900 border-b border-zinc-700/50",children:[g.jsx("span",{className:"text-[10px] text-zinc-500 font-mono",children:v}),g.jsx(Hi,{text:w})]}),g.jsx("pre",{className:"text-xs text-zinc-300 bg-zinc-900/80 p-3 overflow-x-auto rounded-t-none!",children:g.jsx("code",{children:w})})]})}const{children:d}=s;return g.jsx("pre",{children:d})},ul:s=>{const{children:c}=s;return g.jsx("ul",{className:"my-2 ml-3 space-y-1 list-disc list-inside text-zinc-200",children:c})},ol:s=>{const{children:c}=s;return g.jsx("ol",{className:"my-2 ml-3 space-y-1 list-decimal list-inside text-zinc-200",children:c})},li:s=>{const{children:c}=s;return g.jsx("li",{className:"text-[13px] leading-relaxed",children:c})},blockquote:s=>{const{children:c}=s;return g.jsx("div",{className:"border-l-2 border-zinc-600 pl-3 my-2 text-zinc-400 italic",children:c})},hr:()=>g.jsx("hr",{className:"border-zinc-700 my-4"}),table:s=>{const{children:c}=s;return g.jsx("div",{className:"my-2 overflow-x-auto rounded-lg border border-zinc-700/50",children:g.jsx("table",{className:"w-full text-[13px]",children:c})})},thead:s=>{const{children:c}=s;return g.jsx("thead",{className:"bg-zinc-900",children:c})},tr:s=>{const{children:c}=s;return g.jsx("tr",{className:"border-b border-zinc-700/50 last:border-b-0",children:c})},th:s=>{const{children:c}=s;return g.jsx("th",{className:"px-3 py-2 text-left font-medium text-zinc-200",children:c})},td:s=>{const{children:c}=s;return g.jsx("td",{className:"px-3 py-2 text-zinc-300",children:c})}},children:i})})});function mE(n){const a=new Map;for(const i of n)i.type==="tool_use"&&i.id&&i.name&&a.set(i.id,i.name);return a}function mu(n){return!n||typeof n=="string"?[]:Array.isArray(n)?n:[n]}function pE(n){var i;const a=(i=n.message)==null?void 0:i.content;return a?typeof a=="string"?Ft(a):mu(a).filter(u=>u.type==="text"&&u.text).map(u=>Ft(u.text)).join(`
305
+ `):""}const gE=V.memo(function(a){var j;const{message:i}=a,u=i.type==="user",s=(j=i.message)==null?void 0:j.content,c=()=>mu(s).filter(_=>_.type==="text"),f=()=>mu(s).filter(_=>_.type==="tool_use"||_.type==="tool_result"||_.type==="thinking"),d=()=>c().filter(_=>_.text&&Ft(_.text).length>0),p=()=>typeof s=="string"?Ft(s).length>0:d().length>0,m=f(),x=d(),y=p(),S=m.length>0,v=mE(mu(s));if(!y&&S)return g.jsx("div",{className:"flex flex-col gap-1 py-0.5",children:m.map((_,M)=>g.jsx(oc,{block:_,toolMap:v},M))});if(!y&&!S)return null;const w=pE(i);return g.jsx("div",{className:`flex ${u?"justify-end":"justify-start"} min-w-0`,children:g.jsxs("div",{className:"max-w-[85%] min-w-0",children:[g.jsxs("div",{className:`relative px-3.5 py-2.5 rounded-2xl overflow-hidden ${u?"bg-indigo-600/80 text-indigo-50 rounded-br-md":"bg-cyan-700/50 text-zinc-100 rounded-bl-md"}`,children:[w&&g.jsx(Hi,{text:w,title:"Copy message",className:"absolute top-2 right-2 p-1.5 bg-black/10 hover:bg-black/20 rounded-lg"}),g.jsx("div",{className:w?"pr-10":"",children:typeof s=="string"?u?g.jsx("div",{className:"whitespace-pre-wrap wrap-break-word text-[13px] leading-relaxed",children:Ft(s)}):g.jsx(Eg,{content:Ft(s)}):g.jsx("div",{className:"flex flex-col gap-1",children:x.map((_,M)=>g.jsx(oc,{block:_,isUser:u,toolMap:v},M))})})]}),S&&g.jsx("div",{className:"flex flex-col gap-1 mt-1.5",children:m.map((_,M)=>g.jsx(oc,{block:_,toolMap:v},M))})]})})}),Wp={todowrite:o0,read:u0,bash:d0,grep:Va,edit:q1,write:s0,glob:Cc,task:a0},xE=[{patterns:["web","fetch","url"],icon:w1},{patterns:["ask","question"],icon:_1},{patterns:["git","commit"],icon:z1},{patterns:["sql","database","query"],icon:d1},{patterns:["file","disk"],icon:T1}];function yE(n){const a=n.toLowerCase();if(Wp[a])return Wp[a];for(const{patterns:i,icon:u}of xE)if(i.some(s=>a.includes(s)))return u;return tb}function sc(n){return n.split("/").slice(-2).join("/")}const bE={read:n=>n.file_path?sc(String(n.file_path)):null,edit:n=>n.file_path?sc(String(n.file_path)):null,write:n=>n.file_path?sc(String(n.file_path)):null,bash:n=>{if(!n.command)return null;const a=String(n.command);return a.length>50?a.slice(0,50)+"...":a},grep:n=>n.pattern?`"${String(n.pattern)}"`:null,glob:n=>n.pattern?String(n.pattern):null,task:n=>n.description?String(n.description):null};function vE(n,a){if(!a)return null;const i=n.toLowerCase(),u=bE[i];if(u)return u(a);if(i.includes("web")&&a.url)try{return new URL(String(a.url)).hostname}catch{return String(a.url).slice(0,30)}return null}function SE(n){const{toolName:a,input:i}=n,u=a.toLowerCase();return u==="todowrite"&&i.todos?g.jsx(Qw,{todos:i.todos}):u==="edit"&&i.file_path?g.jsx(tE,{input:i}):u==="write"&&i.file_path?g.jsx(nE,{input:i}):u==="bash"&&i.command?g.jsx(lE,{input:i}):u==="grep"&&i.pattern?g.jsx(aE,{input:i}):u==="glob"&&i.pattern?g.jsx(rE,{input:i}):u==="read"&&i.file_path?g.jsx(sE,{input:i}):u==="askuserquestion"&&i.questions?g.jsx(cE,{input:i}):u==="task"&&i.prompt?g.jsx(dE,{input:i}):g.jsx("pre",{className:"text-xs text-slate-300 bg-slate-900/50 border border-slate-700/50 rounded-lg p-3 mt-2 overflow-x-auto whitespace-pre-wrap break-all max-h-80 overflow-y-auto",children:JSON.stringify(i,null,2)})}function zE(n){const{toolName:a,content:i,isError:u}=n,s=a.toLowerCase();if(s==="bash")return g.jsx(iE,{content:i,isError:u});if(s==="glob")return g.jsx($p,{content:i,isFileList:!0});if(s==="grep")return g.jsx($p,{content:i});if(s==="read")return g.jsx(oE,{content:i});if(!i||i.trim().length===0)return g.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-teal-500/10 border border-teal-500/20 rounded-lg mt-2",children:[g.jsx(Sl,{size:14,className:"text-teal-400"}),g.jsx("span",{className:"text-xs text-teal-300",children:"Completed successfully"})]});const c=2e3,f=i.length>c,d=f?i.slice(0,c):i;return g.jsxs("pre",{className:`text-xs rounded-lg p-3 mt-2 overflow-x-auto whitespace-pre-wrap break-all max-h-80 overflow-y-auto border ${u?"bg-rose-950/30 text-rose-200/80 border-rose-900/30":"bg-teal-950/30 text-teal-200/80 border-teal-900/30"}`,children:[d,f&&g.jsxs("span",{className:"text-zinc-500",children:["... (",i.length-c," more chars)"]})]})}function oc(n){var f;const{block:a,isUser:i,toolMap:u}=n,[s,c]=V.useState(!1);if(a.type==="text"&&a.text){const d=Ft(a.text);return d?i?g.jsx("div",{className:"whitespace-pre-wrap wrap-break-word text-[13px] leading-relaxed",children:d}):g.jsx(Eg,{content:d}):null}if(a.type==="thinking"&&a.thinking)return g.jsxs("div",{className:s?"w-full":"",children:[g.jsxs("button",{onClick:()=>c(!s),className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-amber-500/10 hover:bg-amber-500/15 text-[11px] text-amber-400/90 transition-colors border border-amber-500/20",children:[g.jsx(N1,{size:12,className:"opacity-70"}),g.jsx("span",{className:"font-medium",children:"thinking"}),g.jsx("span",{className:"text-[10px] opacity-50 ml-0.5",children:s?"▼":"▶"})]}),s&&g.jsx("pre",{className:"text-xs text-zinc-400 bg-zinc-900/80 border border-zinc-800 rounded-lg p-3 mt-2 whitespace-pre-wrap max-h-80 overflow-y-auto",children:a.thinking})]});if(a.type==="tool_use"){const d=a.input&&typeof a.input=="object"?a.input:void 0,p=d&&Object.keys(d).length>0,m=yE(a.name||""),x=vE(a.name||"",d),y=((f=a.name)==null?void 0:f.toLowerCase())||"",S=y==="todowrite"||y==="edit"||y==="write"||y==="bash"||y==="grep"||y==="glob"||y==="read"||y==="askuserquestion"||y==="task",v=y==="todowrite"||y==="askuserquestion"||y==="task",w=s||v;return g.jsxs("div",{className:w?"w-full":"",children:[g.jsxs("button",{onClick:()=>p&&!v&&c(!s),className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-500/10 hover:bg-slate-500/15 text-[11px] text-slate-300 transition-colors border border-slate-500/20",children:[g.jsx(m,{size:12,className:"opacity-60"}),g.jsx("span",{className:"font-medium text-slate-200",children:a.name}),x&&g.jsx("span",{className:"text-slate-500 font-normal truncate max-w-50",children:x}),p&&!v&&g.jsx("span",{className:"text-[10px] opacity-40 ml-0.5",children:s?"▼":"▶"})]}),w&&p&&S?g.jsx(SE,{toolName:a.name||"",input:d}):s&&p&&g.jsx("pre",{className:"text-xs text-slate-300 bg-slate-900/50 border border-slate-700/50 rounded-lg p-3 mt-2 overflow-x-auto whitespace-pre-wrap break-all max-h-80 overflow-y-auto",children:JSON.stringify(d,null,2)})]})}if(a.type==="tool_result"){const d=a.is_error,p=typeof a.content=="string"?a.content:JSON.stringify(a.content,null,2),m=Ft(p),x=m.length>0,y=60,S=x&&!s?m.slice(0,y)+(m.length>y?"...":""):null,v=a.tool_use_id&&u&&u.get(a.tool_use_id)||"";return g.jsxs("div",{className:s?"w-full":"",children:[g.jsxs("button",{onClick:()=>x&&c(!s),className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg text-[11px] transition-colors border ${d?"bg-rose-500/10 hover:bg-rose-500/15 text-rose-400/90 border-rose-500/20":"bg-teal-500/10 hover:bg-teal-500/15 text-teal-400/90 border-teal-500/20"}`,children:[d?g.jsx(vu,{size:12,className:"opacity-70"}):g.jsx(Sl,{size:12,className:"opacity-70"}),g.jsx("span",{className:"font-medium",children:d?"error":"result"}),S&&!s&&g.jsx("span",{className:`font-normal truncate max-w-50 ${d?"text-rose-500/70":"text-teal-500/70"}`,children:S}),x&&g.jsx("span",{className:"text-[10px] opacity-40 ml-0.5",children:s?"▼":"▶"})]}),s&&x&&g.jsx(zE,{toolName:v,content:m,isError:d})]})}return null}function kE({onClick:n}){return g.jsxs("button",{onClick:n,className:"fixed bottom-4 right-6 flex cursor-pointer items-center gap-1.5 rounded-full bg-zinc-200/90 px-3.5 py-2 text-xs font-medium text-zinc-900 shadow-lg backdrop-blur-sm transition-all hover:bg-zinc-100",children:[g.jsx("svg",{className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 14l-7 7m0 0l-7-7m7 7V3"})}),g.jsx("span",{children:"Latest"})]})}const wE=10,EE=1e3,TE=3e4,CE=100;function NE(n){const{sessionId:a,onMetaChange:i}=n,[u,s]=V.useState([]),[c,f]=V.useState(!0),[d,p]=V.useState(!0),m=V.useRef(null),x=V.useRef(null),y=V.useRef(0),S=V.useRef(!1),v=V.useRef(0),w=V.useRef(null),j=V.useRef(null),_=V.useRef(!0),M=V.useCallback(()=>{if(!_.current)return;w.current&&w.current.close();const O=new EventSource(`/api/conversation/${a}/stream?offset=${y.current}`);w.current=O,O.addEventListener("messages",$=>{v.current=0;const se=JSON.parse($.data);f(!1),s(me=>{const B=new Set(me.map(ee=>ee.uuid).filter(Boolean)),ne=se.filter(ee=>!B.has(ee.uuid));return ne.length===0?me:(y.current+=ne.length,[...me,...ne])})}),O.onerror=()=>{if(O.close(),f(!1),!!_.current&&v.current<wE){const $=Math.min(EE*Math.pow(2,v.current),TE);v.current++,j.current=setTimeout(()=>M(),$)}}},[a]);V.useEffect(()=>(_.current=!0,f(!0),s([]),y.current=0,v.current=0,M(),()=>{_.current=!1,j.current&&clearTimeout(j.current),w.current&&w.current.close()}),[M]);const q=V.useCallback(()=>{x.current&&(S.current=!0,x.current.scrollIntoView({behavior:"instant"}),requestAnimationFrame(()=>{S.current=!1}))},[]);V.useEffect(()=>{d&&q()},[u,d,q]),V.useEffect(()=>{var ne;if(!i)return;const O=u.filter(ee=>ee.type==="user"||ee.type==="assistant"),$=new Set,se=[];for(const ee of O){const de=(ne=ee.message)==null?void 0:ne.model;de&&$.add(de);const re=ee.timestamp;if(typeof re=="string"){const W=Date.parse(re);Number.isNaN(W)||se.push(W)}else typeof re=="number"&&Number.isFinite(re)&&se.push(re)}const me=se.length>0?Math.min(...se):null,B=se.length>0?Math.max(...se):null;i({models:Array.from($.values()),startTime:me,endTime:B,messageCount:O.length})},[u,i]);const H=()=>{if(!m.current||S.current)return;const{scrollTop:O,scrollHeight:$,clientHeight:se}=m.current,me=$-O-se<CE;p(me)},I=u.find(O=>O.type==="summary"),P=u.filter(O=>O.type==="user"||O.type==="assistant");return c?g.jsx("div",{className:"flex h-full items-center justify-center text-zinc-500",children:"Loading..."}):g.jsxs("div",{className:"relative h-full",children:[g.jsx("div",{ref:m,onScroll:H,className:"h-full overflow-y-auto bg-zinc-950",children:g.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-4",children:[I&&g.jsxs("div",{className:"mb-6 rounded-xl border border-zinc-800/60 bg-zinc-900/50 p-4",children:[g.jsx("h2",{className:"text-sm font-medium text-zinc-200 leading-relaxed",children:I.summary}),g.jsxs("p",{className:"mt-2 text-[11px] text-zinc-500",children:[P.length," messages"]})]}),g.jsx("div",{className:"flex flex-col gap-2",children:P.map((O,$)=>g.jsx("div",{ref:$===P.length-1?x:void 0,children:g.jsx(gE,{message:O})},O.uuid||$))})]})}),!d&&g.jsx(kE,{onClick:()=>{p(!0),q()}})]})}function jE(n,a){const{events:i,onError:u,maxRetries:s=10,baseDelay:c=1e3}=a,f=V.useRef(null),d=V.useRef(0),p=V.useRef(null),m=V.useRef(!0),x=V.useRef(i);x.current=i;const y=V.useCallback(()=>{if(!m.current)return;f.current&&f.current.close();const S=new EventSource(n);f.current=S;for(const v of x.current)S.addEventListener(v.eventName,w=>{d.current=0,v.onMessage(w)});S.onerror=()=>{if(S.close(),!!m.current)if(d.current<s){const v=Math.min(c*Math.pow(2,d.current),3e4);d.current++,p.current=setTimeout(()=>{y()},v)}else u==null||u()}},[n,u,s,c]);V.useEffect(()=>(m.current=!0,y(),()=>{m.current=!1,p.current&&clearTimeout(p.current),f.current&&f.current.close()}),[y])}const ME={mode:"full",includeTools:!0,includeThoughts:!0,truncateToolResults:!0,truncationMode:"lines",maxToolResultLength:30};function AE(n){const a=n.name||"unknown",i=n.input;let u=[`**Tool: ${a}**`];return i&&Object.keys(i).length>0&&(u.push("```json"),u.push(JSON.stringify(i,null,2)),u.push("```")),u.join(`
306
+ `)}function _E(n,a){let i=0;for(let u=0;u<n.length;u++)if(n[u]===`
307
+ `&&(i++,i>=a))return{text:n.slice(0,u),truncated:!0};return{text:n,truncated:!1}}function OE(n,a){const i=n.is_error;let u=typeof n.content=="string"?n.content:JSON.stringify(n.content,null,2);const s=i?"**Error:**":"**Result:**";if(a.truncateToolResults){let f=!1;if(a.truncationMode==="lines"){const d=_E(u,a.maxToolResultLength);u=d.text,f=d.truncated}else u.length>a.maxToolResultLength&&(u=u.slice(0,a.maxToolResultLength),f=!0);if(f){const d=Ft(u);return d?`${s}
308
+ \`\`\`
309
+ ${d}
310
+ ...
311
+ (truncated)
312
+ \`\`\``:i?"**Error** (empty)":"**Result:** Success"}}const c=Ft(u);return c?`${s}
313
+ \`\`\`
314
+ ${c}
315
+ \`\`\``:i?"**Error** (empty)":"**Result:** Success"}function DE(n){const a=n.thinking||"";return a?`<details>
316
+ <summary>💡 Thinking</summary>
317
+
318
+ ${a}
319
+
320
+ </details>`:""}function RE(n,a,i){if(typeof n=="string")return a.mode==="tools-only"?"":Ft(n);const u=[],s=a.mode==="tools-only";for(const c of n)if(!(s&&c.type!=="tool_use"&&c.type!=="tool_result"))if(c.type==="text"&&c.text){const f=Ft(c.text);f&&u.push(f)}else if(c.type==="thinking"&&c.thinking&&a.includeThoughts){const f=DE(c);f&&u.push(f)}else c.type==="tool_use"?(s||a.includeTools)&&u.push(AE(c)):c.type==="tool_result"&&(s||a.includeTools)&&u.push(OE(c,a));return u.join(`
321
+
322
+ `)}function LE(n,a){var s;const i=(s=n.message)==null?void 0:s.content;if(!i)return!1;const u=a.mode==="tools-only";if(typeof i=="string")return u?!1:Ft(i).length>0;if(u){for(const c of i)if(c.type==="tool_use"||c.type==="tool_result")return!0;return!1}for(const c of i)if(c.type==="text"&&c.text&&Ft(c.text).length>0||c.type==="thinking"&&c.thinking&&a.includeThoughts||(c.type==="tool_use"||c.type==="tool_result")&&a.includeTools)return!0;return!1}function UE(n,a){var d,p;if(n.type==="summary"){const m=(d=n.summary)==null?void 0:d.trim();return m?`## Summary
323
+
324
+ ${m}`:""}if(n.type!=="user"&&n.type!=="assistant"||!LE(n,a))return"";const i=(p=n.message)==null?void 0:p.content;if(!i)return"";const u=n.type==="user",s=a.mode==="tools-only",c=RE(i,a);if(s&&u)return c.trim()?c:"";const f=u?"**User:**":"**Assistant:**";return c.trim()?`${f}
325
+
326
+ ${c}`:""}function Tg(n,a,i){const u=[];i&&(u.push(`# ${i.display}`),u.push(""),u.push(`**Project:** ${i.projectName}`),u.push(`**Date:** ${new Date(i.timestamp).toLocaleString()}`),u.push(`**Session ID:** ${i.id}`),u.push(""),u.push("---"),u.push(""));let s=0;for(let c=0;c<n.length;c++){c%50===0&&console.log(`Processing message ${c}/${n.length}`);const f=n[c],d=UE(f,a);d&&d.trim()&&(u.push(d),u.push(""),u.push("---"),u.push(""),s++)}return console.log(`Exported ${s} of ${n.length} messages`),u.join(`
327
+ `).trim()}function Pp(n,a){const i=new Blob([n],{type:"text/markdown;charset=utf-8"}),u=URL.createObjectURL(i),s=document.createElement("a");s.href=u,s.download=a,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(u)}function BE(n){const i=new Date(n.timestamp).toISOString().split("T")[0],u=n.display.slice(0,50).replace(/[^a-zA-Z0-9\s-]/g,"").replace(/\s+/g,"-").toLowerCase();return`${i}-${u}.md`}async function Cg(n){const a=new AbortController,i=setTimeout(()=>a.abort(),3e4);try{const u=await fetch(`/api/conversation/${n}`,{signal:a.signal});if(clearTimeout(i),!u.ok)throw new Error(`Failed to fetch conversation: ${u.statusText}`);return u.json()}catch(u){throw clearTimeout(i),u instanceof Error&&u.name==="AbortError"?new Error("Fetch timed out after 30 seconds"):u}}async function HE(n,a,i){const u=[];u.push("# Exported Conversations"),u.push(""),u.push(`**Export Date:** ${new Date().toLocaleString()}`),u.push(`**Total Conversations:** ${n.length}`),u.push(""),u.push("---"),u.push("");for(let s=0;s<n.length;s++){const c=n[s];i==null||i(s+1,n.length);try{const f=await Cg(c.id),d=Tg(f,a,c);u.push(d),u.push(""),u.push("---"),u.push("")}catch{u.push(`# ${c.display}`),u.push(""),u.push("**Error:** Failed to export this conversation"),u.push(""),u.push("---"),u.push("")}}return u.join(`
328
+ `).trim()}function qE(n){const{sessions:a,messages:i,onClose:u}=n,s=a.length>1,[c,f]=V.useState({...ME}),[d,p]=V.useState(!1),[m,x]=V.useState(null),y=V.useCallback(async()=>{console.log("=== EXPORT STARTED ==="),p(!0);try{if(s){const S=await HE(a,c,(w,j)=>x({current:w,total:j})),v=new Date().toISOString().split("T")[0];Pp(S,`${v}-conversations-export.md`)}else{const S=a[0];console.log("Fetching session:",S.id);const v=i??await Cg(S.id);console.log("Fetched",v.length,"messages"),await new Promise(j=>setTimeout(j,0)),console.log("Starting markdown conversion...");const w=Tg(v,c,S);console.log("Generated",w.length,"chars"),Pp(w,BE(S)),console.log("Download triggered")}u()}catch(S){console.error("Export failed:",S)}finally{p(!1),x(null),console.log("=== EXPORT FINISHED ===")}},[a,i,c,s,u]);return g.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",children:g.jsxs("div",{className:"w-full max-w-md mx-4 bg-zinc-900 border border-zinc-700 rounded-xl shadow-2xl",children:[g.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-zinc-700",children:[g.jsxs("h2",{className:"text-base font-medium text-zinc-100",children:["Export ",s?`${a.length} Conversations`:"Conversation"]}),g.jsx("button",{onClick:u,disabled:d,className:"p-1.5 hover:bg-zinc-800 rounded-lg transition-colors disabled:opacity-50",children:g.jsx(vu,{className:"w-4 h-4 text-zinc-400"})})]}),g.jsxs("div",{className:"px-5 py-4 space-y-4",children:[!s&&a[0]&&g.jsxs("div",{className:"p-3 bg-zinc-800/50 rounded-lg border border-zinc-700/50",children:[g.jsx("p",{className:"text-sm text-zinc-300 line-clamp-2",children:a[0].display}),g.jsx("p",{className:"text-xs text-zinc-500 mt-1",children:a[0].projectName})]}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("p",{className:"text-sm font-medium text-zinc-300",children:"Export Mode"}),g.jsxs("div",{className:"space-y-2",children:[g.jsxs("label",{className:"flex items-center gap-3 cursor-pointer group",children:[g.jsx("input",{type:"radio",name:"exportMode",checked:c.mode==="full",onChange:()=>f(S=>({...S,mode:"full"})),disabled:d,className:"w-4 h-4 border-zinc-600 bg-zinc-800 text-cyan-500 focus:ring-cyan-500 focus:ring-offset-zinc-900"}),g.jsxs("div",{children:[g.jsx("span",{className:"text-sm text-zinc-200 group-hover:text-zinc-100",children:"Full conversation"}),g.jsx("p",{className:"text-xs text-zinc-500",children:"Include messages and optionally tools/thoughts"})]})]}),g.jsxs("label",{className:"flex items-center gap-3 cursor-pointer group",children:[g.jsx("input",{type:"radio",name:"exportMode",checked:c.mode==="tools-only",onChange:()=>f(S=>({...S,mode:"tools-only"})),disabled:d,className:"w-4 h-4 border-zinc-600 bg-zinc-800 text-cyan-500 focus:ring-cyan-500 focus:ring-offset-zinc-900"}),g.jsxs("div",{children:[g.jsx("span",{className:"text-sm text-zinc-200 group-hover:text-zinc-100",children:"Tools only"}),g.jsx("p",{className:"text-xs text-zinc-500",children:"Only tool calls and results, exclude conversation text"})]})]})]})]}),c.mode==="full"&&g.jsxs("div",{className:"space-y-3",children:[g.jsx("p",{className:"text-sm font-medium text-zinc-300",children:"Content Options"}),g.jsxs("label",{className:"flex items-center gap-3 cursor-pointer group",children:[g.jsx("input",{type:"checkbox",checked:c.includeTools,onChange:S=>f(v=>({...v,includeTools:S.target.checked})),disabled:d,className:"w-4 h-4 rounded border-zinc-600 bg-zinc-800 text-cyan-500 focus:ring-cyan-500 focus:ring-offset-zinc-900"}),g.jsxs("div",{children:[g.jsx("span",{className:"text-sm text-zinc-200 group-hover:text-zinc-100",children:"Include tool calls and results"}),g.jsx("p",{className:"text-xs text-zinc-500",children:"Bash commands, file edits, search results, etc."})]})]}),g.jsxs("label",{className:"flex items-center gap-3 cursor-pointer group",children:[g.jsx("input",{type:"checkbox",checked:c.includeThoughts,onChange:S=>f(v=>({...v,includeThoughts:S.target.checked})),disabled:d,className:"w-4 h-4 rounded border-zinc-600 bg-zinc-800 text-cyan-500 focus:ring-cyan-500 focus:ring-offset-zinc-900"}),g.jsxs("div",{children:[g.jsx("span",{className:"text-sm text-zinc-200 group-hover:text-zinc-100",children:"Include thinking blocks"}),g.jsx("p",{className:"text-xs text-zinc-500",children:"Claude's internal reasoning process"})]})]})]}),g.jsxs("div",{className:"space-y-3",children:[g.jsx("p",{className:"text-sm font-medium text-zinc-300",children:"Truncation Settings"}),g.jsxs("label",{className:"flex items-center gap-3 cursor-pointer group",children:[g.jsx("input",{type:"checkbox",checked:c.truncateToolResults,onChange:S=>f(v=>({...v,truncateToolResults:S.target.checked})),disabled:d,className:"w-4 h-4 rounded border-zinc-600 bg-zinc-800 text-cyan-500 focus:ring-cyan-500 focus:ring-offset-zinc-900"}),g.jsxs("div",{children:[g.jsx("span",{className:"text-sm text-zinc-200 group-hover:text-zinc-100",children:"Truncate long tool results"}),g.jsxs("p",{className:"text-xs text-zinc-500",children:["Limit tool output to ",c.maxToolResultLength.toLocaleString()," ",c.truncationMode==="lines"?"lines":"characters"]})]})]}),c.truncateToolResults&&g.jsxs("div",{className:"ml-7 space-y-3",children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[g.jsx("input",{type:"radio",name:"truncationMode",checked:c.truncationMode==="lines",onChange:()=>f(S=>({...S,truncationMode:"lines",maxToolResultLength:30})),disabled:d,className:"w-3.5 h-3.5 border-zinc-600 bg-zinc-800 text-cyan-500 focus:ring-cyan-500 focus:ring-offset-zinc-900"}),g.jsx("span",{className:"text-xs text-zinc-300",children:"Lines"})]}),g.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[g.jsx("input",{type:"radio",name:"truncationMode",checked:c.truncationMode==="chars",onChange:()=>f(S=>({...S,truncationMode:"chars",maxToolResultLength:2e3})),disabled:d,className:"w-3.5 h-3.5 border-zinc-600 bg-zinc-800 text-cyan-500 focus:ring-cyan-500 focus:ring-offset-zinc-900"}),g.jsx("span",{className:"text-xs text-zinc-300",children:"Characters"})]})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("label",{className:"text-xs text-zinc-400",children:["Max ",c.truncationMode==="lines"?"lines":"chars",":"]}),g.jsx("input",{type:"number",value:c.maxToolResultLength,onChange:S=>f(v=>({...v,maxToolResultLength:Math.max(c.truncationMode==="lines"?1:100,parseInt(S.target.value)||(c.truncationMode==="lines"?30:2e3))})),disabled:d,className:"w-24 px-2 py-1 text-xs bg-zinc-800 border border-zinc-700 rounded text-zinc-200 focus:outline-none focus:border-cyan-500",min:c.truncationMode==="lines"?1:100,step:c.truncationMode==="lines"?10:500})]})]})]}),m&&g.jsxs("div",{className:"space-y-2",children:[g.jsxs("div",{className:"flex justify-between text-xs text-zinc-400",children:[g.jsx("span",{children:"Exporting..."}),g.jsxs("span",{children:[m.current," / ",m.total]})]}),g.jsx("div",{className:"h-1.5 bg-zinc-800 rounded-full overflow-hidden",children:g.jsx("div",{className:"h-full bg-cyan-500 transition-all duration-300",style:{width:`${m.current/m.total*100}%`}})})]})]}),g.jsxs("div",{className:"flex justify-end gap-3 px-5 py-4 border-t border-zinc-700 bg-zinc-900/50",children:[g.jsx("button",{onClick:u,disabled:d,className:"px-4 py-2 text-sm text-zinc-300 hover:text-zinc-100 hover:bg-zinc-800 rounded-lg transition-colors disabled:opacity-50",children:"Cancel"}),g.jsx("button",{onClick:y,disabled:d,className:"flex items-center gap-2 px-4 py-2 text-sm font-medium text-zinc-900 bg-cyan-500 hover:bg-cyan-400 rounded-lg transition-colors disabled:opacity-50",children:d?g.jsxs(g.Fragment,{children:[g.jsx(c0,{className:"w-4 h-4 animate-spin"}),"Exporting..."]}):g.jsxs(g.Fragment,{children:[g.jsx(Ec,{className:"w-4 h-4"}),"Export Markdown"]})})]})]})})}const Qn={mode:"literal",caseSensitive:!1,wordRegexp:!1,maxMatchesPerFile:200,maxSessions:500,timeoutMs:8e3};function _i(n){if(n===null)return;const a=n.trim().toLowerCase();if(a==="1"||a==="true"||a==="yes")return!0;if(a==="0"||a==="false"||a==="no")return!1}function YE(n){if(n===null)return;const a=Number.parseInt(n,10);return Number.isFinite(a)?a:void 0}function e0(n){const a=new URLSearchParams(n.startsWith("?")?n:`?${n}`),i=a.get("project"),u=a.get("session"),s=a.get("s"),c=a.get("q"),f=_i(a.get("ft")),d=_i(a.get("sidebar")),p=_i(a.get("batch")),m=_i(a.get("noUnknown")),x=a.get("sort"),y=a.get("ftMode"),S=_i(a.get("cs")),v=_i(a.get("ww")),w=YE(a.get("mm")),j={};i!==null&&(j.project=i||null),u!==null?j.session=u||null:s!==null&&(j.session=s||null),c!==null&&(j.search=c),typeof f=="boolean"&&(j.fullTextEnabled=f),typeof d=="boolean"&&(j.sidebarCollapsed=d),typeof p=="boolean"&&(j.batchMode=p),typeof m=="boolean"&&(j.excludeUnknownModels=m),(x==="recent"||x==="duration-desc"||x==="duration-asc"||x==="size-desc"||x==="size-asc")&&(j.sortMode=x);const _={};return(y==="literal"||y==="regex")&&(_.mode=y),typeof S=="boolean"&&(_.caseSensitive=S),typeof v=="boolean"&&(_.wordRegexp=v),typeof w=="number"&&(_.maxMatchesPerFile=Math.max(1,Math.min(2e3,w))),Object.keys(_).length>0&&(j.fullTextOptions={...Qn,..._}),j}function cc(n){const a=new URLSearchParams;n.project&&a.set("project",n.project),n.session&&a.set("session",n.session),n.search.trim()&&a.set("q",n.search),n.fullTextEnabled&&a.set("ft","1"),n.fullTextOptions.mode!==Qn.mode&&a.set("ftMode",n.fullTextOptions.mode),n.fullTextOptions.caseSensitive!==Qn.caseSensitive&&a.set("cs",n.fullTextOptions.caseSensitive?"1":"0"),n.fullTextOptions.wordRegexp!==Qn.wordRegexp&&a.set("ww",n.fullTextOptions.wordRegexp?"1":"0"),(n.fullTextOptions.maxMatchesPerFile??Qn.maxMatchesPerFile)!==Qn.maxMatchesPerFile&&a.set("mm",String(n.fullTextOptions.maxMatchesPerFile??Qn.maxMatchesPerFile)),n.sidebarCollapsed&&a.set("sidebar","1"),n.batchMode&&a.set("batch","1"),n.excludeUnknownModels&&a.set("noUnknown","1"),n.sortMode!=="recent"&&a.set("sort",n.sortMode);const i=a.toString();return i?`?${i}`:""}function Oi(n){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(n.trim())}function t0(n,a){const i=n.trim().toLowerCase();if(!i)return null;let u=null;for(const s of a)s.id.toLowerCase().startsWith(i)&&(!u||s.timestamp>u.timestamp)&&(u=s);return(u==null?void 0:u.id)??null}function VE(n){const{session:a,meta:i,copied:u,copiedUuid:s,copiedJsonlPath:c,onCopyResumeCommand:f,onCopyUuid:d,onCopyJsonlPath:p,onDeleteJsonl:m,onRenameSession:x,onExport:y}=n,[S,v]=V.useState(!1),[w,j]=V.useState(a.display),_=V.useRef(!1),M=Nc(a.project),q=i!=null&&i.models.length?i.models.join(", "):"Unknown",H=(i==null?void 0:i.startTime)??a.startTime??a.timestamp,I=(i==null?void 0:i.endTime)??a.endTime??a.timestamp,P=Number.isFinite(H)&&Number.isFinite(I)?Math.max(0,I-H):null,O=Number.isFinite(H)?ep(H):"—",$=Number.isFinite(I)?ep(I):"—",se=typeof(i==null?void 0:i.messageCount)=="number"?i.messageCount:typeof a.messageCount=="number"?a.messageCount:null,me=typeof se=="number"?`${se} message${se===1?"":"s"}`:"—",B=g0(P),ne=p0(a.fileSizeBytes);V.useEffect(()=>{v(!1),j(a.display)},[a.id,a.display]);const ee=V.useCallback(async()=>{const de=w.trim();if(v(!1),!de||de===a.display){j(a.display);return}await x(a.id,de,a.project,a.timestamp)},[w,x,a.display,a.id,a.project,a.timestamp]);return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:g.jsxs("div",{className:"min-w-0",children:[g.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[S?g.jsx("input",{value:w,onChange:de=>j(de.target.value),onBlur:()=>{if(_.current){_.current=!1;return}ee()},onKeyDown:de=>{de.key==="Enter"&&(de.preventDefault(),ee()),de.key==="Escape"&&(_.current=!0,v(!1),j(a.display))},className:"text-sm text-zinc-200 bg-zinc-900/60 border border-zinc-800 rounded px-2 py-1 w-72 max-w-xs focus:outline-none focus:ring-1 focus:ring-zinc-600",autoFocus:!0}):g.jsx("button",{onClick:()=>{j(a.display),v(!0)},className:"text-sm text-zinc-300 truncate max-w-xs hover:text-zinc-100 text-left",title:"Click to rename session",type:"button",children:a.display}),g.jsx("span",{className:"text-xs text-zinc-600 shrink-0",children:m0(a.timestamp)})]}),g.jsxs("div",{className:"mt-0.5 flex flex-wrap items-center gap-x-3 gap-y-1 text-[11px] text-zinc-500",children:[g.jsx("span",{className:"truncate max-w-130",title:M,children:M}),g.jsxs("span",{children:["Model: ",q]}),g.jsxs("span",{children:["Messages: ",me]}),g.jsxs("span",{children:["Duration: ",B]}),g.jsxs("span",{children:["JSONL: ",ne]}),g.jsxs("span",{children:["Start: ",O]}),g.jsxs("span",{children:["End: ",$]})]})]})}),g.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[g.jsxs("button",{onClick:y,className:"flex items-center gap-2 px-2.5 py-1.5 text-xs text-zinc-300 bg-zinc-800 hover:bg-zinc-700 rounded transition-colors cursor-pointer",title:"Export conversation as Markdown",children:[g.jsx(Ec,{className:"w-3.5 h-3.5"}),g.jsx("span",{children:"Export"})]}),g.jsx("button",{onClick:()=>f(a.id,a.project),className:"flex items-center gap-2 px-2.5 py-1.5 text-xs text-zinc-300 bg-zinc-800 hover:bg-zinc-700 rounded transition-colors cursor-pointer",title:"Copy resume command to clipboard",children:u?g.jsxs(g.Fragment,{children:[g.jsx(Sl,{className:"w-3.5 h-3.5 text-green-500"}),g.jsx("span",{className:"text-green-500",children:"Copied!"})]}):g.jsxs(g.Fragment,{children:[g.jsx(pu,{className:"w-3.5 h-3.5"}),g.jsx("span",{children:"Copy Resume Command"})]})}),g.jsx("button",{onClick:()=>d(a.id),className:"flex items-center gap-2 px-2.5 py-1.5 text-xs text-zinc-300 bg-zinc-800 hover:bg-zinc-700 rounded transition-colors cursor-pointer",title:"Copy session UUID",children:s?g.jsxs(g.Fragment,{children:[g.jsx(Sl,{className:"w-3.5 h-3.5 text-green-500"}),g.jsx("span",{className:"text-green-500",children:"Copied!"})]}):g.jsxs(g.Fragment,{children:[g.jsx(pu,{className:"w-3.5 h-3.5"}),g.jsx("span",{children:"Copy UUID"})]})}),g.jsx("button",{onClick:()=>p(a.id),className:"flex items-center gap-2 px-2.5 py-1.5 text-xs text-zinc-300 bg-zinc-800 hover:bg-zinc-700 rounded transition-colors cursor-pointer",title:"Copy JSONL file path",children:c?g.jsxs(g.Fragment,{children:[g.jsx(Sl,{className:"w-3.5 h-3.5 text-green-500"}),g.jsx("span",{className:"text-green-500",children:"Copied!"})]}):g.jsxs(g.Fragment,{children:[g.jsx(Tc,{className:"w-3.5 h-3.5"}),g.jsx("span",{children:"Copy JSONL Path"})]})}),g.jsxs("button",{onClick:()=>m(a.id),className:"flex items-center gap-2 px-2.5 py-1.5 text-xs text-red-200 bg-red-900/40 hover:bg-red-800/60 rounded transition-colors cursor-pointer",title:"Delete JSONL file for this session",children:[g.jsx($1,{className:"w-3.5 h-3.5"}),g.jsx("span",{children:"Delete JSONL"})]})]})]})}function FE(){const n=V.useMemo(()=>{const Z=e0(window.location.search),le=Z.session??null,fe=le&&!Oi(le)?le:null;return{selectedProject:Z.project??null,selectedSession:Z.session??null,sessionPrefixFilter:fe,search:Z.search??"",fullTextEnabled:Z.fullTextEnabled??!1,fullTextOptions:Z.fullTextOptions??Qn,sidebarCollapsed:Z.sidebarCollapsed??!1,batchMode:Z.batchMode??!1,excludeUnknownModels:Z.excludeUnknownModels??!1,sortMode:Z.sortMode??"recent"}},[]),[a,i]=V.useState([]),[u,s]=V.useState([]),[c,f]=V.useState(n.selectedProject),[d,p]=V.useState(n.selectedSession),[m,x]=V.useState(n.sessionPrefixFilter),[y,S]=V.useState(!0),[v,w]=V.useState(n.sidebarCollapsed),[j,_]=V.useState(!1),[M,q]=V.useState(!1),[H,I]=V.useState(!1),[P,O]=V.useState(n.excludeUnknownModels),[$,se]=V.useState(n.sortMode),[me,B]=V.useState(new Map),[ne,ee]=V.useState(n.search),[de,re]=V.useState(n.fullTextEnabled),[W,R]=V.useState(n.fullTextOptions),[K,oe]=V.useState(n.batchMode),[ze,E]=V.useState(new Set),C=V.useRef({didInit:!1,prev:null,searchTimer:null,lastCommittedSearch:""}),[F,k]=V.useState(!1),[ae,ge]=V.useState([]),[xe,we]=V.useState(void 0),[ue,ce]=V.useState(null),Oe=V.useCallback((Z,le)=>{const fe=`cd ${le} && claude --resume ${Z}`;navigator.clipboard.writeText(fe).then(()=>{_(!0),setTimeout(()=>_(!1),2e3)})},[]),De=V.useCallback(Z=>{navigator.clipboard.writeText(Z).then(()=>{q(!0),setTimeout(()=>q(!1),2e3)})},[]),$e=V.useCallback(async Z=>{try{const le=await fetch(`/api/sessions/${encodeURIComponent(Z)}/path`),fe=await le.json();if(!le.ok||!fe.path){console.warn("[handleCopyJsonlPath] JSONL path not found for session:",Z);return}await navigator.clipboard.writeText(fe.path),I(!0),setTimeout(()=>I(!1),2e3)}catch(le){console.error("[handleCopyJsonlPath] Failed to copy JSONL path:",le)}},[]),Gt=V.useCallback(async(Z,le,fe,Fe)=>{try{const Xe=await fetch("/api/sessions/rename",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:Z,display:le,project:fe,timestamp:Fe})});if(!Xe.ok){console.error("[handleRenameSession] Server returned error:",Xe.status);return}i(it=>it.map(ft=>ft.id===Z?{...ft,display:le}:ft))}catch(Xe){console.error("[handleRenameSession] Failed to rename session:",Xe)}},[]),at=V.useMemo(()=>d?Oi(d)?d:t0(d,a):null,[d,a]),Dt=V.useMemo(()=>at&&a.find(Z=>Z.id===at)||null,[a,at]),tn=V.useMemo(()=>c?a.filter(Z=>Z.project===c):a,[a,c]),pn=V.useMemo(()=>P?tn.filter(Z=>me.get(Z.id)!==null):tn,[tn,P,me]);V.useEffect(()=>{ce(null)},[at]),V.useEffect(()=>{const Z=new URLSearchParams(window.location.search);if(!Z.has("s"))return;if(!Z.has("session")){const fe=Z.get("s");fe!==null&&Z.set("session",fe)}Z.delete("s");const le=Z.toString();history.replaceState(null,"",le?`?${le}`:window.location.pathname)},[]);const Xl=V.useCallback(Z=>{ce(Z)},[]);V.useEffect(()=>{fetch("/api/projects").then(Z=>Z.json()).then(s).catch(console.error)},[]),V.useEffect(()=>{B(Z=>{const le=new Set(a.map(Fe=>Fe.id)),fe=new Map;for(const[Fe,Xe]of Z.entries())le.has(Fe)&&fe.set(Fe,Xe);return fe})},[a]);const Cn=V.useCallback(async Z=>{if(Z.length!==0)try{const le=await fetch("/api/sessions/metadata",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:Z})}),fe=await le.json();if(!le.ok||!fe.sessions)return;B(Fe=>{const Xe=new Map(Fe);for(const it of fe.sessions)Xe.set(it.id,it.model??null);return Xe})}catch{}},[]);V.useEffect(()=>{if(!P)return;const Z=tn.map(le=>le.id).filter(le=>!me.has(le));Z.length!==0&&Cn(Z)},[P,tn,me,Cn]);const Jn=V.useCallback(Z=>{const le=JSON.parse(Z.data);i(le),S(!1)},[]),kl=V.useCallback(Z=>{const le=JSON.parse(Z.data);i(fe=>{const Fe=new Map(fe.map(Xe=>[Xe.id,Xe]));for(const Xe of le)Fe.set(Xe.id,Xe);return Array.from(Fe.values()).sort((Xe,it)=>it.timestamp-Xe.timestamp)})},[]),qi=V.useCallback(()=>{S(!1)},[]);jE("/api/sessions/stream",{events:[{eventName:"sessions",onMessage:Jn},{eventName:"sessionsUpdate",onMessage:kl}],onError:qi});const Yi=V.useCallback(Z=>{p(Z),x(null)},[]);V.useEffect(()=>{d===null&&x(null)},[d]),V.useEffect(()=>{if(!d||Oi(d))return;const Z=t0(d,a);if(!Z)return;const fe=cc({project:c,session:Z,search:ne,fullTextEnabled:de,fullTextOptions:W,sidebarCollapsed:v,batchMode:K,excludeUnknownModels:P,sortMode:$});history.replaceState(null,"",fe||window.location.pathname),p(Z)},[d,a,c,ne,de,W,v,K,P,$]),V.useEffect(()=>{const Z=()=>{const le=e0(window.location.search),fe={project:le.project??null,session:le.session??null,search:le.search??"",fullTextEnabled:le.fullTextEnabled??!1,fullTextOptions:le.fullTextOptions??Qn,sidebarCollapsed:le.sidebarCollapsed??!1,batchMode:le.batchMode??!1,excludeUnknownModels:le.excludeUnknownModels??!1,sortMode:le.sortMode??"recent"};f(fe.project),p(fe.session),x(fe.session&&!Oi(fe.session)?fe.session:null),ee(fe.search),re(fe.fullTextEnabled),R(fe.fullTextOptions),w(fe.sidebarCollapsed),oe(fe.batchMode),O(fe.excludeUnknownModels),se(fe.sortMode),E(new Set)};return window.addEventListener("popstate",Z),()=>{window.removeEventListener("popstate",Z)}},[]),V.useEffect(()=>()=>{const{searchTimer:Z}=C.current;Z&&clearTimeout(Z)},[]),V.useEffect(()=>{const Z=C.current,le={project:c,session:d,search:ne,fullTextEnabled:de,fullTextOptions:W,sidebarCollapsed:v,batchMode:K,excludeUnknownModels:P,sortMode:$};if(!Z.didInit){Z.didInit=!0,Z.prev=le,Z.lastCommittedSearch=le.search;return}const fe=Z.prev;Z.prev=le;const Fe=cc(le);if(window.location.search===Fe)return;const Xe=!!fe&&(fe.fullTextOptions.mode!==le.fullTextOptions.mode||fe.fullTextOptions.caseSensitive!==le.fullTextOptions.caseSensitive||fe.fullTextOptions.wordRegexp!==le.fullTextOptions.wordRegexp||(fe.fullTextOptions.maxMatchesPerFile??200)!==(le.fullTextOptions.maxMatchesPerFile??200)),it=!!fe&&(fe.project!==le.project||fe.session!==le.session||fe.fullTextEnabled!==le.fullTextEnabled||Xe||fe.sidebarCollapsed!==le.sidebarCollapsed||fe.batchMode!==le.batchMode||fe.excludeUnknownModels!==le.excludeUnknownModels);if(!!fe&&fe.search!==le.search&&!it){history.replaceState(null,"",Fe||window.location.pathname),Z.searchTimer&&clearTimeout(Z.searchTimer);const nn=le.search;Z.searchTimer=setTimeout(()=>{if(Z.lastCommittedSearch===nn)return;const Kn={project:c,session:d,search:ne,fullTextEnabled:de,fullTextOptions:W,sidebarCollapsed:v,batchMode:K,excludeUnknownModels:P,sortMode:$};if(Kn.search!==nn)return;const Ja=cc(Kn);if(window.location.search===Ja){const Ka=Ja||window.location.pathname;history.pushState(null,"",Ka),Z.lastCommittedSearch=nn}},600);return}Z.searchTimer&&(clearTimeout(Z.searchTimer),Z.searchTimer=null),history.pushState(null,"",Fe||window.location.pathname),Z.lastCommittedSearch=le.search},[c,d,ne,de,W,v,K,P,$]);const vt=V.useCallback(()=>{oe(Z=>!Z),E(new Set)},[]),Vi=V.useCallback(Z=>{E(le=>{const fe=new Set(le);return fe.has(Z)?fe.delete(Z):fe.add(Z),fe})},[]),G=V.useCallback(()=>{E(new Set(pn.map(Z=>Z.id)))},[pn]),ie=V.useCallback(()=>{E(new Set)},[]),ve=V.useCallback(async Z=>{if(Z.length===0)return[];try{const le=await fetch("/api/sessions/delete/preview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:Z})});if(!le.ok)return console.error("[fetchDeletionPaths] Server returned error:",le.status),[];const fe=await le.json();return Array.isArray(fe.paths)?fe.paths:[]}catch(le){return console.error("[fetchDeletionPaths] Fetch error:",le),[]}},[]),Ee=V.useCallback(async Z=>{if(Z.length===0){console.log("[handleDeleteSessions] No ids to delete");return}console.log(`[handleDeleteSessions] Requesting deletion of ${Z.length} sessions:`,Z);try{const le=await fetch("/api/sessions/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:Z})}),fe=await le.json();if(console.log("[handleDeleteSessions] Server response:",fe),!le.ok){console.error("[handleDeleteSessions] Server returned error:",le.status);return}const Fe=new Set(fe.deleted??[]),Xe=fe.failed??[];console.log(`[handleDeleteSessions] ${Fe.size} deleted, ${Xe.length} failed`),Fe.size>0&&(console.log("[handleDeleteSessions] Removing from state:",Array.from(Fe)),i(it=>it.filter(ft=>!Fe.has(ft.id))),E(it=>{const ft=new Set(it);for(const nn of Fe)ft.delete(nn);return ft}),B(it=>{const ft=new Map(it);for(const nn of Fe)ft.delete(nn);return ft}),p(it=>it&&Fe.has(it)?null:it)),Xe.length>0&&console.warn("[handleDeleteSessions] These sessions failed to delete:",Xe)}catch(le){console.error("[handleDeleteSessions] Fetch error:",le)}},[]),Ue=V.useCallback(async(Z,le)=>{const fe=await ve(Z),Fe=fe.length>0?fe.join(`
329
+ `):"(No paths found)",Xe=`${le}
330
+
331
+ ${Fe}
332
+
333
+ This cannot be undone.`;return window.confirm(Xe)},[ve]),At=V.useCallback(async Z=>{Z.length===0||!await Ue(Z,`Delete ${Z.length} unknown-model session${Z.length===1?"":"s"} and the following paths?`)||Ee(Z)},[Ue,Ee]),gn=V.useCallback(async Z=>{await Ue([Z],"Delete this session and the following paths?")&&Ee([Z])},[Ue,Ee]),St=V.useCallback(()=>{Dt&&(ge([Dt]),we(void 0),k(!0))},[Dt]),st=V.useCallback(()=>{const Z=pn.filter(le=>ze.has(le.id));ge(Z),we(void 0),k(!0)},[pn,ze]),Ct=V.useMemo(()=>m?a:pn,[m,a,pn]),Ge=V.useCallback(()=>{k(!1),ge([]),we(void 0)},[]);return g.jsxs("div",{className:"flex h-screen bg-zinc-950 text-zinc-100",children:[!v&&g.jsxs("aside",{className:"w-80 border-r border-zinc-800/60 flex flex-col bg-zinc-950",children:[g.jsx("div",{className:"border-b border-zinc-800/60 p-2",children:g.jsx(bb,{projects:u,selectedProject:c,onSelect:f})}),g.jsx(xb,{sessions:Ct,sessionIdPrefix:m,selectedSession:at,onSelectSession:Yi,loading:y,selectedProject:c,search:ne,onSearchChange:ee,fullTextEnabled:de,onFullTextEnabledChange:re,fullTextOptions:W,onFullTextOptionsChange:R,excludeUnknownModels:P,onExcludeUnknownModelsChange:O,sessionModels:me,onDeleteUnknownSessions:At,sortMode:$,onSortModeChange:se,batchMode:K,selectedSessions:ze,onToggleBatchMode:vt,onToggleSessionSelection:Vi,onSelectAll:G,onDeselectAll:ie,onBatchExport:st})]}),g.jsxs("main",{className:"flex-1 overflow-hidden bg-zinc-950 flex flex-col",children:[g.jsxs("div",{className:"min-h-12.5 border-b border-zinc-800/60 flex items-center px-4 gap-4 py-2",children:[g.jsx("button",{onClick:()=>w(!v),className:"p-1.5 hover:bg-zinc-800 rounded transition-colors cursor-pointer","aria-label":v?"Expand sidebar":"Collapse sidebar",children:g.jsx(L1,{className:"w-4 h-4 text-zinc-400"})}),Dt&&g.jsx(VE,{session:Dt,meta:ue,copied:j,copiedUuid:M,copiedJsonlPath:H,onCopyResumeCommand:Oe,onCopyUuid:De,onCopyJsonlPath:$e,onDeleteJsonl:gn,onRenameSession:Gt,onExport:St})]}),g.jsx("div",{className:"flex-1 overflow-hidden",children:at?g.jsx(NE,{sessionId:at,onMetaChange:Xl}):g.jsx("div",{className:"flex h-full items-center justify-center text-zinc-600",children:g.jsxs("div",{className:"text-center",children:[g.jsx("div",{className:"text-base mb-2 text-zinc-500",children:d&&!Oi(d)?"Resolving session…":"Select a session"}),g.jsx("div",{className:"text-sm text-zinc-600",children:d&&!Oi(d)?"Looking up sessions matching the URL prefix":"Choose a session from the list to view the conversation"})]})})})]}),F&&g.jsx(qE,{sessions:ae,messages:xe,onClose:Ge})]})}Jy.createRoot(document.getElementById("root")).render(g.jsx(V.StrictMode,{children:g.jsx(FE,{})}));