@teddysc/claude-run 0.12.0 → 0.13.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.
@@ -1,328 +0,0 @@
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 Pp(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Lo={exports:{}},Ca={};/**
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 qm;function Ly(){if(qm)return Ca;qm=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 Ca.Fragment=a,Ca.jsx=i,Ca.jsxs=i,Ca}var Ym;function Uy(){return Ym||(Ym=1,Lo.exports=Ly()),Lo.exports}var x=Uy(),Uo={exports:{}},Se={};/**
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 Vm;function By(){if(Vm)return Se;Vm=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"),y=Symbol.for("react.lazy"),g=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(){}},A=Object.assign,L={};function j(C,V,k){this.props=C,this.context=V,this.refs=L,this.updater=k||w}j.prototype.isReactComponent={},j.prototype.setState=function(C,V){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,V,"setState")},j.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function q(){}q.prototype=j.prototype;function U(C,V,k){this.props=C,this.context=V,this.refs=L,this.updater=k||w}var te=U.prototype=new q;te.constructor=U,A(te,j.prototype),te.isPureReactComponent=!0;var le=Array.isArray;function O(){}var $={H:null,A:null,T:null,S:null},re=Object.prototype.hasOwnProperty;function me(C,V,k){var K=k.ref;return{$$typeof:n,type:C,key:V,ref:K!==void 0?K:null,props:k}}function H(C,V){return me(C.type,V,C.props)}function ie(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function ne(C){var V={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(k){return V[k]})}var be=/\/+/g;function se(C,V){return typeof C=="object"&&C!==null&&C.key!=null?ne(""+C.key):V.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(V){C.status==="pending"&&(C.status="fulfilled",C.value=V)},function(V){C.status==="pending"&&(C.status="rejected",C.reason=V)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function _(C,V,k,K,ue){var oe=typeof C;(oe==="undefined"||oe==="boolean")&&(C=null);var ze=!1;if(C===null)ze=!0;else switch(oe){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(C.$$typeof){case n:case a:ze=!0;break;case y:return ze=C._init,_(ze(C._payload),V,k,K,ue)}}if(ze)return ue=ue(C),ze=K===""?"."+se(C,0):K,le(ue)?(k="",ze!=null&&(k=ze.replace(be,"$&/")+"/"),_(ue,V,k,"",function(lt){return lt})):ue!=null&&(ie(ue)&&(ue=H(ue,k+(ue.key==null||C&&C.key===ue.key?"":(""+ue.key).replace(be,"$&/")+"/")+ze)),V.push(ue)),1;ze=0;var Ve=K===""?".":K+":";if(le(C))for(var Ue=0;Ue<C.length;Ue++)K=C[Ue],oe=Ve+se(K,Ue),ze+=_(K,V,k,oe,ue);else if(Ue=v(C),typeof Ue=="function")for(C=Ue.call(C),Ue=0;!(K=C.next()).done;)K=K.value,oe=Ve+se(K,Ue++),ze+=_(K,V,k,oe,ue);else if(oe==="object"){if(typeof C.then=="function")return _(W(C),V,k,K,ue);throw V=String(C),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return ze}function I(C,V,k){if(C==null)return C;var K=[],ue=0;return _(C,K,"","",function(oe){return V.call(k,oe,ue++)}),K}function ce(C){if(C._status===-1){var V=C._result;V=V(),V.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=V)}if(C._status===1)return C._result.default;throw C._result}var ve=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=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(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},E={map:I,forEach:function(C,V,k){I(C,function(){V.apply(this,arguments)},k)},count:function(C){var V=0;return I(C,function(){V++}),V},toArray:function(C){return I(C,function(V){return V})||[]},only:function(C){if(!ie(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return Se.Activity=g,Se.Children=E,Se.Component=j,Se.Fragment=i,Se.Profiler=s,Se.PureComponent=U,Se.StrictMode=u,Se.Suspense=p,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,Se.__COMPILER_RUNTIME={__proto__:null,c:function(C){return $.H.useMemoCache(C)}},Se.cache=function(C){return function(){return C.apply(null,arguments)}},Se.cacheSignal=function(){return null},Se.cloneElement=function(C,V,k){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var K=A({},C.props),ue=C.key;if(V!=null)for(oe in V.key!==void 0&&(ue=""+V.key),V)!re.call(V,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&V.ref===void 0||(K[oe]=V[oe]);var oe=arguments.length-2;if(oe===1)K.children=k;else if(1<oe){for(var ze=Array(oe),Ve=0;Ve<oe;Ve++)ze[Ve]=arguments[Ve+2];K.children=ze}return me(C.type,ue,K)},Se.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},Se.createElement=function(C,V,k){var K,ue={},oe=null;if(V!=null)for(K in V.key!==void 0&&(oe=""+V.key),V)re.call(V,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(ue[K]=V[K]);var ze=arguments.length-2;if(ze===1)ue.children=k;else if(1<ze){for(var Ve=Array(ze),Ue=0;Ue<ze;Ue++)Ve[Ue]=arguments[Ue+2];ue.children=Ve}if(C&&C.defaultProps)for(K in ze=C.defaultProps,ze)ue[K]===void 0&&(ue[K]=ze[K]);return me(C,oe,ue)},Se.createRef=function(){return{current:null}},Se.forwardRef=function(C){return{$$typeof:d,render:C}},Se.isValidElement=ie,Se.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:ce}},Se.memo=function(C,V){return{$$typeof:m,type:C,compare:V===void 0?null:V}},Se.startTransition=function(C){var V=$.T,k={};$.T=k;try{var K=C(),ue=$.S;ue!==null&&ue(k,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(O,ve)}catch(oe){ve(oe)}finally{V!==null&&k.types!==null&&(V.types=k.types),$.T=V}},Se.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},Se.use=function(C){return $.H.use(C)},Se.useActionState=function(C,V,k){return $.H.useActionState(C,V,k)},Se.useCallback=function(C,V){return $.H.useCallback(C,V)},Se.useContext=function(C){return $.H.useContext(C)},Se.useDebugValue=function(){},Se.useDeferredValue=function(C,V){return $.H.useDeferredValue(C,V)},Se.useEffect=function(C,V){return $.H.useEffect(C,V)},Se.useEffectEvent=function(C){return $.H.useEffectEvent(C)},Se.useId=function(){return $.H.useId()},Se.useImperativeHandle=function(C,V,k){return $.H.useImperativeHandle(C,V,k)},Se.useInsertionEffect=function(C,V){return $.H.useInsertionEffect(C,V)},Se.useLayoutEffect=function(C,V){return $.H.useLayoutEffect(C,V)},Se.useMemo=function(C,V){return $.H.useMemo(C,V)},Se.useOptimistic=function(C,V){return $.H.useOptimistic(C,V)},Se.useReducer=function(C,V,k){return $.H.useReducer(C,V,k)},Se.useRef=function(C){return $.H.useRef(C)},Se.useState=function(C){return $.H.useState(C)},Se.useSyncExternalStore=function(C,V,k){return $.H.useSyncExternalStore(C,V,k)},Se.useTransition=function(){return $.H.useTransition()},Se.version="19.2.4",Se}var Xm;function vc(){return Xm||(Xm=1,Uo.exports=By()),Uo.exports}var F=vc(),Bo={exports:{}},Na={},Ho={exports:{}},qo={};/**
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 Gm;function Hy(){return Gm||(Gm=1,(function(n){function a(_,I){var ce=_.length;_.push(I);e:for(;0<ce;){var ve=ce-1>>>1,E=_[ve];if(0<s(E,I))_[ve]=I,_[ce]=E,ce=ve;else break e}}function i(_){return _.length===0?null:_[0]}function u(_){if(_.length===0)return null;var I=_[0],ce=_.pop();if(ce!==I){_[0]=ce;e:for(var ve=0,E=_.length,C=E>>>1;ve<C;){var V=2*(ve+1)-1,k=_[V],K=V+1,ue=_[K];if(0>s(k,ce))K<E&&0>s(ue,k)?(_[ve]=ue,_[K]=ce,ve=K):(_[ve]=k,_[V]=ce,ve=V);else if(K<E&&0>s(ue,ce))_[ve]=ue,_[K]=ce,ve=K;else break e}}return I}function s(_,I){var ce=_.sortIndex-I.sortIndex;return ce!==0?ce:_.id-I.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=[],y=1,g=null,S=3,v=!1,w=!1,A=!1,L=!1,j=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function te(_){for(var I=i(m);I!==null;){if(I.callback===null)u(m);else if(I.startTime<=_)u(m),I.sortIndex=I.expirationTime,a(p,I);else break;I=i(m)}}function le(_){if(A=!1,te(_),!w)if(i(p)!==null)w=!0,O||(O=!0,ne());else{var I=i(m);I!==null&&W(le,I.startTime-_)}}var O=!1,$=-1,re=5,me=-1;function H(){return L?!0:!(n.unstable_now()-me<re)}function ie(){if(L=!1,O){var _=n.unstable_now();me=_;var I=!0;try{e:{w=!1,A&&(A=!1,q($),$=-1),v=!0;var ce=S;try{t:{for(te(_),g=i(p);g!==null&&!(g.expirationTime>_&&H());){var ve=g.callback;if(typeof ve=="function"){g.callback=null,S=g.priorityLevel;var E=ve(g.expirationTime<=_);if(_=n.unstable_now(),typeof E=="function"){g.callback=E,te(_),I=!0;break t}g===i(p)&&u(p),te(_)}else u(p);g=i(p)}if(g!==null)I=!0;else{var C=i(m);C!==null&&W(le,C.startTime-_),I=!1}}break e}finally{g=null,S=ce,v=!1}I=void 0}}finally{I?ne():O=!1}}}var ne;if(typeof U=="function")ne=function(){U(ie)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,se=be.port2;be.port1.onmessage=ie,ne=function(){se.postMessage(null)}}else ne=function(){j(ie,0)};function W(_,I){$=j(function(){_(n.unstable_now())},I)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(_){_.callback=null},n.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<_?Math.floor(1e3/_):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(_){switch(S){case 1:case 2:case 3:var I=3;break;default:I=S}var ce=S;S=I;try{return _()}finally{S=ce}},n.unstable_requestPaint=function(){L=!0},n.unstable_runWithPriority=function(_,I){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var ce=S;S=_;try{return I()}finally{S=ce}},n.unstable_scheduleCallback=function(_,I,ce){var ve=n.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?ve+ce:ve):ce=ve,_){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=ce+E,_={id:y++,callback:I,priorityLevel:_,startTime:ce,expirationTime:E,sortIndex:-1},ce>ve?(_.sortIndex=ce,a(m,_),i(p)===null&&_===i(m)&&(A?(q($),$=-1):A=!0,W(le,ce-ve))):(_.sortIndex=E,a(p,_),w||v||(w=!0,O||(O=!0,ne()))),_},n.unstable_shouldYield=H,n.unstable_wrapCallback=function(_){var I=S;return function(){var ce=S;S=I;try{return _.apply(this,arguments)}finally{S=ce}}}})(qo)),qo}var Qm;function qy(){return Qm||(Qm=1,Ho.exports=Hy()),Ho.exports}var Yo={exports:{}},vt={};/**
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 Fm;function Yy(){if(Fm)return vt;Fm=1;var n=vc();function a(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}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,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:p,containerInfo:m,implementation:y}}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 vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,vt.createPortal=function(p,m){var y=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,y)},vt.flushSync=function(p){var m=f.T,y=u.p;try{if(f.T=null,u.p=2,p)return p()}finally{f.T=m,u.p=y,u.d.f()}},vt.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))},vt.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},vt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var y=m.as,g=d(y,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,v=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?u.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:S,fetchPriority:v}):y==="script"&&u.d.X(p,{crossOrigin:g,integrity:S,fetchPriority:v,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},vt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=d(m.as,m.crossOrigin);u.d.M(p,{crossOrigin:y,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)},vt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,g=d(y,m.crossOrigin);u.d.L(p,y,{crossOrigin:g,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})}},vt.preloadModule=function(p,m){if(typeof p=="string")if(m){var y=d(m.as,m.crossOrigin);u.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(p)},vt.requestFormReset=function(p){u.d.r(p)},vt.unstable_batchedUpdates=function(p,m){return p(m)},vt.useFormState=function(p,m,y){return f.H.useFormState(p,m,y)},vt.useFormStatus=function(){return f.H.useHostTransitionStatus()},vt.version="19.2.4",vt}var Zm;function e0(){if(Zm)return Yo.exports;Zm=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=Yy(),Yo.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 Jm;function Vy(){if(Jm)return Na;Jm=1;var n=qy(),a=vc(),i=e0();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 y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,S=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),U=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=ie&&e[ie]||e["@@iterator"],typeof e=="function"?e:null)}var be=Symbol.for("react.client.reference");function se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===be?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case j:return"Profiler";case L:return"StrictMode";case le:return"Suspense";case O:return"SuspenseList";case me:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case U:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case te: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:se(e.type)||"Memo";case re:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}var W=Array.isArray,_=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},ve=[],E=-1;function C(e){return{current:e}}function V(e){0>E||(e.current=ve[E],ve[E]=null,E--)}function k(e,t){E++,ve[E]=e.current,e.current=t}var K=C(null),ue=C(null),oe=C(null),ze=C(null);function Ve(e,t){switch(k(oe,t),k(ue,e),k(K,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?om(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=om(t),e=cm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(K),k(K,e)}function Ue(){V(K),V(ue),V(oe)}function lt(e){e.memoizedState!==null&&k(ze,e);var t=K.current,l=cm(t,e.type);t!==l&&(k(ue,e),k(K,l))}function kt(e){ue.current===e&&(V(K),V(ue)),ze.current===e&&(V(ze),ka._currentValue=ce)}var an,Ul;function Ft(e){if(an===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);an=t&&t[1]||"",Ul=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+an+e+Ul}var Un=!1;function Bn(e,t){if(!e||Un)return"";Un=!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 B=Y}Reflect.construct(e,[],J)}else{try{J.call()}catch(Y){B=Y}e.call(J.prototype)}}else{try{throw Error()}catch(Y){B=Y}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(Y){if(Y&&B&&typeof Y.stack=="string")return[Y.stack,B.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
- `),R=z.split(`
45
- `);for(o=r=0;r<T.length&&!T[r].includes("DetermineComponentFrameRoot");)r++;for(;o<R.length&&!R[o].includes("DetermineComponentFrameRoot");)o++;if(r===T.length||o===R.length)for(r=T.length-1,o=R.length-1;1<=r&&0<=o&&T[r]!==R[o];)o--;for(;1<=r&&0<=o;r--,o--)if(T[r]!==R[o]){if(r!==1||o!==1)do if(r--,o--,0>o||T[r]!==R[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{Un=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ft(l):""}function Bl(e,t){switch(e.tag){case 26:case 27:case 5:return Ft(e.type);case 16:return Ft("Lazy");case 13:return e.child!==t&&t!==null?Ft("Suspense Fallback"):Ft("Suspense");case 19:return Ft("SuspenseList");case 0:case 15:return Bn(e.type,!1);case 11:return Bn(e.type.render,!1);case 1:return Bn(e.type,!0);case 31:return Ft("Activity");default:return""}}function Hl(e){try{var t="",l=null;do t+=Bl(e,l),l=e,e=e.return;while(e);return t}catch(r){return`
47
- Error generating stack: `+r.message+`
48
- `+r.stack}}var Hn=Object.prototype.hasOwnProperty,qn=n.unstable_scheduleCallback,pl=n.unstable_cancelCallback,Di=n.unstable_shouldYield,Yn=n.unstable_requestPaint,mt=n.unstable_now,Ri=n.unstable_getCurrentPriorityLevel,G=n.unstable_ImmediatePriority,ae=n.unstable_UserBlockingPriority,ye=n.unstable_NormalPriority,Q=n.unstable_LowPriority,P=n.unstable_IdlePriority,he=n.log,Be=n.unstable_setDisableYieldValue,Te=null,Ce=null;function Je(e){if(typeof he=="function"&&Be(e),Ce&&typeof Ce.setStrictMode=="function")try{Ce.setStrictMode(Te,e)}catch{}}var De=Math.clz32?Math.clz32:zu,rn=Math.log,Tt=Math.LN2;function zu(e){return e>>>=0,e===0?32:31-(rn(e)/Tt|0)|0}var Va=256,Xa=262144,Ga=4194304;function gl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qa(e,t,l){var 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=gl(r):(b&=z,b!==0?o=gl(b):l||(l=z&~e,l!==0&&(o=gl(l))))):(z=r&~h,z!==0?o=gl(z):b!==0?o=gl(b):l||(l=r&~e,l!==0&&(o=gl(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 Li(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function kg(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 Xc(){var e=Ga;return Ga<<=1,(Ga&62914560)===0&&(Ga=4194304),e}function ku(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ui(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function wg(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,R=e.hiddenUpdates;for(l=b&~l;0<l;){var X=31-De(l),J=1<<X;z[X]=0,T[X]=-1;var B=R[X];if(B!==null)for(R[X]=null,X=0;X<B.length;X++){var Y=B[X];Y!==null&&(Y.lane&=-536870913)}l&=~J}r!==0&&Gc(e,r,0),h!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=h&~(b&~t))}function Gc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-De(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|l&261930}function Qc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var r=31-De(l),o=1<<r;o&t|e[r]&t&&(e[r]|=t),l&=~o}}function Fc(e,t){var l=t&-t;return l=(l&42)!==0?1:wu(l),(l&(e.suspendedLanes|t))!==0?0:l}function wu(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 Eu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Zc(){var e=I.p;return e!==0?e:(e=window.event,e===void 0?32:Om(e.type))}function Jc(e,t){var l=I.p;try{return I.p=e,t()}finally{I.p=l}}var Vn=Math.random().toString(36).slice(2),pt="__reactFiber$"+Vn,Ct="__reactProps$"+Vn,ql="__reactContainer$"+Vn,Tu="__reactEvents$"+Vn,Eg="__reactListeners$"+Vn,Tg="__reactHandles$"+Vn,Kc="__reactResources$"+Vn,Bi="__reactMarker$"+Vn;function Cu(e){delete e[pt],delete e[Ct],delete e[Tu],delete e[Eg],delete e[Tg]}function Yl(e){var t=e[pt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ql]||l[pt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=xm(e);e!==null;){if(l=e[pt])return l;e=xm(e)}return t}e=l,l=e.parentNode}return null}function Vl(e){if(e=e[pt]||e[ql]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Hi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Xl(e){var t=e[Kc];return t||(t=e[Kc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ht(e){e[Bi]=!0}var Ic=new Set,$c={};function xl(e,t){Gl(e,t),Gl(e+"Capture",t)}function Gl(e,t){for($c[e]=t,e=0;e<t.length;e++)Ic.add(t[e])}var Cg=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]*$"),Wc={},Pc={};function Ng(e){return Hn.call(Pc,e)?!0:Hn.call(Wc,e)?!1:Cg.test(e)?Pc[e]=!0:(Wc[e]=!0,!1)}function Fa(e,t,l){if(Ng(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 Za(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 xn(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 Zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ef(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jg(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 Nu(e){if(!e._valueTracker){var t=ef(e)?"checked":"value";e._valueTracker=jg(e,t,""+e[t])}}function tf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),r="";return e&&(r=ef(e)?e.checked?"true":"false":e.value),e=r,e!==l?(t.setValue(e),!0):!1}function Ja(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 Ag=/[\n"\\]/g;function Jt(e){return e.replace(Ag,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ju(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=""+Zt(t)):e.value!==""+Zt(t)&&(e.value=""+Zt(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?Au(e,b,Zt(t)):l!=null?Au(e,b,Zt(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=""+Zt(z):e.removeAttribute("name")}function nf(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)){Nu(e);return}l=l!=null?""+Zt(l):"",t=t!=null?""+Zt(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),Nu(e)}function Au(e,t,l){t==="number"&&Ja(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Ql(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=""+Zt(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 lf(e,t,l){if(t!=null&&(t=""+Zt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Zt(l):""}function af(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=Zt(t),e.defaultValue=l,r=e.textContent,r===l&&r!==""&&r!==null&&(e.value=r),Nu(e)}function Fl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Mg=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 rf(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||Mg.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function uf(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&&rf(e,o,r)}else for(var h in t)t.hasOwnProperty(h)&&rf(e,h,t[h])}function Mu(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 _g=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"]]),Og=/^[\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 Ka(e){return Og.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function yn(){}var _u=null;function Ou(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zl=null,Jl=null;function sf(e){var t=Vl(e);if(t&&(e=t.stateNode)){var l=e[Ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(ju(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="'+Jt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var r=l[t];if(r!==e&&r.form===e.form){var o=r[Ct]||null;if(!o)throw Error(u(90));ju(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&&tf(r)}break e;case"textarea":lf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Ql(e,!!l.multiple,t,!1)}}}var Du=!1;function of(e,t,l){if(Du)return e(t,l);Du=!0;try{var r=e(t);return r}finally{if(Du=!1,(Zl!==null||Jl!==null)&&(Lr(),Zl&&(t=Zl,e=Jl,Jl=Zl=null,sf(t),e)))for(t=0;t<e.length;t++)sf(e[t])}}function qi(e,t){var l=e.stateNode;if(l===null)return null;var r=l[Ct]||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 bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ru=!1;if(bn)try{var Yi={};Object.defineProperty(Yi,"passive",{get:function(){Ru=!0}}),window.addEventListener("test",Yi,Yi),window.removeEventListener("test",Yi,Yi)}catch{Ru=!1}var Xn=null,Lu=null,Ia=null;function cf(){if(Ia)return Ia;var e,t=Lu,l=t.length,r,o="value"in Xn?Xn.value:Xn.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 Ia=o.slice(e,1<r?1-r:void 0)}function $a(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 Wa(){return!0}function ff(){return!1}function Nt(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)?Wa:ff,this.isPropagationStopped=ff,this}return g(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=Wa)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Wa)},persist:function(){},isPersistent:Wa}),t}var yl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pa=Nt(yl),Vi=g({},yl,{view:0,detail:0}),Dg=Nt(Vi),Uu,Bu,Xi,er=g({},Vi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qu,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!==Xi&&(Xi&&e.type==="mousemove"?(Uu=e.screenX-Xi.screenX,Bu=e.screenY-Xi.screenY):Bu=Uu=0,Xi=e),Uu)},movementY:function(e){return"movementY"in e?e.movementY:Bu}}),hf=Nt(er),Rg=g({},er,{dataTransfer:0}),Lg=Nt(Rg),Ug=g({},Vi,{relatedTarget:0}),Hu=Nt(Ug),Bg=g({},yl,{animationName:0,elapsedTime:0,pseudoElement:0}),Hg=Nt(Bg),qg=g({},yl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Yg=Nt(qg),Vg=g({},yl,{data:0}),df=Nt(Vg),Xg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gg={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"},Qg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qg[e])?!!t[e]:!1}function qu(){return Fg}var Zg=g({},Vi,{key:function(e){if(e.key){var t=Xg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$a(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Gg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qu,charCode:function(e){return e.type==="keypress"?$a(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$a(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Jg=Nt(Zg),Kg=g({},er,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mf=Nt(Kg),Ig=g({},Vi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qu}),$g=Nt(Ig),Wg=g({},yl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pg=Nt(Wg),ex=g({},er,{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}),tx=Nt(ex),nx=g({},yl,{newState:0,oldState:0}),lx=Nt(nx),ix=[9,13,27,32],Yu=bn&&"CompositionEvent"in window,Gi=null;bn&&"documentMode"in document&&(Gi=document.documentMode);var ax=bn&&"TextEvent"in window&&!Gi,pf=bn&&(!Yu||Gi&&8<Gi&&11>=Gi),gf=" ",xf=!1;function yf(e,t){switch(e){case"keyup":return ix.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kl=!1;function rx(e,t){switch(e){case"compositionend":return bf(t);case"keypress":return t.which!==32?null:(xf=!0,gf);case"textInput":return e=t.data,e===gf&&xf?null:e;default:return null}}function ux(e,t){if(Kl)return e==="compositionend"||!Yu&&yf(e,t)?(e=cf(),Ia=Lu=Xn=null,Kl=!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 pf&&t.locale!=="ko"?null:t.data;default:return null}}var sx={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 vf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sx[e.type]:t==="textarea"}function Sf(e,t,l,r){Zl?Jl?Jl.push(r):Jl=[r]:Zl=r,t=Xr(t,"onChange"),0<t.length&&(l=new Pa("onChange","change",null,l,r),e.push({event:l,listeners:t}))}var Qi=null,Fi=null;function ox(e){lm(e,0)}function tr(e){var t=Hi(e);if(tf(t))return e}function zf(e,t){if(e==="change")return t}var kf=!1;if(bn){var Vu;if(bn){var Xu="oninput"in document;if(!Xu){var wf=document.createElement("div");wf.setAttribute("oninput","return;"),Xu=typeof wf.oninput=="function"}Vu=Xu}else Vu=!1;kf=Vu&&(!document.documentMode||9<document.documentMode)}function Ef(){Qi&&(Qi.detachEvent("onpropertychange",Tf),Fi=Qi=null)}function Tf(e){if(e.propertyName==="value"&&tr(Fi)){var t=[];Sf(t,Fi,e,Ou(e)),of(ox,t)}}function cx(e,t,l){e==="focusin"?(Ef(),Qi=t,Fi=l,Qi.attachEvent("onpropertychange",Tf)):e==="focusout"&&Ef()}function fx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tr(Fi)}function hx(e,t){if(e==="click")return tr(t)}function dx(e,t){if(e==="input"||e==="change")return tr(t)}function mx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ut=typeof Object.is=="function"?Object.is:mx;function Zi(e,t){if(Ut(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(!Hn.call(t,o)||!Ut(e[o],t[o]))return!1}return!0}function Cf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nf(e,t){var l=Cf(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=Cf(l)}}function jf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Af(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ja(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=Ja(e.document)}return t}function Gu(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 px=bn&&"documentMode"in document&&11>=document.documentMode,Il=null,Qu=null,Ji=null,Fu=!1;function Mf(e,t,l){var r=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Fu||Il==null||Il!==Ja(r)||(r=Il,"selectionStart"in r&&Gu(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}),Ji&&Zi(Ji,r)||(Ji=r,r=Xr(Qu,"onSelect"),0<r.length&&(t=new Pa("onSelect","select",null,t,l),e.push({event:t,listeners:r}),t.target=Il)))}function bl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var $l={animationend:bl("Animation","AnimationEnd"),animationiteration:bl("Animation","AnimationIteration"),animationstart:bl("Animation","AnimationStart"),transitionrun:bl("Transition","TransitionRun"),transitionstart:bl("Transition","TransitionStart"),transitioncancel:bl("Transition","TransitionCancel"),transitionend:bl("Transition","TransitionEnd")},Zu={},_f={};bn&&(_f=document.createElement("div").style,"AnimationEvent"in window||(delete $l.animationend.animation,delete $l.animationiteration.animation,delete $l.animationstart.animation),"TransitionEvent"in window||delete $l.transitionend.transition);function vl(e){if(Zu[e])return Zu[e];if(!$l[e])return e;var t=$l[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in _f)return Zu[e]=t[l];return e}var Of=vl("animationend"),Df=vl("animationiteration"),Rf=vl("animationstart"),gx=vl("transitionrun"),xx=vl("transitionstart"),yx=vl("transitioncancel"),Lf=vl("transitionend"),Uf=new Map,Ju="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(" ");Ju.push("scrollEnd");function un(e,t){Uf.set(e,t),xl(t,[e])}var nr=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)},Kt=[],Wl=0,Ku=0;function lr(){for(var e=Wl,t=Ku=Wl=0;t<e;){var l=Kt[t];Kt[t++]=null;var r=Kt[t];Kt[t++]=null;var o=Kt[t];Kt[t++]=null;var h=Kt[t];if(Kt[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&&Bf(l,o,h)}}function ir(e,t,l,r){Kt[Wl++]=e,Kt[Wl++]=t,Kt[Wl++]=l,Kt[Wl++]=r,Ku|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Iu(e,t,l,r){return ir(e,t,l,r),ar(e)}function Sl(e,t){return ir(e,null,null,t),ar(e)}function Bf(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-De(l),e=h.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=l|536870912),h):null}function ar(e){if(50<ga)throw ga=0,ao=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Pl={};function bx(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 Bt(e,t,l,r){return new bx(e,t,l,r)}function $u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vn(e,t){var l=e.alternate;return l===null?(l=Bt(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 Hf(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 rr(e,t,l,r,o,h){var b=0;if(r=e,typeof e=="function")$u(e)&&(b=1);else if(typeof e=="string")b=wy(e,l,K.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case me:return e=Bt(31,l,t,o),e.elementType=me,e.lanes=h,e;case A:return zl(l.children,o,h,t);case L:b=8,o|=24;break;case j:return e=Bt(12,l,t,o|2),e.elementType=j,e.lanes=h,e;case le:return e=Bt(13,l,t,o),e.elementType=le,e.lanes=h,e;case O:return e=Bt(19,l,t,o),e.elementType=O,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:b=10;break e;case q:b=9;break e;case te:b=11;break e;case $:b=14;break e;case re:b=16,r=null;break e}b=29,l=Error(u(130,e===null?"null":typeof e,"")),r=null}return t=Bt(b,l,t,o),t.elementType=e,t.type=r,t.lanes=h,t}function zl(e,t,l,r){return e=Bt(7,e,r,t),e.lanes=l,e}function Wu(e,t,l){return e=Bt(6,e,null,t),e.lanes=l,e}function qf(e){var t=Bt(18,null,null,0);return t.stateNode=e,t}function Pu(e,t,l){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Yf=new WeakMap;function It(e,t){if(typeof e=="object"&&e!==null){var l=Yf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Hl(t)},Yf.set(e,t),t)}return{value:e,source:t,stack:Hl(t)}}var ei=[],ti=0,ur=null,Ki=0,$t=[],Wt=0,Gn=null,fn=1,hn="";function Sn(e,t){ei[ti++]=Ki,ei[ti++]=ur,ur=e,Ki=t}function Vf(e,t,l){$t[Wt++]=fn,$t[Wt++]=hn,$t[Wt++]=Gn,Gn=e;var r=fn;e=hn;var o=32-De(r)-1;r&=~(1<<o),l+=1;var h=32-De(t)+o;if(30<h){var b=o-o%5;h=(r&(1<<b)-1).toString(32),r>>=b,o-=b,fn=1<<32-De(t)+o|l<<o|r,hn=h+e}else fn=1<<h|l<<o|r,hn=e}function es(e){e.return!==null&&(Sn(e,1),Vf(e,1,0))}function ts(e){for(;e===ur;)ur=ei[--ti],ei[ti]=null,Ki=ei[--ti],ei[ti]=null;for(;e===Gn;)Gn=$t[--Wt],$t[Wt]=null,hn=$t[--Wt],$t[Wt]=null,fn=$t[--Wt],$t[Wt]=null}function Xf(e,t){$t[Wt++]=fn,$t[Wt++]=hn,$t[Wt++]=Gn,fn=t.id,hn=t.overflow,Gn=e}var gt=null,We=null,Re=!1,Qn=null,Pt=!1,ns=Error(u(519));function Fn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ii(It(t,e)),ns}function Gf(e){var t=e.stateNode,l=e.type,r=e.memoizedProps;switch(t[pt]=e,t[Ct]=r,l){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(l=0;l<ya.length;l++)je(ya[l],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),nf(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),af(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||um(t.textContent,l)?(r.popover!=null&&(je("beforetoggle",t),je("toggle",t)),r.onScroll!=null&&je("scroll",t),r.onScrollEnd!=null&&je("scrollend",t),r.onClick!=null&&(t.onclick=yn),t=!0):t=!1,t||Fn(e,!0)}function Qf(e){for(gt=e.return;gt;)switch(gt.tag){case 5:case 31:case 13:Pt=!1;return;case 27:case 3:Pt=!0;return;default:gt=gt.return}}function ni(e){if(e!==gt)return!1;if(!Re)return Qf(e),Re=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||So(e.type,e.memoizedProps)),l=!l),l&&We&&Fn(e),Qf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));We=gm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));We=gm(e)}else t===27?(t=We,rl(e.type)?(e=To,To=null,We=e):We=t):We=gt?tn(e.stateNode.nextSibling):null;return!0}function kl(){We=gt=null,Re=!1}function ls(){var e=Qn;return e!==null&&(_t===null?_t=e:_t.push.apply(_t,e),Qn=null),e}function Ii(e){Qn===null?Qn=[e]:Qn.push(e)}var is=C(null),wl=null,zn=null;function Zn(e,t,l){k(is,t._currentValue),t._currentValue=l}function kn(e){e._currentValue=is.current,V(is)}function as(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 rs(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),as(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),as(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 li(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;Ut(o.pendingProps.value,b.value)||(e!==null?e.push(z):e=[z])}}else if(o===ze.current){if(b=o.alternate,b===null)throw Error(u(387));b.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ka):e=[ka])}o=o.return}e!==null&&rs(t,e,l,r),t.flags|=262144}function sr(e){for(e=e.firstContext;e!==null;){if(!Ut(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function El(e){wl=e,zn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function xt(e){return Ff(wl,e)}function or(e,t){return wl===null&&El(e),Ff(e,t)}function Ff(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},zn===null){if(e===null)throw Error(u(308));zn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else zn=zn.next=t;return l}var vx=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()})}},Sx=n.unstable_scheduleCallback,zx=n.unstable_NormalPriority,rt={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function us(){return{controller:new vx,data:new Map,refCount:0}}function $i(e){e.refCount--,e.refCount===0&&Sx(zx,function(){e.controller.abort()})}var Wi=null,ss=0,ii=0,ai=null;function kx(e,t){if(Wi===null){var l=Wi=[];ss=0,ii=fo(),ai={status:"pending",value:void 0,then:function(r){l.push(r)}}}return ss++,t.then(Zf,Zf),t}function Zf(){if(--ss===0&&Wi!==null){ai!==null&&(ai.status="fulfilled");var e=Wi;Wi=null,ii=0,ai=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function wx(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 Jf=_.S;_.S=function(e,t){Md=mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&kx(e,t),Jf!==null&&Jf(e,t)};var Tl=C(null);function os(){var e=Tl.current;return e!==null?e:Ke.pooledCache}function cr(e,t){t===null?k(Tl,Tl.current):k(Tl,t.pool)}function Kf(){var e=os();return e===null?null:{parent:rt._currentValue,pool:e}}var ri=Error(u(460)),cs=Error(u(474)),fr=Error(u(542)),hr={then:function(){}};function If(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $f(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(yn,yn),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pf(e),e;default:if(typeof t.status=="string")t.then(yn,yn);else{if(e=Ke,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,Pf(e),e}throw Nl=t,ri}}function Cl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Nl=l,ri):l}}var Nl=null;function Wf(){if(Nl===null)throw Error(u(459));var e=Nl;return Nl=null,e}function Pf(e){if(e===ri||e===fr)throw Error(u(483))}var ui=null,Pi=0;function dr(e){var t=Pi;return Pi+=1,ui===null&&(ui=[]),$f(ui,e,t)}function ea(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function mr(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 eh(e){function t(M,N){if(e){var D=M.deletions;D===null?(M.deletions=[N],M.flags|=16):D.push(N)}}function l(M,N){if(!e)return null;for(;N!==null;)t(M,N),N=N.sibling;return null}function r(M){for(var N=new Map;M!==null;)M.key!==null?N.set(M.key,M):N.set(M.index,M),M=M.sibling;return N}function o(M,N){return M=vn(M,N),M.index=0,M.sibling=null,M}function h(M,N,D){return M.index=D,e?(D=M.alternate,D!==null?(D=D.index,D<N?(M.flags|=67108866,N):D):(M.flags|=67108866,N)):(M.flags|=1048576,N)}function b(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function z(M,N,D,Z){return N===null||N.tag!==6?(N=Wu(D,M.mode,Z),N.return=M,N):(N=o(N,D),N.return=M,N)}function T(M,N,D,Z){var pe=D.type;return pe===A?X(M,N,D.props.children,Z,D.key):N!==null&&(N.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===re&&Cl(pe)===N.type)?(N=o(N,D.props),ea(N,D),N.return=M,N):(N=rr(D.type,D.key,D.props,null,M.mode,Z),ea(N,D),N.return=M,N)}function R(M,N,D,Z){return N===null||N.tag!==4||N.stateNode.containerInfo!==D.containerInfo||N.stateNode.implementation!==D.implementation?(N=Pu(D,M.mode,Z),N.return=M,N):(N=o(N,D.children||[]),N.return=M,N)}function X(M,N,D,Z,pe){return N===null||N.tag!==7?(N=zl(D,M.mode,Z,pe),N.return=M,N):(N=o(N,D),N.return=M,N)}function J(M,N,D){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Wu(""+N,M.mode,D),N.return=M,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case v:return D=rr(N.type,N.key,N.props,null,M.mode,D),ea(D,N),D.return=M,D;case w:return N=Pu(N,M.mode,D),N.return=M,N;case re:return N=Cl(N),J(M,N,D)}if(W(N)||ne(N))return N=zl(N,M.mode,D,null),N.return=M,N;if(typeof N.then=="function")return J(M,dr(N),D);if(N.$$typeof===U)return J(M,or(M,N),D);mr(M,N)}return null}function B(M,N,D,Z){var pe=N!==null?N.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return pe!==null?null:z(M,N,""+D,Z);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case v:return D.key===pe?T(M,N,D,Z):null;case w:return D.key===pe?R(M,N,D,Z):null;case re:return D=Cl(D),B(M,N,D,Z)}if(W(D)||ne(D))return pe!==null?null:X(M,N,D,Z,null);if(typeof D.then=="function")return B(M,N,dr(D),Z);if(D.$$typeof===U)return B(M,N,or(M,D),Z);mr(M,D)}return null}function Y(M,N,D,Z,pe){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return M=M.get(D)||null,z(N,M,""+Z,pe);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case v:return M=M.get(Z.key===null?D:Z.key)||null,T(N,M,Z,pe);case w:return M=M.get(Z.key===null?D:Z.key)||null,R(N,M,Z,pe);case re:return Z=Cl(Z),Y(M,N,D,Z,pe)}if(W(Z)||ne(Z))return M=M.get(D)||null,X(N,M,Z,pe,null);if(typeof Z.then=="function")return Y(M,N,D,dr(Z),pe);if(Z.$$typeof===U)return Y(M,N,D,or(N,Z),pe);mr(N,Z)}return null}function fe(M,N,D,Z){for(var pe=null,He=null,de=N,we=N=0,Oe=null;de!==null&&we<D.length;we++){de.index>we?(Oe=de,de=null):Oe=de.sibling;var qe=B(M,de,D[we],Z);if(qe===null){de===null&&(de=Oe);break}e&&de&&qe.alternate===null&&t(M,de),N=h(qe,N,we),He===null?pe=qe:He.sibling=qe,He=qe,de=Oe}if(we===D.length)return l(M,de),Re&&Sn(M,we),pe;if(de===null){for(;we<D.length;we++)de=J(M,D[we],Z),de!==null&&(N=h(de,N,we),He===null?pe=de:He.sibling=de,He=de);return Re&&Sn(M,we),pe}for(de=r(de);we<D.length;we++)Oe=Y(de,M,we,D[we],Z),Oe!==null&&(e&&Oe.alternate!==null&&de.delete(Oe.key===null?we:Oe.key),N=h(Oe,N,we),He===null?pe=Oe:He.sibling=Oe,He=Oe);return e&&de.forEach(function(fl){return t(M,fl)}),Re&&Sn(M,we),pe}function xe(M,N,D,Z){if(D==null)throw Error(u(151));for(var pe=null,He=null,de=N,we=N=0,Oe=null,qe=D.next();de!==null&&!qe.done;we++,qe=D.next()){de.index>we?(Oe=de,de=null):Oe=de.sibling;var fl=B(M,de,qe.value,Z);if(fl===null){de===null&&(de=Oe);break}e&&de&&fl.alternate===null&&t(M,de),N=h(fl,N,we),He===null?pe=fl:He.sibling=fl,He=fl,de=Oe}if(qe.done)return l(M,de),Re&&Sn(M,we),pe;if(de===null){for(;!qe.done;we++,qe=D.next())qe=J(M,qe.value,Z),qe!==null&&(N=h(qe,N,we),He===null?pe=qe:He.sibling=qe,He=qe);return Re&&Sn(M,we),pe}for(de=r(de);!qe.done;we++,qe=D.next())qe=Y(de,M,we,qe.value,Z),qe!==null&&(e&&qe.alternate!==null&&de.delete(qe.key===null?we:qe.key),N=h(qe,N,we),He===null?pe=qe:He.sibling=qe,He=qe);return e&&de.forEach(function(Ry){return t(M,Ry)}),Re&&Sn(M,we),pe}function Ze(M,N,D,Z){if(typeof D=="object"&&D!==null&&D.type===A&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case v:e:{for(var pe=D.key;N!==null;){if(N.key===pe){if(pe=D.type,pe===A){if(N.tag===7){l(M,N.sibling),Z=o(N,D.props.children),Z.return=M,M=Z;break e}}else if(N.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===re&&Cl(pe)===N.type){l(M,N.sibling),Z=o(N,D.props),ea(Z,D),Z.return=M,M=Z;break e}l(M,N);break}else t(M,N);N=N.sibling}D.type===A?(Z=zl(D.props.children,M.mode,Z,D.key),Z.return=M,M=Z):(Z=rr(D.type,D.key,D.props,null,M.mode,Z),ea(Z,D),Z.return=M,M=Z)}return b(M);case w:e:{for(pe=D.key;N!==null;){if(N.key===pe)if(N.tag===4&&N.stateNode.containerInfo===D.containerInfo&&N.stateNode.implementation===D.implementation){l(M,N.sibling),Z=o(N,D.children||[]),Z.return=M,M=Z;break e}else{l(M,N);break}else t(M,N);N=N.sibling}Z=Pu(D,M.mode,Z),Z.return=M,M=Z}return b(M);case re:return D=Cl(D),Ze(M,N,D,Z)}if(W(D))return fe(M,N,D,Z);if(ne(D)){if(pe=ne(D),typeof pe!="function")throw Error(u(150));return D=pe.call(D),xe(M,N,D,Z)}if(typeof D.then=="function")return Ze(M,N,dr(D),Z);if(D.$$typeof===U)return Ze(M,N,or(M,D),Z);mr(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,N!==null&&N.tag===6?(l(M,N.sibling),Z=o(N,D),Z.return=M,M=Z):(l(M,N),Z=Wu(D,M.mode,Z),Z.return=M,M=Z),b(M)):l(M,N)}return function(M,N,D,Z){try{Pi=0;var pe=Ze(M,N,D,Z);return ui=null,pe}catch(de){if(de===ri||de===fr)throw de;var He=Bt(29,de,null,M.mode);return He.lanes=Z,He.return=M,He}finally{}}}var jl=eh(!0),th=eh(!1),Jn=!1;function fs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hs(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 Kn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function In(e,t,l){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ye&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=ar(e),Bf(e,null,l),t}return ir(e,r,t,l),ar(e)}function ta(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,Qc(e,l)}}function ds(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 ms=!1;function na(){if(ms){var e=ai;if(e!==null)throw e}}function la(e,t,l,r){ms=!1;var o=e.updateQueue;Jn=!1;var h=o.firstBaseUpdate,b=o.lastBaseUpdate,z=o.shared.pending;if(z!==null){o.shared.pending=null;var T=z,R=T.next;T.next=null,b===null?h=R:b.next=R,b=T;var X=e.alternate;X!==null&&(X=X.updateQueue,z=X.lastBaseUpdate,z!==b&&(z===null?X.firstBaseUpdate=R:z.next=R,X.lastBaseUpdate=T))}if(h!==null){var J=o.baseState;b=0,X=R=T=null,z=h;do{var B=z.lane&-536870913,Y=B!==z.lane;if(Y?(_e&B)===B:(r&B)===B){B!==0&&B===ii&&(ms=!0),X!==null&&(X=X.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var fe=e,xe=z;B=t;var Ze=l;switch(xe.tag){case 1:if(fe=xe.payload,typeof fe=="function"){J=fe.call(Ze,J,B);break e}J=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=xe.payload,B=typeof fe=="function"?fe.call(Ze,J,B):fe,B==null)break e;J=g({},J,B);break e;case 2:Jn=!0}}B=z.callback,B!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=o.callbacks,Y===null?o.callbacks=[B]:Y.push(B))}else Y={lane:B,tag:z.tag,payload:z.payload,callback:z.callback,next:null},X===null?(R=X=Y,T=J):X=X.next=Y,b|=B;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=R,o.lastBaseUpdate=X,h===null&&(o.shared.lanes=0),tl|=b,e.lanes=b,e.memoizedState=J}}function nh(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function lh(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)nh(l[e],t)}var si=C(null),pr=C(0);function ih(e,t){e=_n,k(pr,e),k(si,t),_n=e|t.baseLanes}function ps(){k(pr,_n),k(si,si.current)}function gs(){_n=pr.current,V(si),V(pr)}var Ht=C(null),en=null;function $n(e){var t=e.alternate;k(it,it.current&1),k(Ht,e),en===null&&(t===null||si.current!==null||t.memoizedState!==null)&&(en=e)}function xs(e){k(it,it.current),k(Ht,e),en===null&&(en=e)}function ah(e){e.tag===22?(k(it,it.current),k(Ht,e),en===null&&(en=e)):Wn()}function Wn(){k(it,it.current),k(Ht,Ht.current)}function qt(e){V(Ht),en===e&&(en=null),V(it)}var it=C(0);function gr(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||wo(l)||Eo(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 wn=0,ke=null,Qe=null,ut=null,xr=!1,oi=!1,Al=!1,yr=0,ia=0,ci=null,Ex=0;function tt(){throw Error(u(321))}function ys(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ut(e[l],t[l]))return!1;return!0}function bs(e,t,l,r,o,h){return wn=h,ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?Vh:Ds,Al=!1,h=l(r,o),Al=!1,oi&&(h=uh(t,l,r,o)),rh(e),h}function rh(e){_.H=ua;var t=Qe!==null&&Qe.next!==null;if(wn=0,ut=Qe=ke=null,xr=!1,ia=0,ci=null,t)throw Error(u(300));e===null||st||(e=e.dependencies,e!==null&&sr(e)&&(st=!0))}function uh(e,t,l,r){ke=e;var o=0;do{if(oi&&(ci=null),ia=0,oi=!1,25<=o)throw Error(u(301));if(o+=1,ut=Qe=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}_.H=Xh,h=t(l,r)}while(oi);return h}function Tx(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?aa(t):t,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(ke.flags|=1024),t}function vs(){var e=yr!==0;return yr=0,e}function Ss(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function zs(e){if(xr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}xr=!1}wn=0,ut=Qe=ke=null,oi=!1,ia=yr=0,ci=null}function wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?ke.memoizedState=ut=e:ut=ut.next=e,ut}function at(){if(Qe===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var t=ut===null?ke.memoizedState:ut.next;if(t!==null)ut=t,Qe=e;else{if(e===null)throw ke.alternate===null?Error(u(467)):Error(u(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},ut===null?ke.memoizedState=ut=e:ut=ut.next=e}return ut}function br(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function aa(e){var t=ia;return ia+=1,ci===null&&(ci=[]),e=$f(ci,e,t),t=ke,(ut===null?t.memoizedState:ut.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?Vh:Ds),e}function vr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return aa(e);if(e.$$typeof===U)return xt(e)}throw Error(u(438,String(e)))}function ks(e){var t=null,l=ke.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var r=ke.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=br(),ke.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]=H;return t.index++,l}function En(e,t){return typeof t=="function"?t(e):t}function Sr(e){var t=at();return ws(t,Qe,e)}function ws(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,R=t,X=!1;do{var J=R.lane&-536870913;if(J!==R.lane?(_e&J)===J:(wn&J)===J){var B=R.revertLane;if(B===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),J===ii&&(X=!0);else if((wn&B)===B){R=R.next,B===ii&&(X=!0);continue}else J={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},T===null?(z=T=J,b=h):T=T.next=J,ke.lanes|=B,tl|=B;J=R.action,Al&&l(h,J),h=R.hasEagerState?R.eagerState:l(h,J)}else B={lane:J,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},T===null?(z=T=B,b=h):T=T.next=B,ke.lanes|=J,tl|=J;R=R.next}while(R!==null&&R!==t);if(T===null?b=h:T.next=z,!Ut(h,e.memoizedState)&&(st=!0,X&&(l=ai,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 Es(e){var t=at(),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);Ut(h,t.memoizedState)||(st=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),l.lastRenderedState=h}return[h,r]}function sh(e,t,l){var r=ke,o=at(),h=Re;if(h){if(l===void 0)throw Error(u(407));l=l()}else l=t();var b=!Ut((Qe||o).memoizedState,l);if(b&&(o.memoizedState=l,st=!0),o=o.queue,Ns(fh.bind(null,r,o,e),[e]),o.getSnapshot!==t||b||ut!==null&&ut.memoizedState.tag&1){if(r.flags|=2048,fi(9,{destroy:void 0},ch.bind(null,r,o,l,t),null),Ke===null)throw Error(u(349));h||(wn&127)!==0||oh(r,t,l)}return l}function oh(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ke.updateQueue,t===null?(t=br(),ke.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function ch(e,t,l,r){t.value=l,t.getSnapshot=r,hh(t)&&dh(e)}function fh(e,t,l){return l(function(){hh(t)&&dh(e)})}function hh(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ut(e,l)}catch{return!0}}function dh(e){var t=Sl(e,2);t!==null&&Ot(t,e,2)}function Ts(e){var t=wt();if(typeof e=="function"){var l=e;if(e=l(),Al){Je(!0);try{l()}finally{Je(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:e},t}function mh(e,t,l,r){return e.baseState=l,ws(e,Qe,typeof r=="function"?r:En)}function Cx(e,t,l,r,o){if(wr(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)}};_.T!==null?l(!0):h.isTransition=!1,r(h),l=t.pending,l===null?(h.next=t.pending=h,ph(t,h)):(h.next=l.next,t.pending=l.next=h)}}function ph(e,t){var l=t.action,r=t.payload,o=e.state;if(t.isTransition){var h=_.T,b={};_.T=b;try{var z=l(o,r),T=_.S;T!==null&&T(b,z),gh(e,t,z)}catch(R){Cs(e,t,R)}finally{h!==null&&b.types!==null&&(h.types=b.types),_.T=h}}else try{h=l(o,r),gh(e,t,h)}catch(R){Cs(e,t,R)}}function gh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(r){xh(e,t,r)},function(r){return Cs(e,t,r)}):xh(e,t,l)}function xh(e,t,l){t.status="fulfilled",t.value=l,yh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ph(e,l)))}function Cs(e,t,l){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=l,yh(t),t=t.next;while(t!==r)}e.action=null}function yh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bh(e,t){return t}function vh(e,t){if(Re){var l=Ke.formState;if(l!==null){e:{var r=ke;if(Re){if(We){t:{for(var o=We,h=Pt;o.nodeType!==8;){if(!h){o=null;break t}if(o=tn(o.nextSibling),o===null){o=null;break t}}h=o.data,o=h==="F!"||h==="F"?o:null}if(o){We=tn(o.nextSibling),r=o.data==="F!";break e}}Fn(r)}r=!1}r&&(t=l[0])}}return l=wt(),l.memoizedState=l.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bh,lastRenderedState:t},l.queue=r,l=Hh.bind(null,ke,r),r.dispatch=l,r=Ts(!1),h=Os.bind(null,ke,!1,r.queue),r=wt(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,l=Cx.bind(null,ke,o,h,l),o.dispatch=l,r.memoizedState=e,[t,l,!1]}function Sh(e){var t=at();return zh(t,Qe,e)}function zh(e,t,l){if(t=ws(e,t,bh)[0],e=Sr(En)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=aa(t)}catch(b){throw b===ri?fr:b}else r=t;t=at();var o=t.queue,h=o.dispatch;return l!==t.memoizedState&&(ke.flags|=2048,fi(9,{destroy:void 0},Nx.bind(null,o,l),null)),[r,h,e]}function Nx(e,t){e.action=t}function kh(e){var t=at(),l=Qe;if(l!==null)return zh(t,l,e);at(),t=t.memoizedState,l=at();var r=l.queue.dispatch;return l.memoizedState=e,[t,r,!1]}function fi(e,t,l,r){return e={tag:e,create:l,deps:r,inst:t,next:null},t=ke.updateQueue,t===null&&(t=br(),ke.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 wh(){return at().memoizedState}function zr(e,t,l,r){var o=wt();ke.flags|=e,o.memoizedState=fi(1|t,{destroy:void 0},l,r===void 0?null:r)}function kr(e,t,l,r){var o=at();r=r===void 0?null:r;var h=o.memoizedState.inst;Qe!==null&&r!==null&&ys(r,Qe.memoizedState.deps)?o.memoizedState=fi(t,h,l,r):(ke.flags|=e,o.memoizedState=fi(1|t,h,l,r))}function Eh(e,t){zr(8390656,8,e,t)}function Ns(e,t){kr(2048,8,e,t)}function jx(e){ke.flags|=4;var t=ke.updateQueue;if(t===null)t=br(),ke.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Th(e){var t=at().memoizedState;return jx({ref:t,nextImpl:e}),function(){if((Ye&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function Ch(e,t){return kr(4,2,e,t)}function Nh(e,t){return kr(4,4,e,t)}function jh(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 Ah(e,t,l){l=l!=null?l.concat([e]):null,kr(4,4,jh.bind(null,t,e),l)}function js(){}function Mh(e,t){var l=at();t=t===void 0?null:t;var r=l.memoizedState;return t!==null&&ys(t,r[1])?r[0]:(l.memoizedState=[e,t],e)}function _h(e,t){var l=at();t=t===void 0?null:t;var r=l.memoizedState;if(t!==null&&ys(t,r[1]))return r[0];if(r=e(),Al){Je(!0);try{e()}finally{Je(!1)}}return l.memoizedState=[r,t],r}function As(e,t,l){return l===void 0||(wn&1073741824)!==0&&(_e&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Od(),ke.lanes|=e,tl|=e,l)}function Oh(e,t,l,r){return Ut(l,t)?l:si.current!==null?(e=As(e,l,r),Ut(e,t)||(st=!0),e):(wn&42)===0||(wn&1073741824)!==0&&(_e&261930)===0?(st=!0,e.memoizedState=l):(e=Od(),ke.lanes|=e,tl|=e,t)}function Dh(e,t,l,r,o){var h=I.p;I.p=h!==0&&8>h?h:8;var b=_.T,z={};_.T=z,Os(e,!1,t,l);try{var T=o(),R=_.S;if(R!==null&&R(z,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var X=wx(T,r);ra(e,t,X,Xt(e))}else ra(e,t,r,Xt(e))}catch(J){ra(e,t,{then:function(){},status:"rejected",reason:J},Xt())}finally{I.p=h,b!==null&&z.types!==null&&(b.types=z.types),_.T=b}}function Ax(){}function Ms(e,t,l,r){if(e.tag!==5)throw Error(u(476));var o=Rh(e).queue;Dh(e,o,t,ce,l===null?Ax:function(){return Lh(e),l(r)})}function Rh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:ce},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Lh(e){var t=Rh(e);t.next===null&&(t=e.alternate.memoizedState),ra(e,t.next.queue,{},Xt())}function _s(){return xt(ka)}function Uh(){return at().memoizedState}function Bh(){return at().memoizedState}function Mx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Xt();e=Kn(l);var r=In(t,e,l);r!==null&&(Ot(r,t,l),ta(r,t,l)),t={cache:us()},e.payload=t;return}t=t.return}}function _x(e,t,l){var r=Xt();l={lane:r,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},wr(e)?qh(t,l):(l=Iu(e,t,l,r),l!==null&&(Ot(l,e,r),Yh(l,t,r)))}function Hh(e,t,l){var r=Xt();ra(e,t,l,r)}function ra(e,t,l,r){var o={lane:r,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(wr(e))qh(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,Ut(z,b))return ir(e,t,o,0),Ke===null&&lr(),!1}catch{}finally{}if(l=Iu(e,t,o,r),l!==null)return Ot(l,e,r),Yh(l,t,r),!0}return!1}function Os(e,t,l,r){if(r={lane:2,revertLane:fo(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},wr(e)){if(t)throw Error(u(479))}else t=Iu(e,l,r,2),t!==null&&Ot(t,e,2)}function wr(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function qh(e,t){oi=xr=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Yh(e,t,l){if((l&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,l|=r,t.lanes=l,Qc(e,l)}}var ua={readContext:xt,use:vr,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt};ua.useEffectEvent=tt;var Vh={readContext:xt,use:vr,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:Eh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,zr(4194308,4,jh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return zr(4194308,4,e,t)},useInsertionEffect:function(e,t){zr(4,2,e,t)},useMemo:function(e,t){var l=wt();t=t===void 0?null:t;var r=e();if(Al){Je(!0);try{e()}finally{Je(!1)}}return l.memoizedState=[r,t],r},useReducer:function(e,t,l){var r=wt();if(l!==void 0){var o=l(t);if(Al){Je(!0);try{l(t)}finally{Je(!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=_x.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ts(e);var t=e.queue,l=Hh.bind(null,ke,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:js,useDeferredValue:function(e,t){var l=wt();return As(l,e,t)},useTransition:function(){var e=Ts(!1);return e=Dh.bind(null,ke,e.queue,!0,!1),wt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var r=ke,o=wt();if(Re){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Ke===null)throw Error(u(349));(_e&127)!==0||oh(r,t,l)}o.memoizedState=l;var h={value:l,getSnapshot:t};return o.queue=h,Eh(fh.bind(null,r,h,e),[e]),r.flags|=2048,fi(9,{destroy:void 0},ch.bind(null,r,h,l,t),null),l},useId:function(){var e=wt(),t=Ke.identifierPrefix;if(Re){var l=hn,r=fn;l=(r&~(1<<32-De(r)-1)).toString(32)+l,t="_"+t+"R_"+l,l=yr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Ex++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:_s,useFormState:vh,useActionState:vh,useOptimistic:function(e){var t=wt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Os.bind(null,ke,!0,l),l.dispatch=t,[e,t]},useMemoCache:ks,useCacheRefresh:function(){return wt().memoizedState=Mx.bind(null,ke)},useEffectEvent:function(e){var t=wt(),l={impl:e};return t.memoizedState=l,function(){if((Ye&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},Ds={readContext:xt,use:vr,useCallback:Mh,useContext:xt,useEffect:Ns,useImperativeHandle:Ah,useInsertionEffect:Ch,useLayoutEffect:Nh,useMemo:_h,useReducer:Sr,useRef:wh,useState:function(){return Sr(En)},useDebugValue:js,useDeferredValue:function(e,t){var l=at();return Oh(l,Qe.memoizedState,e,t)},useTransition:function(){var e=Sr(En)[0],t=at().memoizedState;return[typeof e=="boolean"?e:aa(e),t]},useSyncExternalStore:sh,useId:Uh,useHostTransitionStatus:_s,useFormState:Sh,useActionState:Sh,useOptimistic:function(e,t){var l=at();return mh(l,Qe,e,t)},useMemoCache:ks,useCacheRefresh:Bh};Ds.useEffectEvent=Th;var Xh={readContext:xt,use:vr,useCallback:Mh,useContext:xt,useEffect:Ns,useImperativeHandle:Ah,useInsertionEffect:Ch,useLayoutEffect:Nh,useMemo:_h,useReducer:Es,useRef:wh,useState:function(){return Es(En)},useDebugValue:js,useDeferredValue:function(e,t){var l=at();return Qe===null?As(l,e,t):Oh(l,Qe.memoizedState,e,t)},useTransition:function(){var e=Es(En)[0],t=at().memoizedState;return[typeof e=="boolean"?e:aa(e),t]},useSyncExternalStore:sh,useId:Uh,useHostTransitionStatus:_s,useFormState:kh,useActionState:kh,useOptimistic:function(e,t){var l=at();return Qe!==null?mh(l,Qe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ks,useCacheRefresh:Bh};Xh.useEffectEvent=Th;function Rs(e,t,l,r){t=e.memoizedState,l=l(r,t),l=l==null?t:g({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ls={enqueueSetState:function(e,t,l){e=e._reactInternals;var r=Xt(),o=Kn(r);o.payload=t,l!=null&&(o.callback=l),t=In(e,o,r),t!==null&&(Ot(t,e,r),ta(t,e,r))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var r=Xt(),o=Kn(r);o.tag=1,o.payload=t,l!=null&&(o.callback=l),t=In(e,o,r),t!==null&&(Ot(t,e,r),ta(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Xt(),r=Kn(l);r.tag=2,t!=null&&(r.callback=t),t=In(e,r,l),t!==null&&(Ot(t,e,l),ta(t,e,l))}};function Gh(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?!Zi(l,r)||!Zi(o,h):!0}function Qh(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&&Ls.enqueueReplaceState(t,t.state,null)}function Ml(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=g({},l));for(var o in e)l[o]===void 0&&(l[o]=e[o])}return l}function Fh(e){nr(e)}function Zh(e){console.error(e)}function Jh(e){nr(e)}function Er(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Kh(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 Us(e,t,l){return l=Kn(l),l.tag=3,l.payload={element:null},l.callback=function(){Er(e,t)},l}function Ih(e){return e=Kn(e),e.tag=3,e}function $h(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(){Kh(t,l,r)}}var b=l.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){Kh(t,l,r),typeof o!="function"&&(nl===null?nl=new Set([this]):nl.add(this));var z=r.stack;this.componentDidCatch(r.value,{componentStack:z!==null?z:""})})}function Ox(e,t,l,r,o){if(l.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=l.alternate,t!==null&&li(t,l,o,!0),l=Ht.current,l!==null){switch(l.tag){case 31:case 13:return en===null?Ur():l.alternate===null&&nt===0&&(nt=3),l.flags&=-257,l.flags|=65536,l.lanes=o,r===hr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([r]):t.add(r),so(e,r,o)),!1;case 22:return l.flags|=65536,r===hr?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)),so(e,r,o)),!1}throw Error(u(435,l.tag))}return so(e,r,o),Ur(),!1}if(Re)return t=Ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==ns&&(e=Error(u(422),{cause:r}),Ii(It(e,l)))):(r!==ns&&(t=Error(u(423),{cause:r}),Ii(It(t,l))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=It(r,l),o=Us(e.stateNode,r,o),ds(e,o),nt!==4&&(nt=2)),!1;var h=Error(u(520),{cause:r});if(h=It(h,l),pa===null?pa=[h]:pa.push(h),nt!==4&&(nt=2),t===null)return!0;r=It(r,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=o&-o,l.lanes|=e,e=Us(l.stateNode,r,e),ds(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"&&(nl===null||!nl.has(h))))return l.flags|=65536,o&=-o,l.lanes|=o,o=Ih(o),$h(o,e,l,r),ds(l,o),!1}l=l.return}while(l!==null);return!1}var Bs=Error(u(461)),st=!1;function yt(e,t,l,r){t.child=e===null?th(t,null,l,r):jl(t,e.child,l,r)}function Wh(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 El(t),r=bs(e,t,l,b,h,o),z=vs(),e!==null&&!st?(Ss(e,t,o),Tn(e,t,o)):(Re&&z&&es(t),t.flags|=1,yt(e,t,r,o),t.child)}function Ph(e,t,l,r,o){if(e===null){var h=l.type;return typeof h=="function"&&!$u(h)&&h.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=h,ed(e,t,h,r,o)):(e=rr(l.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(h=e.child,!Fs(e,o)){var b=h.memoizedProps;if(l=l.compare,l=l!==null?l:Zi,l(b,r)&&e.ref===t.ref)return Tn(e,t,o)}return t.flags|=1,e=vn(h,r),e.ref=t.ref,e.return=t,t.child=e}function ed(e,t,l,r,o){if(e!==null){var h=e.memoizedProps;if(Zi(h,r)&&e.ref===t.ref)if(st=!1,t.pendingProps=r=h,Fs(e,o))(e.flags&131072)!==0&&(st=!0);else return t.lanes=e.lanes,Tn(e,t,o)}return Hs(e,t,l,r,o)}function td(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 nd(e,t,h,l,r)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&cr(t,h!==null?h.cachePool:null),h!==null?ih(t,h):ps(),ah(t);else return r=t.lanes=536870912,nd(e,t,h!==null?h.baseLanes|l:l,l,r)}else h!==null?(cr(t,h.cachePool),ih(t,h),Wn(),t.memoizedState=null):(e!==null&&cr(t,null),ps(),Wn());return yt(e,t,o,l),t.child}function sa(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function nd(e,t,l,r,o){var h=os();return h=h===null?null:{parent:rt._currentValue,pool:h},t.memoizedState={baseLanes:l,cachePool:h},e!==null&&cr(t,null),ps(),ah(t),e!==null&&li(e,t,r,!0),t.childLanes=o,null}function Tr(e,t){return t=Nr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ld(e,t,l){return jl(t,e.child,null,l),e=Tr(t,t.pendingProps),e.flags|=2,qt(t),t.memoizedState=null,e}function Dx(e,t,l){var r=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Re){if(r.mode==="hidden")return e=Tr(t,r),t.lanes=536870912,sa(null,e);if(xs(t),(e=We)?(e=pm(e,Pt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Gn!==null?{id:fn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},l=qf(e),l.return=t,t.child=l,gt=t,We=null)):e=null,e===null)throw Fn(t);return t.lanes=536870912,null}return Tr(t,r)}var h=e.memoizedState;if(h!==null){var b=h.dehydrated;if(xs(t),o)if(t.flags&256)t.flags&=-257,t=ld(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(st||li(e,t,l,!1),o=(l&e.childLanes)!==0,st||o){if(r=Ke,r!==null&&(b=Fc(r,l),b!==0&&b!==h.retryLane))throw h.retryLane=b,Sl(e,b),Ot(r,e,b),Bs;Ur(),t=ld(e,t,l)}else e=h.treeContext,We=tn(b.nextSibling),gt=t,Re=!0,Qn=null,Pt=!1,e!==null&&Xf(t,e),t=Tr(t,r),t.flags|=4096;return t}return e=vn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Cr(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 Hs(e,t,l,r,o){return El(t),l=bs(e,t,l,r,void 0,o),r=vs(),e!==null&&!st?(Ss(e,t,o),Tn(e,t,o)):(Re&&r&&es(t),t.flags|=1,yt(e,t,l,o),t.child)}function id(e,t,l,r,o,h){return El(t),t.updateQueue=null,l=uh(t,r,l,o),rh(e),r=vs(),e!==null&&!st?(Ss(e,t,h),Tn(e,t,h)):(Re&&r&&es(t),t.flags|=1,yt(e,t,l,h),t.child)}function ad(e,t,l,r,o){if(El(t),t.stateNode===null){var h=Pl,b=l.contextType;typeof b=="object"&&b!==null&&(h=xt(b)),h=new l(r,h),t.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Ls,t.stateNode=h,h._reactInternals=t,h=t.stateNode,h.props=r,h.state=t.memoizedState,h.refs={},fs(t),b=l.contextType,h.context=typeof b=="object"&&b!==null?xt(b):Pl,h.state=t.memoizedState,b=l.getDerivedStateFromProps,typeof b=="function"&&(Rs(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&&Ls.enqueueReplaceState(h,h.state,null),la(t,r,h,o),na(),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=Ml(l,z);h.props=T;var R=h.context,X=l.contextType;b=Pl,typeof X=="object"&&X!==null&&(b=xt(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||R!==b)&&Qh(t,h,r,b),Jn=!1;var B=t.memoizedState;h.state=B,la(t,r,h,o),na(),R=t.memoizedState,z||B!==R||Jn?(typeof J=="function"&&(Rs(t,l,J,r),R=t.memoizedState),(T=Jn||Gh(t,l,T,r,B,R,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=R),h.props=r,h.state=R,h.context=b,r=T):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{h=t.stateNode,hs(e,t),b=t.memoizedProps,X=Ml(l,b),h.props=X,J=t.pendingProps,B=h.context,R=l.contextType,T=Pl,typeof R=="object"&&R!==null&&(T=xt(R)),z=l.getDerivedStateFromProps,(R=typeof z=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==J||B!==T)&&Qh(t,h,r,T),Jn=!1,B=t.memoizedState,h.state=B,la(t,r,h,o),na();var Y=t.memoizedState;b!==J||B!==Y||Jn||e!==null&&e.dependencies!==null&&sr(e.dependencies)?(typeof z=="function"&&(Rs(t,l,z,r),Y=t.memoizedState),(X=Jn||Gh(t,l,X,r,B,Y,T)||e!==null&&e.dependencies!==null&&sr(e.dependencies))?(R||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&&B===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&B===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&&B===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),r=!1)}return h=r,Cr(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=jl(t,e.child,null,o),t.child=jl(t,null,l,o)):yt(e,t,l,o),t.memoizedState=h.state,e=t.child):e=Tn(e,t,o),e}function rd(e,t,l,r){return kl(),t.flags|=256,yt(e,t,l,r),t.child}var qs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ys(e){return{baseLanes:e,cachePool:Kf()}}function Vs(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Vt),e}function ud(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:(it.current&2)!==0),b&&(o=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(Re){if(o?$n(t):Wn(),(e=We)?(e=pm(e,Pt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Gn!==null?{id:fn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},l=qf(e),l.return=t,t.child=l,gt=t,We=null)):e=null,e===null)throw Fn(t);return Eo(e)?t.lanes=32:t.lanes=536870912,null}var z=r.children;return r=r.fallback,o?(Wn(),o=t.mode,z=Nr({mode:"hidden",children:z},o),r=zl(r,o,l,null),z.return=t,r.return=t,z.sibling=r,t.child=z,r=t.child,r.memoizedState=Ys(l),r.childLanes=Vs(e,b,l),t.memoizedState=qs,sa(null,r)):($n(t),Xs(t,z))}var T=e.memoizedState;if(T!==null&&(z=T.dehydrated,z!==null)){if(h)t.flags&256?($n(t),t.flags&=-257,t=Gs(e,t,l)):t.memoizedState!==null?(Wn(),t.child=e.child,t.flags|=128,t=null):(Wn(),z=r.fallback,o=t.mode,r=Nr({mode:"visible",children:r.children},o),z=zl(z,o,l,null),z.flags|=2,r.return=t,z.return=t,r.sibling=z,t.child=r,jl(t,e.child,null,l),r=t.child,r.memoizedState=Ys(l),r.childLanes=Vs(e,b,l),t.memoizedState=qs,t=sa(null,r));else if($n(t),Eo(z)){if(b=z.nextSibling&&z.nextSibling.dataset,b)var R=b.dgst;b=R,r=Error(u(419)),r.stack="",r.digest=b,Ii({value:r,source:null,stack:null}),t=Gs(e,t,l)}else if(st||li(e,t,l,!1),b=(l&e.childLanes)!==0,st||b){if(b=Ke,b!==null&&(r=Fc(b,l),r!==0&&r!==T.retryLane))throw T.retryLane=r,Sl(e,r),Ot(b,e,r),Bs;wo(z)||Ur(),t=Gs(e,t,l)}else wo(z)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,We=tn(z.nextSibling),gt=t,Re=!0,Qn=null,Pt=!1,e!==null&&Xf(t,e),t=Xs(t,r.children),t.flags|=4096);return t}return o?(Wn(),z=r.fallback,o=t.mode,T=e.child,R=T.sibling,r=vn(T,{mode:"hidden",children:r.children}),r.subtreeFlags=T.subtreeFlags&65011712,R!==null?z=vn(R,z):(z=zl(z,o,l,null),z.flags|=2),z.return=t,r.return=t,r.sibling=z,t.child=r,sa(null,r),r=t.child,z=e.child.memoizedState,z===null?z=Ys(l):(o=z.cachePool,o!==null?(T=rt._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=Kf(),z={baseLanes:z.baseLanes|l,cachePool:o}),r.memoizedState=z,r.childLanes=Vs(e,b,l),t.memoizedState=qs,sa(e.child,r)):($n(t),l=e.child,e=l.sibling,l=vn(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 Xs(e,t){return t=Nr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Nr(e,t){return e=Bt(22,e,null,t),e.lanes=0,e}function Gs(e,t,l){return jl(t,e.child,null,l),e=Xs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sd(e,t,l){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),as(e.return,t,l)}function Qs(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 od(e,t,l){var r=t.pendingProps,o=r.revealOrder,h=r.tail;r=r.children;var b=it.current,z=(b&2)!==0;if(z?(b=b&1|2,t.flags|=128):b&=1,k(it,b),yt(e,t,r,l),r=Re?Ki:0,!z&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sd(e,l,t);else if(e.tag===19)sd(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(l=t.child,o=null;l!==null;)e=l.alternate,e!==null&&gr(e)===null&&(o=l),l=l.sibling;l=o,l===null?(o=t.child,t.child=null):(o=l.sibling,l.sibling=null),Qs(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&&gr(e)===null){t.child=o;break}e=o.sibling,o.sibling=l,l=o,o=e}Qs(t,!0,l,null,h,r);break;case"together":Qs(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Tn(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),tl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(li(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=vn(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=vn(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Fs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&sr(e)))}function Rx(e,t,l){switch(t.tag){case 3:Ve(t,t.stateNode.containerInfo),Zn(t,rt,e.memoizedState.cache),kl();break;case 27:case 5:lt(t);break;case 4:Ve(t,t.stateNode.containerInfo);break;case 10:Zn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,xs(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?($n(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ud(e,t,l):($n(t),e=Tn(e,t,l),e!==null?e.sibling:null);$n(t);break;case 19:var o=(e.flags&128)!==0;if(r=(l&t.childLanes)!==0,r||(li(e,t,l,!1),r=(l&t.childLanes)!==0),o){if(r)return od(e,t,l);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),k(it,it.current),r)break;return null;case 22:return t.lanes=0,td(e,t,l,t.pendingProps);case 24:Zn(t,rt,e.memoizedState.cache)}return Tn(e,t,l)}function cd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)st=!0;else{if(!Fs(e,l)&&(t.flags&128)===0)return st=!1,Rx(e,t,l);st=(e.flags&131072)!==0}else st=!1,Re&&(t.flags&1048576)!==0&&Vf(t,Ki,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Cl(t.elementType),t.type=e,typeof e=="function")$u(e)?(r=Ml(e,r),t.tag=1,t=ad(null,t,e,r,l)):(t.tag=0,t=Hs(null,t,e,r,l));else{if(e!=null){var o=e.$$typeof;if(o===te){t.tag=11,t=Wh(null,t,e,r,l);break e}else if(o===$){t.tag=14,t=Ph(null,t,e,r,l);break e}}throw t=se(e)||e,Error(u(306,t,""))}}return t;case 0:return Hs(e,t,t.type,t.pendingProps,l);case 1:return r=t.type,o=Ml(r,t.pendingProps),ad(e,t,r,o,l);case 3:e:{if(Ve(t,t.stateNode.containerInfo),e===null)throw Error(u(387));r=t.pendingProps;var h=t.memoizedState;o=h.element,hs(e,t),la(t,r,null,l);var b=t.memoizedState;if(r=b.cache,Zn(t,rt,r),r!==h.cache&&rs(t,[rt],l,!0),na(),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=rd(e,t,r,l);break e}else if(r!==o){o=It(Error(u(424)),t),Ii(o),t=rd(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(We=tn(e.firstChild),gt=t,Re=!0,Qn=null,Pt=!0,l=th(t,null,r,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(kl(),r===o){t=Tn(e,t,l);break e}yt(e,t,r,l)}t=t.child}return t;case 26:return Cr(e,t),e===null?(l=Sm(t.type,null,t.pendingProps,null))?t.memoizedState=l:Re||(l=t.type,e=t.pendingProps,r=Gr(oe.current).createElement(l),r[pt]=t,r[Ct]=e,bt(r,l,e),ht(r),t.stateNode=r):t.memoizedState=Sm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return lt(t),e===null&&Re&&(r=t.stateNode=ym(t.type,t.pendingProps,oe.current),gt=t,Pt=!0,o=We,rl(t.type)?(To=o,We=tn(r.firstChild)):We=o),yt(e,t,t.pendingProps.children,l),Cr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((o=r=We)&&(r=fy(r,t.type,t.pendingProps,Pt),r!==null?(t.stateNode=r,gt=t,We=tn(r.firstChild),Pt=!1,o=!0):o=!1),o||Fn(t)),lt(t),o=t.type,h=t.pendingProps,b=e!==null?e.memoizedProps:null,r=h.children,So(o,h)?r=null:b!==null&&So(o,b)&&(t.flags|=32),t.memoizedState!==null&&(o=bs(e,t,Tx,null,null,l),ka._currentValue=o),Cr(e,t),yt(e,t,r,l),t.child;case 6:return e===null&&Re&&((e=l=We)&&(l=hy(l,t.pendingProps,Pt),l!==null?(t.stateNode=l,gt=t,We=null,e=!0):e=!1),e||Fn(t)),null;case 13:return ud(e,t,l);case 4:return Ve(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=jl(t,null,r,l):yt(e,t,r,l),t.child;case 11:return Wh(e,t,t.type,t.pendingProps,l);case 7:return yt(e,t,t.pendingProps,l),t.child;case 8:return yt(e,t,t.pendingProps.children,l),t.child;case 12:return yt(e,t,t.pendingProps.children,l),t.child;case 10:return r=t.pendingProps,Zn(t,t.type,r.value),yt(e,t,r.children,l),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,El(t),o=xt(o),r=r(o),t.flags|=1,yt(e,t,r,l),t.child;case 14:return Ph(e,t,t.type,t.pendingProps,l);case 15:return ed(e,t,t.type,t.pendingProps,l);case 19:return od(e,t,l);case 31:return Dx(e,t,l);case 22:return td(e,t,l,t.pendingProps);case 24:return El(t),r=xt(rt),e===null?(o=os(),o===null&&(o=Ke,h=us(),o.pooledCache=h,h.refCount++,h!==null&&(o.pooledCacheLanes|=l),o=h),t.memoizedState={parent:r,cache:o},fs(t),Zn(t,rt,o)):((e.lanes&l)!==0&&(hs(e,t),la(t,null,null,l),na()),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),Zn(t,rt,r)):(r=h.cache,Zn(t,rt,r),r!==o.cache&&rs(t,[rt],l,!0))),yt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Cn(e){e.flags|=4}function Zs(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(Ud())e.flags|=8192;else throw Nl=hr,cs}else e.flags&=-16777217}function fd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Tm(t))if(Ud())e.flags|=8192;else throw Nl=hr,cs}function jr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xc():536870912,e.lanes|=t,pi|=t)}function oa(e,t){if(!Re)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 Pe(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 Lx(e,t,l){var r=t.pendingProps;switch(ts(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return Pe(t),null;case 3:return l=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),kn(rt),Ue(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ni(t)?Cn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ls())),Pe(t),null;case 26:var o=t.type,h=t.memoizedState;return e===null?(Cn(t),h!==null?(Pe(t),fd(t,h)):(Pe(t),Zs(t,o,null,r,l))):h?h!==e.memoizedState?(Cn(t),Pe(t),fd(t,h)):(Pe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Cn(t),Pe(t),Zs(t,o,e,r,l)),null;case 27:if(kt(t),l=oe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Cn(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return Pe(t),null}e=K.current,ni(t)?Gf(t):(e=ym(o,r,l),t.stateNode=e,Cn(t))}return Pe(t),null;case 5:if(kt(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Cn(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return Pe(t),null}if(h=K.current,ni(t))Gf(t);else{var b=Gr(oe.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[pt]=t,h[Ct]=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(bt(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&&Cn(t)}}return Pe(t),Zs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Cn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(u(166));if(e=oe.current,ni(t)){if(e=t.stateNode,l=t.memoizedProps,r=null,o=gt,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[pt]=t,e=!!(e.nodeValue===l||r!==null&&r.suppressHydrationWarning===!0||um(e.nodeValue,l)),e||Fn(t,!0)}else e=Gr(e).createTextNode(r),e[pt]=t,t.stateNode=e}return Pe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(r=ni(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[pt]=t}else kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),e=!1}else l=ls(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(qt(t),t):(qt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Pe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ni(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[pt]=t}else kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),o=!1}else o=ls(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(qt(t),t):(qt(t),null)}return qt(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),jr(t,t.updateQueue),Pe(t),null);case 4:return Ue(),e===null&&go(t.stateNode.containerInfo),Pe(t),null;case 10:return kn(t.type),Pe(t),null;case 19:if(V(it),r=t.memoizedState,r===null)return Pe(t),null;if(o=(t.flags&128)!==0,h=r.rendering,h===null)if(o)oa(r,!1);else{if(nt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=gr(e),h!==null){for(t.flags|=128,oa(r,!1),e=h.updateQueue,t.updateQueue=e,jr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Hf(l,e),l=l.sibling;return k(it,it.current&1|2),Re&&Sn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&mt()>Dr&&(t.flags|=128,o=!0,oa(r,!1),t.lanes=4194304)}else{if(!o)if(e=gr(h),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,jr(t,e),oa(r,!0),r.tail===null&&r.tailMode==="hidden"&&!h.alternate&&!Re)return Pe(t),null}else 2*mt()-r.renderingStartTime>Dr&&l!==536870912&&(t.flags|=128,o=!0,oa(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=mt(),e.sibling=null,l=it.current,k(it,o?l&1|2:l&1),Re&&Sn(t,r.treeForkCount),e):(Pe(t),null);case 22:case 23:return qt(t),gs(),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&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),l=t.updateQueue,l!==null&&jr(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&&V(Tl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),kn(rt),Pe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Ux(e,t){switch(ts(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kn(rt),Ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return kt(t),null;case 31:if(t.memoizedState!==null){if(qt(t),t.alternate===null)throw Error(u(340));kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(it),null;case 4:return Ue(),null;case 10:return kn(t.type),null;case 22:case 23:return qt(t),gs(),e!==null&&V(Tl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return kn(rt),null;case 25:return null;default:return null}}function hd(e,t){switch(ts(t),t.tag){case 3:kn(rt),Ue();break;case 26:case 27:case 5:kt(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&qt(t);break;case 13:qt(t);break;case 19:V(it);break;case 10:kn(t.type);break;case 22:case 23:qt(t),gs(),e!==null&&V(Tl);break;case 24:kn(rt)}}function ca(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){Ge(t,t.return,z)}}function Pn(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,R=z;try{R()}catch(X){Ge(o,T,X)}}}r=r.next}while(r!==h)}}catch(X){Ge(t,t.return,X)}}function dd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{lh(t,l)}catch(r){Ge(e,e.return,r)}}}function md(e,t,l){l.props=Ml(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(r){Ge(e,t,r)}}function fa(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){Ge(e,t,o)}}function dn(e,t){var l=e.ref,r=e.refCleanup;if(l!==null)if(typeof r=="function")try{r()}catch(o){Ge(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){Ge(e,t,o)}else l.current=null}function pd(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){Ge(e,e.return,o)}}function Js(e,t,l){try{var r=e.stateNode;ay(r,e.type,l,t),r[Ct]=t}catch(o){Ge(e,e.return,o)}}function gd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&rl(e.type)||e.tag===4}function Ks(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gd(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&&rl(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 Is(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=yn));else if(r!==4&&(r===27&&rl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Is(e,t,l),e=e.sibling;e!==null;)Is(e,t,l),e=e.sibling}function Ar(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&&rl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ar(e,t,l),e=e.sibling;e!==null;)Ar(e,t,l),e=e.sibling}function xd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);bt(t,r,l),t[pt]=e,t[Ct]=l}catch(h){Ge(e,e.return,h)}}var Nn=!1,ot=!1,$s=!1,yd=typeof WeakSet=="function"?WeakSet:Set,dt=null;function Bx(e,t){if(e=e.containerInfo,bo=$r,e=Af(e),Gu(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,R=0,X=0,J=e,B=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;)B=J,J=Y;for(;;){if(J===e)break t;if(B===l&&++R===o&&(z=b),B===h&&++X===r&&(T=b),(Y=J.nextSibling)!==null)break;J=B,B=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(vo={focusedElem:e,selectionRange:l},$r=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){switch(t=dt,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 fe=Ml(l.type,o);e=r.getSnapshotBeforeUpdate(fe,h),r.__reactInternalSnapshotBeforeUpdate=e}catch(xe){Ge(l,l.return,xe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)ko(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ko(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,dt=e;break}dt=t.return}}function bd(e,t,l){var r=l.flags;switch(l.tag){case 0:case 11:case 15:An(e,l),r&4&&ca(5,l);break;case 1:if(An(e,l),r&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(b){Ge(l,l.return,b)}else{var o=Ml(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Ge(l,l.return,b)}}r&64&&dd(l),r&512&&fa(l,l.return);break;case 3:if(An(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{lh(e,t)}catch(b){Ge(l,l.return,b)}}break;case 27:t===null&&r&4&&xd(l);case 26:case 5:An(e,l),t===null&&r&4&&pd(l),r&512&&fa(l,l.return);break;case 12:An(e,l);break;case 31:An(e,l),r&4&&zd(e,l);break;case 13:An(e,l),r&4&&kd(e,l),r&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Zx.bind(null,l),dy(e,l))));break;case 22:if(r=l.memoizedState!==null||Nn,!r){t=t!==null&&t.memoizedState!==null||ot,o=Nn;var h=ot;Nn=r,(ot=t)&&!h?Mn(e,l,(l.subtreeFlags&8772)!==0):An(e,l),Nn=o,ot=h}break;case 30:break;default:An(e,l)}}function vd(e){var t=e.alternate;t!==null&&(e.alternate=null,vd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cu(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 et=null,jt=!1;function jn(e,t,l){for(l=l.child;l!==null;)Sd(e,t,l),l=l.sibling}function Sd(e,t,l){if(Ce&&typeof Ce.onCommitFiberUnmount=="function")try{Ce.onCommitFiberUnmount(Te,l)}catch{}switch(l.tag){case 26:ot||dn(l,t),jn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ot||dn(l,t);var r=et,o=jt;rl(l.type)&&(et=l.stateNode,jt=!1),jn(e,t,l),va(l.stateNode),et=r,jt=o;break;case 5:ot||dn(l,t);case 6:if(r=et,o=jt,et=null,jn(e,t,l),et=r,jt=o,et!==null)if(jt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(l.stateNode)}catch(h){Ge(l,t,h)}else try{et.removeChild(l.stateNode)}catch(h){Ge(l,t,h)}break;case 18:et!==null&&(jt?(e=et,dm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ki(e)):dm(et,l.stateNode));break;case 4:r=et,o=jt,et=l.stateNode.containerInfo,jt=!0,jn(e,t,l),et=r,jt=o;break;case 0:case 11:case 14:case 15:Pn(2,l,t),ot||Pn(4,l,t),jn(e,t,l);break;case 1:ot||(dn(l,t),r=l.stateNode,typeof r.componentWillUnmount=="function"&&md(l,t,r)),jn(e,t,l);break;case 21:jn(e,t,l);break;case 22:ot=(r=ot)||l.memoizedState!==null,jn(e,t,l),ot=r;break;default:jn(e,t,l)}}function zd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ki(e)}catch(l){Ge(t,t.return,l)}}}function kd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ki(e)}catch(l){Ge(t,t.return,l)}}function Hx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new yd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new yd),t;default:throw Error(u(435,e.tag))}}function Mr(e,t){var l=Hx(e);t.forEach(function(r){if(!l.has(r)){l.add(r);var o=Jx.bind(null,e,r);r.then(o,o)}})}function At(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(rl(z.type)){et=z.stateNode,jt=!1;break e}break;case 5:et=z.stateNode,jt=!1;break e;case 3:case 4:et=z.stateNode.containerInfo,jt=!0;break e}z=z.return}if(et===null)throw Error(u(160));Sd(h,b,o),et=null,jt=!1,h=o.alternate,h!==null&&(h.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wd(t,e),t=t.sibling}var sn=null;function wd(e,t){var l=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:At(t,e),Mt(e),r&4&&(Pn(3,e,e.return),ca(3,e),Pn(5,e,e.return));break;case 1:At(t,e),Mt(e),r&512&&(ot||l===null||dn(l,l.return)),r&64&&Nn&&(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=sn;if(At(t,e),Mt(e),r&512&&(ot||l===null||dn(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[Bi]||h[pt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=o.createElement(r),o.head.insertBefore(h,o.querySelector("head > title"))),bt(h,r,l),h[pt]=e,ht(h),r=h;break e;case"link":var b=wm("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),bt(h,r,l),o.head.appendChild(h);break;case"meta":if(b=wm("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),bt(h,r,l),o.head.appendChild(h);break;default:throw Error(u(468,r))}h[pt]=e,ht(h),r=h}e.stateNode=r}else Em(o,e.type,e.stateNode);else e.stateNode=km(o,r,e.memoizedProps);else h!==r?(h===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):h.count--,r===null?Em(o,e.type,e.stateNode):km(o,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Js(e,e.memoizedProps,l.memoizedProps)}break;case 27:At(t,e),Mt(e),r&512&&(ot||l===null||dn(l,l.return)),l!==null&&r&4&&Js(e,e.memoizedProps,l.memoizedProps);break;case 5:if(At(t,e),Mt(e),r&512&&(ot||l===null||dn(l,l.return)),e.flags&32){o=e.stateNode;try{Fl(o,"")}catch(fe){Ge(e,e.return,fe)}}r&4&&e.stateNode!=null&&(o=e.memoizedProps,Js(e,o,l!==null?l.memoizedProps:o)),r&1024&&($s=!0);break;case 6:if(At(t,e),Mt(e),r&4){if(e.stateNode===null)throw Error(u(162));r=e.memoizedProps,l=e.stateNode;try{l.nodeValue=r}catch(fe){Ge(e,e.return,fe)}}break;case 3:if(Zr=null,o=sn,sn=Qr(t.containerInfo),At(t,e),sn=o,Mt(e),r&4&&l!==null&&l.memoizedState.isDehydrated)try{ki(t.containerInfo)}catch(fe){Ge(e,e.return,fe)}$s&&($s=!1,Ed(e));break;case 4:r=sn,sn=Qr(e.stateNode.containerInfo),At(t,e),Mt(e),sn=r;break;case 12:At(t,e),Mt(e);break;case 31:At(t,e),Mt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Mr(e,r)));break;case 13:At(t,e),Mt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Or=mt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Mr(e,r)));break;case 22:o=e.memoizedState!==null;var T=l!==null&&l.memoizedState!==null,R=Nn,X=ot;if(Nn=R||o,ot=X||T,At(t,e),ot=X,Nn=R,Mt(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(l===null||T||Nn||ot||_l(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,B=J!=null&&J.hasOwnProperty("display")?J.display:null;z.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(fe){Ge(T,T.return,fe)}}}else if(t.tag===6){if(l===null){T=t;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(fe){Ge(T,T.return,fe)}}}else if(t.tag===18){if(l===null){T=t;try{var Y=T.stateNode;o?mm(Y,!0):mm(T.stateNode,!1)}catch(fe){Ge(T,T.return,fe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;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,Mr(e,l))));break;case 19:At(t,e),Mt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Mr(e,r)));break;case 30:break;case 21:break;default:At(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{for(var l,r=e.return;r!==null;){if(gd(r)){l=r;break}r=r.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var o=l.stateNode,h=Ks(e);Ar(e,h,o);break;case 5:var b=l.stateNode;l.flags&32&&(Fl(b,""),l.flags&=-33);var z=Ks(e);Ar(e,z,b);break;case 3:case 4:var T=l.stateNode.containerInfo,R=Ks(e);Is(e,R,T);break;default:throw Error(u(161))}}catch(X){Ge(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ed(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ed(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function An(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bd(e,t.alternate,t),t=t.sibling}function _l(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Pn(4,t,t.return),_l(t);break;case 1:dn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&md(t,t.return,l),_l(t);break;case 27:va(t.stateNode);case 26:case 5:dn(t,t.return),_l(t);break;case 22:t.memoizedState===null&&_l(t);break;case 30:_l(t);break;default:_l(t)}e=e.sibling}}function Mn(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:Mn(o,h,l),ca(4,h);break;case 1:if(Mn(o,h,l),r=h,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(R){Ge(r,r.return,R)}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++)nh(T[o],z)}catch(R){Ge(r,r.return,R)}}l&&b&64&&dd(h),fa(h,h.return);break;case 27:xd(h);case 26:case 5:Mn(o,h,l),l&&r===null&&b&4&&pd(h),fa(h,h.return);break;case 12:Mn(o,h,l);break;case 31:Mn(o,h,l),l&&b&4&&zd(o,h);break;case 13:Mn(o,h,l),l&&b&4&&kd(o,h);break;case 22:h.memoizedState===null&&Mn(o,h,l),fa(h,h.return);break;case 30:break;default:Mn(o,h,l)}t=t.sibling}}function Ws(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&&$i(l))}function Ps(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$i(e))}function on(e,t,l,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Td(e,t,l,r),t=t.sibling}function Td(e,t,l,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:on(e,t,l,r),o&2048&&ca(9,t);break;case 1:on(e,t,l,r);break;case 3:on(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&&$i(e)));break;case 12:if(o&2048){on(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){Ge(t,t.return,T)}}else on(e,t,l,r);break;case 31:on(e,t,l,r);break;case 13:on(e,t,l,r);break;case 23:break;case 22:h=t.stateNode,b=t.alternate,t.memoizedState!==null?h._visibility&2?on(e,t,l,r):ha(e,t):h._visibility&2?on(e,t,l,r):(h._visibility|=2,hi(e,t,l,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Ws(b,t);break;case 24:on(e,t,l,r),o&2048&&Ps(t.alternate,t);break;default:on(e,t,l,r)}}function hi(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,R=b.flags;switch(b.tag){case 0:case 11:case 15:hi(h,b,z,T,o),ca(8,b);break;case 23:break;case 22:var X=b.stateNode;b.memoizedState!==null?X._visibility&2?hi(h,b,z,T,o):ha(h,b):(X._visibility|=2,hi(h,b,z,T,o)),o&&R&2048&&Ws(b.alternate,b);break;case 24:hi(h,b,z,T,o),o&&R&2048&&Ps(b.alternate,b);break;default:hi(h,b,z,T,o)}t=t.sibling}}function ha(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:ha(l,r),o&2048&&Ws(r.alternate,r);break;case 24:ha(l,r),o&2048&&Ps(r.alternate,r);break;default:ha(l,r)}t=t.sibling}}var da=8192;function di(e,t,l){if(e.subtreeFlags&da)for(e=e.child;e!==null;)Cd(e,t,l),e=e.sibling}function Cd(e,t,l){switch(e.tag){case 26:di(e,t,l),e.flags&da&&e.memoizedState!==null&&Ey(l,sn,e.memoizedState,e.memoizedProps);break;case 5:di(e,t,l);break;case 3:case 4:var r=sn;sn=Qr(e.stateNode.containerInfo),di(e,t,l),sn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=da,da=16777216,di(e,t,l),da=r):di(e,t,l));break;default:di(e,t,l)}}function Nd(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 ma(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];dt=r,Ad(r,e)}Nd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jd(e),e=e.sibling}function jd(e){switch(e.tag){case 0:case 11:case 15:ma(e),e.flags&2048&&Pn(9,e,e.return);break;case 3:ma(e);break;case 12:ma(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,_r(e)):ma(e);break;default:ma(e)}}function _r(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];dt=r,Ad(r,e)}Nd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Pn(8,t,t.return),_r(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,_r(t));break;default:_r(t)}e=e.sibling}}function Ad(e,t){for(;dt!==null;){var l=dt;switch(l.tag){case 0:case 11:case 15:Pn(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:$i(l.memoizedState.cache)}if(r=l.child,r!==null)r.return=l,dt=r;else e:for(l=e;dt!==null;){r=dt;var o=r.sibling,h=r.return;if(vd(r),r===l){dt=null;break e}if(o!==null){o.return=h,dt=o;break e}dt=h}}}var qx={getCacheForType:function(e){var t=xt(rt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return xt(rt).controller.signal}},Yx=typeof WeakMap=="function"?WeakMap:Map,Ye=0,Ke=null,Ne=null,_e=0,Xe=0,Yt=null,el=!1,mi=!1,eo=!1,_n=0,nt=0,tl=0,Ol=0,to=0,Vt=0,pi=0,pa=null,_t=null,no=!1,Or=0,Md=0,Dr=1/0,Rr=null,nl=null,ft=0,ll=null,gi=null,On=0,lo=0,io=null,_d=null,ga=0,ao=null;function Xt(){return(Ye&2)!==0&&_e!==0?_e&-_e:_.T!==null?fo():Zc()}function Od(){if(Vt===0)if((_e&536870912)===0||Re){var e=Xa;Xa<<=1,(Xa&3932160)===0&&(Xa=262144),Vt=e}else Vt=536870912;return e=Ht.current,e!==null&&(e.flags|=32),Vt}function Ot(e,t,l){(e===Ke&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)&&(xi(e,0),il(e,_e,Vt,!1)),Ui(e,l),((Ye&2)===0||e!==Ke)&&(e===Ke&&((Ye&2)===0&&(Ol|=l),nt===4&&il(e,_e,Vt,!1)),mn(e))}function Dd(e,t,l){if((Ye&6)!==0)throw Error(u(327));var r=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Li(e,t),o=r?Gx(e,t):uo(e,t,!0),h=r;do{if(o===0){mi&&!r&&il(e,t,0,!1);break}else{if(l=e.current.alternate,h&&!Vx(l)){o=uo(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=pa;var T=z.current.memoizedState.isDehydrated;if(T&&(xi(z,b).flags|=256),b=uo(z,b,!1),b!==2){if(eo&&!T){z.errorRecoveryDisabledLanes|=h,Ol|=h,o=4;break e}h=_t,_t=o,h!==null&&(_t===null?_t=h:_t.push.apply(_t,h))}o=b}if(h=!1,o!==2)continue}}if(o===1){xi(e,0),il(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:il(r,t,Vt,!el);break e;case 2:_t=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=Or+300-mt(),10<o)){if(il(r,t,Vt,!el),Qa(r,0,!0)!==0)break e;On=t,r.timeoutHandle=fm(Rd.bind(null,r,l,_t,Rr,no,t,Vt,Ol,pi,el,h,"Throttled",-0,0),o);break e}Rd(r,l,_t,Rr,no,t,Vt,Ol,pi,el,h,null,-0,0)}}break}while(!0);mn(e)}function Rd(e,t,l,r,o,h,b,z,T,R,X,J,B,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:yn},Cd(t,h,J);var fe=(h&62914560)===h?Or-mt():(h&4194048)===h?Md-mt():0;if(fe=Ty(J,fe),fe!==null){On=h,e.cancelPendingCommit=fe(Xd.bind(null,e,t,h,l,r,o,b,z,T,X,J,null,B,Y)),il(e,h,b,!R);return}}Xd(e,t,h,l,r,o,b,z,T)}function Vx(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(!Ut(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 il(e,t,l,r){t&=~to,t&=~Ol,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var h=31-De(o),b=1<<h;r[h]=-1,o&=~b}l!==0&&Gc(e,l,t)}function Lr(){return(Ye&6)===0?(xa(0),!1):!0}function ro(){if(Ne!==null){if(Xe===0)var e=Ne.return;else e=Ne,zn=wl=null,zs(e),ui=null,Pi=0,e=Ne;for(;e!==null;)hd(e.alternate,e),e=e.return;Ne=null}}function xi(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,sy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),On=0,ro(),Ke=e,Ne=l=vn(e.current,null),_e=t,Xe=0,Yt=null,el=!1,mi=Li(e,t),eo=!1,pi=Vt=to=Ol=tl=nt=0,_t=pa=null,no=!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-De(r),h=1<<o;t|=e[o],r&=~h}return _n=t,lr(),l}function Ld(e,t){ke=null,_.H=ua,t===ri||t===fr?(t=Wf(),Xe=3):t===cs?(t=Wf(),Xe=4):Xe=t===Bs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Yt=t,Ne===null&&(nt=1,Er(e,It(t,e.current)))}function Ud(){var e=Ht.current;return e===null?!0:(_e&4194048)===_e?en===null:(_e&62914560)===_e||(_e&536870912)!==0?e===en:!1}function Bd(){var e=_.H;return _.H=ua,e===null?ua:e}function Hd(){var e=_.A;return _.A=qx,e}function Ur(){nt=4,el||(_e&4194048)!==_e&&Ht.current!==null||(mi=!0),(tl&134217727)===0&&(Ol&134217727)===0||Ke===null||il(Ke,_e,Vt,!1)}function uo(e,t,l){var r=Ye;Ye|=2;var o=Bd(),h=Hd();(Ke!==e||_e!==t)&&(Rr=null,xi(e,t)),t=!1;var b=nt;e:do try{if(Xe!==0&&Ne!==null){var z=Ne,T=Yt;switch(Xe){case 8:ro(),b=6;break e;case 3:case 2:case 9:case 6:Ht.current===null&&(t=!0);var R=Xe;if(Xe=0,Yt=null,yi(e,z,T,R),l&&mi){b=0;break e}break;default:R=Xe,Xe=0,Yt=null,yi(e,z,T,R)}}Xx(),b=nt;break}catch(X){Ld(e,X)}while(!0);return t&&e.shellSuspendCounter++,zn=wl=null,Ye=r,_.H=o,_.A=h,Ne===null&&(Ke=null,_e=0,lr()),b}function Xx(){for(;Ne!==null;)qd(Ne)}function Gx(e,t){var l=Ye;Ye|=2;var r=Bd(),o=Hd();Ke!==e||_e!==t?(Rr=null,Dr=mt()+500,xi(e,t)):mi=Li(e,t);e:do try{if(Xe!==0&&Ne!==null){t=Ne;var h=Yt;t:switch(Xe){case 1:Xe=0,Yt=null,yi(e,t,h,1);break;case 2:case 9:if(If(h)){Xe=0,Yt=null,Yd(t);break}t=function(){Xe!==2&&Xe!==9||Ke!==e||(Xe=7),mn(e)},h.then(t,t);break e;case 3:Xe=7;break e;case 4:Xe=5;break e;case 7:If(h)?(Xe=0,Yt=null,Yd(t)):(Xe=0,Yt=null,yi(e,t,h,7));break;case 5:var b=null;switch(Ne.tag){case 26:b=Ne.memoizedState;case 5:case 27:var z=Ne;if(b?Tm(b):z.stateNode.complete){Xe=0,Yt=null;var T=z.sibling;if(T!==null)Ne=T;else{var R=z.return;R!==null?(Ne=R,Br(R)):Ne=null}break t}}Xe=0,Yt=null,yi(e,t,h,5);break;case 6:Xe=0,Yt=null,yi(e,t,h,6);break;case 8:ro(),nt=6;break e;default:throw Error(u(462))}}Qx();break}catch(X){Ld(e,X)}while(!0);return zn=wl=null,_.H=r,_.A=o,Ye=l,Ne!==null?0:(Ke=null,_e=0,lr(),nt)}function Qx(){for(;Ne!==null&&!Di();)qd(Ne)}function qd(e){var t=cd(e.alternate,e,_n);e.memoizedProps=e.pendingProps,t===null?Br(e):Ne=t}function Yd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=id(l,t,t.pendingProps,t.type,void 0,_e);break;case 11:t=id(l,t,t.pendingProps,t.type.render,t.ref,_e);break;case 5:zs(t);default:hd(l,t),t=Ne=Hf(t,_n),t=cd(l,t,_n)}e.memoizedProps=e.pendingProps,t===null?Br(e):Ne=t}function yi(e,t,l,r){zn=wl=null,zs(t),ui=null,Pi=0;var o=t.return;try{if(Ox(e,o,t,l,_e)){nt=1,Er(e,It(l,e.current)),Ne=null;return}}catch(h){if(o!==null)throw Ne=o,h;nt=1,Er(e,It(l,e.current)),Ne=null;return}t.flags&32768?(Re||r===1?e=!0:mi||(_e&536870912)!==0?e=!1:(el=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ht.current,r!==null&&r.tag===13&&(r.flags|=16384))),Vd(t,e)):Br(t)}function Br(e){var t=e;do{if((t.flags&32768)!==0){Vd(t,el);return}e=t.return;var l=Lx(t.alternate,t,_n);if(l!==null){Ne=l;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);nt===0&&(nt=5)}function Vd(e,t){do{var l=Ux(e.alternate,e);if(l!==null){l.flags&=32767,Ne=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=l}while(e!==null);nt=6,Ne=null}function Xd(e,t,l,r,o,h,b,z,T){e.cancelPendingCommit=null;do Hr();while(ft!==0);if((Ye&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(h=t.lanes|t.childLanes,h|=Ku,wg(e,l,h,b,z,T),e===Ke&&(Ne=Ke=null,_e=0),gi=t,ll=e,On=l,lo=h,io=o,_d=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Kx(ye,function(){return Jd(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=_.T,_.T=null,o=I.p,I.p=2,b=Ye,Ye|=4;try{Bx(e,t,l)}finally{Ye=b,I.p=o,_.T=r}}ft=1,Gd(),Qd(),Fd()}}function Gd(){if(ft===1){ft=0;var e=ll,t=gi,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null;var r=I.p;I.p=2;var o=Ye;Ye|=4;try{wd(t,e);var h=vo,b=Af(e.containerInfo),z=h.focusedElem,T=h.selectionRange;if(b!==z&&z&&z.ownerDocument&&jf(z.ownerDocument.documentElement,z)){if(T!==null&&Gu(z)){var R=T.start,X=T.end;if(X===void 0&&(X=R),"selectionStart"in z)z.selectionStart=R,z.selectionEnd=Math.min(X,z.value.length);else{var J=z.ownerDocument||document,B=J&&J.defaultView||window;if(B.getSelection){var Y=B.getSelection(),fe=z.textContent.length,xe=Math.min(T.start,fe),Ze=T.end===void 0?xe:Math.min(T.end,fe);!Y.extend&&xe>Ze&&(b=Ze,Ze=xe,xe=b);var M=Nf(z,xe),N=Nf(z,Ze);if(M&&N&&(Y.rangeCount!==1||Y.anchorNode!==M.node||Y.anchorOffset!==M.offset||Y.focusNode!==N.node||Y.focusOffset!==N.offset)){var D=J.createRange();D.setStart(M.node,M.offset),Y.removeAllRanges(),xe>Ze?(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 Z=J[z];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}$r=!!bo,vo=bo=null}finally{Ye=o,I.p=r,_.T=l}}e.current=t,ft=2}}function Qd(){if(ft===2){ft=0;var e=ll,t=gi,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=_.T,_.T=null;var r=I.p;I.p=2;var o=Ye;Ye|=4;try{bd(e,t.alternate,t)}finally{Ye=o,I.p=r,_.T=l}}ft=3}}function Fd(){if(ft===4||ft===3){ft=0,Yn();var e=ll,t=gi,l=On,r=_d;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ft=5:(ft=0,gi=ll=null,Zd(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(nl=null),Eu(l),t=t.stateNode,Ce&&typeof Ce.onCommitFiberRoot=="function")try{Ce.onCommitFiberRoot(Te,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=_.T,o=I.p,I.p=2,_.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{_.T=t,I.p=o}}(On&3)!==0&&Hr(),mn(e),o=e.pendingLanes,(l&261930)!==0&&(o&42)!==0?e===ao?ga++:(ga=0,ao=e):ga=0,xa(0)}}function Zd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$i(t)))}function Hr(){return Gd(),Qd(),Fd(),Jd()}function Jd(){if(ft!==5)return!1;var e=ll,t=lo;lo=0;var l=Eu(On),r=_.T,o=I.p;try{I.p=32>l?32:l,_.T=null,l=io,io=null;var h=ll,b=On;if(ft=0,gi=ll=null,On=0,(Ye&6)!==0)throw Error(u(331));var z=Ye;if(Ye|=4,jd(h.current),Td(h,h.current,b,l),Ye=z,xa(0,!1),Ce&&typeof Ce.onPostCommitFiberRoot=="function")try{Ce.onPostCommitFiberRoot(Te,h)}catch{}return!0}finally{I.p=o,_.T=r,Zd(e,t)}}function Kd(e,t,l){t=It(l,t),t=Us(e.stateNode,t,2),e=In(e,t,2),e!==null&&(Ui(e,2),mn(e))}function Ge(e,t,l){if(e.tag===3)Kd(e,e,l);else for(;t!==null;){if(t.tag===3){Kd(t,e,l);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(nl===null||!nl.has(r))){e=It(l,e),l=Ih(2),r=In(t,l,2),r!==null&&($h(l,r,t,e),Ui(r,2),mn(r));break}}t=t.return}}function so(e,t,l){var r=e.pingCache;if(r===null){r=e.pingCache=new Yx;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)||(eo=!0,o.add(l),e=Fx.bind(null,e,t,l),t.then(e,e))}function Fx(e,t,l){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ke===e&&(_e&l)===l&&(nt===4||nt===3&&(_e&62914560)===_e&&300>mt()-Or?(Ye&2)===0&&xi(e,0):to|=l,pi===_e&&(pi=0)),mn(e)}function Id(e,t){t===0&&(t=Xc()),e=Sl(e,t),e!==null&&(Ui(e,t),mn(e))}function Zx(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Id(e,l)}function Jx(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),Id(e,l)}function Kx(e,t){return qn(e,t)}var qr=null,bi=null,oo=!1,Yr=!1,co=!1,al=0;function mn(e){e!==bi&&e.next===null&&(bi===null?qr=bi=e:bi=bi.next=e),Yr=!0,oo||(oo=!0,$x())}function xa(e,t){if(!co&&Yr){co=!0;do for(var l=!1,r=qr;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-De(42|e)+1)-1,h&=o&~(b&~z),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(l=!0,em(r,h))}else h=_e,h=Qa(r,r===Ke?h:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(h&3)===0||Li(r,h)||(l=!0,em(r,h));r=r.next}while(l);co=!1}}function Ix(){$d()}function $d(){Yr=oo=!1;var e=0;al!==0&&uy()&&(e=al);for(var t=mt(),l=null,r=qr;r!==null;){var o=r.next,h=Wd(r,t);h===0?(r.next=null,l===null?qr=o:l.next=o,o===null&&(bi=l)):(l=r,(e!==0||(h&3)!==0)&&(Yr=!0)),r=o}ft!==0&&ft!==5||xa(e),al!==0&&(al=0)}function Wd(e,t){for(var l=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var b=31-De(h),z=1<<b,T=o[b];T===-1?((z&l)===0||(z&r)!==0)&&(o[b]=kg(z,t)):T<=t&&(e.expiredLanes|=z),h&=~z}if(t=Ke,l=_e,l=Qa(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,l===0||e===t&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&pl(r),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Li(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(r!==null&&pl(r),Eu(l)){case 2:case 8:l=ae;break;case 32:l=ye;break;case 268435456:l=P;break;default:l=ye}return r=Pd.bind(null,e),l=qn(l,r),e.callbackPriority=t,e.callbackNode=l,t}return r!==null&&r!==null&&pl(r),e.callbackPriority=2,e.callbackNode=null,2}function Pd(e,t){if(ft!==0&&ft!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Hr()&&e.callbackNode!==l)return null;var r=_e;return r=Qa(e,e===Ke?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Dd(e,r,t),Wd(e,mt()),e.callbackNode!=null&&e.callbackNode===l?Pd.bind(null,e):null)}function em(e,t){if(Hr())return null;Dd(e,t,!0)}function $x(){oy(function(){(Ye&6)!==0?qn(G,Ix):$d()})}function fo(){if(al===0){var e=ii;e===0&&(e=Va,Va<<=1,(Va&261888)===0&&(Va=256)),al=e}return al}function tm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ka(""+e)}function nm(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 Wx(e,t,l,r,o){if(t==="submit"&&l&&l.stateNode===o){var h=tm((o[Ct]||null).action),b=r.submitter;b&&(t=(t=b[Ct]||null)?tm(t.formAction):b.getAttribute("formAction"),t!==null&&(h=t,b=null));var z=new Pa("action","action",null,r,o);e.push({event:z,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(al!==0){var T=b?nm(o,b):new FormData(o);Ms(l,{pending:!0,data:T,method:o.method,action:h},null,T)}}else typeof h=="function"&&(z.preventDefault(),T=b?nm(o,b):new FormData(o),Ms(l,{pending:!0,data:T,method:o.method,action:h},h,T))},currentTarget:o}]})}}for(var ho=0;ho<Ju.length;ho++){var mo=Ju[ho],Px=mo.toLowerCase(),ey=mo[0].toUpperCase()+mo.slice(1);un(Px,"on"+ey)}un(Of,"onAnimationEnd"),un(Df,"onAnimationIteration"),un(Rf,"onAnimationStart"),un("dblclick","onDoubleClick"),un("focusin","onFocus"),un("focusout","onBlur"),un(gx,"onTransitionRun"),un(xx,"onTransitionStart"),un(yx,"onTransitionCancel"),un(Lf,"onTransitionEnd"),Gl("onMouseEnter",["mouseout","mouseover"]),Gl("onMouseLeave",["mouseout","mouseover"]),Gl("onPointerEnter",["pointerout","pointerover"]),Gl("onPointerLeave",["pointerout","pointerover"]),xl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xl("onBeforeInput",["compositionend","keypress","textInput","paste"]),xl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ya="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(" "),ty=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ya));function lm(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,R=z.currentTarget;if(z=z.listener,T!==h&&o.isPropagationStopped())break e;h=z,o.currentTarget=R;try{h(o)}catch(X){nr(X)}o.currentTarget=null,h=T}else for(b=0;b<r.length;b++){if(z=r[b],T=z.instance,R=z.currentTarget,z=z.listener,T!==h&&o.isPropagationStopped())break e;h=z,o.currentTarget=R;try{h(o)}catch(X){nr(X)}o.currentTarget=null,h=T}}}}function je(e,t){var l=t[Tu];l===void 0&&(l=t[Tu]=new Set);var r=e+"__bubble";l.has(r)||(im(t,e,2,!1),l.add(r))}function po(e,t,l){var r=0;t&&(r|=4),im(l,e,r,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function go(e){if(!e[Vr]){e[Vr]=!0,Ic.forEach(function(l){l!=="selectionchange"&&(ty.has(l)||po(l,!1,e),po(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Vr]||(t[Vr]=!0,po("selectionchange",!1,t))}}function im(e,t,l,r){switch(Om(t)){case 2:var o=jy;break;case 8:o=Ay;break;default:o=Mo}l=o.bind(null,t,l,e),o=void 0,!Ru||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 xo(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=Yl(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}of(function(){var R=h,X=Ou(l),J=[];e:{var B=Uf.get(e);if(B!==void 0){var Y=Pa,fe=e;switch(e){case"keypress":if($a(l)===0)break e;case"keydown":case"keyup":Y=Jg;break;case"focusin":fe="focus",Y=Hu;break;case"focusout":fe="blur",Y=Hu;break;case"beforeblur":case"afterblur":Y=Hu;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=hf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=Lg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=$g;break;case Of:case Df:case Rf:Y=Hg;break;case Lf:Y=Pg;break;case"scroll":case"scrollend":Y=Dg;break;case"wheel":Y=tx;break;case"copy":case"cut":case"paste":Y=Yg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=mf;break;case"toggle":case"beforetoggle":Y=lx}var xe=(t&4)!==0,Ze=!xe&&(e==="scroll"||e==="scrollend"),M=xe?B!==null?B+"Capture":null:B;xe=[];for(var N=R,D;N!==null;){var Z=N;if(D=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||D===null||M===null||(Z=qi(N,M),Z!=null&&xe.push(ba(N,Z,D))),Ze)break;N=N.return}0<xe.length&&(B=new Y(B,fe,null,l,X),J.push({event:B,listeners:xe}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",B&&l!==_u&&(fe=l.relatedTarget||l.fromElement)&&(Yl(fe)||fe[ql]))break e;if((Y||B)&&(B=X.window===X?X:(B=X.ownerDocument)?B.defaultView||B.parentWindow:window,Y?(fe=l.relatedTarget||l.toElement,Y=R,fe=fe?Yl(fe):null,fe!==null&&(Ze=c(fe),xe=fe.tag,fe!==Ze||xe!==5&&xe!==27&&xe!==6)&&(fe=null)):(Y=null,fe=R),Y!==fe)){if(xe=hf,Z="onMouseLeave",M="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(xe=mf,Z="onPointerLeave",M="onPointerEnter",N="pointer"),Ze=Y==null?B:Hi(Y),D=fe==null?B:Hi(fe),B=new xe(Z,N+"leave",Y,l,X),B.target=Ze,B.relatedTarget=D,Z=null,Yl(X)===R&&(xe=new xe(M,N+"enter",fe,l,X),xe.target=D,xe.relatedTarget=Ze,Z=xe),Ze=Z,Y&&fe)t:{for(xe=ny,M=Y,N=fe,D=0,Z=M;Z;Z=xe(Z))D++;Z=0;for(var pe=N;pe;pe=xe(pe))Z++;for(;0<D-Z;)M=xe(M),D--;for(;0<Z-D;)N=xe(N),Z--;for(;D--;){if(M===N||N!==null&&M===N.alternate){xe=M;break t}M=xe(M),N=xe(N)}xe=null}else xe=null;Y!==null&&am(J,B,Y,xe,!1),fe!==null&&Ze!==null&&am(J,Ze,fe,xe,!0)}}e:{if(B=R?Hi(R):window,Y=B.nodeName&&B.nodeName.toLowerCase(),Y==="select"||Y==="input"&&B.type==="file")var He=zf;else if(vf(B))if(kf)He=dx;else{He=fx;var de=cx}else Y=B.nodeName,!Y||Y.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?R&&Mu(R.elementType)&&(He=zf):He=hx;if(He&&(He=He(e,R))){Sf(J,He,l,X);break e}de&&de(e,B,R),e==="focusout"&&R&&B.type==="number"&&R.memoizedProps.value!=null&&Au(B,"number",B.value)}switch(de=R?Hi(R):window,e){case"focusin":(vf(de)||de.contentEditable==="true")&&(Il=de,Qu=R,Ji=null);break;case"focusout":Ji=Qu=Il=null;break;case"mousedown":Fu=!0;break;case"contextmenu":case"mouseup":case"dragend":Fu=!1,Mf(J,l,X);break;case"selectionchange":if(px)break;case"keydown":case"keyup":Mf(J,l,X)}var we;if(Yu)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else Kl?yf(e,l)&&(Oe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Oe="onCompositionStart");Oe&&(pf&&l.locale!=="ko"&&(Kl||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Kl&&(we=cf()):(Xn=X,Lu="value"in Xn?Xn.value:Xn.textContent,Kl=!0)),de=Xr(R,Oe),0<de.length&&(Oe=new df(Oe,e,null,l,X),J.push({event:Oe,listeners:de}),we?Oe.data=we:(we=bf(l),we!==null&&(Oe.data=we)))),(we=ax?rx(e,l):ux(e,l))&&(Oe=Xr(R,"onBeforeInput"),0<Oe.length&&(de=new df("onBeforeInput","beforeinput",null,l,X),J.push({event:de,listeners:Oe}),de.data=we)),Wx(J,e,R,l,X)}lm(J,t)})}function ba(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Xr(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(ba(e,o,h)),o=qi(e,t),o!=null&&r.push(ba(e,o,h))),e.tag===3)return r;e=e.return}return[]}function ny(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function am(e,t,l,r,o){for(var h=t._reactName,b=[];l!==null&&l!==r;){var z=l,T=z.alternate,R=z.stateNode;if(z=z.tag,T!==null&&T===r)break;z!==5&&z!==26&&z!==27||R===null||(T=R,o?(R=qi(l,h),R!=null&&b.unshift(ba(l,R,T))):o||(R=qi(l,h),R!=null&&b.push(ba(l,R,T)))),l=l.return}b.length!==0&&e.push({event:t,listeners:b})}var ly=/\r\n?/g,iy=/\u0000|\uFFFD/g;function rm(e){return(typeof e=="string"?e:""+e).replace(ly,`
49
- `).replace(iy,"")}function um(e,t){return t=rm(t),rm(e)===t}function Fe(e,t,l,r,o,h){switch(l){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Fl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Fl(e,""+r);break;case"className":Za(e,"class",r);break;case"tabIndex":Za(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Za(e,l,r);break;case"style":uf(e,r,h);break;case"data":if(t!=="object"){Za(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=Ka(""+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"&&Fe(e,t,"name",o.name,o,null),Fe(e,t,"formEncType",o.formEncType,o,null),Fe(e,t,"formMethod",o.formMethod,o,null),Fe(e,t,"formTarget",o.formTarget,o,null)):(Fe(e,t,"encType",o.encType,o,null),Fe(e,t,"method",o.method,o,null),Fe(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(l);break}r=Ka(""+r),e.setAttribute(l,r);break;case"onClick":r!=null&&(e.onclick=yn);break;case"onScroll":r!=null&&je("scroll",e);break;case"onScrollEnd":r!=null&&je("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=Ka(""+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":je("beforetoggle",e),je("toggle",e),Fa(e,"popover",r);break;case"xlinkActuate":xn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":xn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":xn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":xn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":xn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":xn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":xn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":xn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":xn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Fa(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=_g.get(l)||l,Fa(e,l,r))}}function yo(e,t,l,r,o,h){switch(l){case"style":uf(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"?Fl(e,r):(typeof r=="number"||typeof r=="bigint")&&Fl(e,""+r);break;case"onScroll":r!=null&&je("scroll",e);break;case"onScrollEnd":r!=null&&je("scrollend",e);break;case"onClick":r!=null&&(e.onclick=yn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$c.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[Ct]||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,""):Fa(e,l,r)}}}function bt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("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:Fe(e,t,h,b,l,null)}}o&&Fe(e,t,"srcSet",l.srcSet,l,null),r&&Fe(e,t,"src",l.src,l,null);return;case"input":je("invalid",e);var z=h=b=o=null,T=null,R=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":R=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:Fe(e,t,r,X,l,null)}}nf(e,h,z,T,R,b,o,!1);return;case"select":je("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:Fe(e,t,o,z,l,null)}t=h,l=b,e.multiple=!!r,t!=null?Ql(e,!!r,t,!1):l!=null&&Ql(e,!!r,l,!0);return;case"textarea":je("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:Fe(e,t,b,z,l,null)}af(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:Fe(e,t,T,r,l,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(r=0;r<ya.length;r++)je(ya[r],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("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(R in l)if(l.hasOwnProperty(R)&&(r=l[R],r!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Fe(e,t,R,r,l,null)}return;default:if(Mu(t)){for(X in l)l.hasOwnProperty(X)&&(r=l[X],r!==void 0&&yo(e,t,X,r,l,void 0));return}}for(z in l)l.hasOwnProperty(z)&&(r=l[z],r!=null&&Fe(e,t,z,r,l,null))}function ay(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,R=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)||Fe(e,t,Y,null,r,J)}}for(var B in r){var Y=r[B];if(J=l[B],r.hasOwnProperty(B)&&(Y!=null||J!=null))switch(B){case"type":h=Y;break;case"name":o=Y;break;case"checked":R=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&&Fe(e,t,B,Y,r,J)}}ju(e,b,z,T,R,X,h,o);return;case"select":Y=b=z=B=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)||Fe(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":B=h;break;case"defaultValue":z=h;break;case"multiple":b=h;default:h!==T&&Fe(e,t,o,h,r,T)}t=z,l=b,r=Y,B!=null?Ql(e,!!l,B,!1):!!r!=!!l&&(t!=null?Ql(e,!!l,t,!0):Ql(e,!!l,l?[]:"",!1));return;case"textarea":Y=B=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:Fe(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":B=o;break;case"defaultValue":Y=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==h&&Fe(e,t,b,o,r,h)}lf(e,B,Y);return;case"option":for(var fe in l)if(B=l[fe],l.hasOwnProperty(fe)&&B!=null&&!r.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Fe(e,t,fe,null,r,B)}for(T in r)if(B=r[T],Y=l[T],r.hasOwnProperty(T)&&B!==Y&&(B!=null||Y!=null))switch(T){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Fe(e,t,T,B,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 xe in l)B=l[xe],l.hasOwnProperty(xe)&&B!=null&&!r.hasOwnProperty(xe)&&Fe(e,t,xe,null,r,B);for(R in r)if(B=r[R],Y=l[R],r.hasOwnProperty(R)&&B!==Y&&(B!=null||Y!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(u(137,t));break;default:Fe(e,t,R,B,r,Y)}return;default:if(Mu(t)){for(var Ze in l)B=l[Ze],l.hasOwnProperty(Ze)&&B!==void 0&&!r.hasOwnProperty(Ze)&&yo(e,t,Ze,void 0,r,B);for(X in r)B=r[X],Y=l[X],!r.hasOwnProperty(X)||B===Y||B===void 0&&Y===void 0||yo(e,t,X,B,r,Y);return}}for(var M in l)B=l[M],l.hasOwnProperty(M)&&B!=null&&!r.hasOwnProperty(M)&&Fe(e,t,M,null,r,B);for(J in r)B=r[J],Y=l[J],!r.hasOwnProperty(J)||B===Y||B==null&&Y==null||Fe(e,t,J,B,r,Y)}function sm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ry(){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&&sm(b)){for(b=0,z=o.responseEnd,r+=1;r<l.length;r++){var T=l[r],R=T.startTime;if(R>z)break;var X=T.transferSize,J=T.initiatorType;X&&sm(J)&&(T=T.responseEnd,b+=X*(T<z?1:(z-R)/(T-R)))}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 bo=null,vo=null;function Gr(e){return e.nodeType===9?e:e.ownerDocument}function om(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 cm(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 So(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 zo=null;function uy(){var e=window.event;return e&&e.type==="popstate"?e===zo?!1:(zo=e,!0):(zo=null,!1)}var fm=typeof setTimeout=="function"?setTimeout:void 0,sy=typeof clearTimeout=="function"?clearTimeout:void 0,hm=typeof Promise=="function"?Promise:void 0,oy=typeof queueMicrotask=="function"?queueMicrotask:typeof hm<"u"?function(e){return hm.resolve(null).then(e).catch(cy)}:fm;function cy(e){setTimeout(function(){throw e})}function rl(e){return e==="head"}function dm(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),ki(t);return}r--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")r++;else if(l==="html")va(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,va(l);for(var h=l.firstChild;h;){var b=h.nextSibling,z=h.nodeName;h[Bi]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&h.rel.toLowerCase()==="stylesheet"||l.removeChild(h),h=b}}else l==="body"&&va(e.ownerDocument.body);l=o}while(l);ki(t)}function mm(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 ko(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":ko(l),Cu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function fy(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[Bi])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=tn(e.nextSibling),e===null)break}return null}function hy(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=tn(e.nextSibling),e===null))return null;return e}function pm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=tn(e.nextSibling),e===null))return null;return e}function wo(e){return e.data==="$?"||e.data==="$~"}function Eo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function dy(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 tn(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 To=null;function gm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return tn(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function xm(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 ym(e,t,l){switch(t=Gr(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 va(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cu(e)}var nn=new Map,bm=new Set;function Qr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Dn=I.d;I.d={f:my,r:py,D:gy,C:xy,L:yy,m:by,X:Sy,S:vy,M:zy};function my(){var e=Dn.f(),t=Lr();return e||t}function py(e){var t=Vl(e);t!==null&&t.tag===5&&t.type==="form"?Lh(t):Dn.r(e)}var vi=typeof document>"u"?null:document;function vm(e,t,l){var r=vi;if(r&&typeof t=="string"&&t){var o=Jt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),bm.has(o)||(bm.add(o),e={rel:e,crossOrigin:l,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),bt(t,"link",e),ht(t),r.head.appendChild(t)))}}function gy(e){Dn.D(e),vm("dns-prefetch",e,null)}function xy(e,t){Dn.C(e,t),vm("preconnect",e,t)}function yy(e,t,l){Dn.L(e,t,l);var r=vi;if(r&&e&&t){var o='link[rel="preload"][as="'+Jt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+Jt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+Jt(l.imageSizes)+'"]')):o+='[href="'+Jt(e)+'"]';var h=o;switch(t){case"style":h=Si(e);break;case"script":h=zi(e)}nn.has(h)||(e=g({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),nn.set(h,e),r.querySelector(o)!==null||t==="style"&&r.querySelector(Sa(h))||t==="script"&&r.querySelector(za(h))||(t=r.createElement("link"),bt(t,"link",e),ht(t),r.head.appendChild(t)))}}function by(e,t){Dn.m(e,t);var l=vi;if(l&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Jt(r)+'"][href="'+Jt(e)+'"]',h=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=zi(e)}if(!nn.has(h)&&(e=g({rel:"modulepreload",href:e},t),nn.set(h,e),l.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(za(h)))return}r=l.createElement("link"),bt(r,"link",e),ht(r),l.head.appendChild(r)}}}function vy(e,t,l){Dn.S(e,t,l);var r=vi;if(r&&e){var o=Xl(r).hoistableStyles,h=Si(e);t=t||"default";var b=o.get(h);if(!b){var z={loading:0,preload:null};if(b=r.querySelector(Sa(h)))z.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},l),(l=nn.get(h))&&Co(e,l);var T=b=r.createElement("link");ht(T),bt(T,"link",e),T._p=new Promise(function(R,X){T.onload=R,T.onerror=X}),T.addEventListener("load",function(){z.loading|=1}),T.addEventListener("error",function(){z.loading|=2}),z.loading|=4,Fr(b,t,r)}b={type:"stylesheet",instance:b,count:1,state:z},o.set(h,b)}}}function Sy(e,t){Dn.X(e,t);var l=vi;if(l&&e){var r=Xl(l).hoistableScripts,o=zi(e),h=r.get(o);h||(h=l.querySelector(za(o)),h||(e=g({src:e,async:!0},t),(t=nn.get(o))&&No(e,t),h=l.createElement("script"),ht(h),bt(h,"link",e),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},r.set(o,h))}}function zy(e,t){Dn.M(e,t);var l=vi;if(l&&e){var r=Xl(l).hoistableScripts,o=zi(e),h=r.get(o);h||(h=l.querySelector(za(o)),h||(e=g({src:e,async:!0,type:"module"},t),(t=nn.get(o))&&No(e,t),h=l.createElement("script"),ht(h),bt(h,"link",e),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},r.set(o,h))}}function Sm(e,t,l,r){var o=(o=oe.current)?Qr(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=Si(l.href),l=Xl(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=Si(l.href);var h=Xl(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(Sa(e)))&&!h._p&&(b.instance=h,b.state.loading=5),nn.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},nn.set(e,l),h||ky(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=zi(l),l=Xl(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 Si(e){return'href="'+Jt(e)+'"'}function Sa(e){return'link[rel="stylesheet"]['+e+"]"}function zm(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function ky(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}),bt(t,"link",l),ht(t),e.head.appendChild(t))}function zi(e){return'[src="'+Jt(e)+'"]'}function za(e){return"script[async]"+e}function km(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Jt(l.href)+'"]');if(r)return t.instance=r,ht(r),r;var o=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),ht(r),bt(r,"style",o),Fr(r,l.precedence,e),t.instance=r;case"stylesheet":o=Si(l.href);var h=e.querySelector(Sa(o));if(h)return t.state.loading|=4,t.instance=h,ht(h),h;r=zm(l),(o=nn.get(o))&&Co(r,o),h=(e.ownerDocument||e).createElement("link"),ht(h);var b=h;return b._p=new Promise(function(z,T){b.onload=z,b.onerror=T}),bt(h,"link",r),t.state.loading|=4,Fr(h,l.precedence,e),t.instance=h;case"script":return h=zi(l.src),(o=e.querySelector(za(h)))?(t.instance=o,ht(o),o):(r=l,(o=nn.get(h))&&(r=g({},l),No(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),ht(o),bt(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,Fr(r,l.precedence,e));return t.instance}function Fr(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 Co(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function No(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Zr=null;function wm(e,t,l){if(Zr===null){var r=new Map,o=Zr=new Map;o.set(l,r)}else o=Zr,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[Bi]||h[pt]||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 Em(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function wy(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 Tm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ey(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=Si(r.href),h=t.querySelector(Sa(o));if(h){t=h._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Jr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=h,ht(h);return}h=t.ownerDocument||t,r=zm(r),(o=nn.get(o))&&Co(r,o),h=h.createElement("link"),ht(h);var b=h;b._p=new Promise(function(z,T){b.onload=z,b.onerror=T}),bt(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=Jr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var jo=0;function Ty(e,t){return e.stylesheets&&e.count===0&&Ir(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var r=setTimeout(function(){if(e.stylesheets&&Ir(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+t);0<e.imgBytes&&jo===0&&(jo=62500*ry());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ir(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>jo?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function Jr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ir(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Kr=null;function Ir(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Kr=new Map,t.forEach(Cy,e),Kr=null,Jr.call(e))}function Cy(e,t){if(!(t.state.loading&4)){var l=Kr.get(e);if(l)var r=l.get(null);else{l=new Map,Kr.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=Jr.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 ka={$$typeof:U,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function Ny(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=ku(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ku(0),this.hiddenUpdates=ku(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 Cm(e,t,l,r,o,h,b,z,T,R,X,J){return e=new Ny(e,t,l,b,T,R,X,J,z),t=1,h===!0&&(t|=24),h=Bt(3,null,null,t),e.current=h,h.stateNode=e,t=us(),t.refCount++,e.pooledCache=t,t.refCount++,h.memoizedState={element:r,isDehydrated:l,cache:t},fs(h),e}function Nm(e){return e?(e=Pl,e):Pl}function jm(e,t,l,r,o,h){o=Nm(o),r.context===null?r.context=o:r.pendingContext=o,r=Kn(t),r.payload={element:l},h=h===void 0?null:h,h!==null&&(r.callback=h),l=In(e,r,t),l!==null&&(Ot(l,e,t),ta(l,e,t))}function Am(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ao(e,t){Am(e,t),(e=e.alternate)&&Am(e,t)}function Mm(e){if(e.tag===13||e.tag===31){var t=Sl(e,67108864);t!==null&&Ot(t,e,67108864),Ao(e,67108864)}}function _m(e){if(e.tag===13||e.tag===31){var t=Xt();t=wu(t);var l=Sl(e,t);l!==null&&Ot(l,e,t),Ao(e,t)}}var $r=!0;function jy(e,t,l,r){var o=_.T;_.T=null;var h=I.p;try{I.p=2,Mo(e,t,l,r)}finally{I.p=h,_.T=o}}function Ay(e,t,l,r){var o=_.T;_.T=null;var h=I.p;try{I.p=8,Mo(e,t,l,r)}finally{I.p=h,_.T=o}}function Mo(e,t,l,r){if($r){var o=_o(r);if(o===null)xo(e,t,r,Wr,l),Dm(e,r);else if(_y(o,e,t,l,r))r.stopPropagation();else if(Dm(e,r),t&4&&-1<My.indexOf(e)){for(;o!==null;){var h=Vl(o);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=gl(h.pendingLanes);if(b!==0){var z=h;for(z.pendingLanes|=2,z.entangledLanes|=2;b;){var T=1<<31-De(b);z.entanglements[1]|=T,b&=~T}mn(h),(Ye&6)===0&&(Dr=mt()+500,xa(0))}}break;case 31:case 13:z=Sl(h,2),z!==null&&Ot(z,h,2),Lr(),Ao(h,2)}if(h=_o(r),h===null&&xo(e,t,r,Wr,l),h===o)break;o=h}o!==null&&r.stopPropagation()}else xo(e,t,r,null,l)}}function _o(e){return e=Ou(e),Oo(e)}var Wr=null;function Oo(e){if(Wr=null,e=Yl(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 Wr=e,null}function Om(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(Ri()){case G:return 2;case ae:return 8;case ye:case Q:return 32;case P:return 268435456;default:return 32}default:return 32}}var Do=!1,ul=null,sl=null,ol=null,wa=new Map,Ea=new Map,cl=[],My="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 Dm(e,t){switch(e){case"focusin":case"focusout":ul=null;break;case"dragenter":case"dragleave":sl=null;break;case"mouseover":case"mouseout":ol=null;break;case"pointerover":case"pointerout":wa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ea.delete(t.pointerId)}}function Ta(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=Vl(t),t!==null&&Mm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function _y(e,t,l,r,o){switch(t){case"focusin":return ul=Ta(ul,e,t,l,r,o),!0;case"dragenter":return sl=Ta(sl,e,t,l,r,o),!0;case"mouseover":return ol=Ta(ol,e,t,l,r,o),!0;case"pointerover":var h=o.pointerId;return wa.set(h,Ta(wa.get(h)||null,e,t,l,r,o)),!0;case"gotpointercapture":return h=o.pointerId,Ea.set(h,Ta(Ea.get(h)||null,e,t,l,r,o)),!0}return!1}function Rm(e){var t=Yl(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,Jc(e.priority,function(){_m(l)});return}}else if(t===31){if(t=d(l),t!==null){e.blockedOn=t,Jc(e.priority,function(){_m(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 Pr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=_o(e.nativeEvent);if(l===null){l=e.nativeEvent;var r=new l.constructor(l.type,l);_u=r,l.target.dispatchEvent(r),_u=null}else return t=Vl(l),t!==null&&Mm(t),e.blockedOn=l,!1;t.shift()}return!0}function Lm(e,t,l){Pr(e)&&l.delete(t)}function Oy(){Do=!1,ul!==null&&Pr(ul)&&(ul=null),sl!==null&&Pr(sl)&&(sl=null),ol!==null&&Pr(ol)&&(ol=null),wa.forEach(Lm),Ea.forEach(Lm)}function eu(e,t){e.blockedOn===t&&(e.blockedOn=null,Do||(Do=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Oy)))}var tu=null;function Um(e){tu!==e&&(tu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){tu===e&&(tu=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(Oo(r||l)===null)continue;break}var h=Vl(l);h!==null&&(e.splice(t,3),t-=3,Ms(h,{pending:!0,data:o,method:l.method,action:r},r,o))}}))}function ki(e){function t(T){return eu(T,e)}ul!==null&&eu(ul,e),sl!==null&&eu(sl,e),ol!==null&&eu(ol,e),wa.forEach(t),Ea.forEach(t);for(var l=0;l<cl.length;l++){var r=cl[l];r.blockedOn===e&&(r.blockedOn=null)}for(;0<cl.length&&(l=cl[0],l.blockedOn===null);)Rm(l),l.blockedOn===null&&cl.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[Ct]||null;if(typeof h=="function")b||Um(l);else if(b){var z=null;if(h&&h.hasAttribute("formAction")){if(o=h,b=h[Ct]||null)z=b.formAction;else if(Oo(o)!==null)continue}else z=b.action;typeof z=="function"?l[r+1]=z:(l.splice(r,3),r-=3),Um(l)}}}function Bm(){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 Ro(e){this._internalRoot=e}nu.prototype.render=Ro.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,r=Xt();jm(l,r,e,t,null,null)},nu.prototype.unmount=Ro.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jm(e.current,2,null,e,null,null),Lr(),t[ql]=null}};function nu(e){this._internalRoot=e}nu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<cl.length&&t!==0&&t<cl[l].priority;l++);cl.splice(l,0,e),l===0&&Rm(e)}};var Hm=a.version;if(Hm!=="19.2.4")throw Error(u(527,Hm,"19.2.4"));I.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?y(e):null,e=e===null?null:e.stateNode,e};var Dy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lu.isDisabled&&lu.supportsFiber)try{Te=lu.inject(Dy),Ce=lu}catch{}}return Na.createRoot=function(e,t){if(!s(e))throw Error(u(299));var l=!1,r="",o=Fh,h=Zh,b=Jh;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=Cm(e,1,!1,null,null,l,r,null,o,h,b,Bm),e[ql]=t.current,go(e),new Ro(t)},Na.hydrateRoot=function(e,t,l){if(!s(e))throw Error(u(299));var r=!1,o="",h=Fh,b=Zh,z=Jh,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=Cm(e,1,!0,t,l??null,r,o,T,h,b,z,Bm),t.context=Nm(null),l=t.current,r=Xt(),r=wu(r),o=Kn(r),o.callback=null,In(l,o,r),l=r,t.current.lanes=l,Ui(t,l),mn(t),e[ql]=t.current,go(e),new nu(t)},Na.version="19.2.4",Na}var Km;function Xy(){if(Km)return Bo.exports;Km=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(),Bo.exports=Vy(),Bo.exports}var Gy=Xy();/**
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 Qy=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fy=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,u)=>u?u.toUpperCase():i.toLowerCase()),Im=n=>{const a=Fy(n);return a.charAt(0).toUpperCase()+a.slice(1)},t0=(...n)=>n.filter((a,i,u)=>!!a&&a.trim()!==""&&u.indexOf(a)===i).join(" ").trim(),Zy=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 Jy={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 Ky=F.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:s="",children:c,iconNode:f,...d},p)=>F.createElement("svg",{ref:p,...Jy,width:a,height:a,stroke:n,strokeWidth:u?Number(i)*24/Number(a):i,className:t0("lucide",s),...!c&&!Zy(d)&&{"aria-hidden":"true"},...d},[...f.map(([m,y])=>F.createElement(m,y)),...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 Me=(n,a)=>{const i=F.forwardRef(({className:u,...s},c)=>F.createElement(Ky,{ref:c,iconNode:a,className:t0(`lucide-${Qy(Im(n))}`,`lucide-${n}`,u),...s}));return i.displayName=Im(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 Iy=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],$y=Me("arrow-right",Iy);/**
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 Wy=[["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"}]],n0=Me("bot",Wy);/**
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 Py=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],dl=Me("check",Py);/**
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 e1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],t1=Me("chevron-down",e1);/**
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 n1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],l0=Me("circle-check",n1);/**
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 l1=[["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"}]],i1=Me("circle-question-mark",l1);/**
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 a1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],r1=Me("circle",a1);/**
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 u1=[["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"}]],fu=Me("copy",u1);/**
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 s1=[["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"}]],o1=Me("database",s1);/**
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 c1=[["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"}]],Sc=Me("download",c1);/**
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 f1=[["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"}]],i0=Me("file-code",f1);/**
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 h1=[["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"}]],d1=Me("file-pen",h1);/**
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 m1=[["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"}]],a0=Me("file-plus-corner",m1);/**
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 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 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],zc=Me("file-text",p1);/**
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 g1=[["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"}]],kc=Me("folder-open",g1);/**
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 x1=[["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"}]],y1=Me("git-branch",x1);/**
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 b1=[["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"}]],v1=Me("globe",b1);/**
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 S1=[["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"}]],z1=Me("hard-drive",S1);/**
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 k1=[["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"}]],w1=Me("lightbulb",k1);/**
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 E1=[["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"}]],r0=Me("list-todo",E1);/**
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 T1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],u0=Me("loader-circle",T1);/**
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 C1=[["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"}]],N1=Me("message-square",C1);/**
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 j1=[["path",{d:"M5 12h14",key:"1ays0h"}]],A1=Me("minus",j1);/**
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 M1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],_1=Me("panel-left",M1);/**
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 O1=[["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"}]],D1=Me("pause",O1);/**
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 R1=[["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"}]],L1=Me("pencil",R1);/**
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 U1=[["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"}]],s0=Me("play",U1);/**
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 B1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],H1=Me("plus",B1);/**
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 q1=[["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"}]],Y1=Me("refresh-cw",q1);/**
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 V1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],La=Me("search",V1);/**
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 X1=[["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"}]],uc=Me("square-check-big",X1);/**
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 G1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],o0=Me("square",G1);/**
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 Q1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],c0=Me("terminal",Q1);/**
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 F1=[["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"}]],Z1=Me("trash-2",F1);/**
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 J1=[["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"}]],K1=Me("triangle-alert",J1);/**
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 I1=[["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"}]],$1=Me("wrench",I1);/**
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 W1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],gu=Me("x",W1);function f0(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 $m(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 wc(n){return n?n.replace(/^\/Users\/[^/]+/,"~").replace(/^\/home\/[^/]+/,"~"):""}const P1=[/<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 Rt(n){if(!n)return"";let a=n;for(const i of P1)a=a.replace(i,"");return a.trim()}var eb=e0();function wi(n,a,i){let u=i.initialDeps??[],s,c=!0;function f(){var d,p,m;let y;i.key&&((d=i.debug)!=null&&d.call(i))&&(y=Date.now());const g=n();if(!(g.length!==u.length||g.some((w,A)=>u[A]!==w)))return s;u=g;let v;if(i.key&&((p=i.debug)!=null&&p.call(i))&&(v=Date.now()),s=a(...g),i.key&&((m=i.debug)!=null&&m.call(i))){const w=Math.round((Date.now()-y)*100)/100,A=Math.round((Date.now()-v)*100)/100,L=A/16,j=(q,U)=>{for(q=String(q);q.length<U;)q=" "+q;return q};console.info(`%c⏱ ${j(A,5)} /${j(w,5)} ms`,`
255
- font-size: .6rem;
256
- font-weight: bold;
257
- color: hsl(${Math.max(0,Math.min(120-120*L,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 Wm(n,a){if(n===void 0)throw new Error("Unexpected undefined");return n}const tb=(n,a)=>Math.abs(n-a)<1.01,nb=(n,a,i)=>{let u;return function(...s){n.clearTimeout(u),u=n.setTimeout(()=>a.apply(this,s),i)}},Pm=n=>{const{offsetWidth:a,offsetHeight:i}=n;return{width:a,height:i}},lb=n=>n,ib=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},ab=(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(Pm(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(Pm(i))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()});return c.observe(i,{box:"border-box"}),()=>{c.unobserve(i)}},ep={passive:!0},tp=typeof window>"u"?!0:"onscrollend"in window,rb=(n,a)=>{const i=n.scrollElement;if(!i)return;const u=n.targetWindow;if(!u)return;let s=0;const c=n.options.useScrollendEvent&&tp?()=>{}:nb(u,()=>{a(s,!1)},n.options.isScrollingResetDelay),f=y=>()=>{const{horizontal:g,isRtl:S}=n.options;s=g?i.scrollLeft*(S&&-1||1):i.scrollTop,c(),a(s,y)},d=f(!0),p=f(!1);i.addEventListener("scroll",d,ep);const m=n.options.useScrollendEvent&&tp;return m&&i.addEventListener("scrollend",p,ep),()=>{i.removeEventListener("scroll",d),m&&i.removeEventListener("scrollend",p)}},ub=(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"]},sb=(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 ob{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:lb,rangeExtractor:ib,onChange:()=>{},measureElement:ub,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=wi(()=>(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=wi(()=>[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=wi(()=>[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 y=this.measurementsCache.slice(0,m),g=new Array(d).fill(void 0);for(let S=0;S<m;S++){const v=y[S];v&&(g[v.lane]=S)}for(let S=m;S<i;S++){const v=c(S),w=this.laneAssignments.get(S);let A,L;if(w!==void 0&&this.options.lanes>1){A=w;const te=g[A],le=te!==void 0?y[te]:void 0;L=le?le.end+this.options.gap:u+s}else{const te=this.options.lanes===1?y[S-1]:this.getFurthestMeasurement(y,S);L=te?te.end+this.options.gap:u+s,A=te?te.lane:S%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(S,A)}const j=p.get(v),q=typeof j=="number"?j:this.options.estimateSize(S),U=L+q;y[S]={index:S,start:L,size:q,end:U,key:v,lane:A},g[A]=S}return this.measurementsCache=y,y},{key:!1,debug:()=>this.options.debug}),this.calculateRange=wi(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,u,s,c)=>this.range=i.length>0&&u>0?cb({measurements:i,outerSize:u,scrollOffset:s,lanes:c}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=wi(()=>{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=wi(()=>[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 Wm(u[h0(0,u.length-1,s=>Wm(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 y=this.getOffsetForIndex(i,m);if(!y){console.warn("Failed to get offset for index:",i);return}const[g,S]=y;this._scrollToOffset(g,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{const v=()=>{if(this.currentScrollToIndex!==i)return;const w=this.getScrollOffset(),A=this.getOffsetForIndex(i,S);if(!A){console.warn("Failed to get offset for index:",i);return}tb(A[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 h0=(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 cb({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=h0(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(y=>y<i+a);){const y=n[d];p[y.lane]=y.end,d++}const m=Array(u).fill(i+a);for(;f>=0&&m.some(y=>y>=i);){const y=n[f];m[y.lane]=y.start,f--}f=Math.max(0,f-f%u),d=Math.min(s,d+(u-1-d%u))}return{startIndex:f,endIndex:d}}const np=typeof document<"u"?F.useLayoutEffect:F.useEffect;function fb({useFlushSync:n=!0,...a}){const i=F.useReducer(()=>({}),{})[1],u={...a,onChange:(c,f)=>{var d;n&&f?eb.flushSync(i):i(),(d=a.onChange)==null||d.call(a,c,f)}},[s]=F.useState(()=>new ob(u));return s.setOptions(u),np(()=>s._didMount(),[]),np(()=>s._willUpdate()),s}function hb(n){return fb({observeElementRect:ab,observeElementOffset:rb,scrollToFn:sb,...n})}const db=F.memo(function(a){const{sessions:i,selectedSession:u,onSelectSession:s,loading:c,selectedProject:f,search:d,onSearchChange:p,fullTextEnabled:m,onFullTextEnabledChange:y,fullTextOptions:g,onFullTextOptionsChange:S,excludeUnknownModels:v,onExcludeUnknownModelsChange:w,sessionModels:A,onDeleteUnknownSessions:L,batchMode:j,selectedSessions:q,onToggleBatchMode:U,onToggleSessionSelection:te,onSelectAll:le,onDeselectAll:O,onBatchExport:$}=a,[re,me]=F.useState(!1),[H,ie]=F.useState(null),[ne,be]=F.useState(new Map),se=F.useRef(null);F.useEffect(()=>{if(!m||!d.trim()){me(!1),ie(null),be(new Map);return}const K=new AbortController,ue=setTimeout(()=>{me(!0),ie(null),fetch("/api/search",{method:"POST",headers:{"Content-Type":"application/json"},signal:K.signal,body:JSON.stringify({query:d,options:g,project:f??null})}).then(async oe=>{const ze=oe.headers.get("x-claude-run-rg-command");ze&&console.log("[claude-run]",ze);const Ve=await oe.json();if(!oe.ok)throw new Error(Ve.error||"Search failed");const Ue=new Map;for(const lt of Ve.matches)Ue.set(lt.sessionId,lt.matchCount);be(Ue)}).catch(oe=>{(oe==null?void 0:oe.name)!=="AbortError"&&(be(new Map),ie(oe instanceof Error?oe.message:"Search failed"))}).finally(()=>{me(!1)})},250);return()=>{K.abort(),clearTimeout(ue)}},[m,d,g,f]);const W=F.useMemo(()=>{const K=[];for(const[ue,oe]of A.entries())oe===null&&K.push(ue);return K},[A]),_=W.length,I=F.useMemo(()=>v?i.filter(K=>A.get(K.id)!==null):i,[i,v,A]),ce=F.useMemo(()=>{if(!d.trim())return I;if(m)return re||H?[]:ne.size===0?[]:I.filter(ue=>ne.has(ue.id));const K=d.toLowerCase();return I.filter(ue=>ue.display.toLowerCase().includes(K)||ue.projectName.toLowerCase().includes(K))},[I,d,m,re,H,ne]),ve=hb({count:ce.length,getScrollElement:()=>se.current,estimateSize:()=>76,overscan:10,measureElement:K=>K.getBoundingClientRect().height}),E=F.useCallback((K,ue)=>{j?(ue.preventDefault(),te(K.id)):s(K.id)},[j,te,s]),C=q.size,V=C===ce.length&&ce.length>0,k=F.useCallback(()=>{W.length===0||!window.confirm(`Delete ${W.length} unknown-model session${W.length===1?"":"s"}? This removes their session files from disk.`)||L(W)},[W,L]);return x.jsxs("div",{className:"h-full overflow-hidden bg-zinc-950 flex flex-col",children:[x.jsxs("div",{className:"px-3 py-2 border-b border-zinc-800/60",children:[x.jsxs("div",{className:"flex items-center gap-2 text-zinc-500",children:[x.jsx("svg",{className:"w-4 h-4 shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),x.jsx("input",{type:"text",value:d,onChange:K=>p(K.target.value),placeholder:"Search...",className:"flex-1 bg-transparent text-sm text-zinc-200 placeholder-zinc-600 focus:outline-none"}),x.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500 select-none",children:[x.jsx("input",{type:"checkbox",checked:m,onChange:K=>y(K.target.checked),className:"accent-cyan-500",title:"Full text search (ripgrep)"}),"Full text"]}),d&&x.jsx("button",{onClick:()=>p(""),className:"text-zinc-600 hover:text-zinc-400 transition-colors",children:x.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),x.jsxs("div",{className:"mt-2 flex items-center gap-2 flex-wrap",children:[x.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500 select-none",children:[x.jsx("input",{type:"checkbox",checked:v,onChange:K=>w(K.target.checked),className:"accent-cyan-500",title:"Hide sessions without a detected model"}),"Hide Unknown model"]}),v&&_>0&&x.jsxs("button",{onClick:k,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 (",_,")"]})]}),m&&x.jsxs("div",{className:"mt-2 flex items-center gap-2 flex-wrap",children:[x.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500",children:[x.jsx("span",{children:"Mode"}),x.jsxs("select",{value:g.mode,onChange:K=>S({...g,mode:K.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:[x.jsx("option",{value:"literal",children:"Literal"}),x.jsx("option",{value:"regex",children:"Regex"})]})]}),x.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500 select-none",children:[x.jsx("input",{type:"checkbox",checked:g.caseSensitive,onChange:K=>S({...g,caseSensitive:K.target.checked}),className:"accent-cyan-500"}),"Case sensitive"]}),x.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500 select-none",children:[x.jsx("input",{type:"checkbox",checked:g.wordRegexp,onChange:K=>S({...g,wordRegexp:K.target.checked}),className:"accent-cyan-500"}),"Whole word"]}),x.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500",children:[x.jsx("span",{children:"Max matches/file"}),x.jsx("input",{type:"number",min:1,max:2e3,value:g.maxMatchesPerFile??200,onChange:K=>S({...g,maxMatchesPerFile:Number.parseInt(K.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"})]}),re&&x.jsx("span",{className:"text-[10px] text-zinc-600",children:"Searching…"})]})]}),x.jsxs("div",{className:"px-3 py-2 border-b border-zinc-800/60 flex items-center gap-2",children:[x.jsx("button",{onClick:U,className:`flex items-center gap-1.5 px-2 py-1 text-xs rounded transition-colors ${j?"bg-cyan-600/20 text-cyan-400 border border-cyan-600/40":"text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800"}`,title:j?"Exit batch mode":"Enter batch mode",children:j?x.jsxs(x.Fragment,{children:[x.jsx(gu,{className:"w-3 h-3"}),"Exit"]}):x.jsxs(x.Fragment,{children:[x.jsx(uc,{className:"w-3 h-3"}),"Select"]})}),j&&x.jsxs(x.Fragment,{children:[x.jsx("button",{onClick:V?O:le,className:"px-2 py-1 text-xs text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 rounded transition-colors",children:V?"Deselect All":"Select All"}),C>0&&x.jsxs("button",{onClick:$,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:[x.jsx(Sc,{className:"w-3 h-3"}),"Export (",C,")"]})]})]}),x.jsx("div",{ref:se,className:"flex-1 overflow-y-auto",children:c?x.jsx("div",{className:"flex items-center justify-center py-8",children:x.jsxs("svg",{className:"w-5 h-5 text-zinc-600 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[x.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),x.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"})]})}):ce.length===0?x.jsx("p",{className:"py-8 text-center text-xs text-zinc-600",children:m&&d&&H?H:m&&d&&re?"Searching…":d?m?"No matches in conversation text":"No sessions match":"No sessions found"}):x.jsx("div",{style:{height:`${ve.getTotalSize()}px`,width:"100%",position:"relative"},children:ve.getVirtualItems().map(K=>{const ue=ce[K.index],oe=q.has(ue.id);return x.jsx("button",{"data-index":K.index,ref:ve.measureElement,onClick:ze=>E(ue,ze),style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${K.start}px)`},className:`px-3 py-3.5 text-left transition-colors overflow-hidden border-b border-zinc-800/40 ${j&&oe||u===ue.id&&!j?"bg-cyan-700/30":"hover:bg-zinc-900/60"} ${K.index===0?"border-t border-t-zinc-800/40":""}`,children:x.jsxs("div",{className:"flex items-center gap-2",children:[j&&x.jsx("div",{className:"shrink-0",children:oe?x.jsx(uc,{className:"w-4 h-4 text-cyan-400"}):x.jsx(o0,{className:"w-4 h-4 text-zinc-600"})}),x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsxs("div",{className:"flex items-center justify-between mb-1",children:[x.jsx("span",{className:"text-[10px] text-zinc-500 font-medium",title:wc(ue.project),children:ue.projectName}),x.jsxs("div",{className:"flex items-center gap-2",children:[m&&d.trim()&&ne.has(ue.id)&&x.jsx("span",{className:"text-[10px] text-cyan-400",children:ne.get(ue.id)}),x.jsx("span",{className:"text-[10px] text-zinc-600",children:f0(ue.timestamp)})]})]}),x.jsx("p",{className:"text-[12px] text-zinc-300 leading-snug line-clamp-2 wrap-break-word",children:ue.display})]})]})},ue.id)})})}),x.jsx("div",{className:"px-3 py-2 border-t border-zinc-800/60",children:x.jsx("div",{className:"text-[10px] text-zinc-600 text-center",children:j&&C>0?`${C} of ${i.length} selected`:`${i.length} session${i.length!==1?"s":""}`})})]})});function mb(n){const a=n.split("/").filter(Boolean);return a[a.length-1]||n}function iu(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 pb(n){const{projects:a,selectedProject:i,onSelect:u}=n,[s,c]=F.useState(!1),[f,d]=F.useState(""),p=F.useRef(null),m=F.useRef(null),y=F.useMemo(()=>{const w=a.map(A=>({value:A,name:mb(A),path:A,subtext:wc(A)}));return[{value:"",name:"All Projects",path:"",subtext:"Every project"},...w]},[a]),g=F.useMemo(()=>f.trim()?y.filter(w=>w.value?iu(f,w.name)||iu(f,w.subtext)||iu(f,w.path):iu(f,w.name)):y,[y,f]),S=F.useMemo(()=>i?y.find(w=>w.value===i)??y[0]:y[0],[y,i]),v=F.useCallback(w=>{u(w||null),c(!1),d("")},[u]);return F.useEffect(()=>{if(!s)return;const w=L=>{p.current&&(p.current.contains(L.target)||c(!1))},A=L=>{L.key==="Escape"&&c(!1)};return document.addEventListener("mousedown",w),document.addEventListener("keydown",A),()=>{document.removeEventListener("mousedown",w),document.removeEventListener("keydown",A)}},[s]),F.useEffect(()=>{var w;s&&((w=m.current)==null||w.focus())},[s]),x.jsxs("div",{ref:p,className:"relative",children:[x.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:[x.jsxs("div",{className:"min-w-0",children:[x.jsx("div",{className:"text-sm font-medium text-zinc-100 truncate",children:S.name}),x.jsx("div",{className:"text-[11px] text-zinc-500 truncate",children:S.subtext})]}),x.jsx(t1,{className:`w-4 h-4 text-zinc-500 transition-transform ${s?"rotate-180":""}`})]}),s&&x.jsxs("div",{className:"absolute z-20 mt-2 w-full rounded-lg border border-zinc-800/80 bg-zinc-950 shadow-xl",children:[x.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-800/80",children:[x.jsx(La,{className:"w-4 h-4 text-zinc-500"}),x.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&&x.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:x.jsx(gu,{className:"w-4 h-4"})})]}),x.jsx("div",{className:"max-h-72 overflow-y-auto py-1",children:g.length===0?x.jsx("div",{className:"px-3 py-3 text-xs text-zinc-500",children:"No projects match"}):x.jsx("ul",{role:"listbox",className:"space-y-1",children:g.map(w=>{const A=i===w.value||!i&&!w.value;return x.jsx("li",{children:x.jsxs("button",{type:"button",role:"option","aria-selected":A,onClick:()=>v(w.value),className:`w-full text-left px-3 py-2 rounded-md transition-colors hover:bg-zinc-800/60 ${A?"bg-cyan-700/20":""}`,children:[x.jsxs("div",{className:"flex items-center justify-between gap-2",children:[x.jsx("span",{className:"text-sm font-medium text-zinc-200 truncate",children:w.name}),A&&x.jsx(dl,{className:"w-4 h-4 text-cyan-400"})]}),x.jsx("div",{className:"text-[11px] text-zinc-500 truncate",children:w.subtext})]})},w.value||"__all__")})})})]})]})}function gb(n,a){const i={};return(n[n.length-1]===""?[...n,""]:n).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const xb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bb={};function lp(n,a){return(bb.jsx?yb:xb).test(n)}const vb=/[ \t\n\f\r]/g;function Sb(n){return typeof n=="object"?n.type==="text"?ip(n.value):!1:ip(n)}function ip(n){return n.replace(vb,"")===""}class Ha{constructor(a,i,u){this.normal=i,this.property=a,u&&(this.space=u)}}Ha.prototype.normal={};Ha.prototype.property={};Ha.prototype.space=void 0;function d0(n,a){const i={},u={};for(const s of n)Object.assign(i,s.property),Object.assign(u,s.normal);return new Ha(i,u,a)}function sc(n){return n.toLowerCase()}class Lt{constructor(a,i){this.attribute=i,this.property=a}}Lt.prototype.attribute="";Lt.prototype.booleanish=!1;Lt.prototype.boolean=!1;Lt.prototype.commaOrSpaceSeparated=!1;Lt.prototype.commaSeparated=!1;Lt.prototype.defined=!1;Lt.prototype.mustUseProperty=!1;Lt.prototype.number=!1;Lt.prototype.overloadedBoolean=!1;Lt.prototype.property="";Lt.prototype.spaceSeparated=!1;Lt.prototype.space=void 0;let zb=0;const Ee=Ll(),ct=Ll(),oc=Ll(),ee=Ll(),$e=Ll(),ji=Ll(),Gt=Ll();function Ll(){return 2**++zb}const cc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ee,booleanish:ct,commaOrSpaceSeparated:Gt,commaSeparated:ji,number:ee,overloadedBoolean:oc,spaceSeparated:$e},Symbol.toStringTag,{value:"Module"})),Vo=Object.keys(cc);class Ec extends Lt{constructor(a,i,u,s){let c=-1;if(super(a,i),ap(this,"space",s),typeof u=="number")for(;++c<Vo.length;){const f=Vo[c];ap(this,Vo[c],(u&cc[f])===cc[f])}}}Ec.prototype.defined=!0;function ap(n,a,i){i&&(n[a]=i)}function Mi(n){const a={},i={};for(const[u,s]of Object.entries(n.properties)){const c=new Ec(u,n.transform(n.attributes||{},u),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(c.mustUseProperty=!0),a[u]=c,i[sc(u)]=u,i[sc(c.attribute)]=u}return new Ha(a,i,n.space)}const m0=Mi({properties:{ariaActiveDescendant:null,ariaAtomic:ct,ariaAutoComplete:null,ariaBusy:ct,ariaChecked:ct,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:$e,ariaCurrent:null,ariaDescribedBy:$e,ariaDetails:null,ariaDisabled:ct,ariaDropEffect:$e,ariaErrorMessage:null,ariaExpanded:ct,ariaFlowTo:$e,ariaGrabbed:ct,ariaHasPopup:null,ariaHidden:ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$e,ariaLevel:ee,ariaLive:null,ariaModal:ct,ariaMultiLine:ct,ariaMultiSelectable:ct,ariaOrientation:null,ariaOwns:$e,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:ct,ariaReadOnly:ct,ariaRelevant:null,ariaRequired:ct,ariaRoleDescription:$e,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:ct,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function p0(n,a){return a in n?n[a]:a}function g0(n,a){return p0(n,a.toLowerCase())}const kb=Mi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ji,acceptCharset:$e,accessKey:$e,action:null,allow:null,allowFullScreen:Ee,allowPaymentRequest:Ee,allowUserMedia:Ee,alt:null,as:null,async:Ee,autoCapitalize:null,autoComplete:$e,autoFocus:Ee,autoPlay:Ee,blocking:$e,capture:null,charSet:null,checked:Ee,cite:null,className:$e,cols:ee,colSpan:null,content:null,contentEditable:ct,controls:Ee,controlsList:$e,coords:ee|ji,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ee,defer:Ee,dir:null,dirName:null,disabled:Ee,download:oc,draggable:ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ee,formTarget:null,headers:$e,height:ee,hidden:oc,high:ee,href:null,hrefLang:null,htmlFor:$e,httpEquiv:$e,id:null,imageSizes:null,imageSrcSet:null,inert:Ee,inputMode:null,integrity:null,is:null,isMap:Ee,itemId:null,itemProp:$e,itemRef:$e,itemScope:Ee,itemType:$e,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ee,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:Ee,muted:Ee,name:null,nonce:null,noModule:Ee,noValidate:Ee,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:Ee,optimum:ee,pattern:null,ping:$e,placeholder:null,playsInline:Ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ee,referrerPolicy:null,rel:$e,required:Ee,reversed:Ee,rows:ee,rowSpan:ee,sandbox:$e,scope:null,scoped:Ee,seamless:Ee,selected:Ee,shadowRootClonable:Ee,shadowRootDelegatesFocus:Ee,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:Ee,useMap:null,value:ct,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$e,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ee,declare:Ee,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:Ee,noHref:Ee,noShade:Ee,noWrap:Ee,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:ct,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ee,disableRemotePlayback:Ee,prefix:null,property:null,results:ee,security:null,unselectable:null},space:"html",transform:g0}),wb=Mi({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:Gt,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:$e,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:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:Ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,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:ji,g2:ji,glyphName:ji,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:Gt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,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:ee,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:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$e,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Gt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Gt,rev:Gt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Gt,requiredFeatures:Gt,requiredFonts:Gt,requiredFormats:Gt,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:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:Gt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Gt,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Gt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:p0}),x0=Mi({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()}}),y0=Mi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:g0}),b0=Mi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),Eb={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"},Tb=/[A-Z]/g,rp=/-[a-z]/g,Cb=/^data[-\w.:]+$/i;function Nb(n,a){const i=sc(a);let u=a,s=Lt;if(i in n.normal)return n.property[n.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&Cb.test(a)){if(a.charAt(4)==="-"){const c=a.slice(5).replace(rp,Ab);u="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!rp.test(c)){let f=c.replace(Tb,jb);f.charAt(0)!=="-"&&(f="-"+f),a="data"+f}}s=Ec}return new s(u,a)}function jb(n){return"-"+n.toLowerCase()}function Ab(n){return n.charAt(1).toUpperCase()}const Mb=d0([m0,kb,x0,y0,b0],"html"),Tc=d0([m0,wb,x0,y0,b0],"svg");function _b(n){return n.join(" ").trim()}var Ei={},Xo,up;function Ob(){if(up)return Xo;up=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="/",y="*",g="",S="comment",v="declaration";function w(L,j){if(typeof L!="string")throw new TypeError("First argument must be a string");if(!L)return[];j=j||{};var q=1,U=1;function te(se){var W=se.match(a);W&&(q+=W.length);var _=se.lastIndexOf(p);U=~_?se.length-_:U+se.length}function le(){var se={line:q,column:U};return function(W){return W.position=new O(se),me(),W}}function O(se){this.start=se,this.end={line:q,column:U},this.source=j.source}O.prototype.content=L;function $(se){var W=new Error(j.source+":"+q+":"+U+": "+se);if(W.reason=se,W.filename=j.source,W.line=q,W.column=U,W.source=L,!j.silent)throw W}function re(se){var W=se.exec(L);if(W){var _=W[0];return te(_),L=L.slice(_.length),W}}function me(){re(i)}function H(se){var W;for(se=se||[];W=ie();)W!==!1&&se.push(W);return se}function ie(){var se=le();if(!(m!=L.charAt(0)||y!=L.charAt(1))){for(var W=2;g!=L.charAt(W)&&(y!=L.charAt(W)||m!=L.charAt(W+1));)++W;if(W+=2,g===L.charAt(W-1))return $("End of comment missing");var _=L.slice(2,W-2);return U+=2,te(_),L=L.slice(W),U+=2,se({type:S,comment:_})}}function ne(){var se=le(),W=re(u);if(W){if(ie(),!re(s))return $("property missing ':'");var _=re(c),I=se({type:v,property:A(W[0].replace(n,g)),value:_?A(_[0].replace(n,g)):g});return re(f),I}}function be(){var se=[];H(se);for(var W;W=ne();)W!==!1&&(se.push(W),H(se));return se}return me(),be()}function A(L){return L?L.replace(d,g):g}return Xo=w,Xo}var sp;function Db(){if(sp)return Ei;sp=1;var n=Ei&&Ei.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.default=i;const a=n(Ob());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:y}=p;d?s(m,y,p):y&&(c=c||{},c[m]=y)}),c}return Ei}var ja={},op;function Rb(){if(op)return ja;op=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.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,y){return y.toUpperCase()},d=function(m,y){return"".concat(y,"-")},p=function(m,y){return y===void 0&&(y={}),c(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(s,d):m=m.replace(u,d),m.replace(a,f))};return ja.camelCase=p,ja}var Aa,cp;function Lb(){if(cp)return Aa;cp=1;var n=Aa&&Aa.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=n(Db()),i=Rb();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,Aa=u,Aa}var Ub=Lb();const Bb=Pp(Ub),v0=S0("end"),Cc=S0("start");function S0(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 Hb(n){const a=Cc(n),i=v0(n);if(a&&i)return{start:a,end:i}}function Oa(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?fp(n.position):"start"in n||"end"in n?fp(n):"line"in n||"column"in n?fc(n):""}function fc(n){return hp(n&&n.line)+":"+hp(n&&n.column)}function fp(n){return fc(n&&n.start)+"-"+fc(n&&n.end)}function hp(n){return n&&typeof n=="number"?n:1}class zt 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=Oa(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}}zt.prototype.file="";zt.prototype.name="";zt.prototype.reason="";zt.prototype.message="";zt.prototype.stack="";zt.prototype.column=void 0;zt.prototype.line=void 0;zt.prototype.ancestors=void 0;zt.prototype.cause=void 0;zt.prototype.fatal=void 0;zt.prototype.place=void 0;zt.prototype.ruleId=void 0;zt.prototype.source=void 0;const Nc={}.hasOwnProperty,qb=new Map,Yb=/[A-Z]/g,Vb=new Set(["table","tbody","thead","tfoot","tr"]),Xb=new Set(["td","th"]),z0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Gb(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=Wb(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=$b(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"?Tc:Mb,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},c=k0(s,n,void 0);return c&&typeof c!="string"?c:s.create(n,s.Fragment,{children:c||void 0},void 0)}function k0(n,a,i){if(a.type==="element")return Qb(n,a,i);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return Fb(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return Jb(n,a,i);if(a.type==="mdxjsEsm")return Zb(n,a);if(a.type==="root")return Kb(n,a,i);if(a.type==="text")return Ib(n,a)}function Qb(n,a,i){const u=n.schema;let s=u;a.tagName.toLowerCase()==="svg"&&u.space==="html"&&(s=Tc,n.schema=s),n.ancestors.push(a);const c=E0(n,a.tagName,!1),f=Pb(n,a);let d=Ac(n,a);return Vb.has(a.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!Sb(p):!0})),w0(n,f,c,a),jc(f,d),n.ancestors.pop(),n.schema=u,n.create(a,c,f,i)}function Fb(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)}Ua(n,a.position)}function Zb(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);Ua(n,a.position)}function Jb(n,a,i){const u=n.schema;let s=u;a.name==="svg"&&u.space==="html"&&(s=Tc,n.schema=s),n.ancestors.push(a);const c=a.name===null?n.Fragment:E0(n,a.name,!0),f=ev(n,a),d=Ac(n,a);return w0(n,f,c,a),jc(f,d),n.ancestors.pop(),n.schema=u,n.create(a,c,f,i)}function Kb(n,a,i){const u={};return jc(u,Ac(n,a)),n.create(a,n.Fragment,u,i)}function Ib(n,a){return a.value}function w0(n,a,i,u){typeof i!="string"&&i!==n.Fragment&&n.passNode&&(a.node=u)}function jc(n,a){if(a.length>0){const i=a.length>1?a:a[0];i&&(n.children=i)}}function $b(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 Wb(n,a){return i;function i(u,s,c,f){const d=Array.isArray(c.children),p=Cc(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 Pb(n,a){const i={};let u,s;for(s in a.properties)if(s!=="children"&&Nc.call(a.properties,s)){const c=tv(n,s,a.properties[s]);if(c){const[f,d]=c;n.tableCellAlignToStyle&&f==="align"&&typeof d=="string"&&Xb.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 ev(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 Ua(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 Ua(n,a.position);else c=u.value===null?!0:u.value;i[s]=c}return i}function Ac(n,a){const i=[];let u=-1;const s=n.passKeys?new Map:qb;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=k0(n,c,f);d!==void 0&&i.push(d)}return i}function tv(n,a,i){const u=Nb(n.schema,a);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=u.commaSeparated?gb(i):_b(i)),u.property==="style"){let s=typeof i=="object"?i:nv(n,String(i));return n.stylePropertyNameCase==="css"&&(s=lv(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&u.space?Eb[u.property]||u.property:u.attribute,i]}}function nv(n,a){try{return Bb(a,{reactCompat:!0})}catch(i){if(n.ignoreInvalidStyle)return{};const u=i,s=new zt("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=z0+"#cannot-parse-style-attribute",s}}function E0(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=lp(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=lp(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(u.type==="Literal"){const s=u.value;return Nc.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(u);Ua(n)}function Ua(n,a){const i=new zt("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=z0+"#cannot-handle-mdx-estrees-without-createevaluater",i}function lv(n){const a={};let i;for(i in n)Nc.call(n,i)&&(a[iv(i)]=n[i]);return a}function iv(n){let a=n.replace(Yb,av);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function av(n){return"-"+n.toLowerCase()}const Go={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"]},rv={};function Mc(n,a){const i=rv,u=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return T0(n,u,s)}function T0(n,a,i){if(uv(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 dp(n.children,a,i)}return Array.isArray(n)?dp(n,a,i):""}function dp(n,a,i){const u=[];let s=-1;for(;++s<n.length;)u[s]=T0(n[s],a,i);return u.join("")}function uv(n){return!!(n&&typeof n=="object")}const mp=document.createElement("i");function _c(n){const a="&"+n+";";mp.innerHTML=a;const i=mp.textContent;return i.charCodeAt(i.length-1)===59&&n!=="semi"||i===a?!1:i}function Qt(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 ln(n,a){return n.length>0?(Qt(n,n.length,0,a),n):a}const pp={}.hasOwnProperty;function C0(n){const a={};let i=-1;for(;++i<n.length;)sv(a,n[i]);return a}function sv(n,a){let i;for(i in a){const s=(pp.call(n,i)?n[i]:void 0)||(n[i]={}),c=a[i];let f;if(c)for(f in c){pp.call(s,f)||(s[f]=[]);const d=c[f];ov(s[f],Array.isArray(d)?d:d?[d]:[])}}}function ov(n,a){let i=-1;const u=[];for(;++i<a.length;)(a[i].add==="after"?n:u).push(a[i]);Qt(n,0,0,u)}function N0(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 cn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Et=ml(/[A-Za-z]/),St=ml(/[\dA-Za-z]/),cv=ml(/[#-'*+\--9=?A-Z^-~]/);function hu(n){return n!==null&&(n<32||n===127)}const hc=ml(/\d/),fv=ml(/[\dA-Fa-f]/),hv=ml(/[!-/:-@[-`{-~]/);function ge(n){return n!==null&&n<-2}function Ie(n){return n!==null&&(n<0||n===32)}function Ae(n){return n===-2||n===-1||n===32}const xu=ml(new RegExp("\\p{P}|\\p{S}","u")),Rl=ml(/\s/);function ml(n){return a;function a(i){return i!==null&&i>-1&&n.test(String.fromCharCode(i))}}function _i(n){const a=[];let i=-1,u=0,s=0;for(;++i<n.length;){const c=n.charCodeAt(i);let f="";if(c===37&&St(n.charCodeAt(i+1))&&St(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 Le(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 dv={tokenize:mv};function mv(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"),Le(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 ge(d)?(n.consume(d),n.exit("chunkText"),c):(n.consume(d),f)}}const pv={tokenize:gv},gp={tokenize:xv};function gv(n){const a=this,i=[];let u=0,s,c,f;return d;function d(U){if(u<i.length){const te=i[u];return a.containerState=te[1],n.attempt(te[0].continuation,p,m)(U)}return m(U)}function p(U){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&q();const te=a.events.length;let le=te,O;for(;le--;)if(a.events[le][0]==="exit"&&a.events[le][1].type==="chunkFlow"){O=a.events[le][1].end;break}j(u);let $=te;for(;$<a.events.length;)a.events[$][1].end={...O},$++;return Qt(a.events,le+1,0,a.events.slice(te)),a.events.length=$,m(U)}return d(U)}function m(U){if(u===i.length){if(!s)return S(U);if(s.currentConstruct&&s.currentConstruct.concrete)return w(U);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(gp,y,g)(U)}function y(U){return s&&q(),j(u),S(U)}function g(U){return a.parser.lazy[a.now().line]=u!==i.length,f=a.now().offset,w(U)}function S(U){return a.containerState={},n.attempt(gp,v,w)(U)}function v(U){return u++,i.push([a.currentConstruct,a.containerState]),S(U)}function w(U){if(U===null){s&&q(),j(0),n.consume(U);return}return s=s||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:c}),A(U)}function A(U){if(U===null){L(n.exit("chunkFlow"),!0),j(0),n.consume(U);return}return ge(U)?(n.consume(U),L(n.exit("chunkFlow")),u=0,a.interrupt=void 0,d):(n.consume(U),A)}function L(U,te){const le=a.sliceStream(U);if(te&&le.push(null),U.previous=c,c&&(c.next=U),c=U,s.defineSkip(U.start),s.write(le),a.parser.lazy[U.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 re=$,me,H;for(;re--;)if(a.events[re][0]==="exit"&&a.events[re][1].type==="chunkFlow"){if(me){H=a.events[re][1].end;break}me=!0}for(j(u),O=$;O<a.events.length;)a.events[O][1].end={...H},O++;Qt(a.events,re+1,0,a.events.slice($)),a.events.length=O}}function j(U){let te=i.length;for(;te-- >U;){const le=i[te];a.containerState=le[1],le[0].exit.call(a,n)}i.length=U}function q(){s.write([null]),c=void 0,s=void 0,a.containerState._closeFlow=void 0}}function xv(n,a,i){return Le(n,n.attempt(this.parser.constructs.document,a,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ai(n){if(n===null||Ie(n)||Rl(n))return 1;if(xu(n))return 2}function yu(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 dc={name:"attention",resolveAll:yv,tokenize:bv};function yv(n,a){let i=-1,u,s,c,f,d,p,m,y;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 g={...n[u][1].end},S={...n[i][1].start};xp(g,-p),xp(S,p),f={type:p>1?"strongSequence":"emphasisSequence",start:g,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=ln(m,[["enter",n[u][1],a],["exit",n[u][1],a]])),m=ln(m,[["enter",s,a],["enter",f,a],["exit",f,a],["enter",c,a]]),m=ln(m,yu(a.parser.constructs.insideSpan.null,n.slice(u+1,i),a)),m=ln(m,[["exit",c,a],["enter",d,a],["exit",d,a],["exit",s,a]]),n[i][1].end.offset-n[i][1].start.offset?(y=2,m=ln(m,[["enter",n[i][1],a],["exit",n[i][1],a]])):y=0,Qt(n,u-1,i-u+3,m),i=u+m.length-y-2;break}}for(i=-1;++i<n.length;)n[i][1].type==="attentionSequence"&&(n[i][1].type="data");return n}function bv(n,a){const i=this.parser.constructs.attentionMarkers.null,u=this.previous,s=Ai(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"),y=Ai(p),g=!y||y===2&&s||i.includes(p),S=!s||s===2&&y||i.includes(u);return m._open=!!(c===42?g:g&&(s||!S)),m._close=!!(c===42?S:S&&(y||!g)),a(p)}}function xp(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const vv={name:"autolink",tokenize:Sv};function Sv(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 Et(v)?(n.consume(v),f):v===64?i(v):m(v)}function f(v){return v===43||v===45||v===46||St(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||St(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||hu(v)?i(v):(n.consume(v),p)}function m(v){return v===64?(n.consume(v),y):cv(v)?(n.consume(v),m):i(v)}function y(v){return St(v)?g(v):i(v)}function g(v){return v===46?(n.consume(v),u=0,y):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||St(v))&&u++<63){const w=v===45?S:g;return n.consume(v),w}return i(v)}}const qa={partial:!0,tokenize:zv};function zv(n,a,i){return u;function u(c){return Ae(c)?Le(n,s,"linePrefix")(c):s(c)}function s(c){return c===null||ge(c)?a(c):i(c)}}const j0={continuation:{tokenize:wv},exit:Ev,name:"blockQuote",tokenize:kv};function kv(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 wv(n,a,i){const u=this;return s;function s(f){return Ae(f)?Le(n,c,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):c(f)}function c(f){return n.attempt(j0,a,i)(f)}}function Ev(n){n.exit("blockQuote")}const A0={name:"characterEscape",tokenize:Tv};function Tv(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 hv(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):i(c)}}const M0={name:"characterReference",tokenize:Cv};function Cv(n,a,i){const u=this;let s=0,c,f;return d;function d(g){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),p}function p(g){return g===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(g),n.exit("characterReferenceMarkerNumeric"),m):(n.enter("characterReferenceValue"),c=31,f=St,y(g))}function m(g){return g===88||g===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(g),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),c=6,f=fv,y):(n.enter("characterReferenceValue"),c=7,f=hc,y(g))}function y(g){if(g===59&&s){const S=n.exit("characterReferenceValue");return f===St&&!_c(u.sliceSerialize(S))?i(g):(n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return f(g)&&s++<c?(n.consume(g),y):i(g)}}const yp={partial:!0,tokenize:jv},bp={concrete:!0,name:"codeFenced",tokenize:Nv};function Nv(n,a,i){const u=this,s={partial:!0,tokenize:le};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"),y(O)}function y(O){return O===d?(f++,n.consume(O),y):f<3?i(O):(n.exit("codeFencedFenceSequence"),Ae(O)?Le(n,g,"whitespace")(O):g(O))}function g(O){return O===null||ge(O)?(n.exit("codeFencedFence"),u.interrupt?a(O):n.check(yp,A,te)(O)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),S(O))}function S(O){return O===null||ge(O)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),g(O)):Ae(O)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Le(n,v,"whitespace")(O)):O===96&&O===d?i(O):(n.consume(O),S)}function v(O){return O===null||ge(O)?g(O):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),w(O))}function w(O){return O===null||ge(O)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),g(O)):O===96&&O===d?i(O):(n.consume(O),w)}function A(O){return n.attempt(s,te,L)(O)}function L(O){return n.enter("lineEnding"),n.consume(O),n.exit("lineEnding"),j}function j(O){return c>0&&Ae(O)?Le(n,q,"linePrefix",c+1)(O):q(O)}function q(O){return O===null||ge(O)?n.check(yp,A,te)(O):(n.enter("codeFlowValue"),U(O))}function U(O){return O===null||ge(O)?(n.exit("codeFlowValue"),q(O)):(n.consume(O),U)}function te(O){return n.exit("codeFenced"),a(O)}function le(O,$,re){let me=0;return H;function H(W){return O.enter("lineEnding"),O.consume(W),O.exit("lineEnding"),ie}function ie(W){return O.enter("codeFencedFence"),Ae(W)?Le(O,ne,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):ne(W)}function ne(W){return W===d?(O.enter("codeFencedFenceSequence"),be(W)):re(W)}function be(W){return W===d?(me++,O.consume(W),be):me>=f?(O.exit("codeFencedFenceSequence"),Ae(W)?Le(O,se,"whitespace")(W):se(W)):re(W)}function se(W){return W===null||ge(W)?(O.exit("codeFencedFence"),$(W)):re(W)}}}function jv(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 Qo={name:"codeIndented",tokenize:Mv},Av={partial:!0,tokenize:_v};function Mv(n,a,i){const u=this;return s;function s(m){return n.enter("codeIndented"),Le(n,c,"linePrefix",5)(m)}function c(m){const y=u.events[u.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?f(m):i(m)}function f(m){return m===null?p(m):ge(m)?n.attempt(Av,f,p)(m):(n.enter("codeFlowValue"),d(m))}function d(m){return m===null||ge(m)?(n.exit("codeFlowValue"),f(m)):(n.consume(m),d)}function p(m){return n.exit("codeIndented"),a(m)}}function _v(n,a,i){const u=this;return s;function s(f){return u.parser.lazy[u.now().line]?i(f):ge(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),s):Le(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):ge(f)?s(f):i(f)}}const Ov={name:"codeText",previous:Rv,resolve:Dv,tokenize:Lv};function Dv(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 Rv(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Lv(n,a,i){let u=0,s,c;return f;function f(g){return n.enter("codeText"),n.enter("codeTextSequence"),d(g)}function d(g){return g===96?(n.consume(g),u++,d):(n.exit("codeTextSequence"),p(g))}function p(g){return g===null?i(g):g===32?(n.enter("space"),n.consume(g),n.exit("space"),p):g===96?(c=n.enter("codeTextSequence"),s=0,y(g)):ge(g)?(n.enter("lineEnding"),n.consume(g),n.exit("lineEnding"),p):(n.enter("codeTextData"),m(g))}function m(g){return g===null||g===32||g===96||ge(g)?(n.exit("codeTextData"),p(g)):(n.consume(g),m)}function y(g){return g===96?(n.consume(g),s++,y):s===u?(n.exit("codeTextSequence"),n.exit("codeText"),a(g)):(c.type="codeTextData",m(g))}}class Uv{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&&Ma(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),Ma(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Ma(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);Ma(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Ma(this.left,i.reverse())}}}function Ma(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 _0(n){const a={};let i=-1,u,s,c,f,d,p,m;const y=new Uv(n);for(;++i<y.length;){for(;i in a;)i=a[i];if(u=y.get(i),i&&u[1].type==="chunkFlow"&&y.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,Bv(y,i)),i=a[i],m=!0);else if(u[1]._container){for(c=i,s=void 0;c--;)if(f=y.get(c),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(s&&(y.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={...y.get(s)[1].start},d=y.slice(s,i),d.unshift(u),y.splice(s,i-s+1,d))}}return Qt(n,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function Bv(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 y,g,S=-1,v=i,w=0,A=0;const L=[A];for(;v;){for(;n.get(++s)[1]!==v;);c.push(s),v._tokenizer||(y=u.sliceStream(v),v.next||y.push(null),g&&f.defineSkip(v.start),v._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(y),v._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),g=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&&(A=S+1,L.push(A),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(f.events=[],v?(v._tokenizer=void 0,v.previous=void 0):L.pop(),S=L.length;S--;){const j=d.slice(L[S],L[S+1]),q=c.pop();p.push([q,q+j.length-1]),n.splice(q,2,j)}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 Hv={resolve:Yv,tokenize:Vv},qv={partial:!0,tokenize:Xv};function Yv(n){return _0(n),n}function Vv(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):ge(d)?n.check(qv,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 Xv(n,a,i){const u=this;return s;function s(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),Le(n,c,"linePrefix")}function c(f){if(f===null||ge(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 O0(n,a,i,u,s,c,f,d,p){const m=p||Number.POSITIVE_INFINITY;let y=0;return g;function g(j){return j===60?(n.enter(u),n.enter(s),n.enter(c),n.consume(j),n.exit(c),S):j===null||j===32||j===41||hu(j)?i(j):(n.enter(u),n.enter(f),n.enter(d),n.enter("chunkString",{contentType:"string"}),A(j))}function S(j){return j===62?(n.enter(c),n.consume(j),n.exit(c),n.exit(s),n.exit(u),a):(n.enter(d),n.enter("chunkString",{contentType:"string"}),v(j))}function v(j){return j===62?(n.exit("chunkString"),n.exit(d),S(j)):j===null||j===60||ge(j)?i(j):(n.consume(j),j===92?w:v)}function w(j){return j===60||j===62||j===92?(n.consume(j),v):v(j)}function A(j){return!y&&(j===null||j===41||Ie(j))?(n.exit("chunkString"),n.exit(d),n.exit(f),n.exit(u),a(j)):y<m&&j===40?(n.consume(j),y++,A):j===41?(n.consume(j),y--,A):j===null||j===32||j===40||hu(j)?i(j):(n.consume(j),j===92?L:A)}function L(j){return j===40||j===41||j===92?(n.consume(j),A):A(j)}}function D0(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),y}function y(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):ge(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),y):(n.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||v===91||v===93||ge(v)||d++>999?(n.exit("chunkString"),y(v)):(n.consume(v),p||(p=!Ae(v)),v===92?S:g)}function S(v){return v===91||v===92||v===93?(n.consume(v),d++,g):g(v)}}function R0(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):ge(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),Le(n,m,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===f||S===null||ge(S)?(n.exit("chunkString"),m(S)):(n.consume(S),S===92?g:y)}function g(S){return S===f||S===92?(n.consume(S),y):y(S)}}function Da(n,a){let i;return u;function u(s){return ge(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),i=!0,u):Ae(s)?Le(n,u,i?"linePrefix":"lineSuffix")(s):a(s)}}const Gv={name:"definition",tokenize:Fv},Qv={partial:!0,tokenize:Zv};function Fv(n,a,i){const u=this;let s;return c;function c(v){return n.enter("definition"),f(v)}function f(v){return D0.call(u,n,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function d(v){return s=cn(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 Ie(v)?Da(n,m)(v):m(v)}function m(v){return O0(n,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function y(v){return n.attempt(Qv,g,g)(v)}function g(v){return Ae(v)?Le(n,S,"whitespace")(v):S(v)}function S(v){return v===null||ge(v)?(n.exit("definition"),u.parser.defined.push(s),a(v)):i(v)}}function Zv(n,a,i){return u;function u(d){return Ie(d)?Da(n,s)(d):i(d)}function s(d){return R0(n,c,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function c(d){return Ae(d)?Le(n,f,"whitespace")(d):f(d)}function f(d){return d===null||ge(d)?a(d):i(d)}}const Jv={name:"hardBreakEscape",tokenize:Kv};function Kv(n,a,i){return u;function u(c){return n.enter("hardBreakEscape"),n.consume(c),s}function s(c){return ge(c)?(n.exit("hardBreakEscape"),a(c)):i(c)}}const Iv={name:"headingAtx",resolve:$v,tokenize:Wv};function $v(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"},Qt(n,u,i-u+1,[["enter",s,a],["enter",c,a],["exit",c,a],["exit",s,a]])),n}function Wv(n,a,i){let u=0;return s;function s(y){return n.enter("atxHeading"),c(y)}function c(y){return n.enter("atxHeadingSequence"),f(y)}function f(y){return y===35&&u++<6?(n.consume(y),f):y===null||Ie(y)?(n.exit("atxHeadingSequence"),d(y)):i(y)}function d(y){return y===35?(n.enter("atxHeadingSequence"),p(y)):y===null||ge(y)?(n.exit("atxHeading"),a(y)):Ae(y)?Le(n,d,"whitespace")(y):(n.enter("atxHeadingText"),m(y))}function p(y){return y===35?(n.consume(y),p):(n.exit("atxHeadingSequence"),d(y))}function m(y){return y===null||y===35||Ie(y)?(n.exit("atxHeadingText"),d(y)):(n.consume(y),m)}}const Pv=["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"],vp=["pre","script","style","textarea"],e2={concrete:!0,name:"htmlFlow",resolveTo:l2,tokenize:i2},t2={partial:!0,tokenize:r2},n2={partial:!0,tokenize:a2};function l2(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 i2(n,a,i){const u=this;let s,c,f,d,p;return m;function m(k){return y(k)}function y(k){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(k),g}function g(k){return k===33?(n.consume(k),S):k===47?(n.consume(k),c=!0,A):k===63?(n.consume(k),s=3,u.interrupt?a:E):Et(k)?(n.consume(k),f=String.fromCharCode(k),L):i(k)}function S(k){return k===45?(n.consume(k),s=2,v):k===91?(n.consume(k),s=5,d=0,w):Et(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 K="CDATA[";return k===K.charCodeAt(d++)?(n.consume(k),d===K.length?u.interrupt?a:ne:w):i(k)}function A(k){return Et(k)?(n.consume(k),f=String.fromCharCode(k),L):i(k)}function L(k){if(k===null||k===47||k===62||Ie(k)){const K=k===47,ue=f.toLowerCase();return!K&&!c&&vp.includes(ue)?(s=1,u.interrupt?a(k):ne(k)):Pv.includes(f.toLowerCase())?(s=6,K?(n.consume(k),j):u.interrupt?a(k):ne(k)):(s=7,u.interrupt&&!u.parser.lazy[u.now().line]?i(k):c?q(k):U(k))}return k===45||St(k)?(n.consume(k),f+=String.fromCharCode(k),L):i(k)}function j(k){return k===62?(n.consume(k),u.interrupt?a:ne):i(k)}function q(k){return Ae(k)?(n.consume(k),q):H(k)}function U(k){return k===47?(n.consume(k),H):k===58||k===95||Et(k)?(n.consume(k),te):Ae(k)?(n.consume(k),U):H(k)}function te(k){return k===45||k===46||k===58||k===95||St(k)?(n.consume(k),te):le(k)}function le(k){return k===61?(n.consume(k),O):Ae(k)?(n.consume(k),le):U(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):re(k)}function $(k){return k===p?(n.consume(k),p=null,me):k===null||ge(k)?i(k):(n.consume(k),$)}function re(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Ie(k)?le(k):(n.consume(k),re)}function me(k){return k===47||k===62||Ae(k)?U(k):i(k)}function H(k){return k===62?(n.consume(k),ie):i(k)}function ie(k){return k===null||ge(k)?ne(k):Ae(k)?(n.consume(k),ie):i(k)}function ne(k){return k===45&&s===2?(n.consume(k),_):k===60&&s===1?(n.consume(k),I):k===62&&s===4?(n.consume(k),C):k===63&&s===3?(n.consume(k),E):k===93&&s===5?(n.consume(k),ve):ge(k)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(t2,V,be)(k)):k===null||ge(k)?(n.exit("htmlFlowData"),be(k)):(n.consume(k),ne)}function be(k){return n.check(n2,se,V)(k)}function se(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),W}function W(k){return k===null||ge(k)?be(k):(n.enter("htmlFlowData"),ne(k))}function _(k){return k===45?(n.consume(k),E):ne(k)}function I(k){return k===47?(n.consume(k),f="",ce):ne(k)}function ce(k){if(k===62){const K=f.toLowerCase();return vp.includes(K)?(n.consume(k),C):ne(k)}return Et(k)&&f.length<8?(n.consume(k),f+=String.fromCharCode(k),ce):ne(k)}function ve(k){return k===93?(n.consume(k),E):ne(k)}function E(k){return k===62?(n.consume(k),C):k===45&&s===2?(n.consume(k),E):ne(k)}function C(k){return k===null||ge(k)?(n.exit("htmlFlowData"),V(k)):(n.consume(k),C)}function V(k){return n.exit("htmlFlow"),a(k)}}function a2(n,a,i){const u=this;return s;function s(f){return ge(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 r2(n,a,i){return u;function u(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(qa,a,i)}}const u2={name:"htmlText",tokenize:s2};function s2(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),le):E===63?(n.consume(E),U):Et(E)?(n.consume(E),re):i(E)}function m(E){return E===45?(n.consume(E),y):E===91?(n.consume(E),c=0,w):Et(E)?(n.consume(E),q):i(E)}function y(E){return E===45?(n.consume(E),v):i(E)}function g(E){return E===null?i(E):E===45?(n.consume(E),S):ge(E)?(f=g,I(E)):(n.consume(E),g)}function S(E){return E===45?(n.consume(E),v):g(E)}function v(E){return E===62?_(E):E===45?S(E):g(E)}function w(E){const C="CDATA[";return E===C.charCodeAt(c++)?(n.consume(E),c===C.length?A:w):i(E)}function A(E){return E===null?i(E):E===93?(n.consume(E),L):ge(E)?(f=A,I(E)):(n.consume(E),A)}function L(E){return E===93?(n.consume(E),j):A(E)}function j(E){return E===62?_(E):E===93?(n.consume(E),j):A(E)}function q(E){return E===null||E===62?_(E):ge(E)?(f=q,I(E)):(n.consume(E),q)}function U(E){return E===null?i(E):E===63?(n.consume(E),te):ge(E)?(f=U,I(E)):(n.consume(E),U)}function te(E){return E===62?_(E):U(E)}function le(E){return Et(E)?(n.consume(E),O):i(E)}function O(E){return E===45||St(E)?(n.consume(E),O):$(E)}function $(E){return ge(E)?(f=$,I(E)):Ae(E)?(n.consume(E),$):_(E)}function re(E){return E===45||St(E)?(n.consume(E),re):E===47||E===62||Ie(E)?me(E):i(E)}function me(E){return E===47?(n.consume(E),_):E===58||E===95||Et(E)?(n.consume(E),H):ge(E)?(f=me,I(E)):Ae(E)?(n.consume(E),me):_(E)}function H(E){return E===45||E===46||E===58||E===95||St(E)?(n.consume(E),H):ie(E)}function ie(E){return E===61?(n.consume(E),ne):ge(E)?(f=ie,I(E)):Ae(E)?(n.consume(E),ie):me(E)}function ne(E){return E===null||E===60||E===61||E===62||E===96?i(E):E===34||E===39?(n.consume(E),s=E,be):ge(E)?(f=ne,I(E)):Ae(E)?(n.consume(E),ne):(n.consume(E),se)}function be(E){return E===s?(n.consume(E),s=void 0,W):E===null?i(E):ge(E)?(f=be,I(E)):(n.consume(E),be)}function se(E){return E===null||E===34||E===39||E===60||E===61||E===96?i(E):E===47||E===62||Ie(E)?me(E):(n.consume(E),se)}function W(E){return E===47||E===62||Ie(E)?me(E):i(E)}function _(E){return E===62?(n.consume(E),n.exit("htmlTextData"),n.exit("htmlText"),a):i(E)}function I(E){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),ce}function ce(E){return Ae(E)?Le(n,ve,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):ve(E)}function ve(E){return n.enter("htmlTextData"),f(E)}}const Oc={name:"labelEnd",resolveAll:h2,resolveTo:d2,tokenize:m2},o2={tokenize:p2},c2={tokenize:g2},f2={tokenize:x2};function h2(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&&Qt(n,0,n.length,i),n}function d2(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}},y={type:"labelText",start:{...n[c+u+2][1].end},end:{...n[f-2][1].start}};return d=[["enter",p,a],["enter",m,a]],d=ln(d,n.slice(c+1,c+u+3)),d=ln(d,[["enter",y,a]]),d=ln(d,yu(a.parser.constructs.insideSpan.null,n.slice(c+u+4,f-3),a)),d=ln(d,[["exit",y,a],n[f-2],n[f-1],["exit",m,a]]),d=ln(d,n.slice(f+1)),d=ln(d,[["exit",p,a]]),Qt(n,c,n.length,d),n}function m2(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?g(S):(f=u.parser.defined.includes(cn(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(o2,y,f?y:g)(S):S===91?n.attempt(c2,y,f?m:g)(S):f?y(S):g(S)}function m(S){return n.attempt(f2,y,g)(S)}function y(S){return a(S)}function g(S){return c._balanced=!0,i(S)}}function p2(n,a,i){return u;function u(g){return n.enter("resource"),n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),s}function s(g){return Ie(g)?Da(n,c)(g):c(g)}function c(g){return g===41?y(g):O0(n,f,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function f(g){return Ie(g)?Da(n,p)(g):y(g)}function d(g){return i(g)}function p(g){return g===34||g===39||g===40?R0(n,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function m(g){return Ie(g)?Da(n,y)(g):y(g)}function y(g){return g===41?(n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),n.exit("resource"),a):i(g)}}function g2(n,a,i){const u=this;return s;function s(d){return D0.call(u,n,c,f,"reference","referenceMarker","referenceString")(d)}function c(d){return u.parser.defined.includes(cn(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?a(d):i(d)}function f(d){return i(d)}}function x2(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 y2={name:"labelStartImage",resolveAll:Oc.resolveAll,tokenize:b2};function b2(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 v2={name:"labelStartLink",resolveAll:Oc.resolveAll,tokenize:S2};function S2(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 Fo={name:"lineEnding",tokenize:z2};function z2(n,a){return i;function i(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),Le(n,a,"linePrefix")}}const ou={name:"thematicBreak",tokenize:k2};function k2(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||ge(m))?(n.exit("thematicBreak"),a(m)):i(m)}function p(m){return m===s?(n.consume(m),u++,p):(n.exit("thematicBreakSequence"),Ae(m)?Le(n,d,"whitespace")(m):d(m))}}const Dt={continuation:{tokenize:C2},exit:j2,name:"list",tokenize:T2},w2={partial:!0,tokenize:A2},E2={partial:!0,tokenize:N2};function T2(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:hc(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(ou,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 hc(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:y,n.attempt(w2,S,g))}function y(v){return u.containerState.initialBlankLine=!0,c++,S(v)}function g(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 C2(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,Le(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(E2,a,f)(d))}function f(d){return u.containerState._closeFlow=!0,u.interrupt=void 0,Le(n,n.attempt(Dt,a,i),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function N2(n,a,i){const u=this;return Le(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 j2(n){n.exit(this.containerState.type)}function A2(n,a,i){const u=this;return Le(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 Sp={name:"setextUnderline",resolveTo:M2,tokenize:_2};function M2(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 _2(n,a,i){const u=this;let s;return c;function c(m){let y=u.events.length,g;for(;y--;)if(u.events[y][1].type!=="lineEnding"&&u.events[y][1].type!=="linePrefix"&&u.events[y][1].type!=="content"){g=u.events[y][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||g)?(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)?Le(n,p,"lineSuffix")(m):p(m))}function p(m){return m===null||ge(m)?(n.exit("setextHeadingLine"),a(m)):i(m)}}const O2={tokenize:D2};function D2(n){const a=this,i=n.attempt(qa,u,n.attempt(this.parser.constructs.flowInitial,s,Le(n,n.attempt(this.parser.constructs.flow,s,n.attempt(Hv,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 R2={resolveAll:U0()},L2=L0("string"),U2=L0("text");function L0(n){return{resolveAll:U0(n==="text"?B2: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(y){return m(y)?c(y):d(y)}function d(y){if(y===null){i.consume(y);return}return i.enter("data"),i.consume(y),p}function p(y){return m(y)?(i.exit("data"),c(y)):(i.consume(y),p)}function m(y){if(y===null)return!0;const g=s[y];let S=-1;if(g)for(;++S<g.length;){const v=g[S];if(!v.previous||v.previous.call(u,u.previous))return!0}return!1}}}function U0(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 B2(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 H2={42:Dt,43:Dt,45:Dt,48:Dt,49:Dt,50:Dt,51:Dt,52:Dt,53:Dt,54:Dt,55:Dt,56:Dt,57:Dt,62:j0},q2={91:Gv},Y2={[-2]:Qo,[-1]:Qo,32:Qo},V2={35:Iv,42:ou,45:[Sp,ou],60:e2,61:Sp,95:ou,96:bp,126:bp},X2={38:M0,92:A0},G2={[-5]:Fo,[-4]:Fo,[-3]:Fo,33:y2,38:M0,42:dc,60:[vv,u2],91:v2,92:[Jv,A0],93:Oc,95:dc,96:Ov},Q2={null:[dc,R2]},F2={null:[42,95]},Z2={null:[]},J2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:F2,contentInitial:q2,disable:Z2,document:H2,flow:V2,flowInitial:Y2,insideSpan:Q2,string:X2,text:G2},Symbol.toStringTag,{value:"Module"}));function K2(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:$(le),check:$(O),consume:q,enter:U,exit:te,interrupt:$(O,{interrupt:!0})},m={code:null,containerState:{},defineSkip:A,events:[],now:w,parser:n,previous:null,sliceSerialize:S,sliceStream:v,write:g};let y=a.tokenize.call(m,p);return a.resolveAll&&c.push(a),m;function g(ie){return f=ln(f,ie),L(),f[f.length-1]!==null?[]:(re(a,0),m.events=yu(c,m.events,m),m.events)}function S(ie,ne){return $2(v(ie),ne)}function v(ie){return I2(f,ie)}function w(){const{_bufferIndex:ie,_index:ne,line:be,column:se,offset:W}=u;return{_bufferIndex:ie,_index:ne,line:be,column:se,offset:W}}function A(ie){s[ie.line]=ie.column,H()}function L(){let ie;for(;u._index<f.length;){const ne=f[u._index];if(typeof ne=="string")for(ie=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===ie&&u._bufferIndex<ne.length;)j(ne.charCodeAt(u._bufferIndex));else j(ne)}}function j(ie){y=y(ie)}function q(ie){ge(ie)?(u.line++,u.column=1,u.offset+=ie===-3?2:1,H()):ie!==-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=ie}function U(ie,ne){const be=ne||{};return be.type=ie,be.start=w(),m.events.push(["enter",be,m]),d.push(be),be}function te(ie){const ne=d.pop();return ne.end=w(),m.events.push(["exit",ne,m]),ne}function le(ie,ne){re(ie,ne.from)}function O(ie,ne){ne.restore()}function $(ie,ne){return be;function be(se,W,_){let I,ce,ve,E;return Array.isArray(se)?V(se):"tokenize"in se?V([se]):C(se);function C(oe){return ze;function ze(Ve){const Ue=Ve!==null&&oe[Ve],lt=Ve!==null&&oe.null,kt=[...Array.isArray(Ue)?Ue:Ue?[Ue]:[],...Array.isArray(lt)?lt:lt?[lt]:[]];return V(kt)(Ve)}}function V(oe){return I=oe,ce=0,oe.length===0?_:k(oe[ce])}function k(oe){return ze;function ze(Ve){return E=me(),ve=oe,oe.partial||(m.currentConstruct=oe),oe.name&&m.parser.constructs.disable.null.includes(oe.name)?ue():oe.tokenize.call(ne?Object.assign(Object.create(m),ne):m,p,K,ue)(Ve)}}function K(oe){return ie(ve,E),W}function ue(oe){return E.restore(),++ce<I.length?k(I[ce]):_}}}function re(ie,ne){ie.resolveAll&&!c.includes(ie)&&c.push(ie),ie.resolve&&Qt(m.events,ne,m.events.length-ne,ie.resolve(m.events.slice(ne),m)),ie.resolveTo&&(m.events=ie.resolveTo(m.events,m))}function me(){const ie=w(),ne=m.previous,be=m.currentConstruct,se=m.events.length,W=Array.from(d);return{from:se,restore:_};function _(){u=ie,m.previous=ne,m.currentConstruct=be,m.events.length=se,d=W,H()}}function H(){u.line in s&&u.column<2&&(u.column=s[u.line],u.offset+=s[u.line]-1)}}function I2(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 $2(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 W2(n){const u={constructs:C0([J2,...(n||{}).extensions||[]]),content:s(dv),defined:[],document:s(pv),flow:s(O2),lazy:{},string:s(L2),text:s(U2)};return u;function s(c){return f;function f(d){return K2(u,c,d)}}}function P2(n){for(;!_0(n););return n}const zp=/[\0\t\n\r]/g;function eS(){let n=1,a="",i=!0,u;return s;function s(c,f,d){const p=[];let m,y,g,S,v;for(c=a+(typeof c=="string"?c.toString():new TextDecoder(f||void 0).decode(c)),g=0,a="",i&&(c.charCodeAt(0)===65279&&g++,i=void 0);g<c.length;){if(zp.lastIndex=g,m=zp.exec(c),S=m&&m.index!==void 0?m.index:c.length,v=c.charCodeAt(S),!m){a=c.slice(g);break}if(v===10&&g===S&&u)p.push(-3),u=void 0;else switch(u&&(p.push(-5),u=void 0),g<S&&(p.push(c.slice(g,S)),n+=S-g),v){case 0:{p.push(65533),n++;break}case 9:{for(y=Math.ceil(n/4)*4,p.push(-2);n++<y;)p.push(-1);break}case 10:{p.push(-4),n=1;break}default:u=!0,n=1}g=S+1}return d&&(u&&p.push(-5),a&&p.push(a),p.push(null)),p}}const tS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function nS(n){return n.replace(tS,lS)}function lS(n,a,i){if(a)return a;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),c=s===120||s===88;return N0(i.slice(c?2:1),c?16:10)}return _c(i)||n}const B0={}.hasOwnProperty;function iS(n,a,i){return typeof a!="string"&&(i=a,a=void 0),aS(i)(P2(W2(i).document().write(eS()(n,a,!0))))}function aS(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Hn),autolinkProtocol:me,autolinkEmail:me,atxHeading:c(Un),blockQuote:c(lt),characterEscape:me,characterReference:me,codeFenced:c(kt),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:c(kt,f),codeText:c(an,f),codeTextData:me,data:me,codeFlowValue:me,definition:c(Ul),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:c(Ft),hardBreakEscape:c(Bn),hardBreakTrailing:c(Bn),htmlFlow:c(Bl,f),htmlFlowData:me,htmlText:c(Bl,f),htmlTextData:me,image:c(Hl),label:f,link:c(Hn),listItem:c(pl),listItemValue:S,listOrdered:c(qn,g),listUnordered:c(qn),paragraph:c(Di),reference:k,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:c(Un),strong:c(Yn),thematicBreak:c(Ri)},exit:{atxHeading:p(),atxHeadingSequence:le,autolink:p(),autolinkEmail:Ue,autolinkProtocol:Ve,blockQuote:p(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:oe,characterReference:ze,codeFenced:p(L),codeFencedFence:A,codeFencedFenceInfo:v,codeFencedFenceMeta:w,codeFlowValue:H,codeIndented:p(j),codeText:p(W),codeTextData:H,data:H,definition:p(),definitionDestinationString:te,definitionLabelString:q,definitionTitleString:U,emphasis:p(),hardBreakEscape:p(ne),hardBreakTrailing:p(ne),htmlFlow:p(be),htmlFlowData:H,htmlText:p(se),htmlTextData:H,image:p(I),label:ve,labelText:ce,lineEnding:ie,link:p(_),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:K,resourceDestinationString:E,resourceTitleString:C,resource:V,setextHeading:p(re),setextHeadingLineSequence:$,setextHeadingText:O,strong:p(),thematicBreak:p()}};H0(a,(n||{}).mdastExtensions||[]);const i={};return u;function u(G){let ae={type:"root",children:[]};const ye={stack:[ae],tokenStack:[],config:a,enter:d,exit:m,buffer:f,resume:y,data:i},Q=[];let P=-1;for(;++P<G.length;)if(G[P][1].type==="listOrdered"||G[P][1].type==="listUnordered")if(G[P][0]==="enter")Q.push(P);else{const he=Q.pop();P=s(G,he,P)}for(P=-1;++P<G.length;){const he=a[G[P][0]];B0.call(he,G[P][1].type)&&he[G[P][1].type].call(Object.assign({sliceSerialize:G[P][2].sliceSerialize},ye),G[P][1])}if(ye.tokenStack.length>0){const he=ye.tokenStack[ye.tokenStack.length-1];(he[1]||kp).call(ye,void 0,he[0])}for(ae.position={start:hl(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:hl(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},P=-1;++P<a.transforms.length;)ae=a.transforms[P](ae)||ae;return ae}function s(G,ae,ye){let Q=ae-1,P=-1,he=!1,Be,Te,Ce,Je;for(;++Q<=ye;){const De=G[Q];switch(De[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{De[0]==="enter"?P++:P--,Je=void 0;break}case"lineEndingBlank":{De[0]==="enter"&&(Be&&!Je&&!P&&!Ce&&(Ce=Q),Je=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Je=void 0}if(!P&&De[0]==="enter"&&De[1].type==="listItemPrefix"||P===-1&&De[0]==="exit"&&(De[1].type==="listUnordered"||De[1].type==="listOrdered")){if(Be){let rn=Q;for(Te=void 0;rn--;){const Tt=G[rn];if(Tt[1].type==="lineEnding"||Tt[1].type==="lineEndingBlank"){if(Tt[0]==="exit")continue;Te&&(G[Te][1].type="lineEndingBlank",he=!0),Tt[1].type="lineEnding",Te=rn}else if(!(Tt[1].type==="linePrefix"||Tt[1].type==="blockQuotePrefix"||Tt[1].type==="blockQuotePrefixWhitespace"||Tt[1].type==="blockQuoteMarker"||Tt[1].type==="listItemIndent"))break}Ce&&(!Te||Ce<Te)&&(Be._spread=!0),Be.end=Object.assign({},Te?G[Te][1].start:De[1].end),G.splice(Te||Q,0,["exit",Be,De[2]]),Q++,ye++}if(De[1].type==="listItemPrefix"){const rn={type:"listItem",_spread:!1,start:Object.assign({},De[1].start),end:void 0};Be=rn,G.splice(Q,0,["enter",rn,De[2]]),Q++,ye++,Ce=void 0,Je=!0}}}return G[ae][1]._spread=he,ye}function c(G,ae){return ye;function ye(Q){d.call(this,G(Q),Q),ae&&ae.call(this,Q)}}function f(){this.stack.push({type:"fragment",children:[]})}function d(G,ae,ye){this.stack[this.stack.length-1].children.push(G),this.stack.push(G),this.tokenStack.push([ae,ye||void 0]),G.position={start:hl(ae.start),end:void 0}}function p(G){return ae;function ae(ye){G&&G.call(this,ye),m.call(this,ye)}}function m(G,ae){const ye=this.stack.pop(),Q=this.tokenStack.pop();if(Q)Q[0].type!==G.type&&(ae?ae.call(this,G,Q[0]):(Q[1]||kp).call(this,G,Q[0]));else throw new Error("Cannot close `"+G.type+"` ("+Oa({start:G.start,end:G.end})+"): it’s not open");ye.position.end=hl(G.end)}function y(){return Mc(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function S(G){if(this.data.expectingFirstListItemValue){const ae=this.stack[this.stack.length-2];ae.start=Number.parseInt(this.sliceSerialize(G),10),this.data.expectingFirstListItemValue=void 0}}function v(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.lang=G}function w(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.meta=G}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function L(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.value=G.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function j(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.value=G.replace(/(\r?\n|\r)$/g,"")}function q(G){const ae=this.resume(),ye=this.stack[this.stack.length-1];ye.label=ae,ye.identifier=cn(this.sliceSerialize(G)).toLowerCase()}function U(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.title=G}function te(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.url=G}function le(G){const ae=this.stack[this.stack.length-1];if(!ae.depth){const ye=this.sliceSerialize(G).length;ae.depth=ye}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function $(G){const ae=this.stack[this.stack.length-1];ae.depth=this.sliceSerialize(G).codePointAt(0)===61?1:2}function re(){this.data.setextHeadingSlurpLineEnding=void 0}function me(G){const ye=this.stack[this.stack.length-1].children;let Q=ye[ye.length-1];(!Q||Q.type!=="text")&&(Q=mt(),Q.position={start:hl(G.start),end:void 0},ye.push(Q)),this.stack.push(Q)}function H(G){const ae=this.stack.pop();ae.value+=this.sliceSerialize(G),ae.position.end=hl(G.end)}function ie(G){const ae=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ye=ae.children[ae.children.length-1];ye.position.end=hl(G.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(ae.type)&&(me.call(this,G),H.call(this,G))}function ne(){this.data.atHardBreak=!0}function be(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.value=G}function se(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.value=G}function W(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.value=G}function _(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=ae,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function I(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=ae,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function ce(G){const ae=this.sliceSerialize(G),ye=this.stack[this.stack.length-2];ye.label=nS(ae),ye.identifier=cn(ae).toLowerCase()}function ve(){const G=this.stack[this.stack.length-1],ae=this.resume(),ye=this.stack[this.stack.length-1];if(this.data.inReference=!0,ye.type==="link"){const Q=G.children;ye.children=Q}else ye.alt=ae}function E(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.url=G}function C(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.title=G}function V(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function K(G){const ae=this.resume(),ye=this.stack[this.stack.length-1];ye.label=ae,ye.identifier=cn(this.sliceSerialize(G)).toLowerCase(),this.data.referenceType="full"}function ue(G){this.data.characterReferenceType=G.type}function oe(G){const ae=this.sliceSerialize(G),ye=this.data.characterReferenceType;let Q;ye?(Q=N0(ae,ye==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Q=_c(ae);const P=this.stack[this.stack.length-1];P.value+=Q}function ze(G){const ae=this.stack.pop();ae.position.end=hl(G.end)}function Ve(G){H.call(this,G);const ae=this.stack[this.stack.length-1];ae.url=this.sliceSerialize(G)}function Ue(G){H.call(this,G);const ae=this.stack[this.stack.length-1];ae.url="mailto:"+this.sliceSerialize(G)}function lt(){return{type:"blockquote",children:[]}}function kt(){return{type:"code",lang:null,meta:null,value:""}}function an(){return{type:"inlineCode",value:""}}function Ul(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ft(){return{type:"emphasis",children:[]}}function Un(){return{type:"heading",depth:0,children:[]}}function Bn(){return{type:"break"}}function Bl(){return{type:"html",value:""}}function Hl(){return{type:"image",title:null,url:"",alt:null}}function Hn(){return{type:"link",title:null,url:"",children:[]}}function qn(G){return{type:"list",ordered:G.type==="listOrdered",start:null,spread:G._spread,children:[]}}function pl(G){return{type:"listItem",spread:G._spread,checked:null,children:[]}}function Di(){return{type:"paragraph",children:[]}}function Yn(){return{type:"strong",children:[]}}function mt(){return{type:"text",value:""}}function Ri(){return{type:"thematicBreak"}}}function hl(n){return{line:n.line,column:n.column,offset:n.offset}}function H0(n,a){let i=-1;for(;++i<a.length;){const u=a[i];Array.isArray(u)?H0(n,u):rS(n,u)}}function rS(n,a){let i;for(i in a)if(B0.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 kp(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Oa({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Oa({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Oa({start:a.start,end:a.end})+") is still open")}function uS(n){const a=this;a.parser=i;function i(u){return iS(u,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function sS(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 oS(n,a){const i={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,i),[n.applyData(a,i),{type:"text",value:`
261
- `}]}function cS(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 fS(n,a){const i={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function hS(n,a){const i={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function dS(n,a){const i=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(a.identifier).toUpperCase(),s=_i(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 mS(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 pS(n,a){if(n.options.allowDangerousHtml){const i={type:"raw",value:a.value};return n.patch(a,i),n.applyData(a,i)}}function q0(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 gS(n,a){const i=String(a.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return q0(n,a);const s={src:_i(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 xS(n,a){const i={src:_i(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 yS(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 bS(n,a){const i=String(a.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return q0(n,a);const s={href:_i(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 vS(n,a){const i={href:_i(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 SS(n,a,i){const u=n.all(a),s=i?zS(i):Y0(a),c={},f=[];if(typeof a.checked=="boolean"){const y=u[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},u.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.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 y=u[d];(s||d!==0||y.type!=="element"||y.tagName!=="p")&&f.push({type:"text",value:`
263
- `}),y.type==="element"&&y.tagName==="p"&&!s?f.push(...y.children):f.push(y)}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 zS(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=Y0(i[u])}return a}function Y0(n){const a=n.spread;return a??n.children.length>1}function kS(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 wS(n,a){const i={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function ES(n,a){const i={type:"root",children:n.wrap(n.all(a))};return n.patch(a,i),n.applyData(a,i)}function TS(n,a){const i={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function CS(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=Cc(a.children[1]),p=v0(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 NS(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 g=a.children[p],S={},v=f?f[p]:void 0;v&&(S.align=v);let w={type:"element",tagName:c,properties:S,children:[]};g&&(w.children=n.all(g),n.patch(g,w),w=n.applyData(g,w)),m.push(w)}const y={type:"element",tagName:"tr",properties:{},children:n.wrap(m,!0)};return n.patch(a,y),n.applyData(a,y)}function jS(n,a){const i={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}const wp=9,Ep=32;function AS(n){const a=String(n),i=/\r?\n|\r/g;let u=i.exec(a),s=0;const c=[];for(;u;)c.push(Tp(a.slice(s,u.index),s>0,!0),u[0]),s=u.index+u[0].length,u=i.exec(a);return c.push(Tp(a.slice(s),s>0,!1)),c.join("")}function Tp(n,a,i){let u=0,s=n.length;if(a){let c=n.codePointAt(u);for(;c===wp||c===Ep;)u++,c=n.codePointAt(u)}if(i){let c=n.codePointAt(s-1);for(;c===wp||c===Ep;)s--,c=n.codePointAt(s-1)}return s>u?n.slice(u,s):""}function MS(n,a){const i={type:"text",value:AS(String(a.value))};return n.patch(a,i),n.applyData(a,i)}function _S(n,a){const i={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,i),n.applyData(a,i)}const OS={blockquote:sS,break:oS,code:cS,delete:fS,emphasis:hS,footnoteReference:dS,heading:mS,html:pS,imageReference:gS,image:xS,inlineCode:yS,linkReference:bS,link:vS,listItem:SS,list:kS,paragraph:wS,root:ES,strong:TS,table:CS,tableCell:jS,tableRow:NS,text:MS,thematicBreak:_S,toml:au,yaml:au,definition:au,footnoteDefinition:au};function au(){}const V0=-1,bu=0,Ra=1,du=2,Dc=3,Rc=4,Lc=5,Uc=6,X0=7,G0=8,Cp=typeof self=="object"?self:globalThis,DS=(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 bu:case V0:return i(f,s);case Ra:{const d=i([],s);for(const p of f)d.push(u(p));return d}case du:{const d=i({},s);for(const[p,m]of f)d[u(p)]=u(m);return d}case Dc:return i(new Date(f),s);case Rc:{const{source:d,flags:p}=f;return i(new RegExp(d,p),s)}case Lc:{const d=i(new Map,s);for(const[p,m]of f)d.set(u(p),u(m));return d}case Uc:{const d=i(new Set,s);for(const p of f)d.add(u(p));return d}case X0:{const{name:d,message:p}=f;return i(new Cp[d](p),s)}case G0: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 Cp[c](f),s)};return u},Np=n=>DS(new Map,n)(0),Ti="",{toString:RS}={},{keys:LS}=Object,_a=n=>{const a=typeof n;if(a!=="object"||!n)return[bu,a];const i=RS.call(n).slice(8,-1);switch(i){case"Array":return[Ra,Ti];case"Object":return[du,Ti];case"Date":return[Dc,Ti];case"RegExp":return[Rc,Ti];case"Map":return[Lc,Ti];case"Set":return[Uc,Ti];case"DataView":return[Ra,i]}return i.includes("Array")?[Ra,i]:i.includes("Error")?[X0,i]:[du,i]},ru=([n,a])=>n===bu&&(a==="function"||a==="symbol"),US=(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]=_a(f);switch(d){case bu:{let y=f;switch(p){case"bigint":d=G0,y=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);y=null;break;case"undefined":return s([V0],f)}return s([d,y],f)}case Ra:{if(p){let S=f;return p==="DataView"?S=new Uint8Array(f.buffer):p==="ArrayBuffer"&&(S=new Uint8Array(f)),s([p,[...S]],f)}const y=[],g=s([d,y],f);for(const S of f)y.push(c(S));return g}case du:{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 y=[],g=s([d,y],f);for(const S of LS(f))(n||!ru(_a(f[S])))&&y.push([c(S),c(f[S])]);return g}case Dc:return s([d,f.toISOString()],f);case Rc:{const{source:y,flags:g}=f;return s([d,{source:y,flags:g}],f)}case Lc:{const y=[],g=s([d,y],f);for(const[S,v]of f)(n||!(ru(_a(S))||ru(_a(v))))&&y.push([c(S),c(v)]);return g}case Uc:{const y=[],g=s([d,y],f);for(const S of f)(n||!ru(_a(S)))&&y.push(c(S));return g}}const{message:m}=f;return s([d,{name:p,message:m}],f)};return c},jp=(n,{json:a,lossy:i}={})=>{const u=[];return US(!(a||i),!!a,new Map,u)(n),u},mu=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?Np(jp(n,a)):structuredClone(n):(n,a)=>Np(jp(n,a));function BS(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 HS(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function qS(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=n.options.footnoteBackContent||BS,u=n.options.footnoteBackLabel||HS,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 y=n.all(m),g=String(m.identifier).toUpperCase(),S=_i(g.toLowerCase());let v=0;const w=[],A=n.footnoteCounts.get(g);for(;A!==void 0&&++v<=A;){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 L=y[y.length-1];if(L&&L.type==="element"&&L.tagName==="p"){const q=L.children[L.children.length-1];q&&q.type==="text"?q.value+=" ":L.children.push({type:"text",value:" "}),L.children.push(...w)}else y.push(...w);const j={type:"element",tagName:"li",properties:{id:a+"fn-"+S},children:n.wrap(y,!0)};n.patch(m,j),d.push(j)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...mu(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 vu=(function(n){if(n==null)return GS;if(typeof n=="function")return Su(n);if(typeof n=="object")return Array.isArray(n)?YS(n):VS(n);if(typeof n=="string")return XS(n);throw new Error("Expected function, string, or object as test")});function YS(n){const a=[];let i=-1;for(;++i<n.length;)a[i]=vu(n[i]);return Su(u);function u(...s){let c=-1;for(;++c<a.length;)if(a[c].apply(this,s))return!0;return!1}}function VS(n){const a=n;return Su(i);function i(u){const s=u;let c;for(c in n)if(s[c]!==a[c])return!1;return!0}}function XS(n){return Su(a);function a(i){return i&&i.type===n}}function Su(n){return a;function a(i,u,s){return!!(QS(i)&&n.call(this,i,typeof u=="number"?u:void 0,s||void 0))}}function GS(){return!0}function QS(n){return n!==null&&typeof n=="object"&&"type"in n}const Q0=[],FS=!0,mc=!1,ZS="skip";function F0(n,a,i,u){let s;typeof a=="function"&&typeof i!="function"?(u=i,i=a):s=a;const c=vu(s),f=u?-1:1;d(n,void 0,[])();function d(p,m,y){const g=p&&typeof p=="object"?p:{};if(typeof g.type=="string"){const v=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(p.type+(v?"<"+v+">":""))+")"})}return S;function S(){let v=Q0,w,A,L;if((!a||c(p,m,y[y.length-1]||void 0))&&(v=JS(i(p,y)),v[0]===mc))return v;if("children"in p&&p.children){const j=p;if(j.children&&v[0]!==ZS)for(A=(u?j.children.length:-1)+f,L=y.concat(j);A>-1&&A<j.children.length;){const q=j.children[A];if(w=d(q,A,L)(),w[0]===mc)return w;A=typeof w[1]=="number"?w[1]:A+f}}return v}}}function JS(n){return Array.isArray(n)?n:typeof n=="number"?[FS,n]:n==null?Q0:[n]}function Bc(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),F0(n,c,d,s);function d(p,m){const y=m[m.length-1],g=y?y.children.indexOf(p):void 0;return f(p,g,y)}}const pc={}.hasOwnProperty,KS={};function IS(n,a){const i=a||KS,u=new Map,s=new Map,c=new Map,f={...OS,...i.handlers},d={all:m,applyData:WS,definitionById:u,footnoteById:s,footnoteCounts:c,footnoteOrder:[],handlers:f,one:p,options:i,patch:$S,wrap:ez};return Bc(n,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?u:s,S=String(y.identifier).toUpperCase();g.has(S)||g.set(S,y)}}),d;function p(y,g){const S=y.type,v=d.handlers[S];if(pc.call(d.handlers,S)&&v)return v(d,y,g);if(d.options.passThrough&&d.options.passThrough.includes(S)){if("children"in y){const{children:A,...L}=y,j=mu(L);return j.children=d.all(y),j}return mu(y)}return(d.options.unknownHandler||PS)(d,y,g)}function m(y){const g=[];if("children"in y){const S=y.children;let v=-1;for(;++v<S.length;){const w=d.one(S[v],y);if(w){if(v&&S[v-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=Ap(w.value)),!Array.isArray(w)&&w.type==="element")){const A=w.children[0];A&&A.type==="text"&&(A.value=Ap(A.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function $S(n,a){n.position&&(a.position=Hb(n))}function WS(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,mu(c)),"children"in i&&i.children&&s!==null&&s!==void 0&&(i.children=s)}return i}function PS(n,a){const i=a.data||{},u="value"in a&&!(pc.call(i,"hProperties")||pc.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 ez(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 Ap(n){let a=0,i=n.charCodeAt(a);for(;i===9||i===32;)a++,i=n.charCodeAt(a);return n.slice(a)}function Mp(n,a){const i=IS(n,a),u=i.one(n,void 0),s=qS(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 tz(n,a){return n&&"run"in n?async function(i,u){const s=Mp(i,{file:u,...a});await n.run(s,u)}:function(i,u){return Mp(i,{file:u,...n||a})}}function _p(n){if(n)throw n}var Zo,Op;function nz(){if(Op)return Zo;Op=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 y=n.call(m,"constructor"),g=m.constructor&&m.constructor.prototype&&n.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!g)return!1;var S;for(S in m);return typeof S>"u"||n.call(m,S)},f=function(m,y){i&&y.name==="__proto__"?i(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},d=function(m,y){if(y==="__proto__")if(n.call(m,y)){if(u)return u(m,y).value}else return;return m[y]};return Zo=function p(){var m,y,g,S,v,w,A=arguments[0],L=1,j=arguments.length,q=!1;for(typeof A=="boolean"&&(q=A,A=arguments[1]||{},L=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});L<j;++L)if(m=arguments[L],m!=null)for(y in m)g=d(A,y),S=d(m,y),A!==S&&(q&&S&&(c(S)||(v=s(S)))?(v?(v=!1,w=g&&s(g)?g:[]):w=g&&c(g)?g:{},f(A,{name:y,newValue:p(q,w,S)})):typeof S<"u"&&f(A,{name:y,newValue:S}));return A},Zo}var lz=nz();const Jo=Pp(lz);function gc(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 iz(){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 y=n[++c];let g=-1;if(p){f(p);return}for(;++g<s.length;)(m[g]===null||m[g]===void 0)&&(m[g]=s[g]);s=m,y?az(y,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 az(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 y=m;if(d&&i)throw y;return s(y)}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 pn={basename:rz,dirname:uz,extname:sz,join:oz,sep:"/"};function rz(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Ya(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 uz(n){if(Ya(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 sz(n){Ya(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 oz(...n){let a=-1,i;for(;++a<n.length;)Ya(n[a]),n[a]&&(i=i===void 0?n[a]:i+"/"+n[a]);return i===void 0?".":cz(i)}function cz(n){Ya(n);const a=n.codePointAt(0)===47;let i=fz(n,!a);return i.length===0&&!a&&(i="."),i.length>0&&n.codePointAt(n.length-1)===47&&(i+="/"),a?"/"+i:i}function fz(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 Ya(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const hz={cwd:dz};function dz(){return"/"}function xc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function mz(n){if(typeof n=="string")n=new URL(n);else if(!xc(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 pz(n)}function pz(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 Ko=["history","path","basename","stem","extname","dirname"];class Z0{constructor(a){let i;a?xc(a)?i={path:a}:typeof a=="string"||gz(a)?i={value:a}:i=a:i={},this.cwd="cwd"in i?"":hz.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Ko.length;){const c=Ko[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)Ko.includes(s)||(this[s]=i[s])}get basename(){return typeof this.path=="string"?pn.basename(this.path):void 0}set basename(a){$o(a,"basename"),Io(a,"basename"),this.path=pn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?pn.dirname(this.path):void 0}set dirname(a){Dp(this.basename,"dirname"),this.path=pn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?pn.extname(this.path):void 0}set extname(a){if(Io(a,"extname"),Dp(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=pn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){xc(a)&&(a=mz(a)),$o(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?pn.basename(this.path,this.extname):void 0}set stem(a){$o(a,"stem"),Io(a,"stem"),this.path=pn.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 zt(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 Io(n,a){if(n&&n.includes(pn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+pn.sep+"`")}function $o(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function Dp(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function gz(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const xz=(function(n){const u=this.constructor.prototype,s=u[n],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,u),c}),yz={}.hasOwnProperty;class Hc extends xz{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=iz()}copy(){const a=new Hc;let i=-1;for(;++i<this.attachers.length;){const u=this.attachers[i];a.use(...u)}return a.data(Jo(!0,{},this.namespace)),a}data(a,i){return typeof a=="string"?arguments.length===2?(ec("data",this.frozen),this.namespace[a]=i,this):yz.call(this.namespace,a)&&this.namespace[a]||void 0:a?(ec("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=uu(a),u=this.parser||this.Parser;return Wo("parse",u),u(String(i),i)}process(a,i){const u=this;return this.freeze(),Wo("process",this.parser||this.Parser),Po("process",this.compiler||this.Compiler),i?s(void 0,i):new Promise(s);function s(c,f){const d=uu(a),p=u.parse(d);u.run(p,d,function(y,g,S){if(y||!g||!S)return m(y);const v=g,w=u.stringify(v,S);Sz(w)?S.value=w:S.result=w,m(y,S)});function m(y,g){y||!g?f(y):c?c(g):i(void 0,g)}}}processSync(a){let i=!1,u;return this.freeze(),Wo("processSync",this.parser||this.Parser),Po("processSync",this.compiler||this.Compiler),this.process(a,s),Lp("processSync","process",i),u;function s(c,f){i=!0,_p(c),u=f}}run(a,i,u){Rp(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=uu(i);s.run(a,p,m);function m(y,g,S){const v=g||a;y?d(y):f?f(v):u(void 0,v,S)}}}runSync(a,i){let u=!1,s;return this.run(a,i,c),Lp("runSync","run",u),s;function c(f,d){_p(f),s=d,u=!0}}stringify(a,i){this.freeze();const u=uu(i),s=this.compiler||this.Compiler;return Po("stringify",s),Rp(a),s(a,u)}use(a,...i){const u=this.attachers,s=this.namespace;if(ec("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[y,...g]=m;p(y,g)}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=Jo(!0,s.settings,m.settings))}function d(m){let y=-1;if(m!=null)if(Array.isArray(m))for(;++y<m.length;){const g=m[y];c(g)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,y){let g=-1,S=-1;for(;++g<u.length;)if(u[g][0]===m){S=g;break}if(S===-1)u.push([m,...y]);else if(y.length>0){let[v,...w]=y;const A=u[S][1];gc(A)&&gc(v)&&(v=Jo(!0,A,v)),u[S]=[m,v,...w]}}}}const bz=new Hc().freeze();function Wo(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Po(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function ec(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 Rp(n){if(!gc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Lp(n,a,i){if(!i)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function uu(n){return vz(n)?n:new Z0(n)}function vz(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function Sz(n){return typeof n=="string"||zz(n)}function zz(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const kz="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Up=[],Bp={allowDangerousHtml:!0},wz=/^(https?|ircs?|mailto|xmpp)$/i,Ez=[{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 Tz(n){const a=Cz(n),i=Nz(n);return jz(a.runSync(a.parse(i),i),n)}function Cz(n){const a=n.rehypePlugins||Up,i=n.remarkPlugins||Up,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Bp}:Bp;return bz().use(uS).use(i).use(tz,u).use(a)}function Nz(n){const a=n.children||"",i=new Z0;return typeof a=="string"&&(i.value=a),i}function jz(n,a){const i=a.allowedElements,u=a.allowElement,s=a.components,c=a.disallowedElements,f=a.skipHtml,d=a.unwrapDisallowed,p=a.urlTransform||Az;for(const y of Ez)Object.hasOwn(a,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+kz+y.id,void 0);return Bc(n,m),Gb(n,{Fragment:x.Fragment,components:s,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function m(y,g,S){if(y.type==="raw"&&S&&typeof g=="number")return f?S.children.splice(g,1):S.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let v;for(v in Go)if(Object.hasOwn(Go,v)&&Object.hasOwn(y.properties,v)){const w=y.properties[v],A=Go[v];(A===null||A.includes(y.tagName))&&(y.properties[v]=p(String(w||""),v,y))}}if(y.type==="element"){let v=i?!i.includes(y.tagName):c?c.includes(y.tagName):!1;if(!v&&u&&typeof g=="number"&&(v=!u(y,g,S)),v&&S&&typeof g=="number")return d&&y.children?S.children.splice(g,1,...y.children):S.children.splice(g,1),g}}}function Az(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||wz.test(n.slice(0,a))?n:""}function Hp(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 Mz(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function _z(n,a,i){const s=vu((i||{}).ignore||[]),c=Oz(a);let f=-1;for(;++f<c.length;)F0(n,"text",d);function d(m,y){let g=-1,S;for(;++g<y.length;){const v=y[g],w=S?S.children:void 0;if(s(v,w?w.indexOf(v):void 0,S))return;S=v}if(S)return p(m,y)}function p(m,y){const g=y[y.length-1],S=c[f][0],v=c[f][1];let w=0;const L=g.children.indexOf(m);let j=!1,q=[];S.lastIndex=0;let U=S.exec(m.value);for(;U;){const te=U.index,le={index:U.index,input:U.input,stack:[...y,m]};let O=v(...U,le);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O===!1?S.lastIndex=te+1:(w!==te&&q.push({type:"text",value:m.value.slice(w,te)}),Array.isArray(O)?q.push(...O):O&&q.push(O),w=te+U[0].length,j=!0),!S.global)break;U=S.exec(m.value)}return j?(w<m.value.length&&q.push({type:"text",value:m.value.slice(w)}),g.children.splice(L,1,...q)):q=[m],L+q.length}}function Oz(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([Dz(s[0]),Rz(s[1])])}return a}function Dz(n){return typeof n=="string"?new RegExp(Mz(n),"g"):n}function Rz(n){return typeof n=="function"?n:function(){return n}}const tc="phrasing",nc=["autolink","link","image","label"];function Lz(){return{transforms:[Xz],enter:{literalAutolink:Bz,literalAutolinkEmail:lc,literalAutolinkHttp:lc,literalAutolinkWww:lc},exit:{literalAutolink:Vz,literalAutolinkEmail:Yz,literalAutolinkHttp:Hz,literalAutolinkWww:qz}}}function Uz(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:tc,notInConstruct:nc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:tc,notInConstruct:nc},{character:":",before:"[ps]",after:"\\/",inConstruct:tc,notInConstruct:nc}]}}function Bz(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function lc(n){this.config.enter.autolinkProtocol.call(this,n)}function Hz(n){this.config.exit.autolinkProtocol.call(this,n)}function qz(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 Yz(n){this.config.exit.autolinkEmail.call(this,n)}function Vz(n){this.exit(n)}function Xz(n){_z(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Gz],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Qz]],{ignore:["link","linkReference"]})}function Gz(n,a,i,u,s){let c="";if(!J0(s)||(/^w/i.test(a)&&(i=a+i,a="",c="http://"),!Fz(i)))return!1;const f=Zz(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 Qz(n,a,i,u){return!J0(u,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+i,children:[{type:"text",value:a+"@"+i}]}}function Fz(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 Zz(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=Hp(n,"(");let c=Hp(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 J0(n,a){const i=n.input.charCodeAt(n.index-1);return(n.index===0||Rl(i)||xu(i))&&(!a||i!==47)}K0.peek=nk;function Jz(){this.buffer()}function Kz(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function Iz(){this.buffer()}function $z(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function Wz(n){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=cn(this.sliceSerialize(n)).toLowerCase(),i.label=a}function Pz(n){this.exit(n)}function ek(n){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=cn(this.sliceSerialize(n)).toLowerCase(),i.label=a}function tk(n){this.exit(n)}function nk(){return"["}function K0(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 lk(){return{enter:{gfmFootnoteCallString:Jz,gfmFootnoteCall:Kz,gfmFootnoteDefinitionLabelString:Iz,gfmFootnoteDefinition:$z},exit:{gfmFootnoteCallString:Wz,gfmFootnoteCall:Pz,gfmFootnoteDefinitionLabelString:ek,gfmFootnoteDefinition:tk}}}function ik(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:i,footnoteReference:K0},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"),y=c.enter("label");return p+=d.move(c.safe(c.associationId(u),{before:p,after:"]"})),y(),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?I0:ak))),m(),p}}function ak(n,a,i){return a===0?n:I0(n,a,i)}function I0(n,a,i){return(i?"":" ")+n}const rk=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];$0.peek=fk;function uk(){return{canContainEols:["delete"],enter:{strikethrough:ok},exit:{strikethrough:ck}}}function sk(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:rk}],handlers:{delete:$0}}}function ok(n){this.enter({type:"delete",children:[]},n)}function ck(n){this.exit(n)}function $0(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 fk(){return"~"}function hk(n){return n.length}function dk(n,a){const i=a||{},u=(i.align||[]).concat(),s=i.stringLength||hk,c=[],f=[],d=[],p=[];let m=0,y=-1;for(;++y<n.length;){const A=[],L=[];let j=-1;for(n[y].length>m&&(m=n[y].length);++j<n[y].length;){const q=mk(n[y][j]);if(i.alignDelimiters!==!1){const U=s(q);L[j]=U,(p[j]===void 0||U>p[j])&&(p[j]=U)}A.push(q)}f[y]=A,d[y]=L}let g=-1;if(typeof u=="object"&&"length"in u)for(;++g<m;)c[g]=qp(u[g]);else{const A=qp(u);for(;++g<m;)c[g]=A}g=-1;const S=[],v=[];for(;++g<m;){const A=c[g];let L="",j="";A===99?(L=":",j=":"):A===108?L=":":A===114&&(j=":");let q=i.alignDelimiters===!1?1:Math.max(1,p[g]-L.length-j.length);const U=L+"-".repeat(q)+j;i.alignDelimiters!==!1&&(q=L.length+q+j.length,q>p[g]&&(p[g]=q),v[g]=q),S[g]=U}f.splice(1,0,S),d.splice(1,0,v),y=-1;const w=[];for(;++y<f.length;){const A=f[y],L=d[y];g=-1;const j=[];for(;++g<m;){const q=A[g]||"";let U="",te="";if(i.alignDelimiters!==!1){const le=p[g]-(L[g]||0),O=c[g];O===114?U=" ".repeat(le):O===99?le%2?(U=" ".repeat(le/2+.5),te=" ".repeat(le/2-.5)):(U=" ".repeat(le/2),te=U):te=" ".repeat(le)}i.delimiterStart!==!1&&!g&&j.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&q==="")&&(i.delimiterStart!==!1||g)&&j.push(" "),i.alignDelimiters!==!1&&j.push(U),j.push(q),i.alignDelimiters!==!1&&j.push(te),i.padding!==!1&&j.push(" "),(i.delimiterEnd!==!1||g!==m-1)&&j.push("|")}w.push(i.delimiterEnd===!1?j.join("").replace(/ +$/,""):j.join(""))}return w.join(`
272
- `)}function mk(n){return n==null?"":String(n)}function qp(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 pk(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()),gk);return s(),f}function gk(n,a,i){return">"+(i?"":" ")+n}function xk(n,a){return Yp(n,a.inConstruct,!0)&&!Yp(n,a.notInConstruct,!1)}function Yp(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 Vp(n,a,i,u){let s=-1;for(;++s<i.unsafe.length;)if(i.unsafe[s].character===`
273
- `&&xk(i.stack,i.unsafe[s]))return/[ \t]/.test(u.before)?"":" ";return`\\
274
- `}function yk(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 bk(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 vk(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 Sk(n,a,i,u){const s=vk(i),c=n.value||"",f=s==="`"?"GraveAccent":"Tilde";if(bk(n,i)){const g=i.enter("codeIndented"),S=i.indentLines(c,zk);return g(),S}const d=i.createTracker(u),p=s.repeat(Math.max(yk(c,s)+1,3)),m=i.enter("codeFenced");let y=d.move(p);if(n.lang){const g=i.enter(`codeFencedLang${f}`);y+=d.move(i.safe(n.lang,{before:y,after:" ",encode:["`"],...d.current()})),g()}if(n.lang&&n.meta){const g=i.enter(`codeFencedMeta${f}`);y+=d.move(" "),y+=d.move(i.safe(n.meta,{before:y,after:`
275
- `,encode:["`"],...d.current()})),g()}return y+=d.move(`
276
- `),c&&(y+=d.move(c+`
277
- `)),y+=d.move(p),m(),y}function zk(n,a,i){return(i?"":" ")+n}function qc(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 kk(n,a,i,u){const s=qc(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 wk(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 Ba(n){return"&#x"+n.toString(16).toUpperCase()+";"}function pu(n,a,i){const u=Ai(n),s=Ai(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}}W0.peek=Ek;function W0(n,a,i,u){const s=wk(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),y=pu(u.before.charCodeAt(u.before.length-1),m,s);y.inside&&(p=Ba(m)+p.slice(1));const g=p.charCodeAt(p.length-1),S=pu(u.after.charCodeAt(0),g,s);S.inside&&(p=p.slice(0,-1)+Ba(g));const v=f.move(s);return c(),i.attentionEncodeSurroundingInfo={after:S.outside,before:y.outside},d+p+v}function Ek(n,a,i){return i.options.emphasis||"*"}function Tk(n,a){let i=!1;return Bc(n,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return i=!0,mc}),!!((!n.depth||n.depth<3)&&Mc(n)&&(a.options.setext||i))}function Ck(n,a,i,u){const s=Math.max(Math.min(6,n.depth||1),1),c=i.createTracker(u);if(Tk(n,i)){const y=i.enter("headingSetext"),g=i.enter("phrasing"),S=i.containerPhrasing(n,{...c.current(),before:`
279
- `,after:`
280
- `});return g(),y(),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=Ba(m.charCodeAt(0))+m.slice(1)),m=m?f+" "+m:f,i.options.closeAtx&&(m+=" "+f),p(),d(),m}P0.peek=Nk;function P0(n){return n.value||""}function Nk(){return"<"}eg.peek=jk;function eg(n,a,i,u){const s=qc(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 jk(){return"!"}tg.peek=Ak;function tg(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 y=i.stack;i.stack=[],f=i.enter("reference");const g=i.safe(i.associationId(n),{before:p,after:"]",...d.current()});return f(),i.stack=y,c(),s==="full"||!m||m!==g?p+=d.move(g+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function Ak(){return"!"}ng.peek=Mk;function ng(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 Mk(){return"`"}function lg(n,a){const i=Mc(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))}ig.peek=_k;function ig(n,a,i,u){const s=qc(i),c=s==='"'?"Quote":"Apostrophe",f=i.createTracker(u);let d,p;if(lg(n,i)){const y=i.stack;i.stack=[],d=i.enter("autolink");let g=f.move("<");return g+=f.move(i.containerPhrasing(n,{before:g,after:">",...f.current()})),g+=f.move(">"),d(),i.stack=y,g}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 _k(n,a,i){return lg(n,i)?"<":"["}ag.peek=Ok;function ag(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 y=i.stack;i.stack=[],f=i.enter("reference");const g=i.safe(i.associationId(n),{before:p,after:"]",...d.current()});return f(),i.stack=y,c(),s==="full"||!m||m!==g?p+=d.move(g+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function Ok(){return"["}function Yc(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 Dk(n){const a=Yc(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 Rk(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 rg(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 Lk(n,a,i,u){const s=i.enter("list"),c=i.bulletCurrent;let f=n.ordered?Rk(i):Yc(i);const d=n.ordered?f==="."?")":".":Dk(i);let p=a&&i.bulletLastUsed?f===i.bulletLastUsed:!1;if(!n.ordered){const y=n.children?n.children[0]:void 0;if((f==="*"||f==="-")&&y&&(!y.children||!y.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),rg(i)===f&&y){let g=-1;for(;++g<n.children.length;){const S=n.children[g];if(S&&S.type==="listItem"&&S.children&&S.children[0]&&S.children[0].type==="thematicBreak"){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 Uk(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 Bk(n,a,i,u){const s=Uk(i);let c=i.bulletCurrent||Yc(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()),y);return p(),m;function y(g,S,v){return S?(v?"":" ".repeat(f))+g:(v?c:c+" ".repeat(f-c.length))+g}}function Hk(n,a,i,u){const s=i.enter("paragraph"),c=i.enter("phrasing"),f=i.containerPhrasing(n,u);return c(),s(),f}const qk=vu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Yk(n,a,i,u){return(n.children.some(function(f){return qk(f)})?i.containerPhrasing:i.containerFlow).call(i,n,u)}function Vk(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}ug.peek=Xk;function ug(n,a,i,u){const s=Vk(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),y=pu(u.before.charCodeAt(u.before.length-1),m,s);y.inside&&(p=Ba(m)+p.slice(1));const g=p.charCodeAt(p.length-1),S=pu(u.after.charCodeAt(0),g,s);S.inside&&(p=p.slice(0,-1)+Ba(g));const v=f.move(s+s);return c(),i.attentionEncodeSurroundingInfo={after:S.outside,before:y.outside},d+p+v}function Xk(n,a,i){return i.options.strong||"*"}function Gk(n,a,i,u){return i.safe(n.value,u)}function Qk(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 Fk(n,a,i){const u=(rg(i)+(i.options.ruleSpaces?" ":"")).repeat(Qk(i));return i.options.ruleSpaces?u.slice(0,-1):u}const sg={blockquote:pk,break:Vp,code:Sk,definition:kk,emphasis:W0,hardBreak:Vp,heading:Ck,html:P0,image:eg,imageReference:tg,inlineCode:ng,link:ig,linkReference:ag,list:Lk,listItem:Bk,paragraph:Hk,root:Yk,strong:ug,text:Gk,thematicBreak:Fk};function Zk(){return{enter:{table:Jk,tableData:Xp,tableHeader:Xp,tableRow:Ik},exit:{codeText:$k,table:Kk,tableData:ic,tableHeader:ic,tableRow:ic}}}function Jk(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 Kk(n){this.exit(n),this.data.inTable=void 0}function Ik(n){this.enter({type:"tableRow",children:[]},n)}function ic(n){this.exit(n)}function Xp(n){this.enter({type:"tableCell",children:[]},n)}function $k(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,Wk));const i=this.stack[this.stack.length-1];i.type,i.value=a,this.exit(n)}function Wk(n,a){return a==="|"?a:n}function Pk(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,A,L){return m(y(v,A,L),v.align)}function d(v,w,A,L){const j=g(v,A,L),q=m([j]);return q.slice(0,q.indexOf(`
285
- `))}function p(v,w,A,L){const j=A.enter("tableCell"),q=A.enter("phrasing"),U=A.containerPhrasing(v,{...L,before:c,after:c});return q(),j(),U}function m(v,w){return dk(v,{align:w,alignDelimiters:u,padding:i,stringLength:s})}function y(v,w,A){const L=v.children;let j=-1;const q=[],U=w.enter("table");for(;++j<L.length;)q[j]=g(L[j],w,A);return U(),q}function g(v,w,A){const L=v.children;let j=-1;const q=[],U=w.enter("tableRow");for(;++j<L.length;)q[j]=p(L[j],v,w,A);return U(),q}function S(v,w,A){let L=sg.inlineCode(v,w,A);return A.stack.includes("tableCell")&&(L=L.replace(/\|/g,"\\$&")),L}}function ew(){return{exit:{taskListCheckValueChecked:Gp,taskListCheckValueUnchecked:Gp,paragraph:nw}}}function tw(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:lw}}}function Gp(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function nw(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 lw(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=sg.listItem(n,a,i,{...u,...d.current()});return c&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;function m(y){return y+f}}function iw(){return[Lz(),lk(),uk(),Zk(),ew()]}function aw(n){return{extensions:[Uz(),ik(n),sk(),Pk(n),tw()]}}const rw={tokenize:hw,partial:!0},og={tokenize:dw,partial:!0},cg={tokenize:mw,partial:!0},fg={tokenize:pw,partial:!0},uw={tokenize:gw,partial:!0},hg={name:"wwwAutolink",tokenize:cw,previous:mg},dg={name:"protocolAutolink",tokenize:fw,previous:pg},Ln={name:"emailAutolink",tokenize:ow,previous:gg},gn={};function sw(){return{text:gn}}let Dl=48;for(;Dl<123;)gn[Dl]=Ln,Dl++,Dl===58?Dl=65:Dl===91&&(Dl=97);gn[43]=Ln;gn[45]=Ln;gn[46]=Ln;gn[95]=Ln;gn[72]=[Ln,dg];gn[104]=[Ln,dg];gn[87]=[Ln,hg];gn[119]=[Ln,hg];function ow(n,a,i){const u=this;let s,c;return f;function f(g){return!yc(g)||!gg.call(u,u.previous)||Vc(u.events)?i(g):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),d(g))}function d(g){return yc(g)?(n.consume(g),d):g===64?(n.consume(g),p):i(g)}function p(g){return g===46?n.check(uw,y,m)(g):g===45||g===95||St(g)?(c=!0,n.consume(g),p):y(g)}function m(g){return n.consume(g),s=!0,p}function y(g){return c&&s&&Et(u.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(g)):i(g)}}function cw(n,a,i){const u=this;return s;function s(f){return f!==87&&f!==119||!mg.call(u,u.previous)||Vc(u.events)?i(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(rw,n.attempt(og,n.attempt(cg,c),i),i)(f))}function c(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(f)}}function fw(n,a,i){const u=this;let s="",c=!1;return f;function f(g){return(g===72||g===104)&&pg.call(u,u.previous)&&!Vc(u.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),n.consume(g),d):i(g)}function d(g){if(Et(g)&&s.length<5)return s+=String.fromCodePoint(g),n.consume(g),d;if(g===58){const S=s.toLowerCase();if(S==="http"||S==="https")return n.consume(g),p}return i(g)}function p(g){return g===47?(n.consume(g),c?m:(c=!0,p)):i(g)}function m(g){return g===null||hu(g)||Ie(g)||Rl(g)||xu(g)?i(g):n.attempt(og,n.attempt(cg,y),i)(g)}function y(g){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(g)}}function hw(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 dw(n,a,i){let u,s,c;return f;function f(m){return m===46||m===95?n.check(fg,p,d)(m):m===null||Ie(m)||Rl(m)||m!==45&&xu(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 mw(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(fg,a,c)(f):f===null||Ie(f)||Rl(f)?a(f):(n.consume(f),s)}function c(f){return f===41&&u++,n.consume(f),s}}function pw(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||Ie(d)||Rl(d)?a(d):i(d)}function s(d){return d===null||d===40||d===91||Ie(d)||Rl(d)?a(d):u(d)}function c(d){return Et(d)?f(d):i(d)}function f(d){return d===59?(n.consume(d),u):Et(d)?(n.consume(d),f):i(d)}}function gw(n,a,i){return u;function u(c){return n.consume(c),s}function s(c){return St(c)?i(c):a(c)}}function mg(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Ie(n)}function pg(n){return!Et(n)}function gg(n){return!(n===47||yc(n))}function yc(n){return n===43||n===45||n===46||n===95||St(n)}function Vc(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 xw={tokenize:Ew,partial:!0};function yw(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:zw,continuation:{tokenize:kw},exit:ww}},text:{91:{name:"gfmFootnoteCall",tokenize:Sw},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:bw,resolveTo:vw}}}}function bw(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=cn(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 vw(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 Sw(n,a,i){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c=0,f;return d;function d(g){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),p}function p(g){return g!==94?i(g):(n.enter("gfmFootnoteCallMarker"),n.consume(g),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",m)}function m(g){if(c>999||g===93&&!f||g===null||g===91||Ie(g))return i(g);if(g===93){n.exit("chunkString");const S=n.exit("gfmFootnoteCallString");return s.includes(cn(u.sliceSerialize(S)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):i(g)}return Ie(g)||(f=!0),c++,n.consume(g),g===92?y:m}function y(g){return g===91||g===92||g===93?(n.consume(g),c++,m):m(g)}}function zw(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",y):i(w)}function y(w){if(f>999||w===93&&!d||w===null||w===91||Ie(w))return i(w);if(w===93){n.exit("chunkString");const A=n.exit("gfmFootnoteDefinitionLabelString");return c=cn(u.sliceSerialize(A)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(w),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),S}return Ie(w)||(d=!0),f++,n.consume(w),w===92?g:y}function g(w){return w===91||w===92||w===93?(n.consume(w),f++,y):y(w)}function S(w){return w===58?(n.enter("definitionMarker"),n.consume(w),n.exit("definitionMarker"),s.includes(c)||s.push(c),Le(n,v,"gfmFootnoteDefinitionWhitespace")):i(w)}function v(w){return a(w)}}function kw(n,a,i){return n.check(qa,a,n.attempt(xw,a,i))}function ww(n){n.exit("gfmFootnoteDefinition")}function Ew(n,a,i){const u=this;return Le(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 Tw(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 y={type:"strikethrough",start:Object.assign({},f[m][1].start),end:Object.assign({},f[p][1].end)},g={type:"strikethroughText",start:Object.assign({},f[m][1].end),end:Object.assign({},f[p][1].start)},S=[["enter",y,d],["enter",f[m][1],d],["exit",f[m][1],d],["enter",g,d]],v=d.parser.constructs.insideSpan.null;v&&Qt(S,S.length,0,yu(v,f.slice(m+1,p),d)),Qt(S,S.length,0,[["exit",g,d],["enter",f[p][1],d],["exit",f[p][1],d],["exit",y,d]]),Qt(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,y=this.events;let g=0;return S;function S(w){return m===126&&y[y.length-1][1].type!=="characterEscape"?p(w):(f.enter("strikethroughSequenceTemporary"),v(w))}function v(w){const A=Ai(m);if(w===126)return g>1?p(w):(f.consume(w),g++,v);if(g<2&&!i)return p(w);const L=f.exit("strikethroughSequenceTemporary"),j=Ai(w);return L._open=!j||j===2&&!!A,L._close=!A||A===2&&!!j,d(w)}}}class Cw{constructor(){this.map=[]}add(a,i,u){Nw(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 Nw(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 jw(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 Aw(){return{flow:{null:{name:"table",tokenize:Mw,resolveAll:_w}}}}function Mw(n,a,i){const u=this;let s=0,c=0,f;return d;function d(H){let ie=u.events.length-1;for(;ie>-1;){const se=u.events[ie][1].type;if(se==="lineEnding"||se==="linePrefix")ie--;else break}const ne=ie>-1?u.events[ie][1].type:null,be=ne==="tableHead"||ne==="tableRow"?O:p;return be===O&&u.parser.lazy[u.now().line]?i(H):be(H)}function p(H){return n.enter("tableHead"),n.enter("tableRow"),m(H)}function m(H){return H===124||(f=!0,c+=1),y(H)}function y(H){return H===null?i(H):ge(H)?c>1?(c=0,u.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(H),n.exit("lineEnding"),v):i(H):Ae(H)?Le(n,y,"whitespace")(H):(c+=1,f&&(f=!1,s+=1),H===124?(n.enter("tableCellDivider"),n.consume(H),n.exit("tableCellDivider"),f=!0,y):(n.enter("data"),g(H)))}function g(H){return H===null||H===124||Ie(H)?(n.exit("data"),y(H)):(n.consume(H),H===92?S:g)}function S(H){return H===92||H===124?(n.consume(H),g):g(H)}function v(H){return u.interrupt=!1,u.parser.lazy[u.now().line]?i(H):(n.enter("tableDelimiterRow"),f=!1,Ae(H)?Le(n,w,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):w(H))}function w(H){return H===45||H===58?L(H):H===124?(f=!0,n.enter("tableCellDivider"),n.consume(H),n.exit("tableCellDivider"),A):le(H)}function A(H){return Ae(H)?Le(n,L,"whitespace")(H):L(H)}function L(H){return H===58?(c+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(H),n.exit("tableDelimiterMarker"),j):H===45?(c+=1,j(H)):H===null||ge(H)?te(H):le(H)}function j(H){return H===45?(n.enter("tableDelimiterFiller"),q(H)):le(H)}function q(H){return H===45?(n.consume(H),q):H===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(H),n.exit("tableDelimiterMarker"),U):(n.exit("tableDelimiterFiller"),U(H))}function U(H){return Ae(H)?Le(n,te,"whitespace")(H):te(H)}function te(H){return H===124?w(H):H===null||ge(H)?!f||s!==c?le(H):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(H)):le(H)}function le(H){return i(H)}function O(H){return n.enter("tableRow"),$(H)}function $(H){return H===124?(n.enter("tableCellDivider"),n.consume(H),n.exit("tableCellDivider"),$):H===null||ge(H)?(n.exit("tableRow"),a(H)):Ae(H)?Le(n,$,"whitespace")(H):(n.enter("data"),re(H))}function re(H){return H===null||H===124||Ie(H)?(n.exit("data"),$(H)):(n.consume(H),H===92?me:re)}function me(H){return H===92||H===124?(n.consume(H),re):re(H)}}function _w(n,a){let i=-1,u=!0,s=0,c=[0,0,0,0],f=[0,0,0,0],d=!1,p=0,m,y,g;const S=new Cw;for(;++i<n.length;){const v=n[i],w=v[1];v[0]==="enter"?w.type==="tableHead"?(d=!1,p!==0&&(Qp(S,a,p,m,y),y=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,g=void 0,c=[0,0,0,0],f=[0,i+1,0,0],d&&(d=!1,y={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},S.add(i,0,[["enter",y,a]])),s=w.type==="tableDelimiterRow"?2:y?3:1):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(u=!1,f[2]===0&&(c[1]!==0&&(f[0]=f[1],g=su(S,a,c,s,void 0,g),c=[0,0,0,0]),f[2]=i)):w.type==="tableCellDivider"&&(u?u=!1:(c[1]!==0&&(f[0]=f[1],g=su(S,a,c,s,void 0,g)),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],g=su(S,a,c,s,i,g)):f[1]!==0&&(g=su(S,a,f,s,i,g)),s=0):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(f[3]=i)}for(p!==0&&Qp(S,a,p,m,y),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=jw(a.events,i))}return n}function su(n,a,i,u,s,c){const f=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",d="tableContent";i[0]!==0&&(c.end=Object.assign({},Ni(a.events,i[0])),n.add(i[0],0,[["exit",c,a]]));const p=Ni(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=Ni(a.events,i[2]),y=Ni(a.events,i[3]),g={type:d,start:Object.assign({},m),end:Object.assign({},y)};if(n.add(i[2],0,[["enter",g,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,A=i[3]-i[2]-1;n.add(w,A,[])}}n.add(i[3]+1,0,[["exit",g,a]])}return s!==void 0&&(c.end=Object.assign({},Ni(a.events,s)),n.add(s,0,[["exit",c,a]]),c=void 0),c}function Qp(n,a,i,u,s){const c=[],f=Ni(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 Ni(n,a){const i=n[a],u=i[0]==="enter"?"start":"end";return i[1][u]}const Ow={name:"tasklistCheck",tokenize:Rw};function Dw(){return{text:{91:Ow}}}function Rw(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 Ie(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 ge(p)?a(p):Ae(p)?n.check({tokenize:Lw},a,i)(p):i(p)}}function Lw(n,a,i){return Le(n,u,"whitespace");function u(s){return s===null?i(s):a(s)}}function Uw(n){return C0([sw(),yw(),Tw(n),Aw(),Dw()])}const Bw={};function Hw(n){const a=this,i=n||Bw,u=a.data(),s=u.micromarkExtensions||(u.micromarkExtensions=[]),c=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),f=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);s.push(Uw(i)),c.push(iw()),f.push(aw(i))}function qw(n){return n==="completed"?x.jsx(l0,{size:14,className:"text-emerald-400"}):n==="in_progress"?x.jsx(u0,{size:14,className:"text-amber-400 animate-spin"}):x.jsx(r1,{size:14,className:"text-zinc-500"})}function Yw(n){return n==="completed"?"text-zinc-400 line-through":n==="in_progress"?"text-amber-200":"text-zinc-300"}function Vw(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 x.jsx("div",{className:"w-full mt-2",children:x.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[x.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[x.jsx(r0,{size:14,className:"text-violet-400"}),x.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Tasks"}),x.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[i,"/",u]}),x.jsx("div",{className:"w-16 h-1.5 bg-zinc-700 rounded-full overflow-hidden",children:x.jsx("div",{className:"h-full bg-violet-500 transition-all duration-300",style:{width:`${i/u*100}%`}})})]}),x.jsx("ul",{className:"divide-y divide-zinc-800/50",children:a.map((s,c)=>x.jsxs("li",{className:"flex items-start gap-2.5 px-3 py-2 hover:bg-zinc-800/20 transition-colors",children:[x.jsx("span",{className:"mt-0.5 flex-shrink-0",children:qw(s.status)}),x.jsx("span",{className:`text-xs leading-relaxed ${Yw(s.status)}`,children:s.content})]},c))})]})})}class Xw{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,y=d+p;u.maxEditLength!=null&&(y=Math.min(y,u.maxEditLength));const g=(c=u.timeout)!==null&&c!==void 0?c:1/0,S=Date.now()+g,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 A=-1/0,L=1/0;const j=()=>{for(let q=Math.max(A,-m);q<=Math.min(L,m);q+=2){let U;const te=v[q-1],le=v[q+1];te&&(v[q-1]=void 0);let O=!1;if(le){const re=le.oldPos-q;O=le&&0<=re&&re<d}const $=te&&te.oldPos+1<p;if(!O&&!$){v[q]=void 0;continue}if(!$||O&&te.oldPos<le.oldPos?U=this.addToPath(le,!0,!1,0,u):U=this.addToPath(te,!1,!0,1,u),w=this.extractCommon(U,i,a,q,u),U.oldPos+1>=p&&w+1>=d)return f(this.buildValues(U.lastComponent,i,a))||!0;v[q]=U,U.oldPos+1>=p&&(L=Math.min(L,q-1)),w+1>=d&&(A=Math.max(A,q+1))}m++};if(s)(function q(){setTimeout(function(){if(m>y||Date.now()>S)return s(void 0);j()||q()},0)})();else for(;m<=y&&Date.now()<=S;){const q=j();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,y=0;for(;m+1<f&&p+1<d&&this.equals(u[p+1],i[m+1],c);)m++,p++,y++,c.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return y&&!c.oneChangePerToken&&(a.lastComponent={count:y,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 y=s[d];if(y.removed)y.value=this.join(u.slice(m,m+y.count)),m+=y.count;else{if(!y.added&&this.useLongestToken){let g=i.slice(p,p+y.count);g=g.map(function(S,v){const w=u[m+v];return w.length>S.length?w:S}),y.value=this.join(g)}else y.value=this.join(i.slice(p,p+y.count));p+=y.count,y.added||(m+=y.count)}}return s}}class Gw extends Xw{constructor(){super(...arguments),this.tokenize=Fw}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 Qw=new Gw;function Fp(n,a,i){return Qw.diff(n,a,i)}function Fw(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 Zw={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function Zp(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:y}=d;Fp(i,u,Object.assign(Object.assign({},d),{callback:g=>{const S=m(g);y(S)}}))}else return m(Fp(i,u,d));function m(y){if(!y)return;y.push({value:"",lines:[]});function g(q){return q.map(function(U){return" "+U})}const S=[];let v=0,w=0,A=[],L=1,j=1;for(let q=0;q<y.length;q++){const U=y[q],te=U.lines||Kw(U.value);if(U.lines=te,U.added||U.removed){if(!v){const le=y[q-1];v=L,w=j,le&&(A=p>0?g(le.lines.slice(-p)):[],v-=A.length,w-=A.length)}for(const le of te)A.push((U.added?"+":"-")+le);U.added?j+=te.length:L+=te.length}else{if(v)if(te.length<=p*2&&q<y.length-2)for(const le of g(te))A.push(le);else{const le=Math.min(te.length,p);for(const $ of g(te.slice(0,le)))A.push($);const O={oldStart:v,oldLines:L-v+le,newStart:w,newLines:j-w+le,lines:A};S.push(O),v=0,w=0,A=[]}L+=te.length,j+=te.length}}for(const q of S)for(let U=0;U<q.lines.length;U++)q.lines[U].endsWith(`
291
- `)?q.lines[U]=q.lines[U].slice(0,-1):(q.lines.splice(U+1,0,"\"),U++);return{oldFileName:n,newFileName:a,oldHeader:s,newHeader:c,hunks:S}}}function bc(n,a){if(a||(a=Zw),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=>bc(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 Jw(n,a,i,u,s,c,f){if(typeof f=="function"&&(f={callback:f}),f!=null&&f.callback){const{callback:d}=f;Zp(n,a,i,u,s,c,Object.assign(Object.assign({},f),{callback:p=>{d(p?bc(p,f.headerOptions):void 0)}}))}else{const d=Zp(n,a,i,u,s,c,f);return d?bc(d,f==null?void 0:f.headerOptions):void 0}}function Kw(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 Oi(n){const{text:a,className:i="",title:u="Copy"}=n,[s,c]=F.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 x.jsx("button",{onClick:f,className:`p-1 rounded hover:bg-zinc-700/50 transition-colors ${i}`,title:s?"Copied!":u,children:s?x.jsx(dl,{size:12,className:"text-emerald-400"}):x.jsx(fu,{size:12,className:"text-zinc-500 hover:text-zinc-300"})})}function xg(n){return n.split("/").slice(-2).join("/")}function Iw(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 $w(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=a.old_string||"",u=a.new_string||"",s=xg(a.file_path),c=Jw("a/"+s,"b/"+s,i,u,"","",{context:3}),f=Iw(c),d=f.filter(m=>m.type==="add").length,p=f.filter(m=>m.type==="remove").length;return x.jsx("div",{className:"w-full mt-2",children:x.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[x.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[x.jsx(d1,{size:14,className:"text-blue-400"}),x.jsx("span",{className:"text-xs font-mono text-zinc-300",children:s}),x.jsxs("div",{className:"flex items-center gap-2 ml-auto text-xs",children:[d>0&&x.jsxs("span",{className:"flex items-center gap-0.5 text-emerald-400",children:[x.jsx(H1,{size:12}),d]}),p>0&&x.jsxs("span",{className:"flex items-center gap-0.5 text-rose-400",children:[x.jsx(A1,{size:12}),p]}),x.jsx(Oi,{text:a.file_path})]})]}),x.jsx("div",{className:"overflow-x-auto max-h-80 overflow-y-auto",children:x.jsx("pre",{className:"text-xs font-mono p-0",children:f.map((m,y)=>m.type==="header"?x.jsx("div",{className:"px-3 py-1 bg-blue-900/20 text-blue-300 border-y border-blue-900/30",children:m.content},y):m.type==="add"?x.jsxs("div",{className:"px-3 py-0.5 bg-emerald-900/20 text-emerald-300 border-l-2 border-emerald-500",children:[x.jsx("span",{className:"select-none text-emerald-600 mr-2",children:"+"}),m.content||" "]},y):m.type==="remove"?x.jsxs("div",{className:"px-3 py-0.5 bg-rose-900/20 text-rose-300 border-l-2 border-rose-500",children:[x.jsx("span",{className:"select-none text-rose-600 mr-2",children:"-"}),m.content||" "]},y):x.jsxs("div",{className:"px-3 py-0.5 text-zinc-400",children:[x.jsx("span",{className:"select-none text-zinc-600 mr-2",children:" "}),m.content||" "]},y))})})]})})}function Ww(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=a.content||"",u=xg(a.file_path),s=i.split(`
299
- `).length,c=i.slice(0,500),f=i.length>500;return x.jsx("div",{className:"w-full mt-2",children:x.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[x.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[x.jsx(a0,{size:14,className:"text-emerald-400"}),x.jsx("span",{className:"text-xs font-mono text-zinc-300",children:u}),x.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[x.jsxs("span",{className:"text-xs text-zinc-500",children:[s," lines"]}),x.jsx(Oi,{text:a.file_path})]})]}),x.jsx("div",{className:"overflow-x-auto max-h-60 overflow-y-auto",children:x.jsxs("pre",{className:"text-xs font-mono p-3 text-zinc-300",children:[c,f&&x.jsxs("span",{className:"text-zinc-500",children:["... (",i.length-500," more chars)"]})]})})]})})}function Pw(n){const{input:a}=n,[i,u]=F.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 x.jsx("div",{className:"w-full mt-2",children:x.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[x.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[x.jsx(c0,{size:14,className:"text-green-400"}),x.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Command"}),c&&x.jsxs("span",{className:"text-xs text-zinc-500 truncate ml-1",children:["— ",c]}),x.jsx("button",{onClick:f,className:"ml-auto p-1 hover:bg-zinc-700/50 rounded transition-colors",title:"Copy command",children:i?x.jsx(dl,{size:12,className:"text-green-400"}):x.jsx(fu,{size:12,className:"text-zinc-500"})})]}),x.jsx("div",{className:"p-3 overflow-x-auto",children:x.jsx("div",{className:"flex items-start gap-2",children:x.jsx("pre",{className:"text-xs font-mono m-0 p-0 bg-transparent! text-zinc-200 whitespace-pre-wrap break-all",children:s})})})]})})}function eE(n){const{content:a,isError:i}=n;if(!a||a.trim().length===0)return x.jsx("div",{className:"w-full mt-2",children:x.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-zinc-800/30 border border-zinc-700/50 rounded-lg",children:[x.jsx(l0,{size:14,className:"text-teal-400"}),x.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 x.jsx("div",{className:"w-full mt-2",children:x.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:[x.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?x.jsxs(x.Fragment,{children:[x.jsx(K1,{size:14,className:"text-rose-400"}),x.jsx("span",{className:"text-xs font-medium text-rose-300",children:"Error Output"})]}):x.jsxs(x.Fragment,{children:[x.jsx(s0,{size:14,className:"text-teal-400"}),x.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Output"})]}),x.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," lines"]})]}),x.jsx("div",{className:"overflow-x-auto max-h-80 overflow-y-auto",children:x.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&&x.jsxs("div",{className:"text-zinc-500 mt-2 pt-2 border-t border-zinc-700/50",children:["... ",u.length-s," more lines"]})]})})]})})}function tE(n){const{input:a}=n;return!a||!a.pattern?null:x.jsx("div",{className:"w-full mt-2",children:x.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[x.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[x.jsx(La,{size:14,className:"text-amber-400"}),x.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Search"})]}),x.jsxs("div",{className:"p-3 space-y-2",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("span",{className:"text-xs text-zinc-500",children:"Pattern:"}),x.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&&x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("span",{className:"text-xs text-zinc-500",children:"Path:"}),x.jsx("span",{className:"text-xs font-mono text-zinc-300",children:a.path})]}),a.glob&&x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("span",{className:"text-xs text-zinc-500",children:"Glob:"}),x.jsx("span",{className:"text-xs font-mono text-zinc-300",children:a.glob})]}),a.type&&x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("span",{className:"text-xs text-zinc-500",children:"Type:"}),x.jsx("span",{className:"text-xs font-mono text-zinc-300",children:a.type})]})]})]})})}function nE(n){const{input:a}=n;return!a||!a.pattern?null:x.jsx("div",{className:"w-full mt-2",children:x.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[x.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[x.jsx(kc,{size:14,className:"text-cyan-400"}),x.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Find Files"})]}),x.jsxs("div",{className:"p-3 space-y-2",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("span",{className:"text-xs text-zinc-500",children:"Pattern:"}),x.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&&x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("span",{className:"text-xs text-zinc-500",children:"Path:"}),x.jsx("span",{className:"text-xs font-mono text-zinc-300",children:a.path})]})]})]})})}function Jp(n){const{content:a,isFileList:i}=n;if(!a||a.trim().length===0)return x.jsx("div",{className:"w-full mt-2",children:x.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-zinc-800/30 border border-zinc-700/50 rounded-lg",children:[x.jsx(La,{size:14,className:"text-zinc-500"}),x.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?x.jsx("div",{className:"w-full mt-2",children:x.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[x.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[x.jsx(kc,{size:14,className:"text-cyan-400"}),x.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Files Found"}),x.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," files"]})]}),x.jsxs("div",{className:"overflow-y-auto max-h-60",children:[x.jsx("ul",{className:"divide-y divide-zinc-800/50",children:f.map((d,p)=>x.jsxs("li",{className:"group flex items-center gap-2 px-3 py-1.5 hover:bg-zinc-800/30",children:[x.jsx(zc,{size:12,className:"text-zinc-500 flex-shrink-0"}),x.jsx("span",{className:"text-xs font-mono text-zinc-300 truncate flex-1",children:d}),x.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity",children:x.jsx(Oi,{text:d})})]},p))}),c&&x.jsxs("div",{className:"px-3 py-2 text-xs text-zinc-500 border-t border-zinc-700/50",children:["... ",u.length-s," more files"]})]})]})}):x.jsx("div",{className:"w-full mt-2",children:x.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[x.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[x.jsx(La,{size:14,className:"text-amber-400"}),x.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Results"}),x.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," matches"]})]}),x.jsx("div",{className:"overflow-x-auto max-h-80 overflow-y-auto",children:x.jsxs("pre",{className:"text-xs font-mono p-3 text-zinc-300 whitespace-pre-wrap",children:[f.join(`
303
- `),c&&x.jsxs("div",{className:"text-zinc-500 mt-2 pt-2 border-t border-zinc-700/50",children:["... ",u.length-s," more matches"]})]})})]})})}function lE(n){return n.split("/").slice(-2).join("/")}function yg(n){var i;const a=n.split(".");return a.length>1?(i=a.pop())==null?void 0:i.toLowerCase():""}function bg(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 iE(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=lE(a.file_path),u=yg(a.file_path),s=u?bg(u):null;return x.jsx("div",{className:"w-full mt-2",children:x.jsx("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:x.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[x.jsx(i0,{size:14,className:"text-sky-400"}),x.jsx("span",{className:"text-xs font-mono text-zinc-300",children:i}),s&&x.jsx("span",{className:"text-xs text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:s}),x.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[(a.offset||a.limit)&&x.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`]}),x.jsx(Oi,{text:a.file_path})]})]})})})}function aE(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?yg(i):"",p=d?bg(d):null;return x.jsx("div",{className:"w-full mt-2",children:x.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[x.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[x.jsx(zc,{size:14,className:"text-sky-400"}),x.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"File Content"}),p&&x.jsx("span",{className:"text-xs text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:p}),x.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," lines"]})]}),x.jsxs("div",{className:"overflow-x-auto max-h-96 overflow-y-auto",children:[x.jsx("table",{className:"w-full text-xs font-mono",children:x.jsx("tbody",{children:f.map((m,y)=>x.jsxs("tr",{className:"hover:bg-zinc-800/30",children:[x.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:y+1}),x.jsx("td",{className:"pl-3 pr-3 py-0.5 text-zinc-300 whitespace-pre",children:m||" "})]},y))})}),c&&x.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 rE(n){const{input:a}=n;return!a||!a.questions||a.questions.length===0?null:x.jsx("div",{className:"w-full mt-2 space-y-3",children:a.questions.map((i,u)=>x.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[x.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[x.jsx(i1,{size:14,className:"text-violet-400"}),x.jsx("span",{className:"text-xs font-medium text-zinc-300",children:i.header||"Question"}),i.multiSelect&&x.jsx("span",{className:"text-[10px] text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded ml-auto",children:"Multi-select"})]}),x.jsxs("div",{className:"p-3 space-y-3",children:[x.jsx("p",{className:"text-sm text-zinc-200",children:i.question}),i.options&&i.options.length>0&&x.jsx("div",{className:"space-y-2",children:i.options.map((s,c)=>{const f=i.multiSelect?uc:o0;return x.jsxs("div",{className:"flex items-start gap-2 px-2 py-1.5 rounded bg-zinc-800/40 border border-zinc-700/30",children:[x.jsx(f,{size:14,className:"text-violet-400/70 mt-0.5 flex-shrink-0"}),x.jsxs("div",{className:"min-w-0",children:[x.jsx("div",{className:"text-xs font-medium text-zinc-200",children:s.label}),s.description&&x.jsx("div",{className:"text-xs text-zinc-500 mt-0.5",children:s.description})]})]},c)})})]})]},u))})}function uE(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 sE(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 oE(n){const{input:a}=n;if(!a)return null;const i=uE(a.subagent_type),u=sE(a.subagent_type);return x.jsx("div",{className:"w-full mt-2",children:x.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[x.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[x.jsx(n0,{size:14,className:i}),x.jsx("span",{className:`text-xs font-medium ${i}`,children:a.subagent_type}),a.description&&x.jsxs(x.Fragment,{children:[x.jsx($y,{size:10,className:"text-zinc-600"}),x.jsx("span",{className:"text-xs text-zinc-400",children:a.description})]}),x.jsxs("div",{className:"flex items-center gap-1.5 ml-auto",children:[a.resume&&x.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:[x.jsx(Y1,{size:10}),"resume"]}),a.run_in_background&&x.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:[x.jsx(D1,{size:10}),"background"]}),a.model&&x.jsx("span",{className:"text-[10px] text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:a.model})]})]}),x.jsx("div",{className:"p-3",children:x.jsxs("div",{className:`flex items-start gap-2 px-3 py-2 rounded-lg border ${u}`,children:[x.jsx(s0,{size:12,className:`${i} mt-0.5 flex-shrink-0`}),x.jsx("p",{className:"text-xs text-zinc-300 leading-relaxed whitespace-pre-wrap",children:a.prompt})]})})]})})}const vg=F.memo(function(a){const{content:i,className:u=""}=a;return x.jsx("div",{className:`break-words ${u}`,children:x.jsx(Tz,{remarkPlugins:[Hw],components:{h1:s=>{const{children:c}=s;return x.jsx("div",{className:"text-base font-semibold text-zinc-100 mt-3 mb-1.5",children:c})},h2:s=>{const{children:c}=s;return x.jsx("div",{className:"text-sm font-semibold text-zinc-100 mt-3 mb-1.5",children:c})},h3:s=>{const{children:c}=s;return x.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-3 mb-1.5",children:c})},h4:s=>{const{children:c}=s;return x.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},h5:s=>{const{children:c}=s;return x.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},h6:s=>{const{children:c}=s;return x.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},p:s=>{const{children:c}=s;return x.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 x.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 x.jsx("strong",{className:"font-semibold text-zinc-50",children:c})},em:s=>{const{children:c}=s;return x.jsx("em",{className:"italic text-zinc-200",children:c})},code:s=>{const{children:c}=s;return x.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,y;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(A=>A.startsWith("language-")),v=(S==null?void 0:S.replace("language-",""))||"code",w=((y=f.children)==null?void 0:y.map(A=>A.value).join(""))||"";return x.jsxs("div",{className:"relative group my-2 rounded-lg overflow-hidden border border-zinc-700/50",children:[x.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 bg-zinc-900 border-b border-zinc-700/50",children:[x.jsx("span",{className:"text-[10px] text-zinc-500 font-mono",children:v}),x.jsx(Oi,{text:w})]}),x.jsx("pre",{className:"text-xs text-zinc-300 bg-zinc-900/80 p-3 overflow-x-auto rounded-t-none!",children:x.jsx("code",{children:w})})]})}const{children:d}=s;return x.jsx("pre",{children:d})},ul:s=>{const{children:c}=s;return x.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 x.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 x.jsx("li",{className:"text-[13px] leading-relaxed",children:c})},blockquote:s=>{const{children:c}=s;return x.jsx("div",{className:"border-l-2 border-zinc-600 pl-3 my-2 text-zinc-400 italic",children:c})},hr:()=>x.jsx("hr",{className:"border-zinc-700 my-4"}),table:s=>{const{children:c}=s;return x.jsx("div",{className:"my-2 overflow-x-auto rounded-lg border border-zinc-700/50",children:x.jsx("table",{className:"w-full text-[13px]",children:c})})},thead:s=>{const{children:c}=s;return x.jsx("thead",{className:"bg-zinc-900",children:c})},tr:s=>{const{children:c}=s;return x.jsx("tr",{className:"border-b border-zinc-700/50 last:border-b-0",children:c})},th:s=>{const{children:c}=s;return x.jsx("th",{className:"px-3 py-2 text-left font-medium text-zinc-200",children:c})},td:s=>{const{children:c}=s;return x.jsx("td",{className:"px-3 py-2 text-zinc-300",children:c})}},children:i})})});function cE(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 cu(n){return!n||typeof n=="string"?[]:Array.isArray(n)?n:[n]}function fE(n){var i;const a=(i=n.message)==null?void 0:i.content;return a?typeof a=="string"?Rt(a):cu(a).filter(u=>u.type==="text"&&u.text).map(u=>Rt(u.text)).join(`
305
- `):""}const hE=F.memo(function(a){var A;const{message:i}=a,u=i.type==="user",s=(A=i.message)==null?void 0:A.content,c=()=>cu(s).filter(L=>L.type==="text"),f=()=>cu(s).filter(L=>L.type==="tool_use"||L.type==="tool_result"||L.type==="thinking"),d=()=>c().filter(L=>L.text&&Rt(L.text).length>0),p=()=>typeof s=="string"?Rt(s).length>0:d().length>0,m=f(),y=d(),g=p(),S=m.length>0,v=cE(cu(s));if(!g&&S)return x.jsx("div",{className:"flex flex-col gap-1 py-0.5",children:m.map((L,j)=>x.jsx(rc,{block:L,toolMap:v},j))});if(!g&&!S)return null;const w=fE(i);return x.jsx("div",{className:`flex ${u?"justify-end":"justify-start"} min-w-0`,children:x.jsxs("div",{className:"max-w-[85%] min-w-0",children:[x.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&&x.jsx(Oi,{text:w,title:"Copy message",className:"absolute top-2 right-2 p-1.5 bg-black/10 hover:bg-black/20 rounded-lg"}),x.jsx("div",{className:w?"pr-10":"",children:typeof s=="string"?u?x.jsx("div",{className:"whitespace-pre-wrap wrap-break-word text-[13px] leading-relaxed",children:Rt(s)}):x.jsx(vg,{content:Rt(s)}):x.jsx("div",{className:"flex flex-col gap-1",children:y.map((L,j)=>x.jsx(rc,{block:L,isUser:u,toolMap:v},j))})})]}),S&&x.jsx("div",{className:"flex flex-col gap-1 mt-1.5",children:m.map((L,j)=>x.jsx(rc,{block:L,toolMap:v},j))})]})})}),Kp={todowrite:r0,read:i0,bash:c0,grep:La,edit:L1,write:a0,glob:kc,task:n0},dE=[{patterns:["web","fetch","url"],icon:v1},{patterns:["ask","question"],icon:N1},{patterns:["git","commit"],icon:y1},{patterns:["sql","database","query"],icon:o1},{patterns:["file","disk"],icon:z1}];function mE(n){const a=n.toLowerCase();if(Kp[a])return Kp[a];for(const{patterns:i,icon:u}of dE)if(i.some(s=>a.includes(s)))return u;return $1}function ac(n){return n.split("/").slice(-2).join("/")}const pE={read:n=>n.file_path?ac(String(n.file_path)):null,edit:n=>n.file_path?ac(String(n.file_path)):null,write:n=>n.file_path?ac(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 gE(n,a){if(!a)return null;const i=n.toLowerCase(),u=pE[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 xE(n){const{toolName:a,input:i}=n,u=a.toLowerCase();return u==="todowrite"&&i.todos?x.jsx(Vw,{todos:i.todos}):u==="edit"&&i.file_path?x.jsx($w,{input:i}):u==="write"&&i.file_path?x.jsx(Ww,{input:i}):u==="bash"&&i.command?x.jsx(Pw,{input:i}):u==="grep"&&i.pattern?x.jsx(tE,{input:i}):u==="glob"&&i.pattern?x.jsx(nE,{input:i}):u==="read"&&i.file_path?x.jsx(iE,{input:i}):u==="askuserquestion"&&i.questions?x.jsx(rE,{input:i}):u==="task"&&i.prompt?x.jsx(oE,{input:i}):x.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 yE(n){const{toolName:a,content:i,isError:u}=n,s=a.toLowerCase();if(s==="bash")return x.jsx(eE,{content:i,isError:u});if(s==="glob")return x.jsx(Jp,{content:i,isFileList:!0});if(s==="grep")return x.jsx(Jp,{content:i});if(s==="read")return x.jsx(aE,{content:i});if(!i||i.trim().length===0)return x.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:[x.jsx(dl,{size:14,className:"text-teal-400"}),x.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 x.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&&x.jsxs("span",{className:"text-zinc-500",children:["... (",i.length-c," more chars)"]})]})}function rc(n){var f;const{block:a,isUser:i,toolMap:u}=n,[s,c]=F.useState(!1);if(a.type==="text"&&a.text){const d=Rt(a.text);return d?i?x.jsx("div",{className:"whitespace-pre-wrap wrap-break-word text-[13px] leading-relaxed",children:d}):x.jsx(vg,{content:d}):null}if(a.type==="thinking"&&a.thinking)return x.jsxs("div",{className:s?"w-full":"",children:[x.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:[x.jsx(w1,{size:12,className:"opacity-70"}),x.jsx("span",{className:"font-medium",children:"thinking"}),x.jsx("span",{className:"text-[10px] opacity-50 ml-0.5",children:s?"▼":"▶"})]}),s&&x.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=mE(a.name||""),y=gE(a.name||"",d),g=((f=a.name)==null?void 0:f.toLowerCase())||"",S=g==="todowrite"||g==="edit"||g==="write"||g==="bash"||g==="grep"||g==="glob"||g==="read"||g==="askuserquestion"||g==="task",v=g==="todowrite"||g==="askuserquestion"||g==="task",w=s||v;return x.jsxs("div",{className:w?"w-full":"",children:[x.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:[x.jsx(m,{size:12,className:"opacity-60"}),x.jsx("span",{className:"font-medium text-slate-200",children:a.name}),y&&x.jsx("span",{className:"text-slate-500 font-normal truncate max-w-50",children:y}),p&&!v&&x.jsx("span",{className:"text-[10px] opacity-40 ml-0.5",children:s?"▼":"▶"})]}),w&&p&&S?x.jsx(xE,{toolName:a.name||"",input:d}):s&&p&&x.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=Rt(p),y=m.length>0,g=60,S=y&&!s?m.slice(0,g)+(m.length>g?"...":""):null,v=a.tool_use_id&&u&&u.get(a.tool_use_id)||"";return x.jsxs("div",{className:s?"w-full":"",children:[x.jsxs("button",{onClick:()=>y&&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?x.jsx(gu,{size:12,className:"opacity-70"}):x.jsx(dl,{size:12,className:"opacity-70"}),x.jsx("span",{className:"font-medium",children:d?"error":"result"}),S&&!s&&x.jsx("span",{className:`font-normal truncate max-w-50 ${d?"text-rose-500/70":"text-teal-500/70"}`,children:S}),y&&x.jsx("span",{className:"text-[10px] opacity-40 ml-0.5",children:s?"▼":"▶"})]}),s&&y&&x.jsx(yE,{toolName:v,content:m,isError:d})]})}return null}function bE({onClick:n}){return x.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:[x.jsx("svg",{className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 14l-7 7m0 0l-7-7m7 7V3"})}),x.jsx("span",{children:"Latest"})]})}const vE=10,SE=1e3,zE=3e4,kE=100;function wE(n){const{sessionId:a,onMetaChange:i}=n,[u,s]=F.useState([]),[c,f]=F.useState(!0),[d,p]=F.useState(!0),m=F.useRef(null),y=F.useRef(null),g=F.useRef(0),S=F.useRef(!1),v=F.useRef(0),w=F.useRef(null),A=F.useRef(null),L=F.useRef(!0),j=F.useCallback(()=>{if(!L.current)return;w.current&&w.current.close();const O=new EventSource(`/api/conversation/${a}/stream?offset=${g.current}`);w.current=O,O.addEventListener("messages",$=>{v.current=0;const re=JSON.parse($.data);f(!1),s(me=>{const H=new Set(me.map(ne=>ne.uuid).filter(Boolean)),ie=re.filter(ne=>!H.has(ne.uuid));return ie.length===0?me:(g.current+=ie.length,[...me,...ie])})}),O.onerror=()=>{if(O.close(),f(!1),!!L.current&&v.current<vE){const $=Math.min(SE*Math.pow(2,v.current),zE);v.current++,A.current=setTimeout(()=>j(),$)}}},[a]);F.useEffect(()=>(L.current=!0,f(!0),s([]),g.current=0,v.current=0,j(),()=>{L.current=!1,A.current&&clearTimeout(A.current),w.current&&w.current.close()}),[j]);const q=F.useCallback(()=>{y.current&&(S.current=!0,y.current.scrollIntoView({behavior:"instant"}),requestAnimationFrame(()=>{S.current=!1}))},[]);F.useEffect(()=>{d&&q()},[u,d,q]),F.useEffect(()=>{var ie;if(!i)return;const O=u.filter(ne=>ne.type==="user"||ne.type==="assistant"),$=new Set,re=[];for(const ne of O){const be=(ie=ne.message)==null?void 0:ie.model;be&&$.add(be);const se=ne.timestamp;if(typeof se=="string"){const W=Date.parse(se);Number.isNaN(W)||re.push(W)}else typeof se=="number"&&Number.isFinite(se)&&re.push(se)}const me=re.length>0?Math.min(...re):null,H=re.length>0?Math.max(...re):null;i({models:Array.from($.values()),startTime:me,endTime:H})},[u,i]);const U=()=>{if(!m.current||S.current)return;const{scrollTop:O,scrollHeight:$,clientHeight:re}=m.current,me=$-O-re<kE;p(me)},te=u.find(O=>O.type==="summary"),le=u.filter(O=>O.type==="user"||O.type==="assistant");return c?x.jsx("div",{className:"flex h-full items-center justify-center text-zinc-500",children:"Loading..."}):x.jsxs("div",{className:"relative h-full",children:[x.jsx("div",{ref:m,onScroll:U,className:"h-full overflow-y-auto bg-zinc-950",children:x.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-4",children:[te&&x.jsxs("div",{className:"mb-6 rounded-xl border border-zinc-800/60 bg-zinc-900/50 p-4",children:[x.jsx("h2",{className:"text-sm font-medium text-zinc-200 leading-relaxed",children:te.summary}),x.jsxs("p",{className:"mt-2 text-[11px] text-zinc-500",children:[le.length," messages"]})]}),x.jsx("div",{className:"flex flex-col gap-2",children:le.map((O,$)=>x.jsx("div",{ref:$===le.length-1?y:void 0,children:x.jsx(hE,{message:O})},O.uuid||$))})]})}),!d&&x.jsx(bE,{onClick:()=>{p(!0),q()}})]})}function EE(n,a){const{events:i,onError:u,maxRetries:s=10,baseDelay:c=1e3}=a,f=F.useRef(null),d=F.useRef(0),p=F.useRef(null),m=F.useRef(!0),y=F.useRef(i);y.current=i;const g=F.useCallback(()=>{if(!m.current)return;f.current&&f.current.close();const S=new EventSource(n);f.current=S;for(const v of y.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(()=>{g()},v)}else u==null||u()}},[n,u,s,c]);F.useEffect(()=>(m.current=!0,g(),()=>{m.current=!1,p.current&&clearTimeout(p.current),f.current&&f.current.close()}),[g])}const TE={mode:"full",includeTools:!0,includeThoughts:!0,truncateToolResults:!0,truncationMode:"lines",maxToolResultLength:30};function CE(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 NE(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 jE(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=NE(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=Rt(u);return d?`${s}
308
- \`\`\`
309
- ${d}
310
- ...
311
- (truncated)
312
- \`\`\``:i?"**Error** (empty)":"**Result:** Success"}}const c=Rt(u);return c?`${s}
313
- \`\`\`
314
- ${c}
315
- \`\`\``:i?"**Error** (empty)":"**Result:** Success"}function AE(n){const a=n.thinking||"";return a?`<details>
316
- <summary>💡 Thinking</summary>
317
-
318
- ${a}
319
-
320
- </details>`:""}function ME(n,a,i){if(typeof n=="string")return a.mode==="tools-only"?"":Rt(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=Rt(c.text);f&&u.push(f)}else if(c.type==="thinking"&&c.thinking&&a.includeThoughts){const f=AE(c);f&&u.push(f)}else c.type==="tool_use"?(s||a.includeTools)&&u.push(CE(c)):c.type==="tool_result"&&(s||a.includeTools)&&u.push(jE(c,a));return u.join(`
321
-
322
- `)}function _E(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:Rt(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&&Rt(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 OE(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"||!_E(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=ME(i,a);if(s&&u)return c.trim()?c:"";const f=u?"**User:**":"**Assistant:**";return c.trim()?`${f}
325
-
326
- ${c}`:""}function Sg(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=OE(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 Ip(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 DE(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 zg(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 RE(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 zg(c.id),d=Sg(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 LE(n){const{sessions:a,messages:i,onClose:u}=n,s=a.length>1,[c,f]=F.useState({...TE}),[d,p]=F.useState(!1),[m,y]=F.useState(null),g=F.useCallback(async()=>{console.log("=== EXPORT STARTED ==="),p(!0);try{if(s){const S=await RE(a,c,(w,A)=>y({current:w,total:A})),v=new Date().toISOString().split("T")[0];Ip(S,`${v}-conversations-export.md`)}else{const S=a[0];console.log("Fetching session:",S.id);const v=i??await zg(S.id);console.log("Fetched",v.length,"messages"),await new Promise(A=>setTimeout(A,0)),console.log("Starting markdown conversion...");const w=Sg(v,c,S);console.log("Generated",w.length,"chars"),Ip(w,DE(S)),console.log("Download triggered")}u()}catch(S){console.error("Export failed:",S)}finally{p(!1),y(null),console.log("=== EXPORT FINISHED ===")}},[a,i,c,s,u]);return x.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",children:x.jsxs("div",{className:"w-full max-w-md mx-4 bg-zinc-900 border border-zinc-700 rounded-xl shadow-2xl",children:[x.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-zinc-700",children:[x.jsxs("h2",{className:"text-base font-medium text-zinc-100",children:["Export ",s?`${a.length} Conversations`:"Conversation"]}),x.jsx("button",{onClick:u,disabled:d,className:"p-1.5 hover:bg-zinc-800 rounded-lg transition-colors disabled:opacity-50",children:x.jsx(gu,{className:"w-4 h-4 text-zinc-400"})})]}),x.jsxs("div",{className:"px-5 py-4 space-y-4",children:[!s&&a[0]&&x.jsxs("div",{className:"p-3 bg-zinc-800/50 rounded-lg border border-zinc-700/50",children:[x.jsx("p",{className:"text-sm text-zinc-300 line-clamp-2",children:a[0].display}),x.jsx("p",{className:"text-xs text-zinc-500 mt-1",children:a[0].projectName})]}),x.jsxs("div",{className:"space-y-3",children:[x.jsx("p",{className:"text-sm font-medium text-zinc-300",children:"Export Mode"}),x.jsxs("div",{className:"space-y-2",children:[x.jsxs("label",{className:"flex items-center gap-3 cursor-pointer group",children:[x.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"}),x.jsxs("div",{children:[x.jsx("span",{className:"text-sm text-zinc-200 group-hover:text-zinc-100",children:"Full conversation"}),x.jsx("p",{className:"text-xs text-zinc-500",children:"Include messages and optionally tools/thoughts"})]})]}),x.jsxs("label",{className:"flex items-center gap-3 cursor-pointer group",children:[x.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"}),x.jsxs("div",{children:[x.jsx("span",{className:"text-sm text-zinc-200 group-hover:text-zinc-100",children:"Tools only"}),x.jsx("p",{className:"text-xs text-zinc-500",children:"Only tool calls and results, exclude conversation text"})]})]})]})]}),c.mode==="full"&&x.jsxs("div",{className:"space-y-3",children:[x.jsx("p",{className:"text-sm font-medium text-zinc-300",children:"Content Options"}),x.jsxs("label",{className:"flex items-center gap-3 cursor-pointer group",children:[x.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"}),x.jsxs("div",{children:[x.jsx("span",{className:"text-sm text-zinc-200 group-hover:text-zinc-100",children:"Include tool calls and results"}),x.jsx("p",{className:"text-xs text-zinc-500",children:"Bash commands, file edits, search results, etc."})]})]}),x.jsxs("label",{className:"flex items-center gap-3 cursor-pointer group",children:[x.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"}),x.jsxs("div",{children:[x.jsx("span",{className:"text-sm text-zinc-200 group-hover:text-zinc-100",children:"Include thinking blocks"}),x.jsx("p",{className:"text-xs text-zinc-500",children:"Claude's internal reasoning process"})]})]})]}),x.jsxs("div",{className:"space-y-3",children:[x.jsx("p",{className:"text-sm font-medium text-zinc-300",children:"Truncation Settings"}),x.jsxs("label",{className:"flex items-center gap-3 cursor-pointer group",children:[x.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"}),x.jsxs("div",{children:[x.jsx("span",{className:"text-sm text-zinc-200 group-hover:text-zinc-100",children:"Truncate long tool results"}),x.jsxs("p",{className:"text-xs text-zinc-500",children:["Limit tool output to ",c.maxToolResultLength.toLocaleString()," ",c.truncationMode==="lines"?"lines":"characters"]})]})]}),c.truncateToolResults&&x.jsxs("div",{className:"ml-7 space-y-3",children:[x.jsxs("div",{className:"flex items-center gap-4",children:[x.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[x.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"}),x.jsx("span",{className:"text-xs text-zinc-300",children:"Lines"})]}),x.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[x.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"}),x.jsx("span",{className:"text-xs text-zinc-300",children:"Characters"})]})]}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsxs("label",{className:"text-xs text-zinc-400",children:["Max ",c.truncationMode==="lines"?"lines":"chars",":"]}),x.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&&x.jsxs("div",{className:"space-y-2",children:[x.jsxs("div",{className:"flex justify-between text-xs text-zinc-400",children:[x.jsx("span",{children:"Exporting..."}),x.jsxs("span",{children:[m.current," / ",m.total]})]}),x.jsx("div",{className:"h-1.5 bg-zinc-800 rounded-full overflow-hidden",children:x.jsx("div",{className:"h-full bg-cyan-500 transition-all duration-300",style:{width:`${m.current/m.total*100}%`}})})]})]}),x.jsxs("div",{className:"flex justify-end gap-3 px-5 py-4 border-t border-zinc-700 bg-zinc-900/50",children:[x.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"}),x.jsx("button",{onClick:g,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?x.jsxs(x.Fragment,{children:[x.jsx(u0,{className:"w-4 h-4 animate-spin"}),"Exporting..."]}):x.jsxs(x.Fragment,{children:[x.jsx(Sc,{className:"w-4 h-4"}),"Export Markdown"]})})]})]})})}const Rn={mode:"literal",caseSensitive:!1,wordRegexp:!1,maxMatchesPerFile:200,maxSessions:500,timeoutMs:8e3};function Ci(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 UE(n){if(n===null)return;const a=Number.parseInt(n,10);return Number.isFinite(a)?a:void 0}function $p(n){const a=new URLSearchParams(n.startsWith("?")?n:`?${n}`),i=a.get("project"),u=a.get("session"),s=a.get("q"),c=Ci(a.get("ft")),f=Ci(a.get("sidebar")),d=Ci(a.get("batch")),p=Ci(a.get("noUnknown")),m=a.get("ftMode"),y=Ci(a.get("cs")),g=Ci(a.get("ww")),S=UE(a.get("mm")),v={};i!==null&&(v.project=i||null),u!==null&&(v.session=u||null),s!==null&&(v.search=s),typeof c=="boolean"&&(v.fullTextEnabled=c),typeof f=="boolean"&&(v.sidebarCollapsed=f),typeof d=="boolean"&&(v.batchMode=d),typeof p=="boolean"&&(v.excludeUnknownModels=p);const w={};return(m==="literal"||m==="regex")&&(w.mode=m),typeof y=="boolean"&&(w.caseSensitive=y),typeof g=="boolean"&&(w.wordRegexp=g),typeof S=="number"&&(w.maxMatchesPerFile=Math.max(1,Math.min(2e3,S))),Object.keys(w).length>0&&(v.fullTextOptions={...Rn,...w}),v}function Wp(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!==Rn.mode&&a.set("ftMode",n.fullTextOptions.mode),n.fullTextOptions.caseSensitive!==Rn.caseSensitive&&a.set("cs",n.fullTextOptions.caseSensitive?"1":"0"),n.fullTextOptions.wordRegexp!==Rn.wordRegexp&&a.set("ww",n.fullTextOptions.wordRegexp?"1":"0"),(n.fullTextOptions.maxMatchesPerFile??Rn.maxMatchesPerFile)!==Rn.maxMatchesPerFile&&a.set("mm",String(n.fullTextOptions.maxMatchesPerFile??Rn.maxMatchesPerFile)),n.sidebarCollapsed&&a.set("sidebar","1"),n.batchMode&&a.set("batch","1"),n.excludeUnknownModels&&a.set("noUnknown","1");const i=a.toString();return i?`?${i}`:""}function BE(n){const{session:a,meta:i,copied:u,copiedUuid:s,copiedJsonlPath:c,onCopyResumeCommand:f,onCopyUuid:d,onCopyJsonlPath:p,onDeleteJsonl:m,onRenameSession:y,onExport:g}=n,[S,v]=F.useState(!1),[w,A]=F.useState(a.display),L=F.useRef(!1),j=wc(a.project),q=i!=null&&i.models.length?i.models.join(", "):"Unknown",U=(i==null?void 0:i.startTime)??a.timestamp,te=(i==null?void 0:i.endTime)??a.timestamp,le=$m(U),O=$m(te);F.useEffect(()=>{v(!1),A(a.display)},[a.id,a.display]);const $=F.useCallback(async()=>{const re=w.trim();if(v(!1),!re||re===a.display){A(a.display);return}await y(a.id,re,a.project,a.timestamp)},[w,y,a.display,a.id,a.project,a.timestamp]);return x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:x.jsxs("div",{className:"min-w-0",children:[x.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[S?x.jsx("input",{value:w,onChange:re=>A(re.target.value),onBlur:()=>{if(L.current){L.current=!1;return}$()},onKeyDown:re=>{re.key==="Enter"&&(re.preventDefault(),$()),re.key==="Escape"&&(L.current=!0,v(!1),A(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}):x.jsx("button",{onClick:()=>{A(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}),x.jsx("span",{className:"text-xs text-zinc-600 shrink-0",children:f0(a.timestamp)})]}),x.jsxs("div",{className:"mt-0.5 flex flex-wrap items-center gap-x-3 gap-y-1 text-[11px] text-zinc-500",children:[x.jsx("span",{className:"truncate max-w-130",title:j,children:j}),x.jsxs("span",{children:["Model: ",q]}),x.jsxs("span",{children:["Start: ",le]}),x.jsxs("span",{children:["End: ",O]})]})]})}),x.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[x.jsxs("button",{onClick:g,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:[x.jsx(Sc,{className:"w-3.5 h-3.5"}),x.jsx("span",{children:"Export"})]}),x.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?x.jsxs(x.Fragment,{children:[x.jsx(dl,{className:"w-3.5 h-3.5 text-green-500"}),x.jsx("span",{className:"text-green-500",children:"Copied!"})]}):x.jsxs(x.Fragment,{children:[x.jsx(fu,{className:"w-3.5 h-3.5"}),x.jsx("span",{children:"Copy Resume Command"})]})}),x.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?x.jsxs(x.Fragment,{children:[x.jsx(dl,{className:"w-3.5 h-3.5 text-green-500"}),x.jsx("span",{className:"text-green-500",children:"Copied!"})]}):x.jsxs(x.Fragment,{children:[x.jsx(fu,{className:"w-3.5 h-3.5"}),x.jsx("span",{children:"Copy UUID"})]})}),x.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?x.jsxs(x.Fragment,{children:[x.jsx(dl,{className:"w-3.5 h-3.5 text-green-500"}),x.jsx("span",{className:"text-green-500",children:"Copied!"})]}):x.jsxs(x.Fragment,{children:[x.jsx(zc,{className:"w-3.5 h-3.5"}),x.jsx("span",{children:"Copy JSONL Path"})]})}),x.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:[x.jsx(Z1,{className:"w-3.5 h-3.5"}),x.jsx("span",{children:"Delete JSONL"})]})]})]})}function HE(){const n=F.useMemo(()=>{const Q=$p(window.location.search);return{selectedProject:Q.project??null,selectedSession:Q.session??null,search:Q.search??"",fullTextEnabled:Q.fullTextEnabled??!1,fullTextOptions:Q.fullTextOptions??Rn,sidebarCollapsed:Q.sidebarCollapsed??!1,batchMode:Q.batchMode??!1,excludeUnknownModels:Q.excludeUnknownModels??!1}},[]),[a,i]=F.useState([]),[u,s]=F.useState([]),[c,f]=F.useState(n.selectedProject),[d,p]=F.useState(n.selectedSession),[m,y]=F.useState(!0),[g,S]=F.useState(n.sidebarCollapsed),[v,w]=F.useState(!1),[A,L]=F.useState(!1),[j,q]=F.useState(!1),[U,te]=F.useState(n.excludeUnknownModels),[le,O]=F.useState(new Map),[$,re]=F.useState(n.search),[me,H]=F.useState(n.fullTextEnabled),[ie,ne]=F.useState(n.fullTextOptions),[be,se]=F.useState(n.batchMode),[W,_]=F.useState(new Set),I=F.useRef({didInit:!1,prev:null,searchTimer:null,lastCommittedSearch:""}),[ce,ve]=F.useState(!1),[E,C]=F.useState([]),[V,k]=F.useState(void 0),[K,ue]=F.useState(null),oe=F.useCallback((Q,P)=>{const he=`cd ${P} && claude --resume ${Q}`;navigator.clipboard.writeText(he).then(()=>{w(!0),setTimeout(()=>w(!1),2e3)})},[]),ze=F.useCallback(Q=>{navigator.clipboard.writeText(Q).then(()=>{L(!0),setTimeout(()=>L(!1),2e3)})},[]),Ve=F.useCallback(async Q=>{try{const P=await fetch(`/api/sessions/${encodeURIComponent(Q)}/path`),he=await P.json();if(!P.ok||!he.path){console.warn("[handleCopyJsonlPath] JSONL path not found for session:",Q);return}await navigator.clipboard.writeText(he.path),q(!0),setTimeout(()=>q(!1),2e3)}catch(P){console.error("[handleCopyJsonlPath] Failed to copy JSONL path:",P)}},[]),Ue=F.useCallback(async(Q,P,he,Be)=>{try{const Te=await fetch("/api/sessions/rename",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:Q,display:P,project:he,timestamp:Be})});if(!Te.ok){console.error("[handleRenameSession] Server returned error:",Te.status);return}i(Ce=>Ce.map(Je=>Je.id===Q?{...Je,display:P}:Je))}catch(Te){console.error("[handleRenameSession] Failed to rename session:",Te)}},[]),lt=F.useMemo(()=>d&&a.find(Q=>Q.id===d)||null,[a,d]),kt=F.useMemo(()=>c?a.filter(Q=>Q.project===c):a,[a,c]),an=F.useMemo(()=>U?kt.filter(Q=>le.get(Q.id)!==null):kt,[kt,U,le]);F.useEffect(()=>{ue(null)},[d]);const Ul=F.useCallback(Q=>{ue(Q)},[]);F.useEffect(()=>{fetch("/api/projects").then(Q=>Q.json()).then(s).catch(console.error)},[]),F.useEffect(()=>{O(Q=>{const P=new Set(a.map(Be=>Be.id)),he=new Map;for(const[Be,Te]of Q.entries())P.has(Be)&&he.set(Be,Te);return he})},[a]);const Ft=F.useCallback(async Q=>{if(Q.length!==0)try{const P=await fetch("/api/sessions/metadata",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:Q})}),he=await P.json();if(!P.ok||!he.sessions)return;O(Be=>{const Te=new Map(Be);for(const Ce of he.sessions)Te.set(Ce.id,Ce.model??null);return Te})}catch{}},[]);F.useEffect(()=>{if(!U)return;const Q=kt.map(P=>P.id).filter(P=>!le.has(P));Q.length!==0&&Ft(Q)},[U,kt,le,Ft]);const Un=F.useCallback(Q=>{const P=JSON.parse(Q.data);i(P),y(!1)},[]),Bn=F.useCallback(Q=>{const P=JSON.parse(Q.data);i(he=>{const Be=new Map(he.map(Te=>[Te.id,Te]));for(const Te of P)Be.set(Te.id,Te);return Array.from(Be.values()).sort((Te,Ce)=>Ce.timestamp-Te.timestamp)})},[]),Bl=F.useCallback(()=>{y(!1)},[]);EE("/api/sessions/stream",{events:[{eventName:"sessions",onMessage:Un},{eventName:"sessionsUpdate",onMessage:Bn}],onError:Bl});const Hl=F.useCallback(Q=>{p(Q)},[]);F.useEffect(()=>{const Q=()=>{const P=$p(window.location.search),he={project:P.project??null,session:P.session??null,search:P.search??"",fullTextEnabled:P.fullTextEnabled??!1,fullTextOptions:P.fullTextOptions??Rn,sidebarCollapsed:P.sidebarCollapsed??!1,batchMode:P.batchMode??!1,excludeUnknownModels:P.excludeUnknownModels??!1};f(he.project),p(he.session),re(he.search),H(he.fullTextEnabled),ne(he.fullTextOptions),S(he.sidebarCollapsed),se(he.batchMode),te(he.excludeUnknownModels),_(new Set)};return window.addEventListener("popstate",Q),()=>{window.removeEventListener("popstate",Q)}},[]),F.useEffect(()=>()=>{const{searchTimer:Q}=I.current;Q&&clearTimeout(Q)},[]),F.useEffect(()=>{const Q=I.current,P={project:c,session:d,search:$,fullTextEnabled:me,fullTextOptions:ie,sidebarCollapsed:g,batchMode:be,excludeUnknownModels:U};if(!Q.didInit){Q.didInit=!0,Q.prev=P,Q.lastCommittedSearch=P.search;return}const he=Q.prev;Q.prev=P;const Be=Wp(P);if(window.location.search===Be)return;const Te=!!he&&(he.fullTextOptions.mode!==P.fullTextOptions.mode||he.fullTextOptions.caseSensitive!==P.fullTextOptions.caseSensitive||he.fullTextOptions.wordRegexp!==P.fullTextOptions.wordRegexp||(he.fullTextOptions.maxMatchesPerFile??200)!==(P.fullTextOptions.maxMatchesPerFile??200)),Ce=!!he&&(he.project!==P.project||he.session!==P.session||he.fullTextEnabled!==P.fullTextEnabled||Te||he.sidebarCollapsed!==P.sidebarCollapsed||he.batchMode!==P.batchMode||he.excludeUnknownModels!==P.excludeUnknownModels);if(!!he&&he.search!==P.search&&!Ce){history.replaceState(null,"",Be||window.location.pathname),Q.searchTimer&&clearTimeout(Q.searchTimer);const De=P.search;Q.searchTimer=setTimeout(()=>{if(Q.lastCommittedSearch===De)return;const rn={project:c,session:d,search:$,fullTextEnabled:me,fullTextOptions:ie,sidebarCollapsed:g,batchMode:be,excludeUnknownModels:U};if(rn.search!==De)return;const Tt=Wp(rn);if(window.location.search===Tt){const zu=Tt||window.location.pathname;history.pushState(null,"",zu),Q.lastCommittedSearch=De}},600);return}Q.searchTimer&&(clearTimeout(Q.searchTimer),Q.searchTimer=null),history.pushState(null,"",Be||window.location.pathname),Q.lastCommittedSearch=P.search},[c,d,$,me,ie,g,be,U]);const Hn=F.useCallback(()=>{se(Q=>!Q),_(new Set)},[]),qn=F.useCallback(Q=>{_(P=>{const he=new Set(P);return he.has(Q)?he.delete(Q):he.add(Q),he})},[]),pl=F.useCallback(()=>{_(new Set(an.map(Q=>Q.id)))},[an]),Di=F.useCallback(()=>{_(new Set)},[]),Yn=F.useCallback(async Q=>{if(Q.length===0){console.log("[handleDeleteSessions] No ids to delete");return}console.log(`[handleDeleteSessions] Requesting deletion of ${Q.length} sessions:`,Q);try{const P=await fetch("/api/sessions/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:Q})}),he=await P.json();if(console.log("[handleDeleteSessions] Server response:",he),!P.ok){console.error("[handleDeleteSessions] Server returned error:",P.status);return}const Be=new Set(he.deleted??[]),Te=he.failed??[];console.log(`[handleDeleteSessions] ${Be.size} deleted, ${Te.length} failed`),Be.size>0&&(console.log("[handleDeleteSessions] Removing from state:",Array.from(Be)),i(Ce=>Ce.filter(Je=>!Be.has(Je.id))),_(Ce=>{const Je=new Set(Ce);for(const De of Be)Je.delete(De);return Je}),O(Ce=>{const Je=new Map(Ce);for(const De of Be)Je.delete(De);return Je}),p(Ce=>Ce&&Be.has(Ce)?null:Ce)),Te.length>0&&console.warn("[handleDeleteSessions] These sessions failed to delete:",Te)}catch(P){console.error("[handleDeleteSessions] Fetch error:",P)}},[]),mt=F.useCallback(Q=>{Yn(Q)},[Yn]),Ri=F.useCallback(Q=>{window.confirm("Delete this session's JSONL file? This cannot be undone.")&&Yn([Q])},[Yn]),G=F.useCallback(()=>{lt&&(C([lt]),k(void 0),ve(!0))},[lt]),ae=F.useCallback(()=>{const Q=an.filter(P=>W.has(P.id));C(Q),k(void 0),ve(!0)},[an,W]),ye=F.useCallback(()=>{ve(!1),C([]),k(void 0)},[]);return x.jsxs("div",{className:"flex h-screen bg-zinc-950 text-zinc-100",children:[!g&&x.jsxs("aside",{className:"w-80 border-r border-zinc-800/60 flex flex-col bg-zinc-950",children:[x.jsx("div",{className:"border-b border-zinc-800/60 p-2",children:x.jsx(pb,{projects:u,selectedProject:c,onSelect:f})}),x.jsx(db,{sessions:an,selectedSession:d,onSelectSession:Hl,loading:m,selectedProject:c,search:$,onSearchChange:re,fullTextEnabled:me,onFullTextEnabledChange:H,fullTextOptions:ie,onFullTextOptionsChange:ne,excludeUnknownModels:U,onExcludeUnknownModelsChange:te,sessionModels:le,onDeleteUnknownSessions:mt,batchMode:be,selectedSessions:W,onToggleBatchMode:Hn,onToggleSessionSelection:qn,onSelectAll:pl,onDeselectAll:Di,onBatchExport:ae})]}),x.jsxs("main",{className:"flex-1 overflow-hidden bg-zinc-950 flex flex-col",children:[x.jsxs("div",{className:"min-h-12.5 border-b border-zinc-800/60 flex items-center px-4 gap-4 py-2",children:[x.jsx("button",{onClick:()=>S(!g),className:"p-1.5 hover:bg-zinc-800 rounded transition-colors cursor-pointer","aria-label":g?"Expand sidebar":"Collapse sidebar",children:x.jsx(_1,{className:"w-4 h-4 text-zinc-400"})}),lt&&x.jsx(BE,{session:lt,meta:K,copied:v,copiedUuid:A,copiedJsonlPath:j,onCopyResumeCommand:oe,onCopyUuid:ze,onCopyJsonlPath:Ve,onDeleteJsonl:Ri,onRenameSession:Ue,onExport:G})]}),x.jsx("div",{className:"flex-1 overflow-hidden",children:d?x.jsx(wE,{sessionId:d,onMetaChange:Ul}):x.jsx("div",{className:"flex h-full items-center justify-center text-zinc-600",children:x.jsxs("div",{className:"text-center",children:[x.jsx("div",{className:"text-base mb-2 text-zinc-500",children:"Select a session"}),x.jsx("div",{className:"text-sm text-zinc-600",children:"Choose a session from the list to view the conversation"})]})})})]}),ce&&x.jsx(LE,{sessions:E,messages:V,onClose:ye})]})}Gy.createRoot(document.getElementById("root")).render(x.jsx(F.StrictMode,{children:x.jsx(HE,{})}));