claude-run 0.2.0 → 0.2.1
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 +1 -1
- package/dist/index.js +9 -2
- package/dist/web/assets/index-BlBAFDQv.js +289 -0
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
- package/dist/web/assets/index-BvMYS-GY.js +0 -289
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.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 Hp(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var No={exports:{}},ya={};/**
|
|
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 _m;function v1(){if(_m)return ya;_m=1;var n=Symbol.for("react.transitional.element"),r=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 ya.Fragment=r,ya.jsx=i,ya.jsxs=i,ya}var Mm;function S1(){return Mm||(Mm=1,No.exports=v1()),No.exports}var S=S1(),_o={exports:{}},ge={};/**
|
|
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 jm;function z1(){if(jm)return ge;jm=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function v(T){return T===null||typeof T!="object"?null:(T=b&&T[b]||T["@@iterator"],typeof T=="function"?T:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,Y={};function M(T,G,k){this.props=T,this.context=G,this.refs=Y,this.updater=k||w}M.prototype.isReactComponent={},M.prototype.setState=function(T,G){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,G,"setState")},M.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function U(){}U.prototype=M.prototype;function j(T,G,k){this.props=T,this.context=G,this.refs=Y,this.updater=k||w}var I=j.prototype=new U;I.constructor=j,_(I,M.prototype),I.isPureReactComponent=!0;var F=Array.isArray;function B(){}var $={H:null,A:null,T:null,S:null},ue=Object.prototype.hasOwnProperty;function se(T,G,k){var ee=k.ref;return{$$typeof:n,type:T,key:G,ref:ee!==void 0?ee:null,props:k}}function H(T,G){return se(T.type,G,T.props)}function ne(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function te(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(k){return G[k]})}var Se=/\/+/g;function ie(T,G){return typeof T=="object"&&T!==null&&T.key!=null?te(""+T.key):G.toString(36)}function W(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(B,B):(T.status="pending",T.then(function(G){T.status==="pending"&&(T.status="fulfilled",T.value=G)},function(G){T.status==="pending"&&(T.status="rejected",T.reason=G)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function L(T,G,k,ee,me){var oe=typeof T;(oe==="undefined"||oe==="boolean")&&(T=null);var we=!1;if(T===null)we=!0;else switch(oe){case"bigint":case"string":case"number":we=!0;break;case"object":switch(T.$$typeof){case n:case r:we=!0;break;case x:return we=T._init,L(we(T._payload),G,k,ee,me)}}if(we)return me=me(T),we=ee===""?"."+ie(T,0):ee,F(me)?(k="",we!=null&&(k=we.replace(Se,"$&/")+"/"),L(me,G,k,"",function(Yt){return Yt})):me!=null&&(ne(me)&&(me=H(me,k+(me.key==null||T&&T.key===me.key?"":(""+me.key).replace(Se,"$&/")+"/")+we)),G.push(me)),1;we=0;var Ke=ee===""?".":ee+":";if(F(T))for(var Ue=0;Ue<T.length;Ue++)ee=T[Ue],oe=Ke+ie(ee,Ue),we+=L(ee,G,k,oe,me);else if(Ue=v(T),typeof Ue=="function")for(T=Ue.call(T),Ue=0;!(ee=T.next()).done;)ee=ee.value,oe=Ke+ie(ee,Ue++),we+=L(ee,G,k,oe,me);else if(oe==="object"){if(typeof T.then=="function")return L(W(T),G,k,ee,me);throw G=String(T),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return we}function K(T,G,k){if(T==null)return T;var ee=[],me=0;return L(T,ee,"","",function(oe){return G.call(k,oe,me++)}),ee}function re(T){if(T._status===-1){var G=T._result;G=G(),G.then(function(k){(T._status===0||T._status===-1)&&(T._status=1,T._result=k)},function(k){(T._status===0||T._status===-1)&&(T._status=2,T._result=k)}),T._status===-1&&(T._status=0,T._result=G)}if(T._status===1)return T._result.default;throw T._result}var ve=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},E={map:K,forEach:function(T,G,k){K(T,function(){G.apply(this,arguments)},k)},count:function(T){var G=0;return K(T,function(){G++}),G},toArray:function(T){return K(T,function(G){return G})||[]},only:function(T){if(!ne(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return ge.Activity=g,ge.Children=E,ge.Component=M,ge.Fragment=i,ge.Profiler=s,ge.PureComponent=j,ge.StrictMode=u,ge.Suspense=p,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,ge.__COMPILER_RUNTIME={__proto__:null,c:function(T){return $.H.useMemoCache(T)}},ge.cache=function(T){return function(){return T.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(T,G,k){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ee=_({},T.props),me=T.key;if(G!=null)for(oe in G.key!==void 0&&(me=""+G.key),G)!ue.call(G,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&G.ref===void 0||(ee[oe]=G[oe]);var oe=arguments.length-2;if(oe===1)ee.children=k;else if(1<oe){for(var we=Array(oe),Ke=0;Ke<oe;Ke++)we[Ke]=arguments[Ke+2];ee.children=we}return se(T.type,me,ee)},ge.createContext=function(T){return T={$$typeof:f,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:c,_context:T},T},ge.createElement=function(T,G,k){var ee,me={},oe=null;if(G!=null)for(ee in G.key!==void 0&&(oe=""+G.key),G)ue.call(G,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(me[ee]=G[ee]);var we=arguments.length-2;if(we===1)me.children=k;else if(1<we){for(var Ke=Array(we),Ue=0;Ue<we;Ue++)Ke[Ue]=arguments[Ue+2];me.children=Ke}if(T&&T.defaultProps)for(ee in we=T.defaultProps,we)me[ee]===void 0&&(me[ee]=we[ee]);return se(T,oe,me)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(T){return{$$typeof:d,render:T}},ge.isValidElement=ne,ge.lazy=function(T){return{$$typeof:x,_payload:{_status:-1,_result:T},_init:re}},ge.memo=function(T,G){return{$$typeof:m,type:T,compare:G===void 0?null:G}},ge.startTransition=function(T){var G=$.T,k={};$.T=k;try{var ee=T(),me=$.S;me!==null&&me(k,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(B,ve)}catch(oe){ve(oe)}finally{G!==null&&k.types!==null&&(G.types=k.types),$.T=G}},ge.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},ge.use=function(T){return $.H.use(T)},ge.useActionState=function(T,G,k){return $.H.useActionState(T,G,k)},ge.useCallback=function(T,G){return $.H.useCallback(T,G)},ge.useContext=function(T){return $.H.useContext(T)},ge.useDebugValue=function(){},ge.useDeferredValue=function(T,G){return $.H.useDeferredValue(T,G)},ge.useEffect=function(T,G){return $.H.useEffect(T,G)},ge.useEffectEvent=function(T){return $.H.useEffectEvent(T)},ge.useId=function(){return $.H.useId()},ge.useImperativeHandle=function(T,G,k){return $.H.useImperativeHandle(T,G,k)},ge.useInsertionEffect=function(T,G){return $.H.useInsertionEffect(T,G)},ge.useLayoutEffect=function(T,G){return $.H.useLayoutEffect(T,G)},ge.useMemo=function(T,G){return $.H.useMemo(T,G)},ge.useOptimistic=function(T,G){return $.H.useOptimistic(T,G)},ge.useReducer=function(T,G,k){return $.H.useReducer(T,G,k)},ge.useRef=function(T){return $.H.useRef(T)},ge.useState=function(T){return $.H.useState(T)},ge.useSyncExternalStore=function(T,G,k){return $.H.useSyncExternalStore(T,G,k)},ge.useTransition=function(){return $.H.useTransition()},ge.version="19.2.3",ge}var Om;function hc(){return Om||(Om=1,_o.exports=z1()),_o.exports}var fe=hc(),Mo={exports:{}},xa={},jo={exports:{}},Oo={};/**
|
|
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 Dm;function k1(){return Dm||(Dm=1,(function(n){function r(L,K){var re=L.length;L.push(K);e:for(;0<re;){var ve=re-1>>>1,E=L[ve];if(0<s(E,K))L[ve]=K,L[re]=E,re=ve;else break e}}function i(L){return L.length===0?null:L[0]}function u(L){if(L.length===0)return null;var K=L[0],re=L.pop();if(re!==K){L[0]=re;e:for(var ve=0,E=L.length,T=E>>>1;ve<T;){var G=2*(ve+1)-1,k=L[G],ee=G+1,me=L[ee];if(0>s(k,re))ee<E&&0>s(me,k)?(L[ve]=me,L[ee]=re,ve=ee):(L[ve]=k,L[G]=re,ve=G);else if(ee<E&&0>s(me,re))L[ve]=me,L[ee]=re,ve=ee;else break e}}return K}function s(L,K){var re=L.sortIndex-K.sortIndex;return re!==0?re:L.id-K.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,d=f.now();n.unstable_now=function(){return f.now()-d}}var p=[],m=[],x=1,g=null,b=3,v=!1,w=!1,_=!1,Y=!1,M=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function I(L){for(var K=i(m);K!==null;){if(K.callback===null)u(m);else if(K.startTime<=L)u(m),K.sortIndex=K.expirationTime,r(p,K);else break;K=i(m)}}function F(L){if(_=!1,I(L),!w)if(i(p)!==null)w=!0,B||(B=!0,te());else{var K=i(m);K!==null&&W(F,K.startTime-L)}}var B=!1,$=-1,ue=5,se=-1;function H(){return Y?!0:!(n.unstable_now()-se<ue)}function ne(){if(Y=!1,B){var L=n.unstable_now();se=L;var K=!0;try{e:{w=!1,_&&(_=!1,U($),$=-1),v=!0;var re=b;try{t:{for(I(L),g=i(p);g!==null&&!(g.expirationTime>L&&H());){var ve=g.callback;if(typeof ve=="function"){g.callback=null,b=g.priorityLevel;var E=ve(g.expirationTime<=L);if(L=n.unstable_now(),typeof E=="function"){g.callback=E,I(L),K=!0;break t}g===i(p)&&u(p),I(L)}else u(p);g=i(p)}if(g!==null)K=!0;else{var T=i(m);T!==null&&W(F,T.startTime-L),K=!1}}break e}finally{g=null,b=re,v=!1}K=void 0}}finally{K?te():B=!1}}}var te;if(typeof j=="function")te=function(){j(ne)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,ie=Se.port2;Se.port1.onmessage=ne,te=function(){ie.postMessage(null)}}else te=function(){M(ne,0)};function W(L,K){$=M(function(){L(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(L){L.callback=null},n.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ue=0<L?Math.floor(1e3/L):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(L){switch(b){case 1:case 2:case 3:var K=3;break;default:K=b}var re=b;b=K;try{return L()}finally{b=re}},n.unstable_requestPaint=function(){Y=!0},n.unstable_runWithPriority=function(L,K){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var re=b;b=L;try{return K()}finally{b=re}},n.unstable_scheduleCallback=function(L,K,re){var ve=n.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?ve+re:ve):re=ve,L){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=re+E,L={id:x++,callback:K,priorityLevel:L,startTime:re,expirationTime:E,sortIndex:-1},re>ve?(L.sortIndex=re,r(m,L),i(p)===null&&L===i(m)&&(_?(U($),$=-1):_=!0,W(F,re-ve))):(L.sortIndex=E,r(p,L),w||v||(w=!0,B||(B=!0,te()))),L},n.unstable_shouldYield=H,n.unstable_wrapCallback=function(L){var K=b;return function(){var re=b;b=K;try{return L.apply(this,arguments)}finally{b=re}}}})(Oo)),Oo}var Rm;function E1(){return Rm||(Rm=1,jo.exports=k1()),jo.exports}var Do={exports:{}},mt={};/**
|
|
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 Lm;function C1(){if(Lm)return mt;Lm=1;var n=hc();function r(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var u={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(p,m,x){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:p,containerInfo:m,implementation:x}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,mt.createPortal=function(p,m){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(r(299));return c(p,m,null,x)},mt.flushSync=function(p){var m=f.T,x=u.p;try{if(f.T=null,u.p=2,p)return p()}finally{f.T=m,u.p=x,u.d.f()}},mt.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))},mt.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},mt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var x=m.as,g=d(x,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,v=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;x==="style"?u.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:v}):x==="script"&&u.d.X(p,{crossOrigin:g,integrity:b,fetchPriority:v,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},mt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var x=d(m.as,m.crossOrigin);u.d.M(p,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(p)},mt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var x=m.as,g=d(x,m.crossOrigin);u.d.L(p,x,{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})}},mt.preloadModule=function(p,m){if(typeof p=="string")if(m){var x=d(m.as,m.crossOrigin);u.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(p)},mt.requestFormReset=function(p){u.d.r(p)},mt.unstable_batchedUpdates=function(p,m){return p(m)},mt.useFormState=function(p,m,x){return f.H.useFormState(p,m,x)},mt.useFormStatus=function(){return f.H.useHostTransitionStatus()},mt.version="19.2.3",mt}var Bm;function qp(){if(Bm)return Do.exports;Bm=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(r){console.error(r)}}return n(),Do.exports=C1(),Do.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 Um;function w1(){if(Um)return xa;Um=1;var n=E1(),r=hc(),i=qp();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,a=t;;){var o=l.return;if(o===null)break;var h=o.alternate;if(h===null){if(a=o.return,a!==null){l=a;continue}break}if(o.child===h.child){for(h=o.child;h;){if(h===l)return p(o),e;if(h===a)return p(o),t;h=h.sibling}throw Error(u(188))}if(l.return!==a.return)l=o,a=h;else{for(var y=!1,z=o.child;z;){if(z===l){y=!0,l=o,a=h;break}if(z===a){y=!0,a=o,l=h;break}z=z.sibling}if(!y){for(z=h.child;z;){if(z===l){y=!0,l=h,a=o;break}if(z===a){y=!0,a=h,l=o;break}z=z.sibling}if(!y)throw Error(u(189))}}if(l.alternate!==a)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),j=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function te(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case M:return"Profiler";case Y:return"StrictMode";case F:return"Suspense";case B:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case j:return e.displayName||"Context";case U:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case ue:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var W=Array.isArray,L=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},ve=[],E=-1;function T(e){return{current:e}}function G(e){0>E||(e.current=ve[E],ve[E]=null,E--)}function k(e,t){E++,ve[E]=e.current,e.current=t}var ee=T(null),me=T(null),oe=T(null),we=T(null);function Ke(e,t){switch(k(oe,t),k(me,e),k(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Pd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Pd(t),e=em(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(ee),k(ee,e)}function Ue(){G(ee),G(me),G(oe)}function Yt(e){e.memoizedState!==null&&k(we,e);var t=ee.current,l=em(t,e.type);t!==l&&(k(me,e),k(ee,l))}function fn(e){me.current===e&&(G(ee),G(me)),we.current===e&&(G(we),da._currentValue=re)}var Ei,Oa;function hn(e){if(Ei===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ei=t&&t[1]||"",Oa=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Ei+e+Oa}var Tl=!1;function Al(e,t){if(!e||Tl)return"";Tl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={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(q){var R=q}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(q){R=q}e.call(Z.prototype)}}else{try{throw Error()}catch(q){R=q}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(q){if(q&&R&&typeof q.stack=="string")return[q.stack,R.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=a.DetermineComponentFrameRoot(),y=h[0],z=h[1];if(y&&z){var C=y.split(`
|
|
44
|
+
`),D=z.split(`
|
|
45
|
+
`);for(o=a=0;a<C.length&&!C[a].includes("DetermineComponentFrameRoot");)a++;for(;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;if(a===C.length||o===D.length)for(a=C.length-1,o=D.length-1;1<=a&&0<=o&&C[a]!==D[o];)o--;for(;1<=a&&0<=o;a--,o--)if(C[a]!==D[o]){if(a!==1||o!==1)do if(a--,o--,0>o||C[a]!==D[o]){var V=`
|
|
46
|
+
`+C[a].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=a&&0<=o);break}}}finally{Tl=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?hn(l):""}function Da(e,t){switch(e.tag){case 26:case 27:case 5:return hn(e.type);case 16:return hn("Lazy");case 13:return e.child!==t&&t!==null?hn("Suspense Fallback"):hn("Suspense");case 19:return hn("SuspenseList");case 0:case 15:return Al(e.type,!1);case 11:return Al(e.type.render,!1);case 1:return Al(e.type,!0);case 31:return hn("Activity");default:return""}}function Ra(e){try{var t="",l=null;do t+=Da(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var Nl=Object.prototype.hasOwnProperty,_l=n.unstable_scheduleCallback,Ci=n.unstable_cancelCallback,du=n.unstable_shouldYield,mu=n.unstable_requestPaint,yt=n.unstable_now,pu=n.unstable_getCurrentPriorityLevel,X=n.unstable_ImmediatePriority,P=n.unstable_UserBlockingPriority,pe=n.unstable_NormalPriority,ze=n.unstable_LowPriority,Re=n.unstable_IdlePriority,Mt=n.log,dn=n.unstable_setDisableYieldValue,xt=null,at=null;function St(e){if(typeof Mt=="function"&&dn(e),at&&typeof at.setStrictMode=="function")try{at.setStrictMode(xt,e)}catch{}}var Ve=Math.clz32?Math.clz32:rg,On=Math.log,Pt=Math.LN2;function rg(e){return e>>>=0,e===0?32:31-(On(e)/Pt|0)|0}var La=256,Ba=262144,Ua=4194304;function rl(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 Ha(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var o=0,h=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var z=a&134217727;return z!==0?(a=z&~h,a!==0?o=rl(a):(y&=z,y!==0?o=rl(y):l||(l=z&~e,l!==0&&(o=rl(l))))):(z=a&~h,z!==0?o=rl(z):y!==0?o=rl(y):l||(l=a&~e,l!==0&&(o=rl(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 wi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ug(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 Oc(){var e=Ua;return Ua<<=1,(Ua&62914560)===0&&(Ua=4194304),e}function gu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ti(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function sg(e,t,l,a,o,h){var y=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,C=e.expirationTimes,D=e.hiddenUpdates;for(l=y&~l;0<l;){var V=31-Ve(l),Z=1<<V;z[V]=0,C[V]=-1;var R=D[V];if(R!==null)for(D[V]=null,V=0;V<R.length;V++){var q=R[V];q!==null&&(q.lane&=-536870913)}l&=~Z}a!==0&&Dc(e,a,0),h!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=h&~(y&~t))}function Dc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ve(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Rc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Ve(l),o=1<<a;o&t|e[a]&t&&(e[a]|=t),l&=~o}}function Lc(e,t){var l=t&-t;return l=(l&42)!==0?1:yu(l),(l&(e.suspendedLanes|t))!==0?0:l}function yu(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 xu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Bc(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:km(e.type))}function Uc(e,t){var l=K.p;try{return K.p=e,t()}finally{K.p=l}}var Dn=Math.random().toString(36).slice(2),ot="__reactFiber$"+Dn,zt="__reactProps$"+Dn,Ml="__reactContainer$"+Dn,bu="__reactEvents$"+Dn,og="__reactListeners$"+Dn,cg="__reactHandles$"+Dn,Hc="__reactResources$"+Dn,Ai="__reactMarker$"+Dn;function vu(e){delete e[ot],delete e[zt],delete e[bu],delete e[og],delete e[cg]}function jl(e){var t=e[ot];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Ml]||l[ot]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=um(e);e!==null;){if(l=e[ot])return l;e=um(e)}return t}e=l,l=e.parentNode}return null}function Ol(e){if(e=e[ot]||e[Ml]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ni(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Dl(e){var t=e[Hc];return t||(t=e[Hc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[Ai]=!0}var qc=new Set,Yc={};function ul(e,t){Rl(e,t),Rl(e+"Capture",t)}function Rl(e,t){for(Yc[e]=t,e=0;e<t.length;e++)qc.add(t[e])}var fg=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]*$"),Vc={},Gc={};function hg(e){return Nl.call(Gc,e)?!0:Nl.call(Vc,e)?!1:fg.test(e)?Gc[e]=!0:(Vc[e]=!0,!1)}function qa(e,t,l){if(hg(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Ya(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 mn(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dg(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,h=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(y){l=""+y,h.call(this,y)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(y){l=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Su(e){if(!e._valueTracker){var t=Xc(e)?"checked":"value";e._valueTracker=dg(e,t,""+e[t])}}function Qc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Xc(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Va(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 mg=/[\n"\\]/g;function Gt(e){return e.replace(mg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function zu(e,t,l,a,o,h,y,z){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Vt(t)):e.value!==""+Vt(t)&&(e.value=""+Vt(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?ku(e,y,Vt(t)):l!=null?ku(e,y,Vt(l)):a!=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=""+Vt(z):e.removeAttribute("name")}function Zc(e,t,l,a,o,h,y,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)){Su(e);return}l=l!=null?""+Vt(l):"",t=t!=null?""+Vt(t):l,z||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=z?e.checked:!!a,e.defaultChecked=!!a,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),Su(e)}function ku(e,t,l){t==="number"&&Va(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Ll(e,t,l,a){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&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Vt(l),t=null,o=0;o<e.length;o++){if(e[o].value===l){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Fc(e,t,l){if(t!=null&&(t=""+Vt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Vt(l):""}function Kc(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(u(92));if(W(a)){if(1<a.length)throw Error(u(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Vt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Su(e)}function Bl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var pg=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 Jc(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||pg.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Ic(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&l[o]!==a&&Jc(e,o,a)}else for(var h in t)t.hasOwnProperty(h)&&Jc(e,h,t[h])}function Eu(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 gg=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"]]),yg=/^[\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 Ga(e){return yg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function pn(){}var Cu=null;function wu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ul=null,Hl=null;function $c(e){var t=Ol(e);if(t&&(e=t.stateNode)){var l=e[zt]||null;e:switch(e=t.stateNode,t.type){case"input":if(zu(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="'+Gt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var o=a[zt]||null;if(!o)throw Error(u(90));zu(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Qc(a)}break e;case"textarea":Fc(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Ll(e,!!l.multiple,t,!1)}}}var Tu=!1;function Wc(e,t,l){if(Tu)return e(t,l);Tu=!0;try{var a=e(t);return a}finally{if(Tu=!1,(Ul!==null||Hl!==null)&&(_r(),Ul&&(t=Ul,e=Hl,Hl=Ul=null,$c(t),e)))for(t=0;t<e.length;t++)$c(e[t])}}function _i(e,t){var l=e.stateNode;if(l===null)return null;var a=l[zt]||null;if(a===null)return null;l=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(u(231,t,typeof l));return l}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Au=!1;if(gn)try{var Mi={};Object.defineProperty(Mi,"passive",{get:function(){Au=!0}}),window.addEventListener("test",Mi,Mi),window.removeEventListener("test",Mi,Mi)}catch{Au=!1}var Rn=null,Nu=null,Xa=null;function Pc(){if(Xa)return Xa;var e,t=Nu,l=t.length,a,o="value"in Rn?Rn.value:Rn.textContent,h=o.length;for(e=0;e<l&&t[e]===o[e];e++);var y=l-e;for(a=1;a<=y&&t[l-a]===o[h-a];a++);return Xa=o.slice(e,1<a?1-a:void 0)}function Qa(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 Za(){return!0}function ef(){return!1}function kt(e){function t(l,a,o,h,y){this._reactName=l,this._targetInst=o,this.type=a,this.nativeEvent=h,this.target=y,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)?Za:ef,this.isPropagationStopped=ef,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=Za)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Za)},persist:function(){},isPersistent:Za}),t}var sl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fa=kt(sl),ji=g({},sl,{view:0,detail:0}),xg=kt(ji),_u,Mu,Oi,Ka=g({},ji,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ou,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!==Oi&&(Oi&&e.type==="mousemove"?(_u=e.screenX-Oi.screenX,Mu=e.screenY-Oi.screenY):Mu=_u=0,Oi=e),_u)},movementY:function(e){return"movementY"in e?e.movementY:Mu}}),tf=kt(Ka),bg=g({},Ka,{dataTransfer:0}),vg=kt(bg),Sg=g({},ji,{relatedTarget:0}),ju=kt(Sg),zg=g({},sl,{animationName:0,elapsedTime:0,pseudoElement:0}),kg=kt(zg),Eg=g({},sl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cg=kt(Eg),wg=g({},sl,{data:0}),nf=kt(wg),Tg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ag={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"},Ng={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _g(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ng[e])?!!t[e]:!1}function Ou(){return _g}var Mg=g({},ji,{key:function(e){if(e.key){var t=Tg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ag[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ou,charCode:function(e){return e.type==="keypress"?Qa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jg=kt(Mg),Og=g({},Ka,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lf=kt(Og),Dg=g({},ji,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ou}),Rg=kt(Dg),Lg=g({},sl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bg=kt(Lg),Ug=g({},Ka,{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}),Hg=kt(Ug),qg=g({},sl,{newState:0,oldState:0}),Yg=kt(qg),Vg=[9,13,27,32],Du=gn&&"CompositionEvent"in window,Di=null;gn&&"documentMode"in document&&(Di=document.documentMode);var Gg=gn&&"TextEvent"in window&&!Di,af=gn&&(!Du||Di&&8<Di&&11>=Di),rf=" ",uf=!1;function sf(e,t){switch(e){case"keyup":return Vg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function of(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ql=!1;function Xg(e,t){switch(e){case"compositionend":return of(t);case"keypress":return t.which!==32?null:(uf=!0,rf);case"textInput":return e=t.data,e===rf&&uf?null:e;default:return null}}function Qg(e,t){if(ql)return e==="compositionend"||!Du&&sf(e,t)?(e=Pc(),Xa=Nu=Rn=null,ql=!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 af&&t.locale!=="ko"?null:t.data;default:return null}}var Zg={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 cf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zg[e.type]:t==="textarea"}function ff(e,t,l,a){Ul?Hl?Hl.push(a):Hl=[a]:Ul=a,t=Br(t,"onChange"),0<t.length&&(l=new Fa("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Ri=null,Li=null;function Fg(e){Fd(e,0)}function Ja(e){var t=Ni(e);if(Qc(t))return e}function hf(e,t){if(e==="change")return t}var df=!1;if(gn){var Ru;if(gn){var Lu="oninput"in document;if(!Lu){var mf=document.createElement("div");mf.setAttribute("oninput","return;"),Lu=typeof mf.oninput=="function"}Ru=Lu}else Ru=!1;df=Ru&&(!document.documentMode||9<document.documentMode)}function pf(){Ri&&(Ri.detachEvent("onpropertychange",gf),Li=Ri=null)}function gf(e){if(e.propertyName==="value"&&Ja(Li)){var t=[];ff(t,Li,e,wu(e)),Wc(Fg,t)}}function Kg(e,t,l){e==="focusin"?(pf(),Ri=t,Li=l,Ri.attachEvent("onpropertychange",gf)):e==="focusout"&&pf()}function Jg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ja(Li)}function Ig(e,t){if(e==="click")return Ja(t)}function $g(e,t){if(e==="input"||e==="change")return Ja(t)}function Wg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:Wg;function Bi(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var o=l[a];if(!Nl.call(t,o)||!jt(e[o],t[o]))return!1}return!0}function yf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xf(e,t){var l=yf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function bf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Va(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=Va(e.document)}return t}function Bu(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 Pg=gn&&"documentMode"in document&&11>=document.documentMode,Yl=null,Uu=null,Ui=null,Hu=!1;function Sf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Hu||Yl==null||Yl!==Va(a)||(a=Yl,"selectionStart"in a&&Bu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ui&&Bi(Ui,a)||(Ui=a,a=Br(Uu,"onSelect"),0<a.length&&(t=new Fa("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Yl)))}function ol(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Vl={animationend:ol("Animation","AnimationEnd"),animationiteration:ol("Animation","AnimationIteration"),animationstart:ol("Animation","AnimationStart"),transitionrun:ol("Transition","TransitionRun"),transitionstart:ol("Transition","TransitionStart"),transitioncancel:ol("Transition","TransitionCancel"),transitionend:ol("Transition","TransitionEnd")},qu={},zf={};gn&&(zf=document.createElement("div").style,"AnimationEvent"in window||(delete Vl.animationend.animation,delete Vl.animationiteration.animation,delete Vl.animationstart.animation),"TransitionEvent"in window||delete Vl.transitionend.transition);function cl(e){if(qu[e])return qu[e];if(!Vl[e])return e;var t=Vl[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in zf)return qu[e]=t[l];return e}var kf=cl("animationend"),Ef=cl("animationiteration"),Cf=cl("animationstart"),ey=cl("transitionrun"),ty=cl("transitionstart"),ny=cl("transitioncancel"),wf=cl("transitionend"),Tf=new Map,Yu="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(" ");Yu.push("scrollEnd");function en(e,t){Tf.set(e,t),ul(t,[e])}var Ia=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)},Xt=[],Gl=0,Vu=0;function $a(){for(var e=Gl,t=Vu=Gl=0;t<e;){var l=Xt[t];Xt[t++]=null;var a=Xt[t];Xt[t++]=null;var o=Xt[t];Xt[t++]=null;var h=Xt[t];if(Xt[t++]=null,a!==null&&o!==null){var y=a.pending;y===null?o.next=o:(o.next=y.next,y.next=o),a.pending=o}h!==0&&Af(l,o,h)}}function Wa(e,t,l,a){Xt[Gl++]=e,Xt[Gl++]=t,Xt[Gl++]=l,Xt[Gl++]=a,Vu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Gu(e,t,l,a){return Wa(e,t,l,a),Pa(e)}function fl(e,t){return Wa(e,null,null,t),Pa(e)}function Af(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var o=!1,h=e.return;h!==null;)h.childLanes|=l,a=h.alternate,a!==null&&(a.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-Ve(l),e=h.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=l|536870912),h):null}function Pa(e){if(50<ra)throw ra=0,Ws=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Xl={};function ly(e,t,l,a){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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,t,l,a){return new ly(e,t,l,a)}function Xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yn(e,t){var l=e.alternate;return l===null?(l=Ot(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 Nf(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 er(e,t,l,a,o,h){var y=0;if(a=e,typeof e=="function")Xu(e)&&(y=1);else if(typeof e=="string")y=s1(e,l,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case se:return e=Ot(31,l,t,o),e.elementType=se,e.lanes=h,e;case _:return hl(l.children,o,h,t);case Y:y=8,o|=24;break;case M:return e=Ot(12,l,t,o|2),e.elementType=M,e.lanes=h,e;case F:return e=Ot(13,l,t,o),e.elementType=F,e.lanes=h,e;case B:return e=Ot(19,l,t,o),e.elementType=B,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j:y=10;break e;case U:y=9;break e;case I:y=11;break e;case $:y=14;break e;case ue:y=16,a=null;break e}y=29,l=Error(u(130,e===null?"null":typeof e,"")),a=null}return t=Ot(y,l,t,o),t.elementType=e,t.type=a,t.lanes=h,t}function hl(e,t,l,a){return e=Ot(7,e,a,t),e.lanes=l,e}function Qu(e,t,l){return e=Ot(6,e,null,t),e.lanes=l,e}function _f(e){var t=Ot(18,null,null,0);return t.stateNode=e,t}function Zu(e,t,l){return t=Ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Mf=new WeakMap;function Qt(e,t){if(typeof e=="object"&&e!==null){var l=Mf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ra(t)},Mf.set(e,t),t)}return{value:e,source:t,stack:Ra(t)}}var Ql=[],Zl=0,tr=null,Hi=0,Zt=[],Ft=0,Ln=null,an=1,rn="";function xn(e,t){Ql[Zl++]=Hi,Ql[Zl++]=tr,tr=e,Hi=t}function jf(e,t,l){Zt[Ft++]=an,Zt[Ft++]=rn,Zt[Ft++]=Ln,Ln=e;var a=an;e=rn;var o=32-Ve(a)-1;a&=~(1<<o),l+=1;var h=32-Ve(t)+o;if(30<h){var y=o-o%5;h=(a&(1<<y)-1).toString(32),a>>=y,o-=y,an=1<<32-Ve(t)+o|l<<o|a,rn=h+e}else an=1<<h|l<<o|a,rn=e}function Fu(e){e.return!==null&&(xn(e,1),jf(e,1,0))}function Ku(e){for(;e===tr;)tr=Ql[--Zl],Ql[Zl]=null,Hi=Ql[--Zl],Ql[Zl]=null;for(;e===Ln;)Ln=Zt[--Ft],Zt[Ft]=null,rn=Zt[--Ft],Zt[Ft]=null,an=Zt[--Ft],Zt[Ft]=null}function Of(e,t){Zt[Ft++]=an,Zt[Ft++]=rn,Zt[Ft++]=Ln,an=t.id,rn=t.overflow,Ln=e}var ct=null,Ze=null,Ne=!1,Bn=null,Kt=!1,Ju=Error(u(519));function Un(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw qi(Qt(t,e)),Ju}function Df(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[ot]=e,t[zt]=a,l){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(l=0;l<sa.length;l++)Ee(sa[l],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),Zc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),Kc(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||$d(t.textContent,l)?(a.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),a.onScroll!=null&&Ee("scroll",t),a.onScrollEnd!=null&&Ee("scrollend",t),a.onClick!=null&&(t.onclick=pn),t=!0):t=!1,t||Un(e,!0)}function Rf(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:Kt=!1;return;case 27:case 3:Kt=!0;return;default:ct=ct.return}}function Fl(e){if(e!==ct)return!1;if(!Ne)return Rf(e),Ne=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||mo(e.type,e.memoizedProps)),l=!l),l&&Ze&&Un(e),Rf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ze=rm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ze=rm(e)}else t===27?(t=Ze,Wn(e.type)?(e=bo,bo=null,Ze=e):Ze=t):Ze=ct?It(e.stateNode.nextSibling):null;return!0}function dl(){Ze=ct=null,Ne=!1}function Iu(){var e=Bn;return e!==null&&(Tt===null?Tt=e:Tt.push.apply(Tt,e),Bn=null),e}function qi(e){Bn===null?Bn=[e]:Bn.push(e)}var $u=T(null),ml=null,bn=null;function Hn(e,t,l){k($u,t._currentValue),t._currentValue=l}function vn(e){e._currentValue=$u.current,G($u)}function Wu(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Pu(e,t,l,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var h=o.dependencies;if(h!==null){var y=o.child;h=h.firstContext;e:for(;h!==null;){var z=h;h=o;for(var C=0;C<t.length;C++)if(z.context===t[C]){h.lanes|=l,z=h.alternate,z!==null&&(z.lanes|=l),Wu(h.return,l,e),a||(y=null);break e}h=z.next}}else if(o.tag===18){if(y=o.return,y===null)throw Error(u(341));y.lanes|=l,h=y.alternate,h!==null&&(h.lanes|=l),Wu(y,l,e),y=null}else y=o.child;if(y!==null)y.return=o;else for(y=o;y!==null;){if(y===e){y=null;break}if(o=y.sibling,o!==null){o.return=y.return,y=o;break}y=y.return}o=y}}function Kl(e,t,l,a){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 y=o.alternate;if(y===null)throw Error(u(387));if(y=y.memoizedProps,y!==null){var z=o.type;jt(o.pendingProps.value,y.value)||(e!==null?e.push(z):e=[z])}}else if(o===we.current){if(y=o.alternate,y===null)throw Error(u(387));y.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(da):e=[da])}o=o.return}e!==null&&Pu(t,e,l,a),t.flags|=262144}function nr(e){for(e=e.firstContext;e!==null;){if(!jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pl(e){ml=e,bn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return Lf(ml,e)}function lr(e,t){return ml===null&&pl(e),Lf(e,t)}function Lf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},bn===null){if(e===null)throw Error(u(308));bn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else bn=bn.next=t;return l}var iy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},ay=n.unstable_scheduleCallback,ry=n.unstable_NormalPriority,et={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function es(){return{controller:new iy,data:new Map,refCount:0}}function Yi(e){e.refCount--,e.refCount===0&&ay(ry,function(){e.controller.abort()})}var Vi=null,ts=0,Jl=0,Il=null;function uy(e,t){if(Vi===null){var l=Vi=[];ts=0,Jl=io(),Il={status:"pending",value:void 0,then:function(a){l.push(a)}}}return ts++,t.then(Bf,Bf),t}function Bf(){if(--ts===0&&Vi!==null){Il!==null&&(Il.status="fulfilled");var e=Vi;Vi=null,Jl=0,Il=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function sy(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(o){l.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<l.length;o++)(0,l[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<l.length;o++)(0,l[o])(void 0)}),a}var Uf=L.S;L.S=function(e,t){Sd=yt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&uy(e,t),Uf!==null&&Uf(e,t)};var gl=T(null);function ns(){var e=gl.current;return e!==null?e:Ge.pooledCache}function ir(e,t){t===null?k(gl,gl.current):k(gl,t.pool)}function Hf(){var e=ns();return e===null?null:{parent:et._currentValue,pool:e}}var $l=Error(u(460)),ls=Error(u(474)),ar=Error(u(542)),rr={then:function(){}};function qf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Yf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(pn,pn),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gf(e),e;default:if(typeof t.status=="string")t.then(pn,pn);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gf(e),e}throw xl=t,$l}}function yl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(xl=l,$l):l}}var xl=null;function Vf(){if(xl===null)throw Error(u(459));var e=xl;return xl=null,e}function Gf(e){if(e===$l||e===ar)throw Error(u(483))}var Wl=null,Gi=0;function ur(e){var t=Gi;return Gi+=1,Wl===null&&(Wl=[]),Yf(Wl,e,t)}function Xi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function sr(e,t){throw t.$$typeof===b?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Xf(e){function t(N,A){if(e){var O=N.deletions;O===null?(N.deletions=[A],N.flags|=16):O.push(A)}}function l(N,A){if(!e)return null;for(;A!==null;)t(N,A),A=A.sibling;return null}function a(N){for(var A=new Map;N!==null;)N.key!==null?A.set(N.key,N):A.set(N.index,N),N=N.sibling;return A}function o(N,A){return N=yn(N,A),N.index=0,N.sibling=null,N}function h(N,A,O){return N.index=O,e?(O=N.alternate,O!==null?(O=O.index,O<A?(N.flags|=67108866,A):O):(N.flags|=67108866,A)):(N.flags|=1048576,A)}function y(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function z(N,A,O,Q){return A===null||A.tag!==6?(A=Qu(O,N.mode,Q),A.return=N,A):(A=o(A,O),A.return=N,A)}function C(N,A,O,Q){var ce=O.type;return ce===_?V(N,A,O.props.children,Q,O.key):A!==null&&(A.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===ue&&yl(ce)===A.type)?(A=o(A,O.props),Xi(A,O),A.return=N,A):(A=er(O.type,O.key,O.props,null,N.mode,Q),Xi(A,O),A.return=N,A)}function D(N,A,O,Q){return A===null||A.tag!==4||A.stateNode.containerInfo!==O.containerInfo||A.stateNode.implementation!==O.implementation?(A=Zu(O,N.mode,Q),A.return=N,A):(A=o(A,O.children||[]),A.return=N,A)}function V(N,A,O,Q,ce){return A===null||A.tag!==7?(A=hl(O,N.mode,Q,ce),A.return=N,A):(A=o(A,O),A.return=N,A)}function Z(N,A,O){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Qu(""+A,N.mode,O),A.return=N,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case v:return O=er(A.type,A.key,A.props,null,N.mode,O),Xi(O,A),O.return=N,O;case w:return A=Zu(A,N.mode,O),A.return=N,A;case ue:return A=yl(A),Z(N,A,O)}if(W(A)||te(A))return A=hl(A,N.mode,O,null),A.return=N,A;if(typeof A.then=="function")return Z(N,ur(A),O);if(A.$$typeof===j)return Z(N,lr(N,A),O);sr(N,A)}return null}function R(N,A,O,Q){var ce=A!==null?A.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return ce!==null?null:z(N,A,""+O,Q);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case v:return O.key===ce?C(N,A,O,Q):null;case w:return O.key===ce?D(N,A,O,Q):null;case ue:return O=yl(O),R(N,A,O,Q)}if(W(O)||te(O))return ce!==null?null:V(N,A,O,Q,null);if(typeof O.then=="function")return R(N,A,ur(O),Q);if(O.$$typeof===j)return R(N,A,lr(N,O),Q);sr(N,O)}return null}function q(N,A,O,Q,ce){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return N=N.get(O)||null,z(A,N,""+Q,ce);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case v:return N=N.get(Q.key===null?O:Q.key)||null,C(A,N,Q,ce);case w:return N=N.get(Q.key===null?O:Q.key)||null,D(A,N,Q,ce);case ue:return Q=yl(Q),q(N,A,O,Q,ce)}if(W(Q)||te(Q))return N=N.get(O)||null,V(A,N,Q,ce,null);if(typeof Q.then=="function")return q(N,A,O,ur(Q),ce);if(Q.$$typeof===j)return q(N,A,O,lr(A,Q),ce);sr(A,Q)}return null}function le(N,A,O,Q){for(var ce=null,je=null,ae=A,xe=A=0,Ae=null;ae!==null&&xe<O.length;xe++){ae.index>xe?(Ae=ae,ae=null):Ae=ae.sibling;var Oe=R(N,ae,O[xe],Q);if(Oe===null){ae===null&&(ae=Ae);break}e&&ae&&Oe.alternate===null&&t(N,ae),A=h(Oe,A,xe),je===null?ce=Oe:je.sibling=Oe,je=Oe,ae=Ae}if(xe===O.length)return l(N,ae),Ne&&xn(N,xe),ce;if(ae===null){for(;xe<O.length;xe++)ae=Z(N,O[xe],Q),ae!==null&&(A=h(ae,A,xe),je===null?ce=ae:je.sibling=ae,je=ae);return Ne&&xn(N,xe),ce}for(ae=a(ae);xe<O.length;xe++)Ae=q(ae,N,xe,O[xe],Q),Ae!==null&&(e&&Ae.alternate!==null&&ae.delete(Ae.key===null?xe:Ae.key),A=h(Ae,A,xe),je===null?ce=Ae:je.sibling=Ae,je=Ae);return e&&ae.forEach(function(ll){return t(N,ll)}),Ne&&xn(N,xe),ce}function de(N,A,O,Q){if(O==null)throw Error(u(151));for(var ce=null,je=null,ae=A,xe=A=0,Ae=null,Oe=O.next();ae!==null&&!Oe.done;xe++,Oe=O.next()){ae.index>xe?(Ae=ae,ae=null):Ae=ae.sibling;var ll=R(N,ae,Oe.value,Q);if(ll===null){ae===null&&(ae=Ae);break}e&&ae&&ll.alternate===null&&t(N,ae),A=h(ll,A,xe),je===null?ce=ll:je.sibling=ll,je=ll,ae=Ae}if(Oe.done)return l(N,ae),Ne&&xn(N,xe),ce;if(ae===null){for(;!Oe.done;xe++,Oe=O.next())Oe=Z(N,Oe.value,Q),Oe!==null&&(A=h(Oe,A,xe),je===null?ce=Oe:je.sibling=Oe,je=Oe);return Ne&&xn(N,xe),ce}for(ae=a(ae);!Oe.done;xe++,Oe=O.next())Oe=q(ae,N,xe,Oe.value,Q),Oe!==null&&(e&&Oe.alternate!==null&&ae.delete(Oe.key===null?xe:Oe.key),A=h(Oe,A,xe),je===null?ce=Oe:je.sibling=Oe,je=Oe);return e&&ae.forEach(function(b1){return t(N,b1)}),Ne&&xn(N,xe),ce}function Ye(N,A,O,Q){if(typeof O=="object"&&O!==null&&O.type===_&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case v:e:{for(var ce=O.key;A!==null;){if(A.key===ce){if(ce=O.type,ce===_){if(A.tag===7){l(N,A.sibling),Q=o(A,O.props.children),Q.return=N,N=Q;break e}}else if(A.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===ue&&yl(ce)===A.type){l(N,A.sibling),Q=o(A,O.props),Xi(Q,O),Q.return=N,N=Q;break e}l(N,A);break}else t(N,A);A=A.sibling}O.type===_?(Q=hl(O.props.children,N.mode,Q,O.key),Q.return=N,N=Q):(Q=er(O.type,O.key,O.props,null,N.mode,Q),Xi(Q,O),Q.return=N,N=Q)}return y(N);case w:e:{for(ce=O.key;A!==null;){if(A.key===ce)if(A.tag===4&&A.stateNode.containerInfo===O.containerInfo&&A.stateNode.implementation===O.implementation){l(N,A.sibling),Q=o(A,O.children||[]),Q.return=N,N=Q;break e}else{l(N,A);break}else t(N,A);A=A.sibling}Q=Zu(O,N.mode,Q),Q.return=N,N=Q}return y(N);case ue:return O=yl(O),Ye(N,A,O,Q)}if(W(O))return le(N,A,O,Q);if(te(O)){if(ce=te(O),typeof ce!="function")throw Error(u(150));return O=ce.call(O),de(N,A,O,Q)}if(typeof O.then=="function")return Ye(N,A,ur(O),Q);if(O.$$typeof===j)return Ye(N,A,lr(N,O),Q);sr(N,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,A!==null&&A.tag===6?(l(N,A.sibling),Q=o(A,O),Q.return=N,N=Q):(l(N,A),Q=Qu(O,N.mode,Q),Q.return=N,N=Q),y(N)):l(N,A)}return function(N,A,O,Q){try{Gi=0;var ce=Ye(N,A,O,Q);return Wl=null,ce}catch(ae){if(ae===$l||ae===ar)throw ae;var je=Ot(29,ae,null,N.mode);return je.lanes=Q,je.return=N,je}finally{}}}var bl=Xf(!0),Qf=Xf(!1),qn=!1;function is(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function as(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 Yn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Vn(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(De&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=Pa(e),Af(e,null,l),t}return Wa(e,a,t,l),Pa(e)}function Qi(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Rc(e,l)}}function rs(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var o=null,h=null;if(l=l.firstBaseUpdate,l!==null){do{var y={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};h===null?o=h=y:h=h.next=y,l=l.next}while(l!==null);h===null?o=h=t:h=h.next=t}else o=h=t;l={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:h,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var us=!1;function Zi(){if(us){var e=Il;if(e!==null)throw e}}function Fi(e,t,l,a){us=!1;var o=e.updateQueue;qn=!1;var h=o.firstBaseUpdate,y=o.lastBaseUpdate,z=o.shared.pending;if(z!==null){o.shared.pending=null;var C=z,D=C.next;C.next=null,y===null?h=D:y.next=D,y=C;var V=e.alternate;V!==null&&(V=V.updateQueue,z=V.lastBaseUpdate,z!==y&&(z===null?V.firstBaseUpdate=D:z.next=D,V.lastBaseUpdate=C))}if(h!==null){var Z=o.baseState;y=0,V=D=C=null,z=h;do{var R=z.lane&-536870913,q=R!==z.lane;if(q?(Te&R)===R:(a&R)===R){R!==0&&R===Jl&&(us=!0),V!==null&&(V=V.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var le=e,de=z;R=t;var Ye=l;switch(de.tag){case 1:if(le=de.payload,typeof le=="function"){Z=le.call(Ye,Z,R);break e}Z=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=de.payload,R=typeof le=="function"?le.call(Ye,Z,R):le,R==null)break e;Z=g({},Z,R);break e;case 2:qn=!0}}R=z.callback,R!==null&&(e.flags|=64,q&&(e.flags|=8192),q=o.callbacks,q===null?o.callbacks=[R]:q.push(R))}else q={lane:R,tag:z.tag,payload:z.payload,callback:z.callback,next:null},V===null?(D=V=q,C=Z):V=V.next=q,y|=R;if(z=z.next,z===null){if(z=o.shared.pending,z===null)break;q=z,z=q.next,q.next=null,o.lastBaseUpdate=q,o.shared.pending=null}}while(!0);V===null&&(C=Z),o.baseState=C,o.firstBaseUpdate=D,o.lastBaseUpdate=V,h===null&&(o.shared.lanes=0),Fn|=y,e.lanes=y,e.memoizedState=Z}}function Zf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Zf(l[e],t)}var Pl=T(null),or=T(0);function Kf(e,t){e=Nn,k(or,e),k(Pl,t),Nn=e|t.baseLanes}function ss(){k(or,Nn),k(Pl,Pl.current)}function os(){Nn=or.current,G(Pl),G(or)}var Dt=T(null),Jt=null;function Gn(e){var t=e.alternate;k(We,We.current&1),k(Dt,e),Jt===null&&(t===null||Pl.current!==null||t.memoizedState!==null)&&(Jt=e)}function cs(e){k(We,We.current),k(Dt,e),Jt===null&&(Jt=e)}function Jf(e){e.tag===22?(k(We,We.current),k(Dt,e),Jt===null&&(Jt=e)):Xn()}function Xn(){k(We,We.current),k(Dt,Dt.current)}function Rt(e){G(Dt),Jt===e&&(Jt=null),G(We)}var We=T(0);function cr(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||yo(l)||xo(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 Sn=0,ye=null,He=null,tt=null,fr=!1,ei=!1,vl=!1,hr=0,Ki=0,ti=null,oy=0;function Ie(){throw Error(u(321))}function fs(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!jt(e[l],t[l]))return!1;return!0}function hs(e,t,l,a,o,h){return Sn=h,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?jh:Ts,vl=!1,h=l(a,o),vl=!1,ei&&(h=$f(t,l,a,o)),If(e),h}function If(e){L.H=$i;var t=He!==null&&He.next!==null;if(Sn=0,tt=He=ye=null,fr=!1,Ki=0,ti=null,t)throw Error(u(300));e===null||nt||(e=e.dependencies,e!==null&&nr(e)&&(nt=!0))}function $f(e,t,l,a){ye=e;var o=0;do{if(ei&&(ti=null),Ki=0,ei=!1,25<=o)throw Error(u(301));if(o+=1,tt=He=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}L.H=Oh,h=t(l,a)}while(ei);return h}function cy(){var e=L.H,t=e.useState()[0];return t=typeof t.then=="function"?Ji(t):t,e=e.useState()[0],(He!==null?He.memoizedState:null)!==e&&(ye.flags|=1024),t}function ds(){var e=hr!==0;return hr=0,e}function ms(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function ps(e){if(fr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fr=!1}Sn=0,tt=He=ye=null,ei=!1,Ki=hr=0,ti=null}function bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?ye.memoizedState=tt=e:tt=tt.next=e,tt}function Pe(){if(He===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=tt===null?ye.memoizedState:tt.next;if(t!==null)tt=t,He=e;else{if(e===null)throw ye.alternate===null?Error(u(467)):Error(u(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},tt===null?ye.memoizedState=tt=e:tt=tt.next=e}return tt}function dr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ji(e){var t=Ki;return Ki+=1,ti===null&&(ti=[]),e=Yf(ti,e,t),t=ye,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?jh:Ts),e}function mr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ji(e);if(e.$$typeof===j)return ft(e)}throw Error(u(438,String(e)))}function gs(e){var t=null,l=ye.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ye.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=dr(),ye.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=H;return t.index++,l}function zn(e,t){return typeof t=="function"?t(e):t}function pr(e){var t=Pe();return ys(t,He,e)}function ys(e,t,l){var a=e.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=l;var o=e.baseQueue,h=a.pending;if(h!==null){if(o!==null){var y=o.next;o.next=h.next,h.next=y}t.baseQueue=o=h,a.pending=null}if(h=e.baseState,o===null)e.memoizedState=h;else{t=o.next;var z=y=null,C=null,D=t,V=!1;do{var Z=D.lane&-536870913;if(Z!==D.lane?(Te&Z)===Z:(Sn&Z)===Z){var R=D.revertLane;if(R===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),Z===Jl&&(V=!0);else if((Sn&R)===R){D=D.next,R===Jl&&(V=!0);continue}else Z={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},C===null?(z=C=Z,y=h):C=C.next=Z,ye.lanes|=R,Fn|=R;Z=D.action,vl&&l(h,Z),h=D.hasEagerState?D.eagerState:l(h,Z)}else R={lane:Z,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},C===null?(z=C=R,y=h):C=C.next=R,ye.lanes|=Z,Fn|=Z;D=D.next}while(D!==null&&D!==t);if(C===null?y=h:C.next=z,!jt(h,e.memoizedState)&&(nt=!0,V&&(l=Il,l!==null)))throw l;e.memoizedState=h,e.baseState=y,e.baseQueue=C,a.lastRenderedState=h}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function xs(e){var t=Pe(),l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var a=l.dispatch,o=l.pending,h=t.memoizedState;if(o!==null){l.pending=null;var y=o=o.next;do h=e(h,y.action),y=y.next;while(y!==o);jt(h,t.memoizedState)||(nt=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),l.lastRenderedState=h}return[h,a]}function Wf(e,t,l){var a=ye,o=Pe(),h=Ne;if(h){if(l===void 0)throw Error(u(407));l=l()}else l=t();var y=!jt((He||o).memoizedState,l);if(y&&(o.memoizedState=l,nt=!0),o=o.queue,Ss(th.bind(null,a,o,e),[e]),o.getSnapshot!==t||y||tt!==null&&tt.memoizedState.tag&1){if(a.flags|=2048,ni(9,{destroy:void 0},eh.bind(null,a,o,l,t),null),Ge===null)throw Error(u(349));h||(Sn&127)!==0||Pf(a,t,l)}return l}function Pf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ye.updateQueue,t===null?(t=dr(),ye.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function eh(e,t,l,a){t.value=l,t.getSnapshot=a,nh(t)&&lh(e)}function th(e,t,l){return l(function(){nh(t)&&lh(e)})}function nh(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!jt(e,l)}catch{return!0}}function lh(e){var t=fl(e,2);t!==null&&At(t,e,2)}function bs(e){var t=bt();if(typeof e=="function"){var l=e;if(e=l(),vl){St(!0);try{l()}finally{St(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:e},t}function ih(e,t,l,a){return e.baseState=l,ys(e,He,typeof a=="function"?a:zn)}function fy(e,t,l,a,o){if(xr(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(y){h.listeners.push(y)}};L.T!==null?l(!0):h.isTransition=!1,a(h),l=t.pending,l===null?(h.next=t.pending=h,ah(t,h)):(h.next=l.next,t.pending=l.next=h)}}function ah(e,t){var l=t.action,a=t.payload,o=e.state;if(t.isTransition){var h=L.T,y={};L.T=y;try{var z=l(o,a),C=L.S;C!==null&&C(y,z),rh(e,t,z)}catch(D){vs(e,t,D)}finally{h!==null&&y.types!==null&&(h.types=y.types),L.T=h}}else try{h=l(o,a),rh(e,t,h)}catch(D){vs(e,t,D)}}function rh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){uh(e,t,a)},function(a){return vs(e,t,a)}):uh(e,t,l)}function uh(e,t,l){t.status="fulfilled",t.value=l,sh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ah(e,l)))}function vs(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,sh(t),t=t.next;while(t!==a)}e.action=null}function sh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function oh(e,t){return t}function ch(e,t){if(Ne){var l=Ge.formState;if(l!==null){e:{var a=ye;if(Ne){if(Ze){t:{for(var o=Ze,h=Kt;o.nodeType!==8;){if(!h){o=null;break t}if(o=It(o.nextSibling),o===null){o=null;break t}}h=o.data,o=h==="F!"||h==="F"?o:null}if(o){Ze=It(o.nextSibling),a=o.data==="F!";break e}}Un(a)}a=!1}a&&(t=l[0])}}return l=bt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oh,lastRenderedState:t},l.queue=a,l=Nh.bind(null,ye,a),a.dispatch=l,a=bs(!1),h=ws.bind(null,ye,!1,a.queue),a=bt(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,l=fy.bind(null,ye,o,h,l),o.dispatch=l,a.memoizedState=e,[t,l,!1]}function fh(e){var t=Pe();return hh(t,He,e)}function hh(e,t,l){if(t=ys(e,t,oh)[0],e=pr(zn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ji(t)}catch(y){throw y===$l?ar:y}else a=t;t=Pe();var o=t.queue,h=o.dispatch;return l!==t.memoizedState&&(ye.flags|=2048,ni(9,{destroy:void 0},hy.bind(null,o,l),null)),[a,h,e]}function hy(e,t){e.action=t}function dh(e){var t=Pe(),l=He;if(l!==null)return hh(t,l,e);Pe(),t=t.memoizedState,l=Pe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function ni(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ye.updateQueue,t===null&&(t=dr(),ye.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function mh(){return Pe().memoizedState}function gr(e,t,l,a){var o=bt();ye.flags|=e,o.memoizedState=ni(1|t,{destroy:void 0},l,a===void 0?null:a)}function yr(e,t,l,a){var o=Pe();a=a===void 0?null:a;var h=o.memoizedState.inst;He!==null&&a!==null&&fs(a,He.memoizedState.deps)?o.memoizedState=ni(t,h,l,a):(ye.flags|=e,o.memoizedState=ni(1|t,h,l,a))}function ph(e,t){gr(8390656,8,e,t)}function Ss(e,t){yr(2048,8,e,t)}function dy(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=dr(),ye.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function gh(e){var t=Pe().memoizedState;return dy({ref:t,nextImpl:e}),function(){if((De&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function yh(e,t){return yr(4,2,e,t)}function xh(e,t){return yr(4,4,e,t)}function bh(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 vh(e,t,l){l=l!=null?l.concat([e]):null,yr(4,4,bh.bind(null,t,e),l)}function zs(){}function Sh(e,t){var l=Pe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&fs(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function zh(e,t){var l=Pe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&fs(t,a[1]))return a[0];if(a=e(),vl){St(!0);try{e()}finally{St(!1)}}return l.memoizedState=[a,t],a}function ks(e,t,l){return l===void 0||(Sn&1073741824)!==0&&(Te&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=kd(),ye.lanes|=e,Fn|=e,l)}function kh(e,t,l,a){return jt(l,t)?l:Pl.current!==null?(e=ks(e,l,a),jt(e,t)||(nt=!0),e):(Sn&42)===0||(Sn&1073741824)!==0&&(Te&261930)===0?(nt=!0,e.memoizedState=l):(e=kd(),ye.lanes|=e,Fn|=e,t)}function Eh(e,t,l,a,o){var h=K.p;K.p=h!==0&&8>h?h:8;var y=L.T,z={};L.T=z,ws(e,!1,t,l);try{var C=o(),D=L.S;if(D!==null&&D(z,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var V=sy(C,a);Ii(e,t,V,Ut(e))}else Ii(e,t,a,Ut(e))}catch(Z){Ii(e,t,{then:function(){},status:"rejected",reason:Z},Ut())}finally{K.p=h,y!==null&&z.types!==null&&(y.types=z.types),L.T=y}}function my(){}function Es(e,t,l,a){if(e.tag!==5)throw Error(u(476));var o=Ch(e).queue;Eh(e,o,t,re,l===null?my:function(){return wh(e),l(a)})}function Ch(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:re},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function wh(e){var t=Ch(e);t.next===null&&(t=e.alternate.memoizedState),Ii(e,t.next.queue,{},Ut())}function Cs(){return ft(da)}function Th(){return Pe().memoizedState}function Ah(){return Pe().memoizedState}function py(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ut();e=Yn(l);var a=Vn(t,e,l);a!==null&&(At(a,t,l),Qi(a,t,l)),t={cache:es()},e.payload=t;return}t=t.return}}function gy(e,t,l){var a=Ut();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},xr(e)?_h(t,l):(l=Gu(e,t,l,a),l!==null&&(At(l,e,a),Mh(l,t,a)))}function Nh(e,t,l){var a=Ut();Ii(e,t,l,a)}function Ii(e,t,l,a){var o={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(xr(e))_h(t,o);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=t.lastRenderedReducer,h!==null))try{var y=t.lastRenderedState,z=h(y,l);if(o.hasEagerState=!0,o.eagerState=z,jt(z,y))return Wa(e,t,o,0),Ge===null&&$a(),!1}catch{}finally{}if(l=Gu(e,t,o,a),l!==null)return At(l,e,a),Mh(l,t,a),!0}return!1}function ws(e,t,l,a){if(a={lane:2,revertLane:io(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},xr(e)){if(t)throw Error(u(479))}else t=Gu(e,l,a,2),t!==null&&At(t,e,2)}function xr(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function _h(e,t){ei=fr=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Mh(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Rc(e,l)}}var $i={readContext:ft,use:mr,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useLayoutEffect:Ie,useInsertionEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useSyncExternalStore:Ie,useId:Ie,useHostTransitionStatus:Ie,useFormState:Ie,useActionState:Ie,useOptimistic:Ie,useMemoCache:Ie,useCacheRefresh:Ie};$i.useEffectEvent=Ie;var jh={readContext:ft,use:mr,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:ph,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,gr(4194308,4,bh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return gr(4194308,4,e,t)},useInsertionEffect:function(e,t){gr(4,2,e,t)},useMemo:function(e,t){var l=bt();t=t===void 0?null:t;var a=e();if(vl){St(!0);try{e()}finally{St(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=bt();if(l!==void 0){var o=l(t);if(vl){St(!0);try{l(t)}finally{St(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=gy.bind(null,ye,e),[a.memoizedState,e]},useRef:function(e){var t=bt();return e={current:e},t.memoizedState=e},useState:function(e){e=bs(e);var t=e.queue,l=Nh.bind(null,ye,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:zs,useDeferredValue:function(e,t){var l=bt();return ks(l,e,t)},useTransition:function(){var e=bs(!1);return e=Eh.bind(null,ye,e.queue,!0,!1),bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ye,o=bt();if(Ne){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Ge===null)throw Error(u(349));(Te&127)!==0||Pf(a,t,l)}o.memoizedState=l;var h={value:l,getSnapshot:t};return o.queue=h,ph(th.bind(null,a,h,e),[e]),a.flags|=2048,ni(9,{destroy:void 0},eh.bind(null,a,h,l,t),null),l},useId:function(){var e=bt(),t=Ge.identifierPrefix;if(Ne){var l=rn,a=an;l=(a&~(1<<32-Ve(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=hr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=oy++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Cs,useFormState:ch,useActionState:ch,useOptimistic:function(e){var t=bt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=ws.bind(null,ye,!0,l),l.dispatch=t,[e,t]},useMemoCache:gs,useCacheRefresh:function(){return bt().memoizedState=py.bind(null,ye)},useEffectEvent:function(e){var t=bt(),l={impl:e};return t.memoizedState=l,function(){if((De&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},Ts={readContext:ft,use:mr,useCallback:Sh,useContext:ft,useEffect:Ss,useImperativeHandle:vh,useInsertionEffect:yh,useLayoutEffect:xh,useMemo:zh,useReducer:pr,useRef:mh,useState:function(){return pr(zn)},useDebugValue:zs,useDeferredValue:function(e,t){var l=Pe();return kh(l,He.memoizedState,e,t)},useTransition:function(){var e=pr(zn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Ji(e),t]},useSyncExternalStore:Wf,useId:Th,useHostTransitionStatus:Cs,useFormState:fh,useActionState:fh,useOptimistic:function(e,t){var l=Pe();return ih(l,He,e,t)},useMemoCache:gs,useCacheRefresh:Ah};Ts.useEffectEvent=gh;var Oh={readContext:ft,use:mr,useCallback:Sh,useContext:ft,useEffect:Ss,useImperativeHandle:vh,useInsertionEffect:yh,useLayoutEffect:xh,useMemo:zh,useReducer:xs,useRef:mh,useState:function(){return xs(zn)},useDebugValue:zs,useDeferredValue:function(e,t){var l=Pe();return He===null?ks(l,e,t):kh(l,He.memoizedState,e,t)},useTransition:function(){var e=xs(zn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Ji(e),t]},useSyncExternalStore:Wf,useId:Th,useHostTransitionStatus:Cs,useFormState:dh,useActionState:dh,useOptimistic:function(e,t){var l=Pe();return He!==null?ih(l,He,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:gs,useCacheRefresh:Ah};Oh.useEffectEvent=gh;function As(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:g({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ns={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Ut(),o=Yn(a);o.payload=t,l!=null&&(o.callback=l),t=Vn(e,o,a),t!==null&&(At(t,e,a),Qi(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Ut(),o=Yn(a);o.tag=1,o.payload=t,l!=null&&(o.callback=l),t=Vn(e,o,a),t!==null&&(At(t,e,a),Qi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Ut(),a=Yn(l);a.tag=2,t!=null&&(a.callback=t),t=Vn(e,a,l),t!==null&&(At(t,e,l),Qi(t,e,l))}};function Dh(e,t,l,a,o,h,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,h,y):t.prototype&&t.prototype.isPureReactComponent?!Bi(l,a)||!Bi(o,h):!0}function Rh(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Ns.enqueueReplaceState(t,t.state,null)}function Sl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}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 Lh(e){Ia(e)}function Bh(e){console.error(e)}function Uh(e){Ia(e)}function br(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Hh(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function _s(e,t,l){return l=Yn(l),l.tag=3,l.payload={element:null},l.callback=function(){br(e,t)},l}function qh(e){return e=Yn(e),e.tag=3,e}function Yh(e,t,l,a){var o=l.type.getDerivedStateFromError;if(typeof o=="function"){var h=a.value;e.payload=function(){return o(h)},e.callback=function(){Hh(t,l,a)}}var y=l.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Hh(t,l,a),typeof o!="function"&&(Kn===null?Kn=new Set([this]):Kn.add(this));var z=a.stack;this.componentDidCatch(a.value,{componentStack:z!==null?z:""})})}function yy(e,t,l,a,o){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Kl(t,l,o,!0),l=Dt.current,l!==null){switch(l.tag){case 31:case 13:return Jt===null?Mr():l.alternate===null&&$e===0&&($e=3),l.flags&=-257,l.flags|=65536,l.lanes=o,a===rr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),to(e,a,o)),!1;case 22:return l.flags|=65536,a===rr?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),to(e,a,o)),!1}throw Error(u(435,l.tag))}return to(e,a,o),Mr(),!1}if(Ne)return t=Dt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==Ju&&(e=Error(u(422),{cause:a}),qi(Qt(e,l)))):(a!==Ju&&(t=Error(u(423),{cause:a}),qi(Qt(t,l))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=Qt(a,l),o=_s(e.stateNode,a,o),rs(e,o),$e!==4&&($e=2)),!1;var h=Error(u(520),{cause:a});if(h=Qt(h,l),aa===null?aa=[h]:aa.push(h),$e!==4&&($e=2),t===null)return!0;a=Qt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=o&-o,l.lanes|=e,e=_s(l.stateNode,a,e),rs(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"&&(Kn===null||!Kn.has(h))))return l.flags|=65536,o&=-o,l.lanes|=o,o=qh(o),Yh(o,e,l,a),rs(l,o),!1}l=l.return}while(l!==null);return!1}var Ms=Error(u(461)),nt=!1;function ht(e,t,l,a){t.child=e===null?Qf(t,null,l,a):bl(t,e.child,l,a)}function Vh(e,t,l,a,o){l=l.render;var h=t.ref;if("ref"in a){var y={};for(var z in a)z!=="ref"&&(y[z]=a[z])}else y=a;return pl(t),a=hs(e,t,l,y,h,o),z=ds(),e!==null&&!nt?(ms(e,t,o),kn(e,t,o)):(Ne&&z&&Fu(t),t.flags|=1,ht(e,t,a,o),t.child)}function Gh(e,t,l,a,o){if(e===null){var h=l.type;return typeof h=="function"&&!Xu(h)&&h.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=h,Xh(e,t,h,a,o)):(e=er(l.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(h=e.child,!Hs(e,o)){var y=h.memoizedProps;if(l=l.compare,l=l!==null?l:Bi,l(y,a)&&e.ref===t.ref)return kn(e,t,o)}return t.flags|=1,e=yn(h,a),e.ref=t.ref,e.return=t,t.child=e}function Xh(e,t,l,a,o){if(e!==null){var h=e.memoizedProps;if(Bi(h,a)&&e.ref===t.ref)if(nt=!1,t.pendingProps=a=h,Hs(e,o))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,kn(e,t,o)}return js(e,t,l,a,o)}function Qh(e,t,l,a){var o=a.children,h=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(h=h!==null?h.baseLanes|l:l,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~h}else a=0,t.child=null;return Zh(e,t,h,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ir(t,h!==null?h.cachePool:null),h!==null?Kf(t,h):ss(),Jf(t);else return a=t.lanes=536870912,Zh(e,t,h!==null?h.baseLanes|l:l,l,a)}else h!==null?(ir(t,h.cachePool),Kf(t,h),Xn(),t.memoizedState=null):(e!==null&&ir(t,null),ss(),Xn());return ht(e,t,o,l),t.child}function Wi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Zh(e,t,l,a,o){var h=ns();return h=h===null?null:{parent:et._currentValue,pool:h},t.memoizedState={baseLanes:l,cachePool:h},e!==null&&ir(t,null),ss(),Jf(t),e!==null&&Kl(e,t,a,!0),t.childLanes=o,null}function vr(e,t){return t=zr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Fh(e,t,l){return bl(t,e.child,null,l),e=vr(t,t.pendingProps),e.flags|=2,Rt(t),t.memoizedState=null,e}function xy(e,t,l){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ne){if(a.mode==="hidden")return e=vr(t,a),t.lanes=536870912,Wi(null,e);if(cs(t),(e=Ze)?(e=am(e,Kt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:an,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},l=_f(e),l.return=t,t.child=l,ct=t,Ze=null)):e=null,e===null)throw Un(t);return t.lanes=536870912,null}return vr(t,a)}var h=e.memoizedState;if(h!==null){var y=h.dehydrated;if(cs(t),o)if(t.flags&256)t.flags&=-257,t=Fh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(nt||Kl(e,t,l,!1),o=(l&e.childLanes)!==0,nt||o){if(a=Ge,a!==null&&(y=Lc(a,l),y!==0&&y!==h.retryLane))throw h.retryLane=y,fl(e,y),At(a,e,y),Ms;Mr(),t=Fh(e,t,l)}else e=h.treeContext,Ze=It(y.nextSibling),ct=t,Ne=!0,Bn=null,Kt=!1,e!==null&&Of(t,e),t=vr(t,a),t.flags|=4096;return t}return e=yn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Sr(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 js(e,t,l,a,o){return pl(t),l=hs(e,t,l,a,void 0,o),a=ds(),e!==null&&!nt?(ms(e,t,o),kn(e,t,o)):(Ne&&a&&Fu(t),t.flags|=1,ht(e,t,l,o),t.child)}function Kh(e,t,l,a,o,h){return pl(t),t.updateQueue=null,l=$f(t,a,l,o),If(e),a=ds(),e!==null&&!nt?(ms(e,t,h),kn(e,t,h)):(Ne&&a&&Fu(t),t.flags|=1,ht(e,t,l,h),t.child)}function Jh(e,t,l,a,o){if(pl(t),t.stateNode===null){var h=Xl,y=l.contextType;typeof y=="object"&&y!==null&&(h=ft(y)),h=new l(a,h),t.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Ns,t.stateNode=h,h._reactInternals=t,h=t.stateNode,h.props=a,h.state=t.memoizedState,h.refs={},is(t),y=l.contextType,h.context=typeof y=="object"&&y!==null?ft(y):Xl,h.state=t.memoizedState,y=l.getDerivedStateFromProps,typeof y=="function"&&(As(t,l,y,a),h.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(y=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),y!==h.state&&Ns.enqueueReplaceState(h,h.state,null),Fi(t,a,h,o),Zi(),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){h=t.stateNode;var z=t.memoizedProps,C=Sl(l,z);h.props=C;var D=h.context,V=l.contextType;y=Xl,typeof V=="object"&&V!==null&&(y=ft(V));var Z=l.getDerivedStateFromProps;V=typeof Z=="function"||typeof h.getSnapshotBeforeUpdate=="function",z=t.pendingProps!==z,V||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(z||D!==y)&&Rh(t,h,a,y),qn=!1;var R=t.memoizedState;h.state=R,Fi(t,a,h,o),Zi(),D=t.memoizedState,z||R!==D||qn?(typeof Z=="function"&&(As(t,l,Z,a),D=t.memoizedState),(C=qn||Dh(t,l,C,a,R,D,y))?(V||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=a,t.memoizedState=D),h.props=a,h.state=D,h.context=y,a=C):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{h=t.stateNode,as(e,t),y=t.memoizedProps,V=Sl(l,y),h.props=V,Z=t.pendingProps,R=h.context,D=l.contextType,C=Xl,typeof D=="object"&&D!==null&&(C=ft(D)),z=l.getDerivedStateFromProps,(D=typeof z=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(y!==Z||R!==C)&&Rh(t,h,a,C),qn=!1,R=t.memoizedState,h.state=R,Fi(t,a,h,o),Zi();var q=t.memoizedState;y!==Z||R!==q||qn||e!==null&&e.dependencies!==null&&nr(e.dependencies)?(typeof z=="function"&&(As(t,l,z,a),q=t.memoizedState),(V=qn||Dh(t,l,V,a,R,q,C)||e!==null&&e.dependencies!==null&&nr(e.dependencies))?(D||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(a,q,C),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(a,q,C)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=q),h.props=a,h.state=q,h.context=C,a=V):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),a=!1)}return h=a,Sr(e,t),a=(t.flags&128)!==0,h||a?(h=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:h.render(),t.flags|=1,e!==null&&a?(t.child=bl(t,e.child,null,o),t.child=bl(t,null,l,o)):ht(e,t,l,o),t.memoizedState=h.state,e=t.child):e=kn(e,t,o),e}function Ih(e,t,l,a){return dl(),t.flags|=256,ht(e,t,l,a),t.child}var Os={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ds(e){return{baseLanes:e,cachePool:Hf()}}function Rs(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Bt),e}function $h(e,t,l){var a=t.pendingProps,o=!1,h=(t.flags&128)!==0,y;if((y=h)||(y=e!==null&&e.memoizedState===null?!1:(We.current&2)!==0),y&&(o=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(o?Gn(t):Xn(),(e=Ze)?(e=am(e,Kt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:an,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},l=_f(e),l.return=t,t.child=l,ct=t,Ze=null)):e=null,e===null)throw Un(t);return xo(e)?t.lanes=32:t.lanes=536870912,null}var z=a.children;return a=a.fallback,o?(Xn(),o=t.mode,z=zr({mode:"hidden",children:z},o),a=hl(a,o,l,null),z.return=t,a.return=t,z.sibling=a,t.child=z,a=t.child,a.memoizedState=Ds(l),a.childLanes=Rs(e,y,l),t.memoizedState=Os,Wi(null,a)):(Gn(t),Ls(t,z))}var C=e.memoizedState;if(C!==null&&(z=C.dehydrated,z!==null)){if(h)t.flags&256?(Gn(t),t.flags&=-257,t=Bs(e,t,l)):t.memoizedState!==null?(Xn(),t.child=e.child,t.flags|=128,t=null):(Xn(),z=a.fallback,o=t.mode,a=zr({mode:"visible",children:a.children},o),z=hl(z,o,l,null),z.flags|=2,a.return=t,z.return=t,a.sibling=z,t.child=a,bl(t,e.child,null,l),a=t.child,a.memoizedState=Ds(l),a.childLanes=Rs(e,y,l),t.memoizedState=Os,t=Wi(null,a));else if(Gn(t),xo(z)){if(y=z.nextSibling&&z.nextSibling.dataset,y)var D=y.dgst;y=D,a=Error(u(419)),a.stack="",a.digest=y,qi({value:a,source:null,stack:null}),t=Bs(e,t,l)}else if(nt||Kl(e,t,l,!1),y=(l&e.childLanes)!==0,nt||y){if(y=Ge,y!==null&&(a=Lc(y,l),a!==0&&a!==C.retryLane))throw C.retryLane=a,fl(e,a),At(y,e,a),Ms;yo(z)||Mr(),t=Bs(e,t,l)}else yo(z)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,Ze=It(z.nextSibling),ct=t,Ne=!0,Bn=null,Kt=!1,e!==null&&Of(t,e),t=Ls(t,a.children),t.flags|=4096);return t}return o?(Xn(),z=a.fallback,o=t.mode,C=e.child,D=C.sibling,a=yn(C,{mode:"hidden",children:a.children}),a.subtreeFlags=C.subtreeFlags&65011712,D!==null?z=yn(D,z):(z=hl(z,o,l,null),z.flags|=2),z.return=t,a.return=t,a.sibling=z,t.child=a,Wi(null,a),a=t.child,z=e.child.memoizedState,z===null?z=Ds(l):(o=z.cachePool,o!==null?(C=et._currentValue,o=o.parent!==C?{parent:C,pool:C}:o):o=Hf(),z={baseLanes:z.baseLanes|l,cachePool:o}),a.memoizedState=z,a.childLanes=Rs(e,y,l),t.memoizedState=Os,Wi(e.child,a)):(Gn(t),l=e.child,e=l.sibling,l=yn(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=l,t.memoizedState=null,l)}function Ls(e,t){return t=zr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function zr(e,t){return e=Ot(22,e,null,t),e.lanes=0,e}function Bs(e,t,l){return bl(t,e.child,null,l),e=Ls(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Wh(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Wu(e.return,t,l)}function Us(e,t,l,a,o,h){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:o,treeForkCount:h}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=a,y.tail=l,y.tailMode=o,y.treeForkCount=h)}function Ph(e,t,l){var a=t.pendingProps,o=a.revealOrder,h=a.tail;a=a.children;var y=We.current,z=(y&2)!==0;if(z?(y=y&1|2,t.flags|=128):y&=1,k(We,y),ht(e,t,a,l),a=Ne?Hi:0,!z&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wh(e,l,t);else if(e.tag===19)Wh(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&&cr(e)===null&&(o=l),l=l.sibling;l=o,l===null?(o=t.child,t.child=null):(o=l.sibling,l.sibling=null),Us(t,!1,o,l,h,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&cr(e)===null){t.child=o;break}e=o.sibling,o.sibling=l,l=o,o=e}Us(t,!0,l,null,h,a);break;case"together":Us(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function kn(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Fn|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Kl(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=yn(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=yn(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Hs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&nr(e)))}function by(e,t,l){switch(t.tag){case 3:Ke(t,t.stateNode.containerInfo),Hn(t,et,e.memoizedState.cache),dl();break;case 27:case 5:Yt(t);break;case 4:Ke(t,t.stateNode.containerInfo);break;case 10:Hn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,cs(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Gn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?$h(e,t,l):(Gn(t),e=kn(e,t,l),e!==null?e.sibling:null);Gn(t);break;case 19:var o=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Kl(e,t,l,!1),a=(l&t.childLanes)!==0),o){if(a)return Ph(e,t,l);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),k(We,We.current),a)break;return null;case 22:return t.lanes=0,Qh(e,t,l,t.pendingProps);case 24:Hn(t,et,e.memoizedState.cache)}return kn(e,t,l)}function ed(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!Hs(e,l)&&(t.flags&128)===0)return nt=!1,by(e,t,l);nt=(e.flags&131072)!==0}else nt=!1,Ne&&(t.flags&1048576)!==0&&jf(t,Hi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=yl(t.elementType),t.type=e,typeof e=="function")Xu(e)?(a=Sl(e,a),t.tag=1,t=Jh(null,t,e,a,l)):(t.tag=0,t=js(null,t,e,a,l));else{if(e!=null){var o=e.$$typeof;if(o===I){t.tag=11,t=Vh(null,t,e,a,l);break e}else if(o===$){t.tag=14,t=Gh(null,t,e,a,l);break e}}throw t=ie(e)||e,Error(u(306,t,""))}}return t;case 0:return js(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,o=Sl(a,t.pendingProps),Jh(e,t,a,o,l);case 3:e:{if(Ke(t,t.stateNode.containerInfo),e===null)throw Error(u(387));a=t.pendingProps;var h=t.memoizedState;o=h.element,as(e,t),Fi(t,a,null,l);var y=t.memoizedState;if(a=y.cache,Hn(t,et,a),a!==h.cache&&Pu(t,[et],l,!0),Zi(),a=y.element,h.isDehydrated)if(h={element:a,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=h,t.memoizedState=h,t.flags&256){t=Ih(e,t,a,l);break e}else if(a!==o){o=Qt(Error(u(424)),t),qi(o),t=Ih(e,t,a,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(Ze=It(e.firstChild),ct=t,Ne=!0,Bn=null,Kt=!0,l=Qf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(dl(),a===o){t=kn(e,t,l);break e}ht(e,t,a,l)}t=t.child}return t;case 26:return Sr(e,t),e===null?(l=fm(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ne||(l=t.type,e=t.pendingProps,a=Ur(oe.current).createElement(l),a[ot]=t,a[zt]=e,dt(a,l,e),ut(a),t.stateNode=a):t.memoizedState=fm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Yt(t),e===null&&Ne&&(a=t.stateNode=sm(t.type,t.pendingProps,oe.current),ct=t,Kt=!0,o=Ze,Wn(t.type)?(bo=o,Ze=It(a.firstChild)):Ze=o),ht(e,t,t.pendingProps.children,l),Sr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((o=a=Ze)&&(a=Jy(a,t.type,t.pendingProps,Kt),a!==null?(t.stateNode=a,ct=t,Ze=It(a.firstChild),Kt=!1,o=!0):o=!1),o||Un(t)),Yt(t),o=t.type,h=t.pendingProps,y=e!==null?e.memoizedProps:null,a=h.children,mo(o,h)?a=null:y!==null&&mo(o,y)&&(t.flags|=32),t.memoizedState!==null&&(o=hs(e,t,cy,null,null,l),da._currentValue=o),Sr(e,t),ht(e,t,a,l),t.child;case 6:return e===null&&Ne&&((e=l=Ze)&&(l=Iy(l,t.pendingProps,Kt),l!==null?(t.stateNode=l,ct=t,Ze=null,e=!0):e=!1),e||Un(t)),null;case 13:return $h(e,t,l);case 4:return Ke(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=bl(t,null,a,l):ht(e,t,a,l),t.child;case 11:return Vh(e,t,t.type,t.pendingProps,l);case 7:return ht(e,t,t.pendingProps,l),t.child;case 8:return ht(e,t,t.pendingProps.children,l),t.child;case 12:return ht(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Hn(t,t.type,a.value),ht(e,t,a.children,l),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,pl(t),o=ft(o),a=a(o),t.flags|=1,ht(e,t,a,l),t.child;case 14:return Gh(e,t,t.type,t.pendingProps,l);case 15:return Xh(e,t,t.type,t.pendingProps,l);case 19:return Ph(e,t,l);case 31:return xy(e,t,l);case 22:return Qh(e,t,l,t.pendingProps);case 24:return pl(t),a=ft(et),e===null?(o=ns(),o===null&&(o=Ge,h=es(),o.pooledCache=h,h.refCount++,h!==null&&(o.pooledCacheLanes|=l),o=h),t.memoizedState={parent:a,cache:o},is(t),Hn(t,et,o)):((e.lanes&l)!==0&&(as(e,t),Fi(t,null,null,l),Zi()),o=e.memoizedState,h=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Hn(t,et,a)):(a=h.cache,Hn(t,et,a),a!==o.cache&&Pu(t,[et],l,!0))),ht(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function En(e){e.flags|=4}function qs(e,t,l,a,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(Td())e.flags|=8192;else throw xl=rr,ls}else e.flags&=-16777217}function td(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!gm(t))if(Td())e.flags|=8192;else throw xl=rr,ls}function kr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Oc():536870912,e.lanes|=t,ri|=t)}function Pi(e,t){if(!Ne)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 a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var o=e.child;o!==null;)l|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)l|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function vy(e,t,l){var a=t.pendingProps;switch(Ku(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Fe(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),vn(et),Ue(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Fl(t)?En(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Iu())),Fe(t),null;case 26:var o=t.type,h=t.memoizedState;return e===null?(En(t),h!==null?(Fe(t),td(t,h)):(Fe(t),qs(t,o,null,a,l))):h?h!==e.memoizedState?(En(t),Fe(t),td(t,h)):(Fe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&En(t),Fe(t),qs(t,o,e,a,l)),null;case 27:if(fn(t),l=oe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&En(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return Fe(t),null}e=ee.current,Fl(t)?Df(t):(e=sm(o,a,l),t.stateNode=e,En(t))}return Fe(t),null;case 5:if(fn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&En(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return Fe(t),null}if(h=ee.current,Fl(t))Df(t);else{var y=Ur(oe.current);switch(h){case 1:h=y.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:h=y.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":h=y.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":h=y.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":h=y.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof a.is=="string"?y.createElement("select",{is:a.is}):y.createElement("select"),a.multiple?h.multiple=!0:a.size&&(h.size=a.size);break;default:h=typeof a.is=="string"?y.createElement(o,{is:a.is}):y.createElement(o)}}h[ot]=t,h[zt]=a;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)h.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=h;e:switch(dt(h,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&En(t)}}return Fe(t),qs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&En(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=oe.current,Fl(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,o=ct,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[ot]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||$d(e.nodeValue,l)),e||Un(t,!0)}else e=Ur(e).createTextNode(a),e[ot]=t,t.stateNode=e}return Fe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Fl(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ot]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),e=!1}else l=Iu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Rt(t),t):(Rt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Fe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Fl(t),a!==null&&a.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[ot]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),o=!1}else o=Iu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Rt(t),t):(Rt(t),null)}return Rt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),h=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),h!==o&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),kr(t,t.updateQueue),Fe(t),null);case 4:return Ue(),e===null&&so(t.stateNode.containerInfo),Fe(t),null;case 10:return vn(t.type),Fe(t),null;case 19:if(G(We),a=t.memoizedState,a===null)return Fe(t),null;if(o=(t.flags&128)!==0,h=a.rendering,h===null)if(o)Pi(a,!1);else{if($e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=cr(e),h!==null){for(t.flags|=128,Pi(a,!1),e=h.updateQueue,t.updateQueue=e,kr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Nf(l,e),l=l.sibling;return k(We,We.current&1|2),Ne&&xn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&yt()>Ar&&(t.flags|=128,o=!0,Pi(a,!1),t.lanes=4194304)}else{if(!o)if(e=cr(h),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,kr(t,e),Pi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!h.alternate&&!Ne)return Fe(t),null}else 2*yt()-a.renderingStartTime>Ar&&l!==536870912&&(t.flags|=128,o=!0,Pi(a,!1),t.lanes=4194304);a.isBackwards?(h.sibling=t.child,t.child=h):(e=a.last,e!==null?e.sibling=h:t.child=h,a.last=h)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=yt(),e.sibling=null,l=We.current,k(We,o?l&1|2:l&1),Ne&&xn(t,a.treeForkCount),e):(Fe(t),null);case 22:case 23:return Rt(t),os(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),l=t.updateQueue,l!==null&&kr(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&G(gl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),vn(et),Fe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Sy(e,t){switch(Ku(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vn(et),Ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fn(t),null;case 31:if(t.memoizedState!==null){if(Rt(t),t.alternate===null)throw Error(u(340));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Rt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(We),null;case 4:return Ue(),null;case 10:return vn(t.type),null;case 22:case 23:return Rt(t),os(),e!==null&&G(gl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return vn(et),null;case 25:return null;default:return null}}function nd(e,t){switch(Ku(t),t.tag){case 3:vn(et),Ue();break;case 26:case 27:case 5:fn(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&Rt(t);break;case 13:Rt(t);break;case 19:G(We);break;case 10:vn(t.type);break;case 22:case 23:Rt(t),os(),e!==null&&G(gl);break;case 24:vn(et)}}function ea(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var o=a.next;l=o;do{if((l.tag&e)===e){a=void 0;var h=l.create,y=l.inst;a=h(),y.destroy=a}l=l.next}while(l!==o)}}catch(z){Be(t,t.return,z)}}function Qn(e,t,l){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var h=o.next;a=h;do{if((a.tag&e)===e){var y=a.inst,z=y.destroy;if(z!==void 0){y.destroy=void 0,o=t;var C=l,D=z;try{D()}catch(V){Be(o,C,V)}}}a=a.next}while(a!==h)}}catch(V){Be(t,t.return,V)}}function ld(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Be(e,e.return,a)}}}function id(e,t,l){l.props=Sl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Be(e,t,a)}}function ta(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(o){Be(e,t,o)}}function un(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(o){Be(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){Be(e,t,o)}else l.current=null}function ad(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(o){Be(e,e.return,o)}}function Ys(e,t,l){try{var a=e.stateNode;Gy(a,e.type,l,t),a[zt]=t}catch(o){Be(e,e.return,o)}}function rd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wn(e.type)||e.tag===4}function Vs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rd(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&&Wn(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 Gs(e,t,l){var a=e.tag;if(a===5||a===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=pn));else if(a!==4&&(a===27&&Wn(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Gs(e,t,l),e=e.sibling;e!==null;)Gs(e,t,l),e=e.sibling}function Er(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Wn(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Er(e,t,l),e=e.sibling;e!==null;)Er(e,t,l),e=e.sibling}function ud(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);dt(t,a,l),t[ot]=e,t[zt]=l}catch(h){Be(e,e.return,h)}}var Cn=!1,lt=!1,Xs=!1,sd=typeof WeakSet=="function"?WeakSet:Set,st=null;function zy(e,t){if(e=e.containerInfo,fo=Qr,e=vf(e),Bu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var o=a.anchorOffset,h=a.focusNode;a=a.focusOffset;try{l.nodeType,h.nodeType}catch{l=null;break e}var y=0,z=-1,C=-1,D=0,V=0,Z=e,R=null;t:for(;;){for(var q;Z!==l||o!==0&&Z.nodeType!==3||(z=y+o),Z!==h||a!==0&&Z.nodeType!==3||(C=y+a),Z.nodeType===3&&(y+=Z.nodeValue.length),(q=Z.firstChild)!==null;)R=Z,Z=q;for(;;){if(Z===e)break t;if(R===l&&++D===o&&(z=y),R===h&&++V===a&&(C=y),(q=Z.nextSibling)!==null)break;Z=R,R=Z.parentNode}Z=q}l=z===-1||C===-1?null:{start:z,end:C}}else l=null}l=l||{start:0,end:0}}else l=null;for(ho={focusedElem:e,selectionRange:l},Qr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,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,a=l.stateNode;try{var le=Sl(l.type,o);e=a.getSnapshotBeforeUpdate(le,h),a.__reactInternalSnapshotBeforeUpdate=e}catch(de){Be(l,l.return,de)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)go(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":go(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,st=e;break}st=t.return}}function od(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Tn(e,l),a&4&&ea(5,l);break;case 1:if(Tn(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(y){Be(l,l.return,y)}else{var o=Sl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){Be(l,l.return,y)}}a&64&&ld(l),a&512&&ta(l,l.return);break;case 3:if(Tn(e,l),a&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{Ff(e,t)}catch(y){Be(l,l.return,y)}}break;case 27:t===null&&a&4&&ud(l);case 26:case 5:Tn(e,l),t===null&&a&4&&ad(l),a&512&&ta(l,l.return);break;case 12:Tn(e,l);break;case 31:Tn(e,l),a&4&&hd(e,l);break;case 13:Tn(e,l),a&4&&dd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=My.bind(null,l),$y(e,l))));break;case 22:if(a=l.memoizedState!==null||Cn,!a){t=t!==null&&t.memoizedState!==null||lt,o=Cn;var h=lt;Cn=a,(lt=t)&&!h?An(e,l,(l.subtreeFlags&8772)!==0):Tn(e,l),Cn=o,lt=h}break;case 30:break;default:Tn(e,l)}}function cd(e){var t=e.alternate;t!==null&&(e.alternate=null,cd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&vu(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 Je=null,Et=!1;function wn(e,t,l){for(l=l.child;l!==null;)fd(e,t,l),l=l.sibling}function fd(e,t,l){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(xt,l)}catch{}switch(l.tag){case 26:lt||un(l,t),wn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:lt||un(l,t);var a=Je,o=Et;Wn(l.type)&&(Je=l.stateNode,Et=!1),wn(e,t,l),ca(l.stateNode),Je=a,Et=o;break;case 5:lt||un(l,t);case 6:if(a=Je,o=Et,Je=null,wn(e,t,l),Je=a,Et=o,Je!==null)if(Et)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(l.stateNode)}catch(h){Be(l,t,h)}else try{Je.removeChild(l.stateNode)}catch(h){Be(l,t,h)}break;case 18:Je!==null&&(Et?(e=Je,lm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),mi(e)):lm(Je,l.stateNode));break;case 4:a=Je,o=Et,Je=l.stateNode.containerInfo,Et=!0,wn(e,t,l),Je=a,Et=o;break;case 0:case 11:case 14:case 15:Qn(2,l,t),lt||Qn(4,l,t),wn(e,t,l);break;case 1:lt||(un(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&id(l,t,a)),wn(e,t,l);break;case 21:wn(e,t,l);break;case 22:lt=(a=lt)||l.memoizedState!==null,wn(e,t,l),lt=a;break;default:wn(e,t,l)}}function hd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{mi(e)}catch(l){Be(t,t.return,l)}}}function dd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{mi(e)}catch(l){Be(t,t.return,l)}}function ky(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new sd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new sd),t;default:throw Error(u(435,e.tag))}}function Cr(e,t){var l=ky(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var o=jy.bind(null,e,a);a.then(o,o)}})}function Ct(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var o=l[a],h=e,y=t,z=y;e:for(;z!==null;){switch(z.tag){case 27:if(Wn(z.type)){Je=z.stateNode,Et=!1;break e}break;case 5:Je=z.stateNode,Et=!1;break e;case 3:case 4:Je=z.stateNode.containerInfo,Et=!0;break e}z=z.return}if(Je===null)throw Error(u(160));fd(h,y,o),Je=null,Et=!1,h=o.alternate,h!==null&&(h.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)md(t,e),t=t.sibling}var tn=null;function md(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ct(t,e),wt(e),a&4&&(Qn(3,e,e.return),ea(3,e),Qn(5,e,e.return));break;case 1:Ct(t,e),wt(e),a&512&&(lt||l===null||un(l,l.return)),a&64&&Cn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var o=tn;if(Ct(t,e),wt(e),a&512&&(lt||l===null||un(l,l.return)),a&4){var h=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":h=o.getElementsByTagName("title")[0],(!h||h[Ai]||h[ot]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=o.createElement(a),o.head.insertBefore(h,o.querySelector("head > title"))),dt(h,a,l),h[ot]=e,ut(h),a=h;break e;case"link":var y=mm("link","href",o).get(a+(l.href||""));if(y){for(var z=0;z<y.length;z++)if(h=y[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)){y.splice(z,1);break t}}h=o.createElement(a),dt(h,a,l),o.head.appendChild(h);break;case"meta":if(y=mm("meta","content",o).get(a+(l.content||""))){for(z=0;z<y.length;z++)if(h=y[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)){y.splice(z,1);break t}}h=o.createElement(a),dt(h,a,l),o.head.appendChild(h);break;default:throw Error(u(468,a))}h[ot]=e,ut(h),a=h}e.stateNode=a}else pm(o,e.type,e.stateNode);else e.stateNode=dm(o,a,e.memoizedProps);else h!==a?(h===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):h.count--,a===null?pm(o,e.type,e.stateNode):dm(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Ys(e,e.memoizedProps,l.memoizedProps)}break;case 27:Ct(t,e),wt(e),a&512&&(lt||l===null||un(l,l.return)),l!==null&&a&4&&Ys(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Ct(t,e),wt(e),a&512&&(lt||l===null||un(l,l.return)),e.flags&32){o=e.stateNode;try{Bl(o,"")}catch(le){Be(e,e.return,le)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,Ys(e,o,l!==null?l.memoizedProps:o)),a&1024&&(Xs=!0);break;case 6:if(Ct(t,e),wt(e),a&4){if(e.stateNode===null)throw Error(u(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(le){Be(e,e.return,le)}}break;case 3:if(Yr=null,o=tn,tn=Hr(t.containerInfo),Ct(t,e),tn=o,wt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{mi(t.containerInfo)}catch(le){Be(e,e.return,le)}Xs&&(Xs=!1,pd(e));break;case 4:a=tn,tn=Hr(e.stateNode.containerInfo),Ct(t,e),wt(e),tn=a;break;case 12:Ct(t,e),wt(e);break;case 31:Ct(t,e),wt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Cr(e,a)));break;case 13:Ct(t,e),wt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Tr=yt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Cr(e,a)));break;case 22:o=e.memoizedState!==null;var C=l!==null&&l.memoizedState!==null,D=Cn,V=lt;if(Cn=D||o,lt=V||C,Ct(t,e),lt=V,Cn=D,wt(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(l===null||C||Cn||lt||zl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){C=l=t;try{if(h=C.stateNode,o)y=h.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{z=C.stateNode;var Z=C.memoizedProps.style,R=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;z.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(le){Be(C,C.return,le)}}}else if(t.tag===6){if(l===null){C=t;try{C.stateNode.nodeValue=o?"":C.memoizedProps}catch(le){Be(C,C.return,le)}}}else if(t.tag===18){if(l===null){C=t;try{var q=C.stateNode;o?im(q,!0):im(C.stateNode,!1)}catch(le){Be(C,C.return,le)}}}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}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Cr(e,l))));break;case 19:Ct(t,e),wt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Cr(e,a)));break;case 30:break;case 21:break;default:Ct(t,e),wt(e)}}function wt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(rd(a)){l=a;break}a=a.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var o=l.stateNode,h=Vs(e);Er(e,h,o);break;case 5:var y=l.stateNode;l.flags&32&&(Bl(y,""),l.flags&=-33);var z=Vs(e);Er(e,z,y);break;case 3:case 4:var C=l.stateNode.containerInfo,D=Vs(e);Gs(e,D,C);break;default:throw Error(u(161))}}catch(V){Be(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function pd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;pd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Tn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)od(e,t.alternate,t),t=t.sibling}function zl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Qn(4,t,t.return),zl(t);break;case 1:un(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&id(t,t.return,l),zl(t);break;case 27:ca(t.stateNode);case 26:case 5:un(t,t.return),zl(t);break;case 22:t.memoizedState===null&&zl(t);break;case 30:zl(t);break;default:zl(t)}e=e.sibling}}function An(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,h=t,y=h.flags;switch(h.tag){case 0:case 11:case 15:An(o,h,l),ea(4,h);break;case 1:if(An(o,h,l),a=h,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(D){Be(a,a.return,D)}if(a=h,o=a.updateQueue,o!==null){var z=a.stateNode;try{var C=o.shared.hiddenCallbacks;if(C!==null)for(o.shared.hiddenCallbacks=null,o=0;o<C.length;o++)Zf(C[o],z)}catch(D){Be(a,a.return,D)}}l&&y&64&&ld(h),ta(h,h.return);break;case 27:ud(h);case 26:case 5:An(o,h,l),l&&a===null&&y&4&&ad(h),ta(h,h.return);break;case 12:An(o,h,l);break;case 31:An(o,h,l),l&&y&4&&hd(o,h);break;case 13:An(o,h,l),l&&y&4&&dd(o,h);break;case 22:h.memoizedState===null&&An(o,h,l),ta(h,h.return);break;case 30:break;default:An(o,h,l)}t=t.sibling}}function Qs(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&&Yi(l))}function Zs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yi(e))}function nn(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gd(e,t,l,a),t=t.sibling}function gd(e,t,l,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:nn(e,t,l,a),o&2048&&ea(9,t);break;case 1:nn(e,t,l,a);break;case 3:nn(e,t,l,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yi(e)));break;case 12:if(o&2048){nn(e,t,l,a),e=t.stateNode;try{var h=t.memoizedProps,y=h.id,z=h.onPostCommit;typeof z=="function"&&z(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Be(t,t.return,C)}}else nn(e,t,l,a);break;case 31:nn(e,t,l,a);break;case 13:nn(e,t,l,a);break;case 23:break;case 22:h=t.stateNode,y=t.alternate,t.memoizedState!==null?h._visibility&2?nn(e,t,l,a):na(e,t):h._visibility&2?nn(e,t,l,a):(h._visibility|=2,li(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Qs(y,t);break;case 24:nn(e,t,l,a),o&2048&&Zs(t.alternate,t);break;default:nn(e,t,l,a)}}function li(e,t,l,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var h=e,y=t,z=l,C=a,D=y.flags;switch(y.tag){case 0:case 11:case 15:li(h,y,z,C,o),ea(8,y);break;case 23:break;case 22:var V=y.stateNode;y.memoizedState!==null?V._visibility&2?li(h,y,z,C,o):na(h,y):(V._visibility|=2,li(h,y,z,C,o)),o&&D&2048&&Qs(y.alternate,y);break;case 24:li(h,y,z,C,o),o&&D&2048&&Zs(y.alternate,y);break;default:li(h,y,z,C,o)}t=t.sibling}}function na(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,o=a.flags;switch(a.tag){case 22:na(l,a),o&2048&&Qs(a.alternate,a);break;case 24:na(l,a),o&2048&&Zs(a.alternate,a);break;default:na(l,a)}t=t.sibling}}var la=8192;function ii(e,t,l){if(e.subtreeFlags&la)for(e=e.child;e!==null;)yd(e,t,l),e=e.sibling}function yd(e,t,l){switch(e.tag){case 26:ii(e,t,l),e.flags&la&&e.memoizedState!==null&&o1(l,tn,e.memoizedState,e.memoizedProps);break;case 5:ii(e,t,l);break;case 3:case 4:var a=tn;tn=Hr(e.stateNode.containerInfo),ii(e,t,l),tn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=la,la=16777216,ii(e,t,l),la=a):ii(e,t,l));break;default:ii(e,t,l)}}function xd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ia(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];st=a,vd(a,e)}xd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)bd(e),e=e.sibling}function bd(e){switch(e.tag){case 0:case 11:case 15:ia(e),e.flags&2048&&Qn(9,e,e.return);break;case 3:ia(e);break;case 12:ia(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,wr(e)):ia(e);break;default:ia(e)}}function wr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];st=a,vd(a,e)}xd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qn(8,t,t.return),wr(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,wr(t));break;default:wr(t)}e=e.sibling}}function vd(e,t){for(;st!==null;){var l=st;switch(l.tag){case 0:case 11:case 15:Qn(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Yi(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,st=a;else e:for(l=e;st!==null;){a=st;var o=a.sibling,h=a.return;if(cd(a),a===l){st=null;break e}if(o!==null){o.return=h,st=o;break e}st=h}}}var Ey={getCacheForType:function(e){var t=ft(et),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return ft(et).controller.signal}},Cy=typeof WeakMap=="function"?WeakMap:Map,De=0,Ge=null,ke=null,Te=0,Le=0,Lt=null,Zn=!1,ai=!1,Fs=!1,Nn=0,$e=0,Fn=0,kl=0,Ks=0,Bt=0,ri=0,aa=null,Tt=null,Js=!1,Tr=0,Sd=0,Ar=1/0,Nr=null,Kn=null,rt=0,Jn=null,ui=null,_n=0,Is=0,$s=null,zd=null,ra=0,Ws=null;function Ut(){return(De&2)!==0&&Te!==0?Te&-Te:L.T!==null?io():Bc()}function kd(){if(Bt===0)if((Te&536870912)===0||Ne){var e=Ba;Ba<<=1,(Ba&3932160)===0&&(Ba=262144),Bt=e}else Bt=536870912;return e=Dt.current,e!==null&&(e.flags|=32),Bt}function At(e,t,l){(e===Ge&&(Le===2||Le===9)||e.cancelPendingCommit!==null)&&(si(e,0),In(e,Te,Bt,!1)),Ti(e,l),((De&2)===0||e!==Ge)&&(e===Ge&&((De&2)===0&&(kl|=l),$e===4&&In(e,Te,Bt,!1)),sn(e))}function Ed(e,t,l){if((De&6)!==0)throw Error(u(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||wi(e,t),o=a?Ay(e,t):eo(e,t,!0),h=a;do{if(o===0){ai&&!a&&In(e,t,0,!1);break}else{if(l=e.current.alternate,h&&!wy(l)){o=eo(e,t,!1),h=!1;continue}if(o===2){if(h=t,e.errorRecoveryDisabledLanes&h)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var z=e;o=aa;var C=z.current.memoizedState.isDehydrated;if(C&&(si(z,y).flags|=256),y=eo(z,y,!1),y!==2){if(Fs&&!C){z.errorRecoveryDisabledLanes|=h,kl|=h,o=4;break e}h=Tt,Tt=o,h!==null&&(Tt===null?Tt=h:Tt.push.apply(Tt,h))}o=y}if(h=!1,o!==2)continue}}if(o===1){si(e,0),In(e,t,0,!0);break}e:{switch(a=e,h=o,h){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:In(a,t,Bt,!Zn);break e;case 2:Tt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=Tr+300-yt(),10<o)){if(In(a,t,Bt,!Zn),Ha(a,0,!0)!==0)break e;_n=t,a.timeoutHandle=tm(Cd.bind(null,a,l,Tt,Nr,Js,t,Bt,kl,ri,Zn,h,"Throttled",-0,0),o);break e}Cd(a,l,Tt,Nr,Js,t,Bt,kl,ri,Zn,h,null,-0,0)}}break}while(!0);sn(e)}function Cd(e,t,l,a,o,h,y,z,C,D,V,Z,R,q){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:pn},yd(t,h,Z);var le=(h&62914560)===h?Tr-yt():(h&4194048)===h?Sd-yt():0;if(le=c1(Z,le),le!==null){_n=h,e.cancelPendingCommit=le(Od.bind(null,e,t,h,l,a,o,y,z,C,V,Z,null,R,q)),In(e,h,y,!D);return}}Od(e,t,h,l,a,o,y,z,C)}function wy(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 a=0;a<l.length;a++){var o=l[a],h=o.getSnapshot;o=o.value;try{if(!jt(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 In(e,t,l,a){t&=~Ks,t&=~kl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var h=31-Ve(o),y=1<<h;a[h]=-1,o&=~y}l!==0&&Dc(e,l,t)}function _r(){return(De&6)===0?(ua(0),!1):!0}function Ps(){if(ke!==null){if(Le===0)var e=ke.return;else e=ke,bn=ml=null,ps(e),Wl=null,Gi=0,e=ke;for(;e!==null;)nd(e.alternate,e),e=e.return;ke=null}}function si(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Zy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),_n=0,Ps(),Ge=e,ke=l=yn(e.current,null),Te=t,Le=0,Lt=null,Zn=!1,ai=wi(e,t),Fs=!1,ri=Bt=Ks=kl=Fn=$e=0,Tt=aa=null,Js=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-Ve(a),h=1<<o;t|=e[o],a&=~h}return Nn=t,$a(),l}function wd(e,t){ye=null,L.H=$i,t===$l||t===ar?(t=Vf(),Le=3):t===ls?(t=Vf(),Le=4):Le=t===Ms?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Lt=t,ke===null&&($e=1,br(e,Qt(t,e.current)))}function Td(){var e=Dt.current;return e===null?!0:(Te&4194048)===Te?Jt===null:(Te&62914560)===Te||(Te&536870912)!==0?e===Jt:!1}function Ad(){var e=L.H;return L.H=$i,e===null?$i:e}function Nd(){var e=L.A;return L.A=Ey,e}function Mr(){$e=4,Zn||(Te&4194048)!==Te&&Dt.current!==null||(ai=!0),(Fn&134217727)===0&&(kl&134217727)===0||Ge===null||In(Ge,Te,Bt,!1)}function eo(e,t,l){var a=De;De|=2;var o=Ad(),h=Nd();(Ge!==e||Te!==t)&&(Nr=null,si(e,t)),t=!1;var y=$e;e:do try{if(Le!==0&&ke!==null){var z=ke,C=Lt;switch(Le){case 8:Ps(),y=6;break e;case 3:case 2:case 9:case 6:Dt.current===null&&(t=!0);var D=Le;if(Le=0,Lt=null,oi(e,z,C,D),l&&ai){y=0;break e}break;default:D=Le,Le=0,Lt=null,oi(e,z,C,D)}}Ty(),y=$e;break}catch(V){wd(e,V)}while(!0);return t&&e.shellSuspendCounter++,bn=ml=null,De=a,L.H=o,L.A=h,ke===null&&(Ge=null,Te=0,$a()),y}function Ty(){for(;ke!==null;)_d(ke)}function Ay(e,t){var l=De;De|=2;var a=Ad(),o=Nd();Ge!==e||Te!==t?(Nr=null,Ar=yt()+500,si(e,t)):ai=wi(e,t);e:do try{if(Le!==0&&ke!==null){t=ke;var h=Lt;t:switch(Le){case 1:Le=0,Lt=null,oi(e,t,h,1);break;case 2:case 9:if(qf(h)){Le=0,Lt=null,Md(t);break}t=function(){Le!==2&&Le!==9||Ge!==e||(Le=7),sn(e)},h.then(t,t);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:qf(h)?(Le=0,Lt=null,Md(t)):(Le=0,Lt=null,oi(e,t,h,7));break;case 5:var y=null;switch(ke.tag){case 26:y=ke.memoizedState;case 5:case 27:var z=ke;if(y?gm(y):z.stateNode.complete){Le=0,Lt=null;var C=z.sibling;if(C!==null)ke=C;else{var D=z.return;D!==null?(ke=D,jr(D)):ke=null}break t}}Le=0,Lt=null,oi(e,t,h,5);break;case 6:Le=0,Lt=null,oi(e,t,h,6);break;case 8:Ps(),$e=6;break e;default:throw Error(u(462))}}Ny();break}catch(V){wd(e,V)}while(!0);return bn=ml=null,L.H=a,L.A=o,De=l,ke!==null?0:(Ge=null,Te=0,$a(),$e)}function Ny(){for(;ke!==null&&!du();)_d(ke)}function _d(e){var t=ed(e.alternate,e,Nn);e.memoizedProps=e.pendingProps,t===null?jr(e):ke=t}function Md(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Kh(l,t,t.pendingProps,t.type,void 0,Te);break;case 11:t=Kh(l,t,t.pendingProps,t.type.render,t.ref,Te);break;case 5:ps(t);default:nd(l,t),t=ke=Nf(t,Nn),t=ed(l,t,Nn)}e.memoizedProps=e.pendingProps,t===null?jr(e):ke=t}function oi(e,t,l,a){bn=ml=null,ps(t),Wl=null,Gi=0;var o=t.return;try{if(yy(e,o,t,l,Te)){$e=1,br(e,Qt(l,e.current)),ke=null;return}}catch(h){if(o!==null)throw ke=o,h;$e=1,br(e,Qt(l,e.current)),ke=null;return}t.flags&32768?(Ne||a===1?e=!0:ai||(Te&536870912)!==0?e=!1:(Zn=e=!0,(a===2||a===9||a===3||a===6)&&(a=Dt.current,a!==null&&a.tag===13&&(a.flags|=16384))),jd(t,e)):jr(t)}function jr(e){var t=e;do{if((t.flags&32768)!==0){jd(t,Zn);return}e=t.return;var l=vy(t.alternate,t,Nn);if(l!==null){ke=l;return}if(t=t.sibling,t!==null){ke=t;return}ke=t=e}while(t!==null);$e===0&&($e=5)}function jd(e,t){do{var l=Sy(e.alternate,e);if(l!==null){l.flags&=32767,ke=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ke=e;return}ke=e=l}while(e!==null);$e=6,ke=null}function Od(e,t,l,a,o,h,y,z,C){e.cancelPendingCommit=null;do Or();while(rt!==0);if((De&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(h=t.lanes|t.childLanes,h|=Vu,sg(e,l,h,y,z,C),e===Ge&&(ke=Ge=null,Te=0),ui=t,Jn=e,_n=l,Is=h,$s=o,zd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Oy(pe,function(){return Ud(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=L.T,L.T=null,o=K.p,K.p=2,y=De,De|=4;try{zy(e,t,l)}finally{De=y,K.p=o,L.T=a}}rt=1,Dd(),Rd(),Ld()}}function Dd(){if(rt===1){rt=0;var e=Jn,t=ui,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=L.T,L.T=null;var a=K.p;K.p=2;var o=De;De|=4;try{md(t,e);var h=ho,y=vf(e.containerInfo),z=h.focusedElem,C=h.selectionRange;if(y!==z&&z&&z.ownerDocument&&bf(z.ownerDocument.documentElement,z)){if(C!==null&&Bu(z)){var D=C.start,V=C.end;if(V===void 0&&(V=D),"selectionStart"in z)z.selectionStart=D,z.selectionEnd=Math.min(V,z.value.length);else{var Z=z.ownerDocument||document,R=Z&&Z.defaultView||window;if(R.getSelection){var q=R.getSelection(),le=z.textContent.length,de=Math.min(C.start,le),Ye=C.end===void 0?de:Math.min(C.end,le);!q.extend&&de>Ye&&(y=Ye,Ye=de,de=y);var N=xf(z,de),A=xf(z,Ye);if(N&&A&&(q.rangeCount!==1||q.anchorNode!==N.node||q.anchorOffset!==N.offset||q.focusNode!==A.node||q.focusOffset!==A.offset)){var O=Z.createRange();O.setStart(N.node,N.offset),q.removeAllRanges(),de>Ye?(q.addRange(O),q.extend(A.node,A.offset)):(O.setEnd(A.node,A.offset),q.addRange(O))}}}}for(Z=[],q=z;q=q.parentNode;)q.nodeType===1&&Z.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof z.focus=="function"&&z.focus(),z=0;z<Z.length;z++){var Q=Z[z];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}Qr=!!fo,ho=fo=null}finally{De=o,K.p=a,L.T=l}}e.current=t,rt=2}}function Rd(){if(rt===2){rt=0;var e=Jn,t=ui,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=L.T,L.T=null;var a=K.p;K.p=2;var o=De;De|=4;try{od(e,t.alternate,t)}finally{De=o,K.p=a,L.T=l}}rt=3}}function Ld(){if(rt===4||rt===3){rt=0,mu();var e=Jn,t=ui,l=_n,a=zd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?rt=5:(rt=0,ui=Jn=null,Bd(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Kn=null),xu(l),t=t.stateNode,at&&typeof at.onCommitFiberRoot=="function")try{at.onCommitFiberRoot(xt,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=L.T,o=K.p,K.p=2,L.T=null;try{for(var h=e.onRecoverableError,y=0;y<a.length;y++){var z=a[y];h(z.value,{componentStack:z.stack})}}finally{L.T=t,K.p=o}}(_n&3)!==0&&Or(),sn(e),o=e.pendingLanes,(l&261930)!==0&&(o&42)!==0?e===Ws?ra++:(ra=0,Ws=e):ra=0,ua(0)}}function Bd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yi(t)))}function Or(){return Dd(),Rd(),Ld(),Ud()}function Ud(){if(rt!==5)return!1;var e=Jn,t=Is;Is=0;var l=xu(_n),a=L.T,o=K.p;try{K.p=32>l?32:l,L.T=null,l=$s,$s=null;var h=Jn,y=_n;if(rt=0,ui=Jn=null,_n=0,(De&6)!==0)throw Error(u(331));var z=De;if(De|=4,bd(h.current),gd(h,h.current,y,l),De=z,ua(0,!1),at&&typeof at.onPostCommitFiberRoot=="function")try{at.onPostCommitFiberRoot(xt,h)}catch{}return!0}finally{K.p=o,L.T=a,Bd(e,t)}}function Hd(e,t,l){t=Qt(l,t),t=_s(e.stateNode,t,2),e=Vn(e,t,2),e!==null&&(Ti(e,2),sn(e))}function Be(e,t,l){if(e.tag===3)Hd(e,e,l);else for(;t!==null;){if(t.tag===3){Hd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Kn===null||!Kn.has(a))){e=Qt(l,e),l=qh(2),a=Vn(t,l,2),a!==null&&(Yh(l,a,t,e),Ti(a,2),sn(a));break}}t=t.return}}function to(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Cy;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(l)||(Fs=!0,o.add(l),e=_y.bind(null,e,t,l),t.then(e,e))}function _y(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ge===e&&(Te&l)===l&&($e===4||$e===3&&(Te&62914560)===Te&&300>yt()-Tr?(De&2)===0&&si(e,0):Ks|=l,ri===Te&&(ri=0)),sn(e)}function qd(e,t){t===0&&(t=Oc()),e=fl(e,t),e!==null&&(Ti(e,t),sn(e))}function My(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),qd(e,l)}function jy(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(l=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),qd(e,l)}function Oy(e,t){return _l(e,t)}var Dr=null,ci=null,no=!1,Rr=!1,lo=!1,$n=0;function sn(e){e!==ci&&e.next===null&&(ci===null?Dr=ci=e:ci=ci.next=e),Rr=!0,no||(no=!0,Ry())}function ua(e,t){if(!lo&&Rr){lo=!0;do for(var l=!1,a=Dr;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var h=0;else{var y=a.suspendedLanes,z=a.pingedLanes;h=(1<<31-Ve(42|e)+1)-1,h&=o&~(y&~z),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(l=!0,Xd(a,h))}else h=Te,h=Ha(a,a===Ge?h:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(h&3)===0||wi(a,h)||(l=!0,Xd(a,h));a=a.next}while(l);lo=!1}}function Dy(){Yd()}function Yd(){Rr=no=!1;var e=0;$n!==0&&Qy()&&(e=$n);for(var t=yt(),l=null,a=Dr;a!==null;){var o=a.next,h=Vd(a,t);h===0?(a.next=null,l===null?Dr=o:l.next=o,o===null&&(ci=l)):(l=a,(e!==0||(h&3)!==0)&&(Rr=!0)),a=o}rt!==0&&rt!==5||ua(e),$n!==0&&($n=0)}function Vd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var y=31-Ve(h),z=1<<y,C=o[y];C===-1?((z&l)===0||(z&a)!==0)&&(o[y]=ug(z,t)):C<=t&&(e.expiredLanes|=z),h&=~z}if(t=Ge,l=Te,l=Ha(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Le===2||Le===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ci(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||wi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ci(a),xu(l)){case 2:case 8:l=P;break;case 32:l=pe;break;case 268435456:l=Re;break;default:l=pe}return a=Gd.bind(null,e),l=_l(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ci(a),e.callbackPriority=2,e.callbackNode=null,2}function Gd(e,t){if(rt!==0&&rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Or()&&e.callbackNode!==l)return null;var a=Te;return a=Ha(e,e===Ge?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Ed(e,a,t),Vd(e,yt()),e.callbackNode!=null&&e.callbackNode===l?Gd.bind(null,e):null)}function Xd(e,t){if(Or())return null;Ed(e,t,!0)}function Ry(){Fy(function(){(De&6)!==0?_l(X,Dy):Yd()})}function io(){if($n===0){var e=Jl;e===0&&(e=La,La<<=1,(La&261888)===0&&(La=256)),$n=e}return $n}function Qd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ga(""+e)}function Zd(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 Ly(e,t,l,a,o){if(t==="submit"&&l&&l.stateNode===o){var h=Qd((o[zt]||null).action),y=a.submitter;y&&(t=(t=y[zt]||null)?Qd(t.formAction):y.getAttribute("formAction"),t!==null&&(h=t,y=null));var z=new Fa("action","action",null,a,o);e.push({event:z,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if($n!==0){var C=y?Zd(o,y):new FormData(o);Es(l,{pending:!0,data:C,method:o.method,action:h},null,C)}}else typeof h=="function"&&(z.preventDefault(),C=y?Zd(o,y):new FormData(o),Es(l,{pending:!0,data:C,method:o.method,action:h},h,C))},currentTarget:o}]})}}for(var ao=0;ao<Yu.length;ao++){var ro=Yu[ao],By=ro.toLowerCase(),Uy=ro[0].toUpperCase()+ro.slice(1);en(By,"on"+Uy)}en(kf,"onAnimationEnd"),en(Ef,"onAnimationIteration"),en(Cf,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(ey,"onTransitionRun"),en(ty,"onTransitionStart"),en(ny,"onTransitionCancel"),en(wf,"onTransitionEnd"),Rl("onMouseEnter",["mouseout","mouseover"]),Rl("onMouseLeave",["mouseout","mouseover"]),Rl("onPointerEnter",["pointerout","pointerover"]),Rl("onPointerLeave",["pointerout","pointerover"]),ul("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ul("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ul("onBeforeInput",["compositionend","keypress","textInput","paste"]),ul("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ul("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ul("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var sa="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(" "),Hy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(sa));function Fd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],o=a.event;a=a.listeners;e:{var h=void 0;if(t)for(var y=a.length-1;0<=y;y--){var z=a[y],C=z.instance,D=z.currentTarget;if(z=z.listener,C!==h&&o.isPropagationStopped())break e;h=z,o.currentTarget=D;try{h(o)}catch(V){Ia(V)}o.currentTarget=null,h=C}else for(y=0;y<a.length;y++){if(z=a[y],C=z.instance,D=z.currentTarget,z=z.listener,C!==h&&o.isPropagationStopped())break e;h=z,o.currentTarget=D;try{h(o)}catch(V){Ia(V)}o.currentTarget=null,h=C}}}}function Ee(e,t){var l=t[bu];l===void 0&&(l=t[bu]=new Set);var a=e+"__bubble";l.has(a)||(Kd(t,e,2,!1),l.add(a))}function uo(e,t,l){var a=0;t&&(a|=4),Kd(l,e,a,t)}var Lr="_reactListening"+Math.random().toString(36).slice(2);function so(e){if(!e[Lr]){e[Lr]=!0,qc.forEach(function(l){l!=="selectionchange"&&(Hy.has(l)||uo(l,!1,e),uo(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Lr]||(t[Lr]=!0,uo("selectionchange",!1,t))}}function Kd(e,t,l,a){switch(km(t)){case 2:var o=d1;break;case 8:o=m1;break;default:o=Eo}l=o.bind(null,t,l,e),o=void 0,!Au||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?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 oo(e,t,l,a,o){var h=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var y=a.tag;if(y===3||y===4){var z=a.stateNode.containerInfo;if(z===o)break;if(y===4)for(y=a.return;y!==null;){var C=y.tag;if((C===3||C===4)&&y.stateNode.containerInfo===o)return;y=y.return}for(;z!==null;){if(y=jl(z),y===null)return;if(C=y.tag,C===5||C===6||C===26||C===27){a=h=y;continue e}z=z.parentNode}}a=a.return}Wc(function(){var D=h,V=wu(l),Z=[];e:{var R=Tf.get(e);if(R!==void 0){var q=Fa,le=e;switch(e){case"keypress":if(Qa(l)===0)break e;case"keydown":case"keyup":q=jg;break;case"focusin":le="focus",q=ju;break;case"focusout":le="blur",q=ju;break;case"beforeblur":case"afterblur":q=ju;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":q=tf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=vg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Rg;break;case kf:case Ef:case Cf:q=kg;break;case wf:q=Bg;break;case"scroll":case"scrollend":q=xg;break;case"wheel":q=Hg;break;case"copy":case"cut":case"paste":q=Cg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=lf;break;case"toggle":case"beforetoggle":q=Yg}var de=(t&4)!==0,Ye=!de&&(e==="scroll"||e==="scrollend"),N=de?R!==null?R+"Capture":null:R;de=[];for(var A=D,O;A!==null;){var Q=A;if(O=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||O===null||N===null||(Q=_i(A,N),Q!=null&&de.push(oa(A,Q,O))),Ye)break;A=A.return}0<de.length&&(R=new q(R,le,null,l,V),Z.push({event:R,listeners:de}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",R&&l!==Cu&&(le=l.relatedTarget||l.fromElement)&&(jl(le)||le[Ml]))break e;if((q||R)&&(R=V.window===V?V:(R=V.ownerDocument)?R.defaultView||R.parentWindow:window,q?(le=l.relatedTarget||l.toElement,q=D,le=le?jl(le):null,le!==null&&(Ye=c(le),de=le.tag,le!==Ye||de!==5&&de!==27&&de!==6)&&(le=null)):(q=null,le=D),q!==le)){if(de=tf,Q="onMouseLeave",N="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(de=lf,Q="onPointerLeave",N="onPointerEnter",A="pointer"),Ye=q==null?R:Ni(q),O=le==null?R:Ni(le),R=new de(Q,A+"leave",q,l,V),R.target=Ye,R.relatedTarget=O,Q=null,jl(V)===D&&(de=new de(N,A+"enter",le,l,V),de.target=O,de.relatedTarget=Ye,Q=de),Ye=Q,q&&le)t:{for(de=qy,N=q,A=le,O=0,Q=N;Q;Q=de(Q))O++;Q=0;for(var ce=A;ce;ce=de(ce))Q++;for(;0<O-Q;)N=de(N),O--;for(;0<Q-O;)A=de(A),Q--;for(;O--;){if(N===A||A!==null&&N===A.alternate){de=N;break t}N=de(N),A=de(A)}de=null}else de=null;q!==null&&Jd(Z,R,q,de,!1),le!==null&&Ye!==null&&Jd(Z,Ye,le,de,!0)}}e:{if(R=D?Ni(D):window,q=R.nodeName&&R.nodeName.toLowerCase(),q==="select"||q==="input"&&R.type==="file")var je=hf;else if(cf(R))if(df)je=$g;else{je=Jg;var ae=Kg}else q=R.nodeName,!q||q.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?D&&Eu(D.elementType)&&(je=hf):je=Ig;if(je&&(je=je(e,D))){ff(Z,je,l,V);break e}ae&&ae(e,R,D),e==="focusout"&&D&&R.type==="number"&&D.memoizedProps.value!=null&&ku(R,"number",R.value)}switch(ae=D?Ni(D):window,e){case"focusin":(cf(ae)||ae.contentEditable==="true")&&(Yl=ae,Uu=D,Ui=null);break;case"focusout":Ui=Uu=Yl=null;break;case"mousedown":Hu=!0;break;case"contextmenu":case"mouseup":case"dragend":Hu=!1,Sf(Z,l,V);break;case"selectionchange":if(Pg)break;case"keydown":case"keyup":Sf(Z,l,V)}var xe;if(Du)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else ql?sf(e,l)&&(Ae="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ae="onCompositionStart");Ae&&(af&&l.locale!=="ko"&&(ql||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&ql&&(xe=Pc()):(Rn=V,Nu="value"in Rn?Rn.value:Rn.textContent,ql=!0)),ae=Br(D,Ae),0<ae.length&&(Ae=new nf(Ae,e,null,l,V),Z.push({event:Ae,listeners:ae}),xe?Ae.data=xe:(xe=of(l),xe!==null&&(Ae.data=xe)))),(xe=Gg?Xg(e,l):Qg(e,l))&&(Ae=Br(D,"onBeforeInput"),0<Ae.length&&(ae=new nf("onBeforeInput","beforeinput",null,l,V),Z.push({event:ae,listeners:Ae}),ae.data=xe)),Ly(Z,e,D,l,V)}Fd(Z,t)})}function oa(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Br(e,t){for(var l=t+"Capture",a=[];e!==null;){var o=e,h=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||h===null||(o=_i(e,l),o!=null&&a.unshift(oa(e,o,h)),o=_i(e,t),o!=null&&a.push(oa(e,o,h))),e.tag===3)return a;e=e.return}return[]}function qy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Jd(e,t,l,a,o){for(var h=t._reactName,y=[];l!==null&&l!==a;){var z=l,C=z.alternate,D=z.stateNode;if(z=z.tag,C!==null&&C===a)break;z!==5&&z!==26&&z!==27||D===null||(C=D,o?(D=_i(l,h),D!=null&&y.unshift(oa(l,D,C))):o||(D=_i(l,h),D!=null&&y.push(oa(l,D,C)))),l=l.return}y.length!==0&&e.push({event:t,listeners:y})}var Yy=/\r\n?/g,Vy=/\u0000|\uFFFD/g;function Id(e){return(typeof e=="string"?e:""+e).replace(Yy,`
|
|
49
|
+
`).replace(Vy,"")}function $d(e,t){return t=Id(t),Id(e)===t}function qe(e,t,l,a,o,h){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Bl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Bl(e,""+a);break;case"className":Ya(e,"class",a);break;case"tabIndex":Ya(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ya(e,l,a);break;case"style":Ic(e,a,h);break;case"data":if(t!=="object"){Ya(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Ga(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="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"&&qe(e,t,"name",o.name,o,null),qe(e,t,"formEncType",o.formEncType,o,null),qe(e,t,"formMethod",o.formMethod,o,null),qe(e,t,"formTarget",o.formTarget,o,null)):(qe(e,t,"encType",o.encType,o,null),qe(e,t,"method",o.method,o,null),qe(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Ga(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=pn);break;case"onScroll":a!=null&&Ee("scroll",e);break;case"onScrollEnd":a!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(l=a.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Ga(""+a),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":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),qa(e,"popover",a);break;case"xlinkActuate":mn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":mn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":mn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":mn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":mn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":mn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":mn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":mn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":mn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":qa(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=gg.get(l)||l,qa(e,l,a))}}function co(e,t,l,a,o,h){switch(l){case"style":Ic(e,a,h);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(l=a.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Bl(e,a):(typeof a=="number"||typeof a=="bigint")&&Bl(e,""+a);break;case"onScroll":a!=null&&Ee("scroll",e);break;case"onScrollEnd":a!=null&&Ee("scrollend",e);break;case"onClick":a!=null&&(e.onclick=pn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yc.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[zt]||null,h=h!=null?h[l]:null,typeof h=="function"&&e.removeEventListener(t,h,o),typeof a=="function")){typeof h!="function"&&h!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,o);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):qa(e,l,a)}}}function dt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var a=!1,o=!1,h;for(h in l)if(l.hasOwnProperty(h)){var y=l[h];if(y!=null)switch(h){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:qe(e,t,h,y,l,null)}}o&&qe(e,t,"srcSet",l.srcSet,l,null),a&&qe(e,t,"src",l.src,l,null);return;case"input":Ee("invalid",e);var z=h=y=o=null,C=null,D=null;for(a in l)if(l.hasOwnProperty(a)){var V=l[a];if(V!=null)switch(a){case"name":o=V;break;case"type":y=V;break;case"checked":C=V;break;case"defaultChecked":D=V;break;case"value":h=V;break;case"defaultValue":z=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(u(137,t));break;default:qe(e,t,a,V,l,null)}}Zc(e,h,z,C,D,y,o,!1);return;case"select":Ee("invalid",e),a=y=h=null;for(o in l)if(l.hasOwnProperty(o)&&(z=l[o],z!=null))switch(o){case"value":h=z;break;case"defaultValue":y=z;break;case"multiple":a=z;default:qe(e,t,o,z,l,null)}t=h,l=y,e.multiple=!!a,t!=null?Ll(e,!!a,t,!1):l!=null&&Ll(e,!!a,l,!0);return;case"textarea":Ee("invalid",e),h=o=a=null;for(y in l)if(l.hasOwnProperty(y)&&(z=l[y],z!=null))switch(y){case"value":a=z;break;case"defaultValue":o=z;break;case"children":h=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(u(91));break;default:qe(e,t,y,z,l,null)}Kc(e,a,o,h);return;case"option":for(C in l)if(l.hasOwnProperty(C)&&(a=l[C],a!=null))switch(C){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:qe(e,t,C,a,l,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(a=0;a<sa.length;a++)Ee(sa[a],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("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(D in l)if(l.hasOwnProperty(D)&&(a=l[D],a!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:qe(e,t,D,a,l,null)}return;default:if(Eu(t)){for(V in l)l.hasOwnProperty(V)&&(a=l[V],a!==void 0&&co(e,t,V,a,l,void 0));return}}for(z in l)l.hasOwnProperty(z)&&(a=l[z],a!=null&&qe(e,t,z,a,l,null))}function Gy(e,t,l,a){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,y=null,z=null,C=null,D=null,V=null;for(q in l){var Z=l[q];if(l.hasOwnProperty(q)&&Z!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":C=Z;default:a.hasOwnProperty(q)||qe(e,t,q,null,a,Z)}}for(var R in a){var q=a[R];if(Z=l[R],a.hasOwnProperty(R)&&(q!=null||Z!=null))switch(R){case"type":h=q;break;case"name":o=q;break;case"checked":D=q;break;case"defaultChecked":V=q;break;case"value":y=q;break;case"defaultValue":z=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(u(137,t));break;default:q!==Z&&qe(e,t,R,q,a,Z)}}zu(e,y,z,C,D,V,h,o);return;case"select":q=y=z=R=null;for(h in l)if(C=l[h],l.hasOwnProperty(h)&&C!=null)switch(h){case"value":break;case"multiple":q=C;default:a.hasOwnProperty(h)||qe(e,t,h,null,a,C)}for(o in a)if(h=a[o],C=l[o],a.hasOwnProperty(o)&&(h!=null||C!=null))switch(o){case"value":R=h;break;case"defaultValue":z=h;break;case"multiple":y=h;default:h!==C&&qe(e,t,o,h,a,C)}t=z,l=y,a=q,R!=null?Ll(e,!!l,R,!1):!!a!=!!l&&(t!=null?Ll(e,!!l,t,!0):Ll(e,!!l,l?[]:"",!1));return;case"textarea":q=R=null;for(z in l)if(o=l[z],l.hasOwnProperty(z)&&o!=null&&!a.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:qe(e,t,z,null,a,o)}for(y in a)if(o=a[y],h=l[y],a.hasOwnProperty(y)&&(o!=null||h!=null))switch(y){case"value":R=o;break;case"defaultValue":q=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==h&&qe(e,t,y,o,a,h)}Fc(e,R,q);return;case"option":for(var le in l)if(R=l[le],l.hasOwnProperty(le)&&R!=null&&!a.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:qe(e,t,le,null,a,R)}for(C in a)if(R=a[C],q=l[C],a.hasOwnProperty(C)&&R!==q&&(R!=null||q!=null))switch(C){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:qe(e,t,C,R,a,q)}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 de in l)R=l[de],l.hasOwnProperty(de)&&R!=null&&!a.hasOwnProperty(de)&&qe(e,t,de,null,a,R);for(D in a)if(R=a[D],q=l[D],a.hasOwnProperty(D)&&R!==q&&(R!=null||q!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(u(137,t));break;default:qe(e,t,D,R,a,q)}return;default:if(Eu(t)){for(var Ye in l)R=l[Ye],l.hasOwnProperty(Ye)&&R!==void 0&&!a.hasOwnProperty(Ye)&&co(e,t,Ye,void 0,a,R);for(V in a)R=a[V],q=l[V],!a.hasOwnProperty(V)||R===q||R===void 0&&q===void 0||co(e,t,V,R,a,q);return}}for(var N in l)R=l[N],l.hasOwnProperty(N)&&R!=null&&!a.hasOwnProperty(N)&&qe(e,t,N,null,a,R);for(Z in a)R=a[Z],q=l[Z],!a.hasOwnProperty(Z)||R===q||R==null&&q==null||qe(e,t,Z,R,a,q)}function Wd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Xy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var o=l[a],h=o.transferSize,y=o.initiatorType,z=o.duration;if(h&&z&&Wd(y)){for(y=0,z=o.responseEnd,a+=1;a<l.length;a++){var C=l[a],D=C.startTime;if(D>z)break;var V=C.transferSize,Z=C.initiatorType;V&&Wd(Z)&&(C=C.responseEnd,y+=V*(C<z?1:(z-D)/(C-D)))}if(--a,t+=8*(h+y)/(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 fo=null,ho=null;function Ur(e){return e.nodeType===9?e:e.ownerDocument}function Pd(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 em(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 mo(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 po=null;function Qy(){var e=window.event;return e&&e.type==="popstate"?e===po?!1:(po=e,!0):(po=null,!1)}var tm=typeof setTimeout=="function"?setTimeout:void 0,Zy=typeof clearTimeout=="function"?clearTimeout:void 0,nm=typeof Promise=="function"?Promise:void 0,Fy=typeof queueMicrotask=="function"?queueMicrotask:typeof nm<"u"?function(e){return nm.resolve(null).then(e).catch(Ky)}:tm;function Ky(e){setTimeout(function(){throw e})}function Wn(e){return e==="head"}function lm(e,t){var l=t,a=0;do{var o=l.nextSibling;if(e.removeChild(l),o&&o.nodeType===8)if(l=o.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(o),mi(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")ca(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ca(l);for(var h=l.firstChild;h;){var y=h.nextSibling,z=h.nodeName;h[Ai]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&h.rel.toLowerCase()==="stylesheet"||l.removeChild(h),h=y}}else l==="body"&&ca(e.ownerDocument.body);l=o}while(l);mi(t)}function im(e,t){var l=e;e=0;do{var a=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||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function go(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":go(l),vu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Jy(e,t,l,a){for(;e.nodeType===1;){var o=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ai])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=It(e.nextSibling),e===null)break}return null}function Iy(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=It(e.nextSibling),e===null))return null;return e}function am(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=It(e.nextSibling),e===null))return null;return e}function yo(e){return e.data==="$?"||e.data==="$~"}function xo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function $y(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function It(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 bo=null;function rm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return It(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function um(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function sm(e,t,l){switch(t=Ur(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 ca(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vu(e)}var $t=new Map,om=new Set;function Hr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Mn=K.d;K.d={f:Wy,r:Py,D:e1,C:t1,L:n1,m:l1,X:a1,S:i1,M:r1};function Wy(){var e=Mn.f(),t=_r();return e||t}function Py(e){var t=Ol(e);t!==null&&t.tag===5&&t.type==="form"?wh(t):Mn.r(e)}var fi=typeof document>"u"?null:document;function cm(e,t,l){var a=fi;if(a&&typeof t=="string"&&t){var o=Gt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),om.has(o)||(om.add(o),e={rel:e,crossOrigin:l,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),dt(t,"link",e),ut(t),a.head.appendChild(t)))}}function e1(e){Mn.D(e),cm("dns-prefetch",e,null)}function t1(e,t){Mn.C(e,t),cm("preconnect",e,t)}function n1(e,t,l){Mn.L(e,t,l);var a=fi;if(a&&e&&t){var o='link[rel="preload"][as="'+Gt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+Gt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+Gt(l.imageSizes)+'"]')):o+='[href="'+Gt(e)+'"]';var h=o;switch(t){case"style":h=hi(e);break;case"script":h=di(e)}$t.has(h)||(e=g({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),$t.set(h,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(fa(h))||t==="script"&&a.querySelector(ha(h))||(t=a.createElement("link"),dt(t,"link",e),ut(t),a.head.appendChild(t)))}}function l1(e,t){Mn.m(e,t);var l=fi;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Gt(a)+'"][href="'+Gt(e)+'"]',h=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=di(e)}if(!$t.has(h)&&(e=g({rel:"modulepreload",href:e},t),$t.set(h,e),l.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ha(h)))return}a=l.createElement("link"),dt(a,"link",e),ut(a),l.head.appendChild(a)}}}function i1(e,t,l){Mn.S(e,t,l);var a=fi;if(a&&e){var o=Dl(a).hoistableStyles,h=hi(e);t=t||"default";var y=o.get(h);if(!y){var z={loading:0,preload:null};if(y=a.querySelector(fa(h)))z.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},l),(l=$t.get(h))&&vo(e,l);var C=y=a.createElement("link");ut(C),dt(C,"link",e),C._p=new Promise(function(D,V){C.onload=D,C.onerror=V}),C.addEventListener("load",function(){z.loading|=1}),C.addEventListener("error",function(){z.loading|=2}),z.loading|=4,qr(y,t,a)}y={type:"stylesheet",instance:y,count:1,state:z},o.set(h,y)}}}function a1(e,t){Mn.X(e,t);var l=fi;if(l&&e){var a=Dl(l).hoistableScripts,o=di(e),h=a.get(o);h||(h=l.querySelector(ha(o)),h||(e=g({src:e,async:!0},t),(t=$t.get(o))&&So(e,t),h=l.createElement("script"),ut(h),dt(h,"link",e),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},a.set(o,h))}}function r1(e,t){Mn.M(e,t);var l=fi;if(l&&e){var a=Dl(l).hoistableScripts,o=di(e),h=a.get(o);h||(h=l.querySelector(ha(o)),h||(e=g({src:e,async:!0,type:"module"},t),(t=$t.get(o))&&So(e,t),h=l.createElement("script"),ut(h),dt(h,"link",e),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},a.set(o,h))}}function fm(e,t,l,a){var o=(o=oe.current)?Hr(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=hi(l.href),l=Dl(o).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=hi(l.href);var h=Dl(o).hoistableStyles,y=h.get(e);if(y||(o=o.ownerDocument||o,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,y),(h=o.querySelector(fa(e)))&&!h._p&&(y.instance=h,y.state.loading=5),$t.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},$t.set(e,l),h||u1(o,e,l,y.state))),t&&a===null)throw Error(u(528,""));return y}if(t&&a!==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=di(l),l=Dl(o).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function hi(e){return'href="'+Gt(e)+'"'}function fa(e){return'link[rel="stylesheet"]['+e+"]"}function hm(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function u1(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),ut(t),e.head.appendChild(t))}function di(e){return'[src="'+Gt(e)+'"]'}function ha(e){return"script[async]"+e}function dm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Gt(l.href)+'"]');if(a)return t.instance=a,ut(a),a;var o=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ut(a),dt(a,"style",o),qr(a,l.precedence,e),t.instance=a;case"stylesheet":o=hi(l.href);var h=e.querySelector(fa(o));if(h)return t.state.loading|=4,t.instance=h,ut(h),h;a=hm(l),(o=$t.get(o))&&vo(a,o),h=(e.ownerDocument||e).createElement("link"),ut(h);var y=h;return y._p=new Promise(function(z,C){y.onload=z,y.onerror=C}),dt(h,"link",a),t.state.loading|=4,qr(h,l.precedence,e),t.instance=h;case"script":return h=di(l.src),(o=e.querySelector(ha(h)))?(t.instance=o,ut(o),o):(a=l,(o=$t.get(h))&&(a=g({},l),So(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),ut(o),dt(o,"link",a),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&&(a=t.instance,t.state.loading|=4,qr(a,l.precedence,e));return t.instance}function qr(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,h=o,y=0;y<a.length;y++){var z=a[y];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 vo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function So(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Yr=null;function mm(e,t,l){if(Yr===null){var a=new Map,o=Yr=new Map;o.set(l,a)}else o=Yr,a=o.get(l),a||(a=new Map,o.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),o=0;o<l.length;o++){var h=l[o];if(!(h[Ai]||h[ot]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var y=h.getAttribute(t)||"";y=e+y;var z=a.get(y);z?z.push(h):a.set(y,[h])}}return a}function pm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function s1(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 gm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function o1(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var o=hi(a.href),h=t.querySelector(fa(o));if(h){t=h._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Vr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=h,ut(h);return}h=t.ownerDocument||t,a=hm(a),(o=$t.get(o))&&vo(a,o),h=h.createElement("link"),ut(h);var y=h;y._p=new Promise(function(z,C){y.onload=z,y.onerror=C}),dt(h,"link",a),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=Vr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var zo=0;function c1(e,t){return e.stylesheets&&e.count===0&&Xr(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Xr(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+t);0<e.imgBytes&&zo===0&&(zo=62500*Xy());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xr(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>zo?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function Vr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Gr=null;function Xr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Gr=new Map,t.forEach(f1,e),Gr=null,Vr.call(e))}function f1(e,t){if(!(t.state.loading&4)){var l=Gr.get(e);if(l)var a=l.get(null);else{l=new Map,Gr.set(e,l);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<o.length;h++){var y=o[h];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(l.set(y.dataset.precedence,y),a=y)}a&&l.set(null,a)}o=t.instance,y=o.getAttribute("data-precedence"),h=l.get(y)||a,h===a&&l.set(null,o),l.set(y,o),this.count++,a=Vr.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),h?h.parentNode.insertBefore(o,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var da={$$typeof:j,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function h1(e,t,l,a,o,h,y,z,C){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=gu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gu(0),this.hiddenUpdates=gu(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=h,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function ym(e,t,l,a,o,h,y,z,C,D,V,Z){return e=new h1(e,t,l,y,C,D,V,Z,z),t=1,h===!0&&(t|=24),h=Ot(3,null,null,t),e.current=h,h.stateNode=e,t=es(),t.refCount++,e.pooledCache=t,t.refCount++,h.memoizedState={element:a,isDehydrated:l,cache:t},is(h),e}function xm(e){return e?(e=Xl,e):Xl}function bm(e,t,l,a,o,h){o=xm(o),a.context===null?a.context=o:a.pendingContext=o,a=Yn(t),a.payload={element:l},h=h===void 0?null:h,h!==null&&(a.callback=h),l=Vn(e,a,t),l!==null&&(At(l,e,t),Qi(l,e,t))}function vm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ko(e,t){vm(e,t),(e=e.alternate)&&vm(e,t)}function Sm(e){if(e.tag===13||e.tag===31){var t=fl(e,67108864);t!==null&&At(t,e,67108864),ko(e,67108864)}}function zm(e){if(e.tag===13||e.tag===31){var t=Ut();t=yu(t);var l=fl(e,t);l!==null&&At(l,e,t),ko(e,t)}}var Qr=!0;function d1(e,t,l,a){var o=L.T;L.T=null;var h=K.p;try{K.p=2,Eo(e,t,l,a)}finally{K.p=h,L.T=o}}function m1(e,t,l,a){var o=L.T;L.T=null;var h=K.p;try{K.p=8,Eo(e,t,l,a)}finally{K.p=h,L.T=o}}function Eo(e,t,l,a){if(Qr){var o=Co(a);if(o===null)oo(e,t,a,Zr,l),Em(e,a);else if(g1(o,e,t,l,a))a.stopPropagation();else if(Em(e,a),t&4&&-1<p1.indexOf(e)){for(;o!==null;){var h=Ol(o);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var y=rl(h.pendingLanes);if(y!==0){var z=h;for(z.pendingLanes|=2,z.entangledLanes|=2;y;){var C=1<<31-Ve(y);z.entanglements[1]|=C,y&=~C}sn(h),(De&6)===0&&(Ar=yt()+500,ua(0))}}break;case 31:case 13:z=fl(h,2),z!==null&&At(z,h,2),_r(),ko(h,2)}if(h=Co(a),h===null&&oo(e,t,a,Zr,l),h===o)break;o=h}o!==null&&a.stopPropagation()}else oo(e,t,a,null,l)}}function Co(e){return e=wu(e),wo(e)}var Zr=null;function wo(e){if(Zr=null,e=jl(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 Zr=e,null}function km(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(pu()){case X:return 2;case P:return 8;case pe:case ze:return 32;case Re:return 268435456;default:return 32}default:return 32}}var To=!1,Pn=null,el=null,tl=null,ma=new Map,pa=new Map,nl=[],p1="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 Em(e,t){switch(e){case"focusin":case"focusout":Pn=null;break;case"dragenter":case"dragleave":el=null;break;case"mouseover":case"mouseout":tl=null;break;case"pointerover":case"pointerout":ma.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pa.delete(t.pointerId)}}function ga(e,t,l,a,o,h){return e===null||e.nativeEvent!==h?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:h,targetContainers:[o]},t!==null&&(t=Ol(t),t!==null&&Sm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function g1(e,t,l,a,o){switch(t){case"focusin":return Pn=ga(Pn,e,t,l,a,o),!0;case"dragenter":return el=ga(el,e,t,l,a,o),!0;case"mouseover":return tl=ga(tl,e,t,l,a,o),!0;case"pointerover":var h=o.pointerId;return ma.set(h,ga(ma.get(h)||null,e,t,l,a,o)),!0;case"gotpointercapture":return h=o.pointerId,pa.set(h,ga(pa.get(h)||null,e,t,l,a,o)),!0}return!1}function Cm(e){var t=jl(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,Uc(e.priority,function(){zm(l)});return}}else if(t===31){if(t=d(l),t!==null){e.blockedOn=t,Uc(e.priority,function(){zm(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 Fr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Co(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Cu=a,l.target.dispatchEvent(a),Cu=null}else return t=Ol(l),t!==null&&Sm(t),e.blockedOn=l,!1;t.shift()}return!0}function wm(e,t,l){Fr(e)&&l.delete(t)}function y1(){To=!1,Pn!==null&&Fr(Pn)&&(Pn=null),el!==null&&Fr(el)&&(el=null),tl!==null&&Fr(tl)&&(tl=null),ma.forEach(wm),pa.forEach(wm)}function Kr(e,t){e.blockedOn===t&&(e.blockedOn=null,To||(To=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,y1)))}var Jr=null;function Tm(e){Jr!==e&&(Jr=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Jr===e&&(Jr=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(wo(a||l)===null)continue;break}var h=Ol(l);h!==null&&(e.splice(t,3),t-=3,Es(h,{pending:!0,data:o,method:l.method,action:a},a,o))}}))}function mi(e){function t(C){return Kr(C,e)}Pn!==null&&Kr(Pn,e),el!==null&&Kr(el,e),tl!==null&&Kr(tl,e),ma.forEach(t),pa.forEach(t);for(var l=0;l<nl.length;l++){var a=nl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<nl.length&&(l=nl[0],l.blockedOn===null);)Cm(l),l.blockedOn===null&&nl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var o=l[a],h=l[a+1],y=o[zt]||null;if(typeof h=="function")y||Tm(l);else if(y){var z=null;if(h&&h.hasAttribute("formAction")){if(o=h,y=h[zt]||null)z=y.formAction;else if(wo(o)!==null)continue}else z=y.action;typeof z=="function"?l[a+1]=z:(l.splice(a,3),a-=3),Tm(l)}}}function Am(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(y){return o=y})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(l,20)}function l(){if(!a&&!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 a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Ao(e){this._internalRoot=e}Ir.prototype.render=Ao.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,a=Ut();bm(l,a,e,t,null,null)},Ir.prototype.unmount=Ao.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bm(e.current,2,null,e,null,null),_r(),t[Ml]=null}};function Ir(e){this._internalRoot=e}Ir.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<nl.length&&t!==0&&t<nl[l].priority;l++);nl.splice(l,0,e),l===0&&Cm(e)}};var Nm=r.version;if(Nm!=="19.2.3")throw Error(u(527,Nm,"19.2.3"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=m(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var x1={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$r.isDisabled&&$r.supportsFiber)try{xt=$r.inject(x1),at=$r}catch{}}return xa.createRoot=function(e,t){if(!s(e))throw Error(u(299));var l=!1,a="",o=Lh,h=Bh,y=Uh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(h=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=ym(e,1,!1,null,null,l,a,null,o,h,y,Am),e[Ml]=t.current,so(e),new Ao(t)},xa.hydrateRoot=function(e,t,l){if(!s(e))throw Error(u(299));var a=!1,o="",h=Lh,y=Bh,z=Uh,C=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(o=l.identifierPrefix),l.onUncaughtError!==void 0&&(h=l.onUncaughtError),l.onCaughtError!==void 0&&(y=l.onCaughtError),l.onRecoverableError!==void 0&&(z=l.onRecoverableError),l.formState!==void 0&&(C=l.formState)),t=ym(e,1,!0,t,l??null,a,o,C,h,y,z,Am),t.context=xm(null),l=t.current,a=Ut(),a=yu(a),o=Yn(a),o.callback=null,Vn(l,o,a),l=a,t.current.lanes=l,Ti(t,l),sn(t),e[Ml]=t.current,so(e),new Ir(t)},xa.version="19.2.3",xa}var Hm;function T1(){if(Hm)return Mo.exports;Hm=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(r){console.error(r)}}return n(),Mo.exports=w1(),Mo.exports}var A1=T1();/**
|
|
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 N1=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_1=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,i,u)=>u?u.toUpperCase():i.toLowerCase()),qm=n=>{const r=_1(n);return r.charAt(0).toUpperCase()+r.slice(1)},Yp=(...n)=>n.filter((r,i,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===i).join(" ").trim(),M1=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="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 j1={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 O1=fe.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:s="",children:c,iconNode:f,...d},p)=>fe.createElement("svg",{ref:p,...j1,width:r,height:r,stroke:n,strokeWidth:u?Number(i)*24/Number(r):i,className:Yp("lucide",s),...!c&&!M1(d)&&{"aria-hidden":"true"},...d},[...f.map(([m,x])=>fe.createElement(m,x)),...Array.isArray(c)?c:[c]]));/**
|
|
65
|
+
* @license lucide-react v0.562.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const Me=(n,r)=>{const i=fe.forwardRef(({className:u,...s},c)=>fe.createElement(O1,{ref:c,iconNode:r,className:Yp(`lucide-${N1(qm(n))}`,`lucide-${n}`,u),...s}));return i.displayName=qm(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 D1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],R1=Me("arrow-right",D1);/**
|
|
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 L1=[["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"}]],Vp=Me("bot",L1);/**
|
|
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 B1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Aa=Me("check",B1);/**
|
|
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 U1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Gp=Me("circle-check",U1);/**
|
|
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 H1=[["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"}]],q1=Me("circle-question-mark",H1);/**
|
|
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 Y1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],V1=Me("circle",Y1);/**
|
|
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 G1=[["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"}]],dc=Me("copy",G1);/**
|
|
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 X1=[["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"}]],Q1=Me("database",X1);/**
|
|
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 Z1=[["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"}]],Xp=Me("file-code",Z1);/**
|
|
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 F1=[["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"}]],K1=Me("file-pen",F1);/**
|
|
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 J1=[["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"}]],Qp=Me("file-plus-corner",J1);/**
|
|
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 I1=[["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"}]],Zp=Me("file-text",I1);/**
|
|
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 $1=[["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"}]],mc=Me("folder-open",$1);/**
|
|
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 W1=[["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"}]],P1=Me("git-branch",W1);/**
|
|
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 ex=[["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"}]],tx=Me("globe",ex);/**
|
|
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 nx=[["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"}]],lx=Me("hard-drive",nx);/**
|
|
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 ix=[["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"}]],ax=Me("lightbulb",ix);/**
|
|
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 rx=[["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"}]],Fp=Me("list-todo",rx);/**
|
|
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 ux=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],sx=Me("loader-circle",ux);/**
|
|
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 ox=[["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"}]],cx=Me("message-square",ox);/**
|
|
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 fx=[["path",{d:"M5 12h14",key:"1ays0h"}]],hx=Me("minus",fx);/**
|
|
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 dx=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],mx=Me("panel-left",dx);/**
|
|
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 px=[["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"}]],gx=Me("pause",px);/**
|
|
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 yx=[["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"}]],xx=Me("pencil",yx);/**
|
|
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 bx=[["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"}]],Kp=Me("play",bx);/**
|
|
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 vx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Sx=Me("plus",vx);/**
|
|
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 zx=[["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"}]],kx=Me("refresh-cw",zx);/**
|
|
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 Ex=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],lu=Me("search",Ex);/**
|
|
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 Cx=[["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"}]],wx=Me("square-check-big",Cx);/**
|
|
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 Tx=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Ax=Me("square",Tx);/**
|
|
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 Nx=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Jp=Me("terminal",Nx);/**
|
|
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 _x=[["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"}]],Mx=Me("triangle-alert",_x);/**
|
|
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 jx=[["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"}]],Ox=Me("wrench",jx);/**
|
|
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 Dx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Rx=Me("x",Dx);function Ip(n){const r=new Date(n),u=new Date().getTime()-r.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`:r.toLocaleDateString()}const Lx=[/<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 bi(n){let r=n;for(const i of Lx)r=r.replace(i,"");return r.trim()}var Bx=qp();function pi(n,r,i){let u=i.initialDeps??[],s,c=!0;function f(){var d,p,m;let x;i.key&&((d=i.debug)!=null&&d.call(i))&&(x=Date.now());const g=n();if(!(g.length!==u.length||g.some((w,_)=>u[_]!==w)))return s;u=g;let v;if(i.key&&((p=i.debug)!=null&&p.call(i))&&(v=Date.now()),s=r(...g),i.key&&((m=i.debug)!=null&&m.call(i))){const w=Math.round((Date.now()-x)*100)/100,_=Math.round((Date.now()-v)*100)/100,Y=_/16,M=(U,j)=>{for(U=String(U);U.length<j;)U=" "+U;return U};console.info(`%c⏱ ${M(_,5)} /${M(w,5)} ms`,`
|
|
240
|
+
font-size: .6rem;
|
|
241
|
+
font-weight: bold;
|
|
242
|
+
color: hsl(${Math.max(0,Math.min(120-120*Y,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 Ym(n,r){if(n===void 0)throw new Error("Unexpected undefined");return n}const Ux=(n,r)=>Math.abs(n-r)<1.01,Hx=(n,r,i)=>{let u;return function(...s){n.clearTimeout(u),u=n.setTimeout(()=>r.apply(this,s),i)}},Vm=n=>{const{offsetWidth:r,offsetHeight:i}=n;return{width:r,height:i}},qx=n=>n,Yx=n=>{const r=Math.max(n.startIndex-n.overscan,0),i=Math.min(n.endIndex+n.overscan,n.count-1),u=[];for(let s=r;s<=i;s++)u.push(s);return u},Vx=(n,r)=>{const i=n.scrollElement;if(!i)return;const u=n.targetWindow;if(!u)return;const s=f=>{const{width:d,height:p}=f;r({width:Math.round(d),height:Math.round(p)})};if(s(Vm(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(Vm(i))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()});return c.observe(i,{box:"border-box"}),()=>{c.unobserve(i)}},Gm={passive:!0},Xm=typeof window>"u"?!0:"onscrollend"in window,Gx=(n,r)=>{const i=n.scrollElement;if(!i)return;const u=n.targetWindow;if(!u)return;let s=0;const c=n.options.useScrollendEvent&&Xm?()=>{}:Hx(u,()=>{r(s,!1)},n.options.isScrollingResetDelay),f=x=>()=>{const{horizontal:g,isRtl:b}=n.options;s=g?i.scrollLeft*(b&&-1||1):i.scrollTop,c(),r(s,x)},d=f(!0),p=f(!1);p(),i.addEventListener("scroll",d,Gm);const m=n.options.useScrollendEvent&&Xm;return m&&i.addEventListener("scrollend",p,Gm),()=>{i.removeEventListener("scroll",d),m&&i.removeEventListener("scrollend",p)}},Xx=(n,r,i)=>{if(r!=null&&r.borderBoxSize){const u=r.borderBoxSize[0];if(u)return Math.round(u[i.options.horizontal?"inlineSize":"blockSize"])}return n[i.options.horizontal?"offsetWidth":"offsetHeight"]},Qx=(n,{adjustments:r=0,behavior:i},u)=>{var s,c;const f=n+r;(c=(s=u.scrollElement)==null?void 0:s.scrollTo)==null||c.call(s,{[u.options.horizontal?"left":"top"]:f,behavior:i})};class Zx{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,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:qx,rangeExtractor:Yx,onChange:()=>{},measureElement:Xx,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=pi(()=>(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._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),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.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=pi(()=>[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,skipInitialOnChange:!0,onChange:()=>{this.notify(this.isScrolling)}}),this.getMeasurements=pi(()=>[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 b of this.laneAssignments.keys())b>=i&&this.laneAssignments.delete(b);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(b=>{this.itemSizeCache.set(b.key,b.size)}));const m=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===i&&(this.lanesSettling=!1);const x=this.measurementsCache.slice(0,m),g=new Array(d).fill(void 0);for(let b=0;b<m;b++){const v=x[b];v&&(g[v.lane]=b)}for(let b=m;b<i;b++){const v=c(b),w=this.laneAssignments.get(b);let _,Y;if(w!==void 0&&this.options.lanes>1){_=w;const I=g[_],F=I!==void 0?x[I]:void 0;Y=F?F.end+this.options.gap:u+s}else{const I=this.options.lanes===1?x[b-1]:this.getFurthestMeasurement(x,b);Y=I?I.end+this.options.gap:u+s,_=I?I.lane:b%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(b,_)}const M=p.get(v),U=typeof M=="number"?M:this.options.estimateSize(b),j=Y+U;x[b]={index:b,start:Y,size:U,end:j,key:v,lane:_},g[_]=b}return this.measurementsCache=x,x},{key:!1,debug:()=>this.options.debug}),this.calculateRange=pi(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,u,s,c)=>this.range=i.length>0&&u>0?Fx({measurements:i,outerSize:u,scrollOffset:s,lanes:c}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=pi(()=>{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=pi(()=>[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 Ym(u[$p(0,u.length-1,s=>Ym(u[s]).start,i)])},this.getOffsetForAlignment=(i,u,s=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.getTotalSize()+this.options.scrollMargin-c;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];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));let c=0;const f=10,d=m=>{if(!this.targetWindow)return;const x=this.getOffsetForIndex(i,m);if(!x){console.warn("Failed to get offset for index:",i);return}const[g,b]=x;this._scrollToOffset(g,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{const v=this.getScrollOffset(),w=this.getOffsetForIndex(i,b);if(!w){console.warn("Failed to get offset for index:",i);return}Ux(w[0],v)||p(b)})},p=m=>{this.targetWindow&&(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(r)}}const $p=(n,r,i,u)=>{for(;n<=r;){const s=(n+r)/2|0,c=i(s);if(c<u)n=s+1;else if(c>u)r=s-1;else return s}return n>0?n-1:0};function Fx({measurements:n,outerSize:r,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=$p(0,s,c,i),d=f;if(u===1)for(;d<s&&n[d].end<i+r;)d++;else if(u>1){const p=Array(u).fill(0);for(;d<s&&p.some(x=>x<i+r);){const x=n[d];p[x.lane]=x.end,d++}const m=Array(u).fill(i+r);for(;f>=0&&m.some(x=>x>=i);){const x=n[f];m[x.lane]=x.start,f--}f=Math.max(0,f-f%u),d=Math.min(s,d+(u-1-d%u))}return{startIndex:f,endIndex:d}}const Qm=typeof document<"u"?fe.useLayoutEffect:fe.useEffect;function Kx(n){const r=fe.useReducer(()=>({}),{})[1],i={...n,onChange:(s,c)=>{var f;c?Bx.flushSync(r):r(),(f=n.onChange)==null||f.call(n,s,c)}},[u]=fe.useState(()=>new Zx(i));return u.setOptions(i),Qm(()=>u._didMount(),[]),Qm(()=>u._willUpdate()),u}function Jx(n){return Kx({observeElementRect:Vx,observeElementOffset:Gx,scrollToFn:Qx,...n})}const Ix=fe.memo(function(r){const{sessions:i,selectedSession:u,onSelectSession:s,loading:c}=r,[f,d]=fe.useState(""),p=fe.useRef(null),m=fe.useMemo(()=>{if(!f.trim())return i;const g=f.toLowerCase();return i.filter(b=>b.display.toLowerCase().includes(g)||b.projectName.toLowerCase().includes(g))},[i,f]),x=Jx({count:m.length,getScrollElement:()=>p.current,estimateSize:()=>76,overscan:10,measureElement:g=>g.getBoundingClientRect().height});return S.jsxs("div",{className:"h-full overflow-hidden bg-zinc-950 flex flex-col",children:[S.jsx("div",{className:"px-3 py-2 border-b border-zinc-800/60",children:S.jsxs("div",{className:"flex items-center gap-2 text-zinc-500",children:[S.jsx("svg",{className:"w-4 h-4 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),S.jsx("input",{type:"text",value:f,onChange:g=>d(g.target.value),placeholder:"Search...",className:"flex-1 bg-transparent text-sm text-zinc-200 placeholder-zinc-600 focus:outline-none"}),f&&S.jsx("button",{onClick:()=>d(""),className:"text-zinc-600 hover:text-zinc-400 transition-colors",children:S.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})}),S.jsx("div",{ref:p,className:"flex-1 overflow-y-auto",children:c?S.jsx("div",{className:"flex items-center justify-center py-8",children:S.jsxs("svg",{className:"w-5 h-5 text-zinc-600 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[S.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),S.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"})]})}):m.length===0?S.jsx("p",{className:"py-8 text-center text-xs text-zinc-600",children:f?"No sessions match":"No sessions found"}):S.jsx("div",{style:{height:`${x.getTotalSize()}px`,width:"100%",position:"relative"},children:x.getVirtualItems().map(g=>{const b=m[g.index];return S.jsxs("button",{"data-index":g.index,ref:x.measureElement,onClick:()=>s(b.id),style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${g.start}px)`},className:`px-3 py-3.5 text-left transition-colors overflow-hidden border-b border-zinc-800/40 ${u===b.id?"bg-cyan-700/30":"hover:bg-zinc-900/60"} ${g.index===0?"border-t border-t-zinc-800/40":""}`,children:[S.jsxs("div",{className:"flex items-center justify-between mb-1",children:[S.jsx("span",{className:"text-[10px] text-zinc-500 font-medium",children:b.projectName}),S.jsx("span",{className:"text-[10px] text-zinc-600",children:Ip(b.timestamp)})]}),S.jsx("p",{className:"text-[12px] text-zinc-300 leading-snug line-clamp-2 break-words",children:b.display})]},b.id)})})}),S.jsx("div",{className:"px-3 py-2 border-t border-zinc-800/60",children:S.jsxs("div",{className:"text-[10px] text-zinc-600 text-center",children:[i.length," session",i.length!==1?"s":""]})})]})});function $x(n,r){const i={};return(n[n.length-1]===""?[...n,""]:n).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const Wx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Px=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eb={};function Zm(n,r){return(eb.jsx?Px:Wx).test(n)}const tb=/[ \t\n\f\r]/g;function nb(n){return typeof n=="object"?n.type==="text"?Fm(n.value):!1:Fm(n)}function Fm(n){return n.replace(tb,"")===""}class Na{constructor(r,i,u){this.normal=i,this.property=r,u&&(this.space=u)}}Na.prototype.normal={};Na.prototype.property={};Na.prototype.space=void 0;function Wp(n,r){const i={},u={};for(const s of n)Object.assign(i,s.property),Object.assign(u,s.normal);return new Na(i,u,r)}function ec(n){return n.toLowerCase()}class _t{constructor(r,i){this.attribute=i,this.property=r}}_t.prototype.attribute="";_t.prototype.booleanish=!1;_t.prototype.boolean=!1;_t.prototype.commaOrSpaceSeparated=!1;_t.prototype.commaSeparated=!1;_t.prototype.defined=!1;_t.prototype.mustUseProperty=!1;_t.prototype.number=!1;_t.prototype.overloadedBoolean=!1;_t.prototype.property="";_t.prototype.spaceSeparated=!1;_t.prototype.space=void 0;let lb=0;const be=wl(),it=wl(),tc=wl(),J=wl(),Qe=wl(),vi=wl(),Ht=wl();function wl(){return 2**++lb}const nc=Object.freeze(Object.defineProperty({__proto__:null,boolean:be,booleanish:it,commaOrSpaceSeparated:Ht,commaSeparated:vi,number:J,overloadedBoolean:tc,spaceSeparated:Qe},Symbol.toStringTag,{value:"Module"})),Ro=Object.keys(nc);class pc extends _t{constructor(r,i,u,s){let c=-1;if(super(r,i),Km(this,"space",s),typeof u=="number")for(;++c<Ro.length;){const f=Ro[c];Km(this,Ro[c],(u&nc[f])===nc[f])}}}pc.prototype.defined=!0;function Km(n,r,i){i&&(n[r]=i)}function zi(n){const r={},i={};for(const[u,s]of Object.entries(n.properties)){const c=new pc(u,n.transform(n.attributes||{},u),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(c.mustUseProperty=!0),r[u]=c,i[ec(u)]=u,i[ec(c.attribute)]=u}return new Na(r,i,n.space)}const Pp=zi({properties:{ariaActiveDescendant:null,ariaAtomic:it,ariaAutoComplete:null,ariaBusy:it,ariaChecked:it,ariaColCount:J,ariaColIndex:J,ariaColSpan:J,ariaControls:Qe,ariaCurrent:null,ariaDescribedBy:Qe,ariaDetails:null,ariaDisabled:it,ariaDropEffect:Qe,ariaErrorMessage:null,ariaExpanded:it,ariaFlowTo:Qe,ariaGrabbed:it,ariaHasPopup:null,ariaHidden:it,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Qe,ariaLevel:J,ariaLive:null,ariaModal:it,ariaMultiLine:it,ariaMultiSelectable:it,ariaOrientation:null,ariaOwns:Qe,ariaPlaceholder:null,ariaPosInSet:J,ariaPressed:it,ariaReadOnly:it,ariaRelevant:null,ariaRequired:it,ariaRoleDescription:Qe,ariaRowCount:J,ariaRowIndex:J,ariaRowSpan:J,ariaSelected:it,ariaSetSize:J,ariaSort:null,ariaValueMax:J,ariaValueMin:J,ariaValueNow:J,ariaValueText:null,role:null},transform(n,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function e0(n,r){return r in n?n[r]:r}function t0(n,r){return e0(n,r.toLowerCase())}const ib=zi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:vi,acceptCharset:Qe,accessKey:Qe,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:Qe,autoFocus:be,autoPlay:be,blocking:Qe,capture:null,charSet:null,checked:be,cite:null,className:Qe,cols:J,colSpan:null,content:null,contentEditable:it,controls:be,controlsList:Qe,coords:J|vi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:be,defer:be,dir:null,dirName:null,disabled:be,download:tc,draggable:it,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:Qe,height:J,hidden:tc,high:J,href:null,hrefLang:null,htmlFor:Qe,httpEquiv:Qe,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:Qe,itemRef:Qe,itemScope:be,itemType:Qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:J,manifest:null,max:null,maxLength:J,media:null,method:null,min:null,minLength:J,multiple:be,muted:be,name:null,nonce:null,noModule:be,noValidate:be,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:be,optimum:J,pattern:null,ping:Qe,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:Qe,required:be,reversed:be,rows:J,rowSpan:J,sandbox:Qe,scope:null,scoped:be,seamless:be,selected:be,shadowRootClonable:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shape:null,size:J,sizes:null,slot:null,span:J,spellCheck:it,src:null,srcDoc:null,srcLang:null,srcSet:null,start:J,step:null,style:null,tabIndex:J,target:null,title:null,translate:null,type:null,typeMustMatch:be,useMap:null,value:it,width:J,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Qe,axis:null,background:null,bgColor:null,border:J,borderColor:null,bottomMargin:J,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:be,declare:be,event:null,face:null,frame:null,frameBorder:null,hSpace:J,leftMargin:J,link:null,longDesc:null,lowSrc:null,marginHeight:J,marginWidth:J,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:J,rules:null,scheme:null,scrolling:it,standby:null,summary:null,text:null,topMargin:J,valueType:null,version:null,vAlign:null,vLink:null,vSpace:J,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:be,disableRemotePlayback:be,prefix:null,property:null,results:J,security:null,unselectable:null},space:"html",transform:t0}),ab=zi({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:Ht,accentHeight:J,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:J,amplitude:J,arabicForm:null,ascent:J,attributeName:null,attributeType:null,azimuth:J,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:J,by:null,calcMode:null,capHeight:J,className:Qe,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:J,diffuseConstant:J,direction:null,display:null,dur:null,divisor:J,dominantBaseline:null,download:be,dx:null,dy:null,edgeMode:null,editable:null,elevation:J,enableBackground:null,end:null,event:null,exponent:J,externalResourcesRequired:null,fill:null,fillOpacity:J,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:vi,g2:vi,glyphName:vi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:J,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:J,horizOriginX:J,horizOriginY:J,id:null,ideographic:J,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:J,k:J,k1:J,k2:J,k3:J,k4:J,kernelMatrix:Ht,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:J,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:J,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:J,overlineThickness:J,paintOrder:null,panose1:null,path:null,pathLength:J,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:J,pointsAtY:J,pointsAtZ:J,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ht,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ht,rev:Ht,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ht,requiredFeatures:Ht,requiredFonts:Ht,requiredFormats:Ht,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:J,specularExponent:J,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:J,strikethroughThickness:J,string:null,stroke:null,strokeDashArray:Ht,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:J,strokeOpacity:J,strokeWidth:null,style:null,surfaceScale:J,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ht,tabIndex:J,tableValues:null,target:null,targetX:J,targetY:J,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ht,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:J,underlineThickness:J,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:J,values:null,vAlphabetic:J,vMathematical:J,vectorEffect:null,vHanging:J,vIdeographic:J,version:null,vertAdvY:J,vertOriginX:J,vertOriginY:J,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:J,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:e0}),n0=zi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,r){return"xlink:"+r.slice(5).toLowerCase()}}),l0=zi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:t0}),i0=zi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,r){return"xml:"+r.slice(3).toLowerCase()}}),rb={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"},ub=/[A-Z]/g,Jm=/-[a-z]/g,sb=/^data[-\w.:]+$/i;function ob(n,r){const i=ec(r);let u=r,s=_t;if(i in n.normal)return n.property[n.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&sb.test(r)){if(r.charAt(4)==="-"){const c=r.slice(5).replace(Jm,fb);u="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=r.slice(4);if(!Jm.test(c)){let f=c.replace(ub,cb);f.charAt(0)!=="-"&&(f="-"+f),r="data"+f}}s=pc}return new s(u,r)}function cb(n){return"-"+n.toLowerCase()}function fb(n){return n.charAt(1).toUpperCase()}const hb=Wp([Pp,ib,n0,l0,i0],"html"),gc=Wp([Pp,ab,n0,l0,i0],"svg");function db(n){return n.join(" ").trim()}var gi={},Lo,Im;function mb(){if(Im)return Lo;Im=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
|
|
243
|
+
`,m="/",x="*",g="",b="comment",v="declaration";function w(Y,M){if(typeof Y!="string")throw new TypeError("First argument must be a string");if(!Y)return[];M=M||{};var U=1,j=1;function I(ie){var W=ie.match(r);W&&(U+=W.length);var L=ie.lastIndexOf(p);j=~L?ie.length-L:j+ie.length}function F(){var ie={line:U,column:j};return function(W){return W.position=new B(ie),se(),W}}function B(ie){this.start=ie,this.end={line:U,column:j},this.source=M.source}B.prototype.content=Y;function $(ie){var W=new Error(M.source+":"+U+":"+j+": "+ie);if(W.reason=ie,W.filename=M.source,W.line=U,W.column=j,W.source=Y,!M.silent)throw W}function ue(ie){var W=ie.exec(Y);if(W){var L=W[0];return I(L),Y=Y.slice(L.length),W}}function se(){ue(i)}function H(ie){var W;for(ie=ie||[];W=ne();)W!==!1&&ie.push(W);return ie}function ne(){var ie=F();if(!(m!=Y.charAt(0)||x!=Y.charAt(1))){for(var W=2;g!=Y.charAt(W)&&(x!=Y.charAt(W)||m!=Y.charAt(W+1));)++W;if(W+=2,g===Y.charAt(W-1))return $("End of comment missing");var L=Y.slice(2,W-2);return j+=2,I(L),Y=Y.slice(W),j+=2,ie({type:b,comment:L})}}function te(){var ie=F(),W=ue(u);if(W){if(ne(),!ue(s))return $("property missing ':'");var L=ue(c),K=ie({type:v,property:_(W[0].replace(n,g)),value:L?_(L[0].replace(n,g)):g});return ue(f),K}}function Se(){var ie=[];H(ie);for(var W;W=te();)W!==!1&&(ie.push(W),H(ie));return ie}return se(),Se()}function _(Y){return Y?Y.replace(d,g):g}return Lo=w,Lo}var $m;function pb(){if($m)return gi;$m=1;var n=gi&&gi.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(gi,"__esModule",{value:!0}),gi.default=i;const r=n(mb());function i(u,s){let c=null;if(!u||typeof u!="string")return c;const f=(0,r.default)(u),d=typeof s=="function";return f.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:x}=p;d?s(m,x,p):x&&(c=c||{},c[m]=x)}),c}return gi}var ba={},Wm;function gb(){if(Wm)return ba;Wm=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,c=function(m){return!m||i.test(m)||n.test(m)},f=function(m,x){return x.toUpperCase()},d=function(m,x){return"".concat(x,"-")},p=function(m,x){return x===void 0&&(x={}),c(m)?m:(m=m.toLowerCase(),x.reactCompat?m=m.replace(s,d):m=m.replace(u,d),m.replace(r,f))};return ba.camelCase=p,ba}var va,Pm;function yb(){if(Pm)return va;Pm=1;var n=va&&va.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},r=n(pb()),i=gb();function u(s,c){var f={};return!s||typeof s!="string"||(0,r.default)(s,function(d,p){d&&p&&(f[(0,i.camelCase)(d,c)]=p)}),f}return u.default=u,va=u,va}var xb=yb();const bb=Hp(xb),a0=r0("end"),yc=r0("start");function r0(n){return r;function r(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 vb(n){const r=yc(n),i=a0(n);if(r&&i)return{start:r,end:i}}function ka(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?ep(n.position):"start"in n||"end"in n?ep(n):"line"in n||"column"in n?lc(n):""}function lc(n){return tp(n&&n.line)+":"+tp(n&&n.column)}function ep(n){return lc(n&&n.start)+"-"+lc(n&&n.end)}function tp(n){return n&&typeof n=="number"?n:1}class gt extends Error{constructor(r,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 r=="string"?s=r:!c.cause&&r&&(f=!0,s=r.message,c.cause=r),!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=ka(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}}gt.prototype.file="";gt.prototype.name="";gt.prototype.reason="";gt.prototype.message="";gt.prototype.stack="";gt.prototype.column=void 0;gt.prototype.line=void 0;gt.prototype.ancestors=void 0;gt.prototype.cause=void 0;gt.prototype.fatal=void 0;gt.prototype.place=void 0;gt.prototype.ruleId=void 0;gt.prototype.source=void 0;const xc={}.hasOwnProperty,Sb=new Map,zb=/[A-Z]/g,kb=new Set(["table","tbody","thead","tfoot","tr"]),Eb=new Set(["td","th"]),u0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Cb(n,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=r.filePath||void 0;let u;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=Ob(i,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=jb(i,r.jsx,r.jsxs)}const s={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:u,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?gc:hb,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},c=s0(s,n,void 0);return c&&typeof c!="string"?c:s.create(n,s.Fragment,{children:c||void 0},void 0)}function s0(n,r,i){if(r.type==="element")return wb(n,r,i);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return Tb(n,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return Nb(n,r,i);if(r.type==="mdxjsEsm")return Ab(n,r);if(r.type==="root")return _b(n,r,i);if(r.type==="text")return Mb(n,r)}function wb(n,r,i){const u=n.schema;let s=u;r.tagName.toLowerCase()==="svg"&&u.space==="html"&&(s=gc,n.schema=s),n.ancestors.push(r);const c=c0(n,r.tagName,!1),f=Db(n,r);let d=vc(n,r);return kb.has(r.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!nb(p):!0})),o0(n,f,c,r),bc(f,d),n.ancestors.pop(),n.schema=u,n.create(r,c,f,i)}function Tb(n,r){if(r.data&&r.data.estree&&n.evaluater){const u=r.data.estree.body[0];return u.type,n.evaluater.evaluateExpression(u.expression)}wa(n,r.position)}function Ab(n,r){if(r.data&&r.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(r.data.estree);wa(n,r.position)}function Nb(n,r,i){const u=n.schema;let s=u;r.name==="svg"&&u.space==="html"&&(s=gc,n.schema=s),n.ancestors.push(r);const c=r.name===null?n.Fragment:c0(n,r.name,!0),f=Rb(n,r),d=vc(n,r);return o0(n,f,c,r),bc(f,d),n.ancestors.pop(),n.schema=u,n.create(r,c,f,i)}function _b(n,r,i){const u={};return bc(u,vc(n,r)),n.create(r,n.Fragment,u,i)}function Mb(n,r){return r.value}function o0(n,r,i,u){typeof i!="string"&&i!==n.Fragment&&n.passNode&&(r.node=u)}function bc(n,r){if(r.length>0){const i=r.length>1?r:r[0];i&&(n.children=i)}}function jb(n,r,i){return u;function u(s,c,f,d){const m=Array.isArray(f.children)?i:r;return d?m(c,f,d):m(c,f)}}function Ob(n,r){return i;function i(u,s,c,f){const d=Array.isArray(c.children),p=yc(u);return r(s,c,f,d,{columnNumber:p?p.column-1:void 0,fileName:n,lineNumber:p?p.line:void 0},void 0)}}function Db(n,r){const i={};let u,s;for(s in r.properties)if(s!=="children"&&xc.call(r.properties,s)){const c=Lb(n,s,r.properties[s]);if(c){const[f,d]=c;n.tableCellAlignToStyle&&f==="align"&&typeof d=="string"&&Eb.has(r.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 Rb(n,r){const i={};for(const u of r.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 wa(n,r.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 wa(n,r.position);else c=u.value===null?!0:u.value;i[s]=c}return i}function vc(n,r){const i=[];let u=-1;const s=n.passKeys?new Map:Sb;for(;++u<r.children.length;){const c=r.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=s0(n,c,f);d!==void 0&&i.push(d)}return i}function Lb(n,r,i){const u=ob(n.schema,r);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=u.commaSeparated?$x(i):db(i)),u.property==="style"){let s=typeof i=="object"?i:Bb(n,String(i));return n.stylePropertyNameCase==="css"&&(s=Ub(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&u.space?rb[u.property]||u.property:u.attribute,i]}}function Bb(n,r){try{return bb(r,{reactCompat:!0})}catch(i){if(n.ignoreInvalidStyle)return{};const u=i,s=new gt("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=u0+"#cannot-parse-style-attribute",s}}function c0(n,r,i){let u;if(!i)u={type:"Literal",value:r};else if(r.includes(".")){const s=r.split(".");let c=-1,f;for(;++c<s.length;){const d=Zm(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=Zm(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(u.type==="Literal"){const s=u.value;return xc.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(u);wa(n)}function wa(n,r){const i=new gt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=n.filePath||void 0,i.url=u0+"#cannot-handle-mdx-estrees-without-createevaluater",i}function Ub(n){const r={};let i;for(i in n)xc.call(n,i)&&(r[Hb(i)]=n[i]);return r}function Hb(n){let r=n.replace(zb,qb);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function qb(n){return"-"+n.toLowerCase()}const Bo={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"]},Yb={};function Sc(n,r){const i=Yb,u=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return f0(n,u,s)}function f0(n,r,i){if(Vb(n)){if("value"in n)return n.type==="html"&&!i?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return np(n.children,r,i)}return Array.isArray(n)?np(n,r,i):""}function np(n,r,i){const u=[];let s=-1;for(;++s<n.length;)u[s]=f0(n[s],r,i);return u.join("")}function Vb(n){return!!(n&&typeof n=="object")}const lp=document.createElement("i");function zc(n){const r="&"+n+";";lp.innerHTML=r;const i=lp.textContent;return i.charCodeAt(i.length-1)===59&&n!=="semi"||i===r?!1:i}function qt(n,r,i,u){const s=n.length;let c=0,f;if(r<0?r=-r>s?0:s+r:r=r>s?s:r,i=i>0?i:0,u.length<1e4)f=Array.from(u),f.unshift(r,i),n.splice(...f);else for(i&&n.splice(r,i);c<u.length;)f=u.slice(c,c+1e4),f.unshift(r,0),n.splice(...f),c+=1e4,r+=1e4}function Wt(n,r){return n.length>0?(qt(n,n.length,0,r),n):r}const ip={}.hasOwnProperty;function h0(n){const r={};let i=-1;for(;++i<n.length;)Gb(r,n[i]);return r}function Gb(n,r){let i;for(i in r){const s=(ip.call(n,i)?n[i]:void 0)||(n[i]={}),c=r[i];let f;if(c)for(f in c){ip.call(s,f)||(s[f]=[]);const d=c[f];Xb(s[f],Array.isArray(d)?d:d?[d]:[])}}}function Xb(n,r){let i=-1;const u=[];for(;++i<r.length;)(r[i].add==="after"?n:u).push(r[i]);qt(n,0,0,u)}function d0(n,r){const i=Number.parseInt(n,r);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 ln(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const vt=al(/[A-Za-z]/),pt=al(/[\dA-Za-z]/),Qb=al(/[#-'*+\--9=?A-Z^-~]/);function iu(n){return n!==null&&(n<32||n===127)}const ic=al(/\d/),Zb=al(/[\dA-Fa-f]/),Fb=al(/[!-/:-@[-`{-~]/);function he(n){return n!==null&&n<-2}function Xe(n){return n!==null&&(n<0||n===32)}function Ce(n){return n===-2||n===-1||n===32}const su=al(new RegExp("\\p{P}|\\p{S}","u")),Cl=al(/\s/);function al(n){return r;function r(i){return i!==null&&i>-1&&n.test(String.fromCharCode(i))}}function ki(n){const r=[];let i=-1,u=0,s=0;for(;++i<n.length;){const c=n.charCodeAt(i);let f="";if(c===37&&pt(n.charCodeAt(i+1))&&pt(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&&(r.push(n.slice(u,i),encodeURIComponent(f)),u=i+s+1,f=""),s&&(i+=s,s=0)}return r.join("")+n.slice(u)}function _e(n,r,i,u){const s=u?u-1:Number.POSITIVE_INFINITY;let c=0;return f;function f(p){return Ce(p)?(n.enter(i),d(p)):r(p)}function d(p){return Ce(p)&&c++<s?(n.consume(p),d):(n.exit(i),r(p))}}const Kb={tokenize:Jb};function Jb(n){const r=n.attempt(this.parser.constructs.contentInitial,u,s);let i;return r;function u(d){if(d===null){n.consume(d);return}return n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),_e(n,r,"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 he(d)?(n.consume(d),n.exit("chunkText"),c):(n.consume(d),f)}}const Ib={tokenize:$b},ap={tokenize:Wb};function $b(n){const r=this,i=[];let u=0,s,c,f;return d;function d(j){if(u<i.length){const I=i[u];return r.containerState=I[1],n.attempt(I[0].continuation,p,m)(j)}return m(j)}function p(j){if(u++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,s&&U();const I=r.events.length;let F=I,B;for(;F--;)if(r.events[F][0]==="exit"&&r.events[F][1].type==="chunkFlow"){B=r.events[F][1].end;break}M(u);let $=I;for(;$<r.events.length;)r.events[$][1].end={...B},$++;return qt(r.events,F+1,0,r.events.slice(I)),r.events.length=$,m(j)}return d(j)}function m(j){if(u===i.length){if(!s)return b(j);if(s.currentConstruct&&s.currentConstruct.concrete)return w(j);r.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},n.check(ap,x,g)(j)}function x(j){return s&&U(),M(u),b(j)}function g(j){return r.parser.lazy[r.now().line]=u!==i.length,f=r.now().offset,w(j)}function b(j){return r.containerState={},n.attempt(ap,v,w)(j)}function v(j){return u++,i.push([r.currentConstruct,r.containerState]),b(j)}function w(j){if(j===null){s&&U(),M(0),n.consume(j);return}return s=s||r.parser.flow(r.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:c}),_(j)}function _(j){if(j===null){Y(n.exit("chunkFlow"),!0),M(0),n.consume(j);return}return he(j)?(n.consume(j),Y(n.exit("chunkFlow")),u=0,r.interrupt=void 0,d):(n.consume(j),_)}function Y(j,I){const F=r.sliceStream(j);if(I&&F.push(null),j.previous=c,c&&(c.next=j),c=j,s.defineSkip(j.start),s.write(F),r.parser.lazy[j.start.line]){let B=s.events.length;for(;B--;)if(s.events[B][1].start.offset<f&&(!s.events[B][1].end||s.events[B][1].end.offset>f))return;const $=r.events.length;let ue=$,se,H;for(;ue--;)if(r.events[ue][0]==="exit"&&r.events[ue][1].type==="chunkFlow"){if(se){H=r.events[ue][1].end;break}se=!0}for(M(u),B=$;B<r.events.length;)r.events[B][1].end={...H},B++;qt(r.events,ue+1,0,r.events.slice($)),r.events.length=B}}function M(j){let I=i.length;for(;I-- >j;){const F=i[I];r.containerState=F[1],F[0].exit.call(r,n)}i.length=j}function U(){s.write([null]),c=void 0,s=void 0,r.containerState._closeFlow=void 0}}function Wb(n,r,i){return _e(n,n.attempt(this.parser.constructs.document,r,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Si(n){if(n===null||Xe(n)||Cl(n))return 1;if(su(n))return 2}function ou(n,r,i){const u=[];let s=-1;for(;++s<n.length;){const c=n[s].resolveAll;c&&!u.includes(c)&&(r=c(r,i),u.push(c))}return r}const ac={name:"attention",resolveAll:Pb,tokenize:ev};function Pb(n,r){let i=-1,u,s,c,f,d,p,m,x;for(;++i<n.length;)if(n[i][0]==="enter"&&n[i][1].type==="attentionSequence"&&n[i][1]._close){for(u=i;u--;)if(n[u][0]==="exit"&&n[u][1].type==="attentionSequence"&&n[u][1]._open&&r.sliceSerialize(n[u][1]).charCodeAt(0)===r.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},b={...n[i][1].start};rp(g,-p),rp(b,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:b},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=Wt(m,[["enter",n[u][1],r],["exit",n[u][1],r]])),m=Wt(m,[["enter",s,r],["enter",f,r],["exit",f,r],["enter",c,r]]),m=Wt(m,ou(r.parser.constructs.insideSpan.null,n.slice(u+1,i),r)),m=Wt(m,[["exit",c,r],["enter",d,r],["exit",d,r],["exit",s,r]]),n[i][1].end.offset-n[i][1].start.offset?(x=2,m=Wt(m,[["enter",n[i][1],r],["exit",n[i][1],r]])):x=0,qt(n,u-1,i-u+3,m),i=u+m.length-x-2;break}}for(i=-1;++i<n.length;)n[i][1].type==="attentionSequence"&&(n[i][1].type="data");return n}function ev(n,r){const i=this.parser.constructs.attentionMarkers.null,u=this.previous,s=Si(u);let c;return f;function f(p){return c=p,n.enter("attentionSequence"),d(p)}function d(p){if(p===c)return n.consume(p),d;const m=n.exit("attentionSequence"),x=Si(p),g=!x||x===2&&s||i.includes(p),b=!s||s===2&&x||i.includes(u);return m._open=!!(c===42?g:g&&(s||!b)),m._close=!!(c===42?b:b&&(x||!g)),r(p)}}function rp(n,r){n.column+=r,n.offset+=r,n._bufferIndex+=r}const tv={name:"autolink",tokenize:nv};function nv(n,r,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 vt(v)?(n.consume(v),f):v===64?i(v):m(v)}function f(v){return v===43||v===45||v===46||pt(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||pt(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"),r):v===null||v===32||v===60||iu(v)?i(v):(n.consume(v),p)}function m(v){return v===64?(n.consume(v),x):Qb(v)?(n.consume(v),m):i(v)}function x(v){return pt(v)?g(v):i(v)}function g(v){return v===46?(n.consume(v),u=0,x):v===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.exit("autolink"),r):b(v)}function b(v){if((v===45||pt(v))&&u++<63){const w=v===45?b:g;return n.consume(v),w}return i(v)}}const _a={partial:!0,tokenize:lv};function lv(n,r,i){return u;function u(c){return Ce(c)?_e(n,s,"linePrefix")(c):s(c)}function s(c){return c===null||he(c)?r(c):i(c)}}const m0={continuation:{tokenize:av},exit:rv,name:"blockQuote",tokenize:iv};function iv(n,r,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 Ce(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),r):(n.exit("blockQuotePrefix"),r(f))}}function av(n,r,i){const u=this;return s;function s(f){return Ce(f)?_e(n,c,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):c(f)}function c(f){return n.attempt(m0,r,i)(f)}}function rv(n){n.exit("blockQuote")}const p0={name:"characterEscape",tokenize:uv};function uv(n,r,i){return u;function u(c){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(c),n.exit("escapeMarker"),s}function s(c){return Fb(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),r):i(c)}}const g0={name:"characterReference",tokenize:sv};function sv(n,r,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=pt,x(g))}function m(g){return g===88||g===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(g),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),c=6,f=Zb,x):(n.enter("characterReferenceValue"),c=7,f=ic,x(g))}function x(g){if(g===59&&s){const b=n.exit("characterReferenceValue");return f===pt&&!zc(u.sliceSerialize(b))?i(g):(n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),n.exit("characterReference"),r)}return f(g)&&s++<c?(n.consume(g),x):i(g)}}const up={partial:!0,tokenize:cv},sp={concrete:!0,name:"codeFenced",tokenize:ov};function ov(n,r,i){const u=this,s={partial:!0,tokenize:F};let c=0,f=0,d;return p;function p(B){return m(B)}function m(B){const $=u.events[u.events.length-1];return c=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,d=B,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),x(B)}function x(B){return B===d?(f++,n.consume(B),x):f<3?i(B):(n.exit("codeFencedFenceSequence"),Ce(B)?_e(n,g,"whitespace")(B):g(B))}function g(B){return B===null||he(B)?(n.exit("codeFencedFence"),u.interrupt?r(B):n.check(up,_,I)(B)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),b(B))}function b(B){return B===null||he(B)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),g(B)):Ce(B)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),_e(n,v,"whitespace")(B)):B===96&&B===d?i(B):(n.consume(B),b)}function v(B){return B===null||he(B)?g(B):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),w(B))}function w(B){return B===null||he(B)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),g(B)):B===96&&B===d?i(B):(n.consume(B),w)}function _(B){return n.attempt(s,I,Y)(B)}function Y(B){return n.enter("lineEnding"),n.consume(B),n.exit("lineEnding"),M}function M(B){return c>0&&Ce(B)?_e(n,U,"linePrefix",c+1)(B):U(B)}function U(B){return B===null||he(B)?n.check(up,_,I)(B):(n.enter("codeFlowValue"),j(B))}function j(B){return B===null||he(B)?(n.exit("codeFlowValue"),U(B)):(n.consume(B),j)}function I(B){return n.exit("codeFenced"),r(B)}function F(B,$,ue){let se=0;return H;function H(W){return B.enter("lineEnding"),B.consume(W),B.exit("lineEnding"),ne}function ne(W){return B.enter("codeFencedFence"),Ce(W)?_e(B,te,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):te(W)}function te(W){return W===d?(B.enter("codeFencedFenceSequence"),Se(W)):ue(W)}function Se(W){return W===d?(se++,B.consume(W),Se):se>=f?(B.exit("codeFencedFenceSequence"),Ce(W)?_e(B,ie,"whitespace")(W):ie(W)):ue(W)}function ie(W){return W===null||he(W)?(B.exit("codeFencedFence"),$(W)):ue(W)}}}function cv(n,r,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):r(f)}}const Uo={name:"codeIndented",tokenize:hv},fv={partial:!0,tokenize:dv};function hv(n,r,i){const u=this;return s;function s(m){return n.enter("codeIndented"),_e(n,c,"linePrefix",5)(m)}function c(m){const x=u.events[u.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?f(m):i(m)}function f(m){return m===null?p(m):he(m)?n.attempt(fv,f,p)(m):(n.enter("codeFlowValue"),d(m))}function d(m){return m===null||he(m)?(n.exit("codeFlowValue"),f(m)):(n.consume(m),d)}function p(m){return n.exit("codeIndented"),r(m)}}function dv(n,r,i){const u=this;return s;function s(f){return u.parser.lazy[u.now().line]?i(f):he(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),s):_e(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?r(f):he(f)?s(f):i(f)}}const mv={name:"codeText",previous:gv,resolve:pv,tokenize:yv};function pv(n){let r=n.length-4,i=3,u,s;if((n[i][1].type==="lineEnding"||n[i][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(u=i;++u<r;)if(n[u][1].type==="codeTextData"){n[i][1].type="codeTextPadding",n[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(u=i-1,r++;++u<=r;)s===void 0?u!==r&&n[u][1].type!=="lineEnding"&&(s=u):(u===r||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),r-=u-s-2,u=s+2),s=void 0);return n}function gv(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function yv(n,r,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,x(g)):he(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||he(g)?(n.exit("codeTextData"),p(g)):(n.consume(g),m)}function x(g){return g===96?(n.consume(g),s++,x):s===u?(n.exit("codeTextSequence"),n.exit("codeText"),r(g)):(c.type="codeTextData",m(g))}}class xv{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,i){const u=i??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(r,u):r>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(r,i,u){const s=i||0;this.setCursor(Math.trunc(r));const c=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return u&&Sa(this.left,u),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),Sa(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Sa(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const i=this.left.splice(r,Number.POSITIVE_INFINITY);Sa(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Sa(this.left,i.reverse())}}}function Sa(n,r){let i=0;if(r.length<1e4)n.push(...r);else for(;i<r.length;)n.push(...r.slice(i,i+1e4)),i+=1e4}function y0(n){const r={};let i=-1,u,s,c,f,d,p,m;const x=new xv(n);for(;++i<x.length;){for(;i in r;)i=r[i];if(u=x.get(i),i&&u[1].type==="chunkFlow"&&x.get(i-1)[1].type==="listItemPrefix"&&(p=u[1]._tokenizer.events,c=0,c<p.length&&p[c][1].type==="lineEndingBlank"&&(c+=2),c<p.length&&p[c][1].type==="content"))for(;++c<p.length&&p[c][1].type!=="content";)p[c][1].type==="chunkText"&&(p[c][1]._isInFirstContentOfListItem=!0,c++);if(u[0]==="enter")u[1].contentType&&(Object.assign(r,bv(x,i)),i=r[i],m=!0);else if(u[1]._container){for(c=i,s=void 0;c--;)if(f=x.get(c),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(s&&(x.get(s)[1].type="lineEndingBlank"),f[1].type="lineEnding",s=c);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;s&&(u[1].end={...x.get(s)[1].start},d=x.slice(s,i),d.unshift(u),x.splice(s,i-s+1,d))}}return qt(n,0,Number.POSITIVE_INFINITY,x.slice(0)),!m}function bv(n,r){const i=n.get(r)[1],u=n.get(r)[2];let s=r-1;const c=[];let f=i._tokenizer;f||(f=u.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const d=f.events,p=[],m={};let x,g,b=-1,v=i,w=0,_=0;const Y=[_];for(;v;){for(;n.get(++s)[1]!==v;);c.push(s),v._tokenizer||(x=u.sliceStream(v),v.next||x.push(null),g&&f.defineSkip(v.start),v._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(x),v._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),g=v,v=v.next}for(v=i;++b<d.length;)d[b][0]==="exit"&&d[b-1][0]==="enter"&&d[b][1].type===d[b-1][1].type&&d[b][1].start.line!==d[b][1].end.line&&(_=b+1,Y.push(_),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(f.events=[],v?(v._tokenizer=void 0,v.previous=void 0):Y.pop(),b=Y.length;b--;){const M=d.slice(Y[b],Y[b+1]),U=c.pop();p.push([U,U+M.length-1]),n.splice(U,2,M)}for(p.reverse(),b=-1;++b<p.length;)m[w+p[b][0]]=w+p[b][1],w+=p[b][1]-p[b][0]-1;return m}const vv={resolve:zv,tokenize:kv},Sv={partial:!0,tokenize:Ev};function zv(n){return y0(n),n}function kv(n,r){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):he(d)?n.check(Sv,f,c)(d):(n.consume(d),s)}function c(d){return n.exit("chunkContent"),n.exit("content"),r(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 Ev(n,r,i){const u=this;return s;function s(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),_e(n,c,"linePrefix")}function c(f){if(f===null||he(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?r(f):n.interrupt(u.parser.constructs.flow,i,r)(f)}}function x0(n,r,i,u,s,c,f,d,p){const m=p||Number.POSITIVE_INFINITY;let x=0;return g;function g(M){return M===60?(n.enter(u),n.enter(s),n.enter(c),n.consume(M),n.exit(c),b):M===null||M===32||M===41||iu(M)?i(M):(n.enter(u),n.enter(f),n.enter(d),n.enter("chunkString",{contentType:"string"}),_(M))}function b(M){return M===62?(n.enter(c),n.consume(M),n.exit(c),n.exit(s),n.exit(u),r):(n.enter(d),n.enter("chunkString",{contentType:"string"}),v(M))}function v(M){return M===62?(n.exit("chunkString"),n.exit(d),b(M)):M===null||M===60||he(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 _(M){return!x&&(M===null||M===41||Xe(M))?(n.exit("chunkString"),n.exit(d),n.exit(f),n.exit(u),r(M)):x<m&&M===40?(n.consume(M),x++,_):M===41?(n.consume(M),x--,_):M===null||M===32||M===40||iu(M)?i(M):(n.consume(M),M===92?Y:_)}function Y(M){return M===40||M===41||M===92?(n.consume(M),_):_(M)}}function b0(n,r,i,u,s,c){const f=this;let d=0,p;return m;function m(v){return n.enter(u),n.enter(s),n.consume(v),n.exit(s),n.enter(c),x}function x(v){return d>999||v===null||v===91||v===93&&!p||v===94&&!d&&"_hiddenFootnoteSupport"in f.parser.constructs?i(v):v===93?(n.exit(c),n.enter(s),n.consume(v),n.exit(s),n.exit(u),r):he(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),x):(n.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||v===91||v===93||he(v)||d++>999?(n.exit("chunkString"),x(v)):(n.consume(v),p||(p=!Ce(v)),v===92?b:g)}function b(v){return v===91||v===92||v===93?(n.consume(v),d++,g):g(v)}}function v0(n,r,i,u,s,c){let f;return d;function d(b){return b===34||b===39||b===40?(n.enter(u),n.enter(s),n.consume(b),n.exit(s),f=b===40?41:b,p):i(b)}function p(b){return b===f?(n.enter(s),n.consume(b),n.exit(s),n.exit(u),r):(n.enter(c),m(b))}function m(b){return b===f?(n.exit(c),p(f)):b===null?i(b):he(b)?(n.enter("lineEnding"),n.consume(b),n.exit("lineEnding"),_e(n,m,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),x(b))}function x(b){return b===f||b===null||he(b)?(n.exit("chunkString"),m(b)):(n.consume(b),b===92?g:x)}function g(b){return b===f||b===92?(n.consume(b),x):x(b)}}function Ea(n,r){let i;return u;function u(s){return he(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),i=!0,u):Ce(s)?_e(n,u,i?"linePrefix":"lineSuffix")(s):r(s)}}const Cv={name:"definition",tokenize:Tv},wv={partial:!0,tokenize:Av};function Tv(n,r,i){const u=this;let s;return c;function c(v){return n.enter("definition"),f(v)}function f(v){return b0.call(u,n,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function d(v){return s=ln(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 Xe(v)?Ea(n,m)(v):m(v)}function m(v){return x0(n,x,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function x(v){return n.attempt(wv,g,g)(v)}function g(v){return Ce(v)?_e(n,b,"whitespace")(v):b(v)}function b(v){return v===null||he(v)?(n.exit("definition"),u.parser.defined.push(s),r(v)):i(v)}}function Av(n,r,i){return u;function u(d){return Xe(d)?Ea(n,s)(d):i(d)}function s(d){return v0(n,c,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function c(d){return Ce(d)?_e(n,f,"whitespace")(d):f(d)}function f(d){return d===null||he(d)?r(d):i(d)}}const Nv={name:"hardBreakEscape",tokenize:_v};function _v(n,r,i){return u;function u(c){return n.enter("hardBreakEscape"),n.consume(c),s}function s(c){return he(c)?(n.exit("hardBreakEscape"),r(c)):i(c)}}const Mv={name:"headingAtx",resolve:jv,tokenize:Ov};function jv(n,r){let i=n.length-2,u=3,s,c;return n[u][1].type==="whitespace"&&(u+=2),i-2>u&&n[i][1].type==="whitespace"&&(i-=2),n[i][1].type==="atxHeadingSequence"&&(u===i-1||i-4>u&&n[i-2][1].type==="whitespace")&&(i-=u+1===i?2:4),i>u&&(s={type:"atxHeadingText",start:n[u][1].start,end:n[i][1].end},c={type:"chunkText",start:n[u][1].start,end:n[i][1].end,contentType:"text"},qt(n,u,i-u+1,[["enter",s,r],["enter",c,r],["exit",c,r],["exit",s,r]])),n}function Ov(n,r,i){let u=0;return s;function s(x){return n.enter("atxHeading"),c(x)}function c(x){return n.enter("atxHeadingSequence"),f(x)}function f(x){return x===35&&u++<6?(n.consume(x),f):x===null||Xe(x)?(n.exit("atxHeadingSequence"),d(x)):i(x)}function d(x){return x===35?(n.enter("atxHeadingSequence"),p(x)):x===null||he(x)?(n.exit("atxHeading"),r(x)):Ce(x)?_e(n,d,"whitespace")(x):(n.enter("atxHeadingText"),m(x))}function p(x){return x===35?(n.consume(x),p):(n.exit("atxHeadingSequence"),d(x))}function m(x){return x===null||x===35||Xe(x)?(n.exit("atxHeadingText"),d(x)):(n.consume(x),m)}}const Dv=["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"],op=["pre","script","style","textarea"],Rv={concrete:!0,name:"htmlFlow",resolveTo:Uv,tokenize:Hv},Lv={partial:!0,tokenize:Yv},Bv={partial:!0,tokenize:qv};function Uv(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function Hv(n,r,i){const u=this;let s,c,f,d,p;return m;function m(k){return x(k)}function x(k){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(k),g}function g(k){return k===33?(n.consume(k),b):k===47?(n.consume(k),c=!0,_):k===63?(n.consume(k),s=3,u.interrupt?r:E):vt(k)?(n.consume(k),f=String.fromCharCode(k),Y):i(k)}function b(k){return k===45?(n.consume(k),s=2,v):k===91?(n.consume(k),s=5,d=0,w):vt(k)?(n.consume(k),s=4,u.interrupt?r:E):i(k)}function v(k){return k===45?(n.consume(k),u.interrupt?r:E):i(k)}function w(k){const ee="CDATA[";return k===ee.charCodeAt(d++)?(n.consume(k),d===ee.length?u.interrupt?r:te:w):i(k)}function _(k){return vt(k)?(n.consume(k),f=String.fromCharCode(k),Y):i(k)}function Y(k){if(k===null||k===47||k===62||Xe(k)){const ee=k===47,me=f.toLowerCase();return!ee&&!c&&op.includes(me)?(s=1,u.interrupt?r(k):te(k)):Dv.includes(f.toLowerCase())?(s=6,ee?(n.consume(k),M):u.interrupt?r(k):te(k)):(s=7,u.interrupt&&!u.parser.lazy[u.now().line]?i(k):c?U(k):j(k))}return k===45||pt(k)?(n.consume(k),f+=String.fromCharCode(k),Y):i(k)}function M(k){return k===62?(n.consume(k),u.interrupt?r:te):i(k)}function U(k){return Ce(k)?(n.consume(k),U):H(k)}function j(k){return k===47?(n.consume(k),H):k===58||k===95||vt(k)?(n.consume(k),I):Ce(k)?(n.consume(k),j):H(k)}function I(k){return k===45||k===46||k===58||k===95||pt(k)?(n.consume(k),I):F(k)}function F(k){return k===61?(n.consume(k),B):Ce(k)?(n.consume(k),F):j(k)}function B(k){return k===null||k===60||k===61||k===62||k===96?i(k):k===34||k===39?(n.consume(k),p=k,$):Ce(k)?(n.consume(k),B):ue(k)}function $(k){return k===p?(n.consume(k),p=null,se):k===null||he(k)?i(k):(n.consume(k),$)}function ue(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Xe(k)?F(k):(n.consume(k),ue)}function se(k){return k===47||k===62||Ce(k)?j(k):i(k)}function H(k){return k===62?(n.consume(k),ne):i(k)}function ne(k){return k===null||he(k)?te(k):Ce(k)?(n.consume(k),ne):i(k)}function te(k){return k===45&&s===2?(n.consume(k),L):k===60&&s===1?(n.consume(k),K):k===62&&s===4?(n.consume(k),T):k===63&&s===3?(n.consume(k),E):k===93&&s===5?(n.consume(k),ve):he(k)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(Lv,G,Se)(k)):k===null||he(k)?(n.exit("htmlFlowData"),Se(k)):(n.consume(k),te)}function Se(k){return n.check(Bv,ie,G)(k)}function ie(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),W}function W(k){return k===null||he(k)?Se(k):(n.enter("htmlFlowData"),te(k))}function L(k){return k===45?(n.consume(k),E):te(k)}function K(k){return k===47?(n.consume(k),f="",re):te(k)}function re(k){if(k===62){const ee=f.toLowerCase();return op.includes(ee)?(n.consume(k),T):te(k)}return vt(k)&&f.length<8?(n.consume(k),f+=String.fromCharCode(k),re):te(k)}function ve(k){return k===93?(n.consume(k),E):te(k)}function E(k){return k===62?(n.consume(k),T):k===45&&s===2?(n.consume(k),E):te(k)}function T(k){return k===null||he(k)?(n.exit("htmlFlowData"),G(k)):(n.consume(k),T)}function G(k){return n.exit("htmlFlow"),r(k)}}function qv(n,r,i){const u=this;return s;function s(f){return he(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):r(f)}}function Yv(n,r,i){return u;function u(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(_a,r,i)}}const Vv={name:"htmlText",tokenize:Gv};function Gv(n,r,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),F):E===63?(n.consume(E),j):vt(E)?(n.consume(E),ue):i(E)}function m(E){return E===45?(n.consume(E),x):E===91?(n.consume(E),c=0,w):vt(E)?(n.consume(E),U):i(E)}function x(E){return E===45?(n.consume(E),v):i(E)}function g(E){return E===null?i(E):E===45?(n.consume(E),b):he(E)?(f=g,K(E)):(n.consume(E),g)}function b(E){return E===45?(n.consume(E),v):g(E)}function v(E){return E===62?L(E):E===45?b(E):g(E)}function w(E){const T="CDATA[";return E===T.charCodeAt(c++)?(n.consume(E),c===T.length?_:w):i(E)}function _(E){return E===null?i(E):E===93?(n.consume(E),Y):he(E)?(f=_,K(E)):(n.consume(E),_)}function Y(E){return E===93?(n.consume(E),M):_(E)}function M(E){return E===62?L(E):E===93?(n.consume(E),M):_(E)}function U(E){return E===null||E===62?L(E):he(E)?(f=U,K(E)):(n.consume(E),U)}function j(E){return E===null?i(E):E===63?(n.consume(E),I):he(E)?(f=j,K(E)):(n.consume(E),j)}function I(E){return E===62?L(E):j(E)}function F(E){return vt(E)?(n.consume(E),B):i(E)}function B(E){return E===45||pt(E)?(n.consume(E),B):$(E)}function $(E){return he(E)?(f=$,K(E)):Ce(E)?(n.consume(E),$):L(E)}function ue(E){return E===45||pt(E)?(n.consume(E),ue):E===47||E===62||Xe(E)?se(E):i(E)}function se(E){return E===47?(n.consume(E),L):E===58||E===95||vt(E)?(n.consume(E),H):he(E)?(f=se,K(E)):Ce(E)?(n.consume(E),se):L(E)}function H(E){return E===45||E===46||E===58||E===95||pt(E)?(n.consume(E),H):ne(E)}function ne(E){return E===61?(n.consume(E),te):he(E)?(f=ne,K(E)):Ce(E)?(n.consume(E),ne):se(E)}function te(E){return E===null||E===60||E===61||E===62||E===96?i(E):E===34||E===39?(n.consume(E),s=E,Se):he(E)?(f=te,K(E)):Ce(E)?(n.consume(E),te):(n.consume(E),ie)}function Se(E){return E===s?(n.consume(E),s=void 0,W):E===null?i(E):he(E)?(f=Se,K(E)):(n.consume(E),Se)}function ie(E){return E===null||E===34||E===39||E===60||E===61||E===96?i(E):E===47||E===62||Xe(E)?se(E):(n.consume(E),ie)}function W(E){return E===47||E===62||Xe(E)?se(E):i(E)}function L(E){return E===62?(n.consume(E),n.exit("htmlTextData"),n.exit("htmlText"),r):i(E)}function K(E){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),re}function re(E){return Ce(E)?_e(n,ve,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):ve(E)}function ve(E){return n.enter("htmlTextData"),f(E)}}const kc={name:"labelEnd",resolveAll:Fv,resolveTo:Kv,tokenize:Jv},Xv={tokenize:Iv},Qv={tokenize:$v},Zv={tokenize:Wv};function Fv(n){let r=-1;const i=[];for(;++r<n.length;){const u=n[r][1];if(i.push(n[r]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const s=u.type==="labelImage"?4:2;u.type="data",r+=s}}return n.length!==i.length&&qt(n,0,n.length,i),n}function Kv(n,r){let i=n.length,u=0,s,c,f,d;for(;i--;)if(s=n[i][1],c){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;n[i][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(f){if(n[i][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(c=i,s.type!=="labelLink")){u=2;break}}else s.type==="labelEnd"&&(f=i);const p={type:n[c][1].type==="labelLink"?"link":"image",start:{...n[c][1].start},end:{...n[n.length-1][1].end}},m={type:"label",start:{...n[c][1].start},end:{...n[f][1].end}},x={type:"labelText",start:{...n[c+u+2][1].end},end:{...n[f-2][1].start}};return d=[["enter",p,r],["enter",m,r]],d=Wt(d,n.slice(c+1,c+u+3)),d=Wt(d,[["enter",x,r]]),d=Wt(d,ou(r.parser.constructs.insideSpan.null,n.slice(c+u+4,f-3),r)),d=Wt(d,[["exit",x,r],n[f-2],n[f-1],["exit",m,r]]),d=Wt(d,n.slice(f+1)),d=Wt(d,[["exit",p,r]]),qt(n,c,n.length,d),n}function Jv(n,r,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(b){return c?c._inactive?g(b):(f=u.parser.defined.includes(ln(u.sliceSerialize({start:c.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(b),n.exit("labelMarker"),n.exit("labelEnd"),p):i(b)}function p(b){return b===40?n.attempt(Xv,x,f?x:g)(b):b===91?n.attempt(Qv,x,f?m:g)(b):f?x(b):g(b)}function m(b){return n.attempt(Zv,x,g)(b)}function x(b){return r(b)}function g(b){return c._balanced=!0,i(b)}}function Iv(n,r,i){return u;function u(g){return n.enter("resource"),n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),s}function s(g){return Xe(g)?Ea(n,c)(g):c(g)}function c(g){return g===41?x(g):x0(n,f,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function f(g){return Xe(g)?Ea(n,p)(g):x(g)}function d(g){return i(g)}function p(g){return g===34||g===39||g===40?v0(n,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):x(g)}function m(g){return Xe(g)?Ea(n,x)(g):x(g)}function x(g){return g===41?(n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),n.exit("resource"),r):i(g)}}function $v(n,r,i){const u=this;return s;function s(d){return b0.call(u,n,c,f,"reference","referenceMarker","referenceString")(d)}function c(d){return u.parser.defined.includes(ln(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?r(d):i(d)}function f(d){return i(d)}}function Wv(n,r,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"),r):i(c)}}const Pv={name:"labelStartImage",resolveAll:kc.resolveAll,tokenize:e2};function e2(n,r,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):r(d)}}const t2={name:"labelStartLink",resolveAll:kc.resolveAll,tokenize:n2};function n2(n,r,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):r(f)}}const Ho={name:"lineEnding",tokenize:l2};function l2(n,r){return i;function i(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),_e(n,r,"linePrefix")}}const nu={name:"thematicBreak",tokenize:i2};function i2(n,r,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||he(m))?(n.exit("thematicBreak"),r(m)):i(m)}function p(m){return m===s?(n.consume(m),u++,p):(n.exit("thematicBreakSequence"),Ce(m)?_e(n,d,"whitespace")(m):d(m))}}const Nt={continuation:{tokenize:s2},exit:c2,name:"list",tokenize:u2},a2={partial:!0,tokenize:f2},r2={partial:!0,tokenize:o2};function u2(n,r,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:ic(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(nu,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 ic(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(_a,u.interrupt?i:x,n.attempt(a2,b,g))}function x(v){return u.containerState.initialBlankLine=!0,c++,b(v)}function g(v){return Ce(v)?(n.enter("listItemPrefixWhitespace"),n.consume(v),n.exit("listItemPrefixWhitespace"),b):i(v)}function b(v){return u.containerState.size=c+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(v)}}function s2(n,r,i){const u=this;return u.containerState._closeFlow=void 0,n.check(_a,s,c);function s(d){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,_e(n,r,"listItemIndent",u.containerState.size+1)(d)}function c(d){return u.containerState.furtherBlankLines||!Ce(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(r2,r,f)(d))}function f(d){return u.containerState._closeFlow=!0,u.interrupt=void 0,_e(n,n.attempt(Nt,r,i),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function o2(n,r,i){const u=this;return _e(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?r(c):i(c)}}function c2(n){n.exit(this.containerState.type)}function f2(n,r,i){const u=this;return _e(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!Ce(c)&&f&&f[1].type==="listItemPrefixWhitespace"?r(c):i(c)}}const cp={name:"setextUnderline",resolveTo:h2,tokenize:d2};function h2(n,r){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,r]),n.splice(c+1,0,["exit",n[u][1],r]),n[u][1].end={...n[c][1].end}):n[u][1]=f,n.push(["exit",f,r]),n}function d2(n,r,i){const u=this;let s;return c;function c(m){let x=u.events.length,g;for(;x--;)if(u.events[x][1].type!=="lineEnding"&&u.events[x][1].type!=="linePrefix"&&u.events[x][1].type!=="content"){g=u.events[x][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"),Ce(m)?_e(n,p,"lineSuffix")(m):p(m))}function p(m){return m===null||he(m)?(n.exit("setextHeadingLine"),r(m)):i(m)}}const m2={tokenize:p2};function p2(n){const r=this,i=n.attempt(_a,u,n.attempt(this.parser.constructs.flowInitial,s,_e(n,n.attempt(this.parser.constructs.flow,s,n.attempt(vv,s)),"linePrefix")));return i;function u(c){if(c===null){n.consume(c);return}return n.enter("lineEndingBlank"),n.consume(c),n.exit("lineEndingBlank"),r.currentConstruct=void 0,i}function s(c){if(c===null){n.consume(c);return}return n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),r.currentConstruct=void 0,i}}const g2={resolveAll:z0()},y2=S0("string"),x2=S0("text");function S0(n){return{resolveAll:z0(n==="text"?b2:void 0),tokenize:r};function r(i){const u=this,s=this.parser.constructs[n],c=i.attempt(s,f,d);return f;function f(x){return m(x)?c(x):d(x)}function d(x){if(x===null){i.consume(x);return}return i.enter("data"),i.consume(x),p}function p(x){return m(x)?(i.exit("data"),c(x)):(i.consume(x),p)}function m(x){if(x===null)return!0;const g=s[x];let b=-1;if(g)for(;++b<g.length;){const v=g[b];if(!v.previous||v.previous.call(u,u.previous))return!0}return!1}}}function z0(n){return r;function r(i,u){let s=-1,c;for(;++s<=i.length;)c===void 0?i[s]&&i[s][1].type==="data"&&(c=s,s++):(!i[s]||i[s][1].type!=="data")&&(s!==c+2&&(i[c][1].end=i[s-1][1].end,i.splice(c+2,s-c-2),s=c+2),c=void 0);return n?n(i,u):i}}function b2(n,r){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=r.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(r._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,r],["exit",m,r]),i+=2)}i++}return n}const v2={42:Nt,43:Nt,45:Nt,48:Nt,49:Nt,50:Nt,51:Nt,52:Nt,53:Nt,54:Nt,55:Nt,56:Nt,57:Nt,62:m0},S2={91:Cv},z2={[-2]:Uo,[-1]:Uo,32:Uo},k2={35:Mv,42:nu,45:[cp,nu],60:Rv,61:cp,95:nu,96:sp,126:sp},E2={38:g0,92:p0},C2={[-5]:Ho,[-4]:Ho,[-3]:Ho,33:Pv,38:g0,42:ac,60:[tv,Vv],91:t2,92:[Nv,p0],93:kc,95:ac,96:mv},w2={null:[ac,g2]},T2={null:[42,95]},A2={null:[]},N2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:T2,contentInitial:S2,disable:A2,document:v2,flow:k2,flowInitial:z2,insideSpan:w2,string:E2,text:C2},Symbol.toStringTag,{value:"Module"}));function _2(n,r,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:$(F),check:$(B),consume:U,enter:j,exit:I,interrupt:$(B,{interrupt:!0})},m={code:null,containerState:{},defineSkip:_,events:[],now:w,parser:n,previous:null,sliceSerialize:b,sliceStream:v,write:g};let x=r.tokenize.call(m,p);return r.resolveAll&&c.push(r),m;function g(ne){return f=Wt(f,ne),Y(),f[f.length-1]!==null?[]:(ue(r,0),m.events=ou(c,m.events,m),m.events)}function b(ne,te){return j2(v(ne),te)}function v(ne){return M2(f,ne)}function w(){const{_bufferIndex:ne,_index:te,line:Se,column:ie,offset:W}=u;return{_bufferIndex:ne,_index:te,line:Se,column:ie,offset:W}}function _(ne){s[ne.line]=ne.column,H()}function Y(){let ne;for(;u._index<f.length;){const te=f[u._index];if(typeof te=="string")for(ne=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===ne&&u._bufferIndex<te.length;)M(te.charCodeAt(u._bufferIndex));else M(te)}}function M(ne){x=x(ne)}function U(ne){he(ne)?(u.line++,u.column=1,u.offset+=ne===-3?2:1,H()):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 j(ne,te){const Se=te||{};return Se.type=ne,Se.start=w(),m.events.push(["enter",Se,m]),d.push(Se),Se}function I(ne){const te=d.pop();return te.end=w(),m.events.push(["exit",te,m]),te}function F(ne,te){ue(ne,te.from)}function B(ne,te){te.restore()}function $(ne,te){return Se;function Se(ie,W,L){let K,re,ve,E;return Array.isArray(ie)?G(ie):"tokenize"in ie?G([ie]):T(ie);function T(oe){return we;function we(Ke){const Ue=Ke!==null&&oe[Ke],Yt=Ke!==null&&oe.null,fn=[...Array.isArray(Ue)?Ue:Ue?[Ue]:[],...Array.isArray(Yt)?Yt:Yt?[Yt]:[]];return G(fn)(Ke)}}function G(oe){return K=oe,re=0,oe.length===0?L:k(oe[re])}function k(oe){return we;function we(Ke){return E=se(),ve=oe,oe.partial||(m.currentConstruct=oe),oe.name&&m.parser.constructs.disable.null.includes(oe.name)?me():oe.tokenize.call(te?Object.assign(Object.create(m),te):m,p,ee,me)(Ke)}}function ee(oe){return ne(ve,E),W}function me(oe){return E.restore(),++re<K.length?k(K[re]):L}}}function ue(ne,te){ne.resolveAll&&!c.includes(ne)&&c.push(ne),ne.resolve&&qt(m.events,te,m.events.length-te,ne.resolve(m.events.slice(te),m)),ne.resolveTo&&(m.events=ne.resolveTo(m.events,m))}function se(){const ne=w(),te=m.previous,Se=m.currentConstruct,ie=m.events.length,W=Array.from(d);return{from:ie,restore:L};function L(){u=ne,m.previous=te,m.currentConstruct=Se,m.events.length=ie,d=W,H()}}function H(){u.line in s&&u.column<2&&(u.column=s[u.line],u.offset+=s[u.line]-1)}}function M2(n,r){const i=r.start._index,u=r.start._bufferIndex,s=r.end._index,c=r.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 j2(n,r){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=`
|
|
244
|
+
`;break}case-3:{f=`\r
|
|
245
|
+
`;break}case-2:{f=r?" ":" ";break}case-1:{if(!r&&s)continue;f=" ";break}default:f=String.fromCharCode(c)}s=c===-2,u.push(f)}return u.join("")}function O2(n){const u={constructs:h0([N2,...(n||{}).extensions||[]]),content:s(Kb),defined:[],document:s(Ib),flow:s(m2),lazy:{},string:s(y2),text:s(x2)};return u;function s(c){return f;function f(d){return _2(u,c,d)}}}function D2(n){for(;!y0(n););return n}const fp=/[\0\t\n\r]/g;function R2(){let n=1,r="",i=!0,u;return s;function s(c,f,d){const p=[];let m,x,g,b,v;for(c=r+(typeof c=="string"?c.toString():new TextDecoder(f||void 0).decode(c)),g=0,r="",i&&(c.charCodeAt(0)===65279&&g++,i=void 0);g<c.length;){if(fp.lastIndex=g,m=fp.exec(c),b=m&&m.index!==void 0?m.index:c.length,v=c.charCodeAt(b),!m){r=c.slice(g);break}if(v===10&&g===b&&u)p.push(-3),u=void 0;else switch(u&&(p.push(-5),u=void 0),g<b&&(p.push(c.slice(g,b)),n+=b-g),v){case 0:{p.push(65533),n++;break}case 9:{for(x=Math.ceil(n/4)*4,p.push(-2);n++<x;)p.push(-1);break}case 10:{p.push(-4),n=1;break}default:u=!0,n=1}g=b+1}return d&&(u&&p.push(-5),r&&p.push(r),p.push(null)),p}}const L2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function B2(n){return n.replace(L2,U2)}function U2(n,r,i){if(r)return r;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),c=s===120||s===88;return d0(i.slice(c?2:1),c?16:10)}return zc(i)||n}const k0={}.hasOwnProperty;function H2(n,r,i){return typeof r!="string"&&(i=r,r=void 0),q2(i)(D2(O2(i).document().write(R2()(n,r,!0))))}function q2(n){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Nl),autolinkProtocol:se,autolinkEmail:se,atxHeading:c(Tl),blockQuote:c(Yt),characterEscape:se,characterReference:se,codeFenced:c(fn),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:c(fn,f),codeText:c(Ei,f),codeTextData:se,data:se,codeFlowValue:se,definition:c(Oa),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:c(hn),hardBreakEscape:c(Al),hardBreakTrailing:c(Al),htmlFlow:c(Da,f),htmlFlowData:se,htmlText:c(Da,f),htmlTextData:se,image:c(Ra),label:f,link:c(Nl),listItem:c(Ci),listItemValue:b,listOrdered:c(_l,g),listUnordered:c(_l),paragraph:c(du),reference:k,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:c(Tl),strong:c(mu),thematicBreak:c(pu)},exit:{atxHeading:p(),atxHeadingSequence:F,autolink:p(),autolinkEmail:Ue,autolinkProtocol:Ke,blockQuote:p(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:oe,characterReference:we,codeFenced:p(Y),codeFencedFence:_,codeFencedFenceInfo:v,codeFencedFenceMeta:w,codeFlowValue:H,codeIndented:p(M),codeText:p(W),codeTextData:H,data:H,definition:p(),definitionDestinationString:I,definitionLabelString:U,definitionTitleString:j,emphasis:p(),hardBreakEscape:p(te),hardBreakTrailing:p(te),htmlFlow:p(Se),htmlFlowData:H,htmlText:p(ie),htmlTextData:H,image:p(K),label:ve,labelText:re,lineEnding:ne,link:p(L),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ee,resourceDestinationString:E,resourceTitleString:T,resource:G,setextHeading:p(ue),setextHeadingLineSequence:$,setextHeadingText:B,strong:p(),thematicBreak:p()}};E0(r,(n||{}).mdastExtensions||[]);const i={};return u;function u(X){let P={type:"root",children:[]};const pe={stack:[P],tokenStack:[],config:r,enter:d,exit:m,buffer:f,resume:x,data:i},ze=[];let Re=-1;for(;++Re<X.length;)if(X[Re][1].type==="listOrdered"||X[Re][1].type==="listUnordered")if(X[Re][0]==="enter")ze.push(Re);else{const Mt=ze.pop();Re=s(X,Mt,Re)}for(Re=-1;++Re<X.length;){const Mt=r[X[Re][0]];k0.call(Mt,X[Re][1].type)&&Mt[X[Re][1].type].call(Object.assign({sliceSerialize:X[Re][2].sliceSerialize},pe),X[Re][1])}if(pe.tokenStack.length>0){const Mt=pe.tokenStack[pe.tokenStack.length-1];(Mt[1]||hp).call(pe,void 0,Mt[0])}for(P.position={start:il(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:il(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},Re=-1;++Re<r.transforms.length;)P=r.transforms[Re](P)||P;return P}function s(X,P,pe){let ze=P-1,Re=-1,Mt=!1,dn,xt,at,St;for(;++ze<=pe;){const Ve=X[ze];switch(Ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ve[0]==="enter"?Re++:Re--,St=void 0;break}case"lineEndingBlank":{Ve[0]==="enter"&&(dn&&!St&&!Re&&!at&&(at=ze),St=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:St=void 0}if(!Re&&Ve[0]==="enter"&&Ve[1].type==="listItemPrefix"||Re===-1&&Ve[0]==="exit"&&(Ve[1].type==="listUnordered"||Ve[1].type==="listOrdered")){if(dn){let On=ze;for(xt=void 0;On--;){const Pt=X[On];if(Pt[1].type==="lineEnding"||Pt[1].type==="lineEndingBlank"){if(Pt[0]==="exit")continue;xt&&(X[xt][1].type="lineEndingBlank",Mt=!0),Pt[1].type="lineEnding",xt=On}else if(!(Pt[1].type==="linePrefix"||Pt[1].type==="blockQuotePrefix"||Pt[1].type==="blockQuotePrefixWhitespace"||Pt[1].type==="blockQuoteMarker"||Pt[1].type==="listItemIndent"))break}at&&(!xt||at<xt)&&(dn._spread=!0),dn.end=Object.assign({},xt?X[xt][1].start:Ve[1].end),X.splice(xt||ze,0,["exit",dn,Ve[2]]),ze++,pe++}if(Ve[1].type==="listItemPrefix"){const On={type:"listItem",_spread:!1,start:Object.assign({},Ve[1].start),end:void 0};dn=On,X.splice(ze,0,["enter",On,Ve[2]]),ze++,pe++,at=void 0,St=!0}}}return X[P][1]._spread=Mt,pe}function c(X,P){return pe;function pe(ze){d.call(this,X(ze),ze),P&&P.call(this,ze)}}function f(){this.stack.push({type:"fragment",children:[]})}function d(X,P,pe){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([P,pe||void 0]),X.position={start:il(P.start),end:void 0}}function p(X){return P;function P(pe){X&&X.call(this,pe),m.call(this,pe)}}function m(X,P){const pe=this.stack.pop(),ze=this.tokenStack.pop();if(ze)ze[0].type!==X.type&&(P?P.call(this,X,ze[0]):(ze[1]||hp).call(this,X,ze[0]));else throw new Error("Cannot close `"+X.type+"` ("+ka({start:X.start,end:X.end})+"): it’s not open");pe.position.end=il(X.end)}function x(){return Sc(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function b(X){if(this.data.expectingFirstListItemValue){const P=this.stack[this.stack.length-2];P.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function v(){const X=this.resume(),P=this.stack[this.stack.length-1];P.lang=X}function w(){const X=this.resume(),P=this.stack[this.stack.length-1];P.meta=X}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function Y(){const X=this.resume(),P=this.stack[this.stack.length-1];P.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function M(){const X=this.resume(),P=this.stack[this.stack.length-1];P.value=X.replace(/(\r?\n|\r)$/g,"")}function U(X){const P=this.resume(),pe=this.stack[this.stack.length-1];pe.label=P,pe.identifier=ln(this.sliceSerialize(X)).toLowerCase()}function j(){const X=this.resume(),P=this.stack[this.stack.length-1];P.title=X}function I(){const X=this.resume(),P=this.stack[this.stack.length-1];P.url=X}function F(X){const P=this.stack[this.stack.length-1];if(!P.depth){const pe=this.sliceSerialize(X).length;P.depth=pe}}function B(){this.data.setextHeadingSlurpLineEnding=!0}function $(X){const P=this.stack[this.stack.length-1];P.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function ue(){this.data.setextHeadingSlurpLineEnding=void 0}function se(X){const pe=this.stack[this.stack.length-1].children;let ze=pe[pe.length-1];(!ze||ze.type!=="text")&&(ze=yt(),ze.position={start:il(X.start),end:void 0},pe.push(ze)),this.stack.push(ze)}function H(X){const P=this.stack.pop();P.value+=this.sliceSerialize(X),P.position.end=il(X.end)}function ne(X){const P=this.stack[this.stack.length-1];if(this.data.atHardBreak){const pe=P.children[P.children.length-1];pe.position.end=il(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(P.type)&&(se.call(this,X),H.call(this,X))}function te(){this.data.atHardBreak=!0}function Se(){const X=this.resume(),P=this.stack[this.stack.length-1];P.value=X}function ie(){const X=this.resume(),P=this.stack[this.stack.length-1];P.value=X}function W(){const X=this.resume(),P=this.stack[this.stack.length-1];P.value=X}function L(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=P,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function K(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=P,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function re(X){const P=this.sliceSerialize(X),pe=this.stack[this.stack.length-2];pe.label=B2(P),pe.identifier=ln(P).toLowerCase()}function ve(){const X=this.stack[this.stack.length-1],P=this.resume(),pe=this.stack[this.stack.length-1];if(this.data.inReference=!0,pe.type==="link"){const ze=X.children;pe.children=ze}else pe.alt=P}function E(){const X=this.resume(),P=this.stack[this.stack.length-1];P.url=X}function T(){const X=this.resume(),P=this.stack[this.stack.length-1];P.title=X}function G(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function ee(X){const P=this.resume(),pe=this.stack[this.stack.length-1];pe.label=P,pe.identifier=ln(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function me(X){this.data.characterReferenceType=X.type}function oe(X){const P=this.sliceSerialize(X),pe=this.data.characterReferenceType;let ze;pe?(ze=d0(P,pe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ze=zc(P);const Re=this.stack[this.stack.length-1];Re.value+=ze}function we(X){const P=this.stack.pop();P.position.end=il(X.end)}function Ke(X){H.call(this,X);const P=this.stack[this.stack.length-1];P.url=this.sliceSerialize(X)}function Ue(X){H.call(this,X);const P=this.stack[this.stack.length-1];P.url="mailto:"+this.sliceSerialize(X)}function Yt(){return{type:"blockquote",children:[]}}function fn(){return{type:"code",lang:null,meta:null,value:""}}function Ei(){return{type:"inlineCode",value:""}}function Oa(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function hn(){return{type:"emphasis",children:[]}}function Tl(){return{type:"heading",depth:0,children:[]}}function Al(){return{type:"break"}}function Da(){return{type:"html",value:""}}function Ra(){return{type:"image",title:null,url:"",alt:null}}function Nl(){return{type:"link",title:null,url:"",children:[]}}function _l(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function Ci(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function du(){return{type:"paragraph",children:[]}}function mu(){return{type:"strong",children:[]}}function yt(){return{type:"text",value:""}}function pu(){return{type:"thematicBreak"}}}function il(n){return{line:n.line,column:n.column,offset:n.offset}}function E0(n,r){let i=-1;for(;++i<r.length;){const u=r[i];Array.isArray(u)?E0(n,u):Y2(n,u)}}function Y2(n,r){let i;for(i in r)if(k0.call(r,i))switch(i){case"canContainEols":{const u=r[i];u&&n[i].push(...u);break}case"transforms":{const u=r[i];u&&n[i].push(...u);break}case"enter":case"exit":{const u=r[i];u&&Object.assign(n[i],u);break}}}function hp(n,r){throw n?new Error("Cannot close `"+n.type+"` ("+ka({start:n.start,end:n.end})+"): a different token (`"+r.type+"`, "+ka({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+ka({start:r.start,end:r.end})+") is still open")}function V2(n){const r=this;r.parser=i;function i(u){return H2(u,{...r.data("settings"),...n,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function G2(n,r){const i={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(r),!0)};return n.patch(r,i),n.applyData(r,i)}function X2(n,r){const i={type:"element",tagName:"br",properties:{},children:[]};return n.patch(r,i),[n.applyData(r,i),{type:"text",value:`
|
|
246
|
+
`}]}function Q2(n,r){const i=r.value?r.value+`
|
|
247
|
+
`:"",u={},s=r.lang?r.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 r.meta&&(c.data={meta:r.meta}),n.patch(r,c),c=n.applyData(r,c),c={type:"element",tagName:"pre",properties:{},children:[c]},n.patch(r,c),c}function Z2(n,r){const i={type:"element",tagName:"del",properties:{},children:n.all(r)};return n.patch(r,i),n.applyData(r,i)}function F2(n,r){const i={type:"element",tagName:"em",properties:{},children:n.all(r)};return n.patch(r,i),n.applyData(r,i)}function K2(n,r){const i=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(r.identifier).toUpperCase(),s=ki(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(r,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return n.patch(r,m),n.applyData(r,m)}function J2(n,r){const i={type:"element",tagName:"h"+r.depth,properties:{},children:n.all(r)};return n.patch(r,i),n.applyData(r,i)}function I2(n,r){if(n.options.allowDangerousHtml){const i={type:"raw",value:r.value};return n.patch(r,i),n.applyData(r,i)}}function C0(n,r){const i=r.referenceType;let u="]";if(i==="collapsed"?u+="[]":i==="full"&&(u+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+u}];const s=n.all(r),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 $2(n,r){const i=String(r.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return C0(n,r);const s={src:ki(u.url||""),alt:r.alt};u.title!==null&&u.title!==void 0&&(s.title=u.title);const c={type:"element",tagName:"img",properties:s,children:[]};return n.patch(r,c),n.applyData(r,c)}function W2(n,r){const i={src:ki(r.url)};r.alt!==null&&r.alt!==void 0&&(i.alt=r.alt),r.title!==null&&r.title!==void 0&&(i.title=r.title);const u={type:"element",tagName:"img",properties:i,children:[]};return n.patch(r,u),n.applyData(r,u)}function P2(n,r){const i={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};n.patch(r,i);const u={type:"element",tagName:"code",properties:{},children:[i]};return n.patch(r,u),n.applyData(r,u)}function eS(n,r){const i=String(r.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return C0(n,r);const s={href:ki(u.url||"")};u.title!==null&&u.title!==void 0&&(s.title=u.title);const c={type:"element",tagName:"a",properties:s,children:n.all(r)};return n.patch(r,c),n.applyData(r,c)}function tS(n,r){const i={href:ki(r.url)};r.title!==null&&r.title!==void 0&&(i.title=r.title);const u={type:"element",tagName:"a",properties:i,children:n.all(r)};return n.patch(r,u),n.applyData(r,u)}function nS(n,r,i){const u=n.all(r),s=i?lS(i):w0(r),c={},f=[];if(typeof r.checked=="boolean"){const x=u[0];let g;x&&x.type==="element"&&x.tagName==="p"?g=x:(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:r.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let d=-1;for(;++d<u.length;){const x=u[d];(s||d!==0||x.type!=="element"||x.tagName!=="p")&&f.push({type:"text",value:`
|
|
248
|
+
`}),x.type==="element"&&x.tagName==="p"&&!s?f.push(...x.children):f.push(x)}const p=u[u.length-1];p&&(s||p.type!=="element"||p.tagName!=="p")&&f.push({type:"text",value:`
|
|
249
|
+
`});const m={type:"element",tagName:"li",properties:c,children:f};return n.patch(r,m),n.applyData(r,m)}function lS(n){let r=!1;if(n.type==="list"){r=n.spread||!1;const i=n.children;let u=-1;for(;!r&&++u<i.length;)r=w0(i[u])}return r}function w0(n){const r=n.spread;return r??n.children.length>1}function iS(n,r){const i={},u=n.all(r);let s=-1;for(typeof r.start=="number"&&r.start!==1&&(i.start=r.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:r.ordered?"ol":"ul",properties:i,children:n.wrap(u,!0)};return n.patch(r,c),n.applyData(r,c)}function aS(n,r){const i={type:"element",tagName:"p",properties:{},children:n.all(r)};return n.patch(r,i),n.applyData(r,i)}function rS(n,r){const i={type:"root",children:n.wrap(n.all(r))};return n.patch(r,i),n.applyData(r,i)}function uS(n,r){const i={type:"element",tagName:"strong",properties:{},children:n.all(r)};return n.patch(r,i),n.applyData(r,i)}function sS(n,r){const i=n.all(r),u=i.shift(),s=[];if(u){const f={type:"element",tagName:"thead",properties:{},children:n.wrap([u],!0)};n.patch(r.children[0],f),s.push(f)}if(i.length>0){const f={type:"element",tagName:"tbody",properties:{},children:n.wrap(i,!0)},d=yc(r.children[1]),p=a0(r.children[r.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(r,c),n.applyData(r,c)}function oS(n,r,i){const u=i?i.children:void 0,c=(u?u.indexOf(r):1)===0?"th":"td",f=i&&i.type==="table"?i.align:void 0,d=f?f.length:r.children.length;let p=-1;const m=[];for(;++p<d;){const g=r.children[p],b={},v=f?f[p]:void 0;v&&(b.align=v);let w={type:"element",tagName:c,properties:b,children:[]};g&&(w.children=n.all(g),n.patch(g,w),w=n.applyData(g,w)),m.push(w)}const x={type:"element",tagName:"tr",properties:{},children:n.wrap(m,!0)};return n.patch(r,x),n.applyData(r,x)}function cS(n,r){const i={type:"element",tagName:"td",properties:{},children:n.all(r)};return n.patch(r,i),n.applyData(r,i)}const dp=9,mp=32;function fS(n){const r=String(n),i=/\r?\n|\r/g;let u=i.exec(r),s=0;const c=[];for(;u;)c.push(pp(r.slice(s,u.index),s>0,!0),u[0]),s=u.index+u[0].length,u=i.exec(r);return c.push(pp(r.slice(s),s>0,!1)),c.join("")}function pp(n,r,i){let u=0,s=n.length;if(r){let c=n.codePointAt(u);for(;c===dp||c===mp;)u++,c=n.codePointAt(u)}if(i){let c=n.codePointAt(s-1);for(;c===dp||c===mp;)s--,c=n.codePointAt(s-1)}return s>u?n.slice(u,s):""}function hS(n,r){const i={type:"text",value:fS(String(r.value))};return n.patch(r,i),n.applyData(r,i)}function dS(n,r){const i={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(r,i),n.applyData(r,i)}const mS={blockquote:G2,break:X2,code:Q2,delete:Z2,emphasis:F2,footnoteReference:K2,heading:J2,html:I2,imageReference:$2,image:W2,inlineCode:P2,linkReference:eS,link:tS,listItem:nS,list:iS,paragraph:aS,root:rS,strong:uS,table:sS,tableCell:cS,tableRow:oS,text:hS,thematicBreak:dS,toml:Wr,yaml:Wr,definition:Wr,footnoteDefinition:Wr};function Wr(){}const T0=-1,cu=0,Ca=1,au=2,Ec=3,Cc=4,wc=5,Tc=6,A0=7,N0=8,gp=typeof self=="object"?self:globalThis,pS=(n,r)=>{const i=(s,c)=>(n.set(c,s),s),u=s=>{if(n.has(s))return n.get(s);const[c,f]=r[s];switch(c){case cu:case T0:return i(f,s);case Ca:{const d=i([],s);for(const p of f)d.push(u(p));return d}case au:{const d=i({},s);for(const[p,m]of f)d[u(p)]=u(m);return d}case Ec:return i(new Date(f),s);case Cc:{const{source:d,flags:p}=f;return i(new RegExp(d,p),s)}case wc:{const d=i(new Map,s);for(const[p,m]of f)d.set(u(p),u(m));return d}case Tc:{const d=i(new Set,s);for(const p of f)d.add(u(p));return d}case A0:{const{name:d,message:p}=f;return i(new gp[d](p),s)}case N0: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 gp[c](f),s)};return u},yp=n=>pS(new Map,n)(0),yi="",{toString:gS}={},{keys:yS}=Object,za=n=>{const r=typeof n;if(r!=="object"||!n)return[cu,r];const i=gS.call(n).slice(8,-1);switch(i){case"Array":return[Ca,yi];case"Object":return[au,yi];case"Date":return[Ec,yi];case"RegExp":return[Cc,yi];case"Map":return[wc,yi];case"Set":return[Tc,yi];case"DataView":return[Ca,i]}return i.includes("Array")?[Ca,i]:i.includes("Error")?[A0,i]:[au,i]},Pr=([n,r])=>n===cu&&(r==="function"||r==="symbol"),xS=(n,r,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]=za(f);switch(d){case cu:{let x=f;switch(p){case"bigint":d=N0,x=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);x=null;break;case"undefined":return s([T0],f)}return s([d,x],f)}case Ca:{if(p){let b=f;return p==="DataView"?b=new Uint8Array(f.buffer):p==="ArrayBuffer"&&(b=new Uint8Array(f)),s([p,[...b]],f)}const x=[],g=s([d,x],f);for(const b of f)x.push(c(b));return g}case au:{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(r&&"toJSON"in f)return c(f.toJSON());const x=[],g=s([d,x],f);for(const b of yS(f))(n||!Pr(za(f[b])))&&x.push([c(b),c(f[b])]);return g}case Ec:return s([d,f.toISOString()],f);case Cc:{const{source:x,flags:g}=f;return s([d,{source:x,flags:g}],f)}case wc:{const x=[],g=s([d,x],f);for(const[b,v]of f)(n||!(Pr(za(b))||Pr(za(v))))&&x.push([c(b),c(v)]);return g}case Tc:{const x=[],g=s([d,x],f);for(const b of f)(n||!Pr(za(b)))&&x.push(c(b));return g}}const{message:m}=f;return s([d,{name:p,message:m}],f)};return c},xp=(n,{json:r,lossy:i}={})=>{const u=[];return xS(!(r||i),!!r,new Map,u)(n),u},ru=typeof structuredClone=="function"?(n,r)=>r&&("json"in r||"lossy"in r)?yp(xp(n,r)):structuredClone(n):(n,r)=>yp(xp(n,r));function bS(n,r){const i=[{type:"text",value:"↩"}];return r>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),i}function vS(n,r){return"Back to reference "+(n+1)+(r>1?"-"+r:"")}function SS(n){const r=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=n.options.footnoteBackContent||bS,u=n.options.footnoteBackLabel||vS,s=n.options.footnoteLabel||"Footnotes",c=n.options.footnoteLabelTagName||"h2",f=n.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let p=-1;for(;++p<n.footnoteOrder.length;){const m=n.footnoteById.get(n.footnoteOrder[p]);if(!m)continue;const x=n.all(m),g=String(m.identifier).toUpperCase(),b=ki(g.toLowerCase());let v=0;const w=[],_=n.footnoteCounts.get(g);for(;_!==void 0&&++v<=_;){w.length>0&&w.push({type:"text",value:" "});let U=typeof i=="string"?i:i(p,v);typeof U=="string"&&(U={type:"text",value:U}),w.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+b+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(p,v),className:["data-footnote-backref"]},children:Array.isArray(U)?U:[U]})}const Y=x[x.length-1];if(Y&&Y.type==="element"&&Y.tagName==="p"){const U=Y.children[Y.children.length-1];U&&U.type==="text"?U.value+=" ":Y.children.push({type:"text",value:" "}),Y.children.push(...w)}else x.push(...w);const M={type:"element",tagName:"li",properties:{id:r+"fn-"+b},children:n.wrap(x,!0)};n.patch(m,M),d.push(M)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...ru(f),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
250
|
+
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(d,!0)},{type:"text",value:`
|
|
251
|
+
`}]}}const fu=(function(n){if(n==null)return CS;if(typeof n=="function")return hu(n);if(typeof n=="object")return Array.isArray(n)?zS(n):kS(n);if(typeof n=="string")return ES(n);throw new Error("Expected function, string, or object as test")});function zS(n){const r=[];let i=-1;for(;++i<n.length;)r[i]=fu(n[i]);return hu(u);function u(...s){let c=-1;for(;++c<r.length;)if(r[c].apply(this,s))return!0;return!1}}function kS(n){const r=n;return hu(i);function i(u){const s=u;let c;for(c in n)if(s[c]!==r[c])return!1;return!0}}function ES(n){return hu(r);function r(i){return i&&i.type===n}}function hu(n){return r;function r(i,u,s){return!!(wS(i)&&n.call(this,i,typeof u=="number"?u:void 0,s||void 0))}}function CS(){return!0}function wS(n){return n!==null&&typeof n=="object"&&"type"in n}const _0=[],TS=!0,rc=!1,AS="skip";function M0(n,r,i,u){let s;typeof r=="function"&&typeof i!="function"?(u=i,i=r):s=r;const c=fu(s),f=u?-1:1;d(n,void 0,[])();function d(p,m,x){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(b,"name",{value:"node ("+(p.type+(v?"<"+v+">":""))+")"})}return b;function b(){let v=_0,w,_,Y;if((!r||c(p,m,x[x.length-1]||void 0))&&(v=NS(i(p,x)),v[0]===rc))return v;if("children"in p&&p.children){const M=p;if(M.children&&v[0]!==AS)for(_=(u?M.children.length:-1)+f,Y=x.concat(M);_>-1&&_<M.children.length;){const U=M.children[_];if(w=d(U,_,Y)(),w[0]===rc)return w;_=typeof w[1]=="number"?w[1]:_+f}}return v}}}function NS(n){return Array.isArray(n)?n:typeof n=="number"?[TS,n]:n==null?_0:[n]}function Ac(n,r,i,u){let s,c,f;typeof r=="function"&&typeof i!="function"?(c=void 0,f=r,s=i):(c=r,f=i,s=u),M0(n,c,d,s);function d(p,m){const x=m[m.length-1],g=x?x.children.indexOf(p):void 0;return f(p,g,x)}}const uc={}.hasOwnProperty,_S={};function MS(n,r){const i=r||_S,u=new Map,s=new Map,c=new Map,f={...mS,...i.handlers},d={all:m,applyData:OS,definitionById:u,footnoteById:s,footnoteCounts:c,footnoteOrder:[],handlers:f,one:p,options:i,patch:jS,wrap:RS};return Ac(n,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const g=x.type==="definition"?u:s,b=String(x.identifier).toUpperCase();g.has(b)||g.set(b,x)}}),d;function p(x,g){const b=x.type,v=d.handlers[b];if(uc.call(d.handlers,b)&&v)return v(d,x,g);if(d.options.passThrough&&d.options.passThrough.includes(b)){if("children"in x){const{children:_,...Y}=x,M=ru(Y);return M.children=d.all(x),M}return ru(x)}return(d.options.unknownHandler||DS)(d,x,g)}function m(x){const g=[];if("children"in x){const b=x.children;let v=-1;for(;++v<b.length;){const w=d.one(b[v],x);if(w){if(v&&b[v-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=bp(w.value)),!Array.isArray(w)&&w.type==="element")){const _=w.children[0];_&&_.type==="text"&&(_.value=bp(_.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function jS(n,r){n.position&&(r.position=vb(n))}function OS(n,r){let i=r;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,ru(c)),"children"in i&&i.children&&s!==null&&s!==void 0&&(i.children=s)}return i}function DS(n,r){const i=r.data||{},u="value"in r&&!(uc.call(i,"hProperties")||uc.call(i,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:n.all(r)};return n.patch(r,u),n.applyData(r,u)}function RS(n,r){const i=[];let u=-1;for(r&&i.push({type:"text",value:`
|
|
252
|
+
`});++u<n.length;)u&&i.push({type:"text",value:`
|
|
253
|
+
`}),i.push(n[u]);return r&&n.length>0&&i.push({type:"text",value:`
|
|
254
|
+
`}),i}function bp(n){let r=0,i=n.charCodeAt(r);for(;i===9||i===32;)r++,i=n.charCodeAt(r);return n.slice(r)}function vp(n,r){const i=MS(n,r),u=i.one(n,void 0),s=SS(i),c=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return s&&c.children.push({type:"text",value:`
|
|
255
|
+
`},s),c}function LS(n,r){return n&&"run"in n?async function(i,u){const s=vp(i,{file:u,...r});await n.run(s,u)}:function(i,u){return vp(i,{file:u,...n||r})}}function Sp(n){if(n)throw n}var qo,zp;function BS(){if(zp)return qo;zp=1;var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):r.call(m)==="[object Array]"},c=function(m){if(!m||r.call(m)!=="[object Object]")return!1;var x=n.call(m,"constructor"),g=m.constructor&&m.constructor.prototype&&n.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!x&&!g)return!1;var b;for(b in m);return typeof b>"u"||n.call(m,b)},f=function(m,x){i&&x.name==="__proto__"?i(m,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):m[x.name]=x.newValue},d=function(m,x){if(x==="__proto__")if(n.call(m,x)){if(u)return u(m,x).value}else return;return m[x]};return qo=function p(){var m,x,g,b,v,w,_=arguments[0],Y=1,M=arguments.length,U=!1;for(typeof _=="boolean"&&(U=_,_=arguments[1]||{},Y=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});Y<M;++Y)if(m=arguments[Y],m!=null)for(x in m)g=d(_,x),b=d(m,x),_!==b&&(U&&b&&(c(b)||(v=s(b)))?(v?(v=!1,w=g&&s(g)?g:[]):w=g&&c(g)?g:{},f(_,{name:x,newValue:p(U,w,b)})):typeof b<"u"&&f(_,{name:x,newValue:b}));return _},qo}var US=BS();const Yo=Hp(US);function sc(n){if(typeof n!="object"||n===null)return!1;const r=Object.getPrototypeOf(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function HS(){const n=[],r={run:i,use:u};return r;function i(...s){let c=-1;const f=s.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);d(null,...s);function d(p,...m){const x=n[++c];let g=-1;if(p){f(p);return}for(;++g<s.length;)(m[g]===null||m[g]===void 0)&&(m[g]=s[g]);s=m,x?qS(x,d)(...m):f(null,...m)}}function u(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return n.push(s),r}}function qS(n,r){let i;return u;function u(...f){const d=n.length>f.length;let p;d&&f.push(s);try{p=n.apply(this,f)}catch(m){const x=m;if(d&&i)throw x;return s(x)}d||(p&&p.then&&typeof p.then=="function"?p.then(c,s):p instanceof Error?s(p):c(p))}function s(f,...d){i||(i=!0,r(f,...d))}function c(f){s(null,f)}}const on={basename:YS,dirname:VS,extname:GS,join:XS,sep:"/"};function YS(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Ma(n);let i=0,u=-1,s=n.length,c;if(r===void 0||r.length===0||r.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(r===n)return"";let f=-1,d=r.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)===r.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 VS(n){if(Ma(n),n.length===0)return".";let r=-1,i=n.length,u;for(;--i;)if(n.codePointAt(i)===47){if(u){r=i;break}}else u||(u=!0);return r<0?n.codePointAt(0)===47?"/":".":r===1&&n.codePointAt(0)===47?"//":n.slice(0,r)}function GS(n){Ma(n);let r=n.length,i=-1,u=0,s=-1,c=0,f;for(;r--;){const d=n.codePointAt(r);if(d===47){if(f){u=r+1;break}continue}i<0&&(f=!0,i=r+1),d===46?s<0?s=r: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 XS(...n){let r=-1,i;for(;++r<n.length;)Ma(n[r]),n[r]&&(i=i===void 0?n[r]:i+"/"+n[r]);return i===void 0?".":QS(i)}function QS(n){Ma(n);const r=n.codePointAt(0)===47;let i=ZS(n,!r);return i.length===0&&!r&&(i="."),i.length>0&&n.codePointAt(n.length-1)===47&&(i+="/"),r?"/"+i:i}function ZS(n,r){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}}r&&(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 Ma(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const FS={cwd:KS};function KS(){return"/"}function oc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function JS(n){if(typeof n=="string")n=new URL(n);else if(!oc(n)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(n.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return IS(n)}function IS(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 r=n.pathname;let i=-1;for(;++i<r.length;)if(r.codePointAt(i)===37&&r.codePointAt(i+1)===50){const u=r.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(r)}const Vo=["history","path","basename","stem","extname","dirname"];class j0{constructor(r){let i;r?oc(r)?i={path:r}:typeof r=="string"||$S(r)?i={value:r}:i=r:i={},this.cwd="cwd"in i?"":FS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Vo.length;){const c=Vo[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)Vo.includes(s)||(this[s]=i[s])}get basename(){return typeof this.path=="string"?on.basename(this.path):void 0}set basename(r){Xo(r,"basename"),Go(r,"basename"),this.path=on.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?on.dirname(this.path):void 0}set dirname(r){kp(this.basename,"dirname"),this.path=on.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?on.extname(this.path):void 0}set extname(r){if(Go(r,"extname"),kp(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=on.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){oc(r)&&(r=JS(r)),Xo(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?on.basename(this.path,this.extname):void 0}set stem(r){Xo(r,"stem"),Go(r,"stem"),this.path=on.join(this.dirname||"",r+(this.extname||""))}fail(r,i,u){const s=this.message(r,i,u);throw s.fatal=!0,s}info(r,i,u){const s=this.message(r,i,u);return s.fatal=void 0,s}message(r,i,u){const s=new gt(r,i,u);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function Go(n,r){if(n&&n.includes(on.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+on.sep+"`")}function Xo(n,r){if(!n)throw new Error("`"+r+"` cannot be empty")}function kp(n,r){if(!n)throw new Error("Setting `"+r+"` requires `path` to be set too")}function $S(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const WS=(function(n){const u=this.constructor.prototype,s=u[n],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,u),c}),PS={}.hasOwnProperty;class Nc extends WS{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=HS()}copy(){const r=new Nc;let i=-1;for(;++i<this.attachers.length;){const u=this.attachers[i];r.use(...u)}return r.data(Yo(!0,{},this.namespace)),r}data(r,i){return typeof r=="string"?arguments.length===2?(Fo("data",this.frozen),this.namespace[r]=i,this):PS.call(this.namespace,r)&&this.namespace[r]||void 0:r?(Fo("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=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(r,...u);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const i=eu(r),u=this.parser||this.Parser;return Qo("parse",u),u(String(i),i)}process(r,i){const u=this;return this.freeze(),Qo("process",this.parser||this.Parser),Zo("process",this.compiler||this.Compiler),i?s(void 0,i):new Promise(s);function s(c,f){const d=eu(r),p=u.parse(d);u.run(p,d,function(x,g,b){if(x||!g||!b)return m(x);const v=g,w=u.stringify(v,b);nz(w)?b.value=w:b.result=w,m(x,b)});function m(x,g){x||!g?f(x):c?c(g):i(void 0,g)}}}processSync(r){let i=!1,u;return this.freeze(),Qo("processSync",this.parser||this.Parser),Zo("processSync",this.compiler||this.Compiler),this.process(r,s),Cp("processSync","process",i),u;function s(c,f){i=!0,Sp(c),u=f}}run(r,i,u){Ep(r),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=eu(i);s.run(r,p,m);function m(x,g,b){const v=g||r;x?d(x):f?f(v):u(void 0,v,b)}}}runSync(r,i){let u=!1,s;return this.run(r,i,c),Cp("runSync","run",u),s;function c(f,d){Sp(f),s=d,u=!0}}stringify(r,i){this.freeze();const u=eu(i),s=this.compiler||this.Compiler;return Zo("stringify",s),Ep(r),s(r,u)}use(r,...i){const u=this.attachers,s=this.namespace;if(Fo("use",this.frozen),r!=null)if(typeof r=="function")p(r,i);else if(typeof r=="object")Array.isArray(r)?d(r):f(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function c(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[x,...g]=m;p(x,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=Yo(!0,s.settings,m.settings))}function d(m){let x=-1;if(m!=null)if(Array.isArray(m))for(;++x<m.length;){const g=m[x];c(g)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,x){let g=-1,b=-1;for(;++g<u.length;)if(u[g][0]===m){b=g;break}if(b===-1)u.push([m,...x]);else if(x.length>0){let[v,...w]=x;const _=u[b][1];sc(_)&&sc(v)&&(v=Yo(!0,_,v)),u[b]=[m,v,...w]}}}}const ez=new Nc().freeze();function Qo(n,r){if(typeof r!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Zo(n,r){if(typeof r!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Fo(n,r){if(r)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ep(n){if(!sc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Cp(n,r,i){if(!i)throw new Error("`"+n+"` finished async. Use `"+r+"` instead")}function eu(n){return tz(n)?n:new j0(n)}function tz(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function nz(n){return typeof n=="string"||lz(n)}function lz(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const iz="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",wp=[],Tp={allowDangerousHtml:!0},az=/^(https?|ircs?|mailto|xmpp)$/i,rz=[{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 uz(n){const r=sz(n),i=oz(n);return cz(r.runSync(r.parse(i),i),n)}function sz(n){const r=n.rehypePlugins||wp,i=n.remarkPlugins||wp,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Tp}:Tp;return ez().use(V2).use(i).use(LS,u).use(r)}function oz(n){const r=n.children||"",i=new j0;return typeof r=="string"&&(i.value=r),i}function cz(n,r){const i=r.allowedElements,u=r.allowElement,s=r.components,c=r.disallowedElements,f=r.skipHtml,d=r.unwrapDisallowed,p=r.urlTransform||fz;for(const x of rz)Object.hasOwn(r,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+iz+x.id,void 0);return Ac(n,m),Cb(n,{Fragment:S.Fragment,components:s,ignoreInvalidStyle:!0,jsx:S.jsx,jsxs:S.jsxs,passKeys:!0,passNode:!0});function m(x,g,b){if(x.type==="raw"&&b&&typeof g=="number")return f?b.children.splice(g,1):b.children[g]={type:"text",value:x.value},g;if(x.type==="element"){let v;for(v in Bo)if(Object.hasOwn(Bo,v)&&Object.hasOwn(x.properties,v)){const w=x.properties[v],_=Bo[v];(_===null||_.includes(x.tagName))&&(x.properties[v]=p(String(w||""),v,x))}}if(x.type==="element"){let v=i?!i.includes(x.tagName):c?c.includes(x.tagName):!1;if(!v&&u&&typeof g=="number"&&(v=!u(x,g,b)),v&&b&&typeof g=="number")return d&&x.children?b.children.splice(g,1,...x.children):b.children.splice(g,1),g}}}function fz(n){const r=n.indexOf(":"),i=n.indexOf("?"),u=n.indexOf("#"),s=n.indexOf("/");return r===-1||s!==-1&&r>s||i!==-1&&r>i||u!==-1&&r>u||az.test(n.slice(0,r))?n:""}function Ap(n,r){const i=String(n);if(typeof r!="string")throw new TypeError("Expected character");let u=0,s=i.indexOf(r);for(;s!==-1;)u++,s=i.indexOf(r,s+r.length);return u}function hz(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function dz(n,r,i){const s=fu((i||{}).ignore||[]),c=mz(r);let f=-1;for(;++f<c.length;)M0(n,"text",d);function d(m,x){let g=-1,b;for(;++g<x.length;){const v=x[g],w=b?b.children:void 0;if(s(v,w?w.indexOf(v):void 0,b))return;b=v}if(b)return p(m,x)}function p(m,x){const g=x[x.length-1],b=c[f][0],v=c[f][1];let w=0;const Y=g.children.indexOf(m);let M=!1,U=[];b.lastIndex=0;let j=b.exec(m.value);for(;j;){const I=j.index,F={index:j.index,input:j.input,stack:[...x,m]};let B=v(...j,F);if(typeof B=="string"&&(B=B.length>0?{type:"text",value:B}:void 0),B===!1?b.lastIndex=I+1:(w!==I&&U.push({type:"text",value:m.value.slice(w,I)}),Array.isArray(B)?U.push(...B):B&&U.push(B),w=I+j[0].length,M=!0),!b.global)break;j=b.exec(m.value)}return M?(w<m.value.length&&U.push({type:"text",value:m.value.slice(w)}),g.children.splice(Y,1,...U)):U=[m],Y+U.length}}function mz(n){const r=[];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];r.push([pz(s[0]),gz(s[1])])}return r}function pz(n){return typeof n=="string"?new RegExp(hz(n),"g"):n}function gz(n){return typeof n=="function"?n:function(){return n}}const Ko="phrasing",Jo=["autolink","link","image","label"];function yz(){return{transforms:[Ez],enter:{literalAutolink:bz,literalAutolinkEmail:Io,literalAutolinkHttp:Io,literalAutolinkWww:Io},exit:{literalAutolink:kz,literalAutolinkEmail:zz,literalAutolinkHttp:vz,literalAutolinkWww:Sz}}}function xz(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ko,notInConstruct:Jo},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ko,notInConstruct:Jo},{character:":",before:"[ps]",after:"\\/",inConstruct:Ko,notInConstruct:Jo}]}}function bz(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Io(n){this.config.enter.autolinkProtocol.call(this,n)}function vz(n){this.config.exit.autolinkProtocol.call(this,n)}function Sz(n){this.config.exit.data.call(this,n);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(n)}function zz(n){this.config.exit.autolinkEmail.call(this,n)}function kz(n){this.exit(n)}function Ez(n){dz(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Cz],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),wz]],{ignore:["link","linkReference"]})}function Cz(n,r,i,u,s){let c="";if(!O0(s)||(/^w/i.test(r)&&(i=r+i,r="",c="http://"),!Tz(i)))return!1;const f=Az(i+u);if(!f[0])return!1;const d={type:"link",title:null,url:c+r+f[0],children:[{type:"text",value:r+f[0]}]};return f[1]?[d,{type:"text",value:f[1]}]:d}function wz(n,r,i,u){return!O0(u,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+i,children:[{type:"text",value:r+"@"+i}]}}function Tz(n){const r=n.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function Az(n){const r=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!r)return[n,void 0];n=n.slice(0,r.index);let i=r[0],u=i.indexOf(")");const s=Ap(n,"(");let c=Ap(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 O0(n,r){const i=n.input.charCodeAt(n.index-1);return(n.index===0||Cl(i)||su(i))&&(!r||i!==47)}D0.peek=Bz;function Nz(){this.buffer()}function _z(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function Mz(){this.buffer()}function jz(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function Oz(n){const r=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=ln(this.sliceSerialize(n)).toLowerCase(),i.label=r}function Dz(n){this.exit(n)}function Rz(n){const r=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=ln(this.sliceSerialize(n)).toLowerCase(),i.label=r}function Lz(n){this.exit(n)}function Bz(){return"["}function D0(n,r,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 Uz(){return{enter:{gfmFootnoteCallString:Nz,gfmFootnoteCall:_z,gfmFootnoteDefinitionLabelString:Mz,gfmFootnoteDefinition:jz},exit:{gfmFootnoteCallString:Oz,gfmFootnoteCall:Dz,gfmFootnoteDefinitionLabelString:Rz,gfmFootnoteDefinition:Lz}}}function Hz(n){let r=!1;return n&&n.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:i,footnoteReference:D0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(u,s,c,f){const d=c.createTracker(f);let p=d.move("[^");const m=c.enter("footnoteDefinition"),x=c.enter("label");return p+=d.move(c.safe(c.associationId(u),{before:p,after:"]"})),x(),p+=d.move("]:"),u.children&&u.children.length>0&&(d.shift(4),p+=d.move((r?`
|
|
256
|
+
`:" ")+c.indentLines(c.containerFlow(u,d.current()),r?R0:qz))),m(),p}}function qz(n,r,i){return r===0?n:R0(n,r,i)}function R0(n,r,i){return(i?"":" ")+n}const Yz=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];L0.peek=Zz;function Vz(){return{canContainEols:["delete"],enter:{strikethrough:Xz},exit:{strikethrough:Qz}}}function Gz(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Yz}],handlers:{delete:L0}}}function Xz(n){this.enter({type:"delete",children:[]},n)}function Qz(n){this.exit(n)}function L0(n,r,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 Zz(){return"~"}function Fz(n){return n.length}function Kz(n,r){const i=r||{},u=(i.align||[]).concat(),s=i.stringLength||Fz,c=[],f=[],d=[],p=[];let m=0,x=-1;for(;++x<n.length;){const _=[],Y=[];let M=-1;for(n[x].length>m&&(m=n[x].length);++M<n[x].length;){const U=Jz(n[x][M]);if(i.alignDelimiters!==!1){const j=s(U);Y[M]=j,(p[M]===void 0||j>p[M])&&(p[M]=j)}_.push(U)}f[x]=_,d[x]=Y}let g=-1;if(typeof u=="object"&&"length"in u)for(;++g<m;)c[g]=Np(u[g]);else{const _=Np(u);for(;++g<m;)c[g]=_}g=-1;const b=[],v=[];for(;++g<m;){const _=c[g];let Y="",M="";_===99?(Y=":",M=":"):_===108?Y=":":_===114&&(M=":");let U=i.alignDelimiters===!1?1:Math.max(1,p[g]-Y.length-M.length);const j=Y+"-".repeat(U)+M;i.alignDelimiters!==!1&&(U=Y.length+U+M.length,U>p[g]&&(p[g]=U),v[g]=U),b[g]=j}f.splice(1,0,b),d.splice(1,0,v),x=-1;const w=[];for(;++x<f.length;){const _=f[x],Y=d[x];g=-1;const M=[];for(;++g<m;){const U=_[g]||"";let j="",I="";if(i.alignDelimiters!==!1){const F=p[g]-(Y[g]||0),B=c[g];B===114?j=" ".repeat(F):B===99?F%2?(j=" ".repeat(F/2+.5),I=" ".repeat(F/2-.5)):(j=" ".repeat(F/2),I=j):I=" ".repeat(F)}i.delimiterStart!==!1&&!g&&M.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&U==="")&&(i.delimiterStart!==!1||g)&&M.push(" "),i.alignDelimiters!==!1&&M.push(j),M.push(U),i.alignDelimiters!==!1&&M.push(I),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(`
|
|
257
|
+
`)}function Jz(n){return n==null?"":String(n)}function Np(n){const r=typeof n=="string"?n.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function Iz(n,r,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()),$z);return s(),f}function $z(n,r,i){return">"+(i?"":" ")+n}function Wz(n,r){return _p(n,r.inConstruct,!0)&&!_p(n,r.notInConstruct,!1)}function _p(n,r,i){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return i;let u=-1;for(;++u<r.length;)if(n.includes(r[u]))return!0;return!1}function Mp(n,r,i,u){let s=-1;for(;++s<i.unsafe.length;)if(i.unsafe[s].character===`
|
|
258
|
+
`&&Wz(i.stack,i.unsafe[s]))return/[ \t]/.test(u.before)?"":" ";return`\\
|
|
259
|
+
`}function Pz(n,r){const i=String(n);let u=i.indexOf(r),s=u,c=0,f=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===s?++c>f&&(f=c):c=1,s=u+r.length,u=i.indexOf(r,s);return f}function e3(n,r){return!!(r.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function t3(n){const r=n.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function n3(n,r,i,u){const s=t3(i),c=n.value||"",f=s==="`"?"GraveAccent":"Tilde";if(e3(n,i)){const g=i.enter("codeIndented"),b=i.indentLines(c,l3);return g(),b}const d=i.createTracker(u),p=s.repeat(Math.max(Pz(c,s)+1,3)),m=i.enter("codeFenced");let x=d.move(p);if(n.lang){const g=i.enter(`codeFencedLang${f}`);x+=d.move(i.safe(n.lang,{before:x,after:" ",encode:["`"],...d.current()})),g()}if(n.lang&&n.meta){const g=i.enter(`codeFencedMeta${f}`);x+=d.move(" "),x+=d.move(i.safe(n.meta,{before:x,after:`
|
|
260
|
+
`,encode:["`"],...d.current()})),g()}return x+=d.move(`
|
|
261
|
+
`),c&&(x+=d.move(c+`
|
|
262
|
+
`)),x+=d.move(p),m(),x}function l3(n,r,i){return(i?"":" ")+n}function _c(n){const r=n.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function i3(n,r,i,u){const s=_c(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?" ":`
|
|
263
|
+
`,...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 a3(n){const r=n.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function Ta(n){return"&#x"+n.toString(16).toUpperCase()+";"}function uu(n,r,i){const u=Si(n),s=Si(r);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}}B0.peek=r3;function B0(n,r,i,u){const s=a3(i),c=i.enter("emphasis"),f=i.createTracker(u),d=f.move(s);let p=f.move(i.containerPhrasing(n,{after:s,before:d,...f.current()}));const m=p.charCodeAt(0),x=uu(u.before.charCodeAt(u.before.length-1),m,s);x.inside&&(p=Ta(m)+p.slice(1));const g=p.charCodeAt(p.length-1),b=uu(u.after.charCodeAt(0),g,s);b.inside&&(p=p.slice(0,-1)+Ta(g));const v=f.move(s);return c(),i.attentionEncodeSurroundingInfo={after:b.outside,before:x.outside},d+p+v}function r3(n,r,i){return i.options.emphasis||"*"}function u3(n,r){let i=!1;return Ac(n,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return i=!0,rc}),!!((!n.depth||n.depth<3)&&Sc(n)&&(r.options.setext||i))}function s3(n,r,i,u){const s=Math.max(Math.min(6,n.depth||1),1),c=i.createTracker(u);if(u3(n,i)){const x=i.enter("headingSetext"),g=i.enter("phrasing"),b=i.containerPhrasing(n,{...c.current(),before:`
|
|
264
|
+
`,after:`
|
|
265
|
+
`});return g(),x(),b+`
|
|
266
|
+
`+(s===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
|
|
267
|
+
`))+1))}const f="#".repeat(s),d=i.enter("headingAtx"),p=i.enter("phrasing");c.move(f+" ");let m=i.containerPhrasing(n,{before:"# ",after:`
|
|
268
|
+
`,...c.current()});return/^[\t ]/.test(m)&&(m=Ta(m.charCodeAt(0))+m.slice(1)),m=m?f+" "+m:f,i.options.closeAtx&&(m+=" "+f),p(),d(),m}U0.peek=o3;function U0(n){return n.value||""}function o3(){return"<"}H0.peek=c3;function H0(n,r,i,u){const s=_c(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 c3(){return"!"}q0.peek=f3;function q0(n,r,i,u){const s=n.referenceType,c=i.enter("imageReference");let f=i.enter("label");const d=i.createTracker(u);let p=d.move("![");const m=i.safe(n.alt,{before:p,after:"]",...d.current()});p+=d.move(m+"]["),f();const x=i.stack;i.stack=[],f=i.enter("reference");const g=i.safe(i.associationId(n),{before:p,after:"]",...d.current()});return f(),i.stack=x,c(),s==="full"||!m||m!==g?p+=d.move(g+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function f3(){return"!"}Y0.peek=h3;function Y0(n,r,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 h3(){return"`"}function V0(n,r){const i=Sc(n);return!!(!r.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))}G0.peek=d3;function G0(n,r,i,u){const s=_c(i),c=s==='"'?"Quote":"Apostrophe",f=i.createTracker(u);let d,p;if(V0(n,i)){const x=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=x,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 d3(n,r,i){return V0(n,i)?"<":"["}X0.peek=m3;function X0(n,r,i,u){const s=n.referenceType,c=i.enter("linkReference");let f=i.enter("label");const d=i.createTracker(u);let p=d.move("[");const m=i.containerPhrasing(n,{before:p,after:"]",...d.current()});p+=d.move(m+"]["),f();const x=i.stack;i.stack=[],f=i.enter("reference");const g=i.safe(i.associationId(n),{before:p,after:"]",...d.current()});return f(),i.stack=x,c(),s==="full"||!m||m!==g?p+=d.move(g+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function m3(){return"["}function Mc(n){const r=n.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function p3(n){const r=Mc(n),i=n.options.bulletOther;if(!i)return r==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+i+"`) to be different");return i}function g3(n){const r=n.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function Q0(n){const r=n.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function y3(n,r,i,u){const s=i.enter("list"),c=i.bulletCurrent;let f=n.ordered?g3(i):Mc(i);const d=n.ordered?f==="."?")":".":p3(i);let p=r&&i.bulletLastUsed?f===i.bulletLastUsed:!1;if(!n.ordered){const x=n.children?n.children[0]:void 0;if((f==="*"||f==="-")&&x&&(!x.children||!x.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(p=!0),Q0(i)===f&&x){let g=-1;for(;++g<n.children.length;){const b=n.children[g];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.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 x3(n){const r=n.options.listItemIndent||"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function b3(n,r,i,u){const s=x3(i);let c=i.bulletCurrent||Mc(i);r&&r.type==="list"&&r.ordered&&(c=(typeof r.start=="number"&&r.start>-1?r.start:1)+(i.options.incrementListMarker===!1?0:r.children.indexOf(n))+c);let f=c.length+1;(s==="tab"||s==="mixed"&&(r&&r.type==="list"&&r.spread||n.spread))&&(f=Math.ceil(f/4)*4);const d=i.createTracker(u);d.move(c+" ".repeat(f-c.length)),d.shift(f);const p=i.enter("listItem"),m=i.indentLines(i.containerFlow(n,d.current()),x);return p(),m;function x(g,b,v){return b?(v?"":" ".repeat(f))+g:(v?c:c+" ".repeat(f-c.length))+g}}function v3(n,r,i,u){const s=i.enter("paragraph"),c=i.enter("phrasing"),f=i.containerPhrasing(n,u);return c(),s(),f}const S3=fu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function z3(n,r,i,u){return(n.children.some(function(f){return S3(f)})?i.containerPhrasing:i.containerFlow).call(i,n,u)}function k3(n){const r=n.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}Z0.peek=E3;function Z0(n,r,i,u){const s=k3(i),c=i.enter("strong"),f=i.createTracker(u),d=f.move(s+s);let p=f.move(i.containerPhrasing(n,{after:s,before:d,...f.current()}));const m=p.charCodeAt(0),x=uu(u.before.charCodeAt(u.before.length-1),m,s);x.inside&&(p=Ta(m)+p.slice(1));const g=p.charCodeAt(p.length-1),b=uu(u.after.charCodeAt(0),g,s);b.inside&&(p=p.slice(0,-1)+Ta(g));const v=f.move(s+s);return c(),i.attentionEncodeSurroundingInfo={after:b.outside,before:x.outside},d+p+v}function E3(n,r,i){return i.options.strong||"*"}function C3(n,r,i,u){return i.safe(n.value,u)}function w3(n){const r=n.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function T3(n,r,i){const u=(Q0(i)+(i.options.ruleSpaces?" ":"")).repeat(w3(i));return i.options.ruleSpaces?u.slice(0,-1):u}const F0={blockquote:Iz,break:Mp,code:n3,definition:i3,emphasis:B0,hardBreak:Mp,heading:s3,html:U0,image:H0,imageReference:q0,inlineCode:Y0,link:G0,linkReference:X0,list:y3,listItem:b3,paragraph:v3,root:z3,strong:Z0,text:C3,thematicBreak:T3};function A3(){return{enter:{table:N3,tableData:jp,tableHeader:jp,tableRow:M3},exit:{codeText:j3,table:_3,tableData:$o,tableHeader:$o,tableRow:$o}}}function N3(n){const r=n._align;this.enter({type:"table",align:r.map(function(i){return i==="none"?null:i}),children:[]},n),this.data.inTable=!0}function _3(n){this.exit(n),this.data.inTable=void 0}function M3(n){this.enter({type:"tableRow",children:[]},n)}function $o(n){this.exit(n)}function jp(n){this.enter({type:"tableCell",children:[]},n)}function j3(n){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,O3));const i=this.stack[this.stack.length-1];i.type,i.value=r,this.exit(n)}function O3(n,r){return r==="|"?r:n}function D3(n){const r=n||{},i=r.tableCellPadding,u=r.tablePipeAlign,s=r.stringLength,c=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
269
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:f,tableCell:p,tableRow:d}};function f(v,w,_,Y){return m(x(v,_,Y),v.align)}function d(v,w,_,Y){const M=g(v,_,Y),U=m([M]);return U.slice(0,U.indexOf(`
|
|
270
|
+
`))}function p(v,w,_,Y){const M=_.enter("tableCell"),U=_.enter("phrasing"),j=_.containerPhrasing(v,{...Y,before:c,after:c});return U(),M(),j}function m(v,w){return Kz(v,{align:w,alignDelimiters:u,padding:i,stringLength:s})}function x(v,w,_){const Y=v.children;let M=-1;const U=[],j=w.enter("table");for(;++M<Y.length;)U[M]=g(Y[M],w,_);return j(),U}function g(v,w,_){const Y=v.children;let M=-1;const U=[],j=w.enter("tableRow");for(;++M<Y.length;)U[M]=p(Y[M],v,w,_);return j(),U}function b(v,w,_){let Y=F0.inlineCode(v,w,_);return _.stack.includes("tableCell")&&(Y=Y.replace(/\|/g,"\\$&")),Y}}function R3(){return{exit:{taskListCheckValueChecked:Op,taskListCheckValueUnchecked:Op,paragraph:B3}}}function L3(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:U3}}}function Op(n){const r=this.stack[this.stack.length-2];r.type,r.checked=n.type==="taskListCheckValueChecked"}function B3(n){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const u=i.children[0];if(u&&u.type==="text"){const s=r.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 U3(n,r,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=F0.listItem(n,r,i,{...u,...d.current()});return c&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;function m(x){return x+f}}function H3(){return[yz(),Uz(),Vz(),A3(),R3()]}function q3(n){return{extensions:[xz(),Hz(n),Gz(),D3(n),L3()]}}const Y3={tokenize:F3,partial:!0},K0={tokenize:K3,partial:!0},J0={tokenize:J3,partial:!0},I0={tokenize:I3,partial:!0},V3={tokenize:$3,partial:!0},$0={name:"wwwAutolink",tokenize:Q3,previous:P0},W0={name:"protocolAutolink",tokenize:Z3,previous:eg},jn={name:"emailAutolink",tokenize:X3,previous:tg},cn={};function G3(){return{text:cn}}let El=48;for(;El<123;)cn[El]=jn,El++,El===58?El=65:El===91&&(El=97);cn[43]=jn;cn[45]=jn;cn[46]=jn;cn[95]=jn;cn[72]=[jn,W0];cn[104]=[jn,W0];cn[87]=[jn,$0];cn[119]=[jn,$0];function X3(n,r,i){const u=this;let s,c;return f;function f(g){return!cc(g)||!tg.call(u,u.previous)||jc(u.events)?i(g):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),d(g))}function d(g){return cc(g)?(n.consume(g),d):g===64?(n.consume(g),p):i(g)}function p(g){return g===46?n.check(V3,x,m)(g):g===45||g===95||pt(g)?(c=!0,n.consume(g),p):x(g)}function m(g){return n.consume(g),s=!0,p}function x(g){return c&&s&&vt(u.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),r(g)):i(g)}}function Q3(n,r,i){const u=this;return s;function s(f){return f!==87&&f!==119||!P0.call(u,u.previous)||jc(u.events)?i(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(Y3,n.attempt(K0,n.attempt(J0,c),i),i)(f))}function c(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),r(f)}}function Z3(n,r,i){const u=this;let s="",c=!1;return f;function f(g){return(g===72||g===104)&&eg.call(u,u.previous)&&!jc(u.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),n.consume(g),d):i(g)}function d(g){if(vt(g)&&s.length<5)return s+=String.fromCodePoint(g),n.consume(g),d;if(g===58){const b=s.toLowerCase();if(b==="http"||b==="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||iu(g)||Xe(g)||Cl(g)||su(g)?i(g):n.attempt(K0,n.attempt(J0,x),i)(g)}function x(g){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),r(g)}}function F3(n,r,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):r(f)}}function K3(n,r,i){let u,s,c;return f;function f(m){return m===46||m===95?n.check(I0,p,d)(m):m===null||Xe(m)||Cl(m)||m!==45&&su(m)?p(m):(c=!0,n.consume(m),f)}function d(m){return m===95?u=!0:(s=u,u=void 0),n.consume(m),f}function p(m){return s||u||!c?i(m):r(m)}}function J3(n,r){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(I0,r,c)(f):f===null||Xe(f)||Cl(f)?r(f):(n.consume(f),s)}function c(f){return f===41&&u++,n.consume(f),s}}function I3(n,r,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||Xe(d)||Cl(d)?r(d):i(d)}function s(d){return d===null||d===40||d===91||Xe(d)||Cl(d)?r(d):u(d)}function c(d){return vt(d)?f(d):i(d)}function f(d){return d===59?(n.consume(d),u):vt(d)?(n.consume(d),f):i(d)}}function $3(n,r,i){return u;function u(c){return n.consume(c),s}function s(c){return pt(c)?i(c):r(c)}}function P0(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Xe(n)}function eg(n){return!vt(n)}function tg(n){return!(n===47||cc(n))}function cc(n){return n===43||n===45||n===46||n===95||pt(n)}function jc(n){let r=n.length,i=!1;for(;r--;){const u=n[r][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 W3={tokenize:rk,partial:!0};function P3(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:lk,continuation:{tokenize:ik},exit:ak}},text:{91:{name:"gfmFootnoteCall",tokenize:nk},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ek,resolveTo:tk}}}}function ek(n,r,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=ln(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"),r(p))}}function tk(n,r){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,r],n[i+3],n[i+4],["enter",s,r],["exit",s,r],["enter",c,r],["enter",f,r],["exit",f,r],["exit",c,r],n[n.length-2],n[n.length-1],["exit",u,r]];return n.splice(i,n.length-i+1,...d),n}function nk(n,r,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||Xe(g))return i(g);if(g===93){n.exit("chunkString");const b=n.exit("gfmFootnoteCallString");return s.includes(ln(u.sliceSerialize(b)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),r):i(g)}return Xe(g)||(f=!0),c++,n.consume(g),g===92?x:m}function x(g){return g===91||g===92||g===93?(n.consume(g),c++,m):m(g)}}function lk(n,r,i){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c,f=0,d;return p;function p(w){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(w),n.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(w){return w===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(w),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",x):i(w)}function x(w){if(f>999||w===93&&!d||w===null||w===91||Xe(w))return i(w);if(w===93){n.exit("chunkString");const _=n.exit("gfmFootnoteDefinitionLabelString");return c=ln(u.sliceSerialize(_)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(w),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),b}return Xe(w)||(d=!0),f++,n.consume(w),w===92?g:x}function g(w){return w===91||w===92||w===93?(n.consume(w),f++,x):x(w)}function b(w){return w===58?(n.enter("definitionMarker"),n.consume(w),n.exit("definitionMarker"),s.includes(c)||s.push(c),_e(n,v,"gfmFootnoteDefinitionWhitespace")):i(w)}function v(w){return r(w)}}function ik(n,r,i){return n.check(_a,r,n.attempt(W3,r,i))}function ak(n){n.exit("gfmFootnoteDefinition")}function rk(n,r,i){const u=this;return _e(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?r(c):i(c)}}function uk(n){let i=(n||{}).singleTilde;const u={name:"strikethrough",tokenize:c,resolveAll:s};return i==null&&(i=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function s(f,d){let p=-1;for(;++p<f.length;)if(f[p][0]==="enter"&&f[p][1].type==="strikethroughSequenceTemporary"&&f[p][1]._close){let m=p;for(;m--;)if(f[m][0]==="exit"&&f[m][1].type==="strikethroughSequenceTemporary"&&f[m][1]._open&&f[p][1].end.offset-f[p][1].start.offset===f[m][1].end.offset-f[m][1].start.offset){f[p][1].type="strikethroughSequence",f[m][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},f[m][1].start),end:Object.assign({},f[p][1].end)},g={type:"strikethroughText",start:Object.assign({},f[m][1].end),end:Object.assign({},f[p][1].start)},b=[["enter",x,d],["enter",f[m][1],d],["exit",f[m][1],d],["enter",g,d]],v=d.parser.constructs.insideSpan.null;v&&qt(b,b.length,0,ou(v,f.slice(m+1,p),d)),qt(b,b.length,0,[["exit",g,d],["enter",f[p][1],d],["exit",f[p][1],d],["exit",x,d]]),qt(f,m-1,p-m+3,b),p=m+b.length-2;break}}for(p=-1;++p<f.length;)f[p][1].type==="strikethroughSequenceTemporary"&&(f[p][1].type="data");return f}function c(f,d,p){const m=this.previous,x=this.events;let g=0;return b;function b(w){return m===126&&x[x.length-1][1].type!=="characterEscape"?p(w):(f.enter("strikethroughSequenceTemporary"),v(w))}function v(w){const _=Si(m);if(w===126)return g>1?p(w):(f.consume(w),g++,v);if(g<2&&!i)return p(w);const Y=f.exit("strikethroughSequenceTemporary"),M=Si(w);return Y._open=!M||M===2&&!!_,Y._close=!_||_===2&&!!M,d(w)}}}class sk{constructor(){this.map=[]}add(r,i,u){ok(this,r,i,u)}consume(r){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(r.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),r.length=this.map[i][0];u.push(r.slice()),r.length=0;let s=u.pop();for(;s;){for(const c of s)r.push(c);s=u.pop()}this.map.length=0}}function ok(n,r,i,u){let s=0;if(!(i===0&&u.length===0)){for(;s<n.map.length;){if(n.map[s][0]===r){n.map[s][1]+=i,n.map[s][2].push(...u);return}s+=1}n.map.push([r,i,u])}}function ck(n,r){let i=!1;const u=[];for(;r<n.length;){const s=n[r];if(i){if(s[0]==="enter")s[1].type==="tableContent"&&u.push(n[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(n[r-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);r+=1}return u}function fk(){return{flow:{null:{name:"table",tokenize:hk,resolveAll:dk}}}}function hk(n,r,i){const u=this;let s=0,c=0,f;return d;function d(H){let ne=u.events.length-1;for(;ne>-1;){const ie=u.events[ne][1].type;if(ie==="lineEnding"||ie==="linePrefix")ne--;else break}const te=ne>-1?u.events[ne][1].type:null,Se=te==="tableHead"||te==="tableRow"?B:p;return Se===B&&u.parser.lazy[u.now().line]?i(H):Se(H)}function p(H){return n.enter("tableHead"),n.enter("tableRow"),m(H)}function m(H){return H===124||(f=!0,c+=1),x(H)}function x(H){return H===null?i(H):he(H)?c>1?(c=0,u.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(H),n.exit("lineEnding"),v):i(H):Ce(H)?_e(n,x,"whitespace")(H):(c+=1,f&&(f=!1,s+=1),H===124?(n.enter("tableCellDivider"),n.consume(H),n.exit("tableCellDivider"),f=!0,x):(n.enter("data"),g(H)))}function g(H){return H===null||H===124||Xe(H)?(n.exit("data"),x(H)):(n.consume(H),H===92?b:g)}function b(H){return H===92||H===124?(n.consume(H),g):g(H)}function v(H){return u.interrupt=!1,u.parser.lazy[u.now().line]?i(H):(n.enter("tableDelimiterRow"),f=!1,Ce(H)?_e(n,w,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):w(H))}function w(H){return H===45||H===58?Y(H):H===124?(f=!0,n.enter("tableCellDivider"),n.consume(H),n.exit("tableCellDivider"),_):F(H)}function _(H){return Ce(H)?_e(n,Y,"whitespace")(H):Y(H)}function Y(H){return H===58?(c+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(H),n.exit("tableDelimiterMarker"),M):H===45?(c+=1,M(H)):H===null||he(H)?I(H):F(H)}function M(H){return H===45?(n.enter("tableDelimiterFiller"),U(H)):F(H)}function U(H){return H===45?(n.consume(H),U):H===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(H),n.exit("tableDelimiterMarker"),j):(n.exit("tableDelimiterFiller"),j(H))}function j(H){return Ce(H)?_e(n,I,"whitespace")(H):I(H)}function I(H){return H===124?w(H):H===null||he(H)?!f||s!==c?F(H):(n.exit("tableDelimiterRow"),n.exit("tableHead"),r(H)):F(H)}function F(H){return i(H)}function B(H){return n.enter("tableRow"),$(H)}function $(H){return H===124?(n.enter("tableCellDivider"),n.consume(H),n.exit("tableCellDivider"),$):H===null||he(H)?(n.exit("tableRow"),r(H)):Ce(H)?_e(n,$,"whitespace")(H):(n.enter("data"),ue(H))}function ue(H){return H===null||H===124||Xe(H)?(n.exit("data"),$(H)):(n.consume(H),H===92?se:ue)}function se(H){return H===92||H===124?(n.consume(H),ue):ue(H)}}function dk(n,r){let i=-1,u=!0,s=0,c=[0,0,0,0],f=[0,0,0,0],d=!1,p=0,m,x,g;const b=new sk;for(;++i<n.length;){const v=n[i],w=v[1];v[0]==="enter"?w.type==="tableHead"?(d=!1,p!==0&&(Dp(b,r,p,m,x),x=void 0,p=0),m={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},b.add(i,0,[["enter",m,r]])):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,x={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},b.add(i,0,[["enter",x,r]])),s=w.type==="tableDelimiterRow"?2:x?3:1):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(u=!1,f[2]===0&&(c[1]!==0&&(f[0]=f[1],g=tu(b,r,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=tu(b,r,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=tu(b,r,c,s,i,g)):f[1]!==0&&(g=tu(b,r,f,s,i,g)),s=0):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(f[3]=i)}for(p!==0&&Dp(b,r,p,m,x),b.consume(r.events),i=-1;++i<r.events.length;){const v=r.events[i];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=ck(r.events,i))}return n}function tu(n,r,i,u,s,c){const f=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",d="tableContent";i[0]!==0&&(c.end=Object.assign({},xi(r.events,i[0])),n.add(i[0],0,[["exit",c,r]]));const p=xi(r.events,i[1]);if(c={type:f,start:Object.assign({},p),end:Object.assign({},p)},n.add(i[1],0,[["enter",c,r]]),i[2]!==0){const m=xi(r.events,i[2]),x=xi(r.events,i[3]),g={type:d,start:Object.assign({},m),end:Object.assign({},x)};if(n.add(i[2],0,[["enter",g,r]]),u!==2){const b=r.events[i[2]],v=r.events[i[3]];if(b[1].end=Object.assign({},v[1].end),b[1].type="chunkText",b[1].contentType="text",i[3]>i[2]+1){const w=i[2]+1,_=i[3]-i[2]-1;n.add(w,_,[])}}n.add(i[3]+1,0,[["exit",g,r]])}return s!==void 0&&(c.end=Object.assign({},xi(r.events,s)),n.add(s,0,[["exit",c,r]]),c=void 0),c}function Dp(n,r,i,u,s){const c=[],f=xi(r.events,i);s&&(s.end=Object.assign({},f),c.push(["exit",s,r])),u.end=Object.assign({},f),c.push(["exit",u,r]),n.add(i+1,0,c)}function xi(n,r){const i=n[r],u=i[0]==="enter"?"start":"end";return i[1][u]}const mk={name:"tasklistCheck",tokenize:gk};function pk(){return{text:{91:mk}}}function gk(n,r,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 Xe(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 he(p)?r(p):Ce(p)?n.check({tokenize:yk},r,i)(p):i(p)}}function yk(n,r,i){return _e(n,u,"whitespace");function u(s){return s===null?i(s):r(s)}}function xk(n){return h0([G3(),P3(),uk(n),fk(),pk()])}const bk={};function vk(n){const r=this,i=n||bk,u=r.data(),s=u.micromarkExtensions||(u.micromarkExtensions=[]),c=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),f=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);s.push(xk(i)),c.push(H3()),f.push(q3(i))}function Sk(n){return n==="completed"?S.jsx(Gp,{size:14,className:"text-emerald-400"}):n==="in_progress"?S.jsx(sx,{size:14,className:"text-amber-400 animate-spin"}):S.jsx(V1,{size:14,className:"text-zinc-500"})}function zk(n){return n==="completed"?"text-zinc-400 line-through":n==="in_progress"?"text-amber-200":"text-zinc-300"}function kk(n){const{todos:r}=n;if(!r||r.length===0)return null;const i=r.filter(s=>s.status==="completed").length,u=r.length;return S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(Fp,{size:14,className:"text-violet-400"}),S.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Tasks"}),S.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[i,"/",u]}),S.jsx("div",{className:"w-16 h-1.5 bg-zinc-700 rounded-full overflow-hidden",children:S.jsx("div",{className:"h-full bg-violet-500 transition-all duration-300",style:{width:`${i/u*100}%`}})})]}),S.jsx("ul",{className:"divide-y divide-zinc-800/50",children:r.map((s,c)=>S.jsxs("li",{className:"flex items-start gap-2.5 px-3 py-2 hover:bg-zinc-800/20 transition-colors",children:[S.jsx("span",{className:"mt-0.5 flex-shrink-0",children:Sk(s.status)}),S.jsx("span",{className:`text-xs leading-relaxed ${zk(s.status)}`,children:s.content})]},c))})]})})}class Ek{diff(r,i,u={}){let s;typeof u=="function"?(s=u,u={}):"callback"in u&&(s=u.callback);const c=this.castInput(r,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(r,i,u,s){var c;const f=U=>{if(U=this.postProcess(U,u),s){setTimeout(function(){s(U)},0);return}else return U},d=i.length,p=r.length;let m=1,x=d+p;u.maxEditLength!=null&&(x=Math.min(x,u.maxEditLength));const g=(c=u.timeout)!==null&&c!==void 0?c:1/0,b=Date.now()+g,v=[{oldPos:-1,lastComponent:void 0}];let w=this.extractCommon(v[0],i,r,0,u);if(v[0].oldPos+1>=p&&w+1>=d)return f(this.buildValues(v[0].lastComponent,i,r));let _=-1/0,Y=1/0;const M=()=>{for(let U=Math.max(_,-m);U<=Math.min(Y,m);U+=2){let j;const I=v[U-1],F=v[U+1];I&&(v[U-1]=void 0);let B=!1;if(F){const ue=F.oldPos-U;B=F&&0<=ue&&ue<d}const $=I&&I.oldPos+1<p;if(!B&&!$){v[U]=void 0;continue}if(!$||B&&I.oldPos<F.oldPos?j=this.addToPath(F,!0,!1,0,u):j=this.addToPath(I,!1,!0,1,u),w=this.extractCommon(j,i,r,U,u),j.oldPos+1>=p&&w+1>=d)return f(this.buildValues(j.lastComponent,i,r))||!0;v[U]=j,j.oldPos+1>=p&&(Y=Math.min(Y,U-1)),w+1>=d&&(_=Math.max(_,U+1))}m++};if(s)(function U(){setTimeout(function(){if(m>x||Date.now()>b)return s(void 0);M()||U()},0)})();else for(;m<=x&&Date.now()<=b;){const U=M();if(U)return U}}addToPath(r,i,u,s,c){const f=r.lastComponent;return f&&!c.oneChangePerToken&&f.added===i&&f.removed===u?{oldPos:r.oldPos+s,lastComponent:{count:f.count+1,added:i,removed:u,previousComponent:f.previousComponent}}:{oldPos:r.oldPos+s,lastComponent:{count:1,added:i,removed:u,previousComponent:f}}}extractCommon(r,i,u,s,c){const f=i.length,d=u.length;let p=r.oldPos,m=p-s,x=0;for(;m+1<f&&p+1<d&&this.equals(u[p+1],i[m+1],c);)m++,p++,x++,c.oneChangePerToken&&(r.lastComponent={count:1,previousComponent:r.lastComponent,added:!1,removed:!1});return x&&!c.oneChangePerToken&&(r.lastComponent={count:x,previousComponent:r.lastComponent,added:!1,removed:!1}),r.oldPos=p,m}equals(r,i,u){return u.comparator?u.comparator(r,i):r===i||!!u.ignoreCase&&r.toLowerCase()===i.toLowerCase()}removeEmpty(r){const i=[];for(let u=0;u<r.length;u++)r[u]&&i.push(r[u]);return i}castInput(r,i){return r}tokenize(r,i){return Array.from(r)}join(r){return r.join("")}postProcess(r,i){return r}get useLongestToken(){return!1}buildValues(r,i,u){const s=[];let c;for(;r;)s.push(r),c=r.previousComponent,delete r.previousComponent,r=c;s.reverse();const f=s.length;let d=0,p=0,m=0;for(;d<f;d++){const x=s[d];if(x.removed)x.value=this.join(u.slice(m,m+x.count)),m+=x.count;else{if(!x.added&&this.useLongestToken){let g=i.slice(p,p+x.count);g=g.map(function(b,v){const w=u[m+v];return w.length>b.length?w:b}),x.value=this.join(g)}else x.value=this.join(i.slice(p,p+x.count));p+=x.count,x.added||(m+=x.count)}}return s}}class Ck extends Ek{constructor(){super(...arguments),this.tokenize=Tk}equals(r,i,u){return u.ignoreWhitespace?((!u.newlineIsToken||!r.includes(`
|
|
271
|
+
`))&&(r=r.trim()),(!u.newlineIsToken||!i.includes(`
|
|
272
|
+
`))&&(i=i.trim())):u.ignoreNewlineAtEof&&!u.newlineIsToken&&(r.endsWith(`
|
|
273
|
+
`)&&(r=r.slice(0,-1)),i.endsWith(`
|
|
274
|
+
`)&&(i=i.slice(0,-1))),super.equals(r,i,u)}}const wk=new Ck;function Rp(n,r,i){return wk.diff(n,r,i)}function Tk(n,r){r.stripTrailingCr&&(n=n.replace(/\r\n/g,`
|
|
275
|
+
`));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&&!r.newlineIsToken?i[i.length-1]+=c:i.push(c)}return i}function Lp(n,r,i,u,s,c,f){let d;f?typeof f=="function"?d={callback:f}:d=f:d={},typeof d.context>"u"&&(d.context=4);const p=d.context;if(d.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(d.callback){const{callback:x}=d;Rp(i,u,Object.assign(Object.assign({},d),{callback:g=>{const b=m(g);x(b)}}))}else return m(Rp(i,u,d));function m(x){if(!x)return;x.push({value:"",lines:[]});function g(U){return U.map(function(j){return" "+j})}const b=[];let v=0,w=0,_=[],Y=1,M=1;for(let U=0;U<x.length;U++){const j=x[U],I=j.lines||Nk(j.value);if(j.lines=I,j.added||j.removed){if(!v){const F=x[U-1];v=Y,w=M,F&&(_=p>0?g(F.lines.slice(-p)):[],v-=_.length,w-=_.length)}for(const F of I)_.push((j.added?"+":"-")+F);j.added?M+=I.length:Y+=I.length}else{if(v)if(I.length<=p*2&&U<x.length-2)for(const F of g(I))_.push(F);else{const F=Math.min(I.length,p);for(const $ of g(I.slice(0,F)))_.push($);const B={oldStart:v,oldLines:Y-v+F,newStart:w,newLines:M-w+F,lines:_};b.push(B),v=0,w=0,_=[]}Y+=I.length,M+=I.length}}for(const U of b)for(let j=0;j<U.lines.length;j++)U.lines[j].endsWith(`
|
|
276
|
+
`)?U.lines[j]=U.lines[j].slice(0,-1):(U.lines.splice(j+1,0,"\"),j++);return{oldFileName:n,newFileName:r,oldHeader:s,newHeader:c,hunks:b}}}function fc(n){if(Array.isArray(n))return n.map(fc).join(`
|
|
277
|
+
`);const r=[];n.oldFileName==n.newFileName&&r.push("Index: "+n.oldFileName),r.push("==================================================================="),r.push("--- "+n.oldFileName+(typeof n.oldHeader>"u"?"":" "+n.oldHeader)),r.push("+++ "+n.newFileName+(typeof n.newHeader>"u"?"":" "+n.newHeader));for(let i=0;i<n.hunks.length;i++){const u=n.hunks[i];u.oldLines===0&&(u.oldStart-=1),u.newLines===0&&(u.newStart-=1),r.push("@@ -"+u.oldStart+","+u.oldLines+" +"+u.newStart+","+u.newLines+" @@");for(const s of u.lines)r.push(s)}return r.join(`
|
|
278
|
+
`)+`
|
|
279
|
+
`}function Ak(n,r,i,u,s,c,f){if(typeof f=="function"&&(f={callback:f}),f!=null&&f.callback){const{callback:d}=f;Lp(n,r,i,u,s,c,Object.assign(Object.assign({},f),{callback:p=>{d(p?fc(p):void 0)}}))}else{const d=Lp(n,r,i,u,s,c,f);return d?fc(d):void 0}}function Nk(n){const r=n.endsWith(`
|
|
280
|
+
`),i=n.split(`
|
|
281
|
+
`).map(u=>u+`
|
|
282
|
+
`);return r?i.pop():i.push(i.pop().slice(0,-1)),i}function ja(n){const{text:r,className:i=""}=n,[u,s]=fe.useState(!1),c=async f=>{f.stopPropagation();try{await navigator.clipboard.writeText(r),s(!0),setTimeout(()=>s(!1),1500)}catch{const d=document.createElement("textarea");d.value=r,document.body.appendChild(d),d.select(),document.execCommand("copy"),document.body.removeChild(d),s(!0),setTimeout(()=>s(!1),1500)}};return S.jsx("button",{onClick:c,className:`p-1 rounded hover:bg-zinc-700/50 transition-colors ${i}`,title:u?"Copied!":"Copy path",children:u?S.jsx(Aa,{size:12,className:"text-emerald-400"}):S.jsx(dc,{size:12,className:"text-zinc-500 hover:text-zinc-300"})})}function ng(n){return n.split("/").slice(-2).join("/")}function _k(n){const r=n.split(`
|
|
283
|
+
`),i=[];for(const u of r)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 Mk(n){const{input:r}=n;if(!r||!r.file_path)return null;const i=r.old_string||"",u=r.new_string||"",s=ng(r.file_path),c=Ak("a/"+s,"b/"+s,i,u,"","",{context:3}),f=_k(c),d=f.filter(m=>m.type==="add").length,p=f.filter(m=>m.type==="remove").length;return S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(K1,{size:14,className:"text-blue-400"}),S.jsx("span",{className:"text-xs font-mono text-zinc-300",children:s}),S.jsxs("div",{className:"flex items-center gap-2 ml-auto text-xs",children:[d>0&&S.jsxs("span",{className:"flex items-center gap-0.5 text-emerald-400",children:[S.jsx(Sx,{size:12}),d]}),p>0&&S.jsxs("span",{className:"flex items-center gap-0.5 text-rose-400",children:[S.jsx(hx,{size:12}),p]}),S.jsx(ja,{text:r.file_path})]})]}),S.jsx("div",{className:"overflow-x-auto max-h-80 overflow-y-auto",children:S.jsx("pre",{className:"text-xs font-mono p-0",children:f.map((m,x)=>m.type==="header"?S.jsx("div",{className:"px-3 py-1 bg-blue-900/20 text-blue-300 border-y border-blue-900/30",children:m.content},x):m.type==="add"?S.jsxs("div",{className:"px-3 py-0.5 bg-emerald-900/20 text-emerald-300 border-l-2 border-emerald-500",children:[S.jsx("span",{className:"select-none text-emerald-600 mr-2",children:"+"}),m.content||" "]},x):m.type==="remove"?S.jsxs("div",{className:"px-3 py-0.5 bg-rose-900/20 text-rose-300 border-l-2 border-rose-500",children:[S.jsx("span",{className:"select-none text-rose-600 mr-2",children:"-"}),m.content||" "]},x):S.jsxs("div",{className:"px-3 py-0.5 text-zinc-400",children:[S.jsx("span",{className:"select-none text-zinc-600 mr-2",children:" "}),m.content||" "]},x))})})]})})}function jk(n){const{input:r}=n;if(!r||!r.file_path)return null;const i=r.content||"",u=ng(r.file_path),s=i.split(`
|
|
284
|
+
`).length,c=i.slice(0,500),f=i.length>500;return S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(Qp,{size:14,className:"text-emerald-400"}),S.jsx("span",{className:"text-xs font-mono text-zinc-300",children:u}),S.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[S.jsxs("span",{className:"text-xs text-zinc-500",children:[s," lines"]}),S.jsx(ja,{text:r.file_path})]})]}),S.jsx("div",{className:"overflow-x-auto max-h-60 overflow-y-auto",children:S.jsxs("pre",{className:"text-xs font-mono p-3 text-zinc-300",children:[c,f&&S.jsxs("span",{className:"text-zinc-500",children:["... (",i.length-500," more chars)"]})]})})]})})}function Ok(n){const{input:r}=n,[i,u]=fe.useState(!1);if(!r||!r.command)return null;const s=r.command,c=r.description,f=()=>{navigator.clipboard.writeText(s),u(!0),setTimeout(()=>u(!1),2e3)};return S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(Jp,{size:14,className:"text-green-400"}),S.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Command"}),c&&S.jsxs("span",{className:"text-xs text-zinc-500 truncate ml-1",children:["— ",c]}),S.jsx("button",{onClick:f,className:"ml-auto p-1 hover:bg-zinc-700/50 rounded transition-colors",title:"Copy command",children:i?S.jsx(Aa,{size:12,className:"text-green-400"}):S.jsx(dc,{size:12,className:"text-zinc-500"})})]}),S.jsx("div",{className:"p-3 overflow-x-auto",children:S.jsx("div",{className:"flex items-start gap-2",children:S.jsx("pre",{className:"text-xs font-mono m-0 p-0 bg-transparent! text-zinc-200 whitespace-pre-wrap break-all",children:s})})})]})})}function Dk(n){const{content:r,isError:i}=n;if(!r||r.trim().length===0)return S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-zinc-800/30 border border-zinc-700/50 rounded-lg",children:[S.jsx(Gp,{size:14,className:"text-teal-400"}),S.jsx("span",{className:"text-xs text-zinc-400",children:"Command completed successfully (no output)"})]})});const u=r.split(`
|
|
285
|
+
`),s=30,c=u.length>s,f=c?u.slice(0,s):u;return S.jsx("div",{className:"w-full mt-2",children:S.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:[S.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?S.jsxs(S.Fragment,{children:[S.jsx(Mx,{size:14,className:"text-rose-400"}),S.jsx("span",{className:"text-xs font-medium text-rose-300",children:"Error Output"})]}):S.jsxs(S.Fragment,{children:[S.jsx(Kp,{size:14,className:"text-teal-400"}),S.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Output"})]}),S.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," lines"]})]}),S.jsx("div",{className:"overflow-x-auto max-h-80 overflow-y-auto",children:S.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(`
|
|
286
|
+
`),c&&S.jsxs("div",{className:"text-zinc-500 mt-2 pt-2 border-t border-zinc-700/50",children:["... ",u.length-s," more lines"]})]})})]})})}function Rk(n){const{input:r}=n;return!r||!r.pattern?null:S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(lu,{size:14,className:"text-amber-400"}),S.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Search"})]}),S.jsxs("div",{className:"p-3 space-y-2",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("span",{className:"text-xs text-zinc-500",children:"Pattern:"}),S.jsx("code",{className:"text-xs font-mono text-amber-300 bg-amber-500/10 px-1.5 py-0.5 rounded",children:r.pattern})]}),r.path&&S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("span",{className:"text-xs text-zinc-500",children:"Path:"}),S.jsx("span",{className:"text-xs font-mono text-zinc-300",children:r.path})]}),r.glob&&S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("span",{className:"text-xs text-zinc-500",children:"Glob:"}),S.jsx("span",{className:"text-xs font-mono text-zinc-300",children:r.glob})]}),r.type&&S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("span",{className:"text-xs text-zinc-500",children:"Type:"}),S.jsx("span",{className:"text-xs font-mono text-zinc-300",children:r.type})]})]})]})})}function Lk(n){const{input:r}=n;return!r||!r.pattern?null:S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(mc,{size:14,className:"text-cyan-400"}),S.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Find Files"})]}),S.jsxs("div",{className:"p-3 space-y-2",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("span",{className:"text-xs text-zinc-500",children:"Pattern:"}),S.jsx("code",{className:"text-xs font-mono text-cyan-300 bg-cyan-500/10 px-1.5 py-0.5 rounded",children:r.pattern})]}),r.path&&S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("span",{className:"text-xs text-zinc-500",children:"Path:"}),S.jsx("span",{className:"text-xs font-mono text-zinc-300",children:r.path})]})]})]})})}function Bp(n){const{content:r,isFileList:i}=n;if(!r||r.trim().length===0)return S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-zinc-800/30 border border-zinc-700/50 rounded-lg",children:[S.jsx(lu,{size:14,className:"text-zinc-500"}),S.jsx("span",{className:"text-xs text-zinc-400",children:"No matches found"})]})});const u=r.split(`
|
|
287
|
+
`).filter(d=>d.trim()),s=25,c=u.length>s,f=c?u.slice(0,s):u;return i?S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(mc,{size:14,className:"text-cyan-400"}),S.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Files Found"}),S.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," files"]})]}),S.jsxs("div",{className:"overflow-y-auto max-h-60",children:[S.jsx("ul",{className:"divide-y divide-zinc-800/50",children:f.map((d,p)=>S.jsxs("li",{className:"group flex items-center gap-2 px-3 py-1.5 hover:bg-zinc-800/30",children:[S.jsx(Zp,{size:12,className:"text-zinc-500 flex-shrink-0"}),S.jsx("span",{className:"text-xs font-mono text-zinc-300 truncate flex-1",children:d}),S.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity",children:S.jsx(ja,{text:d})})]},p))}),c&&S.jsxs("div",{className:"px-3 py-2 text-xs text-zinc-500 border-t border-zinc-700/50",children:["... ",u.length-s," more files"]})]})]})}):S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(lu,{size:14,className:"text-amber-400"}),S.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Results"}),S.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," matches"]})]}),S.jsx("div",{className:"overflow-x-auto max-h-80 overflow-y-auto",children:S.jsxs("pre",{className:"text-xs font-mono p-3 text-zinc-300 whitespace-pre-wrap",children:[f.join(`
|
|
288
|
+
`),c&&S.jsxs("div",{className:"text-zinc-500 mt-2 pt-2 border-t border-zinc-700/50",children:["... ",u.length-s," more matches"]})]})})]})})}function Bk(n){return n.split("/").slice(-2).join("/")}function lg(n){var i;const r=n.split(".");return r.length>1?(i=r.pop())==null?void 0:i.toLowerCase():""}function ig(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 Uk(n){const{input:r}=n;if(!r||!r.file_path)return null;const i=Bk(r.file_path),u=lg(r.file_path),s=u?ig(u):null;return S.jsx("div",{className:"w-full mt-2",children:S.jsx("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(Xp,{size:14,className:"text-sky-400"}),S.jsx("span",{className:"text-xs font-mono text-zinc-300",children:i}),s&&S.jsx("span",{className:"text-xs text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:s}),S.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[(r.offset||r.limit)&&S.jsxs("span",{className:"text-xs text-zinc-500 mr-1",children:[r.offset&&`from line ${r.offset}`,r.offset&&r.limit&&", ",r.limit&&`${r.limit} lines`]}),S.jsx(ja,{text:r.file_path})]})]})})})}function Hk(n){const{content:r,fileName:i}=n;if(!r)return null;const u=r.split(`
|
|
289
|
+
`),s=50,c=u.length>s,f=c?u.slice(0,s):u,d=i?lg(i):"",p=d?ig(d):null;return S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(Zp,{size:14,className:"text-sky-400"}),S.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"File Content"}),p&&S.jsx("span",{className:"text-xs text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:p}),S.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," lines"]})]}),S.jsxs("div",{className:"overflow-x-auto max-h-96 overflow-y-auto",children:[S.jsx("table",{className:"w-full text-xs font-mono",children:S.jsx("tbody",{children:f.map((m,x)=>S.jsxs("tr",{className:"hover:bg-zinc-800/30",children:[S.jsx("td",{className:"select-none text-right pr-3 pl-3 py-0.5 text-zinc-600 border-r border-zinc-800 w-10 sticky left-0 bg-zinc-900/70",children:x+1}),S.jsx("td",{className:"pl-3 pr-3 py-0.5 text-zinc-300 whitespace-pre",children:m||" "})]},x))})}),c&&S.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 qk(n){const{input:r}=n;return!r||!r.questions||r.questions.length===0?null:S.jsx("div",{className:"w-full mt-2 space-y-3",children:r.questions.map((i,u)=>S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(q1,{size:14,className:"text-violet-400"}),S.jsx("span",{className:"text-xs font-medium text-zinc-300",children:i.header||"Question"}),i.multiSelect&&S.jsx("span",{className:"text-[10px] text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded ml-auto",children:"Multi-select"})]}),S.jsxs("div",{className:"p-3 space-y-3",children:[S.jsx("p",{className:"text-sm text-zinc-200",children:i.question}),i.options&&i.options.length>0&&S.jsx("div",{className:"space-y-2",children:i.options.map((s,c)=>{const f=i.multiSelect?wx:Ax;return S.jsxs("div",{className:"flex items-start gap-2 px-2 py-1.5 rounded bg-zinc-800/40 border border-zinc-700/30",children:[S.jsx(f,{size:14,className:"text-violet-400/70 mt-0.5 flex-shrink-0"}),S.jsxs("div",{className:"min-w-0",children:[S.jsx("div",{className:"text-xs font-medium text-zinc-200",children:s.label}),s.description&&S.jsx("div",{className:"text-xs text-zinc-500 mt-0.5",children:s.description})]})]},c)})})]})]},u))})}function Yk(n){const r=n.toLowerCase();return r==="explore"?"text-cyan-400":r==="plan"?"text-violet-400":r==="claude-code-guide"?"text-amber-400":r==="general-purpose"?"text-emerald-400":"text-blue-400"}function Vk(n){const r=n.toLowerCase();return r==="explore"?"bg-cyan-500/10 border-cyan-500/20":r==="plan"?"bg-violet-500/10 border-violet-500/20":r==="claude-code-guide"?"bg-amber-500/10 border-amber-500/20":r==="general-purpose"?"bg-emerald-500/10 border-emerald-500/20":"bg-blue-500/10 border-blue-500/20"}function Gk(n){const{input:r}=n;if(!r)return null;const i=Yk(r.subagent_type),u=Vk(r.subagent_type);return S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(Vp,{size:14,className:i}),S.jsx("span",{className:`text-xs font-medium ${i}`,children:r.subagent_type}),r.description&&S.jsxs(S.Fragment,{children:[S.jsx(R1,{size:10,className:"text-zinc-600"}),S.jsx("span",{className:"text-xs text-zinc-400",children:r.description})]}),S.jsxs("div",{className:"flex items-center gap-1.5 ml-auto",children:[r.resume&&S.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:[S.jsx(kx,{size:10}),"resume"]}),r.run_in_background&&S.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:[S.jsx(gx,{size:10}),"background"]}),r.model&&S.jsx("span",{className:"text-[10px] text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:r.model})]})]}),S.jsx("div",{className:"p-3",children:S.jsxs("div",{className:`flex items-start gap-2 px-3 py-2 rounded-lg border ${u}`,children:[S.jsx(Kp,{size:12,className:`${i} mt-0.5 flex-shrink-0`}),S.jsx("p",{className:"text-xs text-zinc-300 leading-relaxed whitespace-pre-wrap",children:r.prompt})]})})]})})}const ag=fe.memo(function(r){const{content:i,className:u=""}=r;return S.jsx("div",{className:`break-words ${u}`,children:S.jsx(uz,{remarkPlugins:[vk],components:{h1:s=>{const{children:c}=s;return S.jsx("div",{className:"text-base font-semibold text-zinc-100 mt-3 mb-1.5",children:c})},h2:s=>{const{children:c}=s;return S.jsx("div",{className:"text-sm font-semibold text-zinc-100 mt-3 mb-1.5",children:c})},h3:s=>{const{children:c}=s;return S.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-3 mb-1.5",children:c})},h4:s=>{const{children:c}=s;return S.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},h5:s=>{const{children:c}=s;return S.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},h6:s=>{const{children:c}=s;return S.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},p:s=>{const{children:c}=s;return S.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 S.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 S.jsx("strong",{className:"font-semibold text-zinc-50",children:c})},em:s=>{const{children:c}=s;return S.jsx("em",{className:"italic text-zinc-200",children:c})},code:s=>{const{children:c}=s;return S.jsx("code",{className:"px-1.5 py-0.5 rounded bg-zinc-800/80 text-cyan-300 text-[12px] font-mono",children:c})},pre:s=>{var p,m,x;const{node:c}=s,f=(p=c==null?void 0:c.children)==null?void 0:p[0];if((f==null?void 0:f.tagName)==="code"){const b=(((m=f.properties)==null?void 0:m.className)||[]).find(_=>_.startsWith("language-")),v=(b==null?void 0:b.replace("language-",""))||"code",w=((x=f.children)==null?void 0:x.map(_=>_.value).join(""))||"";return S.jsxs("div",{className:"relative group my-2 rounded-lg overflow-hidden border border-zinc-700/50",children:[S.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 bg-zinc-900 border-b border-zinc-700/50",children:[S.jsx("span",{className:"text-[10px] text-zinc-500 font-mono",children:v}),S.jsx(ja,{text:w})]}),S.jsx("pre",{className:"text-xs text-zinc-300 bg-zinc-900/80 p-3 overflow-x-auto rounded-t-none!",children:S.jsx("code",{children:w})})]})}const{children:d}=s;return S.jsx("pre",{children:d})},ul:s=>{const{children:c}=s;return S.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 S.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 S.jsx("li",{className:"text-[13px] leading-relaxed",children:c})},blockquote:s=>{const{children:c}=s;return S.jsx("div",{className:"border-l-2 border-zinc-600 pl-3 my-2 text-zinc-400 italic",children:c})},hr:()=>S.jsx("hr",{className:"border-zinc-700 my-4"}),table:s=>{const{children:c}=s;return S.jsx("div",{className:"my-2 overflow-x-auto rounded-lg border border-zinc-700/50",children:S.jsx("table",{className:"w-full text-[13px]",children:c})})},thead:s=>{const{children:c}=s;return S.jsx("thead",{className:"bg-zinc-900",children:c})},tr:s=>{const{children:c}=s;return S.jsx("tr",{className:"border-b border-zinc-700/50 last:border-b-0",children:c})},th:s=>{const{children:c}=s;return S.jsx("th",{className:"px-3 py-2 text-left font-medium text-zinc-200",children:c})},td:s=>{const{children:c}=s;return S.jsx("td",{className:"px-3 py-2 text-zinc-300",children:c})}},children:i})})});function Xk(n){const r=new Map;for(const i of n)i.type==="tool_use"&&i.id&&i.name&&r.set(i.id,i.name);return r}const Qk=fe.memo(function(r){var w;const{message:i}=r,u=i.type==="user",s=(w=i.message)==null?void 0:w.content,c=()=>!s||typeof s=="string"?[]:s.filter(_=>_.type==="text"),f=()=>!s||typeof s=="string"?[]:s.filter(_=>_.type==="tool_use"||_.type==="tool_result"||_.type==="thinking"),d=()=>c().filter(_=>_.text&&bi(_.text).length>0),p=()=>typeof s=="string"?bi(s).length>0:d().length>0,m=f(),x=d(),g=p(),b=m.length>0,v=Array.isArray(s)?Xk(s):new Map;return!g&&b?S.jsx("div",{className:"flex flex-col gap-1 py-0.5",children:m.map((_,Y)=>S.jsx(Po,{block:_,toolMap:v},Y))}):!g&&!b?null:S.jsx("div",{className:`flex ${u?"justify-end":"justify-start"} min-w-0`,children:S.jsxs("div",{className:"max-w-[85%] min-w-0",children:[S.jsx("div",{className:`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:typeof s=="string"?u?S.jsx("div",{className:"whitespace-pre-wrap break-words text-[13px] leading-relaxed",children:bi(s)}):S.jsx(ag,{content:bi(s)}):S.jsx("div",{className:"flex flex-col gap-1",children:x.map((_,Y)=>S.jsx(Po,{block:_,isUser:u,toolMap:v},Y))})}),b&&S.jsx("div",{className:"flex flex-col gap-1 mt-1.5",children:m.map((_,Y)=>S.jsx(Po,{block:_,toolMap:v},Y))})]})})}),Up={todowrite:Fp,read:Xp,bash:Jp,grep:lu,edit:xx,write:Qp,glob:mc,task:Vp},Zk=[{patterns:["web","fetch","url"],icon:tx},{patterns:["ask","question"],icon:cx},{patterns:["git","commit"],icon:P1},{patterns:["sql","database","query"],icon:Q1},{patterns:["file","disk"],icon:lx}];function Fk(n){const r=n.toLowerCase();if(Up[r])return Up[r];for(const{patterns:i,icon:u}of Zk)if(i.some(s=>r.includes(s)))return u;return Ox}function Wo(n){return n.split("/").slice(-2).join("/")}const Kk={read:n=>n.file_path?Wo(String(n.file_path)):null,edit:n=>n.file_path?Wo(String(n.file_path)):null,write:n=>n.file_path?Wo(String(n.file_path)):null,bash:n=>{if(!n.command)return null;const r=String(n.command);return r.length>50?r.slice(0,50)+"...":r},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 Jk(n,r){if(!r)return null;const i=n.toLowerCase(),u=Kk[i];if(u)return u(r);if(i.includes("web")&&r.url)try{return new URL(String(r.url)).hostname}catch{return String(r.url).slice(0,30)}return null}function Ik(n){const{toolName:r,input:i}=n,u=r.toLowerCase();return u==="todowrite"&&i.todos?S.jsx(kk,{todos:i.todos}):u==="edit"&&i.file_path?S.jsx(Mk,{input:i}):u==="write"&&i.file_path?S.jsx(jk,{input:i}):u==="bash"&&i.command?S.jsx(Ok,{input:i}):u==="grep"&&i.pattern?S.jsx(Rk,{input:i}):u==="glob"&&i.pattern?S.jsx(Lk,{input:i}):u==="read"&&i.file_path?S.jsx(Uk,{input:i}):u==="askuserquestion"&&i.questions?S.jsx(qk,{input:i}):u==="task"&&i.prompt?S.jsx(Gk,{input:i}):S.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 $k(n){const{toolName:r,content:i,isError:u}=n,s=r.toLowerCase();if(s==="bash")return S.jsx(Dk,{content:i,isError:u});if(s==="glob")return S.jsx(Bp,{content:i,isFileList:!0});if(s==="grep")return S.jsx(Bp,{content:i});if(s==="read")return S.jsx(Hk,{content:i});if(!i||i.trim().length===0)return S.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:[S.jsx(Aa,{size:14,className:"text-teal-400"}),S.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 S.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&&S.jsxs("span",{className:"text-zinc-500",children:["... (",i.length-c," more chars)"]})]})}function Po(n){var f;const{block:r,isUser:i,toolMap:u}=n,[s,c]=fe.useState(!1);if(r.type==="text"&&r.text){const d=bi(r.text);return d?i?S.jsx("div",{className:"whitespace-pre-wrap break-words text-[13px] leading-relaxed",children:d}):S.jsx(ag,{content:d}):null}if(r.type==="thinking"&&r.thinking)return S.jsxs("div",{className:s?"w-full":"",children:[S.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:[S.jsx(ax,{size:12,className:"opacity-70"}),S.jsx("span",{className:"font-medium",children:"thinking"}),S.jsx("span",{className:"text-[10px] opacity-50 ml-0.5",children:s?"▼":"▶"})]}),s&&S.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:r.thinking})]});if(r.type==="tool_use"){const d=r.input&&typeof r.input=="object"?r.input:void 0,p=d&&Object.keys(d).length>0,m=Fk(r.name||""),x=Jk(r.name||"",d),g=((f=r.name)==null?void 0:f.toLowerCase())||"",b=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 S.jsxs("div",{className:w?"w-full":"",children:[S.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:[S.jsx(m,{size:12,className:"opacity-60"}),S.jsx("span",{className:"font-medium text-slate-200",children:r.name}),x&&S.jsx("span",{className:"text-slate-500 font-normal truncate max-w-[200px]",children:x}),p&&!v&&S.jsx("span",{className:"text-[10px] opacity-40 ml-0.5",children:s?"▼":"▶"})]}),w&&p&&b?S.jsx(Ik,{toolName:r.name||"",input:d}):s&&p&&S.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(r.type==="tool_result"){const d=r.is_error,p=typeof r.content=="string"?r.content:JSON.stringify(r.content,null,2),m=bi(p),x=m.length>0,g=60,b=x&&!s?m.slice(0,g)+(m.length>g?"...":""):null,v=r.tool_use_id&&u&&u.get(r.tool_use_id)||"";return S.jsxs("div",{className:s?"w-full":"",children:[S.jsxs("button",{onClick:()=>x&&c(!s),className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg text-[11px] transition-colors border ${d?"bg-rose-500/10 hover:bg-rose-500/15 text-rose-400/90 border-rose-500/20":"bg-teal-500/10 hover:bg-teal-500/15 text-teal-400/90 border-teal-500/20"}`,children:[d?S.jsx(Rx,{size:12,className:"opacity-70"}):S.jsx(Aa,{size:12,className:"opacity-70"}),S.jsx("span",{className:"font-medium",children:d?"error":"result"}),b&&!s&&S.jsx("span",{className:`font-normal truncate max-w-[200px] ${d?"text-rose-500/70":"text-teal-500/70"}`,children:b}),x&&S.jsx("span",{className:"text-[10px] opacity-40 ml-0.5",children:s?"▼":"▶"})]}),s&&x&&S.jsx($k,{toolName:v,content:m,isError:d})]})}return null}const Wk=10,Pk=1e3,eE=3e4,tE=100;function nE(n){const{sessionId:r}=n,[i,u]=fe.useState([]),[s,c]=fe.useState(!0),[f,d]=fe.useState(!0),p=fe.useRef(null),m=fe.useRef(null),x=fe.useRef(0),g=fe.useRef(0),b=fe.useRef(null),v=fe.useRef(null),w=fe.useRef(!0),_=fe.useCallback(()=>{if(!w.current)return;b.current&&b.current.close();const j=new EventSource(`/api/conversation/${r}/stream?offset=${x.current}`);b.current=j,j.addEventListener("messages",I=>{g.current=0;const F=JSON.parse(I.data);c(!1),u(B=>{const $=new Set(B.map(se=>se.uuid).filter(Boolean)),ue=F.filter(se=>!$.has(se.uuid));return ue.length===0?B:(x.current+=ue.length,[...B,...ue])})}),j.onerror=()=>{if(j.close(),c(!1),!!w.current&&g.current<Wk){const I=Math.min(Pk*Math.pow(2,g.current),eE);g.current++,v.current=setTimeout(()=>_(),I)}}},[r]);fe.useEffect(()=>(w.current=!0,c(!0),u([]),x.current=0,g.current=0,_(),()=>{w.current=!1,v.current&&clearTimeout(v.current),b.current&&b.current.close()}),[_]),fe.useEffect(()=>{f&&m.current&&m.current.scrollIntoView({behavior:"instant"})},[i,f]);const Y=()=>{if(!p.current)return;const{scrollTop:j,scrollHeight:I,clientHeight:F}=p.current,B=I-j-F<tE;d(B)},M=i.find(j=>j.type==="summary"),U=i.filter(j=>j.type==="user"||j.type==="assistant");return s?S.jsx("div",{className:"flex h-full items-center justify-center text-zinc-500",children:"Loading..."}):S.jsx("div",{ref:p,onScroll:Y,className:"h-full overflow-y-auto bg-zinc-950",children:S.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-4",children:[M&&S.jsxs("div",{className:"mb-6 rounded-xl border border-zinc-800/60 bg-zinc-900/50 p-4",children:[S.jsx("h2",{className:"text-sm font-medium text-zinc-200 leading-relaxed",children:M.summary}),S.jsxs("p",{className:"mt-2 text-[11px] text-zinc-500",children:[U.length," messages"]})]}),S.jsx("div",{className:"flex flex-col gap-2",children:U.map((j,I)=>S.jsx("div",{ref:I===U.length-1?m:void 0,children:S.jsx(Qk,{message:j})},j.uuid||I))}),!f&&S.jsxs("button",{onClick:()=>{var j;d(!0),(j=m.current)==null||j.scrollIntoView({behavior:"instant"})},className:"fixed bottom-4 right-6 rounded-full bg-zinc-200/90 px-3.5 py-2 text-xs font-medium text-zinc-900 shadow-lg transition-all hover:bg-zinc-100 flex items-center gap-1.5 backdrop-blur-sm",children:[S.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 14l-7 7m0 0l-7-7m7 7V3"})}),S.jsx("span",{children:"Latest"})]})]})})}function lE(n,r){const{events:i,onError:u,maxRetries:s=10,baseDelay:c=1e3}=r,f=fe.useRef(null),d=fe.useRef(0),p=fe.useRef(null),m=fe.useRef(!0),x=fe.useRef(i);x.current=i;const g=fe.useCallback(()=>{if(!m.current)return;f.current&&f.current.close();const b=new EventSource(n);f.current=b;for(const v of x.current)b.addEventListener(v.eventName,w=>{d.current=0,v.onMessage(w)});b.onerror=()=>{if(b.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]);fe.useEffect(()=>(m.current=!0,g(),()=>{m.current=!1,p.current&&clearTimeout(p.current),f.current&&f.current.close()}),[g])}function iE(n){const{session:r,copied:i,onCopyResumeCommand:u}=n;return S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[S.jsx("span",{className:"text-sm text-zinc-300 truncate max-w-xs",children:r.display}),S.jsx("span",{className:"text-xs text-zinc-600 shrink-0",children:r.projectName}),S.jsx("span",{className:"text-xs text-zinc-600 shrink-0",children:Ip(r.timestamp)})]}),S.jsx("button",{onClick:()=>u(r.id,r.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 shrink-0",title:"Copy resume command to clipboard",children:i?S.jsxs(S.Fragment,{children:[S.jsx(Aa,{className:"w-3.5 h-3.5 text-green-500"}),S.jsx("span",{className:"text-green-500",children:"Copied!"})]}):S.jsxs(S.Fragment,{children:[S.jsx(dc,{className:"w-3.5 h-3.5"}),S.jsx("span",{children:"Copy Resume Command"})]})})]})}function aE(){const[n,r]=fe.useState([]),[i,u]=fe.useState([]),[s,c]=fe.useState(null),[f,d]=fe.useState(null),[p,m]=fe.useState(!0),[x,g]=fe.useState(!1),[b,v]=fe.useState(!1),w=fe.useCallback((F,B)=>{const $=`cd ${B} && claude --resume ${F}`;navigator.clipboard.writeText($).then(()=>{v(!0),setTimeout(()=>v(!1),2e3)})},[]),_=fe.useMemo(()=>f&&n.find(F=>F.id===f)||null,[n,f]);fe.useEffect(()=>{fetch("/api/projects").then(F=>F.json()).then(u).catch(console.error)},[]);const Y=fe.useCallback(F=>{const B=JSON.parse(F.data);r(B),m(!1)},[]),M=fe.useCallback(F=>{const B=JSON.parse(F.data);r($=>{const ue=new Map($.map(se=>[se.id,se]));for(const se of B)ue.set(se.id,se);return Array.from(ue.values()).sort((se,H)=>H.timestamp-se.timestamp)})},[]),U=fe.useCallback(()=>{m(!1)},[]);lE("/api/sessions/stream",{events:[{eventName:"sessions",onMessage:Y},{eventName:"sessionsUpdate",onMessage:M}],onError:U});const j=fe.useMemo(()=>s?n.filter(F=>F.project===s):n,[n,s]),I=fe.useCallback(F=>{d(F)},[]);return S.jsxs("div",{className:"flex h-screen bg-zinc-950 text-zinc-100",children:[!x&&S.jsxs("aside",{className:"w-80 border-r border-zinc-800/60 flex flex-col bg-zinc-950",children:[S.jsx("div",{className:"border-b border-zinc-800/60",children:S.jsx("label",{htmlFor:"select-project",className:"block w-full px-1",children:S.jsxs("select",{id:"select-project",value:s||"",onChange:F=>c(F.target.value||null),className:"w-full h-[50px] bg-transparent text-zinc-300 text-sm focus:outline-none cursor-pointer px-5 py-4",children:[S.jsx("option",{value:"",children:"All Projects"}),i.map(F=>{const B=F.split("/").pop()||F;return S.jsx("option",{value:F,children:B},F)})]})})}),S.jsx(Ix,{sessions:j,selectedSession:f,onSelectSession:I,loading:p})]}),S.jsxs("main",{className:"flex-1 overflow-hidden bg-zinc-950 flex flex-col",children:[S.jsxs("div",{className:"h-[50px] border-b border-zinc-800/60 flex items-center px-4 gap-4",children:[S.jsx("button",{onClick:()=>g(!x),className:"p-1.5 hover:bg-zinc-800 rounded transition-colors cursor-pointer","aria-label":x?"Expand sidebar":"Collapse sidebar",children:S.jsx(mx,{className:"w-4 h-4 text-zinc-400"})}),_&&S.jsx(iE,{session:_,copied:b,onCopyResumeCommand:w})]}),S.jsx("div",{className:"flex-1 overflow-hidden",children:f?S.jsx(nE,{sessionId:f}):S.jsx("div",{className:"flex h-full items-center justify-center text-zinc-600",children:S.jsxs("div",{className:"text-center",children:[S.jsx("div",{className:"text-base mb-2 text-zinc-500",children:"Select a session"}),S.jsx("div",{className:"text-sm text-zinc-600",children:"Choose a session from the list to view the conversation"})]})})})]})]})}A1.createRoot(document.getElementById("root")).render(S.jsx(fe.StrictMode,{children:S.jsx(aE,{})}));
|