@teddysc/claude-run 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/web/assets/index-B4G1ceoy.js +333 -0
- package/dist/web/index.html +1 -1
- package/package.json +3 -2
- package/spec.md +280 -0
- package/dist/web/assets/index-CfXKVwHJ.js +0 -333
|
@@ -1,333 +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:{}},Aa={};/**
|
|
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 By(){if(qm)return Aa;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 Aa.Fragment=a,Aa.jsx=i,Aa.jsxs=i,Aa}var Ym;function Hy(){return Ym||(Ym=1,Lo.exports=By()),Lo.exports}var x=Hy(),Uo={exports:{}},Ee={};/**
|
|
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 qy(){if(Vm)return Ee;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(){}},j=Object.assign,L={};function M(C,V,k){this.props=C,this.context=V,this.refs=L,this.updater=k||w}M.prototype.isReactComponent={},M.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")},M.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function q(){}q.prototype=M.prototype;function _(C,V,k){this.props=C,this.context=V,this.refs=L,this.updater=k||w}var W=_.prototype=new q;W.constructor=_,j(W,M.prototype),W.isPureReactComponent=!0;var ie=Array.isArray;function O(){}var I={H:null,A:null,T:null,S:null},se=Object.prototype.hasOwnProperty;function me(C,V,k){var re=k.ref;return{$$typeof:n,type:C,key:V,ref:re!==void 0?re:null,props:k}}function B(C,V){return me(C.type,V,C.props)}function ne(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function P(C){var V={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(k){return V[k]})}var pe=/\/+/g;function ue(C,V){return typeof C=="object"&&C!==null&&C.key!=null?P(""+C.key):V.toString(36)}function $(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 U(C,V,k,re,xe){var ge=typeof C;(ge==="undefined"||ge==="boolean")&&(C=null);var ae=!1;if(C===null)ae=!0;else switch(ge){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(C.$$typeof){case n:case a:ae=!0;break;case y:return ae=C._init,U(ae(C._payload),V,k,re,xe)}}if(ae)return xe=xe(C),ae=re===""?"."+ue(C,0):re,ie(xe)?(k="",ae!=null&&(k=ae.replace(pe,"$&/")+"/"),U(xe,V,k,"",function(je){return je})):xe!=null&&(ne(xe)&&(xe=B(xe,k+(xe.key==null||C&&C.key===xe.key?"":(""+xe.key).replace(pe,"$&/")+"/")+ae)),V.push(xe)),1;ae=0;var he=re===""?".":re+":";if(ie(C))for(var ze=0;ze<C.length;ze++)re=C[ze],ge=he+ue(re,ze),ae+=U(re,V,k,ge,xe);else if(ze=v(C),typeof ze=="function")for(C=ze.call(C),ze=0;!(re=C.next()).done;)re=re.value,ge=he+ue(re,ze++),ae+=U(re,V,k,ge,xe);else if(ge==="object"){if(typeof C.then=="function")return U($(C),V,k,re,xe);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 ae}function K(C,V,k){if(C==null)return C;var re=[],xe=0;return U(C,re,"","",function(ge){return V.call(k,ge,xe++)}),re}function oe(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 we=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:K,forEach:function(C,V,k){K(C,function(){V.apply(this,arguments)},k)},count:function(C){var V=0;return K(C,function(){V++}),V},toArray:function(C){return K(C,function(V){return V})||[]},only:function(C){if(!ne(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return Ee.Activity=g,Ee.Children=E,Ee.Component=M,Ee.Fragment=i,Ee.Profiler=s,Ee.PureComponent=_,Ee.StrictMode=u,Ee.Suspense=p,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(C){return I.H.useMemoCache(C)}},Ee.cache=function(C){return function(){return C.apply(null,arguments)}},Ee.cacheSignal=function(){return null},Ee.cloneElement=function(C,V,k){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var re=j({},C.props),xe=C.key;if(V!=null)for(ge in V.key!==void 0&&(xe=""+V.key),V)!se.call(V,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&V.ref===void 0||(re[ge]=V[ge]);var ge=arguments.length-2;if(ge===1)re.children=k;else if(1<ge){for(var ae=Array(ge),he=0;he<ge;he++)ae[he]=arguments[he+2];re.children=ae}return me(C.type,xe,re)},Ee.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},Ee.createElement=function(C,V,k){var re,xe={},ge=null;if(V!=null)for(re in V.key!==void 0&&(ge=""+V.key),V)se.call(V,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(xe[re]=V[re]);var ae=arguments.length-2;if(ae===1)xe.children=k;else if(1<ae){for(var he=Array(ae),ze=0;ze<ae;ze++)he[ze]=arguments[ze+2];xe.children=he}if(C&&C.defaultProps)for(re in ae=C.defaultProps,ae)xe[re]===void 0&&(xe[re]=ae[re]);return me(C,ge,xe)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(C){return{$$typeof:d,render:C}},Ee.isValidElement=ne,Ee.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:oe}},Ee.memo=function(C,V){return{$$typeof:m,type:C,compare:V===void 0?null:V}},Ee.startTransition=function(C){var V=I.T,k={};I.T=k;try{var re=C(),xe=I.S;xe!==null&&xe(k,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(O,we)}catch(ge){we(ge)}finally{V!==null&&k.types!==null&&(V.types=k.types),I.T=V}},Ee.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},Ee.use=function(C){return I.H.use(C)},Ee.useActionState=function(C,V,k){return I.H.useActionState(C,V,k)},Ee.useCallback=function(C,V){return I.H.useCallback(C,V)},Ee.useContext=function(C){return I.H.useContext(C)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(C,V){return I.H.useDeferredValue(C,V)},Ee.useEffect=function(C,V){return I.H.useEffect(C,V)},Ee.useEffectEvent=function(C){return I.H.useEffectEvent(C)},Ee.useId=function(){return I.H.useId()},Ee.useImperativeHandle=function(C,V,k){return I.H.useImperativeHandle(C,V,k)},Ee.useInsertionEffect=function(C,V){return I.H.useInsertionEffect(C,V)},Ee.useLayoutEffect=function(C,V){return I.H.useLayoutEffect(C,V)},Ee.useMemo=function(C,V){return I.H.useMemo(C,V)},Ee.useOptimistic=function(C,V){return I.H.useOptimistic(C,V)},Ee.useReducer=function(C,V,k){return I.H.useReducer(C,V,k)},Ee.useRef=function(C){return I.H.useRef(C)},Ee.useState=function(C){return I.H.useState(C)},Ee.useSyncExternalStore=function(C,V,k){return I.H.useSyncExternalStore(C,V,k)},Ee.useTransition=function(){return I.H.useTransition()},Ee.version="19.2.4",Ee}var Xm;function vc(){return Xm||(Xm=1,Uo.exports=qy()),Uo.exports}var Q=vc(),Bo={exports:{}},_a={},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 Yy(){return Gm||(Gm=1,(function(n){function a(U,K){var oe=U.length;U.push(K);e:for(;0<oe;){var we=oe-1>>>1,E=U[we];if(0<s(E,K))U[we]=K,U[oe]=E,oe=we;else break e}}function i(U){return U.length===0?null:U[0]}function u(U){if(U.length===0)return null;var K=U[0],oe=U.pop();if(oe!==K){U[0]=oe;e:for(var we=0,E=U.length,C=E>>>1;we<C;){var V=2*(we+1)-1,k=U[V],re=V+1,xe=U[re];if(0>s(k,oe))re<E&&0>s(xe,k)?(U[we]=xe,U[re]=oe,we=re):(U[we]=k,U[V]=oe,we=V);else if(re<E&&0>s(xe,oe))U[we]=xe,U[re]=oe,we=re;else break e}}return K}function s(U,K){var oe=U.sortIndex-K.sortIndex;return oe!==0?oe:U.id-K.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,d=f.now();n.unstable_now=function(){return f.now()-d}}var p=[],m=[],y=1,g=null,S=3,v=!1,w=!1,j=!1,L=!1,M=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function W(U){for(var K=i(m);K!==null;){if(K.callback===null)u(m);else if(K.startTime<=U)u(m),K.sortIndex=K.expirationTime,a(p,K);else break;K=i(m)}}function ie(U){if(j=!1,W(U),!w)if(i(p)!==null)w=!0,O||(O=!0,P());else{var K=i(m);K!==null&&$(ie,K.startTime-U)}}var O=!1,I=-1,se=5,me=-1;function B(){return L?!0:!(n.unstable_now()-me<se)}function ne(){if(L=!1,O){var U=n.unstable_now();me=U;var K=!0;try{e:{w=!1,j&&(j=!1,q(I),I=-1),v=!0;var oe=S;try{t:{for(W(U),g=i(p);g!==null&&!(g.expirationTime>U&&B());){var we=g.callback;if(typeof we=="function"){g.callback=null,S=g.priorityLevel;var E=we(g.expirationTime<=U);if(U=n.unstable_now(),typeof E=="function"){g.callback=E,W(U),K=!0;break t}g===i(p)&&u(p),W(U)}else u(p);g=i(p)}if(g!==null)K=!0;else{var C=i(m);C!==null&&$(ie,C.startTime-U),K=!1}}break e}finally{g=null,S=oe,v=!1}K=void 0}}finally{K?P():O=!1}}}var P;if(typeof _=="function")P=function(){_(ne)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,ue=pe.port2;pe.port1.onmessage=ne,P=function(){ue.postMessage(null)}}else P=function(){M(ne,0)};function $(U,K){I=M(function(){U(n.unstable_now())},K)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(U){U.callback=null},n.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<U?Math.floor(1e3/U):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(U){switch(S){case 1:case 2:case 3:var K=3;break;default:K=S}var oe=S;S=K;try{return U()}finally{S=oe}},n.unstable_requestPaint=function(){L=!0},n.unstable_runWithPriority=function(U,K){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var oe=S;S=U;try{return K()}finally{S=oe}},n.unstable_scheduleCallback=function(U,K,oe){var we=n.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?we+oe:we):oe=we,U){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=oe+E,U={id:y++,callback:K,priorityLevel:U,startTime:oe,expirationTime:E,sortIndex:-1},oe>we?(U.sortIndex=oe,a(m,U),i(p)===null&&U===i(m)&&(j?(q(I),I=-1):j=!0,$(ie,oe-we))):(U.sortIndex=E,a(p,U),w||v||(w=!0,O||(O=!0,P()))),U},n.unstable_shouldYield=B,n.unstable_wrapCallback=function(U){var K=S;return function(){var oe=S;S=K;try{return U.apply(this,arguments)}finally{S=oe}}}})(qo)),qo}var Qm;function Vy(){return Qm||(Qm=1,Ho.exports=Yy()),Ho.exports}var Yo={exports:{}},kt={};/**
|
|
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 Xy(){if(Fm)return kt;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 kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,kt.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)},kt.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()}},kt.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))},kt.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},kt.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})}},kt.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)},kt.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})}},kt.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)},kt.requestFormReset=function(p){u.d.r(p)},kt.unstable_batchedUpdates=function(p,m){return p(m)},kt.useFormState=function(p,m,y){return f.H.useFormState(p,m,y)},kt.useFormStatus=function(){return f.H.useHostTransitionStatus()},kt.version="19.2.4",kt}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=Xy(),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 Gy(){if(Jm)return _a;Jm=1;var n=Vy(),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"),j=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),_=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),ie=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),B=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function P(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case M:return"Profiler";case L:return"StrictMode";case ie:return"Suspense";case O:return"SuspenseList";case me:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case _:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case W:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case I:return t=e.displayName||null,t!==null?t:ue(e.type)||"Memo";case se:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}var $=Array.isArray,U=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},we=[],E=-1;function C(e){return{current:e}}function V(e){0>E||(e.current=we[E],we[E]=null,E--)}function k(e,t){E++,we[E]=e.current,e.current=t}var re=C(null),xe=C(null),ge=C(null),ae=C(null);function he(e,t){switch(k(ge,t),k(xe,e),k(re,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(re),k(re,e)}function ze(){V(re),V(xe),V(ge)}function je(e){e.memoizedState!==null&&k(ae,e);var t=re.current,l=cm(t,e.type);t!==l&&(k(xe,e),k(re,l))}function Xe(e){xe.current===e&&(V(re),V(xe)),ae.current===e&&(V(ae),Ca._currentValue=oe)}var dt,Tt;function gt(e){if(dt===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);dt=t&&t[1]||"",Tt=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+dt+e+Tt}var Vn=!1;function vn(e,t){if(!e||Vn)return"";Vn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(Y){var H=Y}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(Y){H=Y}e.call(Z.prototype)}}else{try{throw Error()}catch(Y){H=Y}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(Y){if(Y&&H&&typeof Y.stack=="string")return[Y.stack,H.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{Vn=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?gt(l):""}function Yl(e,t){switch(e.tag){case 26:case 27:case 5:return gt(e.type);case 16:return gt("Lazy");case 13:return e.child!==t&&t!==null?gt("Suspense Fallback"):gt("Suspense");case 19:return gt("SuspenseList");case 0:case 15:return vn(e.type,!1);case 11:return vn(e.type.render,!1);case 1:return vn(e.type,!0);case 31:return gt("Activity");default:return""}}function Vl(e){try{var t="",l=null;do t+=Yl(e,l),l=e,e=e.return;while(e);return t}catch(r){return`
|
|
47
|
-
Error generating stack: `+r.message+`
|
|
48
|
-
`+r.stack}}var Xn=Object.prototype.hasOwnProperty,Gn=n.unstable_scheduleCallback,yl=n.unstable_cancelCallback,Bi=n.unstable_shouldYield,Hi=n.unstable_requestPaint,xt=n.unstable_now,Xl=n.unstable_getCurrentPriorityLevel,G=n.unstable_ImmediatePriority,le=n.unstable_UserBlockingPriority,ke=n.unstable_NormalPriority,Me=n.unstable_LowPriority,qe=n.unstable_IdlePriority,Ct=n.log,on=n.unstable_setDisableYieldValue,J=null,te=null;function ce(e){if(typeof Ct=="function"&&on(e),te&&typeof te.setStrictMode=="function")try{te.setStrictMode(J,e)}catch{}}var be=Math.clz32?Math.clz32:Mt,Be=Math.log,Qe=Math.LN2;function Mt(e){return e>>>=0,e===0?32:31-(Be(e)/Qe|0)|0}var It=256,bl=262144,vl=4194304;function Sn(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 Fa(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=Sn(r):(b&=z,b!==0?o=Sn(b):l||(l=z&~e,l!==0&&(o=Sn(l))))):(z=r&~h,z!==0?o=Sn(z):b!==0?o=Sn(b):l||(l=r&~e,l!==0&&(o=Sn(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 qi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Eg(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=vl;return vl<<=1,(vl&62914560)===0&&(vl=4194304),e}function ku(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Yi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Tg(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-be(l),Z=1<<X;z[X]=0,T[X]=-1;var H=R[X];if(H!==null)for(R[X]=null,X=0;X<H.length;X++){var Y=H[X];Y!==null&&(Y.lane&=-536870913)}l&=~Z}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-be(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-be(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=K.p;return e!==0?e:(e=window.event,e===void 0?32:Om(e.type))}function Jc(e,t){var l=K.p;try{return K.p=e,t()}finally{K.p=l}}var Qn=Math.random().toString(36).slice(2),yt="__reactFiber$"+Qn,At="__reactProps$"+Qn,Gl="__reactContainer$"+Qn,Tu="__reactEvents$"+Qn,Cg="__reactListeners$"+Qn,Ng="__reactHandles$"+Qn,Kc="__reactResources$"+Qn,Vi="__reactMarker$"+Qn;function Cu(e){delete e[yt],delete e[At],delete e[Tu],delete e[Cg],delete e[Ng]}function Ql(e){var t=e[yt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Gl]||l[yt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=xm(e);e!==null;){if(l=e[yt])return l;e=xm(e)}return t}e=l,l=e.parentNode}return null}function Fl(e){if(e=e[yt]||e[Gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Zl(e){var t=e[Kc];return t||(t=e[Kc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function mt(e){e[Vi]=!0}var Ic=new Set,$c={};function Sl(e,t){Jl(e,t),Jl(e+"Capture",t)}function Jl(e,t){for($c[e]=t,e=0;e<t.length;e++)Ic.add(t[e])}var jg=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 Mg(e){return Xn.call(Pc,e)?!0:Xn.call(Wc,e)?!1:jg.test(e)?Pc[e]=!0:(Wc[e]=!0,!1)}function Za(e,t,l){if(Mg(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 Ja(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 zn(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 $t(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 Ag(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=Ag(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 Ka(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 _g=/[\n"\\]/g;function Wt(e){return e.replace(_g,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=""+$t(t)):e.value!==""+$t(t)&&(e.value=""+$t(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?Mu(e,b,$t(t)):l!=null?Mu(e,b,$t(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=""+$t(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?""+$t(l):"",t=t!=null?""+$t(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 Mu(e,t,l){t==="number"&&Ka(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Kl(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=""+$t(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=""+$t(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+$t(l):""}function af(e,t,l,r){if(t==null){if(r!=null){if(l!=null)throw Error(u(92));if($(r)){if(1<r.length)throw Error(u(93));r=r[0]}l=r}l==null&&(l=""),t=l}l=$t(t),e.defaultValue=l,r=e.textContent,r===l&&r!==""&&r!==null&&(e.value=r),Nu(e)}function Il(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Og=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||Og.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 Au(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 Dg=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"]]),Rg=/^[\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 Ia(e){return Rg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function kn(){}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 $l=null,Wl=null;function sf(e){var t=Fl(e);if(t&&(e=t.stateNode)){var l=e[At]||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="'+Wt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var r=l[t];if(r!==e&&r.form===e.form){var o=r[At]||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&&Kl(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,($l!==null||Wl!==null)&&(Ur(),$l&&(t=$l,e=Wl,Wl=$l=null,sf(t),e)))for(t=0;t<e.length;t++)sf(e[t])}}function Gi(e,t){var l=e.stateNode;if(l===null)return null;var r=l[At]||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 wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ru=!1;if(wn)try{var Qi={};Object.defineProperty(Qi,"passive",{get:function(){Ru=!0}}),window.addEventListener("test",Qi,Qi),window.removeEventListener("test",Qi,Qi)}catch{Ru=!1}var Fn=null,Lu=null,$a=null;function cf(){if($a)return $a;var e,t=Lu,l=t.length,r,o="value"in Fn?Fn.value:Fn.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 $a=o.slice(e,1<r?1-r:void 0)}function Wa(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 Pa(){return!0}function ff(){return!1}function _t(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)?Pa: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=Pa)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Pa)},persist:function(){},isPersistent:Pa}),t}var zl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},er=_t(zl),Fi=g({},zl,{view:0,detail:0}),Lg=_t(Fi),Uu,Bu,Zi,tr=g({},Fi,{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!==Zi&&(Zi&&e.type==="mousemove"?(Uu=e.screenX-Zi.screenX,Bu=e.screenY-Zi.screenY):Bu=Uu=0,Zi=e),Uu)},movementY:function(e){return"movementY"in e?e.movementY:Bu}}),hf=_t(tr),Ug=g({},tr,{dataTransfer:0}),Bg=_t(Ug),Hg=g({},Fi,{relatedTarget:0}),Hu=_t(Hg),qg=g({},zl,{animationName:0,elapsedTime:0,pseudoElement:0}),Yg=_t(qg),Vg=g({},zl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xg=_t(Vg),Gg=g({},zl,{data:0}),df=_t(Gg),Qg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fg={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"},Zg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zg[e])?!!t[e]:!1}function qu(){return Jg}var Kg=g({},Fi,{key:function(e){if(e.key){var t=Qg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fg[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"?Wa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ig=_t(Kg),$g=g({},tr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mf=_t($g),Wg=g({},Fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qu}),Pg=_t(Wg),ex=g({},zl,{propertyName:0,elapsedTime:0,pseudoElement:0}),tx=_t(ex),nx=g({},tr,{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}),lx=_t(nx),ix=g({},zl,{newState:0,oldState:0}),ax=_t(ix),rx=[9,13,27,32],Yu=wn&&"CompositionEvent"in window,Ji=null;wn&&"documentMode"in document&&(Ji=document.documentMode);var ux=wn&&"TextEvent"in window&&!Ji,pf=wn&&(!Yu||Ji&&8<Ji&&11>=Ji),gf=" ",xf=!1;function yf(e,t){switch(e){case"keyup":return rx.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 Pl=!1;function sx(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 ox(e,t){if(Pl)return e==="compositionend"||!Yu&&yf(e,t)?(e=cf(),$a=Lu=Fn=null,Pl=!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 cx={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"?!!cx[e.type]:t==="textarea"}function Sf(e,t,l,r){$l?Wl?Wl.push(r):Wl=[r]:$l=r,t=Gr(t,"onChange"),0<t.length&&(l=new er("onChange","change",null,l,r),e.push({event:l,listeners:t}))}var Ki=null,Ii=null;function fx(e){lm(e,0)}function nr(e){var t=Xi(e);if(tf(t))return e}function zf(e,t){if(e==="change")return t}var kf=!1;if(wn){var Vu;if(wn){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(){Ki&&(Ki.detachEvent("onpropertychange",Tf),Ii=Ki=null)}function Tf(e){if(e.propertyName==="value"&&nr(Ii)){var t=[];Sf(t,Ii,e,Ou(e)),of(fx,t)}}function hx(e,t,l){e==="focusin"?(Ef(),Ki=t,Ii=l,Ki.attachEvent("onpropertychange",Tf)):e==="focusout"&&Ef()}function dx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return nr(Ii)}function mx(e,t){if(e==="click")return nr(t)}function px(e,t){if(e==="input"||e==="change")return nr(t)}function gx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yt=typeof Object.is=="function"?Object.is:gx;function $i(e,t){if(Yt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),r=Object.keys(t);if(l.length!==r.length)return!1;for(r=0;r<l.length;r++){var o=l[r];if(!Xn.call(t,o)||!Yt(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 Mf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ka(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=Ka(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 xx=wn&&"documentMode"in document&&11>=document.documentMode,ei=null,Qu=null,Wi=null,Fu=!1;function Af(e,t,l){var r=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Fu||ei==null||ei!==Ka(r)||(r=ei,"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}),Wi&&$i(Wi,r)||(Wi=r,r=Gr(Qu,"onSelect"),0<r.length&&(t=new er("onSelect","select",null,t,l),e.push({event:t,listeners:r}),t.target=ei)))}function kl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ti={animationend:kl("Animation","AnimationEnd"),animationiteration:kl("Animation","AnimationIteration"),animationstart:kl("Animation","AnimationStart"),transitionrun:kl("Transition","TransitionRun"),transitionstart:kl("Transition","TransitionStart"),transitioncancel:kl("Transition","TransitionCancel"),transitionend:kl("Transition","TransitionEnd")},Zu={},_f={};wn&&(_f=document.createElement("div").style,"AnimationEvent"in window||(delete ti.animationend.animation,delete ti.animationiteration.animation,delete ti.animationstart.animation),"TransitionEvent"in window||delete ti.transitionend.transition);function wl(e){if(Zu[e])return Zu[e];if(!ti[e])return e;var t=ti[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in _f)return Zu[e]=t[l];return e}var Of=wl("animationend"),Df=wl("animationiteration"),Rf=wl("animationstart"),yx=wl("transitionrun"),bx=wl("transitionstart"),vx=wl("transitioncancel"),Lf=wl("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 cn(e,t){Uf.set(e,t),Sl(t,[e])}var lr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Pt=[],ni=0,Ku=0;function ir(){for(var e=ni,t=Ku=ni=0;t<e;){var l=Pt[t];Pt[t++]=null;var r=Pt[t];Pt[t++]=null;var o=Pt[t];Pt[t++]=null;var h=Pt[t];if(Pt[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 ar(e,t,l,r){Pt[ni++]=e,Pt[ni++]=t,Pt[ni++]=l,Pt[ni++]=r,Ku|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Iu(e,t,l,r){return ar(e,t,l,r),rr(e)}function El(e,t){return ar(e,null,null,t),rr(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-be(l),e=h.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=l|536870912),h):null}function rr(e){if(50<va)throw va=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 li={};function Sx(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 Vt(e,t,l,r){return new Sx(e,t,l,r)}function $u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function En(e,t){var l=e.alternate;return l===null?(l=Vt(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 ur(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=Ty(e,l,re.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case me:return e=Vt(31,l,t,o),e.elementType=me,e.lanes=h,e;case j:return Tl(l.children,o,h,t);case L:b=8,o|=24;break;case M:return e=Vt(12,l,t,o|2),e.elementType=M,e.lanes=h,e;case ie:return e=Vt(13,l,t,o),e.elementType=ie,e.lanes=h,e;case O:return e=Vt(19,l,t,o),e.elementType=O,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _:b=10;break e;case q:b=9;break e;case W:b=11;break e;case I:b=14;break e;case se:b=16,r=null;break e}b=29,l=Error(u(130,e===null?"null":typeof e,"")),r=null}return t=Vt(b,l,t,o),t.elementType=e,t.type=r,t.lanes=h,t}function Tl(e,t,l,r){return e=Vt(7,e,r,t),e.lanes=l,e}function Wu(e,t,l){return e=Vt(6,e,null,t),e.lanes=l,e}function qf(e){var t=Vt(18,null,null,0);return t.stateNode=e,t}function Pu(e,t,l){return t=Vt(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 en(e,t){if(typeof e=="object"&&e!==null){var l=Yf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Vl(t)},Yf.set(e,t),t)}return{value:e,source:t,stack:Vl(t)}}var ii=[],ai=0,sr=null,Pi=0,tn=[],nn=0,Zn=null,mn=1,pn="";function Tn(e,t){ii[ai++]=Pi,ii[ai++]=sr,sr=e,Pi=t}function Vf(e,t,l){tn[nn++]=mn,tn[nn++]=pn,tn[nn++]=Zn,Zn=e;var r=mn;e=pn;var o=32-be(r)-1;r&=~(1<<o),l+=1;var h=32-be(t)+o;if(30<h){var b=o-o%5;h=(r&(1<<b)-1).toString(32),r>>=b,o-=b,mn=1<<32-be(t)+o|l<<o|r,pn=h+e}else mn=1<<h|l<<o|r,pn=e}function es(e){e.return!==null&&(Tn(e,1),Vf(e,1,0))}function ts(e){for(;e===sr;)sr=ii[--ai],ii[ai]=null,Pi=ii[--ai],ii[ai]=null;for(;e===Zn;)Zn=tn[--nn],tn[nn]=null,pn=tn[--nn],tn[nn]=null,mn=tn[--nn],tn[nn]=null}function Xf(e,t){tn[nn++]=mn,tn[nn++]=pn,tn[nn++]=Zn,mn=t.id,pn=t.overflow,Zn=e}var bt=null,et=null,Ue=!1,Jn=null,ln=!1,ns=Error(u(519));function Kn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ea(en(t,e)),ns}function Gf(e){var t=e.stateNode,l=e.type,r=e.memoizedProps;switch(t[yt]=e,t[At]=r,l){case"dialog":_e("cancel",t),_e("close",t);break;case"iframe":case"object":case"embed":_e("load",t);break;case"video":case"audio":for(l=0;l<za.length;l++)_e(za[l],t);break;case"source":_e("error",t);break;case"img":case"image":case"link":_e("error",t),_e("load",t);break;case"details":_e("toggle",t);break;case"input":_e("invalid",t),nf(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":_e("invalid",t);break;case"textarea":_e("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&&(_e("beforetoggle",t),_e("toggle",t)),r.onScroll!=null&&_e("scroll",t),r.onScrollEnd!=null&&_e("scrollend",t),r.onClick!=null&&(t.onclick=kn),t=!0):t=!1,t||Kn(e,!0)}function Qf(e){for(bt=e.return;bt;)switch(bt.tag){case 5:case 31:case 13:ln=!1;return;case 27:case 3:ln=!0;return;default:bt=bt.return}}function ri(e){if(e!==bt)return!1;if(!Ue)return Qf(e),Ue=!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&&et&&Kn(e),Qf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));et=gm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));et=gm(e)}else t===27?(t=et,ol(e.type)?(e=To,To=null,et=e):et=t):et=bt?rn(e.stateNode.nextSibling):null;return!0}function Cl(){et=bt=null,Ue=!1}function ls(){var e=Jn;return e!==null&&(Lt===null?Lt=e:Lt.push.apply(Lt,e),Jn=null),e}function ea(e){Jn===null?Jn=[e]:Jn.push(e)}var is=C(null),Nl=null,Cn=null;function In(e,t,l){k(is,t._currentValue),t._currentValue=l}function Nn(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 ui(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;Yt(o.pendingProps.value,b.value)||(e!==null?e.push(z):e=[z])}}else if(o===ae.current){if(b=o.alternate,b===null)throw Error(u(387));b.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Ca):e=[Ca])}o=o.return}e!==null&&rs(t,e,l,r),t.flags|=262144}function or(e){for(e=e.firstContext;e!==null;){if(!Yt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function jl(e){Nl=e,Cn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return Ff(Nl,e)}function cr(e,t){return Nl===null&&jl(e),Ff(e,t)}function Ff(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Cn===null){if(e===null)throw Error(u(308));Cn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Cn=Cn.next=t;return l}var zx=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()})}},kx=n.unstable_scheduleCallback,wx=n.unstable_NormalPriority,ut={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function us(){return{controller:new zx,data:new Map,refCount:0}}function ta(e){e.refCount--,e.refCount===0&&kx(wx,function(){e.controller.abort()})}var na=null,ss=0,si=0,oi=null;function Ex(e,t){if(na===null){var l=na=[];ss=0,si=fo(),oi={status:"pending",value:void 0,then:function(r){l.push(r)}}}return ss++,t.then(Zf,Zf),t}function Zf(){if(--ss===0&&na!==null){oi!==null&&(oi.status="fulfilled");var e=na;na=null,si=0,oi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Tx(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=U.S;U.S=function(e,t){Ad=xt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ex(e,t),Jf!==null&&Jf(e,t)};var Ml=C(null);function os(){var e=Ml.current;return e!==null?e:$e.pooledCache}function fr(e,t){t===null?k(Ml,Ml.current):k(Ml,t.pool)}function Kf(){var e=os();return e===null?null:{parent:ut._currentValue,pool:e}}var ci=Error(u(460)),cs=Error(u(474)),hr=Error(u(542)),dr={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(kn,kn),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(kn,kn);else{if(e=$e,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 _l=t,ci}}function Al(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(_l=l,ci):l}}var _l=null;function Wf(){if(_l===null)throw Error(u(459));var e=_l;return _l=null,e}function Pf(e){if(e===ci||e===hr)throw Error(u(483))}var fi=null,la=0;function mr(e){var t=la;return la+=1,fi===null&&(fi=[]),$f(fi,e,t)}function ia(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function pr(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(A,N){if(e){var D=A.deletions;D===null?(A.deletions=[N],A.flags|=16):D.push(N)}}function l(A,N){if(!e)return null;for(;N!==null;)t(A,N),N=N.sibling;return null}function r(A){for(var N=new Map;A!==null;)A.key!==null?N.set(A.key,A):N.set(A.index,A),A=A.sibling;return N}function o(A,N){return A=En(A,N),A.index=0,A.sibling=null,A}function h(A,N,D){return A.index=D,e?(D=A.alternate,D!==null?(D=D.index,D<N?(A.flags|=67108866,N):D):(A.flags|=67108866,N)):(A.flags|=1048576,N)}function b(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function z(A,N,D,F){return N===null||N.tag!==6?(N=Wu(D,A.mode,F),N.return=A,N):(N=o(N,D),N.return=A,N)}function T(A,N,D,F){var ye=D.type;return ye===j?X(A,N,D.props.children,F,D.key):N!==null&&(N.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===se&&Al(ye)===N.type)?(N=o(N,D.props),ia(N,D),N.return=A,N):(N=ur(D.type,D.key,D.props,null,A.mode,F),ia(N,D),N.return=A,N)}function R(A,N,D,F){return N===null||N.tag!==4||N.stateNode.containerInfo!==D.containerInfo||N.stateNode.implementation!==D.implementation?(N=Pu(D,A.mode,F),N.return=A,N):(N=o(N,D.children||[]),N.return=A,N)}function X(A,N,D,F,ye){return N===null||N.tag!==7?(N=Tl(D,A.mode,F,ye),N.return=A,N):(N=o(N,D),N.return=A,N)}function Z(A,N,D){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Wu(""+N,A.mode,D),N.return=A,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case v:return D=ur(N.type,N.key,N.props,null,A.mode,D),ia(D,N),D.return=A,D;case w:return N=Pu(N,A.mode,D),N.return=A,N;case se:return N=Al(N),Z(A,N,D)}if($(N)||P(N))return N=Tl(N,A.mode,D,null),N.return=A,N;if(typeof N.then=="function")return Z(A,mr(N),D);if(N.$$typeof===_)return Z(A,cr(A,N),D);pr(A,N)}return null}function H(A,N,D,F){var ye=N!==null?N.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ye!==null?null:z(A,N,""+D,F);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case v:return D.key===ye?T(A,N,D,F):null;case w:return D.key===ye?R(A,N,D,F):null;case se:return D=Al(D),H(A,N,D,F)}if($(D)||P(D))return ye!==null?null:X(A,N,D,F,null);if(typeof D.then=="function")return H(A,N,mr(D),F);if(D.$$typeof===_)return H(A,N,cr(A,D),F);pr(A,D)}return null}function Y(A,N,D,F,ye){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return A=A.get(D)||null,z(N,A,""+F,ye);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case v:return A=A.get(F.key===null?D:F.key)||null,T(N,A,F,ye);case w:return A=A.get(F.key===null?D:F.key)||null,R(N,A,F,ye);case se:return F=Al(F),Y(A,N,D,F,ye)}if($(F)||P(F))return A=A.get(D)||null,X(N,A,F,ye,null);if(typeof F.then=="function")return Y(A,N,D,mr(F),ye);if(F.$$typeof===_)return Y(A,N,D,cr(N,F),ye);pr(N,F)}return null}function fe(A,N,D,F){for(var ye=null,Ye=null,de=N,Ce=N=0,Le=null;de!==null&&Ce<D.length;Ce++){de.index>Ce?(Le=de,de=null):Le=de.sibling;var Ve=H(A,de,D[Ce],F);if(Ve===null){de===null&&(de=Le);break}e&&de&&Ve.alternate===null&&t(A,de),N=h(Ve,N,Ce),Ye===null?ye=Ve:Ye.sibling=Ve,Ye=Ve,de=Le}if(Ce===D.length)return l(A,de),Ue&&Tn(A,Ce),ye;if(de===null){for(;Ce<D.length;Ce++)de=Z(A,D[Ce],F),de!==null&&(N=h(de,N,Ce),Ye===null?ye=de:Ye.sibling=de,Ye=de);return Ue&&Tn(A,Ce),ye}for(de=r(de);Ce<D.length;Ce++)Le=Y(de,A,Ce,D[Ce],F),Le!==null&&(e&&Le.alternate!==null&&de.delete(Le.key===null?Ce:Le.key),N=h(Le,N,Ce),Ye===null?ye=Le:Ye.sibling=Le,Ye=Le);return e&&de.forEach(function(ml){return t(A,ml)}),Ue&&Tn(A,Ce),ye}function Se(A,N,D,F){if(D==null)throw Error(u(151));for(var ye=null,Ye=null,de=N,Ce=N=0,Le=null,Ve=D.next();de!==null&&!Ve.done;Ce++,Ve=D.next()){de.index>Ce?(Le=de,de=null):Le=de.sibling;var ml=H(A,de,Ve.value,F);if(ml===null){de===null&&(de=Le);break}e&&de&&ml.alternate===null&&t(A,de),N=h(ml,N,Ce),Ye===null?ye=ml:Ye.sibling=ml,Ye=ml,de=Le}if(Ve.done)return l(A,de),Ue&&Tn(A,Ce),ye;if(de===null){for(;!Ve.done;Ce++,Ve=D.next())Ve=Z(A,Ve.value,F),Ve!==null&&(N=h(Ve,N,Ce),Ye===null?ye=Ve:Ye.sibling=Ve,Ye=Ve);return Ue&&Tn(A,Ce),ye}for(de=r(de);!Ve.done;Ce++,Ve=D.next())Ve=Y(de,A,Ce,Ve.value,F),Ve!==null&&(e&&Ve.alternate!==null&&de.delete(Ve.key===null?Ce:Ve.key),N=h(Ve,N,Ce),Ye===null?ye=Ve:Ye.sibling=Ve,Ye=Ve);return e&&de.forEach(function(Uy){return t(A,Uy)}),Ue&&Tn(A,Ce),ye}function Ie(A,N,D,F){if(typeof D=="object"&&D!==null&&D.type===j&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case v:e:{for(var ye=D.key;N!==null;){if(N.key===ye){if(ye=D.type,ye===j){if(N.tag===7){l(A,N.sibling),F=o(N,D.props.children),F.return=A,A=F;break e}}else if(N.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===se&&Al(ye)===N.type){l(A,N.sibling),F=o(N,D.props),ia(F,D),F.return=A,A=F;break e}l(A,N);break}else t(A,N);N=N.sibling}D.type===j?(F=Tl(D.props.children,A.mode,F,D.key),F.return=A,A=F):(F=ur(D.type,D.key,D.props,null,A.mode,F),ia(F,D),F.return=A,A=F)}return b(A);case w:e:{for(ye=D.key;N!==null;){if(N.key===ye)if(N.tag===4&&N.stateNode.containerInfo===D.containerInfo&&N.stateNode.implementation===D.implementation){l(A,N.sibling),F=o(N,D.children||[]),F.return=A,A=F;break e}else{l(A,N);break}else t(A,N);N=N.sibling}F=Pu(D,A.mode,F),F.return=A,A=F}return b(A);case se:return D=Al(D),Ie(A,N,D,F)}if($(D))return fe(A,N,D,F);if(P(D)){if(ye=P(D),typeof ye!="function")throw Error(u(150));return D=ye.call(D),Se(A,N,D,F)}if(typeof D.then=="function")return Ie(A,N,mr(D),F);if(D.$$typeof===_)return Ie(A,N,cr(A,D),F);pr(A,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,N!==null&&N.tag===6?(l(A,N.sibling),F=o(N,D),F.return=A,A=F):(l(A,N),F=Wu(D,A.mode,F),F.return=A,A=F),b(A)):l(A,N)}return function(A,N,D,F){try{la=0;var ye=Ie(A,N,D,F);return fi=null,ye}catch(de){if(de===ci||de===hr)throw de;var Ye=Vt(29,de,null,A.mode);return Ye.lanes=F,Ye.return=A,Ye}finally{}}}var Ol=eh(!0),th=eh(!1),$n=!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 Wn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pn(e,t,l){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ge&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=rr(e),Bf(e,null,l),t}return ar(e,r,t,l),rr(e)}function aa(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 ra(){if(ms){var e=oi;if(e!==null)throw e}}function ua(e,t,l,r){ms=!1;var o=e.updateQueue;$n=!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 Z=o.baseState;b=0,X=R=T=null,z=h;do{var H=z.lane&-536870913,Y=H!==z.lane;if(Y?(Re&H)===H:(r&H)===H){H!==0&&H===si&&(ms=!0),X!==null&&(X=X.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var fe=e,Se=z;H=t;var Ie=l;switch(Se.tag){case 1:if(fe=Se.payload,typeof fe=="function"){Z=fe.call(Ie,Z,H);break e}Z=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=Se.payload,H=typeof fe=="function"?fe.call(Ie,Z,H):fe,H==null)break e;Z=g({},Z,H);break e;case 2:$n=!0}}H=z.callback,H!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=o.callbacks,Y===null?o.callbacks=[H]:Y.push(H))}else Y={lane:H,tag:z.tag,payload:z.payload,callback:z.callback,next:null},X===null?(R=X=Y,T=Z):X=X.next=Y,b|=H;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=Z),o.baseState=T,o.firstBaseUpdate=R,o.lastBaseUpdate=X,h===null&&(o.shared.lanes=0),il|=b,e.lanes=b,e.memoizedState=Z}}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 hi=C(null),gr=C(0);function ih(e,t){e=Un,k(gr,e),k(hi,t),Un=e|t.baseLanes}function ps(){k(gr,Un),k(hi,hi.current)}function gs(){Un=gr.current,V(hi),V(gr)}var Xt=C(null),an=null;function el(e){var t=e.alternate;k(at,at.current&1),k(Xt,e),an===null&&(t===null||hi.current!==null||t.memoizedState!==null)&&(an=e)}function xs(e){k(at,at.current),k(Xt,e),an===null&&(an=e)}function ah(e){e.tag===22?(k(at,at.current),k(Xt,e),an===null&&(an=e)):tl()}function tl(){k(at,at.current),k(Xt,Xt.current)}function Gt(e){V(Xt),an===e&&(an=null),V(at)}var at=C(0);function xr(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 jn=0,Te=null,Je=null,st=null,yr=!1,di=!1,Dl=!1,br=0,sa=0,mi=null,Cx=0;function lt(){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(!Yt(e[l],t[l]))return!1;return!0}function bs(e,t,l,r,o,h){return jn=h,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Vh:Ds,Dl=!1,h=l(r,o),Dl=!1,di&&(h=uh(t,l,r,o)),rh(e),h}function rh(e){U.H=fa;var t=Je!==null&&Je.next!==null;if(jn=0,st=Je=Te=null,yr=!1,sa=0,mi=null,t)throw Error(u(300));e===null||ot||(e=e.dependencies,e!==null&&or(e)&&(ot=!0))}function uh(e,t,l,r){Te=e;var o=0;do{if(di&&(mi=null),sa=0,di=!1,25<=o)throw Error(u(301));if(o+=1,st=Je=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}U.H=Xh,h=t(l,r)}while(di);return h}function Nx(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?oa(t):t,e=e.useState()[0],(Je!==null?Je.memoizedState:null)!==e&&(Te.flags|=1024),t}function vs(){var e=br!==0;return br=0,e}function Ss(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function zs(e){if(yr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}yr=!1}jn=0,st=Je=Te=null,di=!1,sa=br=0,mi=null}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?Te.memoizedState=st=e:st=st.next=e,st}function rt(){if(Je===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var t=st===null?Te.memoizedState:st.next;if(t!==null)st=t,Je=e;else{if(e===null)throw Te.alternate===null?Error(u(467)):Error(u(310));Je=e,e={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},st===null?Te.memoizedState=st=e:st=st.next=e}return st}function vr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function oa(e){var t=sa;return sa+=1,mi===null&&(mi=[]),e=$f(mi,e,t),t=Te,(st===null?t.memoizedState:st.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Vh:Ds),e}function Sr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return oa(e);if(e.$$typeof===_)return vt(e)}throw Error(u(438,String(e)))}function ks(e){var t=null,l=Te.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var r=Te.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=vr(),Te.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),r=0;r<e;r++)l[r]=B;return t.index++,l}function Mn(e,t){return typeof t=="function"?t(e):t}function zr(e){var t=rt();return ws(t,Je,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 Z=R.lane&-536870913;if(Z!==R.lane?(Re&Z)===Z:(jn&Z)===Z){var H=R.revertLane;if(H===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),Z===si&&(X=!0);else if((jn&H)===H){R=R.next,H===si&&(X=!0);continue}else Z={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},T===null?(z=T=Z,b=h):T=T.next=Z,Te.lanes|=H,il|=H;Z=R.action,Dl&&l(h,Z),h=R.hasEagerState?R.eagerState:l(h,Z)}else H={lane:Z,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},T===null?(z=T=H,b=h):T=T.next=H,Te.lanes|=Z,il|=Z;R=R.next}while(R!==null&&R!==t);if(T===null?b=h:T.next=z,!Yt(h,e.memoizedState)&&(ot=!0,X&&(l=oi,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=rt(),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);Yt(h,t.memoizedState)||(ot=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),l.lastRenderedState=h}return[h,r]}function sh(e,t,l){var r=Te,o=rt(),h=Ue;if(h){if(l===void 0)throw Error(u(407));l=l()}else l=t();var b=!Yt((Je||o).memoizedState,l);if(b&&(o.memoizedState=l,ot=!0),o=o.queue,Ns(fh.bind(null,r,o,e),[e]),o.getSnapshot!==t||b||st!==null&&st.memoizedState.tag&1){if(r.flags|=2048,pi(9,{destroy:void 0},ch.bind(null,r,o,l,t),null),$e===null)throw Error(u(349));h||(jn&127)!==0||oh(r,t,l)}return l}function oh(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Te.updateQueue,t===null?(t=vr(),Te.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!Yt(e,l)}catch{return!0}}function dh(e){var t=El(e,2);t!==null&&Ut(t,e,2)}function Ts(e){var t=Nt();if(typeof e=="function"){var l=e;if(e=l(),Dl){ce(!0);try{l()}finally{ce(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:e},t}function mh(e,t,l,r){return e.baseState=l,ws(e,Je,typeof r=="function"?r:Mn)}function jx(e,t,l,r,o){if(Er(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)}};U.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=U.T,b={};U.T=b;try{var z=l(o,r),T=U.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),U.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(Ue){var l=$e.formState;if(l!==null){e:{var r=Te;if(Ue){if(et){t:{for(var o=et,h=ln;o.nodeType!==8;){if(!h){o=null;break t}if(o=rn(o.nextSibling),o===null){o=null;break t}}h=o.data,o=h==="F!"||h==="F"?o:null}if(o){et=rn(o.nextSibling),r=o.data==="F!";break e}}Kn(r)}r=!1}r&&(t=l[0])}}return l=Nt(),l.memoizedState=l.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bh,lastRenderedState:t},l.queue=r,l=Hh.bind(null,Te,r),r.dispatch=l,r=Ts(!1),h=Os.bind(null,Te,!1,r.queue),r=Nt(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,l=jx.bind(null,Te,o,h,l),o.dispatch=l,r.memoizedState=e,[t,l,!1]}function Sh(e){var t=rt();return zh(t,Je,e)}function zh(e,t,l){if(t=ws(e,t,bh)[0],e=zr(Mn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=oa(t)}catch(b){throw b===ci?hr:b}else r=t;t=rt();var o=t.queue,h=o.dispatch;return l!==t.memoizedState&&(Te.flags|=2048,pi(9,{destroy:void 0},Mx.bind(null,o,l),null)),[r,h,e]}function Mx(e,t){e.action=t}function kh(e){var t=rt(),l=Je;if(l!==null)return zh(t,l,e);rt(),t=t.memoizedState,l=rt();var r=l.queue.dispatch;return l.memoizedState=e,[t,r,!1]}function pi(e,t,l,r){return e={tag:e,create:l,deps:r,inst:t,next:null},t=Te.updateQueue,t===null&&(t=vr(),Te.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(r=l.next,l.next=e,e.next=r,t.lastEffect=e),e}function wh(){return rt().memoizedState}function kr(e,t,l,r){var o=Nt();Te.flags|=e,o.memoizedState=pi(1|t,{destroy:void 0},l,r===void 0?null:r)}function wr(e,t,l,r){var o=rt();r=r===void 0?null:r;var h=o.memoizedState.inst;Je!==null&&r!==null&&ys(r,Je.memoizedState.deps)?o.memoizedState=pi(t,h,l,r):(Te.flags|=e,o.memoizedState=pi(1|t,h,l,r))}function Eh(e,t){kr(8390656,8,e,t)}function Ns(e,t){wr(2048,8,e,t)}function Ax(e){Te.flags|=4;var t=Te.updateQueue;if(t===null)t=vr(),Te.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Th(e){var t=rt().memoizedState;return Ax({ref:t,nextImpl:e}),function(){if((Ge&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function Ch(e,t){return wr(4,2,e,t)}function Nh(e,t){return wr(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 Mh(e,t,l){l=l!=null?l.concat([e]):null,wr(4,4,jh.bind(null,t,e),l)}function js(){}function Ah(e,t){var l=rt();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=rt();t=t===void 0?null:t;var r=l.memoizedState;if(t!==null&&ys(t,r[1]))return r[0];if(r=e(),Dl){ce(!0);try{e()}finally{ce(!1)}}return l.memoizedState=[r,t],r}function Ms(e,t,l){return l===void 0||(jn&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Od(),Te.lanes|=e,il|=e,l)}function Oh(e,t,l,r){return Yt(l,t)?l:hi.current!==null?(e=Ms(e,l,r),Yt(e,t)||(ot=!0),e):(jn&42)===0||(jn&1073741824)!==0&&(Re&261930)===0?(ot=!0,e.memoizedState=l):(e=Od(),Te.lanes|=e,il|=e,t)}function Dh(e,t,l,r,o){var h=K.p;K.p=h!==0&&8>h?h:8;var b=U.T,z={};U.T=z,Os(e,!1,t,l);try{var T=o(),R=U.S;if(R!==null&&R(z,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var X=Tx(T,r);ca(e,t,X,Zt(e))}else ca(e,t,r,Zt(e))}catch(Z){ca(e,t,{then:function(){},status:"rejected",reason:Z},Zt())}finally{K.p=h,b!==null&&z.types!==null&&(b.types=z.types),U.T=b}}function _x(){}function As(e,t,l,r){if(e.tag!==5)throw Error(u(476));var o=Rh(e).queue;Dh(e,o,t,oe,l===null?_x:function(){return Lh(e),l(r)})}function Rh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:oe},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,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),ca(e,t.next.queue,{},Zt())}function _s(){return vt(Ca)}function Uh(){return rt().memoizedState}function Bh(){return rt().memoizedState}function Ox(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Zt();e=Wn(l);var r=Pn(t,e,l);r!==null&&(Ut(r,t,l),aa(r,t,l)),t={cache:us()},e.payload=t;return}t=t.return}}function Dx(e,t,l){var r=Zt();l={lane:r,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Er(e)?qh(t,l):(l=Iu(e,t,l,r),l!==null&&(Ut(l,e,r),Yh(l,t,r)))}function Hh(e,t,l){var r=Zt();ca(e,t,l,r)}function ca(e,t,l,r){var o={lane:r,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Er(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,Yt(z,b))return ar(e,t,o,0),$e===null&&ir(),!1}catch{}finally{}if(l=Iu(e,t,o,r),l!==null)return Ut(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},Er(e)){if(t)throw Error(u(479))}else t=Iu(e,l,r,2),t!==null&&Ut(t,e,2)}function Er(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function qh(e,t){di=yr=!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 fa={readContext:vt,use:Sr,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useLayoutEffect:lt,useInsertionEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useSyncExternalStore:lt,useId:lt,useHostTransitionStatus:lt,useFormState:lt,useActionState:lt,useOptimistic:lt,useMemoCache:lt,useCacheRefresh:lt};fa.useEffectEvent=lt;var Vh={readContext:vt,use:Sr,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Eh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,kr(4194308,4,jh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return kr(4194308,4,e,t)},useInsertionEffect:function(e,t){kr(4,2,e,t)},useMemo:function(e,t){var l=Nt();t=t===void 0?null:t;var r=e();if(Dl){ce(!0);try{e()}finally{ce(!1)}}return l.memoizedState=[r,t],r},useReducer:function(e,t,l){var r=Nt();if(l!==void 0){var o=l(t);if(Dl){ce(!0);try{l(t)}finally{ce(!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=Dx.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ts(e);var t=e.queue,l=Hh.bind(null,Te,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:js,useDeferredValue:function(e,t){var l=Nt();return Ms(l,e,t)},useTransition:function(){var e=Ts(!1);return e=Dh.bind(null,Te,e.queue,!0,!1),Nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var r=Te,o=Nt();if(Ue){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),$e===null)throw Error(u(349));(Re&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,pi(9,{destroy:void 0},ch.bind(null,r,h,l,t),null),l},useId:function(){var e=Nt(),t=$e.identifierPrefix;if(Ue){var l=pn,r=mn;l=(r&~(1<<32-be(r)-1)).toString(32)+l,t="_"+t+"R_"+l,l=br++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Cx++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:_s,useFormState:vh,useActionState:vh,useOptimistic:function(e){var t=Nt();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,Te,!0,l),l.dispatch=t,[e,t]},useMemoCache:ks,useCacheRefresh:function(){return Nt().memoizedState=Ox.bind(null,Te)},useEffectEvent:function(e){var t=Nt(),l={impl:e};return t.memoizedState=l,function(){if((Ge&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},Ds={readContext:vt,use:Sr,useCallback:Ah,useContext:vt,useEffect:Ns,useImperativeHandle:Mh,useInsertionEffect:Ch,useLayoutEffect:Nh,useMemo:_h,useReducer:zr,useRef:wh,useState:function(){return zr(Mn)},useDebugValue:js,useDeferredValue:function(e,t){var l=rt();return Oh(l,Je.memoizedState,e,t)},useTransition:function(){var e=zr(Mn)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:oa(e),t]},useSyncExternalStore:sh,useId:Uh,useHostTransitionStatus:_s,useFormState:Sh,useActionState:Sh,useOptimistic:function(e,t){var l=rt();return mh(l,Je,e,t)},useMemoCache:ks,useCacheRefresh:Bh};Ds.useEffectEvent=Th;var Xh={readContext:vt,use:Sr,useCallback:Ah,useContext:vt,useEffect:Ns,useImperativeHandle:Mh,useInsertionEffect:Ch,useLayoutEffect:Nh,useMemo:_h,useReducer:Es,useRef:wh,useState:function(){return Es(Mn)},useDebugValue:js,useDeferredValue:function(e,t){var l=rt();return Je===null?Ms(l,e,t):Oh(l,Je.memoizedState,e,t)},useTransition:function(){var e=Es(Mn)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:oa(e),t]},useSyncExternalStore:sh,useId:Uh,useHostTransitionStatus:_s,useFormState:kh,useActionState:kh,useOptimistic:function(e,t){var l=rt();return Je!==null?mh(l,Je,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=Zt(),o=Wn(r);o.payload=t,l!=null&&(o.callback=l),t=Pn(e,o,r),t!==null&&(Ut(t,e,r),aa(t,e,r))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var r=Zt(),o=Wn(r);o.tag=1,o.payload=t,l!=null&&(o.callback=l),t=Pn(e,o,r),t!==null&&(Ut(t,e,r),aa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Zt(),r=Wn(l);r.tag=2,t!=null&&(r.callback=t),t=Pn(e,r,l),t!==null&&(Ut(t,e,l),aa(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?!$i(l,r)||!$i(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 Rl(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){lr(e)}function Zh(e){console.error(e)}function Jh(e){lr(e)}function Tr(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=Wn(l),l.tag=3,l.payload={element:null},l.callback=function(){Tr(e,t)},l}function Ih(e){return e=Wn(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"&&(al===null?al=new Set([this]):al.add(this));var z=r.stack;this.componentDidCatch(r.value,{componentStack:z!==null?z:""})})}function Rx(e,t,l,r,o){if(l.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=l.alternate,t!==null&&ui(t,l,o,!0),l=Xt.current,l!==null){switch(l.tag){case 31:case 13:return an===null?Br():l.alternate===null&&it===0&&(it=3),l.flags&=-257,l.flags|=65536,l.lanes=o,r===dr?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===dr?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),Br(),!1}if(Ue)return t=Xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==ns&&(e=Error(u(422),{cause:r}),ea(en(e,l)))):(r!==ns&&(t=Error(u(423),{cause:r}),ea(en(t,l))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=en(r,l),o=Us(e.stateNode,r,o),ds(e,o),it!==4&&(it=2)),!1;var h=Error(u(520),{cause:r});if(h=en(h,l),ba===null?ba=[h]:ba.push(h),it!==4&&(it=2),t===null)return!0;r=en(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"&&(al===null||!al.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)),ot=!1;function St(e,t,l,r){t.child=e===null?th(t,null,l,r):Ol(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 jl(t),r=bs(e,t,l,b,h,o),z=vs(),e!==null&&!ot?(Ss(e,t,o),An(e,t,o)):(Ue&&z&&es(t),t.flags|=1,St(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=ur(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:$i,l(b,r)&&e.ref===t.ref)return An(e,t,o)}return t.flags|=1,e=En(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($i(h,r)&&e.ref===t.ref)if(ot=!1,t.pendingProps=r=h,Fs(e,o))(e.flags&131072)!==0&&(ot=!0);else return t.lanes=e.lanes,An(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&&fr(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?(fr(t,h.cachePool),ih(t,h),tl(),t.memoizedState=null):(e!==null&&fr(t,null),ps(),tl());return St(e,t,o,l),t.child}function ha(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:ut._currentValue,pool:h},t.memoizedState={baseLanes:l,cachePool:h},e!==null&&fr(t,null),ps(),ah(t),e!==null&&ui(e,t,r,!0),t.childLanes=o,null}function Cr(e,t){return t=jr({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 Ol(t,e.child,null,l),e=Cr(t,t.pendingProps),e.flags|=2,Gt(t),t.memoizedState=null,e}function Lx(e,t,l){var r=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ue){if(r.mode==="hidden")return e=Cr(t,r),t.lanes=536870912,ha(null,e);if(xs(t),(e=et)?(e=pm(e,ln),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zn!==null?{id:mn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},l=qf(e),l.return=t,t.child=l,bt=t,et=null)):e=null,e===null)throw Kn(t);return t.lanes=536870912,null}return Cr(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(ot||ui(e,t,l,!1),o=(l&e.childLanes)!==0,ot||o){if(r=$e,r!==null&&(b=Fc(r,l),b!==0&&b!==h.retryLane))throw h.retryLane=b,El(e,b),Ut(r,e,b),Bs;Br(),t=ld(e,t,l)}else e=h.treeContext,et=rn(b.nextSibling),bt=t,Ue=!0,Jn=null,ln=!1,e!==null&&Xf(t,e),t=Cr(t,r),t.flags|=4096;return t}return e=En(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Nr(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 jl(t),l=bs(e,t,l,r,void 0,o),r=vs(),e!==null&&!ot?(Ss(e,t,o),An(e,t,o)):(Ue&&r&&es(t),t.flags|=1,St(e,t,l,o),t.child)}function id(e,t,l,r,o,h){return jl(t),t.updateQueue=null,l=uh(t,r,l,o),rh(e),r=vs(),e!==null&&!ot?(Ss(e,t,h),An(e,t,h)):(Ue&&r&&es(t),t.flags|=1,St(e,t,l,h),t.child)}function ad(e,t,l,r,o){if(jl(t),t.stateNode===null){var h=li,b=l.contextType;typeof b=="object"&&b!==null&&(h=vt(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?vt(b):li,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),ua(t,r,h,o),ra(),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=Rl(l,z);h.props=T;var R=h.context,X=l.contextType;b=li,typeof X=="object"&&X!==null&&(b=vt(X));var Z=l.getDerivedStateFromProps;X=typeof Z=="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),$n=!1;var H=t.memoizedState;h.state=H,ua(t,r,h,o),ra(),R=t.memoizedState,z||H!==R||$n?(typeof Z=="function"&&(Rs(t,l,Z,r),R=t.memoizedState),(T=$n||Gh(t,l,T,r,H,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=Rl(l,b),h.props=X,Z=t.pendingProps,H=h.context,R=l.contextType,T=li,typeof R=="object"&&R!==null&&(T=vt(R)),z=l.getDerivedStateFromProps,(R=typeof z=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==Z||H!==T)&&Qh(t,h,r,T),$n=!1,H=t.memoizedState,h.state=H,ua(t,r,h,o),ra();var Y=t.memoizedState;b!==Z||H!==Y||$n||e!==null&&e.dependencies!==null&&or(e.dependencies)?(typeof z=="function"&&(Rs(t,l,z,r),Y=t.memoizedState),(X=$n||Gh(t,l,X,r,H,Y,T)||e!==null&&e.dependencies!==null&&or(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&&H===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===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&&H===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),r=!1)}return h=r,Nr(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=Ol(t,e.child,null,o),t.child=Ol(t,null,l,o)):St(e,t,l,o),t.memoizedState=h.state,e=t.child):e=An(e,t,o),e}function rd(e,t,l,r){return Cl(),t.flags|=256,St(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|=Ft),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:(at.current&2)!==0),b&&(o=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ue){if(o?el(t):tl(),(e=et)?(e=pm(e,ln),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zn!==null?{id:mn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},l=qf(e),l.return=t,t.child=l,bt=t,et=null)):e=null,e===null)throw Kn(t);return Eo(e)?t.lanes=32:t.lanes=536870912,null}var z=r.children;return r=r.fallback,o?(tl(),o=t.mode,z=jr({mode:"hidden",children:z},o),r=Tl(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,ha(null,r)):(el(t),Xs(t,z))}var T=e.memoizedState;if(T!==null&&(z=T.dehydrated,z!==null)){if(h)t.flags&256?(el(t),t.flags&=-257,t=Gs(e,t,l)):t.memoizedState!==null?(tl(),t.child=e.child,t.flags|=128,t=null):(tl(),z=r.fallback,o=t.mode,r=jr({mode:"visible",children:r.children},o),z=Tl(z,o,l,null),z.flags|=2,r.return=t,z.return=t,r.sibling=z,t.child=r,Ol(t,e.child,null,l),r=t.child,r.memoizedState=Ys(l),r.childLanes=Vs(e,b,l),t.memoizedState=qs,t=ha(null,r));else if(el(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,ea({value:r,source:null,stack:null}),t=Gs(e,t,l)}else if(ot||ui(e,t,l,!1),b=(l&e.childLanes)!==0,ot||b){if(b=$e,b!==null&&(r=Fc(b,l),r!==0&&r!==T.retryLane))throw T.retryLane=r,El(e,r),Ut(b,e,r),Bs;wo(z)||Br(),t=Gs(e,t,l)}else wo(z)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,et=rn(z.nextSibling),bt=t,Ue=!0,Jn=null,ln=!1,e!==null&&Xf(t,e),t=Xs(t,r.children),t.flags|=4096);return t}return o?(tl(),z=r.fallback,o=t.mode,T=e.child,R=T.sibling,r=En(T,{mode:"hidden",children:r.children}),r.subtreeFlags=T.subtreeFlags&65011712,R!==null?z=En(R,z):(z=Tl(z,o,l,null),z.flags|=2),z.return=t,r.return=t,r.sibling=z,t.child=r,ha(null,r),r=t.child,z=e.child.memoizedState,z===null?z=Ys(l):(o=z.cachePool,o!==null?(T=ut._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,ha(e.child,r)):(el(t),l=e.child,e=l.sibling,l=En(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=jr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function jr(e,t){return e=Vt(22,e,null,t),e.lanes=0,e}function Gs(e,t,l){return Ol(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=at.current,z=(b&2)!==0;if(z?(b=b&1|2,t.flags|=128):b&=1,k(at,b),St(e,t,r,l),r=Ue?Pi: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&&xr(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&&xr(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 An(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),il|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ui(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=En(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=En(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&&or(e)))}function Ux(e,t,l){switch(t.tag){case 3:he(t,t.stateNode.containerInfo),In(t,ut,e.memoizedState.cache),Cl();break;case 27:case 5:je(t);break;case 4:he(t,t.stateNode.containerInfo);break;case 10:In(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?(el(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ud(e,t,l):(el(t),e=An(e,t,l),e!==null?e.sibling:null);el(t);break;case 19:var o=(e.flags&128)!==0;if(r=(l&t.childLanes)!==0,r||(ui(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(at,at.current),r)break;return null;case 22:return t.lanes=0,td(e,t,l,t.pendingProps);case 24:In(t,ut,e.memoizedState.cache)}return An(e,t,l)}function cd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)ot=!0;else{if(!Fs(e,l)&&(t.flags&128)===0)return ot=!1,Ux(e,t,l);ot=(e.flags&131072)!==0}else ot=!1,Ue&&(t.flags&1048576)!==0&&Vf(t,Pi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Al(t.elementType),t.type=e,typeof e=="function")$u(e)?(r=Rl(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===W){t.tag=11,t=Wh(null,t,e,r,l);break e}else if(o===I){t.tag=14,t=Ph(null,t,e,r,l);break e}}throw t=ue(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=Rl(r,t.pendingProps),ad(e,t,r,o,l);case 3:e:{if(he(t,t.stateNode.containerInfo),e===null)throw Error(u(387));r=t.pendingProps;var h=t.memoizedState;o=h.element,hs(e,t),ua(t,r,null,l);var b=t.memoizedState;if(r=b.cache,In(t,ut,r),r!==h.cache&&rs(t,[ut],l,!0),ra(),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=en(Error(u(424)),t),ea(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(et=rn(e.firstChild),bt=t,Ue=!0,Jn=null,ln=!0,l=th(t,null,r,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Cl(),r===o){t=An(e,t,l);break e}St(e,t,r,l)}t=t.child}return t;case 26:return Nr(e,t),e===null?(l=Sm(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ue||(l=t.type,e=t.pendingProps,r=Qr(ge.current).createElement(l),r[yt]=t,r[At]=e,zt(r,l,e),mt(r),t.stateNode=r):t.memoizedState=Sm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return je(t),e===null&&Ue&&(r=t.stateNode=ym(t.type,t.pendingProps,ge.current),bt=t,ln=!0,o=et,ol(t.type)?(To=o,et=rn(r.firstChild)):et=o),St(e,t,t.pendingProps.children,l),Nr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ue&&((o=r=et)&&(r=dy(r,t.type,t.pendingProps,ln),r!==null?(t.stateNode=r,bt=t,et=rn(r.firstChild),ln=!1,o=!0):o=!1),o||Kn(t)),je(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,Nx,null,null,l),Ca._currentValue=o),Nr(e,t),St(e,t,r,l),t.child;case 6:return e===null&&Ue&&((e=l=et)&&(l=my(l,t.pendingProps,ln),l!==null?(t.stateNode=l,bt=t,et=null,e=!0):e=!1),e||Kn(t)),null;case 13:return ud(e,t,l);case 4:return he(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ol(t,null,r,l):St(e,t,r,l),t.child;case 11:return Wh(e,t,t.type,t.pendingProps,l);case 7:return St(e,t,t.pendingProps,l),t.child;case 8:return St(e,t,t.pendingProps.children,l),t.child;case 12:return St(e,t,t.pendingProps.children,l),t.child;case 10:return r=t.pendingProps,In(t,t.type,r.value),St(e,t,r.children,l),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,jl(t),o=vt(o),r=r(o),t.flags|=1,St(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 Lx(e,t,l);case 22:return td(e,t,l,t.pendingProps);case 24:return jl(t),r=vt(ut),e===null?(o=os(),o===null&&(o=$e,h=us(),o.pooledCache=h,h.refCount++,h!==null&&(o.pooledCacheLanes|=l),o=h),t.memoizedState={parent:r,cache:o},fs(t),In(t,ut,o)):((e.lanes&l)!==0&&(hs(e,t),ua(t,null,null,l),ra()),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),In(t,ut,r)):(r=h.cache,In(t,ut,r),r!==o.cache&&rs(t,[ut],l,!0))),St(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function _n(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 _l=dr,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 _l=dr,cs}function Mr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xc():536870912,e.lanes|=t,bi|=t)}function da(e,t){if(!Ue)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 tt(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 Bx(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 tt(t),null;case 1:return tt(t),null;case 3:return l=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Nn(ut),ze(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ri(t)?_n(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ls())),tt(t),null;case 26:var o=t.type,h=t.memoizedState;return e===null?(_n(t),h!==null?(tt(t),fd(t,h)):(tt(t),Zs(t,o,null,r,l))):h?h!==e.memoizedState?(_n(t),tt(t),fd(t,h)):(tt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&_n(t),tt(t),Zs(t,o,e,r,l)),null;case 27:if(Xe(t),l=ge.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&_n(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return tt(t),null}e=re.current,ri(t)?Gf(t):(e=ym(o,r,l),t.stateNode=e,_n(t))}return tt(t),null;case 5:if(Xe(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&_n(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return tt(t),null}if(h=re.current,ri(t))Gf(t);else{var b=Qr(ge.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[yt]=t,h[At]=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(zt(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&&_n(t)}}return tt(t),Zs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&_n(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(u(166));if(e=ge.current,ri(t)){if(e=t.stateNode,l=t.memoizedProps,r=null,o=bt,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[yt]=t,e=!!(e.nodeValue===l||r!==null&&r.suppressHydrationWarning===!0||um(e.nodeValue,l)),e||Kn(t,!0)}else e=Qr(e).createTextNode(r),e[yt]=t,t.stateNode=e}return tt(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(r=ri(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[yt]=t}else Cl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;tt(t),e=!1}else l=ls(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Gt(t),t):(Gt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return tt(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ri(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[yt]=t}else Cl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;tt(t),o=!1}else o=ls(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Gt(t),t):(Gt(t),null)}return Gt(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),Mr(t,t.updateQueue),tt(t),null);case 4:return ze(),e===null&&go(t.stateNode.containerInfo),tt(t),null;case 10:return Nn(t.type),tt(t),null;case 19:if(V(at),r=t.memoizedState,r===null)return tt(t),null;if(o=(t.flags&128)!==0,h=r.rendering,h===null)if(o)da(r,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=xr(e),h!==null){for(t.flags|=128,da(r,!1),e=h.updateQueue,t.updateQueue=e,Mr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Hf(l,e),l=l.sibling;return k(at,at.current&1|2),Ue&&Tn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&xt()>Rr&&(t.flags|=128,o=!0,da(r,!1),t.lanes=4194304)}else{if(!o)if(e=xr(h),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Mr(t,e),da(r,!0),r.tail===null&&r.tailMode==="hidden"&&!h.alternate&&!Ue)return tt(t),null}else 2*xt()-r.renderingStartTime>Rr&&l!==536870912&&(t.flags|=128,o=!0,da(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=xt(),e.sibling=null,l=at.current,k(at,o?l&1|2:l&1),Ue&&Tn(t,r.treeForkCount),e):(tt(t),null);case 22:case 23:return Gt(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&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),l=t.updateQueue,l!==null&&Mr(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(Ml),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Nn(ut),tt(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Hx(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 Nn(ut),ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Xe(t),null;case 31:if(t.memoizedState!==null){if(Gt(t),t.alternate===null)throw Error(u(340));Cl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Cl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(at),null;case 4:return ze(),null;case 10:return Nn(t.type),null;case 22:case 23:return Gt(t),gs(),e!==null&&V(Ml),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Nn(ut),null;case 25:return null;default:return null}}function hd(e,t){switch(ts(t),t.tag){case 3:Nn(ut),ze();break;case 26:case 27:case 5:Xe(t);break;case 4:ze();break;case 31:t.memoizedState!==null&&Gt(t);break;case 13:Gt(t);break;case 19:V(at);break;case 10:Nn(t.type);break;case 22:case 23:Gt(t),gs(),e!==null&&V(Ml);break;case 24:Nn(ut)}}function ma(e,t){try{var l=t.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var o=r.next;l=o;do{if((l.tag&e)===e){r=void 0;var h=l.create,b=l.inst;r=h(),b.destroy=r}l=l.next}while(l!==o)}}catch(z){Ze(t,t.return,z)}}function nl(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){Ze(o,T,X)}}}r=r.next}while(r!==h)}}catch(X){Ze(t,t.return,X)}}function dd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{lh(t,l)}catch(r){Ze(e,e.return,r)}}}function md(e,t,l){l.props=Rl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(r){Ze(e,t,r)}}function pa(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof l=="function"?e.refCleanup=l(r):l.current=r}}catch(o){Ze(e,t,o)}}function gn(e,t){var l=e.ref,r=e.refCleanup;if(l!==null)if(typeof r=="function")try{r()}catch(o){Ze(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(o){Ze(e,t,o)}else l.current=null}function 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){Ze(e,e.return,o)}}function Js(e,t,l){try{var r=e.stateNode;uy(r,e.type,l,t),r[At]=t}catch(o){Ze(e,e.return,o)}}function gd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ol(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&&ol(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=kn));else if(r!==4&&(r===27&&ol(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&&ol(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]);zt(t,r,l),t[yt]=e,t[At]=l}catch(h){Ze(e,e.return,h)}}var On=!1,ct=!1,$s=!1,yd=typeof WeakSet=="function"?WeakSet:Set,pt=null;function qx(e,t){if(e=e.containerInfo,bo=Wr,e=Mf(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,Z=e,H=null;t:for(;;){for(var Y;Z!==l||o!==0&&Z.nodeType!==3||(z=b+o),Z!==h||r!==0&&Z.nodeType!==3||(T=b+r),Z.nodeType===3&&(b+=Z.nodeValue.length),(Y=Z.firstChild)!==null;)H=Z,Z=Y;for(;;){if(Z===e)break t;if(H===l&&++R===o&&(z=b),H===h&&++X===r&&(T=b),(Y=Z.nextSibling)!==null)break;Z=H,H=Z.parentNode}Z=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},Wr=!1,pt=t;pt!==null;)if(t=pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pt=e;else for(;pt!==null;){switch(t=pt,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=Rl(l.type,o);e=r.getSnapshotBeforeUpdate(fe,h),r.__reactInternalSnapshotBeforeUpdate=e}catch(Se){Ze(l,l.return,Se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)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,pt=e;break}pt=t.return}}function bd(e,t,l){var r=l.flags;switch(l.tag){case 0:case 11:case 15:Rn(e,l),r&4&&ma(5,l);break;case 1:if(Rn(e,l),r&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(b){Ze(l,l.return,b)}else{var o=Rl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Ze(l,l.return,b)}}r&64&&dd(l),r&512&&pa(l,l.return);break;case 3:if(Rn(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){Ze(l,l.return,b)}}break;case 27:t===null&&r&4&&xd(l);case 26:case 5:Rn(e,l),t===null&&r&4&&pd(l),r&512&&pa(l,l.return);break;case 12:Rn(e,l);break;case 31:Rn(e,l),r&4&&zd(e,l);break;case 13:Rn(e,l),r&4&&kd(e,l),r&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Kx.bind(null,l),py(e,l))));break;case 22:if(r=l.memoizedState!==null||On,!r){t=t!==null&&t.memoizedState!==null||ct,o=On;var h=ct;On=r,(ct=t)&&!h?Ln(e,l,(l.subtreeFlags&8772)!==0):Rn(e,l),On=o,ct=h}break;case 30:break;default:Rn(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 nt=null,Ot=!1;function Dn(e,t,l){for(l=l.child;l!==null;)Sd(e,t,l),l=l.sibling}function Sd(e,t,l){if(te&&typeof te.onCommitFiberUnmount=="function")try{te.onCommitFiberUnmount(J,l)}catch{}switch(l.tag){case 26:ct||gn(l,t),Dn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ct||gn(l,t);var r=nt,o=Ot;ol(l.type)&&(nt=l.stateNode,Ot=!1),Dn(e,t,l),wa(l.stateNode),nt=r,Ot=o;break;case 5:ct||gn(l,t);case 6:if(r=nt,o=Ot,nt=null,Dn(e,t,l),nt=r,Ot=o,nt!==null)if(Ot)try{(nt.nodeType===9?nt.body:nt.nodeName==="HTML"?nt.ownerDocument.body:nt).removeChild(l.stateNode)}catch(h){Ze(l,t,h)}else try{nt.removeChild(l.stateNode)}catch(h){Ze(l,t,h)}break;case 18:nt!==null&&(Ot?(e=nt,dm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ci(e)):dm(nt,l.stateNode));break;case 4:r=nt,o=Ot,nt=l.stateNode.containerInfo,Ot=!0,Dn(e,t,l),nt=r,Ot=o;break;case 0:case 11:case 14:case 15:nl(2,l,t),ct||nl(4,l,t),Dn(e,t,l);break;case 1:ct||(gn(l,t),r=l.stateNode,typeof r.componentWillUnmount=="function"&&md(l,t,r)),Dn(e,t,l);break;case 21:Dn(e,t,l);break;case 22:ct=(r=ct)||l.memoizedState!==null,Dn(e,t,l),ct=r;break;default:Dn(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{Ci(e)}catch(l){Ze(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{Ci(e)}catch(l){Ze(t,t.return,l)}}function Yx(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 _r(e,t){var l=Yx(e);t.forEach(function(r){if(!l.has(r)){l.add(r);var o=Ix.bind(null,e,r);r.then(o,o)}})}function Dt(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(ol(z.type)){nt=z.stateNode,Ot=!1;break e}break;case 5:nt=z.stateNode,Ot=!1;break e;case 3:case 4:nt=z.stateNode.containerInfo,Ot=!0;break e}z=z.return}if(nt===null)throw Error(u(160));Sd(h,b,o),nt=null,Ot=!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 fn=null;function wd(e,t){var l=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(t,e),Rt(e),r&4&&(nl(3,e,e.return),ma(3,e),nl(5,e,e.return));break;case 1:Dt(t,e),Rt(e),r&512&&(ct||l===null||gn(l,l.return)),r&64&&On&&(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=fn;if(Dt(t,e),Rt(e),r&512&&(ct||l===null||gn(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[Vi]||h[yt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=o.createElement(r),o.head.insertBefore(h,o.querySelector("head > title"))),zt(h,r,l),h[yt]=e,mt(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),zt(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),zt(h,r,l),o.head.appendChild(h);break;default:throw Error(u(468,r))}h[yt]=e,mt(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:Dt(t,e),Rt(e),r&512&&(ct||l===null||gn(l,l.return)),l!==null&&r&4&&Js(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Dt(t,e),Rt(e),r&512&&(ct||l===null||gn(l,l.return)),e.flags&32){o=e.stateNode;try{Il(o,"")}catch(fe){Ze(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(Dt(t,e),Rt(e),r&4){if(e.stateNode===null)throw Error(u(162));r=e.memoizedProps,l=e.stateNode;try{l.nodeValue=r}catch(fe){Ze(e,e.return,fe)}}break;case 3:if(Jr=null,o=fn,fn=Fr(t.containerInfo),Dt(t,e),fn=o,Rt(e),r&4&&l!==null&&l.memoizedState.isDehydrated)try{Ci(t.containerInfo)}catch(fe){Ze(e,e.return,fe)}$s&&($s=!1,Ed(e));break;case 4:r=fn,fn=Fr(e.stateNode.containerInfo),Dt(t,e),Rt(e),fn=r;break;case 12:Dt(t,e),Rt(e);break;case 31:Dt(t,e),Rt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_r(e,r)));break;case 13:Dt(t,e),Rt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Dr=xt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_r(e,r)));break;case 22:o=e.memoizedState!==null;var T=l!==null&&l.memoizedState!==null,R=On,X=ct;if(On=R||o,ct=X||T,Dt(t,e),ct=X,On=R,Rt(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(l===null||T||On||ct||Ll(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 Z=T.memoizedProps.style,H=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;z.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(fe){Ze(T,T.return,fe)}}}else if(t.tag===6){if(l===null){T=t;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(fe){Ze(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){Ze(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,_r(e,l))));break;case 19:Dt(t,e),Rt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_r(e,r)));break;case 30:break;case 21:break;default:Dt(t,e),Rt(e)}}function Rt(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&&(Il(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){Ze(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 Rn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bd(e,t.alternate,t),t=t.sibling}function Ll(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:nl(4,t,t.return),Ll(t);break;case 1:gn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&md(t,t.return,l),Ll(t);break;case 27:wa(t.stateNode);case 26:case 5:gn(t,t.return),Ll(t);break;case 22:t.memoizedState===null&&Ll(t);break;case 30:Ll(t);break;default:Ll(t)}e=e.sibling}}function Ln(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:Ln(o,h,l),ma(4,h);break;case 1:if(Ln(o,h,l),r=h,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(R){Ze(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){Ze(r,r.return,R)}}l&&b&64&&dd(h),pa(h,h.return);break;case 27:xd(h);case 26:case 5:Ln(o,h,l),l&&r===null&&b&4&&pd(h),pa(h,h.return);break;case 12:Ln(o,h,l);break;case 31:Ln(o,h,l),l&&b&4&&zd(o,h);break;case 13:Ln(o,h,l),l&&b&4&&kd(o,h);break;case 22:h.memoizedState===null&&Ln(o,h,l),pa(h,h.return);break;case 30:break;default:Ln(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&&ta(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&&ta(e))}function hn(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:hn(e,t,l,r),o&2048&&ma(9,t);break;case 1:hn(e,t,l,r);break;case 3:hn(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&&ta(e)));break;case 12:if(o&2048){hn(e,t,l,r),e=t.stateNode;try{var h=t.memoizedProps,b=h.id,z=h.onPostCommit;typeof z=="function"&&z(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Ze(t,t.return,T)}}else hn(e,t,l,r);break;case 31:hn(e,t,l,r);break;case 13:hn(e,t,l,r);break;case 23:break;case 22:h=t.stateNode,b=t.alternate,t.memoizedState!==null?h._visibility&2?hn(e,t,l,r):ga(e,t):h._visibility&2?hn(e,t,l,r):(h._visibility|=2,gi(e,t,l,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Ws(b,t);break;case 24:hn(e,t,l,r),o&2048&&Ps(t.alternate,t);break;default:hn(e,t,l,r)}}function gi(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:gi(h,b,z,T,o),ma(8,b);break;case 23:break;case 22:var X=b.stateNode;b.memoizedState!==null?X._visibility&2?gi(h,b,z,T,o):ga(h,b):(X._visibility|=2,gi(h,b,z,T,o)),o&&R&2048&&Ws(b.alternate,b);break;case 24:gi(h,b,z,T,o),o&&R&2048&&Ps(b.alternate,b);break;default:gi(h,b,z,T,o)}t=t.sibling}}function ga(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:ga(l,r),o&2048&&Ws(r.alternate,r);break;case 24:ga(l,r),o&2048&&Ps(r.alternate,r);break;default:ga(l,r)}t=t.sibling}}var xa=8192;function xi(e,t,l){if(e.subtreeFlags&xa)for(e=e.child;e!==null;)Cd(e,t,l),e=e.sibling}function Cd(e,t,l){switch(e.tag){case 26:xi(e,t,l),e.flags&xa&&e.memoizedState!==null&&Cy(l,fn,e.memoizedState,e.memoizedProps);break;case 5:xi(e,t,l);break;case 3:case 4:var r=fn;fn=Fr(e.stateNode.containerInfo),xi(e,t,l),fn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=xa,xa=16777216,xi(e,t,l),xa=r):xi(e,t,l));break;default:xi(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 ya(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];pt=r,Md(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:ya(e),e.flags&2048&&nl(9,e,e.return);break;case 3:ya(e);break;case 12:ya(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Or(e)):ya(e);break;default:ya(e)}}function Or(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];pt=r,Md(r,e)}Nd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:nl(8,t,t.return),Or(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Or(t));break;default:Or(t)}e=e.sibling}}function Md(e,t){for(;pt!==null;){var l=pt;switch(l.tag){case 0:case 11:case 15:nl(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:ta(l.memoizedState.cache)}if(r=l.child,r!==null)r.return=l,pt=r;else e:for(l=e;pt!==null;){r=pt;var o=r.sibling,h=r.return;if(vd(r),r===l){pt=null;break e}if(o!==null){o.return=h,pt=o;break e}pt=h}}}var Vx={getCacheForType:function(e){var t=vt(ut),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return vt(ut).controller.signal}},Xx=typeof WeakMap=="function"?WeakMap:Map,Ge=0,$e=null,Ae=null,Re=0,Fe=0,Qt=null,ll=!1,yi=!1,eo=!1,Un=0,it=0,il=0,Ul=0,to=0,Ft=0,bi=0,ba=null,Lt=null,no=!1,Dr=0,Ad=0,Rr=1/0,Lr=null,al=null,ht=0,rl=null,vi=null,Bn=0,lo=0,io=null,_d=null,va=0,ao=null;function Zt(){return(Ge&2)!==0&&Re!==0?Re&-Re:U.T!==null?fo():Zc()}function Od(){if(Ft===0)if((Re&536870912)===0||Ue){var e=bl;bl<<=1,(bl&3932160)===0&&(bl=262144),Ft=e}else Ft=536870912;return e=Xt.current,e!==null&&(e.flags|=32),Ft}function Ut(e,t,l){(e===$e&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)&&(Si(e,0),ul(e,Re,Ft,!1)),Yi(e,l),((Ge&2)===0||e!==$e)&&(e===$e&&((Ge&2)===0&&(Ul|=l),it===4&&ul(e,Re,Ft,!1)),xn(e))}function Dd(e,t,l){if((Ge&6)!==0)throw Error(u(327));var r=!l&&(t&127)===0&&(t&e.expiredLanes)===0||qi(e,t),o=r?Fx(e,t):uo(e,t,!0),h=r;do{if(o===0){yi&&!r&&ul(e,t,0,!1);break}else{if(l=e.current.alternate,h&&!Gx(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=ba;var T=z.current.memoizedState.isDehydrated;if(T&&(Si(z,b).flags|=256),b=uo(z,b,!1),b!==2){if(eo&&!T){z.errorRecoveryDisabledLanes|=h,Ul|=h,o=4;break e}h=Lt,Lt=o,h!==null&&(Lt===null?Lt=h:Lt.push.apply(Lt,h))}o=b}if(h=!1,o!==2)continue}}if(o===1){Si(e,0),ul(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:ul(r,t,Ft,!ll);break e;case 2:Lt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=Dr+300-xt(),10<o)){if(ul(r,t,Ft,!ll),Fa(r,0,!0)!==0)break e;Bn=t,r.timeoutHandle=fm(Rd.bind(null,r,l,Lt,Lr,no,t,Ft,Ul,bi,ll,h,"Throttled",-0,0),o);break e}Rd(r,l,Lt,Lr,no,t,Ft,Ul,bi,ll,h,null,-0,0)}}break}while(!0);xn(e)}function Rd(e,t,l,r,o,h,b,z,T,R,X,Z,H,Y){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:kn},Cd(t,h,Z);var fe=(h&62914560)===h?Dr-xt():(h&4194048)===h?Ad-xt():0;if(fe=Ny(Z,fe),fe!==null){Bn=h,e.cancelPendingCommit=fe(Xd.bind(null,e,t,h,l,r,o,b,z,T,X,Z,null,H,Y)),ul(e,h,b,!R);return}}Xd(e,t,h,l,r,o,b,z,T)}function Gx(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(!Yt(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 ul(e,t,l,r){t&=~to,t&=~Ul,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var h=31-be(o),b=1<<h;r[h]=-1,o&=~b}l!==0&&Gc(e,l,t)}function Ur(){return(Ge&6)===0?(Sa(0),!1):!0}function ro(){if(Ae!==null){if(Fe===0)var e=Ae.return;else e=Ae,Cn=Nl=null,zs(e),fi=null,la=0,e=Ae;for(;e!==null;)hd(e.alternate,e),e=e.return;Ae=null}}function Si(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,cy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Bn=0,ro(),$e=e,Ae=l=En(e.current,null),Re=t,Fe=0,Qt=null,ll=!1,yi=qi(e,t),eo=!1,bi=Ft=to=Ul=il=it=0,Lt=ba=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-be(r),h=1<<o;t|=e[o],r&=~h}return Un=t,ir(),l}function Ld(e,t){Te=null,U.H=fa,t===ci||t===hr?(t=Wf(),Fe=3):t===cs?(t=Wf(),Fe=4):Fe=t===Bs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qt=t,Ae===null&&(it=1,Tr(e,en(t,e.current)))}function Ud(){var e=Xt.current;return e===null?!0:(Re&4194048)===Re?an===null:(Re&62914560)===Re||(Re&536870912)!==0?e===an:!1}function Bd(){var e=U.H;return U.H=fa,e===null?fa:e}function Hd(){var e=U.A;return U.A=Vx,e}function Br(){it=4,ll||(Re&4194048)!==Re&&Xt.current!==null||(yi=!0),(il&134217727)===0&&(Ul&134217727)===0||$e===null||ul($e,Re,Ft,!1)}function uo(e,t,l){var r=Ge;Ge|=2;var o=Bd(),h=Hd();($e!==e||Re!==t)&&(Lr=null,Si(e,t)),t=!1;var b=it;e:do try{if(Fe!==0&&Ae!==null){var z=Ae,T=Qt;switch(Fe){case 8:ro(),b=6;break e;case 3:case 2:case 9:case 6:Xt.current===null&&(t=!0);var R=Fe;if(Fe=0,Qt=null,zi(e,z,T,R),l&&yi){b=0;break e}break;default:R=Fe,Fe=0,Qt=null,zi(e,z,T,R)}}Qx(),b=it;break}catch(X){Ld(e,X)}while(!0);return t&&e.shellSuspendCounter++,Cn=Nl=null,Ge=r,U.H=o,U.A=h,Ae===null&&($e=null,Re=0,ir()),b}function Qx(){for(;Ae!==null;)qd(Ae)}function Fx(e,t){var l=Ge;Ge|=2;var r=Bd(),o=Hd();$e!==e||Re!==t?(Lr=null,Rr=xt()+500,Si(e,t)):yi=qi(e,t);e:do try{if(Fe!==0&&Ae!==null){t=Ae;var h=Qt;t:switch(Fe){case 1:Fe=0,Qt=null,zi(e,t,h,1);break;case 2:case 9:if(If(h)){Fe=0,Qt=null,Yd(t);break}t=function(){Fe!==2&&Fe!==9||$e!==e||(Fe=7),xn(e)},h.then(t,t);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:If(h)?(Fe=0,Qt=null,Yd(t)):(Fe=0,Qt=null,zi(e,t,h,7));break;case 5:var b=null;switch(Ae.tag){case 26:b=Ae.memoizedState;case 5:case 27:var z=Ae;if(b?Tm(b):z.stateNode.complete){Fe=0,Qt=null;var T=z.sibling;if(T!==null)Ae=T;else{var R=z.return;R!==null?(Ae=R,Hr(R)):Ae=null}break t}}Fe=0,Qt=null,zi(e,t,h,5);break;case 6:Fe=0,Qt=null,zi(e,t,h,6);break;case 8:ro(),it=6;break e;default:throw Error(u(462))}}Zx();break}catch(X){Ld(e,X)}while(!0);return Cn=Nl=null,U.H=r,U.A=o,Ge=l,Ae!==null?0:($e=null,Re=0,ir(),it)}function Zx(){for(;Ae!==null&&!Bi();)qd(Ae)}function qd(e){var t=cd(e.alternate,e,Un);e.memoizedProps=e.pendingProps,t===null?Hr(e):Ae=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,Re);break;case 11:t=id(l,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:zs(t);default:hd(l,t),t=Ae=Hf(t,Un),t=cd(l,t,Un)}e.memoizedProps=e.pendingProps,t===null?Hr(e):Ae=t}function zi(e,t,l,r){Cn=Nl=null,zs(t),fi=null,la=0;var o=t.return;try{if(Rx(e,o,t,l,Re)){it=1,Tr(e,en(l,e.current)),Ae=null;return}}catch(h){if(o!==null)throw Ae=o,h;it=1,Tr(e,en(l,e.current)),Ae=null;return}t.flags&32768?(Ue||r===1?e=!0:yi||(Re&536870912)!==0?e=!1:(ll=e=!0,(r===2||r===9||r===3||r===6)&&(r=Xt.current,r!==null&&r.tag===13&&(r.flags|=16384))),Vd(t,e)):Hr(t)}function Hr(e){var t=e;do{if((t.flags&32768)!==0){Vd(t,ll);return}e=t.return;var l=Bx(t.alternate,t,Un);if(l!==null){Ae=l;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);it===0&&(it=5)}function Vd(e,t){do{var l=Hx(e.alternate,e);if(l!==null){l.flags&=32767,Ae=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=l}while(e!==null);it=6,Ae=null}function Xd(e,t,l,r,o,h,b,z,T){e.cancelPendingCommit=null;do qr();while(ht!==0);if((Ge&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,Tg(e,l,h,b,z,T),e===$e&&(Ae=$e=null,Re=0),vi=t,rl=e,Bn=l,lo=h,io=o,_d=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,$x(ke,function(){return Jd(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=U.T,U.T=null,o=K.p,K.p=2,b=Ge,Ge|=4;try{qx(e,t,l)}finally{Ge=b,K.p=o,U.T=r}}ht=1,Gd(),Qd(),Fd()}}function Gd(){if(ht===1){ht=0;var e=rl,t=vi,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var r=K.p;K.p=2;var o=Ge;Ge|=4;try{wd(t,e);var h=vo,b=Mf(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 Z=z.ownerDocument||document,H=Z&&Z.defaultView||window;if(H.getSelection){var Y=H.getSelection(),fe=z.textContent.length,Se=Math.min(T.start,fe),Ie=T.end===void 0?Se:Math.min(T.end,fe);!Y.extend&&Se>Ie&&(b=Ie,Ie=Se,Se=b);var A=Nf(z,Se),N=Nf(z,Ie);if(A&&N&&(Y.rangeCount!==1||Y.anchorNode!==A.node||Y.anchorOffset!==A.offset||Y.focusNode!==N.node||Y.focusOffset!==N.offset)){var D=Z.createRange();D.setStart(A.node,A.offset),Y.removeAllRanges(),Se>Ie?(Y.addRange(D),Y.extend(N.node,N.offset)):(D.setEnd(N.node,N.offset),Y.addRange(D))}}}}for(Z=[],Y=z;Y=Y.parentNode;)Y.nodeType===1&&Z.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof z.focus=="function"&&z.focus(),z=0;z<Z.length;z++){var F=Z[z];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}Wr=!!bo,vo=bo=null}finally{Ge=o,K.p=r,U.T=l}}e.current=t,ht=2}}function Qd(){if(ht===2){ht=0;var e=rl,t=vi,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var r=K.p;K.p=2;var o=Ge;Ge|=4;try{bd(e,t.alternate,t)}finally{Ge=o,K.p=r,U.T=l}}ht=3}}function Fd(){if(ht===4||ht===3){ht=0,Hi();var e=rl,t=vi,l=Bn,r=_d;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ht=5:(ht=0,vi=rl=null,Zd(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(al=null),Eu(l),t=t.stateNode,te&&typeof te.onCommitFiberRoot=="function")try{te.onCommitFiberRoot(J,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=U.T,o=K.p,K.p=2,U.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{U.T=t,K.p=o}}(Bn&3)!==0&&qr(),xn(e),o=e.pendingLanes,(l&261930)!==0&&(o&42)!==0?e===ao?va++:(va=0,ao=e):va=0,Sa(0)}}function Zd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ta(t)))}function qr(){return Gd(),Qd(),Fd(),Jd()}function Jd(){if(ht!==5)return!1;var e=rl,t=lo;lo=0;var l=Eu(Bn),r=U.T,o=K.p;try{K.p=32>l?32:l,U.T=null,l=io,io=null;var h=rl,b=Bn;if(ht=0,vi=rl=null,Bn=0,(Ge&6)!==0)throw Error(u(331));var z=Ge;if(Ge|=4,jd(h.current),Td(h,h.current,b,l),Ge=z,Sa(0,!1),te&&typeof te.onPostCommitFiberRoot=="function")try{te.onPostCommitFiberRoot(J,h)}catch{}return!0}finally{K.p=o,U.T=r,Zd(e,t)}}function Kd(e,t,l){t=en(l,t),t=Us(e.stateNode,t,2),e=Pn(e,t,2),e!==null&&(Yi(e,2),xn(e))}function Ze(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"&&(al===null||!al.has(r))){e=en(l,e),l=Ih(2),r=Pn(t,l,2),r!==null&&($h(l,r,t,e),Yi(r,2),xn(r));break}}t=t.return}}function so(e,t,l){var r=e.pingCache;if(r===null){r=e.pingCache=new Xx;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=Jx.bind(null,e,t,l),t.then(e,e))}function Jx(e,t,l){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,$e===e&&(Re&l)===l&&(it===4||it===3&&(Re&62914560)===Re&&300>xt()-Dr?(Ge&2)===0&&Si(e,0):to|=l,bi===Re&&(bi=0)),xn(e)}function Id(e,t){t===0&&(t=Xc()),e=El(e,t),e!==null&&(Yi(e,t),xn(e))}function Kx(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Id(e,l)}function Ix(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 $x(e,t){return Gn(e,t)}var Yr=null,ki=null,oo=!1,Vr=!1,co=!1,sl=0;function xn(e){e!==ki&&e.next===null&&(ki===null?Yr=ki=e:ki=ki.next=e),Vr=!0,oo||(oo=!0,Px())}function Sa(e,t){if(!co&&Vr){co=!0;do for(var l=!1,r=Yr;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-be(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=Re,h=Fa(r,r===$e?h:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(h&3)===0||qi(r,h)||(l=!0,em(r,h));r=r.next}while(l);co=!1}}function Wx(){$d()}function $d(){Vr=oo=!1;var e=0;sl!==0&&oy()&&(e=sl);for(var t=xt(),l=null,r=Yr;r!==null;){var o=r.next,h=Wd(r,t);h===0?(r.next=null,l===null?Yr=o:l.next=o,o===null&&(ki=l)):(l=r,(e!==0||(h&3)!==0)&&(Vr=!0)),r=o}ht!==0&&ht!==5||Sa(e),sl!==0&&(sl=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-be(h),z=1<<b,T=o[b];T===-1?((z&l)===0||(z&r)!==0)&&(o[b]=Eg(z,t)):T<=t&&(e.expiredLanes|=z),h&=~z}if(t=$e,l=Re,l=Fa(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,l===0||e===t&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&yl(r),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||qi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(r!==null&&yl(r),Eu(l)){case 2:case 8:l=le;break;case 32:l=ke;break;case 268435456:l=qe;break;default:l=ke}return r=Pd.bind(null,e),l=Gn(l,r),e.callbackPriority=t,e.callbackNode=l,t}return r!==null&&r!==null&&yl(r),e.callbackPriority=2,e.callbackNode=null,2}function Pd(e,t){if(ht!==0&&ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(qr()&&e.callbackNode!==l)return null;var r=Re;return r=Fa(e,e===$e?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Dd(e,r,t),Wd(e,xt()),e.callbackNode!=null&&e.callbackNode===l?Pd.bind(null,e):null)}function em(e,t){if(qr())return null;Dd(e,t,!0)}function Px(){fy(function(){(Ge&6)!==0?Gn(G,Wx):$d()})}function fo(){if(sl===0){var e=si;e===0&&(e=It,It<<=1,(It&261888)===0&&(It=256)),sl=e}return sl}function tm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ia(""+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 ey(e,t,l,r,o){if(t==="submit"&&l&&l.stateNode===o){var h=tm((o[At]||null).action),b=r.submitter;b&&(t=(t=b[At]||null)?tm(t.formAction):b.getAttribute("formAction"),t!==null&&(h=t,b=null));var z=new er("action","action",null,r,o);e.push({event:z,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(sl!==0){var T=b?nm(o,b):new FormData(o);As(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),As(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],ty=mo.toLowerCase(),ny=mo[0].toUpperCase()+mo.slice(1);cn(ty,"on"+ny)}cn(Of,"onAnimationEnd"),cn(Df,"onAnimationIteration"),cn(Rf,"onAnimationStart"),cn("dblclick","onDoubleClick"),cn("focusin","onFocus"),cn("focusout","onBlur"),cn(yx,"onTransitionRun"),cn(bx,"onTransitionStart"),cn(vx,"onTransitionCancel"),cn(Lf,"onTransitionEnd"),Jl("onMouseEnter",["mouseout","mouseover"]),Jl("onMouseLeave",["mouseout","mouseover"]),Jl("onPointerEnter",["pointerout","pointerover"]),Jl("onPointerLeave",["pointerout","pointerover"]),Sl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Sl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Sl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Sl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Sl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Sl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var za="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(" "),ly=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(za));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){lr(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){lr(X)}o.currentTarget=null,h=T}}}}function _e(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 Xr="_reactListening"+Math.random().toString(36).slice(2);function go(e){if(!e[Xr]){e[Xr]=!0,Ic.forEach(function(l){l!=="selectionchange"&&(ly.has(l)||po(l,!1,e),po(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xr]||(t[Xr]=!0,po("selectionchange",!1,t))}}function im(e,t,l,r){switch(Om(t)){case 2:var o=Ay;break;case 8:o=_y;break;default:o=Ao}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=Ql(z),b===null)return;if(T=b.tag,T===5||T===6||T===26||T===27){r=h=b;continue e}z=z.parentNode}}r=r.return}of(function(){var R=h,X=Ou(l),Z=[];e:{var H=Uf.get(e);if(H!==void 0){var Y=er,fe=e;switch(e){case"keypress":if(Wa(l)===0)break e;case"keydown":case"keyup":Y=Ig;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=Bg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=Pg;break;case Of:case Df:case Rf:Y=Yg;break;case Lf:Y=tx;break;case"scroll":case"scrollend":Y=Lg;break;case"wheel":Y=lx;break;case"copy":case"cut":case"paste":Y=Xg;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=ax}var Se=(t&4)!==0,Ie=!Se&&(e==="scroll"||e==="scrollend"),A=Se?H!==null?H+"Capture":null:H;Se=[];for(var N=R,D;N!==null;){var F=N;if(D=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||D===null||A===null||(F=Gi(N,A),F!=null&&Se.push(ka(N,F,D))),Ie)break;N=N.return}0<Se.length&&(H=new Y(H,fe,null,l,X),Z.push({event:H,listeners:Se}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",H&&l!==_u&&(fe=l.relatedTarget||l.fromElement)&&(Ql(fe)||fe[Gl]))break e;if((Y||H)&&(H=X.window===X?X:(H=X.ownerDocument)?H.defaultView||H.parentWindow:window,Y?(fe=l.relatedTarget||l.toElement,Y=R,fe=fe?Ql(fe):null,fe!==null&&(Ie=c(fe),Se=fe.tag,fe!==Ie||Se!==5&&Se!==27&&Se!==6)&&(fe=null)):(Y=null,fe=R),Y!==fe)){if(Se=hf,F="onMouseLeave",A="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(Se=mf,F="onPointerLeave",A="onPointerEnter",N="pointer"),Ie=Y==null?H:Xi(Y),D=fe==null?H:Xi(fe),H=new Se(F,N+"leave",Y,l,X),H.target=Ie,H.relatedTarget=D,F=null,Ql(X)===R&&(Se=new Se(A,N+"enter",fe,l,X),Se.target=D,Se.relatedTarget=Ie,F=Se),Ie=F,Y&&fe)t:{for(Se=iy,A=Y,N=fe,D=0,F=A;F;F=Se(F))D++;F=0;for(var ye=N;ye;ye=Se(ye))F++;for(;0<D-F;)A=Se(A),D--;for(;0<F-D;)N=Se(N),F--;for(;D--;){if(A===N||N!==null&&A===N.alternate){Se=A;break t}A=Se(A),N=Se(N)}Se=null}else Se=null;Y!==null&&am(Z,H,Y,Se,!1),fe!==null&&Ie!==null&&am(Z,Ie,fe,Se,!0)}}e:{if(H=R?Xi(R):window,Y=H.nodeName&&H.nodeName.toLowerCase(),Y==="select"||Y==="input"&&H.type==="file")var Ye=zf;else if(vf(H))if(kf)Ye=px;else{Ye=dx;var de=hx}else Y=H.nodeName,!Y||Y.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?R&&Au(R.elementType)&&(Ye=zf):Ye=mx;if(Ye&&(Ye=Ye(e,R))){Sf(Z,Ye,l,X);break e}de&&de(e,H,R),e==="focusout"&&R&&H.type==="number"&&R.memoizedProps.value!=null&&Mu(H,"number",H.value)}switch(de=R?Xi(R):window,e){case"focusin":(vf(de)||de.contentEditable==="true")&&(ei=de,Qu=R,Wi=null);break;case"focusout":Wi=Qu=ei=null;break;case"mousedown":Fu=!0;break;case"contextmenu":case"mouseup":case"dragend":Fu=!1,Af(Z,l,X);break;case"selectionchange":if(xx)break;case"keydown":case"keyup":Af(Z,l,X)}var Ce;if(Yu)e:{switch(e){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else Pl?yf(e,l)&&(Le="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Le="onCompositionStart");Le&&(pf&&l.locale!=="ko"&&(Pl||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&Pl&&(Ce=cf()):(Fn=X,Lu="value"in Fn?Fn.value:Fn.textContent,Pl=!0)),de=Gr(R,Le),0<de.length&&(Le=new df(Le,e,null,l,X),Z.push({event:Le,listeners:de}),Ce?Le.data=Ce:(Ce=bf(l),Ce!==null&&(Le.data=Ce)))),(Ce=ux?sx(e,l):ox(e,l))&&(Le=Gr(R,"onBeforeInput"),0<Le.length&&(de=new df("onBeforeInput","beforeinput",null,l,X),Z.push({event:de,listeners:Le}),de.data=Ce)),ey(Z,e,R,l,X)}lm(Z,t)})}function ka(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Gr(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=Gi(e,l),o!=null&&r.unshift(ka(e,o,h)),o=Gi(e,t),o!=null&&r.push(ka(e,o,h))),e.tag===3)return r;e=e.return}return[]}function iy(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=Gi(l,h),R!=null&&b.unshift(ka(l,R,T))):o||(R=Gi(l,h),R!=null&&b.push(ka(l,R,T)))),l=l.return}b.length!==0&&e.push({event:t,listeners:b})}var ay=/\r\n?/g,ry=/\u0000|\uFFFD/g;function rm(e){return(typeof e=="string"?e:""+e).replace(ay,`
|
|
49
|
-
`).replace(ry,"")}function um(e,t){return t=rm(t),rm(e)===t}function Ke(e,t,l,r,o,h){switch(l){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Il(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Il(e,""+r);break;case"className":Ja(e,"class",r);break;case"tabIndex":Ja(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Ja(e,l,r);break;case"style":uf(e,r,h);break;case"data":if(t!=="object"){Ja(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=Ia(""+r),e.setAttribute(l,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(l==="formAction"?(t!=="input"&&Ke(e,t,"name",o.name,o,null),Ke(e,t,"formEncType",o.formEncType,o,null),Ke(e,t,"formMethod",o.formMethod,o,null),Ke(e,t,"formTarget",o.formTarget,o,null)):(Ke(e,t,"encType",o.encType,o,null),Ke(e,t,"method",o.method,o,null),Ke(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(l);break}r=Ia(""+r),e.setAttribute(l,r);break;case"onClick":r!=null&&(e.onclick=kn);break;case"onScroll":r!=null&&_e("scroll",e);break;case"onScrollEnd":r!=null&&_e("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=Ia(""+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":_e("beforetoggle",e),_e("toggle",e),Za(e,"popover",r);break;case"xlinkActuate":zn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":zn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":zn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":zn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":zn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":zn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":zn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":zn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":zn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Za(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=Dg.get(l)||l,Za(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"?Il(e,r):(typeof r=="number"||typeof r=="bigint")&&Il(e,""+r);break;case"onScroll":r!=null&&_e("scroll",e);break;case"onScrollEnd":r!=null&&_e("scrollend",e);break;case"onClick":r!=null&&(e.onclick=kn);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[At]||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,""):Za(e,l,r)}}}function zt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var r=!1,o=!1,h;for(h in l)if(l.hasOwnProperty(h)){var b=l[h];if(b!=null)switch(h){case"src":r=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ke(e,t,h,b,l,null)}}o&&Ke(e,t,"srcSet",l.srcSet,l,null),r&&Ke(e,t,"src",l.src,l,null);return;case"input":_e("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:Ke(e,t,r,X,l,null)}}nf(e,h,z,T,R,b,o,!1);return;case"select":_e("invalid",e),r=b=h=null;for(o in l)if(l.hasOwnProperty(o)&&(z=l[o],z!=null))switch(o){case"value":h=z;break;case"defaultValue":b=z;break;case"multiple":r=z;default:Ke(e,t,o,z,l,null)}t=h,l=b,e.multiple=!!r,t!=null?Kl(e,!!r,t,!1):l!=null&&Kl(e,!!r,l,!0);return;case"textarea":_e("invalid",e),h=o=r=null;for(b in l)if(l.hasOwnProperty(b)&&(z=l[b],z!=null))switch(b){case"value":r=z;break;case"defaultValue":o=z;break;case"children":h=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(u(91));break;default:Ke(e,t,b,z,l,null)}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:Ke(e,t,T,r,l,null)}return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(r=0;r<za.length;r++)_e(za[r],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("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:Ke(e,t,R,r,l,null)}return;default:if(Au(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&&Ke(e,t,z,r,l,null))}function uy(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 Z=l[Y];if(l.hasOwnProperty(Y)&&Z!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":T=Z;default:r.hasOwnProperty(Y)||Ke(e,t,Y,null,r,Z)}}for(var H in r){var Y=r[H];if(Z=l[H],r.hasOwnProperty(H)&&(Y!=null||Z!=null))switch(H){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!==Z&&Ke(e,t,H,Y,r,Z)}}ju(e,b,z,T,R,X,h,o);return;case"select":Y=b=z=H=null;for(h in l)if(T=l[h],l.hasOwnProperty(h)&&T!=null)switch(h){case"value":break;case"multiple":Y=T;default:r.hasOwnProperty(h)||Ke(e,t,h,null,r,T)}for(o in r)if(h=r[o],T=l[o],r.hasOwnProperty(o)&&(h!=null||T!=null))switch(o){case"value":H=h;break;case"defaultValue":z=h;break;case"multiple":b=h;default:h!==T&&Ke(e,t,o,h,r,T)}t=z,l=b,r=Y,H!=null?Kl(e,!!l,H,!1):!!r!=!!l&&(t!=null?Kl(e,!!l,t,!0):Kl(e,!!l,l?[]:"",!1));return;case"textarea":Y=H=null;for(z in l)if(o=l[z],l.hasOwnProperty(z)&&o!=null&&!r.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:Ke(e,t,z,null,r,o)}for(b in r)if(o=r[b],h=l[b],r.hasOwnProperty(b)&&(o!=null||h!=null))switch(b){case"value":H=o;break;case"defaultValue":Y=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==h&&Ke(e,t,b,o,r,h)}lf(e,H,Y);return;case"option":for(var fe in l)if(H=l[fe],l.hasOwnProperty(fe)&&H!=null&&!r.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Ke(e,t,fe,null,r,H)}for(T in r)if(H=r[T],Y=l[T],r.hasOwnProperty(T)&&H!==Y&&(H!=null||Y!=null))switch(T){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Ke(e,t,T,H,r,Y)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Se in l)H=l[Se],l.hasOwnProperty(Se)&&H!=null&&!r.hasOwnProperty(Se)&&Ke(e,t,Se,null,r,H);for(R in r)if(H=r[R],Y=l[R],r.hasOwnProperty(R)&&H!==Y&&(H!=null||Y!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(u(137,t));break;default:Ke(e,t,R,H,r,Y)}return;default:if(Au(t)){for(var Ie in l)H=l[Ie],l.hasOwnProperty(Ie)&&H!==void 0&&!r.hasOwnProperty(Ie)&&yo(e,t,Ie,void 0,r,H);for(X in r)H=r[X],Y=l[X],!r.hasOwnProperty(X)||H===Y||H===void 0&&Y===void 0||yo(e,t,X,H,r,Y);return}}for(var A in l)H=l[A],l.hasOwnProperty(A)&&H!=null&&!r.hasOwnProperty(A)&&Ke(e,t,A,null,r,H);for(Z in r)H=r[Z],Y=l[Z],!r.hasOwnProperty(Z)||H===Y||H==null&&Y==null||Ke(e,t,Z,H,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 sy(){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,Z=T.initiatorType;X&&sm(Z)&&(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 Qr(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 oy(){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,cy=typeof clearTimeout=="function"?clearTimeout:void 0,hm=typeof Promise=="function"?Promise:void 0,fy=typeof queueMicrotask=="function"?queueMicrotask:typeof hm<"u"?function(e){return hm.resolve(null).then(e).catch(hy)}:fm;function hy(e){setTimeout(function(){throw e})}function ol(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),Ci(t);return}r--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")r++;else if(l==="html")wa(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,wa(l);for(var h=l.firstChild;h;){var b=h.nextSibling,z=h.nodeName;h[Vi]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&h.rel.toLowerCase()==="stylesheet"||l.removeChild(h),h=b}}else l==="body"&&wa(e.ownerDocument.body);l=o}while(l);Ci(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 dy(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[Vi])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=rn(e.nextSibling),e===null)break}return null}function my(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=rn(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=rn(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 py(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 rn(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 rn(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=Qr(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 wa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cu(e)}var un=new Map,bm=new Set;function Fr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Hn=K.d;K.d={f:gy,r:xy,D:yy,C:by,L:vy,m:Sy,X:ky,S:zy,M:wy};function gy(){var e=Hn.f(),t=Ur();return e||t}function xy(e){var t=Fl(e);t!==null&&t.tag===5&&t.type==="form"?Lh(t):Hn.r(e)}var wi=typeof document>"u"?null:document;function vm(e,t,l){var r=wi;if(r&&typeof t=="string"&&t){var o=Wt(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"),zt(t,"link",e),mt(t),r.head.appendChild(t)))}}function yy(e){Hn.D(e),vm("dns-prefetch",e,null)}function by(e,t){Hn.C(e,t),vm("preconnect",e,t)}function vy(e,t,l){Hn.L(e,t,l);var r=wi;if(r&&e&&t){var o='link[rel="preload"][as="'+Wt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+Wt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+Wt(l.imageSizes)+'"]')):o+='[href="'+Wt(e)+'"]';var h=o;switch(t){case"style":h=Ei(e);break;case"script":h=Ti(e)}un.has(h)||(e=g({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),un.set(h,e),r.querySelector(o)!==null||t==="style"&&r.querySelector(Ea(h))||t==="script"&&r.querySelector(Ta(h))||(t=r.createElement("link"),zt(t,"link",e),mt(t),r.head.appendChild(t)))}}function Sy(e,t){Hn.m(e,t);var l=wi;if(l&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Wt(r)+'"][href="'+Wt(e)+'"]',h=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Ti(e)}if(!un.has(h)&&(e=g({rel:"modulepreload",href:e},t),un.set(h,e),l.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ta(h)))return}r=l.createElement("link"),zt(r,"link",e),mt(r),l.head.appendChild(r)}}}function zy(e,t,l){Hn.S(e,t,l);var r=wi;if(r&&e){var o=Zl(r).hoistableStyles,h=Ei(e);t=t||"default";var b=o.get(h);if(!b){var z={loading:0,preload:null};if(b=r.querySelector(Ea(h)))z.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},l),(l=un.get(h))&&Co(e,l);var T=b=r.createElement("link");mt(T),zt(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,Zr(b,t,r)}b={type:"stylesheet",instance:b,count:1,state:z},o.set(h,b)}}}function ky(e,t){Hn.X(e,t);var l=wi;if(l&&e){var r=Zl(l).hoistableScripts,o=Ti(e),h=r.get(o);h||(h=l.querySelector(Ta(o)),h||(e=g({src:e,async:!0},t),(t=un.get(o))&&No(e,t),h=l.createElement("script"),mt(h),zt(h,"link",e),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},r.set(o,h))}}function wy(e,t){Hn.M(e,t);var l=wi;if(l&&e){var r=Zl(l).hoistableScripts,o=Ti(e),h=r.get(o);h||(h=l.querySelector(Ta(o)),h||(e=g({src:e,async:!0,type:"module"},t),(t=un.get(o))&&No(e,t),h=l.createElement("script"),mt(h),zt(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=ge.current)?Fr(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=Ei(l.href),l=Zl(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=Ei(l.href);var h=Zl(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(Ea(e)))&&!h._p&&(b.instance=h,b.state.loading=5),un.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},un.set(e,l),h||Ey(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=Ti(l),l=Zl(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 Ei(e){return'href="'+Wt(e)+'"'}function Ea(e){return'link[rel="stylesheet"]['+e+"]"}function zm(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function Ey(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}),zt(t,"link",l),mt(t),e.head.appendChild(t))}function Ti(e){return'[src="'+Wt(e)+'"]'}function Ta(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~="'+Wt(l.href)+'"]');if(r)return t.instance=r,mt(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"),mt(r),zt(r,"style",o),Zr(r,l.precedence,e),t.instance=r;case"stylesheet":o=Ei(l.href);var h=e.querySelector(Ea(o));if(h)return t.state.loading|=4,t.instance=h,mt(h),h;r=zm(l),(o=un.get(o))&&Co(r,o),h=(e.ownerDocument||e).createElement("link"),mt(h);var b=h;return b._p=new Promise(function(z,T){b.onload=z,b.onerror=T}),zt(h,"link",r),t.state.loading|=4,Zr(h,l.precedence,e),t.instance=h;case"script":return h=Ti(l.src),(o=e.querySelector(Ta(h)))?(t.instance=o,mt(o),o):(r=l,(o=un.get(h))&&(r=g({},l),No(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),mt(o),zt(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,Zr(r,l.precedence,e));return t.instance}function Zr(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 Jr=null;function wm(e,t,l){if(Jr===null){var r=new Map,o=Jr=new Map;o.set(l,r)}else o=Jr,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[Vi]||h[yt]||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 Ty(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 Cy(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=Ei(r.href),h=t.querySelector(Ea(o));if(h){t=h._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Kr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=h,mt(h);return}h=t.ownerDocument||t,r=zm(r),(o=un.get(o))&&Co(r,o),h=h.createElement("link"),mt(h);var b=h;b._p=new Promise(function(z,T){b.onload=z,b.onerror=T}),zt(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=Kr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var jo=0;function Ny(e,t){return e.stylesheets&&e.count===0&&$r(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var r=setTimeout(function(){if(e.stylesheets&&$r(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+t);0<e.imgBytes&&jo===0&&(jo=62500*sy());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$r(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 Kr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$r(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ir=null;function $r(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ir=new Map,t.forEach(jy,e),Ir=null,Kr.call(e))}function jy(e,t){if(!(t.state.loading&4)){var l=Ir.get(e);if(l)var r=l.get(null);else{l=new Map,Ir.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=Kr.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 Ca={$$typeof:_,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function My(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,Z){return e=new My(e,t,l,b,T,R,X,Z,z),t=1,h===!0&&(t|=24),h=Vt(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=li,e):li}function jm(e,t,l,r,o,h){o=Nm(o),r.context===null?r.context=o:r.pendingContext=o,r=Wn(t),r.payload={element:l},h=h===void 0?null:h,h!==null&&(r.callback=h),l=Pn(e,r,t),l!==null&&(Ut(l,e,t),aa(l,e,t))}function Mm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Mo(e,t){Mm(e,t),(e=e.alternate)&&Mm(e,t)}function Am(e){if(e.tag===13||e.tag===31){var t=El(e,67108864);t!==null&&Ut(t,e,67108864),Mo(e,67108864)}}function _m(e){if(e.tag===13||e.tag===31){var t=Zt();t=wu(t);var l=El(e,t);l!==null&&Ut(l,e,t),Mo(e,t)}}var Wr=!0;function Ay(e,t,l,r){var o=U.T;U.T=null;var h=K.p;try{K.p=2,Ao(e,t,l,r)}finally{K.p=h,U.T=o}}function _y(e,t,l,r){var o=U.T;U.T=null;var h=K.p;try{K.p=8,Ao(e,t,l,r)}finally{K.p=h,U.T=o}}function Ao(e,t,l,r){if(Wr){var o=_o(r);if(o===null)xo(e,t,r,Pr,l),Dm(e,r);else if(Dy(o,e,t,l,r))r.stopPropagation();else if(Dm(e,r),t&4&&-1<Oy.indexOf(e)){for(;o!==null;){var h=Fl(o);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=Sn(h.pendingLanes);if(b!==0){var z=h;for(z.pendingLanes|=2,z.entangledLanes|=2;b;){var T=1<<31-be(b);z.entanglements[1]|=T,b&=~T}xn(h),(Ge&6)===0&&(Rr=xt()+500,Sa(0))}}break;case 31:case 13:z=El(h,2),z!==null&&Ut(z,h,2),Ur(),Mo(h,2)}if(h=_o(r),h===null&&xo(e,t,r,Pr,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 Pr=null;function Oo(e){if(Pr=null,e=Ql(e),e!==null){var t=c(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=f(t),e!==null)return e;e=null}else if(l===31){if(e=d(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Pr=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(Xl()){case G:return 2;case le:return 8;case ke:case Me:return 32;case qe:return 268435456;default:return 32}default:return 32}}var Do=!1,cl=null,fl=null,hl=null,Na=new Map,ja=new Map,dl=[],Oy="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":cl=null;break;case"dragenter":case"dragleave":fl=null;break;case"mouseover":case"mouseout":hl=null;break;case"pointerover":case"pointerout":Na.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ja.delete(t.pointerId)}}function Ma(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=Fl(t),t!==null&&Am(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Dy(e,t,l,r,o){switch(t){case"focusin":return cl=Ma(cl,e,t,l,r,o),!0;case"dragenter":return fl=Ma(fl,e,t,l,r,o),!0;case"mouseover":return hl=Ma(hl,e,t,l,r,o),!0;case"pointerover":var h=o.pointerId;return Na.set(h,Ma(Na.get(h)||null,e,t,l,r,o)),!0;case"gotpointercapture":return h=o.pointerId,ja.set(h,Ma(ja.get(h)||null,e,t,l,r,o)),!0}return!1}function Rm(e){var t=Ql(e.target);if(t!==null){var l=c(t);if(l!==null){if(t=l.tag,t===13){if(t=f(l),t!==null){e.blockedOn=t,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 eu(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=Fl(l),t!==null&&Am(t),e.blockedOn=l,!1;t.shift()}return!0}function Lm(e,t,l){eu(e)&&l.delete(t)}function Ry(){Do=!1,cl!==null&&eu(cl)&&(cl=null),fl!==null&&eu(fl)&&(fl=null),hl!==null&&eu(hl)&&(hl=null),Na.forEach(Lm),ja.forEach(Lm)}function tu(e,t){e.blockedOn===t&&(e.blockedOn=null,Do||(Do=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Ry)))}var nu=null;function Um(e){nu!==e&&(nu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){nu===e&&(nu=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=Fl(l);h!==null&&(e.splice(t,3),t-=3,As(h,{pending:!0,data:o,method:l.method,action:r},r,o))}}))}function Ci(e){function t(T){return tu(T,e)}cl!==null&&tu(cl,e),fl!==null&&tu(fl,e),hl!==null&&tu(hl,e),Na.forEach(t),ja.forEach(t);for(var l=0;l<dl.length;l++){var r=dl[l];r.blockedOn===e&&(r.blockedOn=null)}for(;0<dl.length&&(l=dl[0],l.blockedOn===null);)Rm(l),l.blockedOn===null&&dl.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[At]||null;if(typeof h=="function")b||Um(l);else if(b){var z=null;if(h&&h.hasAttribute("formAction")){if(o=h,b=h[At]||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}lu.prototype.render=Ro.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,r=Zt();jm(l,r,e,t,null,null)},lu.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),Ur(),t[Gl]=null}};function lu(e){this._internalRoot=e}lu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<dl.length&&t!==0&&t<dl[l].priority;l++);dl.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"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=m(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Ly={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{J=iu.inject(Ly),te=iu}catch{}}return _a.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[Gl]=t.current,go(e),new Ro(t)},_a.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=Zt(),r=wu(r),o=Wn(r),o.callback=null,Pn(l,o,r),l=r,t.current.lanes=l,Yi(t,l),xn(t),e[Gl]=t.current,go(e),new lu(t)},_a.version="19.2.4",_a}var Km;function Qy(){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=Gy(),Bo.exports}var Fy=Qy();/**
|
|
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 Zy=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Jy=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,u)=>u?u.toUpperCase():i.toLowerCase()),Im=n=>{const a=Jy(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(),Ky=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 Iy={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 $y=Q.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:s="",children:c,iconNode:f,...d},p)=>Q.createElement("svg",{ref:p,...Iy,width:a,height:a,stroke:n,strokeWidth:u?Number(i)*24/Number(a):i,className:t0("lucide",s),...!c&&!Ky(d)&&{"aria-hidden":"true"},...d},[...f.map(([m,y])=>Q.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 De=(n,a)=>{const i=Q.forwardRef(({className:u,...s},c)=>Q.createElement($y,{ref:c,iconNode:a,className:t0(`lucide-${Zy(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 Wy=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Py=De("arrow-right",Wy);/**
|
|
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 e1=[["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=De("bot",e1);/**
|
|
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 t1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],gl=De("check",t1);/**
|
|
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 n1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],l1=De("chevron-down",n1);/**
|
|
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 i1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],l0=De("circle-check",i1);/**
|
|
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 a1=[["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"}]],r1=De("circle-question-mark",a1);/**
|
|
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 u1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],s1=De("circle",u1);/**
|
|
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 o1=[["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"}]],hu=De("copy",o1);/**
|
|
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 c1=[["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"}]],f1=De("database",c1);/**
|
|
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 h1=[["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=De("download",h1);/**
|
|
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 d1=[["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=De("file-code",d1);/**
|
|
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 m1=[["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"}]],p1=De("file-pen",m1);/**
|
|
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 g1=[["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=De("file-plus-corner",g1);/**
|
|
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 x1=[["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=De("file-text",x1);/**
|
|
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 y1=[["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=De("folder-open",y1);/**
|
|
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 b1=[["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"}]],v1=De("git-branch",b1);/**
|
|
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 S1=[["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"}]],z1=De("globe",S1);/**
|
|
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 k1=[["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"}]],w1=De("hard-drive",k1);/**
|
|
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 E1=[["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"}]],T1=De("lightbulb",E1);/**
|
|
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 C1=[["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=De("list-todo",C1);/**
|
|
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 N1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],u0=De("loader-circle",N1);/**
|
|
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 j1=[["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"}]],M1=De("message-square",j1);/**
|
|
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 A1=[["path",{d:"M5 12h14",key:"1ays0h"}]],_1=De("minus",A1);/**
|
|
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 O1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],D1=De("panel-left",O1);/**
|
|
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 R1=[["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"}]],L1=De("pause",R1);/**
|
|
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 U1=[["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"}]],B1=De("pencil",U1);/**
|
|
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 H1=[["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=De("play",H1);/**
|
|
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 q1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Y1=De("plus",q1);/**
|
|
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 V1=[["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"}]],X1=De("refresh-cw",V1);/**
|
|
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 G1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],qa=De("search",G1);/**
|
|
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 Q1=[["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=De("square-check-big",Q1);/**
|
|
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 F1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],o0=De("square",F1);/**
|
|
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 Z1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],c0=De("terminal",Z1);/**
|
|
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 J1=[["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"}]],K1=De("trash-2",J1);/**
|
|
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 I1=[["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"}]],$1=De("triangle-alert",I1);/**
|
|
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 W1=[["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"}]],P1=De("wrench",W1);/**
|
|
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 eb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xu=De("x",eb);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\/[^/]+/,"~"):""}function h0(n){if(n==null||!Number.isFinite(n))return"—";if(n<1024)return`${n} B`;const a=["KB","MB","GB","TB"];let i=n/1024,u=0;for(;i>=1024&&u<a.length-1;)i/=1024,u+=1;return`${i<10?i.toFixed(1):i.toFixed(0)} ${a[u]}`}function d0(n){if(n==null||!Number.isFinite(n))return"—";const a=Math.max(0,Math.round(n/1e3));if(a<60)return`${a}s`;const i=Math.floor(a/60),u=a%60;if(i<60)return`${i}m ${u}s`;const s=Math.floor(i/60),c=i%60;if(s<24)return`${s}h ${c}m`;const f=Math.floor(s/24),d=s%24;return`${f}d ${d}h`}const tb=[/<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 Ht(n){if(!n)return"";let a=n;for(const i of tb)a=a.replace(i,"");return a.trim()}var nb=e0();function Ni(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,j)=>u[j]!==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,j=Math.round((Date.now()-v)*100)/100,L=j/16,M=(q,_)=>{for(q=String(q);q.length<_;)q=" "+q;return q};console.info(`%c⏱ ${M(j,5)} /${M(w,5)} ms`,`
|
|
255
|
-
font-size: .6rem;
|
|
256
|
-
font-weight: bold;
|
|
257
|
-
color: hsl(${Math.max(0,Math.min(120-120*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 lb=(n,a)=>Math.abs(n-a)<1.01,ib=(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}},ab=n=>n,rb=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},ub=(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,sb=(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?()=>{}:ib(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)}},ob=(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"]},cb=(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 fb{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:ab,rangeExtractor:rb,onChange:()=>{},measureElement:ob,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=Ni(()=>(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=Ni(()=>[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=Ni(()=>[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 j,L;if(w!==void 0&&this.options.lanes>1){j=w;const W=g[j],ie=W!==void 0?y[W]:void 0;L=ie?ie.end+this.options.gap:u+s}else{const W=this.options.lanes===1?y[S-1]:this.getFurthestMeasurement(y,S);L=W?W.end+this.options.gap:u+s,j=W?W.lane:S%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(S,j)}const M=p.get(v),q=typeof M=="number"?M:this.options.estimateSize(S),_=L+q;y[S]={index:S,start:L,size:q,end:_,key:v,lane:j},g[j]=S}return this.measurementsCache=y,y},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ni(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,u,s,c)=>this.range=i.length>0&&u>0?hb({measurements:i,outerSize:u,scrollOffset:s,lanes:c}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Ni(()=>{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=Ni(()=>[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[m0(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(),j=this.getOffsetForIndex(i,S);if(!j){console.warn("Failed to get offset for index:",i);return}lb(j[0],w)||p(S)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(v):v()})},p=m=>{this.targetWindow&&this.currentScrollToIndex===i&&(c++,c<f?this.targetWindow.requestAnimationFrame(()=>d(m)):console.warn(`Failed to scroll to index ${i} after ${f} attempts.`))};d(u)},this.scrollBy=(i,{behavior:u}={})=>{u==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+i,{adjustments:void 0,behavior:u})},this.getTotalSize=()=>{var i;const u=this.getMeasurements();let s;if(u.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=((i=u[u.length-1])==null?void 0:i.end)??0;else{const c=Array(this.options.lanes).fill(null);let f=u.length-1;for(;f>=0&&c.some(d=>d===null);){const d=u[f];c[d.lane]===null&&(c[d.lane]=d.end),f--}s=Math.max(...c.filter(d=>d!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(i,{adjustments:u,behavior:s})=>{this.options.scrollToFn(i,{behavior:s,adjustments:u},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(a)}}const m0=(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 hb({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=m0(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"?Q.useLayoutEffect:Q.useEffect;function db({useFlushSync:n=!0,...a}){const i=Q.useReducer(()=>({}),{})[1],u={...a,onChange:(c,f)=>{var d;n&&f?nb.flushSync(i):i(),(d=a.onChange)==null||d.call(a,c,f)}},[s]=Q.useState(()=>new fb(u));return s.setOptions(u),np(()=>s._didMount(),[]),np(()=>s._willUpdate()),s}function mb(n){return db({observeElementRect:ub,observeElementOffset:sb,scrollToFn:cb,...n})}const pb=Q.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:j,onDeleteUnknownSessions:L,sortMode:M,onSortModeChange:q,batchMode:_,selectedSessions:W,onToggleBatchMode:ie,onToggleSessionSelection:O,onSelectAll:I,onDeselectAll:se,onBatchExport:me}=a,[B,ne]=Q.useState(!1),[P,pe]=Q.useState(null),[ue,$]=Q.useState(new Map),U=Q.useRef(null);Q.useEffect(()=>{if(!m||!d.trim()){ne(!1),pe(null),$(new Map);return}const ae=new AbortController,he=setTimeout(()=>{ne(!0),pe(null),fetch("/api/search",{method:"POST",headers:{"Content-Type":"application/json"},signal:ae.signal,body:JSON.stringify({query:d,options:g,project:f??null})}).then(async ze=>{const je=ze.headers.get("x-claude-run-rg-command");je&&console.log("[claude-run]",je);const Xe=await ze.json();if(!ze.ok)throw new Error(Xe.error||"Search failed");const dt=new Map;for(const Tt of Xe.matches)dt.set(Tt.sessionId,Tt.matchCount);$(dt)}).catch(ze=>{(ze==null?void 0:ze.name)!=="AbortError"&&($(new Map),pe(ze instanceof Error?ze.message:"Search failed"))}).finally(()=>{ne(!1)})},250);return()=>{ae.abort(),clearTimeout(he)}},[m,d,g,f]);const K=Q.useMemo(()=>{const ae=[];for(const[he,ze]of j.entries())ze===null&&ae.push(he);return ae},[j]),oe=K.length,we=Q.useMemo(()=>v?i.filter(ae=>j.get(ae.id)!==null):i,[i,v,j]),E=Q.useMemo(()=>{if(!d.trim())return we;if(m)return B||P?[]:ue.size===0?[]:we.filter(he=>ue.has(he.id));const ae=d.toLowerCase();return we.filter(he=>he.display.toLowerCase().includes(ae)||he.projectName.toLowerCase().includes(ae))},[we,d,m,B,P,ue]),C=Q.useMemo(()=>{const ae=[...E],he=je=>typeof je.startTime!="number"||typeof je.endTime!="number"?null:Math.max(0,je.endTime-je.startTime),ze=(je,Xe,dt)=>je===null&&Xe===null?0:je===null?1:Xe===null?-1:dt?Xe-je:je-Xe;switch(M){case"duration-desc":ae.sort((je,Xe)=>ze(he(je),he(Xe),!0));break;case"duration-asc":ae.sort((je,Xe)=>ze(he(je),he(Xe),!1));break;case"size-desc":ae.sort((je,Xe)=>ze(je.fileSizeBytes??null,Xe.fileSizeBytes??null,!0));break;case"size-asc":ae.sort((je,Xe)=>ze(je.fileSizeBytes??null,Xe.fileSizeBytes??null,!1));break;default:ae.sort((je,Xe)=>Xe.timestamp-je.timestamp);break}return ae},[E,M]),V=mb({count:C.length,getScrollElement:()=>U.current,estimateSize:()=>76,overscan:10,measureElement:ae=>ae.getBoundingClientRect().height}),k=Q.useCallback((ae,he)=>{_?(he.preventDefault(),O(ae.id)):s(ae.id)},[_,O,s]),re=W.size,xe=re===C.length&&C.length>0,ge=Q.useCallback(()=>{K.length!==0&&L(K)},[K,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:ae=>p(ae.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:ae=>y(ae.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:ae=>w(ae.target.checked),className:"accent-cyan-500",title:"Hide sessions without a detected model"}),"Hide Unknown model"]}),x.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500",children:[x.jsx("span",{children:"Sort"}),x.jsxs("select",{value:M,onChange:ae=>q(ae.target.value),className:"bg-zinc-900/60 border border-zinc-800/60 rounded px-1.5 py-0.5 text-[10px] text-zinc-200",children:[x.jsx("option",{value:"recent",children:"Recent"}),x.jsx("option",{value:"duration-desc",children:"Duration (desc)"}),x.jsx("option",{value:"duration-asc",children:"Duration (asc)"}),x.jsx("option",{value:"size-desc",children:"JSONL size (desc)"}),x.jsx("option",{value:"size-asc",children:"JSONL size (asc)"})]})]}),v&&oe>0&&x.jsxs("button",{onClick:ge,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 (",oe,")"]})]}),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:ae=>S({...g,mode:ae.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:ae=>S({...g,caseSensitive:ae.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:ae=>S({...g,wordRegexp:ae.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:ae=>S({...g,maxMatchesPerFile:Number.parseInt(ae.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"})]}),B&&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:ie,className:`flex items-center gap-1.5 px-2 py-1 text-xs rounded transition-colors ${_?"bg-cyan-600/20 text-cyan-400 border border-cyan-600/40":"text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800"}`,title:_?"Exit batch mode":"Enter batch mode",children:_?x.jsxs(x.Fragment,{children:[x.jsx(xu,{className:"w-3 h-3"}),"Exit"]}):x.jsxs(x.Fragment,{children:[x.jsx(uc,{className:"w-3 h-3"}),"Select"]})}),_&&x.jsxs(x.Fragment,{children:[x.jsx("button",{onClick:xe?se:I,className:"px-2 py-1 text-xs text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 rounded transition-colors",children:xe?"Deselect All":"Select All"}),re>0&&x.jsxs("button",{onClick:me,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 (",re,")"]})]})]}),x.jsx("div",{ref:U,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"})]})}):E.length===0?x.jsx("p",{className:"py-8 text-center text-xs text-zinc-600",children:m&&d&&P?P:m&&d&&B?"Searching…":d?m?"No matches in conversation text":"No sessions match":"No sessions found"}):x.jsx("div",{style:{height:`${V.getTotalSize()}px`,width:"100%",position:"relative"},children:V.getVirtualItems().map(ae=>{const he=C[ae.index],ze=W.has(he.id),je=typeof he.startTime=="number"&&typeof he.endTime=="number"?Math.max(0,he.endTime-he.startTime):null,Xe=typeof he.messageCount=="number"?`${he.messageCount} msg${he.messageCount===1?"":"s"}`:"—",dt=d0(je),Tt=h0(he.fileSizeBytes);return x.jsx("button",{"data-index":ae.index,ref:V.measureElement,onClick:gt=>k(he,gt),style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${ae.start}px)`},className:`px-3 py-3.5 text-left transition-colors overflow-hidden border-b border-zinc-800/40 ${_&&ze||u===he.id&&!_?"bg-cyan-700/30":"hover:bg-zinc-900/60"} ${ae.index===0?"border-t border-t-zinc-800/40":""}`,children:x.jsxs("div",{className:"flex items-center gap-2",children:[_&&x.jsx("div",{className:"shrink-0",children:ze?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(he.project),children:he.projectName}),x.jsxs("div",{className:"flex items-center gap-2",children:[m&&d.trim()&&ue.has(he.id)&&x.jsx("span",{className:"text-[10px] text-cyan-400",children:ue.get(he.id)}),x.jsx("span",{className:"text-[10px] text-zinc-600",children:f0(he.timestamp)})]})]}),x.jsx("p",{className:"text-[12px] text-zinc-300 leading-snug line-clamp-2 wrap-break-word",children:he.display}),x.jsxs("div",{className:"mt-1 text-[10px] text-zinc-600 flex flex-wrap items-center gap-x-2",children:[x.jsx("span",{children:Xe}),x.jsx("span",{children:"•"}),x.jsx("span",{children:dt}),x.jsx("span",{children:"•"}),x.jsx("span",{children:Tt})]})]})]})},he.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:_&&re>0?`${re} of ${i.length} selected`:`${i.length} session${i.length!==1?"s":""}`})})]})});function gb(n){const a=n.split("/").filter(Boolean);return a[a.length-1]||n}function au(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 xb(n){const{projects:a,selectedProject:i,onSelect:u}=n,[s,c]=Q.useState(!1),[f,d]=Q.useState(""),p=Q.useRef(null),m=Q.useRef(null),y=Q.useMemo(()=>{const w=a.map(j=>({value:j,name:gb(j),path:j,subtext:wc(j)}));return[{value:"",name:"All Projects",path:"",subtext:"Every project"},...w]},[a]),g=Q.useMemo(()=>f.trim()?y.filter(w=>w.value?au(f,w.name)||au(f,w.subtext)||au(f,w.path):au(f,w.name)):y,[y,f]),S=Q.useMemo(()=>i?y.find(w=>w.value===i)??y[0]:y[0],[y,i]),v=Q.useCallback(w=>{u(w||null),c(!1),d("")},[u]);return Q.useEffect(()=>{if(!s)return;const w=L=>{p.current&&(p.current.contains(L.target)||c(!1))},j=L=>{L.key==="Escape"&&c(!1)};return document.addEventListener("mousedown",w),document.addEventListener("keydown",j),()=>{document.removeEventListener("mousedown",w),document.removeEventListener("keydown",j)}},[s]),Q.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(l1,{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(qa,{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(xu,{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 j=i===w.value||!i&&!w.value;return x.jsx("li",{children:x.jsxs("button",{type:"button",role:"option","aria-selected":j,onClick:()=>v(w.value),className:`w-full text-left px-3 py-2 rounded-md transition-colors hover:bg-zinc-800/60 ${j?"bg-cyan-700/20":""}`,children:[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}),j&&x.jsx(gl,{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 yb(n,a){const i={};return(n[n.length-1]===""?[...n,""]:n).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const bb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sb={};function lp(n,a){return(Sb.jsx?vb:bb).test(n)}const zb=/[ \t\n\f\r]/g;function kb(n){return typeof n=="object"?n.type==="text"?ip(n.value):!1:ip(n)}function ip(n){return n.replace(zb,"")===""}class Xa{constructor(a,i,u){this.normal=i,this.property=a,u&&(this.space=u)}}Xa.prototype.normal={};Xa.prototype.property={};Xa.prototype.space=void 0;function p0(n,a){const i={},u={};for(const s of n)Object.assign(i,s.property),Object.assign(u,s.normal);return new Xa(i,u,a)}function sc(n){return n.toLowerCase()}class qt{constructor(a,i){this.attribute=i,this.property=a}}qt.prototype.attribute="";qt.prototype.booleanish=!1;qt.prototype.boolean=!1;qt.prototype.commaOrSpaceSeparated=!1;qt.prototype.commaSeparated=!1;qt.prototype.defined=!1;qt.prototype.mustUseProperty=!1;qt.prototype.number=!1;qt.prototype.overloadedBoolean=!1;qt.prototype.property="";qt.prototype.spaceSeparated=!1;qt.prototype.space=void 0;let wb=0;const Ne=ql(),ft=ql(),oc=ql(),ee=ql(),Pe=ql(),Oi=ql(),Jt=ql();function ql(){return 2**++wb}const cc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ne,booleanish:ft,commaOrSpaceSeparated:Jt,commaSeparated:Oi,number:ee,overloadedBoolean:oc,spaceSeparated:Pe},Symbol.toStringTag,{value:"Module"})),Vo=Object.keys(cc);class Ec extends qt{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 Ri(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 Xa(a,i,n.space)}const g0=Ri({properties:{ariaActiveDescendant:null,ariaAtomic:ft,ariaAutoComplete:null,ariaBusy:ft,ariaChecked:ft,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:Pe,ariaCurrent:null,ariaDescribedBy:Pe,ariaDetails:null,ariaDisabled:ft,ariaDropEffect:Pe,ariaErrorMessage:null,ariaExpanded:ft,ariaFlowTo:Pe,ariaGrabbed:ft,ariaHasPopup:null,ariaHidden:ft,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Pe,ariaLevel:ee,ariaLive:null,ariaModal:ft,ariaMultiLine:ft,ariaMultiSelectable:ft,ariaOrientation:null,ariaOwns:Pe,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:ft,ariaReadOnly:ft,ariaRelevant:null,ariaRequired:ft,ariaRoleDescription:Pe,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:ft,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 x0(n,a){return a in n?n[a]:a}function y0(n,a){return x0(n,a.toLowerCase())}const Eb=Ri({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Oi,acceptCharset:Pe,accessKey:Pe,action:null,allow:null,allowFullScreen:Ne,allowPaymentRequest:Ne,allowUserMedia:Ne,alt:null,as:null,async:Ne,autoCapitalize:null,autoComplete:Pe,autoFocus:Ne,autoPlay:Ne,blocking:Pe,capture:null,charSet:null,checked:Ne,cite:null,className:Pe,cols:ee,colSpan:null,content:null,contentEditable:ft,controls:Ne,controlsList:Pe,coords:ee|Oi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ne,defer:Ne,dir:null,dirName:null,disabled:Ne,download:oc,draggable:ft,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ne,formTarget:null,headers:Pe,height:ee,hidden:oc,high:ee,href:null,hrefLang:null,htmlFor:Pe,httpEquiv:Pe,id:null,imageSizes:null,imageSrcSet:null,inert:Ne,inputMode:null,integrity:null,is:null,isMap:Ne,itemId:null,itemProp:Pe,itemRef:Pe,itemScope:Ne,itemType:Pe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ne,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:Ne,muted:Ne,name:null,nonce:null,noModule:Ne,noValidate:Ne,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ne,optimum:ee,pattern:null,ping:Pe,placeholder:null,playsInline:Ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ne,referrerPolicy:null,rel:Pe,required:Ne,reversed:Ne,rows:ee,rowSpan:ee,sandbox:Pe,scope:null,scoped:Ne,seamless:Ne,selected:Ne,shadowRootClonable:Ne,shadowRootDelegatesFocus:Ne,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:ft,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:Ne,useMap:null,value:ft,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Pe,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:Ne,declare:Ne,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:Ne,noHref:Ne,noShade:Ne,noWrap:Ne,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:ft,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:Ne,disableRemotePlayback:Ne,prefix:null,property:null,results:ee,security:null,unselectable:null},space:"html",transform:y0}),Tb=Ri({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:Jt,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:Pe,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:Ne,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:Oi,g2:Oi,glyphName:Oi,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:Jt,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:Pe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Jt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Jt,rev:Jt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Jt,requiredFeatures:Jt,requiredFonts:Jt,requiredFormats:Jt,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:Jt,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:Jt,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:Jt,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:x0}),b0=Ri({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()}}),v0=Ri({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:y0}),S0=Ri({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),Cb={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"},Nb=/[A-Z]/g,rp=/-[a-z]/g,jb=/^data[-\w.:]+$/i;function Mb(n,a){const i=sc(a);let u=a,s=qt;if(i in n.normal)return n.property[n.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&jb.test(a)){if(a.charAt(4)==="-"){const c=a.slice(5).replace(rp,_b);u="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!rp.test(c)){let f=c.replace(Nb,Ab);f.charAt(0)!=="-"&&(f="-"+f),a="data"+f}}s=Ec}return new s(u,a)}function Ab(n){return"-"+n.toLowerCase()}function _b(n){return n.charAt(1).toUpperCase()}const Ob=p0([g0,Eb,b0,v0,S0],"html"),Tc=p0([g0,Tb,b0,v0,S0],"svg");function Db(n){return n.join(" ").trim()}var ji={},Xo,up;function Rb(){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,M){if(typeof L!="string")throw new TypeError("First argument must be a string");if(!L)return[];M=M||{};var q=1,_=1;function W(ue){var $=ue.match(a);$&&(q+=$.length);var U=ue.lastIndexOf(p);_=~U?ue.length-U:_+ue.length}function ie(){var ue={line:q,column:_};return function($){return $.position=new O(ue),me(),$}}function O(ue){this.start=ue,this.end={line:q,column:_},this.source=M.source}O.prototype.content=L;function I(ue){var $=new Error(M.source+":"+q+":"+_+": "+ue);if($.reason=ue,$.filename=M.source,$.line=q,$.column=_,$.source=L,!M.silent)throw $}function se(ue){var $=ue.exec(L);if($){var U=$[0];return W(U),L=L.slice(U.length),$}}function me(){se(i)}function B(ue){var $;for(ue=ue||[];$=ne();)$!==!1&&ue.push($);return ue}function ne(){var ue=ie();if(!(m!=L.charAt(0)||y!=L.charAt(1))){for(var $=2;g!=L.charAt($)&&(y!=L.charAt($)||m!=L.charAt($+1));)++$;if($+=2,g===L.charAt($-1))return I("End of comment missing");var U=L.slice(2,$-2);return _+=2,W(U),L=L.slice($),_+=2,ue({type:S,comment:U})}}function P(){var ue=ie(),$=se(u);if($){if(ne(),!se(s))return I("property missing ':'");var U=se(c),K=ue({type:v,property:j($[0].replace(n,g)),value:U?j(U[0].replace(n,g)):g});return se(f),K}}function pe(){var ue=[];B(ue);for(var $;$=P();)$!==!1&&(ue.push($),B(ue));return ue}return me(),pe()}function j(L){return L?L.replace(d,g):g}return Xo=w,Xo}var sp;function Lb(){if(sp)return ji;sp=1;var n=ji&&ji.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(ji,"__esModule",{value:!0}),ji.default=i;const a=n(Rb());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 ji}var Oa={},op;function Ub(){if(op)return Oa;op=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.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 Oa.camelCase=p,Oa}var Da,cp;function Bb(){if(cp)return Da;cp=1;var n=Da&&Da.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=n(Lb()),i=Ub();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,Da=u,Da}var Hb=Bb();const qb=Pp(Hb),z0=k0("end"),Cc=k0("start");function k0(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 Yb(n){const a=Cc(n),i=z0(n);if(a&&i)return{start:a,end:i}}function Ua(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 Et 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=Ua(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}}Et.prototype.file="";Et.prototype.name="";Et.prototype.reason="";Et.prototype.message="";Et.prototype.stack="";Et.prototype.column=void 0;Et.prototype.line=void 0;Et.prototype.ancestors=void 0;Et.prototype.cause=void 0;Et.prototype.fatal=void 0;Et.prototype.place=void 0;Et.prototype.ruleId=void 0;Et.prototype.source=void 0;const Nc={}.hasOwnProperty,Vb=new Map,Xb=/[A-Z]/g,Gb=new Set(["table","tbody","thead","tfoot","tr"]),Qb=new Set(["td","th"]),w0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Fb(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=ev(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=Pb(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:Ob,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},c=E0(s,n,void 0);return c&&typeof c!="string"?c:s.create(n,s.Fragment,{children:c||void 0},void 0)}function E0(n,a,i){if(a.type==="element")return Zb(n,a,i);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return Jb(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return Ib(n,a,i);if(a.type==="mdxjsEsm")return Kb(n,a);if(a.type==="root")return $b(n,a,i);if(a.type==="text")return Wb(n,a)}function Zb(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=C0(n,a.tagName,!1),f=tv(n,a);let d=Mc(n,a);return Gb.has(a.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!kb(p):!0})),T0(n,f,c,a),jc(f,d),n.ancestors.pop(),n.schema=u,n.create(a,c,f,i)}function Jb(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)}Ya(n,a.position)}function Kb(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);Ya(n,a.position)}function Ib(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:C0(n,a.name,!0),f=nv(n,a),d=Mc(n,a);return T0(n,f,c,a),jc(f,d),n.ancestors.pop(),n.schema=u,n.create(a,c,f,i)}function $b(n,a,i){const u={};return jc(u,Mc(n,a)),n.create(a,n.Fragment,u,i)}function Wb(n,a){return a.value}function T0(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 Pb(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 ev(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 tv(n,a){const i={};let u,s;for(s in a.properties)if(s!=="children"&&Nc.call(a.properties,s)){const c=lv(n,s,a.properties[s]);if(c){const[f,d]=c;n.tableCellAlignToStyle&&f==="align"&&typeof d=="string"&&Qb.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 nv(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 Ya(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 Ya(n,a.position);else c=u.value===null?!0:u.value;i[s]=c}return i}function Mc(n,a){const i=[];let u=-1;const s=n.passKeys?new Map:Vb;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=E0(n,c,f);d!==void 0&&i.push(d)}return i}function lv(n,a,i){const u=Mb(n.schema,a);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=u.commaSeparated?yb(i):Db(i)),u.property==="style"){let s=typeof i=="object"?i:iv(n,String(i));return n.stylePropertyNameCase==="css"&&(s=av(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&u.space?Cb[u.property]||u.property:u.attribute,i]}}function iv(n,a){try{return qb(a,{reactCompat:!0})}catch(i){if(n.ignoreInvalidStyle)return{};const u=i,s=new Et("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=w0+"#cannot-parse-style-attribute",s}}function C0(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);Ya(n)}function Ya(n,a){const i=new Et("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=w0+"#cannot-handle-mdx-estrees-without-createevaluater",i}function av(n){const a={};let i;for(i in n)Nc.call(n,i)&&(a[rv(i)]=n[i]);return a}function rv(n){let a=n.replace(Xb,uv);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function uv(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"]},sv={};function Ac(n,a){const i=sv,u=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return N0(n,u,s)}function N0(n,a,i){if(ov(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]=N0(n[s],a,i);return u.join("")}function ov(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 Kt(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 sn(n,a){return n.length>0?(Kt(n,n.length,0,a),n):a}const pp={}.hasOwnProperty;function j0(n){const a={};let i=-1;for(;++i<n.length;)cv(a,n[i]);return a}function cv(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];fv(s[f],Array.isArray(d)?d:d?[d]:[])}}}function fv(n,a){let i=-1;const u=[];for(;++i<a.length;)(a[i].add==="after"?n:u).push(a[i]);Kt(n,0,0,u)}function M0(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 dn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const jt=xl(/[A-Za-z]/),wt=xl(/[\dA-Za-z]/),hv=xl(/[#-'*+\--9=?A-Z^-~]/);function du(n){return n!==null&&(n<32||n===127)}const hc=xl(/\d/),dv=xl(/[\dA-Fa-f]/),mv=xl(/[!-/:-@[-`{-~]/);function ve(n){return n!==null&&n<-2}function We(n){return n!==null&&(n<0||n===32)}function Oe(n){return n===-2||n===-1||n===32}const yu=xl(new RegExp("\\p{P}|\\p{S}","u")),Hl=xl(/\s/);function xl(n){return a;function a(i){return i!==null&&i>-1&&n.test(String.fromCharCode(i))}}function Li(n){const a=[];let i=-1,u=0,s=0;for(;++i<n.length;){const c=n.charCodeAt(i);let f="";if(c===37&&wt(n.charCodeAt(i+1))&&wt(n.charCodeAt(i+2)))s=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(f=String.fromCharCode(c));else if(c>55295&&c<57344){const d=n.charCodeAt(i+1);c<56320&&d>56319&&d<57344?(f=String.fromCharCode(c,d),s=1):f="�"}else f=String.fromCharCode(c);f&&(a.push(n.slice(u,i),encodeURIComponent(f)),u=i+s+1,f=""),s&&(i+=s,s=0)}return a.join("")+n.slice(u)}function He(n,a,i,u){const s=u?u-1:Number.POSITIVE_INFINITY;let c=0;return f;function f(p){return Oe(p)?(n.enter(i),d(p)):a(p)}function d(p){return Oe(p)&&c++<s?(n.consume(p),d):(n.exit(i),a(p))}}const pv={tokenize:gv};function gv(n){const a=n.attempt(this.parser.constructs.contentInitial,u,s);let i;return a;function u(d){if(d===null){n.consume(d);return}return n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),He(n,a,"linePrefix")}function s(d){return n.enter("paragraph"),c(d)}function c(d){const p=n.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=p),i=p,f(d)}function f(d){if(d===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(d);return}return ve(d)?(n.consume(d),n.exit("chunkText"),c):(n.consume(d),f)}}const xv={tokenize:yv},gp={tokenize:bv};function yv(n){const a=this,i=[];let u=0,s,c,f;return d;function d(_){if(u<i.length){const W=i[u];return a.containerState=W[1],n.attempt(W[0].continuation,p,m)(_)}return m(_)}function p(_){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&q();const W=a.events.length;let ie=W,O;for(;ie--;)if(a.events[ie][0]==="exit"&&a.events[ie][1].type==="chunkFlow"){O=a.events[ie][1].end;break}M(u);let I=W;for(;I<a.events.length;)a.events[I][1].end={...O},I++;return Kt(a.events,ie+1,0,a.events.slice(W)),a.events.length=I,m(_)}return d(_)}function m(_){if(u===i.length){if(!s)return S(_);if(s.currentConstruct&&s.currentConstruct.concrete)return w(_);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(gp,y,g)(_)}function y(_){return s&&q(),M(u),S(_)}function g(_){return a.parser.lazy[a.now().line]=u!==i.length,f=a.now().offset,w(_)}function S(_){return a.containerState={},n.attempt(gp,v,w)(_)}function v(_){return u++,i.push([a.currentConstruct,a.containerState]),S(_)}function w(_){if(_===null){s&&q(),M(0),n.consume(_);return}return s=s||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:c}),j(_)}function j(_){if(_===null){L(n.exit("chunkFlow"),!0),M(0),n.consume(_);return}return ve(_)?(n.consume(_),L(n.exit("chunkFlow")),u=0,a.interrupt=void 0,d):(n.consume(_),j)}function L(_,W){const ie=a.sliceStream(_);if(W&&ie.push(null),_.previous=c,c&&(c.next=_),c=_,s.defineSkip(_.start),s.write(ie),a.parser.lazy[_.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 I=a.events.length;let se=I,me,B;for(;se--;)if(a.events[se][0]==="exit"&&a.events[se][1].type==="chunkFlow"){if(me){B=a.events[se][1].end;break}me=!0}for(M(u),O=I;O<a.events.length;)a.events[O][1].end={...B},O++;Kt(a.events,se+1,0,a.events.slice(I)),a.events.length=O}}function M(_){let W=i.length;for(;W-- >_;){const ie=i[W];a.containerState=ie[1],ie[0].exit.call(a,n)}i.length=_}function q(){s.write([null]),c=void 0,s=void 0,a.containerState._closeFlow=void 0}}function bv(n,a,i){return He(n,n.attempt(this.parser.constructs.document,a,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Di(n){if(n===null||We(n)||Hl(n))return 1;if(yu(n))return 2}function bu(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:vv,tokenize:Sv};function vv(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=sn(m,[["enter",n[u][1],a],["exit",n[u][1],a]])),m=sn(m,[["enter",s,a],["enter",f,a],["exit",f,a],["enter",c,a]]),m=sn(m,bu(a.parser.constructs.insideSpan.null,n.slice(u+1,i),a)),m=sn(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=sn(m,[["enter",n[i][1],a],["exit",n[i][1],a]])):y=0,Kt(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 Sv(n,a){const i=this.parser.constructs.attentionMarkers.null,u=this.previous,s=Di(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=Di(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 zv={name:"autolink",tokenize:kv};function kv(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 jt(v)?(n.consume(v),f):v===64?i(v):m(v)}function f(v){return v===43||v===45||v===46||wt(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||wt(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||du(v)?i(v):(n.consume(v),p)}function m(v){return v===64?(n.consume(v),y):hv(v)?(n.consume(v),m):i(v)}function y(v){return wt(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||wt(v))&&u++<63){const w=v===45?S:g;return n.consume(v),w}return i(v)}}const Ga={partial:!0,tokenize:wv};function wv(n,a,i){return u;function u(c){return Oe(c)?He(n,s,"linePrefix")(c):s(c)}function s(c){return c===null||ve(c)?a(c):i(c)}}const A0={continuation:{tokenize:Tv},exit:Cv,name:"blockQuote",tokenize:Ev};function Ev(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 Oe(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(f))}}function Tv(n,a,i){const u=this;return s;function s(f){return Oe(f)?He(n,c,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):c(f)}function c(f){return n.attempt(A0,a,i)(f)}}function Cv(n){n.exit("blockQuote")}const _0={name:"characterEscape",tokenize:Nv};function Nv(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 mv(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):i(c)}}const O0={name:"characterReference",tokenize:jv};function jv(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=wt,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=dv,y):(n.enter("characterReferenceValue"),c=7,f=hc,y(g))}function y(g){if(g===59&&s){const S=n.exit("characterReferenceValue");return f===wt&&!_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:Av},bp={concrete:!0,name:"codeFenced",tokenize:Mv};function Mv(n,a,i){const u=this,s={partial:!0,tokenize:ie};let c=0,f=0,d;return p;function p(O){return m(O)}function m(O){const I=u.events[u.events.length-1];return c=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[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"),Oe(O)?He(n,g,"whitespace")(O):g(O))}function g(O){return O===null||ve(O)?(n.exit("codeFencedFence"),u.interrupt?a(O):n.check(yp,j,W)(O)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),S(O))}function S(O){return O===null||ve(O)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),g(O)):Oe(O)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),He(n,v,"whitespace")(O)):O===96&&O===d?i(O):(n.consume(O),S)}function v(O){return O===null||ve(O)?g(O):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),w(O))}function w(O){return O===null||ve(O)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),g(O)):O===96&&O===d?i(O):(n.consume(O),w)}function j(O){return n.attempt(s,W,L)(O)}function L(O){return n.enter("lineEnding"),n.consume(O),n.exit("lineEnding"),M}function M(O){return c>0&&Oe(O)?He(n,q,"linePrefix",c+1)(O):q(O)}function q(O){return O===null||ve(O)?n.check(yp,j,W)(O):(n.enter("codeFlowValue"),_(O))}function _(O){return O===null||ve(O)?(n.exit("codeFlowValue"),q(O)):(n.consume(O),_)}function W(O){return n.exit("codeFenced"),a(O)}function ie(O,I,se){let me=0;return B;function B($){return O.enter("lineEnding"),O.consume($),O.exit("lineEnding"),ne}function ne($){return O.enter("codeFencedFence"),Oe($)?He(O,P,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):P($)}function P($){return $===d?(O.enter("codeFencedFenceSequence"),pe($)):se($)}function pe($){return $===d?(me++,O.consume($),pe):me>=f?(O.exit("codeFencedFenceSequence"),Oe($)?He(O,ue,"whitespace")($):ue($)):se($)}function ue($){return $===null||ve($)?(O.exit("codeFencedFence"),I($)):se($)}}}function Av(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:Ov},_v={partial:!0,tokenize:Dv};function Ov(n,a,i){const u=this;return s;function s(m){return n.enter("codeIndented"),He(n,c,"linePrefix",5)(m)}function c(m){const 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):ve(m)?n.attempt(_v,f,p)(m):(n.enter("codeFlowValue"),d(m))}function d(m){return m===null||ve(m)?(n.exit("codeFlowValue"),f(m)):(n.consume(m),d)}function p(m){return n.exit("codeIndented"),a(m)}}function Dv(n,a,i){const u=this;return s;function s(f){return u.parser.lazy[u.now().line]?i(f):ve(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),s):He(n,c,"linePrefix",5)(f)}function c(f){const d=u.events[u.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(f):ve(f)?s(f):i(f)}}const Rv={name:"codeText",previous:Uv,resolve:Lv,tokenize:Bv};function Lv(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 Uv(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Bv(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)):ve(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||ve(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 Hv{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&&Ra(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),Ra(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Ra(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);Ra(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Ra(this.left,i.reverse())}}}function Ra(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 D0(n){const a={};let i=-1,u,s,c,f,d,p,m;const y=new Hv(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,qv(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 Kt(n,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function qv(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,j=0;const L=[j];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&&(j=S+1,L.push(j),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(f.events=[],v?(v._tokenizer=void 0,v.previous=void 0):L.pop(),S=L.length;S--;){const M=d.slice(L[S],L[S+1]),q=c.pop();p.push([q,q+M.length-1]),n.splice(q,2,M)}for(p.reverse(),S=-1;++S<p.length;)m[w+p[S][0]]=w+p[S][1],w+=p[S][1]-p[S][0]-1;return m}const Yv={resolve:Xv,tokenize:Gv},Vv={partial:!0,tokenize:Qv};function Xv(n){return D0(n),n}function Gv(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):ve(d)?n.check(Vv,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 Qv(n,a,i){const u=this;return s;function s(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),He(n,c,"linePrefix")}function c(f){if(f===null||ve(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 R0(n,a,i,u,s,c,f,d,p){const m=p||Number.POSITIVE_INFINITY;let y=0;return g;function g(M){return M===60?(n.enter(u),n.enter(s),n.enter(c),n.consume(M),n.exit(c),S):M===null||M===32||M===41||du(M)?i(M):(n.enter(u),n.enter(f),n.enter(d),n.enter("chunkString",{contentType:"string"}),j(M))}function S(M){return M===62?(n.enter(c),n.consume(M),n.exit(c),n.exit(s),n.exit(u),a):(n.enter(d),n.enter("chunkString",{contentType:"string"}),v(M))}function v(M){return M===62?(n.exit("chunkString"),n.exit(d),S(M)):M===null||M===60||ve(M)?i(M):(n.consume(M),M===92?w:v)}function w(M){return M===60||M===62||M===92?(n.consume(M),v):v(M)}function j(M){return!y&&(M===null||M===41||We(M))?(n.exit("chunkString"),n.exit(d),n.exit(f),n.exit(u),a(M)):y<m&&M===40?(n.consume(M),y++,j):M===41?(n.consume(M),y--,j):M===null||M===32||M===40||du(M)?i(M):(n.consume(M),M===92?L:j)}function L(M){return M===40||M===41||M===92?(n.consume(M),j):j(M)}}function L0(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):ve(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||ve(v)||d++>999?(n.exit("chunkString"),y(v)):(n.consume(v),p||(p=!Oe(v)),v===92?S:g)}function S(v){return v===91||v===92||v===93?(n.consume(v),d++,g):g(v)}}function U0(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):ve(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),He(n,m,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===f||S===null||ve(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 Ba(n,a){let i;return u;function u(s){return ve(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),i=!0,u):Oe(s)?He(n,u,i?"linePrefix":"lineSuffix")(s):a(s)}}const Fv={name:"definition",tokenize:Jv},Zv={partial:!0,tokenize:Kv};function Jv(n,a,i){const u=this;let s;return c;function c(v){return n.enter("definition"),f(v)}function f(v){return L0.call(u,n,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function d(v){return s=dn(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 We(v)?Ba(n,m)(v):m(v)}function m(v){return R0(n,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function y(v){return n.attempt(Zv,g,g)(v)}function g(v){return Oe(v)?He(n,S,"whitespace")(v):S(v)}function S(v){return v===null||ve(v)?(n.exit("definition"),u.parser.defined.push(s),a(v)):i(v)}}function Kv(n,a,i){return u;function u(d){return We(d)?Ba(n,s)(d):i(d)}function s(d){return U0(n,c,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function c(d){return Oe(d)?He(n,f,"whitespace")(d):f(d)}function f(d){return d===null||ve(d)?a(d):i(d)}}const Iv={name:"hardBreakEscape",tokenize:$v};function $v(n,a,i){return u;function u(c){return n.enter("hardBreakEscape"),n.consume(c),s}function s(c){return ve(c)?(n.exit("hardBreakEscape"),a(c)):i(c)}}const Wv={name:"headingAtx",resolve:Pv,tokenize:e2};function Pv(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"},Kt(n,u,i-u+1,[["enter",s,a],["enter",c,a],["exit",c,a],["exit",s,a]])),n}function e2(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||We(y)?(n.exit("atxHeadingSequence"),d(y)):i(y)}function d(y){return y===35?(n.enter("atxHeadingSequence"),p(y)):y===null||ve(y)?(n.exit("atxHeading"),a(y)):Oe(y)?He(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||We(y)?(n.exit("atxHeadingText"),d(y)):(n.consume(y),m)}}const t2=["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"],n2={concrete:!0,name:"htmlFlow",resolveTo:a2,tokenize:r2},l2={partial:!0,tokenize:s2},i2={partial:!0,tokenize:u2};function a2(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 r2(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,j):k===63?(n.consume(k),s=3,u.interrupt?a:E):jt(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):jt(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 re="CDATA[";return k===re.charCodeAt(d++)?(n.consume(k),d===re.length?u.interrupt?a:P:w):i(k)}function j(k){return jt(k)?(n.consume(k),f=String.fromCharCode(k),L):i(k)}function L(k){if(k===null||k===47||k===62||We(k)){const re=k===47,xe=f.toLowerCase();return!re&&!c&&vp.includes(xe)?(s=1,u.interrupt?a(k):P(k)):t2.includes(f.toLowerCase())?(s=6,re?(n.consume(k),M):u.interrupt?a(k):P(k)):(s=7,u.interrupt&&!u.parser.lazy[u.now().line]?i(k):c?q(k):_(k))}return k===45||wt(k)?(n.consume(k),f+=String.fromCharCode(k),L):i(k)}function M(k){return k===62?(n.consume(k),u.interrupt?a:P):i(k)}function q(k){return Oe(k)?(n.consume(k),q):B(k)}function _(k){return k===47?(n.consume(k),B):k===58||k===95||jt(k)?(n.consume(k),W):Oe(k)?(n.consume(k),_):B(k)}function W(k){return k===45||k===46||k===58||k===95||wt(k)?(n.consume(k),W):ie(k)}function ie(k){return k===61?(n.consume(k),O):Oe(k)?(n.consume(k),ie):_(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,I):Oe(k)?(n.consume(k),O):se(k)}function I(k){return k===p?(n.consume(k),p=null,me):k===null||ve(k)?i(k):(n.consume(k),I)}function se(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||We(k)?ie(k):(n.consume(k),se)}function me(k){return k===47||k===62||Oe(k)?_(k):i(k)}function B(k){return k===62?(n.consume(k),ne):i(k)}function ne(k){return k===null||ve(k)?P(k):Oe(k)?(n.consume(k),ne):i(k)}function P(k){return k===45&&s===2?(n.consume(k),U):k===60&&s===1?(n.consume(k),K):k===62&&s===4?(n.consume(k),C):k===63&&s===3?(n.consume(k),E):k===93&&s===5?(n.consume(k),we):ve(k)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(l2,V,pe)(k)):k===null||ve(k)?(n.exit("htmlFlowData"),pe(k)):(n.consume(k),P)}function pe(k){return n.check(i2,ue,V)(k)}function ue(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),$}function $(k){return k===null||ve(k)?pe(k):(n.enter("htmlFlowData"),P(k))}function U(k){return k===45?(n.consume(k),E):P(k)}function K(k){return k===47?(n.consume(k),f="",oe):P(k)}function oe(k){if(k===62){const re=f.toLowerCase();return vp.includes(re)?(n.consume(k),C):P(k)}return jt(k)&&f.length<8?(n.consume(k),f+=String.fromCharCode(k),oe):P(k)}function we(k){return k===93?(n.consume(k),E):P(k)}function E(k){return k===62?(n.consume(k),C):k===45&&s===2?(n.consume(k),E):P(k)}function C(k){return k===null||ve(k)?(n.exit("htmlFlowData"),V(k)):(n.consume(k),C)}function V(k){return n.exit("htmlFlow"),a(k)}}function u2(n,a,i){const u=this;return s;function s(f){return ve(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 s2(n,a,i){return u;function u(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(Ga,a,i)}}const o2={name:"htmlText",tokenize:c2};function c2(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),ie):E===63?(n.consume(E),_):jt(E)?(n.consume(E),se):i(E)}function m(E){return E===45?(n.consume(E),y):E===91?(n.consume(E),c=0,w):jt(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):ve(E)?(f=g,K(E)):(n.consume(E),g)}function S(E){return E===45?(n.consume(E),v):g(E)}function v(E){return E===62?U(E):E===45?S(E):g(E)}function w(E){const C="CDATA[";return E===C.charCodeAt(c++)?(n.consume(E),c===C.length?j:w):i(E)}function j(E){return E===null?i(E):E===93?(n.consume(E),L):ve(E)?(f=j,K(E)):(n.consume(E),j)}function L(E){return E===93?(n.consume(E),M):j(E)}function M(E){return E===62?U(E):E===93?(n.consume(E),M):j(E)}function q(E){return E===null||E===62?U(E):ve(E)?(f=q,K(E)):(n.consume(E),q)}function _(E){return E===null?i(E):E===63?(n.consume(E),W):ve(E)?(f=_,K(E)):(n.consume(E),_)}function W(E){return E===62?U(E):_(E)}function ie(E){return jt(E)?(n.consume(E),O):i(E)}function O(E){return E===45||wt(E)?(n.consume(E),O):I(E)}function I(E){return ve(E)?(f=I,K(E)):Oe(E)?(n.consume(E),I):U(E)}function se(E){return E===45||wt(E)?(n.consume(E),se):E===47||E===62||We(E)?me(E):i(E)}function me(E){return E===47?(n.consume(E),U):E===58||E===95||jt(E)?(n.consume(E),B):ve(E)?(f=me,K(E)):Oe(E)?(n.consume(E),me):U(E)}function B(E){return E===45||E===46||E===58||E===95||wt(E)?(n.consume(E),B):ne(E)}function ne(E){return E===61?(n.consume(E),P):ve(E)?(f=ne,K(E)):Oe(E)?(n.consume(E),ne):me(E)}function P(E){return E===null||E===60||E===61||E===62||E===96?i(E):E===34||E===39?(n.consume(E),s=E,pe):ve(E)?(f=P,K(E)):Oe(E)?(n.consume(E),P):(n.consume(E),ue)}function pe(E){return E===s?(n.consume(E),s=void 0,$):E===null?i(E):ve(E)?(f=pe,K(E)):(n.consume(E),pe)}function ue(E){return E===null||E===34||E===39||E===60||E===61||E===96?i(E):E===47||E===62||We(E)?me(E):(n.consume(E),ue)}function $(E){return E===47||E===62||We(E)?me(E):i(E)}function U(E){return E===62?(n.consume(E),n.exit("htmlTextData"),n.exit("htmlText"),a):i(E)}function K(E){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),oe}function oe(E){return Oe(E)?He(n,we,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):we(E)}function we(E){return n.enter("htmlTextData"),f(E)}}const Oc={name:"labelEnd",resolveAll:m2,resolveTo:p2,tokenize:g2},f2={tokenize:x2},h2={tokenize:y2},d2={tokenize:b2};function m2(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&&Kt(n,0,n.length,i),n}function p2(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=sn(d,n.slice(c+1,c+u+3)),d=sn(d,[["enter",y,a]]),d=sn(d,bu(a.parser.constructs.insideSpan.null,n.slice(c+u+4,f-3),a)),d=sn(d,[["exit",y,a],n[f-2],n[f-1],["exit",m,a]]),d=sn(d,n.slice(f+1)),d=sn(d,[["exit",p,a]]),Kt(n,c,n.length,d),n}function g2(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(dn(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(f2,y,f?y:g)(S):S===91?n.attempt(h2,y,f?m:g)(S):f?y(S):g(S)}function m(S){return n.attempt(d2,y,g)(S)}function y(S){return a(S)}function g(S){return c._balanced=!0,i(S)}}function x2(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 We(g)?Ba(n,c)(g):c(g)}function c(g){return g===41?y(g):R0(n,f,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function f(g){return We(g)?Ba(n,p)(g):y(g)}function d(g){return i(g)}function p(g){return g===34||g===39||g===40?U0(n,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function m(g){return We(g)?Ba(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 y2(n,a,i){const u=this;return s;function s(d){return L0.call(u,n,c,f,"reference","referenceMarker","referenceString")(d)}function c(d){return u.parser.defined.includes(dn(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?a(d):i(d)}function f(d){return i(d)}}function b2(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 v2={name:"labelStartImage",resolveAll:Oc.resolveAll,tokenize:S2};function S2(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 z2={name:"labelStartLink",resolveAll:Oc.resolveAll,tokenize:k2};function k2(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:w2};function w2(n,a){return i;function i(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),He(n,a,"linePrefix")}}const cu={name:"thematicBreak",tokenize:E2};function E2(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||ve(m))?(n.exit("thematicBreak"),a(m)):i(m)}function p(m){return m===s?(n.consume(m),u++,p):(n.exit("thematicBreakSequence"),Oe(m)?He(n,d,"whitespace")(m):d(m))}}const Bt={continuation:{tokenize:j2},exit:A2,name:"list",tokenize:N2},T2={partial:!0,tokenize:_2},C2={partial:!0,tokenize:M2};function N2(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(cu,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(Ga,u.interrupt?i:y,n.attempt(T2,S,g))}function y(v){return u.containerState.initialBlankLine=!0,c++,S(v)}function g(v){return Oe(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 j2(n,a,i){const u=this;return u.containerState._closeFlow=void 0,n.check(Ga,s,c);function s(d){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,He(n,a,"listItemIndent",u.containerState.size+1)(d)}function c(d){return u.containerState.furtherBlankLines||!Oe(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(C2,a,f)(d))}function f(d){return u.containerState._closeFlow=!0,u.interrupt=void 0,He(n,n.attempt(Bt,a,i),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function M2(n,a,i){const u=this;return He(n,s,"listItemIndent",u.containerState.size+1);function s(c){const f=u.events[u.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===u.containerState.size?a(c):i(c)}}function A2(n){n.exit(this.containerState.type)}function _2(n,a,i){const u=this;return He(n,s,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(c){const f=u.events[u.events.length-1];return!Oe(c)&&f&&f[1].type==="listItemPrefixWhitespace"?a(c):i(c)}}const Sp={name:"setextUnderline",resolveTo:O2,tokenize:D2};function O2(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 D2(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"),Oe(m)?He(n,p,"lineSuffix")(m):p(m))}function p(m){return m===null||ve(m)?(n.exit("setextHeadingLine"),a(m)):i(m)}}const R2={tokenize:L2};function L2(n){const a=this,i=n.attempt(Ga,u,n.attempt(this.parser.constructs.flowInitial,s,He(n,n.attempt(this.parser.constructs.flow,s,n.attempt(Yv,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 U2={resolveAll:H0()},B2=B0("string"),H2=B0("text");function B0(n){return{resolveAll:H0(n==="text"?q2: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 H0(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 q2(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 Y2={42:Bt,43:Bt,45:Bt,48:Bt,49:Bt,50:Bt,51:Bt,52:Bt,53:Bt,54:Bt,55:Bt,56:Bt,57:Bt,62:A0},V2={91:Fv},X2={[-2]:Qo,[-1]:Qo,32:Qo},G2={35:Wv,42:cu,45:[Sp,cu],60:n2,61:Sp,95:cu,96:bp,126:bp},Q2={38:O0,92:_0},F2={[-5]:Fo,[-4]:Fo,[-3]:Fo,33:v2,38:O0,42:dc,60:[zv,o2],91:z2,92:[Iv,_0],93:Oc,95:dc,96:Rv},Z2={null:[dc,U2]},J2={null:[42,95]},K2={null:[]},I2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:J2,contentInitial:V2,disable:K2,document:Y2,flow:G2,flowInitial:X2,insideSpan:Z2,string:Q2,text:F2},Symbol.toStringTag,{value:"Module"}));function $2(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:I(ie),check:I(O),consume:q,enter:_,exit:W,interrupt:I(O,{interrupt:!0})},m={code:null,containerState:{},defineSkip:j,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(ne){return f=sn(f,ne),L(),f[f.length-1]!==null?[]:(se(a,0),m.events=bu(c,m.events,m),m.events)}function S(ne,P){return P2(v(ne),P)}function v(ne){return W2(f,ne)}function w(){const{_bufferIndex:ne,_index:P,line:pe,column:ue,offset:$}=u;return{_bufferIndex:ne,_index:P,line:pe,column:ue,offset:$}}function j(ne){s[ne.line]=ne.column,B()}function L(){let ne;for(;u._index<f.length;){const P=f[u._index];if(typeof P=="string")for(ne=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===ne&&u._bufferIndex<P.length;)M(P.charCodeAt(u._bufferIndex));else M(P)}}function M(ne){y=y(ne)}function q(ne){ve(ne)?(u.line++,u.column=1,u.offset+=ne===-3?2:1,B()):ne!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===f[u._index].length&&(u._bufferIndex=-1,u._index++)),m.previous=ne}function _(ne,P){const pe=P||{};return pe.type=ne,pe.start=w(),m.events.push(["enter",pe,m]),d.push(pe),pe}function W(ne){const P=d.pop();return P.end=w(),m.events.push(["exit",P,m]),P}function ie(ne,P){se(ne,P.from)}function O(ne,P){P.restore()}function I(ne,P){return pe;function pe(ue,$,U){let K,oe,we,E;return Array.isArray(ue)?V(ue):"tokenize"in ue?V([ue]):C(ue);function C(ge){return ae;function ae(he){const ze=he!==null&&ge[he],je=he!==null&&ge.null,Xe=[...Array.isArray(ze)?ze:ze?[ze]:[],...Array.isArray(je)?je:je?[je]:[]];return V(Xe)(he)}}function V(ge){return K=ge,oe=0,ge.length===0?U:k(ge[oe])}function k(ge){return ae;function ae(he){return E=me(),we=ge,ge.partial||(m.currentConstruct=ge),ge.name&&m.parser.constructs.disable.null.includes(ge.name)?xe():ge.tokenize.call(P?Object.assign(Object.create(m),P):m,p,re,xe)(he)}}function re(ge){return ne(we,E),$}function xe(ge){return E.restore(),++oe<K.length?k(K[oe]):U}}}function se(ne,P){ne.resolveAll&&!c.includes(ne)&&c.push(ne),ne.resolve&&Kt(m.events,P,m.events.length-P,ne.resolve(m.events.slice(P),m)),ne.resolveTo&&(m.events=ne.resolveTo(m.events,m))}function me(){const ne=w(),P=m.previous,pe=m.currentConstruct,ue=m.events.length,$=Array.from(d);return{from:ue,restore:U};function U(){u=ne,m.previous=P,m.currentConstruct=pe,m.events.length=ue,d=$,B()}}function B(){u.line in s&&u.column<2&&(u.column=s[u.line],u.offset+=s[u.line]-1)}}function W2(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 P2(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 eS(n){const u={constructs:j0([I2,...(n||{}).extensions||[]]),content:s(pv),defined:[],document:s(xv),flow:s(R2),lazy:{},string:s(B2),text:s(H2)};return u;function s(c){return f;function f(d){return $2(u,c,d)}}}function tS(n){for(;!D0(n););return n}const zp=/[\0\t\n\r]/g;function nS(){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 lS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function iS(n){return n.replace(lS,aS)}function aS(n,a,i){if(a)return a;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),c=s===120||s===88;return M0(i.slice(c?2:1),c?16:10)}return _c(i)||n}const q0={}.hasOwnProperty;function rS(n,a,i){return typeof a!="string"&&(i=a,a=void 0),uS(i)(tS(eS(i).document().write(nS()(n,a,!0))))}function uS(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Xn),autolinkProtocol:me,autolinkEmail:me,atxHeading:c(Vn),blockQuote:c(je),characterEscape:me,characterReference:me,codeFenced:c(Xe),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:c(Xe,f),codeText:c(dt,f),codeTextData:me,data:me,codeFlowValue:me,definition:c(Tt),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:c(gt),hardBreakEscape:c(vn),hardBreakTrailing:c(vn),htmlFlow:c(Yl,f),htmlFlowData:me,htmlText:c(Yl,f),htmlTextData:me,image:c(Vl),label:f,link:c(Xn),listItem:c(yl),listItemValue:S,listOrdered:c(Gn,g),listUnordered:c(Gn),paragraph:c(Bi),reference:k,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:c(Vn),strong:c(Hi),thematicBreak:c(Xl)},exit:{atxHeading:p(),atxHeadingSequence:ie,autolink:p(),autolinkEmail:ze,autolinkProtocol:he,blockQuote:p(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:ge,characterReference:ae,codeFenced:p(L),codeFencedFence:j,codeFencedFenceInfo:v,codeFencedFenceMeta:w,codeFlowValue:B,codeIndented:p(M),codeText:p($),codeTextData:B,data:B,definition:p(),definitionDestinationString:W,definitionLabelString:q,definitionTitleString:_,emphasis:p(),hardBreakEscape:p(P),hardBreakTrailing:p(P),htmlFlow:p(pe),htmlFlowData:B,htmlText:p(ue),htmlTextData:B,image:p(K),label:we,labelText:oe,lineEnding:ne,link:p(U),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:re,resourceDestinationString:E,resourceTitleString:C,resource:V,setextHeading:p(se),setextHeadingLineSequence:I,setextHeadingText:O,strong:p(),thematicBreak:p()}};Y0(a,(n||{}).mdastExtensions||[]);const i={};return u;function u(G){let le={type:"root",children:[]};const ke={stack:[le],tokenStack:[],config:a,enter:d,exit:m,buffer:f,resume:y,data:i},Me=[];let qe=-1;for(;++qe<G.length;)if(G[qe][1].type==="listOrdered"||G[qe][1].type==="listUnordered")if(G[qe][0]==="enter")Me.push(qe);else{const Ct=Me.pop();qe=s(G,Ct,qe)}for(qe=-1;++qe<G.length;){const Ct=a[G[qe][0]];q0.call(Ct,G[qe][1].type)&&Ct[G[qe][1].type].call(Object.assign({sliceSerialize:G[qe][2].sliceSerialize},ke),G[qe][1])}if(ke.tokenStack.length>0){const Ct=ke.tokenStack[ke.tokenStack.length-1];(Ct[1]||kp).call(ke,void 0,Ct[0])}for(le.position={start:pl(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:pl(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},qe=-1;++qe<a.transforms.length;)le=a.transforms[qe](le)||le;return le}function s(G,le,ke){let Me=le-1,qe=-1,Ct=!1,on,J,te,ce;for(;++Me<=ke;){const be=G[Me];switch(be[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{be[0]==="enter"?qe++:qe--,ce=void 0;break}case"lineEndingBlank":{be[0]==="enter"&&(on&&!ce&&!qe&&!te&&(te=Me),ce=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ce=void 0}if(!qe&&be[0]==="enter"&&be[1].type==="listItemPrefix"||qe===-1&&be[0]==="exit"&&(be[1].type==="listUnordered"||be[1].type==="listOrdered")){if(on){let Be=Me;for(J=void 0;Be--;){const Qe=G[Be];if(Qe[1].type==="lineEnding"||Qe[1].type==="lineEndingBlank"){if(Qe[0]==="exit")continue;J&&(G[J][1].type="lineEndingBlank",Ct=!0),Qe[1].type="lineEnding",J=Be}else if(!(Qe[1].type==="linePrefix"||Qe[1].type==="blockQuotePrefix"||Qe[1].type==="blockQuotePrefixWhitespace"||Qe[1].type==="blockQuoteMarker"||Qe[1].type==="listItemIndent"))break}te&&(!J||te<J)&&(on._spread=!0),on.end=Object.assign({},J?G[J][1].start:be[1].end),G.splice(J||Me,0,["exit",on,be[2]]),Me++,ke++}if(be[1].type==="listItemPrefix"){const Be={type:"listItem",_spread:!1,start:Object.assign({},be[1].start),end:void 0};on=Be,G.splice(Me,0,["enter",Be,be[2]]),Me++,ke++,te=void 0,ce=!0}}}return G[le][1]._spread=Ct,ke}function c(G,le){return ke;function ke(Me){d.call(this,G(Me),Me),le&&le.call(this,Me)}}function f(){this.stack.push({type:"fragment",children:[]})}function d(G,le,ke){this.stack[this.stack.length-1].children.push(G),this.stack.push(G),this.tokenStack.push([le,ke||void 0]),G.position={start:pl(le.start),end:void 0}}function p(G){return le;function le(ke){G&&G.call(this,ke),m.call(this,ke)}}function m(G,le){const ke=this.stack.pop(),Me=this.tokenStack.pop();if(Me)Me[0].type!==G.type&&(le?le.call(this,G,Me[0]):(Me[1]||kp).call(this,G,Me[0]));else throw new Error("Cannot close `"+G.type+"` ("+Ua({start:G.start,end:G.end})+"): it’s not open");ke.position.end=pl(G.end)}function y(){return Ac(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function S(G){if(this.data.expectingFirstListItemValue){const le=this.stack[this.stack.length-2];le.start=Number.parseInt(this.sliceSerialize(G),10),this.data.expectingFirstListItemValue=void 0}}function v(){const G=this.resume(),le=this.stack[this.stack.length-1];le.lang=G}function w(){const G=this.resume(),le=this.stack[this.stack.length-1];le.meta=G}function j(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function L(){const G=this.resume(),le=this.stack[this.stack.length-1];le.value=G.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function M(){const G=this.resume(),le=this.stack[this.stack.length-1];le.value=G.replace(/(\r?\n|\r)$/g,"")}function q(G){const le=this.resume(),ke=this.stack[this.stack.length-1];ke.label=le,ke.identifier=dn(this.sliceSerialize(G)).toLowerCase()}function _(){const G=this.resume(),le=this.stack[this.stack.length-1];le.title=G}function W(){const G=this.resume(),le=this.stack[this.stack.length-1];le.url=G}function ie(G){const le=this.stack[this.stack.length-1];if(!le.depth){const ke=this.sliceSerialize(G).length;le.depth=ke}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function I(G){const le=this.stack[this.stack.length-1];le.depth=this.sliceSerialize(G).codePointAt(0)===61?1:2}function se(){this.data.setextHeadingSlurpLineEnding=void 0}function me(G){const ke=this.stack[this.stack.length-1].children;let Me=ke[ke.length-1];(!Me||Me.type!=="text")&&(Me=xt(),Me.position={start:pl(G.start),end:void 0},ke.push(Me)),this.stack.push(Me)}function B(G){const le=this.stack.pop();le.value+=this.sliceSerialize(G),le.position.end=pl(G.end)}function ne(G){const le=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ke=le.children[le.children.length-1];ke.position.end=pl(G.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(le.type)&&(me.call(this,G),B.call(this,G))}function P(){this.data.atHardBreak=!0}function pe(){const G=this.resume(),le=this.stack[this.stack.length-1];le.value=G}function ue(){const G=this.resume(),le=this.stack[this.stack.length-1];le.value=G}function $(){const G=this.resume(),le=this.stack[this.stack.length-1];le.value=G}function U(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const le=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=le,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function K(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const le=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=le,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function oe(G){const le=this.sliceSerialize(G),ke=this.stack[this.stack.length-2];ke.label=iS(le),ke.identifier=dn(le).toLowerCase()}function we(){const G=this.stack[this.stack.length-1],le=this.resume(),ke=this.stack[this.stack.length-1];if(this.data.inReference=!0,ke.type==="link"){const Me=G.children;ke.children=Me}else ke.alt=le}function E(){const G=this.resume(),le=this.stack[this.stack.length-1];le.url=G}function C(){const G=this.resume(),le=this.stack[this.stack.length-1];le.title=G}function V(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function re(G){const le=this.resume(),ke=this.stack[this.stack.length-1];ke.label=le,ke.identifier=dn(this.sliceSerialize(G)).toLowerCase(),this.data.referenceType="full"}function xe(G){this.data.characterReferenceType=G.type}function ge(G){const le=this.sliceSerialize(G),ke=this.data.characterReferenceType;let Me;ke?(Me=M0(le,ke==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Me=_c(le);const qe=this.stack[this.stack.length-1];qe.value+=Me}function ae(G){const le=this.stack.pop();le.position.end=pl(G.end)}function he(G){B.call(this,G);const le=this.stack[this.stack.length-1];le.url=this.sliceSerialize(G)}function ze(G){B.call(this,G);const le=this.stack[this.stack.length-1];le.url="mailto:"+this.sliceSerialize(G)}function je(){return{type:"blockquote",children:[]}}function Xe(){return{type:"code",lang:null,meta:null,value:""}}function dt(){return{type:"inlineCode",value:""}}function Tt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function gt(){return{type:"emphasis",children:[]}}function Vn(){return{type:"heading",depth:0,children:[]}}function vn(){return{type:"break"}}function Yl(){return{type:"html",value:""}}function Vl(){return{type:"image",title:null,url:"",alt:null}}function Xn(){return{type:"link",title:null,url:"",children:[]}}function Gn(G){return{type:"list",ordered:G.type==="listOrdered",start:null,spread:G._spread,children:[]}}function yl(G){return{type:"listItem",spread:G._spread,checked:null,children:[]}}function Bi(){return{type:"paragraph",children:[]}}function Hi(){return{type:"strong",children:[]}}function xt(){return{type:"text",value:""}}function Xl(){return{type:"thematicBreak"}}}function pl(n){return{line:n.line,column:n.column,offset:n.offset}}function Y0(n,a){let i=-1;for(;++i<a.length;){const u=a[i];Array.isArray(u)?Y0(n,u):sS(n,u)}}function sS(n,a){let i;for(i in a)if(q0.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+"` ("+Ua({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Ua({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Ua({start:a.start,end:a.end})+") is still open")}function oS(n){const a=this;a.parser=i;function i(u){return rS(u,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function cS(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 fS(n,a){const i={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,i),[n.applyData(a,i),{type:"text",value:`
|
|
261
|
-
`}]}function hS(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 dS(n,a){const i={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function mS(n,a){const i={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function pS(n,a){const i=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(a.identifier).toUpperCase(),s=Li(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 gS(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 xS(n,a){if(n.options.allowDangerousHtml){const i={type:"raw",value:a.value};return n.patch(a,i),n.applyData(a,i)}}function V0(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 yS(n,a){const i=String(a.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return V0(n,a);const s={src:Li(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 bS(n,a){const i={src:Li(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 vS(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 SS(n,a){const i=String(a.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return V0(n,a);const s={href:Li(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 zS(n,a){const i={href:Li(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 kS(n,a,i){const u=n.all(a),s=i?wS(i):X0(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 wS(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=X0(i[u])}return a}function X0(n){const a=n.spread;return a??n.children.length>1}function ES(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 TS(n,a){const i={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function CS(n,a){const i={type:"root",children:n.wrap(n.all(a))};return n.patch(a,i),n.applyData(a,i)}function NS(n,a){const i={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function jS(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=z0(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 MS(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 AS(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 _S(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 OS(n,a){const i={type:"text",value:_S(String(a.value))};return n.patch(a,i),n.applyData(a,i)}function DS(n,a){const i={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,i),n.applyData(a,i)}const RS={blockquote:cS,break:fS,code:hS,delete:dS,emphasis:mS,footnoteReference:pS,heading:gS,html:xS,imageReference:yS,image:bS,inlineCode:vS,linkReference:SS,link:zS,listItem:kS,list:ES,paragraph:TS,root:CS,strong:NS,table:jS,tableCell:AS,tableRow:MS,text:OS,thematicBreak:DS,toml:ru,yaml:ru,definition:ru,footnoteDefinition:ru};function ru(){}const G0=-1,vu=0,Ha=1,mu=2,Dc=3,Rc=4,Lc=5,Uc=6,Q0=7,F0=8,Cp=typeof self=="object"?self:globalThis,LS=(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 vu:case G0:return i(f,s);case Ha:{const d=i([],s);for(const p of f)d.push(u(p));return d}case mu:{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 Q0:{const{name:d,message:p}=f;return i(new Cp[d](p),s)}case F0: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=>LS(new Map,n)(0),Mi="",{toString:US}={},{keys:BS}=Object,La=n=>{const a=typeof n;if(a!=="object"||!n)return[vu,a];const i=US.call(n).slice(8,-1);switch(i){case"Array":return[Ha,Mi];case"Object":return[mu,Mi];case"Date":return[Dc,Mi];case"RegExp":return[Rc,Mi];case"Map":return[Lc,Mi];case"Set":return[Uc,Mi];case"DataView":return[Ha,i]}return i.includes("Array")?[Ha,i]:i.includes("Error")?[Q0,i]:[mu,i]},uu=([n,a])=>n===vu&&(a==="function"||a==="symbol"),HS=(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]=La(f);switch(d){case vu:{let y=f;switch(p){case"bigint":d=F0,y=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);y=null;break;case"undefined":return s([G0],f)}return s([d,y],f)}case Ha:{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 mu:{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 BS(f))(n||!uu(La(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||!(uu(La(S))||uu(La(v))))&&y.push([c(S),c(v)]);return g}case Uc:{const y=[],g=s([d,y],f);for(const S of f)(n||!uu(La(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 HS(!(a||i),!!a,new Map,u)(n),u},pu=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 qS(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 YS(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function VS(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=n.options.footnoteBackContent||qS,u=n.options.footnoteBackLabel||YS,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=Li(g.toLowerCase());let v=0;const w=[],j=n.footnoteCounts.get(g);for(;j!==void 0&&++v<=j;){w.length>0&&w.push({type:"text",value:" "});let q=typeof i=="string"?i:i(p,v);typeof q=="string"&&(q={type:"text",value:q}),w.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+S+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(p,v),className:["data-footnote-backref"]},children:Array.isArray(q)?q:[q]})}const 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 M={type:"element",tagName:"li",properties:{id:a+"fn-"+S},children:n.wrap(y,!0)};n.patch(m,M),d.push(M)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...pu(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 Su=(function(n){if(n==null)return FS;if(typeof n=="function")return zu(n);if(typeof n=="object")return Array.isArray(n)?XS(n):GS(n);if(typeof n=="string")return QS(n);throw new Error("Expected function, string, or object as test")});function XS(n){const a=[];let i=-1;for(;++i<n.length;)a[i]=Su(n[i]);return zu(u);function u(...s){let c=-1;for(;++c<a.length;)if(a[c].apply(this,s))return!0;return!1}}function GS(n){const a=n;return zu(i);function i(u){const s=u;let c;for(c in n)if(s[c]!==a[c])return!1;return!0}}function QS(n){return zu(a);function a(i){return i&&i.type===n}}function zu(n){return a;function a(i,u,s){return!!(ZS(i)&&n.call(this,i,typeof u=="number"?u:void 0,s||void 0))}}function FS(){return!0}function ZS(n){return n!==null&&typeof n=="object"&&"type"in n}const Z0=[],JS=!0,mc=!1,KS="skip";function J0(n,a,i,u){let s;typeof a=="function"&&typeof i!="function"?(u=i,i=a):s=a;const c=Su(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=Z0,w,j,L;if((!a||c(p,m,y[y.length-1]||void 0))&&(v=IS(i(p,y)),v[0]===mc))return v;if("children"in p&&p.children){const M=p;if(M.children&&v[0]!==KS)for(j=(u?M.children.length:-1)+f,L=y.concat(M);j>-1&&j<M.children.length;){const q=M.children[j];if(w=d(q,j,L)(),w[0]===mc)return w;j=typeof w[1]=="number"?w[1]:j+f}}return v}}}function IS(n){return Array.isArray(n)?n:typeof n=="number"?[JS,n]:n==null?Z0:[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),J0(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,$S={};function WS(n,a){const i=a||$S,u=new Map,s=new Map,c=new Map,f={...RS,...i.handlers},d={all:m,applyData:ez,definitionById:u,footnoteById:s,footnoteCounts:c,footnoteOrder:[],handlers:f,one:p,options:i,patch:PS,wrap:nz};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:j,...L}=y,M=pu(L);return M.children=d.all(y),M}return pu(y)}return(d.options.unknownHandler||tz)(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=Mp(w.value)),!Array.isArray(w)&&w.type==="element")){const j=w.children[0];j&&j.type==="text"&&(j.value=Mp(j.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function PS(n,a){n.position&&(a.position=Yb(n))}function ez(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,pu(c)),"children"in i&&i.children&&s!==null&&s!==void 0&&(i.children=s)}return i}function tz(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 nz(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 Mp(n){let a=0,i=n.charCodeAt(a);for(;i===9||i===32;)a++,i=n.charCodeAt(a);return n.slice(a)}function Ap(n,a){const i=WS(n,a),u=i.one(n,void 0),s=VS(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 lz(n,a){return n&&"run"in n?async function(i,u){const s=Ap(i,{file:u,...a});await n.run(s,u)}:function(i,u){return Ap(i,{file:u,...n||a})}}function _p(n){if(n)throw n}var Zo,Op;function iz(){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,j=arguments[0],L=1,M=arguments.length,q=!1;for(typeof j=="boolean"&&(q=j,j=arguments[1]||{},L=2),(j==null||typeof j!="object"&&typeof j!="function")&&(j={});L<M;++L)if(m=arguments[L],m!=null)for(y in m)g=d(j,y),S=d(m,y),j!==S&&(q&&S&&(c(S)||(v=s(S)))?(v?(v=!1,w=g&&s(g)?g:[]):w=g&&c(g)?g:{},f(j,{name:y,newValue:p(q,w,S)})):typeof S<"u"&&f(j,{name:y,newValue:S}));return j},Zo}var az=iz();const Jo=Pp(az);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 rz(){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?uz(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 uz(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 yn={basename:sz,dirname:oz,extname:cz,join:fz,sep:"/"};function sz(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Qa(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 oz(n){if(Qa(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 cz(n){Qa(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 fz(...n){let a=-1,i;for(;++a<n.length;)Qa(n[a]),n[a]&&(i=i===void 0?n[a]:i+"/"+n[a]);return i===void 0?".":hz(i)}function hz(n){Qa(n);const a=n.codePointAt(0)===47;let i=dz(n,!a);return i.length===0&&!a&&(i="."),i.length>0&&n.codePointAt(n.length-1)===47&&(i+="/"),a?"/"+i:i}function dz(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 Qa(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const mz={cwd:pz};function pz(){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 gz(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 xz(n)}function xz(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 K0{constructor(a){let i;a?xc(a)?i={path:a}:typeof a=="string"||yz(a)?i={value:a}:i=a:i={},this.cwd="cwd"in i?"":mz.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"?yn.basename(this.path):void 0}set basename(a){$o(a,"basename"),Io(a,"basename"),this.path=yn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?yn.dirname(this.path):void 0}set dirname(a){Dp(this.basename,"dirname"),this.path=yn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?yn.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=yn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){xc(a)&&(a=gz(a)),$o(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?yn.basename(this.path,this.extname):void 0}set stem(a){$o(a,"stem"),Io(a,"stem"),this.path=yn.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 Et(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(yn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+yn.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 yz(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const bz=(function(n){const u=this.constructor.prototype,s=u[n],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,u),c}),vz={}.hasOwnProperty;class Hc extends bz{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=rz()}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):vz.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=su(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=su(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);kz(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=su(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=su(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 j=u[S][1];gc(j)&&gc(v)&&(v=Jo(!0,j,v)),u[S]=[m,v,...w]}}}}const Sz=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 su(n){return zz(n)?n:new K0(n)}function zz(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function kz(n){return typeof n=="string"||wz(n)}function wz(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const Ez="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Up=[],Bp={allowDangerousHtml:!0},Tz=/^(https?|ircs?|mailto|xmpp)$/i,Cz=[{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 Nz(n){const a=jz(n),i=Mz(n);return Az(a.runSync(a.parse(i),i),n)}function jz(n){const a=n.rehypePlugins||Up,i=n.remarkPlugins||Up,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Bp}:Bp;return Sz().use(oS).use(i).use(lz,u).use(a)}function Mz(n){const a=n.children||"",i=new K0;return typeof a=="string"&&(i.value=a),i}function Az(n,a){const i=a.allowedElements,u=a.allowElement,s=a.components,c=a.disallowedElements,f=a.skipHtml,d=a.unwrapDisallowed,p=a.urlTransform||_z;for(const y of Cz)Object.hasOwn(a,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+Ez+y.id,void 0);return Bc(n,m),Fb(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],j=Go[v];(j===null||j.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 _z(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||Tz.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 Oz(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Dz(n,a,i){const s=Su((i||{}).ignore||[]),c=Rz(a);let f=-1;for(;++f<c.length;)J0(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 M=!1,q=[];S.lastIndex=0;let _=S.exec(m.value);for(;_;){const W=_.index,ie={index:_.index,input:_.input,stack:[...y,m]};let O=v(..._,ie);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O===!1?S.lastIndex=W+1:(w!==W&&q.push({type:"text",value:m.value.slice(w,W)}),Array.isArray(O)?q.push(...O):O&&q.push(O),w=W+_[0].length,M=!0),!S.global)break;_=S.exec(m.value)}return M?(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 Rz(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([Lz(s[0]),Uz(s[1])])}return a}function Lz(n){return typeof n=="string"?new RegExp(Oz(n),"g"):n}function Uz(n){return typeof n=="function"?n:function(){return n}}const tc="phrasing",nc=["autolink","link","image","label"];function Bz(){return{transforms:[Qz],enter:{literalAutolink:qz,literalAutolinkEmail:lc,literalAutolinkHttp:lc,literalAutolinkWww:lc},exit:{literalAutolink:Gz,literalAutolinkEmail:Xz,literalAutolinkHttp:Yz,literalAutolinkWww:Vz}}}function Hz(){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 qz(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function lc(n){this.config.enter.autolinkProtocol.call(this,n)}function Yz(n){this.config.exit.autolinkProtocol.call(this,n)}function Vz(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 Xz(n){this.config.exit.autolinkEmail.call(this,n)}function Gz(n){this.exit(n)}function Qz(n){Dz(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Fz],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Zz]],{ignore:["link","linkReference"]})}function Fz(n,a,i,u,s){let c="";if(!I0(s)||(/^w/i.test(a)&&(i=a+i,a="",c="http://"),!Jz(i)))return!1;const f=Kz(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 Zz(n,a,i,u){return!I0(u,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+i,children:[{type:"text",value:a+"@"+i}]}}function Jz(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 Kz(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 I0(n,a){const i=n.input.charCodeAt(n.index-1);return(n.index===0||Hl(i)||yu(i))&&(!a||i!==47)}$0.peek=ik;function Iz(){this.buffer()}function $z(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function Wz(){this.buffer()}function Pz(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function ek(n){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=dn(this.sliceSerialize(n)).toLowerCase(),i.label=a}function tk(n){this.exit(n)}function nk(n){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=dn(this.sliceSerialize(n)).toLowerCase(),i.label=a}function lk(n){this.exit(n)}function ik(){return"["}function $0(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 ak(){return{enter:{gfmFootnoteCallString:Iz,gfmFootnoteCall:$z,gfmFootnoteDefinitionLabelString:Wz,gfmFootnoteDefinition:Pz},exit:{gfmFootnoteCallString:ek,gfmFootnoteCall:tk,gfmFootnoteDefinitionLabelString:nk,gfmFootnoteDefinition:lk}}}function rk(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:i,footnoteReference:$0},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?W0:uk))),m(),p}}function uk(n,a,i){return a===0?n:W0(n,a,i)}function W0(n,a,i){return(i?"":" ")+n}const sk=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];P0.peek=dk;function ok(){return{canContainEols:["delete"],enter:{strikethrough:fk},exit:{strikethrough:hk}}}function ck(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:sk}],handlers:{delete:P0}}}function fk(n){this.enter({type:"delete",children:[]},n)}function hk(n){this.exit(n)}function P0(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 dk(){return"~"}function mk(n){return n.length}function pk(n,a){const i=a||{},u=(i.align||[]).concat(),s=i.stringLength||mk,c=[],f=[],d=[],p=[];let m=0,y=-1;for(;++y<n.length;){const j=[],L=[];let M=-1;for(n[y].length>m&&(m=n[y].length);++M<n[y].length;){const q=gk(n[y][M]);if(i.alignDelimiters!==!1){const _=s(q);L[M]=_,(p[M]===void 0||_>p[M])&&(p[M]=_)}j.push(q)}f[y]=j,d[y]=L}let g=-1;if(typeof u=="object"&&"length"in u)for(;++g<m;)c[g]=qp(u[g]);else{const j=qp(u);for(;++g<m;)c[g]=j}g=-1;const S=[],v=[];for(;++g<m;){const j=c[g];let L="",M="";j===99?(L=":",M=":"):j===108?L=":":j===114&&(M=":");let q=i.alignDelimiters===!1?1:Math.max(1,p[g]-L.length-M.length);const _=L+"-".repeat(q)+M;i.alignDelimiters!==!1&&(q=L.length+q+M.length,q>p[g]&&(p[g]=q),v[g]=q),S[g]=_}f.splice(1,0,S),d.splice(1,0,v),y=-1;const w=[];for(;++y<f.length;){const j=f[y],L=d[y];g=-1;const M=[];for(;++g<m;){const q=j[g]||"";let _="",W="";if(i.alignDelimiters!==!1){const ie=p[g]-(L[g]||0),O=c[g];O===114?_=" ".repeat(ie):O===99?ie%2?(_=" ".repeat(ie/2+.5),W=" ".repeat(ie/2-.5)):(_=" ".repeat(ie/2),W=_):W=" ".repeat(ie)}i.delimiterStart!==!1&&!g&&M.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&q==="")&&(i.delimiterStart!==!1||g)&&M.push(" "),i.alignDelimiters!==!1&&M.push(_),M.push(q),i.alignDelimiters!==!1&&M.push(W),i.padding!==!1&&M.push(" "),(i.delimiterEnd!==!1||g!==m-1)&&M.push("|")}w.push(i.delimiterEnd===!1?M.join("").replace(/ +$/,""):M.join(""))}return w.join(`
|
|
272
|
-
`)}function gk(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 xk(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()),yk);return s(),f}function yk(n,a,i){return">"+(i?"":" ")+n}function bk(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
|
-
`&&bk(i.stack,i.unsafe[s]))return/[ \t]/.test(u.before)?"":" ";return`\\
|
|
274
|
-
`}function vk(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 Sk(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 zk(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 kk(n,a,i,u){const s=zk(i),c=n.value||"",f=s==="`"?"GraveAccent":"Tilde";if(Sk(n,i)){const g=i.enter("codeIndented"),S=i.indentLines(c,wk);return g(),S}const d=i.createTracker(u),p=s.repeat(Math.max(vk(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 wk(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 Ek(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 Tk(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 Va(n){return"&#x"+n.toString(16).toUpperCase()+";"}function gu(n,a,i){const u=Di(n),s=Di(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}}eg.peek=Ck;function eg(n,a,i,u){const s=Tk(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=gu(u.before.charCodeAt(u.before.length-1),m,s);y.inside&&(p=Va(m)+p.slice(1));const g=p.charCodeAt(p.length-1),S=gu(u.after.charCodeAt(0),g,s);S.inside&&(p=p.slice(0,-1)+Va(g));const v=f.move(s);return c(),i.attentionEncodeSurroundingInfo={after:S.outside,before:y.outside},d+p+v}function Ck(n,a,i){return i.options.emphasis||"*"}function Nk(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)&&Ac(n)&&(a.options.setext||i))}function jk(n,a,i,u){const s=Math.max(Math.min(6,n.depth||1),1),c=i.createTracker(u);if(Nk(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=Va(m.charCodeAt(0))+m.slice(1)),m=m?f+" "+m:f,i.options.closeAtx&&(m+=" "+f),p(),d(),m}tg.peek=Mk;function tg(n){return n.value||""}function Mk(){return"<"}ng.peek=Ak;function ng(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 Ak(){return"!"}lg.peek=_k;function lg(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 _k(){return"!"}ig.peek=Ok;function ig(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 Ok(){return"`"}function ag(n,a){const i=Ac(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))}rg.peek=Dk;function rg(n,a,i,u){const s=qc(i),c=s==='"'?"Quote":"Apostrophe",f=i.createTracker(u);let d,p;if(ag(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 Dk(n,a,i){return ag(n,i)?"<":"["}ug.peek=Rk;function ug(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 Rk(){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 Lk(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 Uk(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 sg(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 Bk(n,a,i,u){const s=i.enter("list"),c=i.bulletCurrent;let f=n.ordered?Uk(i):Yc(i);const d=n.ordered?f==="."?")":".":Lk(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),sg(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 Hk(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 qk(n,a,i,u){const s=Hk(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 Yk(n,a,i,u){const s=i.enter("paragraph"),c=i.enter("phrasing"),f=i.containerPhrasing(n,u);return c(),s(),f}const Vk=Su(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Xk(n,a,i,u){return(n.children.some(function(f){return Vk(f)})?i.containerPhrasing:i.containerFlow).call(i,n,u)}function Gk(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}og.peek=Qk;function og(n,a,i,u){const s=Gk(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=gu(u.before.charCodeAt(u.before.length-1),m,s);y.inside&&(p=Va(m)+p.slice(1));const g=p.charCodeAt(p.length-1),S=gu(u.after.charCodeAt(0),g,s);S.inside&&(p=p.slice(0,-1)+Va(g));const v=f.move(s+s);return c(),i.attentionEncodeSurroundingInfo={after:S.outside,before:y.outside},d+p+v}function Qk(n,a,i){return i.options.strong||"*"}function Fk(n,a,i,u){return i.safe(n.value,u)}function Zk(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 Jk(n,a,i){const u=(sg(i)+(i.options.ruleSpaces?" ":"")).repeat(Zk(i));return i.options.ruleSpaces?u.slice(0,-1):u}const cg={blockquote:xk,break:Vp,code:kk,definition:Ek,emphasis:eg,hardBreak:Vp,heading:jk,html:tg,image:ng,imageReference:lg,inlineCode:ig,link:rg,linkReference:ug,list:Bk,listItem:qk,paragraph:Yk,root:Xk,strong:og,text:Fk,thematicBreak:Jk};function Kk(){return{enter:{table:Ik,tableData:Xp,tableHeader:Xp,tableRow:Wk},exit:{codeText:Pk,table:$k,tableData:ic,tableHeader:ic,tableRow:ic}}}function Ik(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 $k(n){this.exit(n),this.data.inTable=void 0}function Wk(n){this.enter({type:"tableRow",children:[]},n)}function ic(n){this.exit(n)}function Xp(n){this.enter({type:"tableCell",children:[]},n)}function Pk(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,ew));const i=this.stack[this.stack.length-1];i.type,i.value=a,this.exit(n)}function ew(n,a){return a==="|"?a:n}function tw(n){const a=n||{},i=a.tableCellPadding,u=a.tablePipeAlign,s=a.stringLength,c=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
284
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:S,table:f,tableCell:p,tableRow:d}};function f(v,w,j,L){return m(y(v,j,L),v.align)}function d(v,w,j,L){const M=g(v,j,L),q=m([M]);return q.slice(0,q.indexOf(`
|
|
285
|
-
`))}function p(v,w,j,L){const M=j.enter("tableCell"),q=j.enter("phrasing"),_=j.containerPhrasing(v,{...L,before:c,after:c});return q(),M(),_}function m(v,w){return pk(v,{align:w,alignDelimiters:u,padding:i,stringLength:s})}function y(v,w,j){const L=v.children;let M=-1;const q=[],_=w.enter("table");for(;++M<L.length;)q[M]=g(L[M],w,j);return _(),q}function g(v,w,j){const L=v.children;let M=-1;const q=[],_=w.enter("tableRow");for(;++M<L.length;)q[M]=p(L[M],v,w,j);return _(),q}function S(v,w,j){let L=cg.inlineCode(v,w,j);return j.stack.includes("tableCell")&&(L=L.replace(/\|/g,"\\$&")),L}}function nw(){return{exit:{taskListCheckValueChecked:Gp,taskListCheckValueUnchecked:Gp,paragraph:iw}}}function lw(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:aw}}}function Gp(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function iw(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 aw(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=cg.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 rw(){return[Bz(),ak(),ok(),Kk(),nw()]}function uw(n){return{extensions:[Hz(),rk(n),ck(),tw(n),lw()]}}const sw={tokenize:mw,partial:!0},fg={tokenize:pw,partial:!0},hg={tokenize:gw,partial:!0},dg={tokenize:xw,partial:!0},ow={tokenize:yw,partial:!0},mg={name:"wwwAutolink",tokenize:hw,previous:gg},pg={name:"protocolAutolink",tokenize:dw,previous:xg},Yn={name:"emailAutolink",tokenize:fw,previous:yg},bn={};function cw(){return{text:bn}}let Bl=48;for(;Bl<123;)bn[Bl]=Yn,Bl++,Bl===58?Bl=65:Bl===91&&(Bl=97);bn[43]=Yn;bn[45]=Yn;bn[46]=Yn;bn[95]=Yn;bn[72]=[Yn,pg];bn[104]=[Yn,pg];bn[87]=[Yn,mg];bn[119]=[Yn,mg];function fw(n,a,i){const u=this;let s,c;return f;function f(g){return!yc(g)||!yg.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(ow,y,m)(g):g===45||g===95||wt(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&&jt(u.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(g)):i(g)}}function hw(n,a,i){const u=this;return s;function s(f){return f!==87&&f!==119||!gg.call(u,u.previous)||Vc(u.events)?i(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(sw,n.attempt(fg,n.attempt(hg,c),i),i)(f))}function c(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(f)}}function dw(n,a,i){const u=this;let s="",c=!1;return f;function f(g){return(g===72||g===104)&&xg.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(jt(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||du(g)||We(g)||Hl(g)||yu(g)?i(g):n.attempt(fg,n.attempt(hg,y),i)(g)}function y(g){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(g)}}function mw(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 pw(n,a,i){let u,s,c;return f;function f(m){return m===46||m===95?n.check(dg,p,d)(m):m===null||We(m)||Hl(m)||m!==45&&yu(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 gw(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(dg,a,c)(f):f===null||We(f)||Hl(f)?a(f):(n.consume(f),s)}function c(f){return f===41&&u++,n.consume(f),s}}function xw(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||We(d)||Hl(d)?a(d):i(d)}function s(d){return d===null||d===40||d===91||We(d)||Hl(d)?a(d):u(d)}function c(d){return jt(d)?f(d):i(d)}function f(d){return d===59?(n.consume(d),u):jt(d)?(n.consume(d),f):i(d)}}function yw(n,a,i){return u;function u(c){return n.consume(c),s}function s(c){return wt(c)?i(c):a(c)}}function gg(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||We(n)}function xg(n){return!jt(n)}function yg(n){return!(n===47||yc(n))}function yc(n){return n===43||n===45||n===46||n===95||wt(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 bw={tokenize:Cw,partial:!0};function vw(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ww,continuation:{tokenize:Ew},exit:Tw}},text:{91:{name:"gfmFootnoteCall",tokenize:kw},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Sw,resolveTo:zw}}}}function Sw(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=dn(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 zw(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 kw(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||We(g))return i(g);if(g===93){n.exit("chunkString");const S=n.exit("gfmFootnoteCallString");return s.includes(dn(u.sliceSerialize(S)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):i(g)}return We(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 ww(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||We(w))return i(w);if(w===93){n.exit("chunkString");const j=n.exit("gfmFootnoteDefinitionLabelString");return c=dn(u.sliceSerialize(j)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(w),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),S}return We(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),He(n,v,"gfmFootnoteDefinitionWhitespace")):i(w)}function v(w){return a(w)}}function Ew(n,a,i){return n.check(Ga,a,n.attempt(bw,a,i))}function Tw(n){n.exit("gfmFootnoteDefinition")}function Cw(n,a,i){const u=this;return He(n,s,"gfmFootnoteDefinitionIndent",5);function s(c){const f=u.events[u.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?a(c):i(c)}}function Nw(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&&Kt(S,S.length,0,bu(v,f.slice(m+1,p),d)),Kt(S,S.length,0,[["exit",g,d],["enter",f[p][1],d],["exit",f[p][1],d],["exit",y,d]]),Kt(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 j=Di(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"),M=Di(w);return L._open=!M||M===2&&!!j,L._close=!j||j===2&&!!M,d(w)}}}class jw{constructor(){this.map=[]}add(a,i,u){Mw(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 Mw(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 Aw(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 _w(){return{flow:{null:{name:"table",tokenize:Ow,resolveAll:Dw}}}}function Ow(n,a,i){const u=this;let s=0,c=0,f;return d;function d(B){let ne=u.events.length-1;for(;ne>-1;){const ue=u.events[ne][1].type;if(ue==="lineEnding"||ue==="linePrefix")ne--;else break}const P=ne>-1?u.events[ne][1].type:null,pe=P==="tableHead"||P==="tableRow"?O:p;return pe===O&&u.parser.lazy[u.now().line]?i(B):pe(B)}function p(B){return n.enter("tableHead"),n.enter("tableRow"),m(B)}function m(B){return B===124||(f=!0,c+=1),y(B)}function y(B){return B===null?i(B):ve(B)?c>1?(c=0,u.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(B),n.exit("lineEnding"),v):i(B):Oe(B)?He(n,y,"whitespace")(B):(c+=1,f&&(f=!1,s+=1),B===124?(n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),f=!0,y):(n.enter("data"),g(B)))}function g(B){return B===null||B===124||We(B)?(n.exit("data"),y(B)):(n.consume(B),B===92?S:g)}function S(B){return B===92||B===124?(n.consume(B),g):g(B)}function v(B){return u.interrupt=!1,u.parser.lazy[u.now().line]?i(B):(n.enter("tableDelimiterRow"),f=!1,Oe(B)?He(n,w,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):w(B))}function w(B){return B===45||B===58?L(B):B===124?(f=!0,n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),j):ie(B)}function j(B){return Oe(B)?He(n,L,"whitespace")(B):L(B)}function L(B){return B===58?(c+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(B),n.exit("tableDelimiterMarker"),M):B===45?(c+=1,M(B)):B===null||ve(B)?W(B):ie(B)}function M(B){return B===45?(n.enter("tableDelimiterFiller"),q(B)):ie(B)}function q(B){return B===45?(n.consume(B),q):B===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(B),n.exit("tableDelimiterMarker"),_):(n.exit("tableDelimiterFiller"),_(B))}function _(B){return Oe(B)?He(n,W,"whitespace")(B):W(B)}function W(B){return B===124?w(B):B===null||ve(B)?!f||s!==c?ie(B):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(B)):ie(B)}function ie(B){return i(B)}function O(B){return n.enter("tableRow"),I(B)}function I(B){return B===124?(n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),I):B===null||ve(B)?(n.exit("tableRow"),a(B)):Oe(B)?He(n,I,"whitespace")(B):(n.enter("data"),se(B))}function se(B){return B===null||B===124||We(B)?(n.exit("data"),I(B)):(n.consume(B),B===92?me:se)}function me(B){return B===92||B===124?(n.consume(B),se):se(B)}}function Dw(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 jw;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=ou(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=ou(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=ou(S,a,c,s,i,g)):f[1]!==0&&(g=ou(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=Aw(a.events,i))}return n}function ou(n,a,i,u,s,c){const f=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",d="tableContent";i[0]!==0&&(c.end=Object.assign({},_i(a.events,i[0])),n.add(i[0],0,[["exit",c,a]]));const p=_i(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=_i(a.events,i[2]),y=_i(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,j=i[3]-i[2]-1;n.add(w,j,[])}}n.add(i[3]+1,0,[["exit",g,a]])}return s!==void 0&&(c.end=Object.assign({},_i(a.events,s)),n.add(s,0,[["exit",c,a]]),c=void 0),c}function Qp(n,a,i,u,s){const c=[],f=_i(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 _i(n,a){const i=n[a],u=i[0]==="enter"?"start":"end";return i[1][u]}const Rw={name:"tasklistCheck",tokenize:Uw};function Lw(){return{text:{91:Rw}}}function Uw(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 We(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 ve(p)?a(p):Oe(p)?n.check({tokenize:Bw},a,i)(p):i(p)}}function Bw(n,a,i){return He(n,u,"whitespace");function u(s){return s===null?i(s):a(s)}}function Hw(n){return j0([cw(),vw(),Nw(n),_w(),Lw()])}const qw={};function Yw(n){const a=this,i=n||qw,u=a.data(),s=u.micromarkExtensions||(u.micromarkExtensions=[]),c=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),f=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);s.push(Hw(i)),c.push(rw()),f.push(uw(i))}function Vw(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(s1,{size:14,className:"text-zinc-500"})}function Xw(n){return n==="completed"?"text-zinc-400 line-through":n==="in_progress"?"text-amber-200":"text-zinc-300"}function Gw(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:Vw(s.status)}),x.jsx("span",{className:`text-xs leading-relaxed ${Xw(s.status)}`,children:s.content})]},c))})]})})}class Qw{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 j=-1/0,L=1/0;const M=()=>{for(let q=Math.max(j,-m);q<=Math.min(L,m);q+=2){let _;const W=v[q-1],ie=v[q+1];W&&(v[q-1]=void 0);let O=!1;if(ie){const se=ie.oldPos-q;O=ie&&0<=se&&se<d}const I=W&&W.oldPos+1<p;if(!O&&!I){v[q]=void 0;continue}if(!I||O&&W.oldPos<ie.oldPos?_=this.addToPath(ie,!0,!1,0,u):_=this.addToPath(W,!1,!0,1,u),w=this.extractCommon(_,i,a,q,u),_.oldPos+1>=p&&w+1>=d)return f(this.buildValues(_.lastComponent,i,a))||!0;v[q]=_,_.oldPos+1>=p&&(L=Math.min(L,q-1)),w+1>=d&&(j=Math.max(j,q+1))}m++};if(s)(function q(){setTimeout(function(){if(m>y||Date.now()>S)return s(void 0);M()||q()},0)})();else for(;m<=y&&Date.now()<=S;){const q=M();if(q)return q}}addToPath(a,i,u,s,c){const f=a.lastComponent;return f&&!c.oneChangePerToken&&f.added===i&&f.removed===u?{oldPos:a.oldPos+s,lastComponent:{count:f.count+1,added:i,removed:u,previousComponent:f.previousComponent}}:{oldPos:a.oldPos+s,lastComponent:{count:1,added:i,removed:u,previousComponent:f}}}extractCommon(a,i,u,s,c){const f=i.length,d=u.length;let p=a.oldPos,m=p-s,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 Fw extends Qw{constructor(){super(...arguments),this.tokenize=Jw}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 Zw=new Fw;function Fp(n,a,i){return Zw.diff(n,a,i)}function Jw(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 Kw={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(_){return" "+_})}const S=[];let v=0,w=0,j=[],L=1,M=1;for(let q=0;q<y.length;q++){const _=y[q],W=_.lines||$w(_.value);if(_.lines=W,_.added||_.removed){if(!v){const ie=y[q-1];v=L,w=M,ie&&(j=p>0?g(ie.lines.slice(-p)):[],v-=j.length,w-=j.length)}for(const ie of W)j.push((_.added?"+":"-")+ie);_.added?M+=W.length:L+=W.length}else{if(v)if(W.length<=p*2&&q<y.length-2)for(const ie of g(W))j.push(ie);else{const ie=Math.min(W.length,p);for(const I of g(W.slice(0,ie)))j.push(I);const O={oldStart:v,oldLines:L-v+ie,newStart:w,newLines:M-w+ie,lines:j};S.push(O),v=0,w=0,j=[]}L+=W.length,M+=W.length}}for(const q of S)for(let _=0;_<q.lines.length;_++)q.lines[_].endsWith(`
|
|
291
|
-
`)?q.lines[_]=q.lines[_].slice(0,-1):(q.lines.splice(_+1,0,"\"),_++);return{oldFileName:n,newFileName:a,oldHeader:s,newHeader:c,hunks:S}}}function bc(n,a){if(a||(a=Kw),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 Iw(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 $w(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 Ui(n){const{text:a,className:i="",title:u="Copy"}=n,[s,c]=Q.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(gl,{size:12,className:"text-emerald-400"}):x.jsx(hu,{size:12,className:"text-zinc-500 hover:text-zinc-300"})})}function bg(n){return n.split("/").slice(-2).join("/")}function Ww(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 Pw(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=a.old_string||"",u=a.new_string||"",s=bg(a.file_path),c=Iw("a/"+s,"b/"+s,i,u,"","",{context:3}),f=Ww(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(p1,{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(Y1,{size:12}),d]}),p>0&&x.jsxs("span",{className:"flex items-center gap-0.5 text-rose-400",children:[x.jsx(_1,{size:12}),p]}),x.jsx(Ui,{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 eE(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=a.content||"",u=bg(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(Ui,{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 tE(n){const{input:a}=n,[i,u]=Q.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(gl,{size:12,className:"text-green-400"}):x.jsx(hu,{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 nE(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($1,{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 lE(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(qa,{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 iE(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(qa,{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(Ui,{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(qa,{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 aE(n){return n.split("/").slice(-2).join("/")}function vg(n){var i;const a=n.split(".");return a.length>1?(i=a.pop())==null?void 0:i.toLowerCase():""}function Sg(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 rE(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=aE(a.file_path),u=vg(a.file_path),s=u?Sg(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(Ui,{text:a.file_path})]})]})})})}function uE(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?vg(i):"",p=d?Sg(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 sE(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(r1,{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 oE(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 cE(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 fE(n){const{input:a}=n;if(!a)return null;const i=oE(a.subagent_type),u=cE(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(Py,{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(X1,{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(L1,{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 zg=Q.memo(function(a){const{content:i,className:u=""}=a;return x.jsx("div",{className:`break-words ${u}`,children:x.jsx(Nz,{remarkPlugins:[Yw],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(j=>j.startsWith("language-")),v=(S==null?void 0:S.replace("language-",""))||"code",w=((y=f.children)==null?void 0:y.map(j=>j.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(Ui,{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 hE(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 fu(n){return!n||typeof n=="string"?[]:Array.isArray(n)?n:[n]}function dE(n){var i;const a=(i=n.message)==null?void 0:i.content;return a?typeof a=="string"?Ht(a):fu(a).filter(u=>u.type==="text"&&u.text).map(u=>Ht(u.text)).join(`
|
|
305
|
-
`):""}const mE=Q.memo(function(a){var j;const{message:i}=a,u=i.type==="user",s=(j=i.message)==null?void 0:j.content,c=()=>fu(s).filter(L=>L.type==="text"),f=()=>fu(s).filter(L=>L.type==="tool_use"||L.type==="tool_result"||L.type==="thinking"),d=()=>c().filter(L=>L.text&&Ht(L.text).length>0),p=()=>typeof s=="string"?Ht(s).length>0:d().length>0,m=f(),y=d(),g=p(),S=m.length>0,v=hE(fu(s));if(!g&&S)return x.jsx("div",{className:"flex flex-col gap-1 py-0.5",children:m.map((L,M)=>x.jsx(rc,{block:L,toolMap:v},M))});if(!g&&!S)return null;const w=dE(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(Ui,{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:Ht(s)}):x.jsx(zg,{content:Ht(s)}):x.jsx("div",{className:"flex flex-col gap-1",children:y.map((L,M)=>x.jsx(rc,{block:L,isUser:u,toolMap:v},M))})})]}),S&&x.jsx("div",{className:"flex flex-col gap-1 mt-1.5",children:m.map((L,M)=>x.jsx(rc,{block:L,toolMap:v},M))})]})})}),Kp={todowrite:r0,read:i0,bash:c0,grep:qa,edit:B1,write:a0,glob:kc,task:n0},pE=[{patterns:["web","fetch","url"],icon:z1},{patterns:["ask","question"],icon:M1},{patterns:["git","commit"],icon:v1},{patterns:["sql","database","query"],icon:f1},{patterns:["file","disk"],icon:w1}];function gE(n){const a=n.toLowerCase();if(Kp[a])return Kp[a];for(const{patterns:i,icon:u}of pE)if(i.some(s=>a.includes(s)))return u;return P1}function ac(n){return n.split("/").slice(-2).join("/")}const xE={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 yE(n,a){if(!a)return null;const i=n.toLowerCase(),u=xE[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 bE(n){const{toolName:a,input:i}=n,u=a.toLowerCase();return u==="todowrite"&&i.todos?x.jsx(Gw,{todos:i.todos}):u==="edit"&&i.file_path?x.jsx(Pw,{input:i}):u==="write"&&i.file_path?x.jsx(eE,{input:i}):u==="bash"&&i.command?x.jsx(tE,{input:i}):u==="grep"&&i.pattern?x.jsx(lE,{input:i}):u==="glob"&&i.pattern?x.jsx(iE,{input:i}):u==="read"&&i.file_path?x.jsx(rE,{input:i}):u==="askuserquestion"&&i.questions?x.jsx(sE,{input:i}):u==="task"&&i.prompt?x.jsx(fE,{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 vE(n){const{toolName:a,content:i,isError:u}=n,s=a.toLowerCase();if(s==="bash")return x.jsx(nE,{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(uE,{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(gl,{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]=Q.useState(!1);if(a.type==="text"&&a.text){const d=Ht(a.text);return d?i?x.jsx("div",{className:"whitespace-pre-wrap wrap-break-word text-[13px] leading-relaxed",children:d}):x.jsx(zg,{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(T1,{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=gE(a.name||""),y=yE(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(bE,{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=Ht(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(xu,{size:12,className:"opacity-70"}):x.jsx(gl,{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(vE,{toolName:v,content:m,isError:d})]})}return null}function SE({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 zE=10,kE=1e3,wE=3e4,EE=100;function TE(n){const{sessionId:a,onMetaChange:i}=n,[u,s]=Q.useState([]),[c,f]=Q.useState(!0),[d,p]=Q.useState(!0),m=Q.useRef(null),y=Q.useRef(null),g=Q.useRef(0),S=Q.useRef(!1),v=Q.useRef(0),w=Q.useRef(null),j=Q.useRef(null),L=Q.useRef(!0),M=Q.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",I=>{v.current=0;const se=JSON.parse(I.data);f(!1),s(me=>{const B=new Set(me.map(P=>P.uuid).filter(Boolean)),ne=se.filter(P=>!B.has(P.uuid));return ne.length===0?me:(g.current+=ne.length,[...me,...ne])})}),O.onerror=()=>{if(O.close(),f(!1),!!L.current&&v.current<zE){const I=Math.min(kE*Math.pow(2,v.current),wE);v.current++,j.current=setTimeout(()=>M(),I)}}},[a]);Q.useEffect(()=>(L.current=!0,f(!0),s([]),g.current=0,v.current=0,M(),()=>{L.current=!1,j.current&&clearTimeout(j.current),w.current&&w.current.close()}),[M]);const q=Q.useCallback(()=>{y.current&&(S.current=!0,y.current.scrollIntoView({behavior:"instant"}),requestAnimationFrame(()=>{S.current=!1}))},[]);Q.useEffect(()=>{d&&q()},[u,d,q]),Q.useEffect(()=>{var ne;if(!i)return;const O=u.filter(P=>P.type==="user"||P.type==="assistant"),I=new Set,se=[];for(const P of O){const pe=(ne=P.message)==null?void 0:ne.model;pe&&I.add(pe);const ue=P.timestamp;if(typeof ue=="string"){const $=Date.parse(ue);Number.isNaN($)||se.push($)}else typeof ue=="number"&&Number.isFinite(ue)&&se.push(ue)}const me=se.length>0?Math.min(...se):null,B=se.length>0?Math.max(...se):null;i({models:Array.from(I.values()),startTime:me,endTime:B,messageCount:O.length})},[u,i]);const _=()=>{if(!m.current||S.current)return;const{scrollTop:O,scrollHeight:I,clientHeight:se}=m.current,me=I-O-se<EE;p(me)},W=u.find(O=>O.type==="summary"),ie=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:_,className:"h-full overflow-y-auto bg-zinc-950",children:x.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-4",children:[W&&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:W.summary}),x.jsxs("p",{className:"mt-2 text-[11px] text-zinc-500",children:[ie.length," messages"]})]}),x.jsx("div",{className:"flex flex-col gap-2",children:ie.map((O,I)=>x.jsx("div",{ref:I===ie.length-1?y:void 0,children:x.jsx(mE,{message:O})},O.uuid||I))})]})}),!d&&x.jsx(SE,{onClick:()=>{p(!0),q()}})]})}function CE(n,a){const{events:i,onError:u,maxRetries:s=10,baseDelay:c=1e3}=a,f=Q.useRef(null),d=Q.useRef(0),p=Q.useRef(null),m=Q.useRef(!0),y=Q.useRef(i);y.current=i;const g=Q.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]);Q.useEffect(()=>(m.current=!0,g(),()=>{m.current=!1,p.current&&clearTimeout(p.current),f.current&&f.current.close()}),[g])}const NE={mode:"full",includeTools:!0,includeThoughts:!0,truncateToolResults:!0,truncationMode:"lines",maxToolResultLength:30};function jE(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 ME(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 AE(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=ME(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=Ht(u);return d?`${s}
|
|
308
|
-
\`\`\`
|
|
309
|
-
${d}
|
|
310
|
-
...
|
|
311
|
-
(truncated)
|
|
312
|
-
\`\`\``:i?"**Error** (empty)":"**Result:** Success"}}const c=Ht(u);return c?`${s}
|
|
313
|
-
\`\`\`
|
|
314
|
-
${c}
|
|
315
|
-
\`\`\``:i?"**Error** (empty)":"**Result:** Success"}function _E(n){const a=n.thinking||"";return a?`<details>
|
|
316
|
-
<summary>💡 Thinking</summary>
|
|
317
|
-
|
|
318
|
-
${a}
|
|
319
|
-
|
|
320
|
-
</details>`:""}function OE(n,a,i){if(typeof n=="string")return a.mode==="tools-only"?"":Ht(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=Ht(c.text);f&&u.push(f)}else if(c.type==="thinking"&&c.thinking&&a.includeThoughts){const f=_E(c);f&&u.push(f)}else c.type==="tool_use"?(s||a.includeTools)&&u.push(jE(c)):c.type==="tool_result"&&(s||a.includeTools)&&u.push(AE(c,a));return u.join(`
|
|
321
|
-
|
|
322
|
-
`)}function DE(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:Ht(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&&Ht(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 RE(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"||!DE(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=OE(i,a);if(s&&u)return c.trim()?c:"";const f=u?"**User:**":"**Assistant:**";return c.trim()?`${f}
|
|
325
|
-
|
|
326
|
-
${c}`:""}function kg(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=RE(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 LE(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 wg(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 UE(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 wg(c.id),d=kg(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 BE(n){const{sessions:a,messages:i,onClose:u}=n,s=a.length>1,[c,f]=Q.useState({...NE}),[d,p]=Q.useState(!1),[m,y]=Q.useState(null),g=Q.useCallback(async()=>{console.log("=== EXPORT STARTED ==="),p(!0);try{if(s){const S=await UE(a,c,(w,j)=>y({current:w,total:j})),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 wg(S.id);console.log("Fetched",v.length,"messages"),await new Promise(j=>setTimeout(j,0)),console.log("Starting markdown conversion...");const w=kg(v,c,S);console.log("Generated",w.length,"chars"),Ip(w,LE(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(xu,{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 qn={mode:"literal",caseSensitive:!1,wordRegexp:!1,maxMatchesPerFile:200,maxSessions:500,timeoutMs:8e3};function Ai(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 HE(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=Ai(a.get("ft")),f=Ai(a.get("sidebar")),d=Ai(a.get("batch")),p=Ai(a.get("noUnknown")),m=a.get("sort"),y=a.get("ftMode"),g=Ai(a.get("cs")),S=Ai(a.get("ww")),v=HE(a.get("mm")),w={};i!==null&&(w.project=i||null),u!==null&&(w.session=u||null),s!==null&&(w.search=s),typeof c=="boolean"&&(w.fullTextEnabled=c),typeof f=="boolean"&&(w.sidebarCollapsed=f),typeof d=="boolean"&&(w.batchMode=d),typeof p=="boolean"&&(w.excludeUnknownModels=p),(m==="recent"||m==="duration-desc"||m==="duration-asc"||m==="size-desc"||m==="size-asc")&&(w.sortMode=m);const j={};return(y==="literal"||y==="regex")&&(j.mode=y),typeof g=="boolean"&&(j.caseSensitive=g),typeof S=="boolean"&&(j.wordRegexp=S),typeof v=="number"&&(j.maxMatchesPerFile=Math.max(1,Math.min(2e3,v))),Object.keys(j).length>0&&(w.fullTextOptions={...qn,...j}),w}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!==qn.mode&&a.set("ftMode",n.fullTextOptions.mode),n.fullTextOptions.caseSensitive!==qn.caseSensitive&&a.set("cs",n.fullTextOptions.caseSensitive?"1":"0"),n.fullTextOptions.wordRegexp!==qn.wordRegexp&&a.set("ww",n.fullTextOptions.wordRegexp?"1":"0"),(n.fullTextOptions.maxMatchesPerFile??qn.maxMatchesPerFile)!==qn.maxMatchesPerFile&&a.set("mm",String(n.fullTextOptions.maxMatchesPerFile??qn.maxMatchesPerFile)),n.sidebarCollapsed&&a.set("sidebar","1"),n.batchMode&&a.set("batch","1"),n.excludeUnknownModels&&a.set("noUnknown","1"),n.sortMode!=="recent"&&a.set("sort",n.sortMode);const i=a.toString();return i?`?${i}`:""}function qE(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]=Q.useState(!1),[w,j]=Q.useState(a.display),L=Q.useRef(!1),M=wc(a.project),q=i!=null&&i.models.length?i.models.join(", "):"Unknown",_=(i==null?void 0:i.startTime)??a.startTime??a.timestamp,W=(i==null?void 0:i.endTime)??a.endTime??a.timestamp,ie=Number.isFinite(_)&&Number.isFinite(W)?Math.max(0,W-_):null,O=Number.isFinite(_)?$m(_):"—",I=Number.isFinite(W)?$m(W):"—",se=typeof(i==null?void 0:i.messageCount)=="number"?i.messageCount:typeof a.messageCount=="number"?a.messageCount:null,me=typeof se=="number"?`${se} message${se===1?"":"s"}`:"—",B=d0(ie),ne=h0(a.fileSizeBytes);Q.useEffect(()=>{v(!1),j(a.display)},[a.id,a.display]);const P=Q.useCallback(async()=>{const pe=w.trim();if(v(!1),!pe||pe===a.display){j(a.display);return}await y(a.id,pe,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:pe=>j(pe.target.value),onBlur:()=>{if(L.current){L.current=!1;return}P()},onKeyDown:pe=>{pe.key==="Enter"&&(pe.preventDefault(),P()),pe.key==="Escape"&&(L.current=!0,v(!1),j(a.display))},className:"text-sm text-zinc-200 bg-zinc-900/60 border border-zinc-800 rounded px-2 py-1 w-72 max-w-xs focus:outline-none focus:ring-1 focus:ring-zinc-600",autoFocus:!0}):x.jsx("button",{onClick:()=>{j(a.display),v(!0)},className:"text-sm text-zinc-300 truncate max-w-xs hover:text-zinc-100 text-left",title:"Click to rename session",type:"button",children:a.display}),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:M,children:M}),x.jsxs("span",{children:["Model: ",q]}),x.jsxs("span",{children:["Messages: ",me]}),x.jsxs("span",{children:["Duration: ",B]}),x.jsxs("span",{children:["JSONL: ",ne]}),x.jsxs("span",{children:["Start: ",O]}),x.jsxs("span",{children:["End: ",I]})]})]})}),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(gl,{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(hu,{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(gl,{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(hu,{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(gl,{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(K1,{className:"w-3.5 h-3.5"}),x.jsx("span",{children:"Delete JSONL"})]})]})]})}function YE(){const n=Q.useMemo(()=>{const J=$p(window.location.search);return{selectedProject:J.project??null,selectedSession:J.session??null,search:J.search??"",fullTextEnabled:J.fullTextEnabled??!1,fullTextOptions:J.fullTextOptions??qn,sidebarCollapsed:J.sidebarCollapsed??!1,batchMode:J.batchMode??!1,excludeUnknownModels:J.excludeUnknownModels??!1,sortMode:J.sortMode??"recent"}},[]),[a,i]=Q.useState([]),[u,s]=Q.useState([]),[c,f]=Q.useState(n.selectedProject),[d,p]=Q.useState(n.selectedSession),[m,y]=Q.useState(!0),[g,S]=Q.useState(n.sidebarCollapsed),[v,w]=Q.useState(!1),[j,L]=Q.useState(!1),[M,q]=Q.useState(!1),[_,W]=Q.useState(n.excludeUnknownModels),[ie,O]=Q.useState(n.sortMode),[I,se]=Q.useState(new Map),[me,B]=Q.useState(n.search),[ne,P]=Q.useState(n.fullTextEnabled),[pe,ue]=Q.useState(n.fullTextOptions),[$,U]=Q.useState(n.batchMode),[K,oe]=Q.useState(new Set),we=Q.useRef({didInit:!1,prev:null,searchTimer:null,lastCommittedSearch:""}),[E,C]=Q.useState(!1),[V,k]=Q.useState([]),[re,xe]=Q.useState(void 0),[ge,ae]=Q.useState(null),he=Q.useCallback((J,te)=>{const ce=`cd ${te} && claude --resume ${J}`;navigator.clipboard.writeText(ce).then(()=>{w(!0),setTimeout(()=>w(!1),2e3)})},[]),ze=Q.useCallback(J=>{navigator.clipboard.writeText(J).then(()=>{L(!0),setTimeout(()=>L(!1),2e3)})},[]),je=Q.useCallback(async J=>{try{const te=await fetch(`/api/sessions/${encodeURIComponent(J)}/path`),ce=await te.json();if(!te.ok||!ce.path){console.warn("[handleCopyJsonlPath] JSONL path not found for session:",J);return}await navigator.clipboard.writeText(ce.path),q(!0),setTimeout(()=>q(!1),2e3)}catch(te){console.error("[handleCopyJsonlPath] Failed to copy JSONL path:",te)}},[]),Xe=Q.useCallback(async(J,te,ce,be)=>{try{const Be=await fetch("/api/sessions/rename",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:J,display:te,project:ce,timestamp:be})});if(!Be.ok){console.error("[handleRenameSession] Server returned error:",Be.status);return}i(Qe=>Qe.map(Mt=>Mt.id===J?{...Mt,display:te}:Mt))}catch(Be){console.error("[handleRenameSession] Failed to rename session:",Be)}},[]),dt=Q.useMemo(()=>d&&a.find(J=>J.id===d)||null,[a,d]),Tt=Q.useMemo(()=>c?a.filter(J=>J.project===c):a,[a,c]),gt=Q.useMemo(()=>_?Tt.filter(J=>I.get(J.id)!==null):Tt,[Tt,_,I]);Q.useEffect(()=>{ae(null)},[d]);const Vn=Q.useCallback(J=>{ae(J)},[]);Q.useEffect(()=>{fetch("/api/projects").then(J=>J.json()).then(s).catch(console.error)},[]),Q.useEffect(()=>{se(J=>{const te=new Set(a.map(be=>be.id)),ce=new Map;for(const[be,Be]of J.entries())te.has(be)&&ce.set(be,Be);return ce})},[a]);const vn=Q.useCallback(async J=>{if(J.length!==0)try{const te=await fetch("/api/sessions/metadata",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:J})}),ce=await te.json();if(!te.ok||!ce.sessions)return;se(be=>{const Be=new Map(be);for(const Qe of ce.sessions)Be.set(Qe.id,Qe.model??null);return Be})}catch{}},[]);Q.useEffect(()=>{if(!_)return;const J=Tt.map(te=>te.id).filter(te=>!I.has(te));J.length!==0&&vn(J)},[_,Tt,I,vn]);const Yl=Q.useCallback(J=>{const te=JSON.parse(J.data);i(te),y(!1)},[]),Vl=Q.useCallback(J=>{const te=JSON.parse(J.data);i(ce=>{const be=new Map(ce.map(Be=>[Be.id,Be]));for(const Be of te)be.set(Be.id,Be);return Array.from(be.values()).sort((Be,Qe)=>Qe.timestamp-Be.timestamp)})},[]),Xn=Q.useCallback(()=>{y(!1)},[]);CE("/api/sessions/stream",{events:[{eventName:"sessions",onMessage:Yl},{eventName:"sessionsUpdate",onMessage:Vl}],onError:Xn});const Gn=Q.useCallback(J=>{p(J)},[]);Q.useEffect(()=>{const J=()=>{const te=$p(window.location.search),ce={project:te.project??null,session:te.session??null,search:te.search??"",fullTextEnabled:te.fullTextEnabled??!1,fullTextOptions:te.fullTextOptions??qn,sidebarCollapsed:te.sidebarCollapsed??!1,batchMode:te.batchMode??!1,excludeUnknownModels:te.excludeUnknownModels??!1,sortMode:te.sortMode??"recent"};f(ce.project),p(ce.session),B(ce.search),P(ce.fullTextEnabled),ue(ce.fullTextOptions),S(ce.sidebarCollapsed),U(ce.batchMode),W(ce.excludeUnknownModels),O(ce.sortMode),oe(new Set)};return window.addEventListener("popstate",J),()=>{window.removeEventListener("popstate",J)}},[]),Q.useEffect(()=>()=>{const{searchTimer:J}=we.current;J&&clearTimeout(J)},[]),Q.useEffect(()=>{const J=we.current,te={project:c,session:d,search:me,fullTextEnabled:ne,fullTextOptions:pe,sidebarCollapsed:g,batchMode:$,excludeUnknownModels:_,sortMode:ie};if(!J.didInit){J.didInit=!0,J.prev=te,J.lastCommittedSearch=te.search;return}const ce=J.prev;J.prev=te;const be=Wp(te);if(window.location.search===be)return;const Be=!!ce&&(ce.fullTextOptions.mode!==te.fullTextOptions.mode||ce.fullTextOptions.caseSensitive!==te.fullTextOptions.caseSensitive||ce.fullTextOptions.wordRegexp!==te.fullTextOptions.wordRegexp||(ce.fullTextOptions.maxMatchesPerFile??200)!==(te.fullTextOptions.maxMatchesPerFile??200)),Qe=!!ce&&(ce.project!==te.project||ce.session!==te.session||ce.fullTextEnabled!==te.fullTextEnabled||Be||ce.sidebarCollapsed!==te.sidebarCollapsed||ce.batchMode!==te.batchMode||ce.excludeUnknownModels!==te.excludeUnknownModels);if(!!ce&&ce.search!==te.search&&!Qe){history.replaceState(null,"",be||window.location.pathname),J.searchTimer&&clearTimeout(J.searchTimer);const It=te.search;J.searchTimer=setTimeout(()=>{if(J.lastCommittedSearch===It)return;const bl={project:c,session:d,search:me,fullTextEnabled:ne,fullTextOptions:pe,sidebarCollapsed:g,batchMode:$,excludeUnknownModels:_,sortMode:ie};if(bl.search!==It)return;const vl=Wp(bl);if(window.location.search===vl){const Sn=vl||window.location.pathname;history.pushState(null,"",Sn),J.lastCommittedSearch=It}},600);return}J.searchTimer&&(clearTimeout(J.searchTimer),J.searchTimer=null),history.pushState(null,"",be||window.location.pathname),J.lastCommittedSearch=te.search},[c,d,me,ne,pe,g,$,_,ie]);const yl=Q.useCallback(()=>{U(J=>!J),oe(new Set)},[]),Bi=Q.useCallback(J=>{oe(te=>{const ce=new Set(te);return ce.has(J)?ce.delete(J):ce.add(J),ce})},[]),Hi=Q.useCallback(()=>{oe(new Set(gt.map(J=>J.id)))},[gt]),xt=Q.useCallback(()=>{oe(new Set)},[]),Xl=Q.useCallback(async J=>{if(J.length===0)return[];try{const te=await fetch("/api/sessions/delete/preview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:J})});if(!te.ok)return console.error("[fetchDeletionPaths] Server returned error:",te.status),[];const ce=await te.json();return Array.isArray(ce.paths)?ce.paths:[]}catch(te){return console.error("[fetchDeletionPaths] Fetch error:",te),[]}},[]),G=Q.useCallback(async J=>{if(J.length===0){console.log("[handleDeleteSessions] No ids to delete");return}console.log(`[handleDeleteSessions] Requesting deletion of ${J.length} sessions:`,J);try{const te=await fetch("/api/sessions/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:J})}),ce=await te.json();if(console.log("[handleDeleteSessions] Server response:",ce),!te.ok){console.error("[handleDeleteSessions] Server returned error:",te.status);return}const be=new Set(ce.deleted??[]),Be=ce.failed??[];console.log(`[handleDeleteSessions] ${be.size} deleted, ${Be.length} failed`),be.size>0&&(console.log("[handleDeleteSessions] Removing from state:",Array.from(be)),i(Qe=>Qe.filter(Mt=>!be.has(Mt.id))),oe(Qe=>{const Mt=new Set(Qe);for(const It of be)Mt.delete(It);return Mt}),se(Qe=>{const Mt=new Map(Qe);for(const It of be)Mt.delete(It);return Mt}),p(Qe=>Qe&&be.has(Qe)?null:Qe)),Be.length>0&&console.warn("[handleDeleteSessions] These sessions failed to delete:",Be)}catch(te){console.error("[handleDeleteSessions] Fetch error:",te)}},[]),le=Q.useCallback(async(J,te)=>{const ce=await Xl(J),be=ce.length>0?ce.join(`
|
|
329
|
-
`):"(No paths found)",Be=`${te}
|
|
330
|
-
|
|
331
|
-
${be}
|
|
332
|
-
|
|
333
|
-
This cannot be undone.`;return window.confirm(Be)},[Xl]),ke=Q.useCallback(async J=>{J.length===0||!await le(J,`Delete ${J.length} unknown-model session${J.length===1?"":"s"} and the following paths?`)||G(J)},[le,G]),Me=Q.useCallback(async J=>{await le([J],"Delete this session and the following paths?")&&G([J])},[le,G]),qe=Q.useCallback(()=>{dt&&(k([dt]),xe(void 0),C(!0))},[dt]),Ct=Q.useCallback(()=>{const J=gt.filter(te=>K.has(te.id));k(J),xe(void 0),C(!0)},[gt,K]),on=Q.useCallback(()=>{C(!1),k([]),xe(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(xb,{projects:u,selectedProject:c,onSelect:f})}),x.jsx(pb,{sessions:gt,selectedSession:d,onSelectSession:Gn,loading:m,selectedProject:c,search:me,onSearchChange:B,fullTextEnabled:ne,onFullTextEnabledChange:P,fullTextOptions:pe,onFullTextOptionsChange:ue,excludeUnknownModels:_,onExcludeUnknownModelsChange:W,sessionModels:I,onDeleteUnknownSessions:ke,sortMode:ie,onSortModeChange:O,batchMode:$,selectedSessions:K,onToggleBatchMode:yl,onToggleSessionSelection:Bi,onSelectAll:Hi,onDeselectAll:xt,onBatchExport:Ct})]}),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(D1,{className:"w-4 h-4 text-zinc-400"})}),dt&&x.jsx(qE,{session:dt,meta:ge,copied:v,copiedUuid:j,copiedJsonlPath:M,onCopyResumeCommand:he,onCopyUuid:ze,onCopyJsonlPath:je,onDeleteJsonl:Me,onRenameSession:Xe,onExport:qe})]}),x.jsx("div",{className:"flex-1 overflow-hidden",children:d?x.jsx(TE,{sessionId:d,onMetaChange:Vn}):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"})]})})})]}),E&&x.jsx(BE,{sessions:V,messages:re,onClose:on})]})}Fy.createRoot(document.getElementById("root")).render(x.jsx(Q.StrictMode,{children:x.jsx(YE,{})}));
|